@autohq/cli 0.1.270 → 0.1.272

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.
@@ -23353,7 +23353,7 @@ Object.assign(lookup, {
23353
23353
  // package.json
23354
23354
  var package_default = {
23355
23355
  name: "@autohq/cli",
23356
- version: "0.1.270",
23356
+ version: "0.1.272",
23357
23357
  license: "SEE LICENSE IN README.md",
23358
23358
  publishConfig: {
23359
23359
  access: "public"
@@ -23802,6 +23802,7 @@ function outputLogContext(output, socketId) {
23802
23802
  role: "role" in output ? output.role : void 0,
23803
23803
  kind: "kind" in output ? output.kind : void 0,
23804
23804
  output_status: "status" in output ? output.status : void 0,
23805
+ delta_type: output.type === "conversation.delta" ? output.delta.type : void 0,
23805
23806
  message_id: "messageId" in output ? output.messageId : void 0
23806
23807
  };
23807
23808
  }
@@ -28398,6 +28399,7 @@ var AgentBridgeOutputBuffer = class {
28398
28399
  role: output && "role" in output ? output.role : void 0,
28399
28400
  kind: output && "kind" in output ? output.kind : void 0,
28400
28401
  output_status: output && "status" in output ? output.status : void 0,
28402
+ delta_type: output?.type === "conversation.delta" ? output.delta.type : void 0,
28401
28403
  message_id: output && "messageId" in output ? output.messageId : void 0,
28402
28404
  ...fields
28403
28405
  };
@@ -48210,6 +48212,8 @@ function claudeAgentOptions(config2, input = {}) {
48210
48212
  input.clientApp ?? CLAUDE_AGENT_SDK_CLIENT_APP
48211
48213
  ),
48212
48214
  includePartialMessages: true,
48215
+ thinking: { type: "adaptive", display: "summarized" },
48216
+ settings: { showThinkingSummaries: true },
48213
48217
  model: CLAUDE_CODE_DEFAULT_MODEL,
48214
48218
  permissionMode: "bypassPermissions",
48215
48219
  allowDangerouslySkipPermissions: true,
package/dist/index.js CHANGED
@@ -22210,6 +22210,10 @@ function createApiClient(input) {
22210
22210
  return await response.json();
22211
22211
  },
22212
22212
  async stopSession(sessionId, options = {}) {
22213
+ const payload = {
22214
+ ...options.reason ? { reason: options.reason } : {},
22215
+ ...options.respawn ? { respawn: { reason: "refresh" } } : {}
22216
+ };
22213
22217
  const response = await authenticatedFetch(
22214
22218
  apiUrl(runApiPath(sessionId, "/commands"), options.apiBaseUrl),
22215
22219
  {
@@ -22219,7 +22223,7 @@ function createApiClient(input) {
22219
22223
  },
22220
22224
  body: JSON.stringify({
22221
22225
  kind: "stop",
22222
- payload: options.reason ? { reason: options.reason } : {}
22226
+ payload
22223
22227
  })
22224
22228
  },
22225
22229
  options.apiBaseUrl
@@ -22952,7 +22956,7 @@ var init_package = __esm({
22952
22956
  "package.json"() {
22953
22957
  package_default = {
22954
22958
  name: "@autohq/cli",
22955
- version: "0.1.270",
22959
+ version: "0.1.272",
22956
22960
  license: "SEE LICENSE IN README.md",
22957
22961
  publishConfig: {
22958
22962
  access: "public"
@@ -33294,6 +33298,7 @@ function outputLogContext(output, socketId) {
33294
33298
  role: "role" in output ? output.role : void 0,
33295
33299
  kind: "kind" in output ? output.kind : void 0,
33296
33300
  output_status: "status" in output ? output.status : void 0,
33301
+ delta_type: output.type === "conversation.delta" ? output.delta.type : void 0,
33297
33302
  message_id: "messageId" in output ? output.messageId : void 0
33298
33303
  };
33299
33304
  }
@@ -33488,6 +33493,7 @@ var AgentBridgeOutputBuffer = class {
33488
33493
  role: output && "role" in output ? output.role : void 0,
33489
33494
  kind: output && "kind" in output ? output.kind : void 0,
33490
33495
  output_status: output && "status" in output ? output.status : void 0,
33496
+ delta_type: output?.type === "conversation.delta" ? output.delta.type : void 0,
33491
33497
  message_id: output && "messageId" in output ? output.messageId : void 0,
33492
33498
  ...fields
33493
33499
  };
@@ -33729,6 +33735,8 @@ function claudeAgentOptions(config2, input = {}) {
33729
33735
  input.clientApp ?? CLAUDE_AGENT_SDK_CLIENT_APP
33730
33736
  ),
33731
33737
  includePartialMessages: true,
33738
+ thinking: { type: "adaptive", display: "summarized" },
33739
+ settings: { showThinkingSummaries: true },
33732
33740
  model: CLAUDE_CODE_DEFAULT_MODEL,
33733
33741
  permissionMode: "bypassPermissions",
33734
33742
  allowDangerouslySkipPermissions: true,
@@ -39354,7 +39362,8 @@ async function stopSessionsAction(context, sessionIds, commandOptions) {
39354
39362
  try {
39355
39363
  const command = await client.stopSession(sessionId, {
39356
39364
  apiBaseUrl,
39357
- reason: commandOptions.reason
39365
+ reason: commandOptions.reason,
39366
+ respawn: commandOptions.respawn
39358
39367
  });
39359
39368
  context.writeOutput(
39360
39369
  `${style.label("session_id")} ${style.id(sessionId)} ${style.label(
@@ -39371,11 +39380,19 @@ async function stopSessionsAction(context, sessionIds, commandOptions) {
39371
39380
  }
39372
39381
  }
39373
39382
  if (failedSessionIds.length > 0) {
39383
+ const actionLabel = commandOptions.actionLabel ?? "stop";
39374
39384
  throw new Error(
39375
- `Failed to stop ${failedSessionIds.length} of ${sessionIds.length} session(s): ${failedSessionIds.join(", ")}`
39385
+ `Failed to ${actionLabel} ${failedSessionIds.length} of ${sessionIds.length} session(s): ${failedSessionIds.join(", ")}`
39376
39386
  );
39377
39387
  }
39378
39388
  }
39389
+ async function reloadSessionsAction(context, sessionIds, commandOptions) {
39390
+ await stopSessionsAction(context, sessionIds, {
39391
+ ...commandOptions,
39392
+ actionLabel: "reload",
39393
+ respawn: true
39394
+ });
39395
+ }
39379
39396
  async function consoleRunAction(context, sessionId, commandOptions) {
39380
39397
  await runConsole({
39381
39398
  client: createSessionServiceClient(context),
@@ -40079,6 +40096,13 @@ function registerSessionCommands(program, context) {
40079
40096
  await stopSessionsAction(context, sessionIds, commandOptions);
40080
40097
  }
40081
40098
  );
40099
+ sessions.command("reload").description(
40100
+ "Stop sessions and request server-side respawn for refresh-eligible singletons."
40101
+ ).argument("<session-ids...>", "session id(s)").option("--reason <reason>", "reason recorded with the stop").option("--api-url <url>", "Auto API base URL").option("--api-base-url <url>", "Auto API base URL").action(
40102
+ async (sessionIds, commandOptions) => {
40103
+ await reloadSessionsAction(context, sessionIds, commandOptions);
40104
+ }
40105
+ );
40082
40106
  sessions.command("benchmark-startup").description("Launch an agent session and measure time until awaiting.").requiredOption("--agent <name>", "agent name").option("-m, --message <message>", "initial message for the session").option(
40083
40107
  "--interactive",
40084
40108
  "start without the default initial prompt unless --message is provided"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autohq/cli",
3
- "version": "0.1.270",
3
+ "version": "0.1.272",
4
4
  "license": "SEE LICENSE IN README.md",
5
5
  "publishConfig": {
6
6
  "access": "public"