infra-kit 0.1.105 → 0.1.108

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 (50) hide show
  1. package/.eslintcache +1 -1
  2. package/.omc/state/agent-replay-36d91435-50b4-442f-9f4e-3cc68d776236.jsonl +2 -0
  3. package/.omc/state/agent-replay-afc6290b-40d3-4bef-b3b6-14484c034ab9.jsonl +14 -0
  4. package/.omc/state/agent-replay-e947a3c6-989d-4a60-91dd-6b0ddd827b2d.jsonl +3 -0
  5. package/.omc/state/idle-notif-cooldown.json +1 -1
  6. package/.omc/state/sessions/36d91435-50b4-442f-9f4e-3cc68d776236/pre-tool-advisory-throttle.json +18 -0
  7. package/.omc/state/sessions/36d91435-50b4-442f-9f4e-3cc68d776236/subagent-tracking-state.json +17 -0
  8. package/.omc/state/sessions/afc6290b-40d3-4bef-b3b6-14484c034ab9/last-tool-error-state.json +7 -0
  9. package/.omc/state/sessions/afc6290b-40d3-4bef-b3b6-14484c034ab9/mission-state.json +89 -0
  10. package/.omc/state/sessions/afc6290b-40d3-4bef-b3b6-14484c034ab9/pre-tool-advisory-throttle.json +34 -0
  11. package/.omc/state/sessions/afc6290b-40d3-4bef-b3b6-14484c034ab9/ralph-state.json +13 -0
  12. package/.omc/state/sessions/afc6290b-40d3-4bef-b3b6-14484c034ab9/skill-active-state.json +15 -0
  13. package/.omc/state/sessions/afc6290b-40d3-4bef-b3b6-14484c034ab9/subagent-tracking-state.json +35 -0
  14. package/.omc/state/sessions/afc6290b-40d3-4bef-b3b6-14484c034ab9/ultrawork-state.json +11 -0
  15. package/.omc/state/sessions/e947a3c6-989d-4a60-91dd-6b0ddd827b2d/last-tool-error-state.json +7 -0
  16. package/.omc/state/sessions/e947a3c6-989d-4a60-91dd-6b0ddd827b2d/pre-tool-advisory-throttle.json +10 -0
  17. package/.omc/state/sessions/e947a3c6-989d-4a60-91dd-6b0ddd827b2d/subagent-tracking-state.json +26 -0
  18. package/.turbo/turbo-build.log +2 -2
  19. package/.turbo/turbo-test.log +43 -6
  20. package/dist/cli.js +61 -54
  21. package/dist/cli.js.map +4 -4
  22. package/dist/mcp.js +31 -31
  23. package/dist/mcp.js.map +4 -4
  24. package/package.json +1 -1
  25. package/src/commands/.omc/state/sessions/afc6290b-40d3-4bef-b3b6-14484c034ab9/pre-tool-advisory-throttle.json +14 -0
  26. package/src/commands/doctor/__tests__/agent-files.test.ts +110 -0
  27. package/src/commands/doctor/doctor.ts +66 -1
  28. package/src/commands/init/__tests__/agent-files.test.ts +147 -0
  29. package/src/commands/init/agent-files.ts +199 -0
  30. package/src/commands/init/index.ts +7 -0
  31. package/src/commands/init/init.ts +34 -25
  32. package/src/commands/worktrees-add/worktrees-add.ts +13 -1
  33. package/src/commands/worktrees-open/__tests__/open-cmux.test.ts +96 -0
  34. package/src/commands/worktrees-open/worktrees-open.ts +10 -3
  35. package/src/entry/cli.ts +1 -1
  36. package/src/integrations/cmux/__tests__/canonicalize-cmux-title.test.ts +56 -0
  37. package/src/integrations/cmux/__tests__/close-workspace-by-title.test.ts +63 -0
  38. package/src/integrations/cmux/__tests__/list-workspace-titles.test.ts +65 -0
  39. package/src/integrations/cmux/canonicalize-cmux-title.ts +31 -0
  40. package/src/integrations/cmux/close-workspace-by-title.ts +12 -4
  41. package/src/integrations/cmux/index.ts +1 -0
  42. package/src/integrations/cmux/list-workspace-titles.ts +11 -6
  43. package/src/integrations/cmux/open-workspace-with-layout.ts +1 -1
  44. package/src/integrations/gh/gh-release-prs/.omc/state/sessions/c6ed6186-1aac-48e0-aa2a-edc6da8e0410/pre-tool-advisory-throttle.json +10 -0
  45. package/src/integrations/gh/gh-release-prs/__tests__/gh-release-prs.test.ts +89 -6
  46. package/src/integrations/gh/gh-release-prs/gh-release-prs.ts +1 -1
  47. package/src/lib/managed-block/__tests__/managed-block.test.ts +121 -0
  48. package/src/lib/managed-block/index.ts +8 -0
  49. package/src/lib/managed-block/managed-block.ts +145 -0
  50. package/tsconfig.tsbuildinfo +1 -1
@@ -0,0 +1,89 @@
1
+ {
2
+ "updatedAt": "2026-06-15T09:23:33.369Z",
3
+ "missions": [
4
+ {
5
+ "id": "session:afc6290b-40d3-4bef-b3b6-14484c034ab9:none",
6
+ "source": "session",
7
+ "name": "none",
8
+ "objective": "Session mission",
9
+ "createdAt": "2026-06-15T08:52:52.905Z",
10
+ "updatedAt": "2026-06-15T09:23:33.369Z",
11
+ "status": "done",
12
+ "workerCount": 3,
13
+ "taskCounts": {
14
+ "total": 3,
15
+ "pending": 0,
16
+ "blocked": 0,
17
+ "inProgress": 0,
18
+ "completed": 3,
19
+ "failed": 0
20
+ },
21
+ "agents": [
22
+ {
23
+ "name": "architect:a5998ac",
24
+ "role": "architect",
25
+ "ownership": "a5998aca6478ae778",
26
+ "status": "done",
27
+ "currentStep": null,
28
+ "latestUpdate": "completed",
29
+ "completedSummary": null,
30
+ "updatedAt": "2026-06-15T08:53:59.941Z"
31
+ },
32
+ {
33
+ "name": "architect:a2bacb1",
34
+ "role": "architect",
35
+ "ownership": "a2bacb186c2a18ff8",
36
+ "status": "done",
37
+ "currentStep": null,
38
+ "latestUpdate": "completed",
39
+ "completedSummary": null,
40
+ "updatedAt": "2026-06-15T09:15:20.963Z"
41
+ },
42
+ {
43
+ "name": "architect:a5c2d7d",
44
+ "role": "architect",
45
+ "ownership": "a5c2d7d3a030026dd",
46
+ "status": "done",
47
+ "currentStep": null,
48
+ "latestUpdate": "completed",
49
+ "completedSummary": null,
50
+ "updatedAt": "2026-06-15T09:23:33.369Z"
51
+ }
52
+ ],
53
+ "timeline": [
54
+ {
55
+ "id": "session-start:a2bacb186c2a18ff8:2026-06-15T09:14:25.832Z",
56
+ "at": "2026-06-15T09:14:25.832Z",
57
+ "kind": "update",
58
+ "agent": "architect:a2bacb1",
59
+ "detail": "started architect:a2bacb1",
60
+ "sourceKey": "session-start:a2bacb186c2a18ff8"
61
+ },
62
+ {
63
+ "id": "session-stop:a2bacb186c2a18ff8:2026-06-15T09:15:20.963Z",
64
+ "at": "2026-06-15T09:15:20.963Z",
65
+ "kind": "completion",
66
+ "agent": "architect:a2bacb1",
67
+ "detail": "completed",
68
+ "sourceKey": "session-stop:a2bacb186c2a18ff8"
69
+ },
70
+ {
71
+ "id": "session-start:a5c2d7d3a030026dd:2026-06-15T09:22:52.318Z",
72
+ "at": "2026-06-15T09:22:52.318Z",
73
+ "kind": "update",
74
+ "agent": "architect:a5c2d7d",
75
+ "detail": "started architect:a5c2d7d",
76
+ "sourceKey": "session-start:a5c2d7d3a030026dd"
77
+ },
78
+ {
79
+ "id": "session-stop:a5c2d7d3a030026dd:2026-06-15T09:23:33.369Z",
80
+ "at": "2026-06-15T09:23:33.369Z",
81
+ "kind": "completion",
82
+ "agent": "architect:a5c2d7d",
83
+ "detail": "completed",
84
+ "sourceKey": "session-stop:a5c2d7d3a030026dd"
85
+ }
86
+ ]
87
+ }
88
+ ]
89
+ }
@@ -0,0 +1,34 @@
1
+ {
2
+ "version": 1,
3
+ "entries": {
4
+ "1bb6914bc42b891c26d46c8ae2fd4f44071f59862e89dc550f4c82877b700216": {
5
+ "last_emitted_at_ms": 1781515425560,
6
+ "message": "The boulder never stops. Continue until all tasks complete."
7
+ },
8
+ "79a93d4a2f8f50b95f852280616242fee1855dc99a3c75211917f55e72e95fae": {
9
+ "last_emitted_at_ms": 1781515383050,
10
+ "message": "Use parallel execution for independent tasks. Use run_in_background for long operations (npm install, builds, tests)."
11
+ },
12
+ "ca054d5902820773c7d230e891055fef1f874c5d19e8bddd68a6db0d77e5d61d": {
13
+ "last_emitted_at_ms": 1781515372191,
14
+ "message": "Spawning agent: oh-my-claudecode:architect (inherit) | Task: Architect verification of extraction"
15
+ },
16
+ "466399dafa2d20f60587180bad0a07358eb7f2bce724df0ff682f038ad33f5ad": {
17
+ "last_emitted_at_ms": 1781515319445,
18
+ "message": "Read multiple files in parallel when possible for faster analysis."
19
+ },
20
+ "445ed27a3872b681d98190bae61ccb84954e1bc4e140df5370be958dee776b3a": {
21
+ "last_emitted_at_ms": 1781515310249,
22
+ "message": "Verify changes work after editing. Test functionality before marking complete."
23
+ },
24
+ "e3dc08ae4de7ca6310348c054c558b6b7e964c10d1885f3984f7a5d054e1cc9b": {
25
+ "last_emitted_at_ms": 1781514865704,
26
+ "message": "Spawning agent: oh-my-claudecode:architect (inherit) | Task: Architect verification of consolidation"
27
+ },
28
+ "0a111b4cf6f22c210198d56e7cca5db32d22457733546bf8919b785793bc333f": {
29
+ "last_emitted_at_ms": 1781513572777,
30
+ "message": "Spawning agent: oh-my-claudecode:architect (inherit) | Task: Architect verification of implementation"
31
+ }
32
+ },
33
+ "updated_at": "2026-06-15T09:23:45.560Z"
34
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "active": true,
3
+ "iteration": 2,
4
+ "max_iterations": 100,
5
+ "started_at": "2026-06-15T09:08:52.297Z",
6
+ "prompt": "/ralph maybe we don't need one more apps/infra-kit/cli/src/commands/init/agents.ts, the logic must be in the init command only and doctor to check exist",
7
+ "session_id": "afc6290b-40d3-4bef-b3b6-14484c034ab9",
8
+ "project_path": "/Users/arthur/projects/infra-kit/apps/infra-kit/cli",
9
+ "linked_ultrawork": true,
10
+ "awaiting_confirmation": true,
11
+ "awaiting_confirmation_set_at": "2026-06-15T09:08:52.297Z",
12
+ "last_checked_at": "2026-06-15T09:17:16.697Z"
13
+ }
@@ -0,0 +1,15 @@
1
+ {
2
+ "active": true,
3
+ "skill_name": "ai-slop-cleaner",
4
+ "session_id": "afc6290b-40d3-4bef-b3b6-14484c034ab9",
5
+ "started_at": "2026-06-15T09:23:45.558Z",
6
+ "last_checked_at": "2026-06-15T09:23:45.558Z",
7
+ "reinforcement_count": 0,
8
+ "max_reinforcements": 5,
9
+ "stale_ttl_ms": 900000,
10
+ "_meta": {
11
+ "written_at": "2026-06-15T09:23:45.558Z",
12
+ "mode": "skill-active",
13
+ "sessionId": "afc6290b-40d3-4bef-b3b6-14484c034ab9"
14
+ }
15
+ }
@@ -0,0 +1,35 @@
1
+ {
2
+ "agents": [
3
+ {
4
+ "agent_id": "a5998aca6478ae778",
5
+ "agent_type": "oh-my-claudecode:architect",
6
+ "started_at": "2026-06-15T08:52:52.905Z",
7
+ "parent_mode": "none",
8
+ "status": "completed",
9
+ "completed_at": "2026-06-15T08:53:59.941Z",
10
+ "duration_ms": 67036
11
+ },
12
+ {
13
+ "agent_id": "a2bacb186c2a18ff8",
14
+ "agent_type": "oh-my-claudecode:architect",
15
+ "started_at": "2026-06-15T09:14:25.832Z",
16
+ "parent_mode": "none",
17
+ "status": "completed",
18
+ "completed_at": "2026-06-15T09:15:20.963Z",
19
+ "duration_ms": 55131
20
+ },
21
+ {
22
+ "agent_id": "a5c2d7d3a030026dd",
23
+ "agent_type": "oh-my-claudecode:architect",
24
+ "started_at": "2026-06-15T09:22:52.318Z",
25
+ "parent_mode": "none",
26
+ "status": "completed",
27
+ "completed_at": "2026-06-15T09:23:33.369Z",
28
+ "duration_ms": 41051
29
+ }
30
+ ],
31
+ "total_spawned": 3,
32
+ "total_completed": 3,
33
+ "total_failed": 0,
34
+ "last_updated": "2026-06-15T09:23:33.471Z"
35
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "active": true,
3
+ "started_at": "2026-06-15T09:08:52.309Z",
4
+ "original_prompt": "/ralph maybe we don't need one more apps/infra-kit/cli/src/commands/init/agents.ts, the logic must be in the init command only and doctor to check exist",
5
+ "session_id": "afc6290b-40d3-4bef-b3b6-14484c034ab9",
6
+ "project_path": "/Users/arthur/projects/infra-kit/apps/infra-kit/cli",
7
+ "reinforcement_count": 0,
8
+ "awaiting_confirmation": true,
9
+ "awaiting_confirmation_set_at": "2026-06-15T09:08:52.309Z",
10
+ "last_checked_at": "2026-06-15T09:08:52.309Z"
11
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "tool_name": "mcp__plugin_oh-my-claudecode_t__lsp_diagnostics",
3
+ "tool_input_preview": "{\"file\":\"/Users/arthur/projects/infra-kit/apps/infra-kit/cli/src/integrations/cmux/open-workspace-with-layout.ts\",\"severity\":\"error\"}",
4
+ "error": "Language server 'typescript-language-server' not found.\nInstall with: npm install -g typescript-language-server typescript",
5
+ "timestamp": "2026-06-15T08:49:45.949Z",
6
+ "retry_count": 1
7
+ }
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": 1,
3
+ "entries": {
4
+ "79a93d4a2f8f50b95f852280616242fee1855dc99a3c75211917f55e72e95fae": {
5
+ "last_emitted_at_ms": 1781513381955,
6
+ "message": "Use parallel execution for independent tasks. Use run_in_background for long operations (npm install, builds, tests)."
7
+ }
8
+ },
9
+ "updated_at": "2026-06-15T08:49:41.955Z"
10
+ }
@@ -0,0 +1,26 @@
1
+ {
2
+ "agents": [
3
+ {
4
+ "agent_id": "a5be9a27ade27f5f0",
5
+ "agent_type": "unknown",
6
+ "started_at": "2026-06-15T08:50:28.078Z",
7
+ "parent_mode": "none",
8
+ "status": "completed",
9
+ "completed_at": "2026-06-15T08:50:28.078Z",
10
+ "duration_ms": 0
11
+ },
12
+ {
13
+ "agent_id": "adec10251f2fb8798",
14
+ "agent_type": "unknown",
15
+ "started_at": "2026-06-15T09:00:29.228Z",
16
+ "parent_mode": "none",
17
+ "status": "completed",
18
+ "completed_at": "2026-06-15T09:00:29.228Z",
19
+ "duration_ms": 0
20
+ }
21
+ ],
22
+ "total_spawned": 0,
23
+ "total_completed": 2,
24
+ "total_failed": 0,
25
+ "last_updated": "2026-06-15T09:00:29.331Z"
26
+ }
@@ -1,7 +1,7 @@
1
1
 
2
2
  $ pnpm run clean-artifacts && node ./scripts/build.js
3
3
  $ rm -rf dist
4
- ✅ Build was completed successfully: cli.js - 0.099 MB
4
+ ✅ Build was completed successfully: cli.js - 0.104 MB
5
5
  ✅ Build was completed successfully: index.js - 0.0000687 MB
6
- ✅ Build was completed successfully: mcp.js - 0.0813 MB
6
+ ✅ Build was completed successfully: mcp.js - 0.0815 MB
7
7
  ✅ Type declarations emitted: dist/entry/index.d.ts
@@ -15,7 +15,29 @@
15
15
  
16
16
  INFO: ✓ Migrated ~/infra-kit.yml → ~/infra-kit.json
17
17
  INFO: ✓ Migrated ~/.infra-kit/config.yml → ~/.infra-kit/config.json
18
- INFO: ✓ Migrated ~/.infra-kit/projects/infra-kit-init-migrate-test-x2h6nB/infra-kit.yml → ~/.infra-kit/projects/infra-kit-init-migrate-test-x2h6nB/infra-kit.json
18
+ INFO: ✓ Migrated ~/.infra-kit/projects/infra-kit-init-migrate-test-GkJzDm/infra-kit.yml → ~/.infra-kit/projects/infra-kit-init-migrate-test-GkJzDm/infra-kit.json
19
+ INFO:  created AGENTS.md
20
+ INFO:  created CLAUDE.md
21
+ INFO:  created .cursor/rules/infra-kit.mdc
22
+ INFO: Agent-instruction files synced (infra-kit 0.1.107)
23
+ INFO:  created AGENTS.md
24
+ INFO:  updated CLAUDE.md
25
+ INFO:  created .cursor/rules/infra-kit.mdc
26
+ INFO: Agent-instruction files synced (infra-kit 0.1.107)
27
+ INFO:  created AGENTS.md
28
+ INFO:  created CLAUDE.md
29
+ INFO:  created .cursor/rules/infra-kit.mdc
30
+ INFO: Agent-instruction files synced (infra-kit 0.1.107)
31
+ INFO:  unchanged AGENTS.md
32
+ INFO:  unchanged CLAUDE.md
33
+ INFO:  unchanged .cursor/rules/infra-kit.mdc
34
+ INFO: Agent-instruction files synced (infra-kit 0.1.107)
35
+ INFO: Skipped agent-instruction files — no infra-kit.json at the repo root
36
+ INFO:  updated AGENTS.md
37
+ INFO:  created CLAUDE.md
38
+ INFO:  created .cursor/rules/infra-kit.mdc
39
+ INFO: Agent-instruction files synced (infra-kit 0.1.107)
40
+ INFO:  created AGENTS.md
19
41
  INFO: 
20
42
  @x/ok — PASS
21
43
  INFO:  [PASS] infra-kit.config.ts: present and valid
@@ -23,13 +45,28 @@
23
45
  ✅ All valid (1 checked)
24
46
  INFO: 
25
47
  @x/no-config — FAIL
26
- INFO:  [FAIL] infra-kit.config.ts: infra-kit.config.ts not found at /tmp/audit-cmd-wWaelG/infra-kit.config.ts
48
+ INFO:  created CLAUDE.md
49
+ INFO:  created .cursor/rules/infra-kit.mdc
50
+ INFO: Agent-instruction files synced (infra-kit 0.1.107)
51
+ INFO:  created AGENTS.md
52
+ INFO:  created CLAUDE.md
53
+ INFO:  created .cursor/rules/infra-kit.mdc
54
+ INFO: Agent-instruction files synced (infra-kit 0.1.107)
55
+ INFO:  created AGENTS.md
56
+ INFO:  created CLAUDE.md
57
+ INFO:  created .cursor/rules/infra-kit.mdc
58
+ INFO: Agent-instruction files synced (infra-kit 0.1.107)
59
+ INFO:  created AGENTS.md
60
+ INFO:  created CLAUDE.md
61
+ INFO:  created .cursor/rules/infra-kit.mdc
62
+ INFO: Agent-instruction files synced (infra-kit 0.1.107)
63
+ INFO:  [FAIL] infra-kit.config.ts: infra-kit.config.ts not found at /tmp/audit-cmd-pDr3qc/infra-kit.config.ts
27
64
  INFO: 
28
65
  ❌ Audit failed (1 checked)
29
66
 
30
-  Test Files  18 passed (18)
31
-  Tests  214 passed (214)
32
-  Start at  22:47:36
33
-  Duration  917ms (transform 2.10s, setup 371ms, import 3.66s, tests 483ms, environment 3ms)
67
+  Test Files  25 passed (25)
68
+  Tests  262 passed (262)
69
+  Start at  13:56:05
70
+  Duration  1.44s (transform 3.26s, setup 697ms, import 6.73s, tests 750ms, environment 2ms)
34
71
 
35
72
  [?25h