replicas-engine 0.1.1725 → 0.1.1727
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/src/{asp-host-7DGBCD52.js → asp-host-TWRX3YXW.js} +6 -6
- package/dist/src/{chunk-UDR2HT74.js → chunk-2X4SV2H7.js} +2 -2
- package/dist/src/{chunk-LIXZEE44.js → chunk-F2YDU3AP.js} +3 -3
- package/dist/src/{chunk-YNHFXBHT.js → chunk-GBVHK7GR.js} +416 -227
- package/dist/src/{chunk-ESENYL7M.js → chunk-LWHGKKNM.js} +1 -1
- package/dist/src/{chunk-DHAQM6LA.js → chunk-M6ELG3GK.js} +1 -1
- package/dist/src/{chunk-APCSKPLU.js → chunk-NTSUADYM.js} +1 -1
- package/dist/src/{chunk-3SJP6X3P.js → chunk-OAFO4KYM.js} +86 -43
- package/dist/src/{chunk-ZYRAETMX.js → chunk-OY6X5AUJ.js} +2 -2
- package/dist/src/{chunk-4YQ4UWFY.js → chunk-QN5PAZSN.js} +65 -8
- package/dist/src/{chunk-7ZDAVYTV.js → chunk-XCFPXSY4.js} +4 -0
- package/dist/src/{chunk-EZWCNWX2.js → chunk-YKUHRKKX.js} +2 -2
- package/dist/src/codemode-mcp.js +4 -4
- package/dist/src/command-protection-hook.js +17 -6
- package/dist/src/headless-agent.js +48 -5
- package/dist/src/index.js +620 -157
- package/dist/src/post-tool-pr-hook.js +4 -3
- package/dist/src/subagent-mcp.js +1 -1
- package/package.json +1 -1
|
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
publishedPullRequestUrls
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LWHGKKNM.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
9
|
} from "./chunk-UZSNFLDQ.js";
|
|
10
10
|
import {
|
|
11
11
|
shouldRefreshPullRequests
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-GBVHK7GR.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// src/services/post-tool-pr-notifier.ts
|
|
@@ -35,7 +35,8 @@ async function main() {
|
|
|
35
35
|
for await (const chunk of process.stdin) stdin += chunk;
|
|
36
36
|
try {
|
|
37
37
|
const input = JSON.parse(stdin);
|
|
38
|
-
const
|
|
38
|
+
const raw = isRecord(input) ? input : {};
|
|
39
|
+
const record = isRecord(raw.toolCall) ? { name: raw.toolCall.name, args: isRecord(raw.toolCall.args) && typeof raw.toolCall.args.CommandLine === "string" ? { command: raw.toolCall.args.CommandLine } : raw.toolCall.args } : raw;
|
|
39
40
|
const toolName = [record.tool_name, record.tool, record.name].find((value) => typeof value === "string") ?? "";
|
|
40
41
|
const toolInput = record.tool_input ?? record.arguments ?? record.args ?? ("command" in record ? { command: record.command } : record);
|
|
41
42
|
await notifyPostToolUse(toolName, toolInput, process.argv[2] === "opencode" ? { output: record.output, success: record.success === true } : void 0);
|
package/dist/src/subagent-mcp.js
CHANGED