@doist/automations-cli 0.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,7 @@
1
+ import {
2
+ updateAllInstalledSkills
3
+ } from "../../chunk-WIKELOVZ.js";
4
+ export {
5
+ updateAllInstalledSkills
6
+ };
7
+ //# sourceMappingURL=update-installed.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
package/package.json CHANGED
@@ -1,10 +1,69 @@
1
1
  {
2
- "name": "@doist/automations-cli",
3
- "version": "0.0.0",
4
- "description": "OIDC trusted publishing setup package for @doist/automations-cli",
5
- "keywords": [
6
- "oidc",
7
- "trusted-publishing",
8
- "setup"
9
- ]
2
+ "name": "@doist/automations-cli",
3
+ "version": "1.1.0",
4
+ "description": "Command-line client for Todoist Automations",
5
+ "type": "module",
6
+ "bin": {
7
+ "tda": "dist/index.js"
8
+ },
9
+ "keywords": [
10
+ "doist",
11
+ "todoist",
12
+ "automations",
13
+ "cli"
14
+ ],
15
+ "license": "UNLICENSED",
16
+ "repository": {
17
+ "type": "git",
18
+ "url": "git+https://github.com/Doist/automations.git",
19
+ "directory": "apps/cli"
20
+ },
21
+ "homepage": "https://github.com/Doist/automations/tree/main/apps/cli#readme",
22
+ "bugs": {
23
+ "url": "https://github.com/Doist/automations/issues"
24
+ },
25
+ "preferGlobal": true,
26
+ "publishConfig": {
27
+ "access": "public"
28
+ },
29
+ "files": [
30
+ "dist",
31
+ "scripts/refresh-skills.mjs"
32
+ ],
33
+ "scripts": {
34
+ "build": "node scripts/build.mjs && node scripts/refresh-skills.mjs",
35
+ "dev": "node scripts/build.mjs --watch",
36
+ "type-check": "tsc -p tsconfig.test.json --noEmit",
37
+ "test": "vitest run",
38
+ "check": "oxfmt src scripts --check && oxlint src scripts && npm run check:skill-sync",
39
+ "check:fix": "oxfmt src scripts && oxlint src scripts --fix",
40
+ "sync:skill": "node scripts/sync-skill.mjs",
41
+ "check:skill-sync": "node scripts/check-skill-sync.mjs",
42
+ "release": "semantic-release",
43
+ "prepack": "npm run build",
44
+ "postinstall": "node scripts/refresh-skills.mjs"
45
+ },
46
+ "dependencies": {
47
+ "@doist/cli-core": "1.5.0",
48
+ "@napi-rs/keyring": "1.3.0",
49
+ "ai": "7.0.77",
50
+ "commander": "15.0.0",
51
+ "oauth4webapi": "3.8.7",
52
+ "open": "11.0.2",
53
+ "p-limit": "3.1.0"
54
+ },
55
+ "devDependencies": {
56
+ "@doist/automations-core": "*",
57
+ "@doist/automations-sdk": "*",
58
+ "@types/node": "24.13.3",
59
+ "conventional-changelog-conventionalcommits": "9.3.1",
60
+ "esbuild": "0.28.2",
61
+ "semantic-release": "25.0.9",
62
+ "semantic-release-monorepo": "8.0.2",
63
+ "typescript": "6.0.3",
64
+ "vitest": "4.1.11"
65
+ },
66
+ "engines": {
67
+ "node": ">=24"
68
+ }
10
69
  }
@@ -0,0 +1,10 @@
1
+ // Rewrites the skill files a developer has already installed, so a rebuilt CLI
2
+ // never leaves an agent reading instructions that no longer match it.
3
+ //
4
+ // Runs after `build`, which is the moment the document can actually change, and
5
+ // again on `postinstall`. Uninstalled agents are skipped, and a failure here
6
+ // must never break a build or an install.
7
+ try {
8
+ const { updateAllInstalledSkills } = await import('../dist/lib/skills/update-installed.js')
9
+ await updateAllInstalledSkills()
10
+ } catch {}