infra-kit 0.1.67 → 0.1.71
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.
- package/dist/cli.js +14 -14
- package/dist/cli.js.map +3 -3
- package/dist/mcp.js +14 -14
- package/dist/mcp.js.map +3 -3
- package/package.json +4 -4
- package/src/commands/gh-merge-dev/gh-merge-dev.ts +23 -4
- package/src/commands/gh-release-deliver/gh-release-deliver.ts +6 -4
- package/src/commands/gh-release-deploy-all/gh-release-deploy-all.ts +13 -8
- package/src/commands/gh-release-deploy-selected/gh-release-deploy-selected.ts +30 -14
- package/src/commands/gh-release-deploy-service/gh-release-deploy-service.ts +19 -12
- package/src/commands/gh-release-list/gh-release-list.ts +3 -1
- package/src/commands/release-create-batch/release-create-batch.ts +6 -2
- package/src/commands/worktrees-add/worktrees-add.ts +54 -9
- package/src/commands/worktrees-list/worktrees-list.ts +19 -5
- package/src/commands/worktrees-remove/worktrees-remove.ts +19 -4
- package/src/commands/worktrees-sync/worktrees-sync.ts +7 -2
- package/src/entry/cli.ts +2 -1
- package/src/integrations/gh/gh-release-prs/gh-release-prs.ts +4 -1
- package/src/integrations/jira/api.ts +8 -2
- package/src/lib/git-utils/git-utils.ts +3 -1
- package/src/lib/tool-handler/tool-handler.ts +16 -14
- package/src/lib/version-utils/version-utils.ts +1 -0
|
@@ -6,23 +6,25 @@ interface ToolHandlerArgs {
|
|
|
6
6
|
handler: (params: any) => Promise<ToolsExecutionResult>
|
|
7
7
|
}
|
|
8
8
|
|
|
9
|
-
export const createToolHandler = (args: ToolHandlerArgs) =>
|
|
10
|
-
|
|
9
|
+
export const createToolHandler = (args: ToolHandlerArgs) => {
|
|
10
|
+
return async (params: unknown) => {
|
|
11
|
+
const { toolName, handler } = args
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
13
|
+
logger.info({ msg: `Tool execution started: ${toolName}`, params })
|
|
14
|
+
try {
|
|
15
|
+
const payload = await handler({ ...(params as object), confirmedCommand: true })
|
|
15
16
|
|
|
16
|
-
|
|
17
|
+
logger.info({ msg: `Tool execution successful: ${toolName}` })
|
|
17
18
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
return payload
|
|
20
|
+
} catch (error) {
|
|
21
|
+
logger.error({
|
|
22
|
+
err: error,
|
|
23
|
+
params,
|
|
24
|
+
msg: `Tool execution failed: ${toolName}`,
|
|
25
|
+
})
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
throw error
|
|
28
|
+
}
|
|
27
29
|
}
|
|
28
30
|
}
|