@porte/cli 0.1.5 → 0.1.6

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/main.js CHANGED
@@ -11,7 +11,7 @@ setLogSink((_level, line) => {
11
11
  });
12
12
  const verbose = process.argv.includes("--verbose") || process.argv.includes("-v");
13
13
  process.env.LOG_LEVEL ??= verbose ? "DEBUG" : "WARN";
14
- const { run } = await import("./run-cli-cm8fOj7d.js");
14
+ const { run } = await import("./run-cli-ChinbJm6.js");
15
15
  const code = await run(process.argv.slice(2), {
16
16
  stdout: process.stdout,
17
17
  stderr: process.stderr,
@@ -168,7 +168,7 @@ var WebSocketHandlerError = class extends h("WebSocketHandlerError") {
168
168
  //#endregion
169
169
  //#region src/entrypoints/cli/version.ts
170
170
  /** Package version. Source is `package.json`. */
171
- const VERSION = "0.1.5";
171
+ const VERSION = "0.1.6";
172
172
  //#endregion
173
173
  //#region src/entrypoints/cli/cli-error.ts
174
174
  /** Bad arguments or missing required flags. */
@@ -2841,14 +2841,20 @@ var AcpUpdateMapper = class {
2841
2841
  if (update.name !== void 0 && update.name !== null) next.name = update.name;
2842
2842
  if (update.kind !== void 0 && update.kind !== null) next.kind = update.kind;
2843
2843
  if (update.status !== void 0 && update.status !== null) next.status = update.status;
2844
- if (update.content !== void 0 && update.content !== null) next.content = update.content.map(mapToolContent);
2844
+ if (update.content !== void 0 && update.content !== null && update.content.length > 0) next.content = update.content.map(mapToolContent);
2845
2845
  if (update.locations !== void 0 && update.locations !== null) next.locations = update.locations.map(mapLocation);
2846
- if (update.rawInput !== void 0) next.rawInput = mapJson(update.rawInput);
2847
- if (update.rawOutput !== void 0) next.rawOutput = mapJson(update.rawOutput);
2846
+ if (update.rawInput !== void 0 && update.rawInput !== null) next.rawInput = mapJson(update.rawInput);
2847
+ if (update.rawOutput !== void 0 && update.rawOutput !== null) next.rawOutput = mapJson(update.rawOutput);
2848
2848
  if (update._meta !== void 0 && update._meta !== null) next._meta = mapMeta(update._meta);
2849
2849
  const parsed = ToolViewSchema.safeParse(next);
2850
2850
  if (!parsed.success) throw new AcpUpdateValueError("ACP tool update is invalid");
2851
2851
  this.tools.set(update.toolCallId, parsed.data);
2852
+ logger$2.debug("acp_tool_updated", { details: {
2853
+ toolCallId: update.toolCallId,
2854
+ status: parsed.data.status,
2855
+ content: parsed.data.content.length,
2856
+ rawInput: parsed.data.rawInput === void 0 ? "absent" : "present"
2857
+ } });
2852
2858
  return [{
2853
2859
  type: "tool.updated",
2854
2860
  turnId,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://www.schemastore.org/package.json",
3
3
  "name": "@porte/cli",
4
- "version": "0.1.5",
4
+ "version": "0.1.6",
5
5
  "description": "Run your local Grok sessions from your phone. The daemon that pairs a machine with useporte.dev.",
6
6
  "keywords": [
7
7
  "acp",