@autohq/cli 0.1.329 → 0.1.330
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 +45 -3
- package/dist/index.js +58 -3
- package/package.json +1 -1
package/dist/agent-bridge.js
CHANGED
|
@@ -23434,7 +23434,7 @@ Object.assign(lookup, {
|
|
|
23434
23434
|
// package.json
|
|
23435
23435
|
var package_default = {
|
|
23436
23436
|
name: "@autohq/cli",
|
|
23437
|
-
version: "0.1.
|
|
23437
|
+
version: "0.1.330",
|
|
23438
23438
|
license: "SEE LICENSE IN README.md",
|
|
23439
23439
|
publishConfig: {
|
|
23440
23440
|
access: "public"
|
|
@@ -27148,6 +27148,37 @@ function isSetupCacheTtl(value2) {
|
|
|
27148
27148
|
return /^[1-9][0-9]*(s|m|h|d)$/.test(value2);
|
|
27149
27149
|
}
|
|
27150
27150
|
|
|
27151
|
+
// ../../packages/schemas/src/requester.ts
|
|
27152
|
+
var RequesterOriginSchema = external_exports.discriminatedUnion("kind", [
|
|
27153
|
+
external_exports.object({
|
|
27154
|
+
kind: external_exports.literal("provider"),
|
|
27155
|
+
provider: ProviderNameSchema,
|
|
27156
|
+
externalId: external_exports.string().trim().min(1),
|
|
27157
|
+
displayName: external_exports.string().trim().min(1).nullable().default(null),
|
|
27158
|
+
accountRef: external_exports.string().trim().min(1).nullable().default(null)
|
|
27159
|
+
}),
|
|
27160
|
+
external_exports.object({
|
|
27161
|
+
kind: external_exports.literal("user"),
|
|
27162
|
+
userId: UserIdSchema
|
|
27163
|
+
})
|
|
27164
|
+
]);
|
|
27165
|
+
var REQUESTER_PROVENANCES = ["explicit", "inherited"];
|
|
27166
|
+
var RequesterProvenanceSchema = external_exports.enum(REQUESTER_PROVENANCES);
|
|
27167
|
+
var RequesterSchema = external_exports.object({
|
|
27168
|
+
origin: RequesterOriginSchema,
|
|
27169
|
+
provenance: RequesterProvenanceSchema,
|
|
27170
|
+
userId: UserIdSchema.nullable().default(null)
|
|
27171
|
+
});
|
|
27172
|
+
var ChatEventRequesterPayloadSchema = external_exports.object({
|
|
27173
|
+
chat: external_exports.object({ provider: external_exports.string().trim().min(1) }),
|
|
27174
|
+
message: external_exports.object({
|
|
27175
|
+
author: external_exports.object({
|
|
27176
|
+
userId: external_exports.string().trim().min(1),
|
|
27177
|
+
userName: external_exports.string().optional()
|
|
27178
|
+
})
|
|
27179
|
+
})
|
|
27180
|
+
});
|
|
27181
|
+
|
|
27151
27182
|
// ../../packages/schemas/src/pool-replace.ts
|
|
27152
27183
|
var POOL_REPLACE_REASONS = ["refresh", "failure"];
|
|
27153
27184
|
var PoolReplaceReasonSchema = external_exports.enum(POOL_REPLACE_REASONS);
|
|
@@ -27253,8 +27284,13 @@ var RunMessageCommandPayloadSchema = external_exports.object({
|
|
|
27253
27284
|
deliveryMode: MessageDeliveryModeSchema.optional(),
|
|
27254
27285
|
model: AgentModelSelectionSchema.optional(),
|
|
27255
27286
|
reasoningEffort: AgentReasoningEffortSchema.optional(),
|
|
27256
|
-
metadata: JsonValueSchema2.optional()
|
|
27257
|
-
|
|
27287
|
+
metadata: JsonValueSchema2.optional(),
|
|
27288
|
+
// The human on whose behalf a relayed steering message is sent, recorded on
|
|
27289
|
+
// the command for provenance. In v1 it rides on the command row only — it
|
|
27290
|
+
// is not folded into the session's attribution or the dispatch payload the
|
|
27291
|
+
// runtime receives — so the wire shape is in place for later consumers.
|
|
27292
|
+
requester: RequesterSchema.optional()
|
|
27293
|
+
}).strip();
|
|
27258
27294
|
var RunAnswerCommandPayloadSchema = external_exports.object({
|
|
27259
27295
|
toolCallId: external_exports.string().trim().min(1),
|
|
27260
27296
|
answers: external_exports.record(external_exports.string(), external_exports.string()),
|
|
@@ -27546,6 +27582,10 @@ var SessionRecordSchema = external_exports.object({
|
|
|
27546
27582
|
model: ResolvedAgentModelSelectionSchema.nullable().default(null),
|
|
27547
27583
|
reasoningEffort: external_exports.string().trim().min(1).nullable().default(null),
|
|
27548
27584
|
starterActor: AuthActorSchema.nullable(),
|
|
27585
|
+
// The human on whose behalf this session's work runs, with provenance.
|
|
27586
|
+
// Defaulted, not just nullable: sessions persisted before requester shipped
|
|
27587
|
+
// lack the key, and replay-path parsing must keep accepting them.
|
|
27588
|
+
requester: RequesterSchema.nullable().default(null),
|
|
27549
27589
|
snapshot: AgentResourceSchema,
|
|
27550
27590
|
environmentSnapshot: EnvironmentResourceSchema,
|
|
27551
27591
|
toolSnapshots: external_exports.array(
|
|
@@ -28305,6 +28345,8 @@ var RunSummarySchema = external_exports.object({
|
|
|
28305
28345
|
status: SessionStatusSchema,
|
|
28306
28346
|
error: JsonValueSchema2.nullable(),
|
|
28307
28347
|
workflowId: external_exports.string(),
|
|
28348
|
+
/** The human on whose behalf the session's work runs, with provenance. */
|
|
28349
|
+
requester: RequesterSchema.nullable().default(null),
|
|
28308
28350
|
createdAt: external_exports.string().datetime(),
|
|
28309
28351
|
startedAt: external_exports.string().datetime().nullable(),
|
|
28310
28352
|
finishedAt: external_exports.string().datetime().nullable(),
|
package/dist/index.js
CHANGED
|
@@ -18756,6 +18756,46 @@ var init_environments = __esm({
|
|
|
18756
18756
|
}
|
|
18757
18757
|
});
|
|
18758
18758
|
|
|
18759
|
+
// ../../packages/schemas/src/requester.ts
|
|
18760
|
+
var RequesterOriginSchema, REQUESTER_PROVENANCES, RequesterProvenanceSchema, RequesterSchema, ChatEventRequesterPayloadSchema;
|
|
18761
|
+
var init_requester = __esm({
|
|
18762
|
+
"../../packages/schemas/src/requester.ts"() {
|
|
18763
|
+
"use strict";
|
|
18764
|
+
init_zod();
|
|
18765
|
+
init_ids();
|
|
18766
|
+
init_provider_grants();
|
|
18767
|
+
RequesterOriginSchema = external_exports.discriminatedUnion("kind", [
|
|
18768
|
+
external_exports.object({
|
|
18769
|
+
kind: external_exports.literal("provider"),
|
|
18770
|
+
provider: ProviderNameSchema,
|
|
18771
|
+
externalId: external_exports.string().trim().min(1),
|
|
18772
|
+
displayName: external_exports.string().trim().min(1).nullable().default(null),
|
|
18773
|
+
accountRef: external_exports.string().trim().min(1).nullable().default(null)
|
|
18774
|
+
}),
|
|
18775
|
+
external_exports.object({
|
|
18776
|
+
kind: external_exports.literal("user"),
|
|
18777
|
+
userId: UserIdSchema
|
|
18778
|
+
})
|
|
18779
|
+
]);
|
|
18780
|
+
REQUESTER_PROVENANCES = ["explicit", "inherited"];
|
|
18781
|
+
RequesterProvenanceSchema = external_exports.enum(REQUESTER_PROVENANCES);
|
|
18782
|
+
RequesterSchema = external_exports.object({
|
|
18783
|
+
origin: RequesterOriginSchema,
|
|
18784
|
+
provenance: RequesterProvenanceSchema,
|
|
18785
|
+
userId: UserIdSchema.nullable().default(null)
|
|
18786
|
+
});
|
|
18787
|
+
ChatEventRequesterPayloadSchema = external_exports.object({
|
|
18788
|
+
chat: external_exports.object({ provider: external_exports.string().trim().min(1) }),
|
|
18789
|
+
message: external_exports.object({
|
|
18790
|
+
author: external_exports.object({
|
|
18791
|
+
userId: external_exports.string().trim().min(1),
|
|
18792
|
+
userName: external_exports.string().optional()
|
|
18793
|
+
})
|
|
18794
|
+
})
|
|
18795
|
+
});
|
|
18796
|
+
}
|
|
18797
|
+
});
|
|
18798
|
+
|
|
18759
18799
|
// ../../packages/schemas/src/pool-replace.ts
|
|
18760
18800
|
var POOL_REPLACE_REASONS, PoolReplaceReasonSchema, SessionRespawnSchema;
|
|
18761
18801
|
var init_pool_replace = __esm({
|
|
@@ -18781,6 +18821,7 @@ var init_session_commands = __esm({
|
|
|
18781
18821
|
init_model_selection();
|
|
18782
18822
|
init_pool_replace();
|
|
18783
18823
|
init_primitives();
|
|
18824
|
+
init_requester();
|
|
18784
18825
|
SESSION_COMMAND_KINDS = [
|
|
18785
18826
|
"message",
|
|
18786
18827
|
"answer",
|
|
@@ -18878,8 +18919,13 @@ var init_session_commands = __esm({
|
|
|
18878
18919
|
deliveryMode: MessageDeliveryModeSchema.optional(),
|
|
18879
18920
|
model: AgentModelSelectionSchema.optional(),
|
|
18880
18921
|
reasoningEffort: AgentReasoningEffortSchema.optional(),
|
|
18881
|
-
metadata: JsonValueSchema.optional()
|
|
18882
|
-
|
|
18922
|
+
metadata: JsonValueSchema.optional(),
|
|
18923
|
+
// The human on whose behalf a relayed steering message is sent, recorded on
|
|
18924
|
+
// the command for provenance. In v1 it rides on the command row only — it
|
|
18925
|
+
// is not folded into the session's attribution or the dispatch payload the
|
|
18926
|
+
// runtime receives — so the wire shape is in place for later consumers.
|
|
18927
|
+
requester: RequesterSchema.optional()
|
|
18928
|
+
}).strip();
|
|
18883
18929
|
RunAnswerCommandPayloadSchema = external_exports.object({
|
|
18884
18930
|
toolCallId: external_exports.string().trim().min(1),
|
|
18885
18931
|
answers: external_exports.record(external_exports.string(), external_exports.string()),
|
|
@@ -19109,6 +19155,7 @@ var init_sessions = __esm({
|
|
|
19109
19155
|
init_ids();
|
|
19110
19156
|
init_model_selection();
|
|
19111
19157
|
init_primitives();
|
|
19158
|
+
init_requester();
|
|
19112
19159
|
init_session_commands();
|
|
19113
19160
|
init_tools();
|
|
19114
19161
|
SESSION_STATUSES = [
|
|
@@ -19192,6 +19239,10 @@ var init_sessions = __esm({
|
|
|
19192
19239
|
model: ResolvedAgentModelSelectionSchema.nullable().default(null),
|
|
19193
19240
|
reasoningEffort: external_exports.string().trim().min(1).nullable().default(null),
|
|
19194
19241
|
starterActor: AuthActorSchema.nullable(),
|
|
19242
|
+
// The human on whose behalf this session's work runs, with provenance.
|
|
19243
|
+
// Defaulted, not just nullable: sessions persisted before requester shipped
|
|
19244
|
+
// lack the key, and replay-path parsing must keep accepting them.
|
|
19245
|
+
requester: RequesterSchema.nullable().default(null),
|
|
19195
19246
|
snapshot: AgentResourceSchema,
|
|
19196
19247
|
environmentSnapshot: EnvironmentResourceSchema,
|
|
19197
19248
|
toolSnapshots: external_exports.array(
|
|
@@ -19901,6 +19952,7 @@ var init_session_introspection = __esm({
|
|
|
19901
19952
|
init_conversation();
|
|
19902
19953
|
init_ids();
|
|
19903
19954
|
init_primitives();
|
|
19955
|
+
init_requester();
|
|
19904
19956
|
init_runtime_restart_diagnostics();
|
|
19905
19957
|
init_session_bindings();
|
|
19906
19958
|
init_sessions();
|
|
@@ -20051,6 +20103,8 @@ var init_session_introspection = __esm({
|
|
|
20051
20103
|
status: SessionStatusSchema,
|
|
20052
20104
|
error: JsonValueSchema.nullable(),
|
|
20053
20105
|
workflowId: external_exports.string(),
|
|
20106
|
+
/** The human on whose behalf the session's work runs, with provenance. */
|
|
20107
|
+
requester: RequesterSchema.nullable().default(null),
|
|
20054
20108
|
createdAt: external_exports.string().datetime(),
|
|
20055
20109
|
startedAt: external_exports.string().datetime().nullable(),
|
|
20056
20110
|
finishedAt: external_exports.string().datetime().nullable(),
|
|
@@ -25851,6 +25905,7 @@ var init_src = __esm({
|
|
|
25851
25905
|
init_session_commands();
|
|
25852
25906
|
init_setup();
|
|
25853
25907
|
init_pool_replace();
|
|
25908
|
+
init_requester();
|
|
25854
25909
|
init_runtime_log();
|
|
25855
25910
|
init_runtime_log_tailer();
|
|
25856
25911
|
init_runtime_restart_diagnostics();
|
|
@@ -28594,7 +28649,7 @@ var init_package = __esm({
|
|
|
28594
28649
|
"package.json"() {
|
|
28595
28650
|
package_default = {
|
|
28596
28651
|
name: "@autohq/cli",
|
|
28597
|
-
version: "0.1.
|
|
28652
|
+
version: "0.1.330",
|
|
28598
28653
|
license: "SEE LICENSE IN README.md",
|
|
28599
28654
|
publishConfig: {
|
|
28600
28655
|
access: "public"
|