Commit Graph
24 Commits
Author SHA1 Message Date
tiennm99 76c04da6c4 build: move from pnpm to npm
Replace pnpm-lock.yaml with package-lock.json. pnpm-workspace.yaml's
allowBuilds becomes package.json#allowScripts, which npm 11 gates the same
way; sharp is omitted because it is no longer in the dependency tree.
2026-08-17 12:16:34 +07:00
tiennm99 de06dad6e3 chore: add .gitignore
Excludes node_modules, .wrangler, logs, OS cruft, and dotenv-style secret
files. .dev.vars is the wrangler dev source for TELEGRAM_TOKEN and
TELEGRAM_CHAT_ID, so keep it out of history.
2026-08-03 10:23:35 +07:00
tiennm99 3513f8abb9 feat: serve llms.txt so agents can discover the send API
Adds an llmstxt.org-format usage spec at the repo root, bundled into the
worker as a text module and served at GET /llms.txt. /llms.txt is the only
GET route; all other GETs still return 405, so crawlers and link previews
cannot trigger a Telegram message.
2026-08-03 10:23:35 +07:00
tiennm99 4f0aa4b384 fix(deps): bump wrangler to pull patched sharp
sharp was pinned transitively via wrangler -> miniflare below the
0.35.0 security fix. Bumping wrangler resolves the advisory without
any source change.
2026-07-25 19:29:52 +07:00
tiennm99 118fd61dda fix: remediate dependency advisories (#6) 2026-07-25 18:09:43 +07:00
tiennm99 1d38911ba2 fix: also allow sharp build script (transitive via wrangler→miniflare)
CI uses pnpm install --frozen-lockfile which enforces strictDepBuilds;
sharp is a transitive dep with postinstall, so it must be explicitly
allowed too. Local pnpm install --force masked this previously.
2026-05-13 15:55:42 +07:00
tiennm99 86bd7fd82f fix: allow esbuild/workerd build scripts for Cloudflare deploy
pnpm 11 blocks postinstall scripts by default; pnpm-workspace.yaml's
allowBuilds is required to permit workerd/esbuild native builds.
2026-05-13 15:47:59 +07:00
tiennm99 119adf43ab chore: migrate from npm to pnpm 2026-05-13 10:19:29 +07:00
tiennm99 ae229f9af3 refactor: forward text as-is, drop request-metadata prefix
Enrichment (IP, UA, geo, timezone, URL, timestamp) is now handled by
miti-loki. miti-telegram becomes a minimal text-passthrough so callers
can format messages however they want without the worker mutating them.
2026-05-10 23:13:18 +07:00
tiennm99 e9a48f2e60 docs: document POST API and add AI-agents usage callout 2026-05-09 09:13:58 +07:00
tiennm99 50527d6d6a feat: update config 2025-11-15 20:14:07 +07:00
tiennm99 e03c225159 feat: cleanup 2025-11-15 19:36:13 +07:00
tiennm99 e2314f31f4 Update README.md 2025-10-08 22:19:07 +07:00
tiennm99 b0e047829c Revert "Update index.js"
This reverts commit eeaca62124.
2025-10-08 22:04:33 +07:00
tiennm99 ff4151dcd2 Update index.js 2025-10-08 22:01:56 +07:00
tiennm99 069f6eb310 refactor(name): from mitigram to miti-telegram 2025-10-08 21:39:06 +07:00
tiennm99 2a4c72ad61 feat: enable cors 2025-09-01 21:19:19 +07:00
tiennm99 4dfb9c33b8 feat: add ipinfo 2025-08-31 11:59:02 +07:00
tiennm99 01073dd7ad feat: cleanup 2025-08-31 11:48:02 +07:00
tiennm99 eef8c8aa58 feat: cleanup 2025-08-31 11:42:23 +07:00
tiennm99 8941c16538 feat: cleanup 2025-08-31 11:36:52 +07:00
tiennm99 956458cc21 feat: add more info 2025-08-31 11:25:53 +07:00
tiennm99 1d976b8ee9 feat: base logic 2025-08-31 11:14:07 +07:00
tiennm99 d6e012da78 chore: init 2025-08-31 11:05:44 +07:00