@autohq/cli 0.1.595 → 0.1.597

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.
@@ -37736,7 +37736,7 @@ Object.assign(lookup, {
37736
37736
  // package.json
37737
37737
  var package_default = {
37738
37738
  name: "@autohq/cli",
37739
- version: "0.1.595",
37739
+ version: "0.1.597",
37740
37740
  license: "SEE LICENSE IN README.md",
37741
37741
  publishConfig: {
37742
37742
  access: "public"
@@ -44706,6 +44706,20 @@ var SessionRecordSchema = external_exports.object({
44706
44706
  relationships: SessionRelationshipsSchema.optional(),
44707
44707
  error: JsonValueSchema2.nullable()
44708
44708
  });
44709
+ var SessionSnapshotSummarySchema = external_exports.object({
44710
+ metadata: external_exports.object({ name: ResourceNameSchema }),
44711
+ spec: external_exports.object({
44712
+ harness: AgentHarnessSchema.optional(),
44713
+ identity: external_exports.union([ResourceNameSchema, PersistedAgentIdentitySchema]).optional(),
44714
+ concurrency: AgentConcurrencySchema.optional()
44715
+ })
44716
+ });
44717
+ var SessionRecordSummarySchema = SessionRecordSchema.extend({
44718
+ snapshot: SessionSnapshotSummarySchema
44719
+ });
44720
+ var SessionRecordQuerySchema = external_exports.object({
44721
+ projection: external_exports.enum(["full", "summary"]).default("full")
44722
+ });
44709
44723
  var SessionMessageOriginSchema = external_exports.object({
44710
44724
  eventKey: external_exports.string().trim().min(1),
44711
44725
  provider: external_exports.string().trim().min(1).nullable().default(null),
@@ -44760,7 +44774,11 @@ var SessionListItemAgentSchema = external_exports.object({
44760
44774
  displayName: external_exports.string().nullable(),
44761
44775
  username: external_exports.string().nullable(),
44762
44776
  avatarSha256: external_exports.string().nullable(),
44763
- harness: AgentHarnessSchema.optional()
44777
+ harness: AgentHarnessSchema.optional(),
44778
+ // Live roster projections always carry authoritative ownership provenance.
44779
+ // Optionality keeps legacy session snapshots readable when their embedded
44780
+ // list identity predates the origin field.
44781
+ origin: AgentResourceOriginSchema.optional()
44764
44782
  });
44765
44783
  var SessionListItemSchema = external_exports.object({
44766
44784
  id: SessionIdSchema2,
@@ -71267,6 +71285,20 @@ function isAskUserMcpTool(server, tool) {
71267
71285
  }
71268
71286
  function projectAskUserQuestion(input) {
71269
71287
  return [
71288
+ {
71289
+ type: "ui_message_chunk",
71290
+ chunk: {
71291
+ type: "tool-input-available",
71292
+ toolCallId: input.id,
71293
+ toolName: ASK_USER_TOOL_NAME,
71294
+ input: { questions: input.questions }
71295
+ },
71296
+ turnStatus: "waiting_for_input"
71297
+ },
71298
+ // Keep the canonical question last. A UI chunk also emits part snapshots
71299
+ // whose lifecycle defaults to in-progress; publishing one after this entry
71300
+ // would immediately undo the waiting state, disable the answer controls,
71301
+ // and place the streamed assistant message after the question in chat.
71270
71302
  {
71271
71303
  type: "entry",
71272
71304
  entry: {
@@ -71283,16 +71315,6 @@ function projectAskUserQuestion(input) {
71283
71315
  ]
71284
71316
  }
71285
71317
  }
71286
- },
71287
- {
71288
- type: "ui_message_chunk",
71289
- chunk: {
71290
- type: "tool-input-available",
71291
- toolCallId: input.id,
71292
- toolName: ASK_USER_TOOL_NAME,
71293
- input: { questions: input.questions }
71294
- },
71295
- turnStatus: "waiting_for_input"
71296
71318
  }
71297
71319
  ];
71298
71320
  }
package/dist/index.js CHANGED
@@ -21618,7 +21618,7 @@ function isSessionTerminalStatus(status) {
21618
21618
  (terminalStatus) => terminalStatus === status
21619
21619
  );
21620
21620
  }
21621
- var SESSION_STATUSES, SESSION_RUNTIME_PHASES, SESSION_TERMINAL_STATUSES, SESSION_DISPLAY_TITLE_MAX_LENGTH, SESSION_ATTENTION_PREVIEW_MAX_LENGTH, SESSION_MESSAGE_ROLES, SESSION_MESSAGE_STATUSES, SessionStatusSchema, SessionRuntimePhaseSchema, SessionMessageRoleSchema, SessionMessageStatusSchema, RunDisplayTitleSchema, AmbientStatusSchema, SESSION_CHECK_STATUSES, SESSION_CHECK_CONCLUSIONS, SESSION_CHECK_TIMEOUT_PHASES, SessionCheckStatusSchema, SessionCheckConclusionSchema, SessionCheckTimeoutPhaseSchema, SessionAttentionSchema, ManualSessionRequestSchema, SessionArchiveRequestSchema, SessionsArchiveRequestSchema, SessionRelationshipLinkSchema, SessionRelationshipsSchema, SessionRecordSchema, SessionMessageOriginSchema, SessionMessageBundleEntrySchema, SessionMessageBundleSchema, SessionUiMessageRecordSchema, SessionChatMessagesQuerySchema, SessionListItemAgentSchema, SessionListItemSchema, SessionListResponseSchema, SessionsArchiveResponseSchema;
21621
+ var SESSION_STATUSES, SESSION_RUNTIME_PHASES, SESSION_TERMINAL_STATUSES, SESSION_DISPLAY_TITLE_MAX_LENGTH, SESSION_ATTENTION_PREVIEW_MAX_LENGTH, SESSION_MESSAGE_ROLES, SESSION_MESSAGE_STATUSES, SessionStatusSchema, SessionRuntimePhaseSchema, SessionMessageRoleSchema, SessionMessageStatusSchema, RunDisplayTitleSchema, AmbientStatusSchema, SESSION_CHECK_STATUSES, SESSION_CHECK_CONCLUSIONS, SESSION_CHECK_TIMEOUT_PHASES, SessionCheckStatusSchema, SessionCheckConclusionSchema, SessionCheckTimeoutPhaseSchema, SessionAttentionSchema, ManualSessionRequestSchema, SessionArchiveRequestSchema, SessionsArchiveRequestSchema, SessionRelationshipLinkSchema, SessionRelationshipsSchema, SessionRecordSchema, SessionSnapshotSummarySchema, SessionRecordSummarySchema, SessionRecordQuerySchema, SessionMessageOriginSchema, SessionMessageBundleEntrySchema, SessionMessageBundleSchema, SessionUiMessageRecordSchema, SessionChatMessagesQuerySchema, SessionListItemAgentSchema, SessionListItemSchema, SessionListResponseSchema, SessionsArchiveResponseSchema;
21622
21622
  var init_sessions = __esm({
21623
21623
  "../../packages/schemas/src/sessions.ts"() {
21624
21624
  "use strict";
@@ -21630,6 +21630,7 @@ var init_sessions = __esm({
21630
21630
  init_model_selection();
21631
21631
  init_primitives();
21632
21632
  init_requester();
21633
+ init_resources();
21633
21634
  init_work_provenance();
21634
21635
  init_session_handoff();
21635
21636
  init_session_commands();
@@ -21807,6 +21808,20 @@ var init_sessions = __esm({
21807
21808
  relationships: SessionRelationshipsSchema.optional(),
21808
21809
  error: JsonValueSchema.nullable()
21809
21810
  });
21811
+ SessionSnapshotSummarySchema = external_exports.object({
21812
+ metadata: external_exports.object({ name: ResourceNameSchema }),
21813
+ spec: external_exports.object({
21814
+ harness: AgentHarnessSchema.optional(),
21815
+ identity: external_exports.union([ResourceNameSchema, PersistedAgentIdentitySchema]).optional(),
21816
+ concurrency: AgentConcurrencySchema.optional()
21817
+ })
21818
+ });
21819
+ SessionRecordSummarySchema = SessionRecordSchema.extend({
21820
+ snapshot: SessionSnapshotSummarySchema
21821
+ });
21822
+ SessionRecordQuerySchema = external_exports.object({
21823
+ projection: external_exports.enum(["full", "summary"]).default("full")
21824
+ });
21810
21825
  SessionMessageOriginSchema = external_exports.object({
21811
21826
  eventKey: external_exports.string().trim().min(1),
21812
21827
  provider: external_exports.string().trim().min(1).nullable().default(null),
@@ -21861,7 +21876,11 @@ var init_sessions = __esm({
21861
21876
  displayName: external_exports.string().nullable(),
21862
21877
  username: external_exports.string().nullable(),
21863
21878
  avatarSha256: external_exports.string().nullable(),
21864
- harness: AgentHarnessSchema.optional()
21879
+ harness: AgentHarnessSchema.optional(),
21880
+ // Live roster projections always carry authoritative ownership provenance.
21881
+ // Optionality keeps legacy session snapshots readable when their embedded
21882
+ // list identity predates the origin field.
21883
+ origin: AgentResourceOriginSchema.optional()
21865
21884
  });
21866
21885
  SessionListItemSchema = external_exports.object({
21867
21886
  id: SessionIdSchema,
@@ -90891,7 +90910,7 @@ var init_package = __esm({
90891
90910
  "package.json"() {
90892
90911
  package_default = {
90893
90912
  name: "@autohq/cli",
90894
- version: "0.1.595",
90913
+ version: "0.1.597",
90895
90914
  license: "SEE LICENSE IN README.md",
90896
90915
  publishConfig: {
90897
90916
  access: "public"
@@ -103765,6 +103784,20 @@ function isAskUserMcpTool(server, tool) {
103765
103784
  }
103766
103785
  function projectAskUserQuestion(input) {
103767
103786
  return [
103787
+ {
103788
+ type: "ui_message_chunk",
103789
+ chunk: {
103790
+ type: "tool-input-available",
103791
+ toolCallId: input.id,
103792
+ toolName: ASK_USER_TOOL_NAME,
103793
+ input: { questions: input.questions }
103794
+ },
103795
+ turnStatus: "waiting_for_input"
103796
+ },
103797
+ // Keep the canonical question last. A UI chunk also emits part snapshots
103798
+ // whose lifecycle defaults to in-progress; publishing one after this entry
103799
+ // would immediately undo the waiting state, disable the answer controls,
103800
+ // and place the streamed assistant message after the question in chat.
103768
103801
  {
103769
103802
  type: "entry",
103770
103803
  entry: {
@@ -103781,16 +103814,6 @@ function projectAskUserQuestion(input) {
103781
103814
  ]
103782
103815
  }
103783
103816
  }
103784
- },
103785
- {
103786
- type: "ui_message_chunk",
103787
- chunk: {
103788
- type: "tool-input-available",
103789
- toolCallId: input.id,
103790
- toolName: ASK_USER_TOOL_NAME,
103791
- input: { questions: input.questions }
103792
- },
103793
- turnStatus: "waiting_for_input"
103794
103817
  }
103795
103818
  ];
103796
103819
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autohq/cli",
3
- "version": "0.1.595",
3
+ "version": "0.1.597",
4
4
  "license": "SEE LICENSE IN README.md",
5
5
  "publishConfig": {
6
6
  "access": "public"