infra-kit 0.1.123 → 0.1.125

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.
Files changed (46) hide show
  1. package/.eslintcache +1 -0
  2. package/.omc/state/agent-replay-2ccbd177-0d5d-4d4a-ab94-a22464786221.jsonl +1 -0
  3. package/.omc/state/agent-replay-eb44055b-c2fa-4e66-b491-a1d9b44f51c7.jsonl +1 -0
  4. package/.omc/state/idle-notif-cooldown.json +1 -1
  5. package/.omc/state/sessions/2ccbd177-0d5d-4d4a-ab94-a22464786221/pre-tool-advisory-throttle.json +18 -0
  6. package/.omc/state/sessions/2ccbd177-0d5d-4d4a-ab94-a22464786221/subagent-tracking-state.json +17 -0
  7. package/.omc/state/sessions/6be1264f-8069-4412-8119-86118ed1943e/pre-tool-advisory-throttle.json +5 -5
  8. package/.omc/state/sessions/eb44055b-c2fa-4e66-b491-a1d9b44f51c7/last-tool-error-state.json +7 -0
  9. package/.omc/state/sessions/eb44055b-c2fa-4e66-b491-a1d9b44f51c7/pre-tool-advisory-throttle.json +18 -0
  10. package/.omc/state/sessions/eb44055b-c2fa-4e66-b491-a1d9b44f51c7/subagent-tracking-state.json +17 -0
  11. package/.turbo/turbo-build.log +6 -6
  12. package/.turbo/turbo-eslint-check.log +1 -1
  13. package/.turbo/turbo-prettier-check.log +1 -1
  14. package/.turbo/turbo-test.log +128 -127
  15. package/.turbo/turbo-ts-check.log +1 -1
  16. package/dist/chunk-VI7TEWVJ.js +164 -0
  17. package/dist/chunk-VI7TEWVJ.js.map +7 -0
  18. package/dist/cli.js +6 -6
  19. package/dist/cli.js.map +3 -3
  20. package/dist/mcp.js +1 -1
  21. package/package.json +1 -1
  22. package/src/.omc/state/agent-replay-2ccbd177-0d5d-4d4a-ab94-a22464786221.jsonl +2 -0
  23. package/src/.omc/state/idle-notif-cooldown.json +1 -1
  24. package/src/.omc/state/sessions/2ccbd177-0d5d-4d4a-ab94-a22464786221/last-tool-error-state.json +7 -0
  25. package/src/.omc/state/sessions/2ccbd177-0d5d-4d4a-ab94-a22464786221/mission-state.json +53 -0
  26. package/src/.omc/state/sessions/2ccbd177-0d5d-4d4a-ab94-a22464786221/pre-tool-advisory-throttle.json +22 -0
  27. package/src/.omc/state/sessions/2ccbd177-0d5d-4d4a-ab94-a22464786221/subagent-tracking-state.json +17 -0
  28. package/src/commands/env-clear/env-clear.ts +4 -1
  29. package/src/commands/env-load/__tests__/env-load.test.ts +99 -66
  30. package/src/commands/env-load/env-load.ts +87 -35
  31. package/src/commands/init/__tests__/shell-body.test.ts +4 -4
  32. package/src/commands/init/init.ts +23 -24
  33. package/src/commands/worktrees-add/worktrees-add.ts +6 -0
  34. package/src/commands/worktrees-remove/worktrees-remove.ts +6 -0
  35. package/src/commands/worktrees-sync/worktrees-sync.ts +6 -0
  36. package/src/entry/cli.ts +60 -45
  37. package/src/lib/constants/__tests__/constants.test.ts +22 -0
  38. package/src/lib/constants/constants.ts +40 -4
  39. package/src/lib/constants/index.ts +1 -0
  40. package/src/lib/env-autoload/__tests__/env-autoload.test.ts +15 -1
  41. package/src/lib/env-autoload/env-autoload.ts +54 -6
  42. package/src/lib/errors/__tests__/is-prompt-cancellation.test.ts +48 -0
  43. package/src/lib/errors/is-prompt-cancellation.ts +38 -0
  44. package/tsconfig.tsbuildinfo +1 -1
  45. package/dist/chunk-YMXDO43V.js +0 -166
  46. package/dist/chunk-YMXDO43V.js.map +0 -7
@@ -1,127 +1,128 @@
1
- $ pnpm exec vitest run --reporter=minimal
2
- [?25l
3
-  RUN  v4.1.9 /Users/arthur/projects/infra-kit/apps/infra-kit/cli
4
-
5
- Sourcemap for "/Users/arthur/Library/pnpm/store/v11/links/@/ink-testing-library/4.0.0/990ef278cd16926ca8f94e3d73dd86da3c7d702a314086dabc7217c3d9b139d2/node_modules/ink-testing-library/build/index.js" points to missing source files
6
- INFO: ✓ Migrated ~/infra-kit.yml → ~/infra-kit.json
7
- INFO: ⚠ Skipped ~/infra-kit.yml — ~/infra-kit.json already exists (remove the stale .yml manually)
8
- INFO:  created CLAUDE.md
9
- INFO: ✓ Migrated ~/infra-kit.yml → ~/infra-kit.json
10
- INFO: ⚠ Skipped ~/.infra-kit/config.yml — invalid config: ✖ Too small: expected array to have >=1 items
11
- at environments
12
- INFO:  Skipped ~/infra-kit.yml — Unexpected : in flow sequence at line 2, column 5:
13
-
14
- : : :
15
- ^
16
- 
17
- INFO: ✓ Migrated ~/infra-kit.yml → ~/infra-kit.json
18
- INFO: Agent-instruction files synced (infra-kit 0.1.123)
19
- INFO:  updated CLAUDE.md
20
- INFO: Agent-instruction files synced (infra-kit 0.1.123)
21
- INFO:  created CLAUDE.md
22
- INFO: Agent-instruction files synced (infra-kit 0.1.123)
23
- INFO:  unchanged CLAUDE.md
24
- INFO: Agent-instruction files synced (infra-kit 0.1.123)
25
- INFO: Skipped agent-instruction files — no infra-kit.json at the repo root
26
- INFO:  updated CLAUDE.md
27
- INFO: Agent-instruction files synced (infra-kit 0.1.123)
28
- INFO:  updated CLAUDE.md
29
- INFO:  removed AGENTS.md
30
- INFO: Agent-instruction files synced (infra-kit 0.1.123)
31
- INFO:  updated CLAUDE.md
32
- INFO:  updated AGENTS.md
33
- INFO: Agent-instruction files synced (infra-kit 0.1.123)
34
- INFO:  created CLAUDE.md
35
- INFO: Agent-instruction files synced (infra-kit 0.1.123)
36
- INFO:  updated CLAUDE.md
37
- INFO:  removed AGENTS.md
38
- INFO: Agent-instruction files synced (infra-kit 0.1.123)
39
- INFO:  unchanged CLAUDE.md
40
- INFO: Agent-instruction files synced (infra-kit 0.1.123)
41
- INFO:  created CLAUDE.md
42
- INFO: Agent-instruction files synced (infra-kit 0.1.123)
43
- INFO: ✓ Migrated ~/.infra-kit/config.yml → ~/.infra-kit/infra-kit.json
44
- INFO: Factory config: ~/.infra-kit/vendor.json [ ]
45
- INFO:  Migrated ~/.infra-kit/projects/infra-kit-init-migrate-test-RIPviP/infra-kit.yml ~/.infra-kit/projects/infra-kit-init-migrate-test-RIPviP/infra-kit.json
46
- INFO: 
47
- Not found run `infra-kit vendor-config --init` to scaffold it.
48
- INFO: Factory config: ~/.infra-kit/vendor.json [✓]
49
- INFO: workspaceDir: /tmp/vendor-config-home-KppX0S/projects (resolved: /tmp/vendor-config-home-KppX0S/projects) [✓ exists]
50
- INFO: Targets:
51
- INFO:  [✓] repo-a ~/projects/repo-a
52
- INFO: Factory config: ~/.infra-kit/vendor.json [✓]
53
- INFO: workspaceDir: /tmp/vendor-config-home-9OsSfQ/projects (resolved: /tmp/vendor-config-home-9OsSfQ/projects) [✓ exists]
54
- INFO: ✓ Normalized ide config in ~/infra-kit.json (removed legacy "mode")
55
- INFO:  Normalized ide config in ~/infra-kit.json (removed legacy "mode")
56
- INFO: Targets:
57
- INFO:  [ ] missing-repo ~/projects/missing-repo (not found — clone or remove)
58
- INFO: ✓ Created ~/.infra-kit/vendor.json
59
- INFO:  Edit `workspaceDir` (placeholder: ~/projects) to point at where your repos live.
60
- INFO:  Add at least one repo name to `targets` before running vendor sync/manifest/diff.
61
- INFO:  target-repovendor/configs (1 change(s)):
62
- INFO: ✓ Normalized ide config in ~/.infra-kit/infra-kit.json (removed legacy "mode")
63
- INFO:  target-repo: copied 1/1 items + manifest
64
- INFO:  >f.st..... configs/a.js
65
- INFO: ℹ️ No vendor/ folder found nothing to check.
66
- INFO: ✓ Normalized ide config in ~/.infra-kit/projects/infra-kit-init-migrate-test-06Dr2v/infra-kit.json (removed legacy "mode")
67
- ERROR:  Missing vendor/.sync-manifest.json. Re-run the vendor sync to generate it.
68
- INFO:  vendor/ matches manifest (2 files).
69
- ERROR:  vendor/ has drifted from vendor/.sync-manifest.json.
70
- ERROR:  These files are mirrored from the source repo edit them upstream, not here.
71
- INFO: 
72
- Modified (1):
73
- INFO:  a.js
74
- INFO: 
75
- Added (not in manifest) (1):
76
- INFO:  c.js
77
- INFO: 
78
- Removed (in manifest, now missing) (1):
79
- INFO:  b.js
80
- ERROR: ❌ vendor/.sync-manifest.json has a newer schemaVersion (2) than this CLI supports. Upgrade infra-kit.
81
- INFO: ⚠ Skipped normalizing ~/infra-kit.json — Expected property name or '}' in JSON at position 2 (line 1 column 3)
82
- INFO: ✓ Renamed ~/.infra-kit/config.json → ~/.infra-kit/infra-kit.json
83
- INFO: ✓ Renamed ~/.infra-kit/config.example.jsonc ~/.infra-kit/infra-kit.example.jsonc
84
- INFO:  Created ~/.infra-kit/vendor.json
85
- INFO: ⚠ Skipped ~/.infra-kit/config.json — ~/.infra-kit/infra-kit.json already exists (remove the stale file manually)
86
- INFO: 🎉 No drift detected.
87
- INFO: ⚠️ target-repo: target does not exist — skipped
88
- INFO:  Seeded 2 target(s) from the source vendor.config.ts.
89
- INFO:  Edit `workspaceDir` (placeholder: ~/projects) to point at where your repos live.
90
- INFO: Factory config already exists at ~/.infra-kit/vendor.json leaving it untouched.
91
- INFO:  Renamed ~/.infra-kit/config.example.jsonc ~/.infra-kit/infra-kit.example.jsonc
92
- INFO:  Migrated ~/.infra-kit/config.yml ~/.infra-kit/infra-kit.json
93
- INFO: ✓ Migrated ~/.infra-kit/config.yml → ~/.infra-kit/infra-kit.json
94
- INFO: ⚠ Skipped ~/.infra-kit/config.json — ~/.infra-kit/infra-kit.json already exists (remove the stale file manually)
95
- INFO: ✅ vendor/ matches manifest (1 files).
96
- ERROR:  vendor/ has drifted from vendor/.sync-manifest.json.
97
- ERROR:  These files are mirrored from the source repo edit them upstream, not here.
98
- INFO: 
99
- Modified (1):
100
- INFO:  configs/a.js
101
- INFO: 
102
- @x/ok — PASS
103
- INFO:  [PASS] infra-kit.config.ts: present and valid
104
- INFO: 
105
- All valid (1 checked)
106
- INFO: 
107
- @x/no-config — FAIL
108
- INFO:  [FAIL] infra-kit.config.ts: infra-kit.config.ts not found at /tmp/audit-cmd-t9QrB1/infra-kit.config.ts
109
- INFO: 
110
- Audit failed (1 checked)
111
- INFO: Wrote user-global config to /tmp/seed-user-global-test-brMrVb/.infra-kit/infra-kit.json (see the sibling .example.jsonc files for reference)
112
- INFO:  created CLAUDE.md
113
- INFO: Wrote user-global config to /tmp/seed-user-global-test-PBvfJF/.infra-kit/infra-kit.json (see the sibling .example.jsonc files for reference)
114
- INFO: User-global config already present at /tmp/seed-user-global-test-knc6t9/.infra-kit/infra-kit.json (refreshed reference examples)
115
- INFO: Agent-instruction files synced (infra-kit 0.1.123)
116
- INFO:  created CLAUDE.md
117
- INFO: Agent-instruction files synced (infra-kit 0.1.123)
118
- WARN: ⚠️ Failed to reopen cmux workspace for release/v1.48.0
119
- title: "hulyo-monorepo 1.48.0"
120
- error: {}
121
-
122
-  Test Files  58 passed (58)
123
-  Tests  536 passed (536)
124
-  Start at  13:05:13
125
-  Duration  1.72s (transform 4.15s, setup 637ms, import 9.34s, tests 1.95s, environment 7ms)
126
-
127
- [?25h
1
+ $ pnpm exec vitest run --reporter=minimal
2
+
3
+  RUN  v4.1.9 /Users/arthur/projects/infra-kit/apps/infra-kit/cli
4
+
5
+ Sourcemap for "/Users/arthur/Library/pnpm/store/v11/links/@/ink-testing-library/4.0.0/990ef278cd16926ca8f94e3d73dd86da3c7d702a314086dabc7217c3d9b139d2/node_modules/ink-testing-library/build/index.js" points to missing source files
6
+ INFO:  created CLAUDE.md
7
+ INFO: Agent-instruction files synced (infra-kit 0.1.124)
8
+ INFO:  updated CLAUDE.md
9
+ INFO: Agent-instruction files synced (infra-kit 0.1.124)
10
+ INFO:  created CLAUDE.md
11
+ INFO: Agent-instruction files synced (infra-kit 0.1.124)
12
+ INFO:  unchanged CLAUDE.md
13
+ INFO: Agent-instruction files synced (infra-kit 0.1.124)
14
+ INFO: Skipped agent-instruction files — no infra-kit.json at the repo root
15
+ INFO:  updated CLAUDE.md
16
+ INFO: Agent-instruction files synced (infra-kit 0.1.124)
17
+ INFO:  updated CLAUDE.md
18
+ INFO:  removed AGENTS.md
19
+ INFO: Agent-instruction files synced (infra-kit 0.1.124)
20
+ INFO:  updated CLAUDE.md
21
+ INFO:  updated AGENTS.md
22
+ INFO: Agent-instruction files synced (infra-kit 0.1.124)
23
+ INFO:  created CLAUDE.md
24
+ INFO: Agent-instruction files synced (infra-kit 0.1.124)
25
+ INFO:  updated CLAUDE.md
26
+ INFO:  removed AGENTS.md
27
+ INFO: Agent-instruction files synced (infra-kit 0.1.124)
28
+ INFO:  unchanged CLAUDE.md
29
+ INFO: Agent-instruction files synced (infra-kit 0.1.124)
30
+ INFO:  created CLAUDE.md
31
+ INFO: Agent-instruction files synced (infra-kit 0.1.124)
32
+ INFO: Factory config: ~/.infra-kit/vendor.json [ ]
33
+ INFO: 
34
+ Not found — run `infra-kit vendor-config --init` to scaffold it.
35
+ INFO: Factory config: ~/.infra-kit/vendor.json [✓]
36
+ INFO: workspaceDir: /tmp/vendor-config-home-0oZ62V/projects (resolved: /tmp/vendor-config-home-0oZ62V/projects) [✓ exists]
37
+ INFO: Targets:
38
+ INFO:  [✓] repo-a ~/projects/repo-a
39
+ INFO: Factory config: ~/.infra-kit/vendor.json [✓]
40
+ INFO: workspaceDir: /tmp/vendor-config-home-aBNgrT/projects (resolved: /tmp/vendor-config-home-aBNgrT/projects) [✓ exists]
41
+ INFO: Targets:
42
+ INFO:  [ ] missing-repo ~/projects/missing-repo (not found clone or remove)
43
+ INFO: ✓ Created ~/.infra-kit/vendor.json
44
+ INFO:  Edit `workspaceDir` (placeholder: ~/projects) to point at where your repos live.
45
+ INFO:  Add at least one repo name to `targets` before running vendor sync/manifest/diff.
46
+ INFO: ✓ Migrated ~/infra-kit.yml → ~/infra-kit.json
47
+ INFO: ⚠ Skipped ~/infra-kit.yml — ~/infra-kit.json already exists (remove the stale .yml manually)
48
+ INFO: ✓ Created ~/.infra-kit/vendor.json
49
+ INFO: ✓ Migrated ~/infra-kit.yml → ~/infra-kit.json
50
+ INFO: ⚠ Skipped ~/.infra-kit/config.yml — invalid config: ✖ Too small: expected array to have >=1 items
51
+ at environments
52
+ INFO:  Seeded 2 target(s) from the source vendor.config.ts.
53
+ INFO:  Edit `workspaceDir` (placeholder: ~/projects) to point at where your repos live.
54
+ INFO: Factory config already exists at ~/.infra-kit/vendor.json leaving it untouched.
55
+ INFO:  Skipped ~/infra-kit.yml Unexpected : in flow sequence at line 2, column 5:
56
+
57
+ : : :
58
+ ^
59
+ 
60
+ INFO:  Migrated ~/infra-kit.yml ~/infra-kit.json
61
+ INFO:  Migrated ~/.infra-kit/config.yml~/.infra-kit/infra-kit.json
62
+ INFO: ✓ Migrated ~/.infra-kit/projects/infra-kit-init-migrate-test-5vtJ8V/infra-kit.yml ~/.infra-kit/projects/infra-kit-init-migrate-test-5vtJ8V/infra-kit.json
63
+ INFO:  Normalized ide config in ~/infra-kit.json (removed legacy "mode")
64
+ INFO: ✓ Normalized ide config in ~/infra-kit.json (removed legacy "mode")
65
+ INFO:  Normalized ide config in ~/.infra-kit/infra-kit.json (removed legacy "mode")
66
+ INFO: ✓ Normalized ide config in ~/.infra-kit/projects/infra-kit-init-migrate-test-rV9HgR/infra-kit.json (removed legacy "mode")
67
+ INFO:  Skipped normalizing ~/infra-kit.json Expected property name or '}' in JSON at position 2 (line 1 column 3)
68
+ INFO:  Renamed ~/.infra-kit/config.json ~/.infra-kit/infra-kit.json
69
+ INFO:  Renamed ~/.infra-kit/config.example.jsonc ~/.infra-kit/infra-kit.example.jsonc
70
+ INFO:  target-repo vendor/configs (1 change(s)):
71
+ INFO:  >f.st..... configs/a.js
72
+ INFO: ✅ target-repo: copied 1/1 items + manifest
73
+ INFO: ⚠ Skipped ~/.infra-kit/config.json — ~/.infra-kit/infra-kit.json already exists (remove the stale file manually)
74
+ INFO: 
75
+ @x/ok PASS
76
+ INFO: ✓ Renamed ~/.infra-kit/config.example.jsonc → ~/.infra-kit/infra-kit.example.jsonc
77
+ INFO: 🎉 No drift detected.
78
+ INFO: ⚠️ target-repo: target does not exist — skipped
79
+ INFO:  [PASS] infra-kit.config.ts: present and valid
80
+ INFO: 
81
+ All valid (1 checked)
82
+ INFO: 
83
+ @x/no-config FAIL
84
+ INFO:  [FAIL] infra-kit.config.ts: infra-kit.config.ts not found at /tmp/audit-cmd-JZgXkf/infra-kit.config.ts
85
+ INFO: 
86
+ Audit failed (1 checked)
87
+ INFO:  Migrated ~/.infra-kit/config.yml ~/.infra-kit/infra-kit.json
88
+ INFO:  Migrated ~/.infra-kit/config.yml ~/.infra-kit/infra-kit.json
89
+ INFO:  Skipped ~/.infra-kit/config.json ~/.infra-kit/infra-kit.json already exists (remove the stale file manually)
90
+ INFO: ✅ vendor/ matches manifest (1 files).
91
+ ERROR:  vendor/ has drifted from vendor/.sync-manifest.json.
92
+ ERROR:  These files are mirrored from the source repo — edit them upstream, not here.
93
+ INFO: 
94
+ Modified (1):
95
+ INFO:  configs/a.js
96
+ INFO: ℹ️ No vendor/ folder found nothing to check.
97
+ ERROR:  Missing vendor/.sync-manifest.json. Re-run the vendor sync to generate it.
98
+ INFO: ✅ vendor/ matches manifest (2 files).
99
+ ERROR: ❌ vendor/ has drifted from vendor/.sync-manifest.json.
100
+ ERROR:  These files are mirrored from the source repo — edit them upstream, not here.
101
+ INFO: 
102
+ Modified (1):
103
+ INFO:  a.js
104
+ INFO: 
105
+ Added (not in manifest) (1):
106
+ INFO:  c.js
107
+ INFO: 
108
+ Removed (in manifest, now missing) (1):
109
+ INFO:  b.js
110
+ ERROR: vendor/.sync-manifest.json has a newer schemaVersion (2) than this CLI supports. Upgrade infra-kit.
111
+ INFO: Wrote user-global config to /tmp/seed-user-global-test-tL4XJz/.infra-kit/infra-kit.json (see the sibling .example.jsonc files for reference)
112
+ INFO: Wrote user-global config to /tmp/seed-user-global-test-3uCOp7/.infra-kit/infra-kit.json (see the sibling .example.jsonc files for reference)
113
+ INFO: User-global config already present at /tmp/seed-user-global-test-0Jr9XM/.infra-kit/infra-kit.json (refreshed reference examples)
114
+ INFO:  created CLAUDE.md
115
+ INFO: Agent-instruction files synced (infra-kit 0.1.124)
116
+ INFO:  created CLAUDE.md
117
+ INFO: Agent-instruction files synced (infra-kit 0.1.124)
118
+ WARN: ⚠️ Failed to reopen cmux workspace for release/v1.48.0
119
+ title: "hulyo-monorepo 1.48.0"
120
+ error: {}
121
+
122
+  Test Files  59 passed (59)
123
+  Tests  542 passed (542)
124
+  Start at  20:37:57
125
+  Duration  4.53s (transform 9.76s, setup 2.11s, import 23.46s, tests 4.71s, environment 31ms)
126
+
127
+
128
+
@@ -1 +1 @@
1
- $ tsc --noEmit
1
+ $ tsc --noEmit