oasis_test 0.1.41 → 0.1.42

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 (2) hide show
  1. package/dist/index.js +22 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -39188,11 +39188,19 @@ var init_acp = __esm({
39188
39188
  case "tool_call":
39189
39189
  this.flushTextBuffers();
39190
39190
  this.handleToolCallStart(updateData);
39191
- this.handleToolCallUpdate(updateData);
39191
+ this.handleToolCallUpdate(
39192
+ updateData,
39193
+ /* skipOutputAccum */
39194
+ true
39195
+ );
39192
39196
  break;
39193
39197
  case "tool_call_update":
39194
39198
  this.flushTextBuffers();
39195
- this.handleToolCallUpdate(updateData);
39199
+ this.handleToolCallUpdate(
39200
+ updateData,
39201
+ /* skipOutputAccum */
39202
+ false
39203
+ );
39196
39204
  break;
39197
39205
  case "usage_update":
39198
39206
  this.handleUsageUpdate(updateData);
@@ -39297,9 +39305,19 @@ var init_acp = __esm({
39297
39305
  const input2 = pending.input ?? parseArgsJSON(pending.argsText);
39298
39306
  this.emit("tool_use", { id: toolCallId, name: pending.toolName, input: input2 ?? {} });
39299
39307
  }
39308
+ let content;
39309
+ if (typeof output === "string") {
39310
+ let longest = output;
39311
+ for (const p2 of pending.outputParts) {
39312
+ if (typeof p2 === "string" && p2.length > longest.length) longest = p2;
39313
+ }
39314
+ content = longest;
39315
+ } else {
39316
+ content = output ?? joinOutputParts(pending.outputParts);
39317
+ }
39300
39318
  this.emit("tool_result", {
39301
39319
  tool_use_id: toolCallId,
39302
- content: output ?? joinOutputParts(pending.outputParts),
39320
+ content,
39303
39321
  is_error: isErrorToolStatus(status, d)
39304
39322
  });
39305
39323
  }
@@ -58128,7 +58146,7 @@ ${res.warning}`);
58128
58146
  }
58129
58147
 
58130
58148
  // src/index.ts
58131
- var PKG_VERSION = true ? "0.1.41" : "dev";
58149
+ var PKG_VERSION = true ? "0.1.42" : "dev";
58132
58150
  var OASIS_DIR = path18.join(os10.homedir(), ".oasis");
58133
58151
  var CONFIG_FILE = path18.join(OASIS_DIR, "node-config.json");
58134
58152
  var PID_FILE = path18.join(OASIS_DIR, "node.pid");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oasis_test",
3
- "version": "0.1.41",
3
+ "version": "0.1.42",
4
4
  "description": "Oasis node daemon + CLI — background daemon, auto-start, full server CLI",
5
5
  "bin": {
6
6
  "oasis": "./dist/index.js"