@autohq/cli 0.1.596 → 0.1.598
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/agent-bridge.js +74 -3
- package/dist/index.js +86 -4
- package/package.json +1 -1
package/dist/agent-bridge.js
CHANGED
|
@@ -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.
|
|
37739
|
+
version: "0.1.598",
|
|
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,
|
|
@@ -45506,7 +45524,8 @@ var ProjectHomeReadModelSchema = external_exports.object({
|
|
|
45506
45524
|
name: external_exports.string().trim().min(1),
|
|
45507
45525
|
tagline: external_exports.string().trim().min(1).nullable(),
|
|
45508
45526
|
backdrop: DashboardViewKindSchema.nullable(),
|
|
45509
|
-
pinnedAgentName: ResourceNameSchema.nullable()
|
|
45527
|
+
pinnedAgentName: ResourceNameSchema.nullable(),
|
|
45528
|
+
pinnedSessionId: SessionIdSchema2.nullable()
|
|
45510
45529
|
}).strict(),
|
|
45511
45530
|
agents: external_exports.array(ProjectHomeAgentSchema),
|
|
45512
45531
|
stats: external_exports.object({
|
|
@@ -45928,6 +45947,58 @@ var ProjectResourceApplyWorkflowResultSchema = external_exports.discriminatedUni
|
|
|
45928
45947
|
]
|
|
45929
45948
|
);
|
|
45930
45949
|
|
|
45950
|
+
// ../../packages/schemas/src/project-session-pins.ts
|
|
45951
|
+
var PROJECT_SESSION_PIN_TARGET_TYPES = [
|
|
45952
|
+
"session",
|
|
45953
|
+
"agent-singleton"
|
|
45954
|
+
];
|
|
45955
|
+
var PROJECT_SESSION_PIN_LIMIT = 50;
|
|
45956
|
+
var ProjectSessionPinTargetTypeSchema = external_exports.enum(
|
|
45957
|
+
PROJECT_SESSION_PIN_TARGET_TYPES
|
|
45958
|
+
);
|
|
45959
|
+
var ProjectSessionPinTargetSchema = external_exports.discriminatedUnion("type", [
|
|
45960
|
+
external_exports.object({
|
|
45961
|
+
type: external_exports.literal("session"),
|
|
45962
|
+
sessionId: SessionIdSchema2
|
|
45963
|
+
}).strict(),
|
|
45964
|
+
external_exports.object({
|
|
45965
|
+
type: external_exports.literal("agent-singleton"),
|
|
45966
|
+
agentResourceId: AgentIdSchema
|
|
45967
|
+
}).strict()
|
|
45968
|
+
]);
|
|
45969
|
+
function projectSessionPinTargetKey(target) {
|
|
45970
|
+
switch (target.type) {
|
|
45971
|
+
case "session":
|
|
45972
|
+
return `session:${target.sessionId}`;
|
|
45973
|
+
case "agent-singleton":
|
|
45974
|
+
return `agent-singleton:${target.agentResourceId}`;
|
|
45975
|
+
}
|
|
45976
|
+
}
|
|
45977
|
+
var ProjectSessionPinSchema = external_exports.object({
|
|
45978
|
+
id: external_exports.string().trim().min(1),
|
|
45979
|
+
position: external_exports.number().int().nonnegative(),
|
|
45980
|
+
target: ProjectSessionPinTargetSchema,
|
|
45981
|
+
resolvedSessionId: SessionIdSchema2.nullable(),
|
|
45982
|
+
agentName: ResourceNameSchema
|
|
45983
|
+
}).strict();
|
|
45984
|
+
var ProjectSessionPinTargetRequestSchema = external_exports.object({ target: ProjectSessionPinTargetSchema }).strict();
|
|
45985
|
+
var ProjectSessionPinReorderRequestSchema = external_exports.object({
|
|
45986
|
+
targets: external_exports.array(ProjectSessionPinTargetSchema).max(PROJECT_SESSION_PIN_LIMIT)
|
|
45987
|
+
}).strict().superRefine((value2, context) => {
|
|
45988
|
+
const keys = /* @__PURE__ */ new Set();
|
|
45989
|
+
for (const [index, target] of value2.targets.entries()) {
|
|
45990
|
+
const key = projectSessionPinTargetKey(target);
|
|
45991
|
+
if (keys.has(key)) {
|
|
45992
|
+
context.addIssue({
|
|
45993
|
+
code: "custom",
|
|
45994
|
+
message: "Project Session pin reorder targets must be unique",
|
|
45995
|
+
path: ["targets", index]
|
|
45996
|
+
});
|
|
45997
|
+
}
|
|
45998
|
+
keys.add(key);
|
|
45999
|
+
}
|
|
46000
|
+
});
|
|
46001
|
+
|
|
45931
46002
|
// ../../packages/schemas/src/session-diagnostics.ts
|
|
45932
46003
|
var SESSION_DIAGNOSTIC_REALTIME_EVENT = "session.diagnostic";
|
|
45933
46004
|
var SESSION_DIAGNOSTIC_LEVELS = [
|
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,
|
|
@@ -22719,7 +22738,8 @@ var init_project_config = __esm({
|
|
|
22719
22738
|
name: external_exports.string().trim().min(1),
|
|
22720
22739
|
tagline: external_exports.string().trim().min(1).nullable(),
|
|
22721
22740
|
backdrop: DashboardViewKindSchema.nullable(),
|
|
22722
|
-
pinnedAgentName: ResourceNameSchema.nullable()
|
|
22741
|
+
pinnedAgentName: ResourceNameSchema.nullable(),
|
|
22742
|
+
pinnedSessionId: SessionIdSchema.nullable()
|
|
22723
22743
|
}).strict(),
|
|
22724
22744
|
agents: external_exports.array(ProjectHomeAgentSchema),
|
|
22725
22745
|
stats: external_exports.object({
|
|
@@ -23249,6 +23269,67 @@ var init_project_resources = __esm({
|
|
|
23249
23269
|
}
|
|
23250
23270
|
});
|
|
23251
23271
|
|
|
23272
|
+
// ../../packages/schemas/src/project-session-pins.ts
|
|
23273
|
+
function projectSessionPinTargetKey(target) {
|
|
23274
|
+
switch (target.type) {
|
|
23275
|
+
case "session":
|
|
23276
|
+
return `session:${target.sessionId}`;
|
|
23277
|
+
case "agent-singleton":
|
|
23278
|
+
return `agent-singleton:${target.agentResourceId}`;
|
|
23279
|
+
}
|
|
23280
|
+
}
|
|
23281
|
+
var PROJECT_SESSION_PIN_TARGET_TYPES, PROJECT_SESSION_PIN_LIMIT, ProjectSessionPinTargetTypeSchema, ProjectSessionPinTargetSchema, ProjectSessionPinSchema, ProjectSessionPinTargetRequestSchema, ProjectSessionPinReorderRequestSchema;
|
|
23282
|
+
var init_project_session_pins = __esm({
|
|
23283
|
+
"../../packages/schemas/src/project-session-pins.ts"() {
|
|
23284
|
+
"use strict";
|
|
23285
|
+
init_zod();
|
|
23286
|
+
init_ids();
|
|
23287
|
+
init_resources();
|
|
23288
|
+
PROJECT_SESSION_PIN_TARGET_TYPES = [
|
|
23289
|
+
"session",
|
|
23290
|
+
"agent-singleton"
|
|
23291
|
+
];
|
|
23292
|
+
PROJECT_SESSION_PIN_LIMIT = 50;
|
|
23293
|
+
ProjectSessionPinTargetTypeSchema = external_exports.enum(
|
|
23294
|
+
PROJECT_SESSION_PIN_TARGET_TYPES
|
|
23295
|
+
);
|
|
23296
|
+
ProjectSessionPinTargetSchema = external_exports.discriminatedUnion("type", [
|
|
23297
|
+
external_exports.object({
|
|
23298
|
+
type: external_exports.literal("session"),
|
|
23299
|
+
sessionId: SessionIdSchema
|
|
23300
|
+
}).strict(),
|
|
23301
|
+
external_exports.object({
|
|
23302
|
+
type: external_exports.literal("agent-singleton"),
|
|
23303
|
+
agentResourceId: AgentIdSchema
|
|
23304
|
+
}).strict()
|
|
23305
|
+
]);
|
|
23306
|
+
ProjectSessionPinSchema = external_exports.object({
|
|
23307
|
+
id: external_exports.string().trim().min(1),
|
|
23308
|
+
position: external_exports.number().int().nonnegative(),
|
|
23309
|
+
target: ProjectSessionPinTargetSchema,
|
|
23310
|
+
resolvedSessionId: SessionIdSchema.nullable(),
|
|
23311
|
+
agentName: ResourceNameSchema
|
|
23312
|
+
}).strict();
|
|
23313
|
+
ProjectSessionPinTargetRequestSchema = external_exports.object({ target: ProjectSessionPinTargetSchema }).strict();
|
|
23314
|
+
ProjectSessionPinReorderRequestSchema = external_exports.object({
|
|
23315
|
+
targets: external_exports.array(ProjectSessionPinTargetSchema).max(PROJECT_SESSION_PIN_LIMIT)
|
|
23316
|
+
}).strict().superRefine((value, context) => {
|
|
23317
|
+
const keys = /* @__PURE__ */ new Set();
|
|
23318
|
+
for (const [index, target] of value.targets.entries()) {
|
|
23319
|
+
const key = projectSessionPinTargetKey(target);
|
|
23320
|
+
if (keys.has(key)) {
|
|
23321
|
+
context.addIssue({
|
|
23322
|
+
code: "custom",
|
|
23323
|
+
message: "Project Session pin reorder targets must be unique",
|
|
23324
|
+
path: ["targets", index]
|
|
23325
|
+
});
|
|
23326
|
+
}
|
|
23327
|
+
keys.add(key);
|
|
23328
|
+
}
|
|
23329
|
+
});
|
|
23330
|
+
}
|
|
23331
|
+
});
|
|
23332
|
+
|
|
23252
23333
|
// ../../packages/schemas/src/realtime.ts
|
|
23253
23334
|
var RunRealtimeEventSchema;
|
|
23254
23335
|
var init_realtime = __esm({
|
|
@@ -88096,6 +88177,7 @@ var init_src = __esm({
|
|
|
88096
88177
|
init_project_automation_pause();
|
|
88097
88178
|
init_project_service_accounts();
|
|
88098
88179
|
init_project_resources();
|
|
88180
|
+
init_project_session_pins();
|
|
88099
88181
|
init_primitives();
|
|
88100
88182
|
init_realtime();
|
|
88101
88183
|
init_resources();
|
|
@@ -90891,7 +90973,7 @@ var init_package = __esm({
|
|
|
90891
90973
|
"package.json"() {
|
|
90892
90974
|
package_default = {
|
|
90893
90975
|
name: "@autohq/cli",
|
|
90894
|
-
version: "0.1.
|
|
90976
|
+
version: "0.1.598",
|
|
90895
90977
|
license: "SEE LICENSE IN README.md",
|
|
90896
90978
|
publishConfig: {
|
|
90897
90979
|
access: "public"
|