@autohq/cli 0.1.209 → 0.1.211

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.
@@ -23071,6 +23071,14 @@ var SetupOnboardingPullRequestStatusResponseSchema = external_exports.object({
23071
23071
  ready: external_exports.boolean()
23072
23072
  });
23073
23073
 
23074
+ // ../../packages/schemas/src/e2b-webhook.ts
23075
+ var E2bLifecycleWebhookEventSchema = external_exports.object({
23076
+ type: external_exports.string().min(1),
23077
+ sandbox_id: external_exports.string().min(1),
23078
+ sandbox_execution_id: external_exports.string().optional(),
23079
+ timestamp: external_exports.string().optional()
23080
+ }).passthrough();
23081
+
23074
23082
  // ../../packages/schemas/src/runtime-log.ts
23075
23083
  var RUNTIME_LOG_LEVELS = ["debug", "info", "warn", "error"];
23076
23084
  var RuntimeLogLevelSchema = external_exports.enum(RUNTIME_LOG_LEVELS);
@@ -23089,10 +23097,38 @@ function runtimeLogLevelEnabled(configured, lineLevel) {
23089
23097
  return LEVEL_SEVERITY[lineLevel] >= LEVEL_SEVERITY[configured];
23090
23098
  }
23091
23099
 
23100
+ // ../../packages/schemas/src/runtime-log-tailer.ts
23101
+ var RuntimeLogTailerWorkflowInputSchema = external_exports.object({
23102
+ sessionId: SessionIdSchema2,
23103
+ sandboxId: external_exports.string().trim().min(1)
23104
+ }).strict();
23105
+ var RUNTIME_TAIL_SANDBOX_STATES = [
23106
+ "running",
23107
+ "paused",
23108
+ "gone"
23109
+ ];
23110
+ var RuntimeTailSandboxStateSchema = external_exports.enum(
23111
+ RUNTIME_TAIL_SANDBOX_STATES
23112
+ );
23113
+ var TAIL_LIFECYCLE_ACTIONS = ["pause", "resume", "stop"];
23114
+ var TailLifecycleActionSchema = external_exports.enum(TAIL_LIFECYCLE_ACTIONS);
23115
+ var TailLifecycleSignalPayloadSchema = external_exports.object({
23116
+ action: TailLifecycleActionSchema
23117
+ }).strict();
23118
+ var TailRuntimeLogResultSchema = external_exports.object({
23119
+ state: RuntimeTailSandboxStateSchema,
23120
+ forwardedLineCount: external_exports.number().int().nonnegative(),
23121
+ newOffset: external_exports.number().int().nonnegative(),
23122
+ // True when the durable log still has bytes past newOffset, so the workflow
23123
+ // should drain again immediately instead of waiting the poll interval.
23124
+ hadMore: external_exports.boolean()
23125
+ });
23126
+
23092
23127
  // ../../packages/schemas/src/runtimes.ts
23093
23128
  var RuntimeRecordSchema = external_exports.object({
23094
23129
  id: RuntimeIdSchema2,
23095
23130
  sandboxId: external_exports.string().trim().min(1).nullable(),
23131
+ logTailOffset: external_exports.number().int().nonnegative(),
23096
23132
  createdAt: external_exports.string().datetime(),
23097
23133
  updatedAt: external_exports.string().datetime()
23098
23134
  });
@@ -26749,7 +26785,7 @@ Object.assign(lookup, {
26749
26785
  // package.json
26750
26786
  var package_default = {
26751
26787
  name: "@autohq/cli",
26752
- version: "0.1.209",
26788
+ version: "0.1.211",
26753
26789
  license: "SEE LICENSE IN README.md",
26754
26790
  publishConfig: {
26755
26791
  access: "public"
package/dist/index.js CHANGED
@@ -18975,6 +18975,21 @@ var init_setup = __esm({
18975
18975
  }
18976
18976
  });
18977
18977
 
18978
+ // ../../packages/schemas/src/e2b-webhook.ts
18979
+ var E2bLifecycleWebhookEventSchema;
18980
+ var init_e2b_webhook = __esm({
18981
+ "../../packages/schemas/src/e2b-webhook.ts"() {
18982
+ "use strict";
18983
+ init_zod();
18984
+ E2bLifecycleWebhookEventSchema = external_exports.object({
18985
+ type: external_exports.string().min(1),
18986
+ sandbox_id: external_exports.string().min(1),
18987
+ sandbox_execution_id: external_exports.string().optional(),
18988
+ timestamp: external_exports.string().optional()
18989
+ }).passthrough();
18990
+ }
18991
+ });
18992
+
18978
18993
  // ../../packages/schemas/src/runtime-log.ts
18979
18994
  function parseRuntimeLogLevel(value) {
18980
18995
  const parsed = RuntimeLogLevelSchema.safeParse(value?.trim());
@@ -19000,6 +19015,41 @@ var init_runtime_log = __esm({
19000
19015
  }
19001
19016
  });
19002
19017
 
19018
+ // ../../packages/schemas/src/runtime-log-tailer.ts
19019
+ var RuntimeLogTailerWorkflowInputSchema, RUNTIME_TAIL_SANDBOX_STATES, RuntimeTailSandboxStateSchema, TAIL_LIFECYCLE_ACTIONS, TailLifecycleActionSchema, TailLifecycleSignalPayloadSchema, TailRuntimeLogResultSchema;
19020
+ var init_runtime_log_tailer = __esm({
19021
+ "../../packages/schemas/src/runtime-log-tailer.ts"() {
19022
+ "use strict";
19023
+ init_zod();
19024
+ init_ids();
19025
+ RuntimeLogTailerWorkflowInputSchema = external_exports.object({
19026
+ sessionId: SessionIdSchema,
19027
+ sandboxId: external_exports.string().trim().min(1)
19028
+ }).strict();
19029
+ RUNTIME_TAIL_SANDBOX_STATES = [
19030
+ "running",
19031
+ "paused",
19032
+ "gone"
19033
+ ];
19034
+ RuntimeTailSandboxStateSchema = external_exports.enum(
19035
+ RUNTIME_TAIL_SANDBOX_STATES
19036
+ );
19037
+ TAIL_LIFECYCLE_ACTIONS = ["pause", "resume", "stop"];
19038
+ TailLifecycleActionSchema = external_exports.enum(TAIL_LIFECYCLE_ACTIONS);
19039
+ TailLifecycleSignalPayloadSchema = external_exports.object({
19040
+ action: TailLifecycleActionSchema
19041
+ }).strict();
19042
+ TailRuntimeLogResultSchema = external_exports.object({
19043
+ state: RuntimeTailSandboxStateSchema,
19044
+ forwardedLineCount: external_exports.number().int().nonnegative(),
19045
+ newOffset: external_exports.number().int().nonnegative(),
19046
+ // True when the durable log still has bytes past newOffset, so the workflow
19047
+ // should drain again immediately instead of waiting the poll interval.
19048
+ hadMore: external_exports.boolean()
19049
+ });
19050
+ }
19051
+ });
19052
+
19003
19053
  // ../../packages/schemas/src/runtimes.ts
19004
19054
  var RuntimeRecordSchema, SessionCommandDispatchWorkflowInputSchema, SessionCommandDispatchSignalPayloadSchema, RealtimeRunCursorSchema;
19005
19055
  var init_runtimes = __esm({
@@ -19010,6 +19060,7 @@ var init_runtimes = __esm({
19010
19060
  RuntimeRecordSchema = external_exports.object({
19011
19061
  id: RuntimeIdSchema,
19012
19062
  sandboxId: external_exports.string().trim().min(1).nullable(),
19063
+ logTailOffset: external_exports.number().int().nonnegative(),
19013
19064
  createdAt: external_exports.string().datetime(),
19014
19065
  updatedAt: external_exports.string().datetime()
19015
19066
  });
@@ -19068,7 +19119,9 @@ var init_src = __esm({
19068
19119
  init_secrets();
19069
19120
  init_session_commands();
19070
19121
  init_setup();
19122
+ init_e2b_webhook();
19071
19123
  init_runtime_log();
19124
+ init_runtime_log_tailer();
19072
19125
  init_runtimes();
19073
19126
  init_sessions();
19074
19127
  init_agents();
@@ -21759,7 +21812,7 @@ var init_package = __esm({
21759
21812
  "package.json"() {
21760
21813
  package_default = {
21761
21814
  name: "@autohq/cli",
21762
- version: "0.1.209",
21815
+ version: "0.1.211",
21763
21816
  license: "SEE LICENSE IN README.md",
21764
21817
  publishConfig: {
21765
21818
  access: "public"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autohq/cli",
3
- "version": "0.1.209",
3
+ "version": "0.1.211",
4
4
  "license": "SEE LICENSE IN README.md",
5
5
  "publishConfig": {
6
6
  "access": "public"