infra-kit 0.1.98 → 0.1.100

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 (56) hide show
  1. package/.eslintcache +1 -1
  2. package/.omc/state/agent-replay-d367c3be-9c2a-48e7-bcea-b45861af568c.jsonl +2 -0
  3. package/.omc/state/agent-replay-f2846d8f-974c-486c-b16f-4bdaa28ca45f.jsonl +1 -0
  4. package/.omc/state/last-tool-error.json +7 -0
  5. package/.omc/state/subagent-tracking.json +7 -0
  6. package/.turbo/turbo-eslint-check.log +2 -4
  7. package/.turbo/turbo-eslint-fix.log +1 -0
  8. package/.turbo/turbo-prettier-check.log +2 -4
  9. package/.turbo/turbo-prettier-fix.log +1 -10
  10. package/.turbo/turbo-test.log +12 -191
  11. package/.turbo/turbo-ts-check.log +2 -9
  12. package/dist/cli.js +69 -44
  13. package/dist/cli.js.map +4 -4
  14. package/dist/mcp.js +45 -34
  15. package/dist/mcp.js.map +4 -4
  16. package/package.json +11 -11
  17. package/src/commands/config/config.ts +1 -1
  18. package/src/commands/doctor/doctor.ts +62 -12
  19. package/src/commands/env-clear/env-clear.ts +5 -10
  20. package/src/commands/env-list/env-list.ts +5 -10
  21. package/src/commands/env-load/env-load.ts +5 -10
  22. package/src/commands/env-status/env-status.ts +5 -10
  23. package/src/commands/gh-merge-dev/gh-merge-dev.ts +17 -18
  24. package/src/commands/gh-release-deliver/gh-release-deliver.ts +290 -89
  25. package/src/commands/gh-release-deploy-all/gh-release-deploy-all.ts +15 -14
  26. package/src/commands/gh-release-deploy-selected/gh-release-deploy-selected.ts +30 -23
  27. package/src/commands/gh-release-list/gh-release-list.ts +5 -10
  28. package/src/commands/init/init.ts +17 -6
  29. package/src/commands/release-create/release-create.ts +223 -139
  30. package/src/commands/release-desc-edit/index.ts +1 -0
  31. package/src/commands/release-desc-edit/release-desc-edit.ts +207 -0
  32. package/src/commands/version/version.ts +5 -10
  33. package/src/commands/worktrees-add/worktrees-add.ts +34 -26
  34. package/src/commands/worktrees-list/worktrees-list.ts +6 -11
  35. package/src/commands/worktrees-open/worktrees-open.ts +10 -6
  36. package/src/commands/worktrees-remove/worktrees-remove.ts +18 -14
  37. package/src/commands/worktrees-sync/worktrees-sync.ts +17 -12
  38. package/src/entry/cli.ts +24 -21
  39. package/src/integrations/gh/gh-release-prs/gh-release-prs.ts +21 -0
  40. package/src/integrations/gh/gh-release-prs/index.ts +1 -1
  41. package/src/integrations/gh/index.ts +1 -1
  42. package/src/integrations/jira/api.ts +8 -17
  43. package/src/integrations/jira/index.ts +2 -0
  44. package/src/lib/__tests__/infra-kit-config.test.ts +50 -0
  45. package/src/lib/errors/__tests__/operation-error.test.ts +62 -0
  46. package/src/lib/errors/format-zx-error.ts +54 -0
  47. package/src/lib/errors/operation-error.ts +80 -0
  48. package/src/lib/infra-kit-config/infra-kit-config.ts +7 -0
  49. package/src/lib/version-utils/__tests__/next-version.test.ts +128 -23
  50. package/src/lib/version-utils/index.ts +4 -2
  51. package/src/lib/version-utils/next-version.ts +64 -25
  52. package/src/mcp/tools/index.ts +2 -2
  53. package/src/types.ts +56 -2
  54. package/tsconfig.tsbuildinfo +1 -1
  55. package/src/commands/release-create-batch/index.ts +0 -1
  56. package/src/commands/release-create-batch/release-create-batch.ts +0 -222
@@ -1,191 +1,12 @@
1
-
2
- > infra-kit@0.1.97 test /Users/arthur/projects/infra-kit/apps/infra-kit/cli
3
- > pnpm exec vitest run --reporter=dot
4
-
5
-
6
-  RUN  v4.1.5 /Users/arthur/projects/infra-kit/apps/infra-kit/cli
7
-
8
- ··············xxxxxxx·····················
9
-
10
- ⎯⎯⎯⎯⎯⎯⎯ Failed Tests 7 ⎯⎯⎯⎯⎯⎯⎯
11
-
12
-  FAIL  src/lib/__tests__/infra-kit-config.test.ts > getInfraKitConfig > reads and validates a well-formed infra-kit.yml
13
- Error: [vitest] No "getRepoName" export is defined on the "src/lib/git-utils" mock. Did you forget to return it from "vi.mock"?
14
- If you need to partially mock a module, you can use "importOriginal" helper inside:
15
- 
16
- vi.mock(import("src/lib/git-utils"), async (importOriginal) => {
17
- const actual = await importOriginal()
18
- return {
19
- ...actual,
20
- // your mocked methods
21
- }
22
- })
23
-
24
-  ❯ getInfraKitConfigPaths src/lib/infra-kit-config/infra-kit-config.ts:104:29
25
- 102| export const getInfraKitConfigPaths = async (): Promise<InfraKitConfig…
26
- 103| const projectRoot = await getProjectRoot()
27
- 104| const projectName = await getRepoName()
28
-  | ^
29
- 105| const userConfigDir = path.join(os.homedir(), USER_CONFIG_DIR_NAME)
30
- 106|
31
-  ❯ Module.getInfraKitConfig src/lib/infra-kit-config/infra-kit-config.ts:133:17
32
-  ❯ src/lib/__tests__/infra-kit-config.test.ts:62:19
33
-  ❯ withTmpRepo src/lib/__tests__/infra-kit-config.test.ts:41:5
34
-  ❯ src/lib/__tests__/infra-kit-config.test.ts:59:5
35
-
36
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[1/7]⎯
37
-
38
-  FAIL  src/lib/__tests__/infra-kit-config.test.ts > getInfraKitConfig > accepts ide and taskManager when provided
39
- Error: [vitest] No "getRepoName" export is defined on the "src/lib/git-utils" mock. Did you forget to return it from "vi.mock"?
40
- If you need to partially mock a module, you can use "importOriginal" helper inside:
41
- 
42
- vi.mock(import("src/lib/git-utils"), async (importOriginal) => {
43
- const actual = await importOriginal()
44
- return {
45
- ...actual,
46
- // your mocked methods
47
- }
48
- })
49
-
50
-  ❯ getInfraKitConfigPaths src/lib/infra-kit-config/infra-kit-config.ts:104:29
51
- 102| export const getInfraKitConfigPaths = async (): Promise<InfraKitConfig…
52
- 103| const projectRoot = await getProjectRoot()
53
- 104| const projectName = await getRepoName()
54
-  | ^
55
- 105| const userConfigDir = path.join(os.homedir(), USER_CONFIG_DIR_NAME)
56
- 106|
57
-  ❯ Module.getInfraKitConfig src/lib/infra-kit-config/infra-kit-config.ts:133:17
58
-  ❯ src/lib/__tests__/infra-kit-config.test.ts:93:19
59
-  ❯ withTmpRepo src/lib/__tests__/infra-kit-config.test.ts:41:5
60
-  ❯ src/lib/__tests__/infra-kit-config.test.ts:72:5
61
-
62
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[2/7]⎯
63
-
64
-  FAIL  src/lib/__tests__/infra-kit-config.test.ts > getInfraKitConfig > rejects ide.cursor mode=workspace without workspaceConfigPath
65
- AssertionError: expected [Function] to throw error matching /workspaceConfigPath/ but got '[vitest] No "getRepoName" export is d…'
66
-
67
- - Expected:
68
- /workspaceConfigPath/
69
-
70
- + Received:
71
- "[vitest] No \"getRepoName\" export is defined on the \"src/lib/git-utils\" mock. Did you forget to return it from \"vi.mock\"?
72
- If you need to partially mock a module, you can use \"importOriginal\" helper inside:
73
- "
74
-
75
-  ❯ src/lib/__tests__/infra-kit-config.test.ts:122:40
76
- 120| )
77
- 121|
78
- 122| await expect(getInfraKitConfig()).rejects.toThrow(/workspaceConf…
79
-  | ^
80
- 123| })
81
- 124| })
82
-  ❯ withTmpRepo src/lib/__tests__/infra-kit-config.test.ts:41:11
83
-  ❯ src/lib/__tests__/infra-kit-config.test.ts:107:11
84
-
85
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[3/7]⎯
86
-
87
-  FAIL  src/lib/__tests__/infra-kit-config.test.ts > getInfraKitConfig > throws when infra-kit.yml is missing
88
- AssertionError: expected [Function] to throw error matching /not found/ but got '[vitest] No "getRepoName" export is d…'
89
-
90
- - Expected:
91
- /not found/
92
-
93
- + Received:
94
- "[vitest] No \"getRepoName\" export is defined on the \"src/lib/git-utils\" mock. Did you forget to return it from \"vi.mock\"?
95
- If you need to partially mock a module, you can use \"importOriginal\" helper inside:
96
- "
97
-
98
-  ❯ src/lib/__tests__/infra-kit-config.test.ts:128:40
99
- 126| it('throws when infra-kit.yml is missing', async () => {
100
- 127| await withTmpRepo(async () => {
101
- 128| await expect(getInfraKitConfig()).rejects.toThrow(/not found/)
102
-  | ^
103
- 129| })
104
- 130| })
105
-  ❯ withTmpRepo src/lib/__tests__/infra-kit-config.test.ts:41:11
106
-  ❯ src/lib/__tests__/infra-kit-config.test.ts:127:11
107
-
108
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[4/7]⎯
109
-
110
-  FAIL  src/lib/__tests__/infra-kit-config.test.ts > getInfraKitConfig > throws a descriptive error on schema violations
111
- AssertionError: expected [Function] to throw error matching /Invalid infra-kit.yml/ but got '[vitest] No "getRepoName" export is d…'
112
-
113
- - Expected:
114
- /Invalid infra-kit.yml/
115
-
116
- + Received:
117
- "[vitest] No \"getRepoName\" export is defined on the \"src/lib/git-utils\" mock. Did you forget to return it from \"vi.mock\"?
118
- If you need to partially mock a module, you can use \"importOriginal\" helper inside:
119
- "
120
-
121
-  ❯ src/lib/__tests__/infra-kit-config.test.ts:139:40
122
- 137| )
123
- 138|
124
- 139| await expect(getInfraKitConfig()).rejects.toThrow(/Invalid infra…
125
-  | ^
126
- 140| })
127
- 141| })
128
-  ❯ withTmpRepo src/lib/__tests__/infra-kit-config.test.ts:41:11
129
-  ❯ src/lib/__tests__/infra-kit-config.test.ts:133:11
130
-
131
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[5/7]⎯
132
-
133
-  FAIL  src/lib/__tests__/infra-kit-config.test.ts > getInfraKitConfig > re-reads the file when mtime changes (long-running MCP scenario)
134
- Error: [vitest] No "getRepoName" export is defined on the "src/lib/git-utils" mock. Did you forget to return it from "vi.mock"?
135
- If you need to partially mock a module, you can use "importOriginal" helper inside:
136
- 
137
- vi.mock(import("src/lib/git-utils"), async (importOriginal) => {
138
- const actual = await importOriginal()
139
- return {
140
- ...actual,
141
- // your mocked methods
142
- }
143
- })
144
-
145
-  ❯ getInfraKitConfigPaths src/lib/infra-kit-config/infra-kit-config.ts:104:29
146
- 102| export const getInfraKitConfigPaths = async (): Promise<InfraKitConfig…
147
- 103| const projectRoot = await getProjectRoot()
148
- 104| const projectName = await getRepoName()
149
-  | ^
150
- 105| const userConfigDir = path.join(os.homedir(), USER_CONFIG_DIR_NAME)
151
- 106|
152
-  ❯ Module.getInfraKitConfig src/lib/infra-kit-config/infra-kit-config.ts:133:17
153
-  ❯ src/lib/__tests__/infra-kit-config.test.ts:149:21
154
-  ❯ withTmpRepo src/lib/__tests__/infra-kit-config.test.ts:41:5
155
-  ❯ src/lib/__tests__/infra-kit-config.test.ts:144:5
156
-
157
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[6/7]⎯
158
-
159
-  FAIL  src/lib/__tests__/infra-kit-config.test.ts > getInfraKitConfig > returns the cached value on repeated calls when mtime is unchanged
160
- Error: [vitest] No "getRepoName" export is defined on the "src/lib/git-utils" mock. Did you forget to return it from "vi.mock"?
161
- If you need to partially mock a module, you can use "importOriginal" helper inside:
162
- 
163
- vi.mock(import("src/lib/git-utils"), async (importOriginal) => {
164
- const actual = await importOriginal()
165
- return {
166
- ...actual,
167
- // your mocked methods
168
- }
169
- })
170
-
171
-  ❯ getInfraKitConfigPaths src/lib/infra-kit-config/infra-kit-config.ts:104:29
172
- 102| export const getInfraKitConfigPaths = async (): Promise<InfraKitConfig…
173
- 103| const projectRoot = await getProjectRoot()
174
- 104| const projectName = await getRepoName()
175
-  | ^
176
- 105| const userConfigDir = path.join(os.homedir(), USER_CONFIG_DIR_NAME)
177
- 106|
178
-  ❯ Module.getInfraKitConfig src/lib/infra-kit-config/infra-kit-config.ts:133:17
179
-  ❯ src/lib/__tests__/infra-kit-config.test.ts:172:17
180
-  ❯ withTmpRepo src/lib/__tests__/infra-kit-config.test.ts:41:5
181
-  ❯ src/lib/__tests__/infra-kit-config.test.ts:167:5
182
-
183
- ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯[7/7]⎯
184
-
185
-
186
-  Test Files  1 failed | 3 passed (4)
187
-  Tests  7 failed | 35 passed (42)
188
-  Start at  16:42:26
189
-  Duration  289ms (transform 125ms, setup 32ms, import 272ms, tests 27ms, environment 0ms)
190
-
191
-  ELIFECYCLE  Test failed. See above for more details.
1
+
2
+ $ pnpm exec vitest run --reporter=minimal
3
+ [?25l
4
+  RUN  v4.1.5 /Users/arthur/projects/infra-kit/apps/infra-kit/cli
5
+
6
+
7
+  Test Files  6 passed (6)
8
+  Tests  76 passed (76)
9
+  Start at  11:13:17
10
+  Duration  544ms (transform 334ms, setup 93ms, import 602ms, tests 79ms, environment 0ms)
11
+
12
+ [?25h
@@ -1,9 +1,2 @@
1
-
2
- > infra-kit@0.1.97 ts-check /Users/arthur/projects/infra-kit/apps/infra-kit/cli
3
- > tsc --noEmit
4
-
5
- src/commands/config/config.ts(69,38): error TS2339: Property 'projectSlug' does not exist on type 'InfraKitConfigPaths'.
6
- src/commands/config/config.ts(79,24): error TS2339: Property 'projectSlug' does not exist on type 'InfraKitConfigPaths'.
7
- src/commands/config/config.ts(108,57): error TS2339: Property 'projectSlug' does not exist on type 'InfraKitConfigPaths'.
8
- src/commands/doctor/doctor.ts(144,54): error TS2339: Property 'projectSlug' does not exist on type 'InfraKitConfigPaths'.
9
-  ELIFECYCLE  Command failed with exit code 2.
1
+
2
+ $ tsc --noEmit