@autohq/cli 0.1.457 → 0.1.458
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 +22 -1
- package/dist/index.js +22 -1
- package/package.json +1 -1
package/dist/agent-bridge.js
CHANGED
|
@@ -30825,7 +30825,7 @@ Object.assign(lookup, {
|
|
|
30825
30825
|
// package.json
|
|
30826
30826
|
var package_default = {
|
|
30827
30827
|
name: "@autohq/cli",
|
|
30828
|
-
version: "0.1.
|
|
30828
|
+
version: "0.1.458",
|
|
30829
30829
|
license: "SEE LICENSE IN README.md",
|
|
30830
30830
|
publishConfig: {
|
|
30831
30831
|
access: "public"
|
|
@@ -34842,6 +34842,11 @@ function templateField(guard) {
|
|
|
34842
34842
|
const field = external_exports.string().trim().min(1).max(2e4).optional();
|
|
34843
34843
|
return guard === "authoring" ? field.superRefine(refineNoPayloadPrefixedTemplateTokens) : field;
|
|
34844
34844
|
}
|
|
34845
|
+
function attachedUserPromptField() {
|
|
34846
|
+
return external_exports.string().min(1).max(2e4).refine((value2) => value2.trim().length > 0, {
|
|
34847
|
+
message: "Attached user prompt must contain non-whitespace text"
|
|
34848
|
+
}).optional();
|
|
34849
|
+
}
|
|
34845
34850
|
function displayTitleField(guard) {
|
|
34846
34851
|
const field = external_exports.union([
|
|
34847
34852
|
external_exports.literal("infer"),
|
|
@@ -34875,6 +34880,7 @@ var TriggerChecksField = external_exports.array(
|
|
|
34875
34880
|
function triggerSharedFields(guard) {
|
|
34876
34881
|
return {
|
|
34877
34882
|
message: templateField(guard),
|
|
34883
|
+
attachedUserPrompt: attachedUserPromptField(),
|
|
34878
34884
|
checks: TriggerChecksField,
|
|
34879
34885
|
// Catch-all flag: a `fallback` trigger fires only when no normal (non-
|
|
34880
34886
|
// fallback) trigger on the same endpoint + eventKey matched its `where`.
|
|
@@ -34915,6 +34921,7 @@ function triggerBaseSchema(guard) {
|
|
|
34915
34921
|
...TriggerEventSourceFields
|
|
34916
34922
|
}).strict().superRefine((trigger, context) => {
|
|
34917
34923
|
validateTriggerChecks(trigger, context, [trigger.event]);
|
|
34924
|
+
validateAttachedUserPrompt(trigger, context, guard);
|
|
34918
34925
|
});
|
|
34919
34926
|
}
|
|
34920
34927
|
function triggerDefinitionBaseSchema(guard) {
|
|
@@ -34943,6 +34950,7 @@ function triggerDefinitionBaseSchema(guard) {
|
|
|
34943
34950
|
context,
|
|
34944
34951
|
trigger.event ? [trigger.event] : trigger.events ?? []
|
|
34945
34952
|
);
|
|
34953
|
+
validateAttachedUserPrompt(trigger, context, guard);
|
|
34946
34954
|
});
|
|
34947
34955
|
}
|
|
34948
34956
|
function heartbeatTriggerBaseSchema(guard) {
|
|
@@ -34958,6 +34966,7 @@ function heartbeatTriggerBaseSchema(guard) {
|
|
|
34958
34966
|
...triggerSharedFields(guard)
|
|
34959
34967
|
}).strict().superRefine((trigger, context) => {
|
|
34960
34968
|
validateTriggerChecks(trigger, context, ["heartbeat"]);
|
|
34969
|
+
validateAttachedUserPrompt(trigger, context, guard);
|
|
34961
34970
|
});
|
|
34962
34971
|
}
|
|
34963
34972
|
var TriggerSchema = triggerBaseSchema("stored").extend({
|
|
@@ -35369,6 +35378,15 @@ var AgentPresenceCompleteResponseSchema = external_exports.object({
|
|
|
35369
35378
|
organizationId: external_exports.string().trim().min(1),
|
|
35370
35379
|
botUserId: external_exports.string().trim().min(1)
|
|
35371
35380
|
});
|
|
35381
|
+
function validateAttachedUserPrompt(trigger, context, guard) {
|
|
35382
|
+
if (guard === "authoring" && trigger.attachedUserPrompt !== void 0 && trigger.routing.kind !== "spawn") {
|
|
35383
|
+
context.addIssue({
|
|
35384
|
+
code: external_exports.ZodIssueCode.custom,
|
|
35385
|
+
path: ["attachedUserPrompt"],
|
|
35386
|
+
message: "Attached user prompt is supported only for spawn routing"
|
|
35387
|
+
});
|
|
35388
|
+
}
|
|
35389
|
+
}
|
|
35372
35390
|
function validateTriggerChecks(trigger, context, eventKeys) {
|
|
35373
35391
|
const checks = trigger.checks ?? [];
|
|
35374
35392
|
if (checks.length === 0) {
|
|
@@ -36182,6 +36200,9 @@ var SessionRecordSchema = external_exports.object({
|
|
|
36182
36200
|
// Defaulted, not just nullable: sessions persisted before requester shipped
|
|
36183
36201
|
// lack the key, and replay-path parsing must keep accepting them.
|
|
36184
36202
|
requester: RequesterSchema.nullable().default(null),
|
|
36203
|
+
// Defaulted for session.upsert payloads persisted before attached prompts.
|
|
36204
|
+
attachedUserPrompt: external_exports.string().nullable().default(null).optional(),
|
|
36205
|
+
triggerMessageContext: external_exports.string().nullable().default(null).optional(),
|
|
36185
36206
|
snapshot: AgentResourceSchema,
|
|
36186
36207
|
environmentSnapshot: EnvironmentResourceSchema,
|
|
36187
36208
|
toolSnapshots: external_exports.array(
|
package/dist/index.js
CHANGED
|
@@ -18732,6 +18732,11 @@ function templateField(guard) {
|
|
|
18732
18732
|
const field = external_exports.string().trim().min(1).max(2e4).optional();
|
|
18733
18733
|
return guard === "authoring" ? field.superRefine(refineNoPayloadPrefixedTemplateTokens) : field;
|
|
18734
18734
|
}
|
|
18735
|
+
function attachedUserPromptField() {
|
|
18736
|
+
return external_exports.string().min(1).max(2e4).refine((value) => value.trim().length > 0, {
|
|
18737
|
+
message: "Attached user prompt must contain non-whitespace text"
|
|
18738
|
+
}).optional();
|
|
18739
|
+
}
|
|
18735
18740
|
function displayTitleField(guard) {
|
|
18736
18741
|
const field = external_exports.union([
|
|
18737
18742
|
external_exports.literal("infer"),
|
|
@@ -18746,6 +18751,7 @@ function displayTitleField(guard) {
|
|
|
18746
18751
|
function triggerSharedFields(guard) {
|
|
18747
18752
|
return {
|
|
18748
18753
|
message: templateField(guard),
|
|
18754
|
+
attachedUserPrompt: attachedUserPromptField(),
|
|
18749
18755
|
checks: TriggerChecksField,
|
|
18750
18756
|
// Catch-all flag: a `fallback` trigger fires only when no normal (non-
|
|
18751
18757
|
// fallback) trigger on the same endpoint + eventKey matched its `where`.
|
|
@@ -18764,6 +18770,7 @@ function triggerBaseSchema(guard) {
|
|
|
18764
18770
|
...TriggerEventSourceFields
|
|
18765
18771
|
}).strict().superRefine((trigger, context) => {
|
|
18766
18772
|
validateTriggerChecks(trigger, context, [trigger.event]);
|
|
18773
|
+
validateAttachedUserPrompt(trigger, context, guard);
|
|
18767
18774
|
});
|
|
18768
18775
|
}
|
|
18769
18776
|
function triggerDefinitionBaseSchema(guard) {
|
|
@@ -18792,6 +18799,7 @@ function triggerDefinitionBaseSchema(guard) {
|
|
|
18792
18799
|
context,
|
|
18793
18800
|
trigger.event ? [trigger.event] : trigger.events ?? []
|
|
18794
18801
|
);
|
|
18802
|
+
validateAttachedUserPrompt(trigger, context, guard);
|
|
18795
18803
|
});
|
|
18796
18804
|
}
|
|
18797
18805
|
function heartbeatTriggerBaseSchema(guard) {
|
|
@@ -18807,6 +18815,7 @@ function heartbeatTriggerBaseSchema(guard) {
|
|
|
18807
18815
|
...triggerSharedFields(guard)
|
|
18808
18816
|
}).strict().superRefine((trigger, context) => {
|
|
18809
18817
|
validateTriggerChecks(trigger, context, ["heartbeat"]);
|
|
18818
|
+
validateAttachedUserPrompt(trigger, context, guard);
|
|
18810
18819
|
});
|
|
18811
18820
|
}
|
|
18812
18821
|
function avatarAssetDimensions(bytes) {
|
|
@@ -19024,6 +19033,15 @@ function validateTriggerObservedTargetConfig(spec, context) {
|
|
|
19024
19033
|
}
|
|
19025
19034
|
}
|
|
19026
19035
|
}
|
|
19036
|
+
function validateAttachedUserPrompt(trigger, context, guard) {
|
|
19037
|
+
if (guard === "authoring" && trigger.attachedUserPrompt !== void 0 && trigger.routing.kind !== "spawn") {
|
|
19038
|
+
context.addIssue({
|
|
19039
|
+
code: external_exports.ZodIssueCode.custom,
|
|
19040
|
+
path: ["attachedUserPrompt"],
|
|
19041
|
+
message: "Attached user prompt is supported only for spawn routing"
|
|
19042
|
+
});
|
|
19043
|
+
}
|
|
19044
|
+
}
|
|
19027
19045
|
function validateTriggerChecks(trigger, context, eventKeys) {
|
|
19028
19046
|
const checks = trigger.checks ?? [];
|
|
19029
19047
|
if (checks.length === 0) {
|
|
@@ -20294,6 +20312,9 @@ var init_sessions = __esm({
|
|
|
20294
20312
|
// Defaulted, not just nullable: sessions persisted before requester shipped
|
|
20295
20313
|
// lack the key, and replay-path parsing must keep accepting them.
|
|
20296
20314
|
requester: RequesterSchema.nullable().default(null),
|
|
20315
|
+
// Defaulted for session.upsert payloads persisted before attached prompts.
|
|
20316
|
+
attachedUserPrompt: external_exports.string().nullable().default(null).optional(),
|
|
20317
|
+
triggerMessageContext: external_exports.string().nullable().default(null).optional(),
|
|
20297
20318
|
snapshot: AgentResourceSchema,
|
|
20298
20319
|
environmentSnapshot: EnvironmentResourceSchema,
|
|
20299
20320
|
toolSnapshots: external_exports.array(
|
|
@@ -53306,7 +53327,7 @@ var init_package = __esm({
|
|
|
53306
53327
|
"package.json"() {
|
|
53307
53328
|
package_default = {
|
|
53308
53329
|
name: "@autohq/cli",
|
|
53309
|
-
version: "0.1.
|
|
53330
|
+
version: "0.1.458",
|
|
53310
53331
|
license: "SEE LICENSE IN README.md",
|
|
53311
53332
|
publishConfig: {
|
|
53312
53333
|
access: "public"
|