@autohq/cli 0.1.611 → 0.1.612
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 +40 -3
- package/dist/index.js +43 -5
- package/package.json +1 -1
package/dist/agent-bridge.js
CHANGED
|
@@ -37751,7 +37751,7 @@ Object.assign(lookup, {
|
|
|
37751
37751
|
// package.json
|
|
37752
37752
|
var package_default = {
|
|
37753
37753
|
name: "@autohq/cli",
|
|
37754
|
-
version: "0.1.
|
|
37754
|
+
version: "0.1.612",
|
|
37755
37755
|
license: "SEE LICENSE IN README.md",
|
|
37756
37756
|
publishConfig: {
|
|
37757
37757
|
access: "public"
|
|
@@ -42344,10 +42344,12 @@ function isSetupCacheTtl(value2) {
|
|
|
42344
42344
|
var HOSTED_RUNTIME_STATUSES = [
|
|
42345
42345
|
"queued",
|
|
42346
42346
|
"provisioning",
|
|
42347
|
+
"ready",
|
|
42347
42348
|
"running",
|
|
42348
42349
|
"closing",
|
|
42349
42350
|
"closed"
|
|
42350
42351
|
];
|
|
42352
|
+
var HOSTED_RUNTIME_EXECUTION_MODES = ["one_shot", "retained"];
|
|
42351
42353
|
var HOSTED_RUNTIME_OUTCOMES = [
|
|
42352
42354
|
"succeeded",
|
|
42353
42355
|
"failed",
|
|
@@ -42365,9 +42367,13 @@ var HOSTED_RUNTIME_CLOSE_REASONS = [
|
|
|
42365
42367
|
"command_failed",
|
|
42366
42368
|
"provision_failed",
|
|
42367
42369
|
"requested",
|
|
42370
|
+
"idle_timeout",
|
|
42371
|
+
"hard_ttl_expired",
|
|
42368
42372
|
"internal_error"
|
|
42369
42373
|
];
|
|
42370
42374
|
var HOSTED_RUNTIME_MAX_COMMAND_BUDGET_SECONDS = 45 * 60;
|
|
42375
|
+
var HOSTED_RUNTIME_RETAINED_IDLE_TIMEOUT_SECONDS = 15 * 60;
|
|
42376
|
+
var HOSTED_RUNTIME_RETAINED_HARD_TTL_SECONDS = 60 * 60;
|
|
42371
42377
|
var HostedRuntimeEnvironmentInputSchema = external_exports.discriminatedUnion(
|
|
42372
42378
|
"kind",
|
|
42373
42379
|
[
|
|
@@ -42402,7 +42408,7 @@ var HostedRuntimeCommandInputSchema = external_exports.object({
|
|
|
42402
42408
|
timeoutSeconds: external_exports.number().int().min(1).max(300).default(60)
|
|
42403
42409
|
}).strict();
|
|
42404
42410
|
var HostedRuntimeIdempotencyKeySchema = external_exports.string().trim().min(1).max(200);
|
|
42405
|
-
var
|
|
42411
|
+
var HostedRuntimeOneShotRequestSchema = external_exports.object({
|
|
42406
42412
|
environment: HostedRuntimeEnvironmentInputSchema,
|
|
42407
42413
|
commands: external_exports.array(HostedRuntimeCommandInputSchema).min(1).max(20)
|
|
42408
42414
|
}).strict().superRefine((request, context) => {
|
|
@@ -42418,7 +42424,18 @@ var CreateHostedRuntimeRequestSchema = external_exports.object({
|
|
|
42418
42424
|
});
|
|
42419
42425
|
}
|
|
42420
42426
|
});
|
|
42427
|
+
var HostedRuntimeRetainedRequestSchema = external_exports.object({
|
|
42428
|
+
mode: external_exports.literal("retained"),
|
|
42429
|
+
environment: HostedRuntimeEnvironmentInputSchema
|
|
42430
|
+
}).strict();
|
|
42431
|
+
var CreateHostedRuntimeRequestSchema = external_exports.union([
|
|
42432
|
+
HostedRuntimeRetainedRequestSchema,
|
|
42433
|
+
HostedRuntimeOneShotRequestSchema
|
|
42434
|
+
]);
|
|
42421
42435
|
var HostedRuntimeStatusSchema = external_exports.enum(HOSTED_RUNTIME_STATUSES);
|
|
42436
|
+
var HostedRuntimeExecutionModeSchema = external_exports.enum(
|
|
42437
|
+
HOSTED_RUNTIME_EXECUTION_MODES
|
|
42438
|
+
);
|
|
42422
42439
|
var HostedRuntimeOutcomeSchema = external_exports.enum(HOSTED_RUNTIME_OUTCOMES);
|
|
42423
42440
|
var HostedRuntimeCommandStatusSchema = external_exports.enum(
|
|
42424
42441
|
HOSTED_RUNTIME_COMMAND_STATUSES
|
|
@@ -42441,6 +42458,7 @@ var HostedRuntimeCommandRecordSchema = external_exports.object({
|
|
|
42441
42458
|
}).strict();
|
|
42442
42459
|
var HostedRuntimeRecordSchema = external_exports.object({
|
|
42443
42460
|
id: RuntimeIdSchema2,
|
|
42461
|
+
mode: external_exports.literal("retained").optional(),
|
|
42444
42462
|
status: HostedRuntimeStatusSchema,
|
|
42445
42463
|
outcome: HostedRuntimeOutcomeSchema.nullable(),
|
|
42446
42464
|
environment: HostedRuntimeEnvironmentSourceSchema,
|
|
@@ -42448,6 +42466,9 @@ var HostedRuntimeRecordSchema = external_exports.object({
|
|
|
42448
42466
|
error: external_exports.string().nullable(),
|
|
42449
42467
|
closeReason: HostedRuntimeCloseReasonSchema.nullable(),
|
|
42450
42468
|
closeRequestedAt: external_exports.string().datetime().nullable(),
|
|
42469
|
+
idleTimeoutAt: external_exports.string().datetime().optional(),
|
|
42470
|
+
hardTtlAt: external_exports.string().datetime().optional(),
|
|
42471
|
+
lastActivityAt: external_exports.string().datetime().nullable().optional(),
|
|
42451
42472
|
startedAt: external_exports.string().datetime().nullable(),
|
|
42452
42473
|
finishedAt: external_exports.string().datetime().nullable(),
|
|
42453
42474
|
createdAt: external_exports.string().datetime(),
|
|
@@ -42457,12 +42478,20 @@ var HostedRuntimeDispatchStatusSchema = external_exports.enum([
|
|
|
42457
42478
|
"started",
|
|
42458
42479
|
"deferred"
|
|
42459
42480
|
]);
|
|
42481
|
+
var HostedRuntimeCommandReceiptSchema = external_exports.object({
|
|
42482
|
+
runtimeId: RuntimeIdSchema2,
|
|
42483
|
+
command: HostedRuntimeCommandRecordSchema,
|
|
42484
|
+
workflowId: external_exports.string().trim().min(1),
|
|
42485
|
+
dispatchStatus: HostedRuntimeDispatchStatusSchema,
|
|
42486
|
+
replayed: external_exports.boolean()
|
|
42487
|
+
}).strict();
|
|
42460
42488
|
var HostedRuntimeReceiptSchema = external_exports.object({
|
|
42461
42489
|
runtime: HostedRuntimeRecordSchema,
|
|
42462
42490
|
workflowId: external_exports.string().trim().min(1),
|
|
42463
42491
|
dispatchStatus: HostedRuntimeDispatchStatusSchema
|
|
42464
42492
|
}).strict();
|
|
42465
42493
|
var HostedRuntimeWorkflowInputSchema = external_exports.object({ runtimeId: RuntimeIdSchema2 }).strip();
|
|
42494
|
+
var HostedRuntimeRetainedSignalSchema = external_exports.object({ runtimeId: RuntimeIdSchema2 }).strip();
|
|
42466
42495
|
|
|
42467
42496
|
// ../../packages/schemas/src/session-bindings.ts
|
|
42468
42497
|
var BINDING_TARGET_TYPES = [
|
|
@@ -45757,8 +45786,16 @@ var ProjectDashboardSpecSchema = external_exports.object({
|
|
|
45757
45786
|
}).strict().optional(),
|
|
45758
45787
|
views: external_exports.array(DashboardViewSpecSchema).max(12).optional()
|
|
45759
45788
|
}).strict();
|
|
45789
|
+
var ManualRuntimeDefaultsSchema = external_exports.object({
|
|
45790
|
+
idleTimeoutSeconds: external_exports.number().int().min(60).max(60 * 60).default(HOSTED_RUNTIME_RETAINED_IDLE_TIMEOUT_SECONDS),
|
|
45791
|
+
hardTtlSeconds: external_exports.number().int().min(60).max(24 * 60 * 60).default(HOSTED_RUNTIME_RETAINED_HARD_TTL_SECONDS)
|
|
45792
|
+
}).strict().refine((value2) => value2.idleTimeoutSeconds <= value2.hardTtlSeconds, {
|
|
45793
|
+
message: "Manual runtime idle timeout must not exceed its hard TTL",
|
|
45794
|
+
path: ["idleTimeoutSeconds"]
|
|
45795
|
+
});
|
|
45760
45796
|
var ProjectConfigSpecSchema = external_exports.object({
|
|
45761
|
-
dashboard: ProjectDashboardSpecSchema.optional()
|
|
45797
|
+
dashboard: ProjectDashboardSpecSchema.optional(),
|
|
45798
|
+
manualRuntimes: ManualRuntimeDefaultsSchema.optional()
|
|
45762
45799
|
}).strict();
|
|
45763
45800
|
var ProjectConfigResourceSchema = resourceEnvelopeSchema(
|
|
45764
45801
|
ProjectConfigSpecSchema
|
package/dist/index.js
CHANGED
|
@@ -19096,7 +19096,7 @@ var init_environments = __esm({
|
|
|
19096
19096
|
});
|
|
19097
19097
|
|
|
19098
19098
|
// ../../packages/schemas/src/hosted-runtimes.ts
|
|
19099
|
-
var HOSTED_RUNTIME_STATUSES, HOSTED_RUNTIME_OUTCOMES, HOSTED_RUNTIME_COMMAND_STATUSES, HOSTED_RUNTIME_CLOSE_REASONS, HOSTED_RUNTIME_MAX_COMMAND_BUDGET_SECONDS, HostedRuntimeEnvironmentInputSchema, HostedRuntimeEnvironmentSourceSchema, HostedRuntimeEnvironmentSnapshotSchema, HostedRuntimeCommandInputSchema, HostedRuntimeIdempotencyKeySchema, CreateHostedRuntimeRequestSchema, HostedRuntimeStatusSchema, HostedRuntimeOutcomeSchema, HostedRuntimeCommandStatusSchema, HostedRuntimeCloseReasonSchema, HostedRuntimeCommandRecordSchema, HostedRuntimeRecordSchema, HostedRuntimeDispatchStatusSchema, HostedRuntimeReceiptSchema, HostedRuntimeWorkflowInputSchema;
|
|
19099
|
+
var HOSTED_RUNTIME_STATUSES, HOSTED_RUNTIME_EXECUTION_MODES, HOSTED_RUNTIME_OUTCOMES, HOSTED_RUNTIME_COMMAND_STATUSES, HOSTED_RUNTIME_CLOSE_REASONS, HOSTED_RUNTIME_MAX_COMMAND_BUDGET_SECONDS, HOSTED_RUNTIME_RETAINED_IDLE_TIMEOUT_SECONDS, HOSTED_RUNTIME_RETAINED_HARD_TTL_SECONDS, HostedRuntimeEnvironmentInputSchema, HostedRuntimeEnvironmentSourceSchema, HostedRuntimeEnvironmentSnapshotSchema, HostedRuntimeCommandInputSchema, HostedRuntimeIdempotencyKeySchema, HostedRuntimeOneShotRequestSchema, HostedRuntimeRetainedRequestSchema, CreateHostedRuntimeRequestSchema, HostedRuntimeStatusSchema, HostedRuntimeExecutionModeSchema, HostedRuntimeOutcomeSchema, HostedRuntimeCommandStatusSchema, HostedRuntimeCloseReasonSchema, HostedRuntimeCommandRecordSchema, HostedRuntimeRecordSchema, HostedRuntimeDispatchStatusSchema, HostedRuntimeCommandReceiptSchema, HostedRuntimeReceiptSchema, HostedRuntimeWorkflowInputSchema, HostedRuntimeRetainedSignalSchema;
|
|
19100
19100
|
var init_hosted_runtimes = __esm({
|
|
19101
19101
|
"../../packages/schemas/src/hosted-runtimes.ts"() {
|
|
19102
19102
|
"use strict";
|
|
@@ -19107,10 +19107,12 @@ var init_hosted_runtimes = __esm({
|
|
|
19107
19107
|
HOSTED_RUNTIME_STATUSES = [
|
|
19108
19108
|
"queued",
|
|
19109
19109
|
"provisioning",
|
|
19110
|
+
"ready",
|
|
19110
19111
|
"running",
|
|
19111
19112
|
"closing",
|
|
19112
19113
|
"closed"
|
|
19113
19114
|
];
|
|
19115
|
+
HOSTED_RUNTIME_EXECUTION_MODES = ["one_shot", "retained"];
|
|
19114
19116
|
HOSTED_RUNTIME_OUTCOMES = [
|
|
19115
19117
|
"succeeded",
|
|
19116
19118
|
"failed",
|
|
@@ -19128,9 +19130,13 @@ var init_hosted_runtimes = __esm({
|
|
|
19128
19130
|
"command_failed",
|
|
19129
19131
|
"provision_failed",
|
|
19130
19132
|
"requested",
|
|
19133
|
+
"idle_timeout",
|
|
19134
|
+
"hard_ttl_expired",
|
|
19131
19135
|
"internal_error"
|
|
19132
19136
|
];
|
|
19133
19137
|
HOSTED_RUNTIME_MAX_COMMAND_BUDGET_SECONDS = 45 * 60;
|
|
19138
|
+
HOSTED_RUNTIME_RETAINED_IDLE_TIMEOUT_SECONDS = 15 * 60;
|
|
19139
|
+
HOSTED_RUNTIME_RETAINED_HARD_TTL_SECONDS = 60 * 60;
|
|
19134
19140
|
HostedRuntimeEnvironmentInputSchema = external_exports.discriminatedUnion(
|
|
19135
19141
|
"kind",
|
|
19136
19142
|
[
|
|
@@ -19165,7 +19171,7 @@ var init_hosted_runtimes = __esm({
|
|
|
19165
19171
|
timeoutSeconds: external_exports.number().int().min(1).max(300).default(60)
|
|
19166
19172
|
}).strict();
|
|
19167
19173
|
HostedRuntimeIdempotencyKeySchema = external_exports.string().trim().min(1).max(200);
|
|
19168
|
-
|
|
19174
|
+
HostedRuntimeOneShotRequestSchema = external_exports.object({
|
|
19169
19175
|
environment: HostedRuntimeEnvironmentInputSchema,
|
|
19170
19176
|
commands: external_exports.array(HostedRuntimeCommandInputSchema).min(1).max(20)
|
|
19171
19177
|
}).strict().superRefine((request, context) => {
|
|
@@ -19181,7 +19187,18 @@ var init_hosted_runtimes = __esm({
|
|
|
19181
19187
|
});
|
|
19182
19188
|
}
|
|
19183
19189
|
});
|
|
19190
|
+
HostedRuntimeRetainedRequestSchema = external_exports.object({
|
|
19191
|
+
mode: external_exports.literal("retained"),
|
|
19192
|
+
environment: HostedRuntimeEnvironmentInputSchema
|
|
19193
|
+
}).strict();
|
|
19194
|
+
CreateHostedRuntimeRequestSchema = external_exports.union([
|
|
19195
|
+
HostedRuntimeRetainedRequestSchema,
|
|
19196
|
+
HostedRuntimeOneShotRequestSchema
|
|
19197
|
+
]);
|
|
19184
19198
|
HostedRuntimeStatusSchema = external_exports.enum(HOSTED_RUNTIME_STATUSES);
|
|
19199
|
+
HostedRuntimeExecutionModeSchema = external_exports.enum(
|
|
19200
|
+
HOSTED_RUNTIME_EXECUTION_MODES
|
|
19201
|
+
);
|
|
19185
19202
|
HostedRuntimeOutcomeSchema = external_exports.enum(HOSTED_RUNTIME_OUTCOMES);
|
|
19186
19203
|
HostedRuntimeCommandStatusSchema = external_exports.enum(
|
|
19187
19204
|
HOSTED_RUNTIME_COMMAND_STATUSES
|
|
@@ -19204,6 +19221,7 @@ var init_hosted_runtimes = __esm({
|
|
|
19204
19221
|
}).strict();
|
|
19205
19222
|
HostedRuntimeRecordSchema = external_exports.object({
|
|
19206
19223
|
id: RuntimeIdSchema,
|
|
19224
|
+
mode: external_exports.literal("retained").optional(),
|
|
19207
19225
|
status: HostedRuntimeStatusSchema,
|
|
19208
19226
|
outcome: HostedRuntimeOutcomeSchema.nullable(),
|
|
19209
19227
|
environment: HostedRuntimeEnvironmentSourceSchema,
|
|
@@ -19211,6 +19229,9 @@ var init_hosted_runtimes = __esm({
|
|
|
19211
19229
|
error: external_exports.string().nullable(),
|
|
19212
19230
|
closeReason: HostedRuntimeCloseReasonSchema.nullable(),
|
|
19213
19231
|
closeRequestedAt: external_exports.string().datetime().nullable(),
|
|
19232
|
+
idleTimeoutAt: external_exports.string().datetime().optional(),
|
|
19233
|
+
hardTtlAt: external_exports.string().datetime().optional(),
|
|
19234
|
+
lastActivityAt: external_exports.string().datetime().nullable().optional(),
|
|
19214
19235
|
startedAt: external_exports.string().datetime().nullable(),
|
|
19215
19236
|
finishedAt: external_exports.string().datetime().nullable(),
|
|
19216
19237
|
createdAt: external_exports.string().datetime(),
|
|
@@ -19220,12 +19241,20 @@ var init_hosted_runtimes = __esm({
|
|
|
19220
19241
|
"started",
|
|
19221
19242
|
"deferred"
|
|
19222
19243
|
]);
|
|
19244
|
+
HostedRuntimeCommandReceiptSchema = external_exports.object({
|
|
19245
|
+
runtimeId: RuntimeIdSchema,
|
|
19246
|
+
command: HostedRuntimeCommandRecordSchema,
|
|
19247
|
+
workflowId: external_exports.string().trim().min(1),
|
|
19248
|
+
dispatchStatus: HostedRuntimeDispatchStatusSchema,
|
|
19249
|
+
replayed: external_exports.boolean()
|
|
19250
|
+
}).strict();
|
|
19223
19251
|
HostedRuntimeReceiptSchema = external_exports.object({
|
|
19224
19252
|
runtime: HostedRuntimeRecordSchema,
|
|
19225
19253
|
workflowId: external_exports.string().trim().min(1),
|
|
19226
19254
|
dispatchStatus: HostedRuntimeDispatchStatusSchema
|
|
19227
19255
|
}).strict();
|
|
19228
19256
|
HostedRuntimeWorkflowInputSchema = external_exports.object({ runtimeId: RuntimeIdSchema }).strip();
|
|
19257
|
+
HostedRuntimeRetainedSignalSchema = external_exports.object({ runtimeId: RuntimeIdSchema }).strip();
|
|
19229
19258
|
}
|
|
19230
19259
|
});
|
|
19231
19260
|
|
|
@@ -22850,13 +22879,14 @@ var init_project_automation_pause = __esm({
|
|
|
22850
22879
|
});
|
|
22851
22880
|
|
|
22852
22881
|
// ../../packages/schemas/src/project-config.ts
|
|
22853
|
-
var RESOURCE_KIND_CONFIG, PROJECT_CONFIG_RESOURCE_NAME, PROJECT_CONFIG_FILE_NAME, DashboardTextSchema, DashboardViewKindSchema, DashboardViewSpecSchema, ProjectDashboardSpecSchema, ProjectConfigSpecSchema, ProjectConfigResourceSchema, ProjectConfigApplyRequestSchema, ProjectHomeAgentSchema, ProjectHomeSessionSchema, ProjectHomeResourceHealthSchema, ProjectHomeTaskSchema, ProjectHomeReadyViewSchema, ProjectHomeUnsupportedViewSchema, ProjectHomeInvalidViewSchema, ProjectHomeReadModelSchema, PROJECT_DEFAULT_AGENT_SOURCES, ProjectDefaultAgentSourceSchema, ProjectDefaultAgentSchema, UpdateProjectSettingsRequestSchema;
|
|
22882
|
+
var RESOURCE_KIND_CONFIG, PROJECT_CONFIG_RESOURCE_NAME, PROJECT_CONFIG_FILE_NAME, DashboardTextSchema, DashboardViewKindSchema, DashboardViewSpecSchema, ProjectDashboardSpecSchema, ManualRuntimeDefaultsSchema, ProjectConfigSpecSchema, ProjectConfigResourceSchema, ProjectConfigApplyRequestSchema, ProjectHomeAgentSchema, ProjectHomeSessionSchema, ProjectHomeResourceHealthSchema, ProjectHomeTaskSchema, ProjectHomeReadyViewSchema, ProjectHomeUnsupportedViewSchema, ProjectHomeInvalidViewSchema, ProjectHomeReadModelSchema, PROJECT_DEFAULT_AGENT_SOURCES, ProjectDefaultAgentSourceSchema, ProjectDefaultAgentSchema, UpdateProjectSettingsRequestSchema;
|
|
22854
22883
|
var init_project_config = __esm({
|
|
22855
22884
|
"../../packages/schemas/src/project-config.ts"() {
|
|
22856
22885
|
"use strict";
|
|
22857
22886
|
init_zod();
|
|
22858
22887
|
init_agents();
|
|
22859
22888
|
init_archive_policy();
|
|
22889
|
+
init_hosted_runtimes();
|
|
22860
22890
|
init_ids();
|
|
22861
22891
|
init_primitives();
|
|
22862
22892
|
init_project_automation_pause();
|
|
@@ -22882,8 +22912,16 @@ var init_project_config = __esm({
|
|
|
22882
22912
|
}).strict().optional(),
|
|
22883
22913
|
views: external_exports.array(DashboardViewSpecSchema).max(12).optional()
|
|
22884
22914
|
}).strict();
|
|
22915
|
+
ManualRuntimeDefaultsSchema = external_exports.object({
|
|
22916
|
+
idleTimeoutSeconds: external_exports.number().int().min(60).max(60 * 60).default(HOSTED_RUNTIME_RETAINED_IDLE_TIMEOUT_SECONDS),
|
|
22917
|
+
hardTtlSeconds: external_exports.number().int().min(60).max(24 * 60 * 60).default(HOSTED_RUNTIME_RETAINED_HARD_TTL_SECONDS)
|
|
22918
|
+
}).strict().refine((value) => value.idleTimeoutSeconds <= value.hardTtlSeconds, {
|
|
22919
|
+
message: "Manual runtime idle timeout must not exceed its hard TTL",
|
|
22920
|
+
path: ["idleTimeoutSeconds"]
|
|
22921
|
+
});
|
|
22885
22922
|
ProjectConfigSpecSchema = external_exports.object({
|
|
22886
|
-
dashboard: ProjectDashboardSpecSchema.optional()
|
|
22923
|
+
dashboard: ProjectDashboardSpecSchema.optional(),
|
|
22924
|
+
manualRuntimes: ManualRuntimeDefaultsSchema.optional()
|
|
22887
22925
|
}).strict();
|
|
22888
22926
|
ProjectConfigResourceSchema = resourceEnvelopeSchema(
|
|
22889
22927
|
ProjectConfigSpecSchema
|
|
@@ -93169,7 +93207,7 @@ var init_package = __esm({
|
|
|
93169
93207
|
"package.json"() {
|
|
93170
93208
|
package_default = {
|
|
93171
93209
|
name: "@autohq/cli",
|
|
93172
|
-
version: "0.1.
|
|
93210
|
+
version: "0.1.612",
|
|
93173
93211
|
license: "SEE LICENSE IN README.md",
|
|
93174
93212
|
publishConfig: {
|
|
93175
93213
|
access: "public"
|