replicas-engine 0.1.1723 → 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.
@@ -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-6VLLTNFH.js";
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-S32SJWSV.js";
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 record = isRecord(input) ? input : {};
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);
@@ -11,7 +11,7 @@ import {
11
11
  spawnSubagentRequestSchema,
12
12
  subagentResponseSchema,
13
13
  waitSubagentRequestSchema
14
- } from "./chunk-S32SJWSV.js";
14
+ } from "./chunk-GBVHK7GR.js";
15
15
  import "./chunk-VEQXQN22.js";
16
16
 
17
17
  // src/subagent-mcp.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-engine",
3
- "version": "0.1.1723",
3
+ "version": "0.1.1727",
4
4
  "description": "Lightweight API server for Replicas workspaces",
5
5
  "type": "module",
6
6
  "main": "dist/src/index.js",