@super-one/cli 0.62.0 → 0.62.2-alpha

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.
Files changed (3) hide show
  1. package/MANIFEST.json +2 -2
  2. package/lib/cli.mjs +380 -317
  3. package/package.json +1 -1
package/MANIFEST.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@super-one/cli",
3
- "version": "0.62.0",
3
+ "version": "0.62.2-alpha",
4
4
  "kind": "npm",
5
5
  "minNodeMajor": 20,
6
- "builtAt": "2026-09-05T01:58:04.406Z"
6
+ "builtAt": "2026-09-07T00:09:56.921Z"
7
7
  }
package/lib/cli.mjs CHANGED
@@ -16,11 +16,20 @@ var __require = /* @__PURE__ */ ((x2) => typeof require !== "undefined" ? requir
16
16
  if (typeof require !== "undefined") return require.apply(this, arguments);
17
17
  throw Error('Dynamic require of "' + x2 + '" is not supported');
18
18
  });
19
- var __esm = (fn, res) => function __init() {
20
- return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
19
+ var __esm = (fn, res, err) => function __init() {
20
+ if (err) throw err[0];
21
+ try {
22
+ return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
23
+ } catch (e) {
24
+ throw err = [e], e;
25
+ }
21
26
  };
22
27
  var __commonJS = (cb, mod) => function __require2() {
23
- return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
28
+ try {
29
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
30
+ } catch (e) {
31
+ throw mod = 0, e;
32
+ }
24
33
  };
25
34
  var __export = (target, all) => {
26
35
  for (var name in all)
@@ -3919,10 +3928,10 @@ var require_constants = __commonJS({
3919
3928
  EMPTY_BUFFER: Buffer.alloc(0),
3920
3929
  GUID: "258EAFA5-E914-47DA-95CA-C5AB0DC85B11",
3921
3930
  hasBlob,
3922
- kForOnEventAttribute: Symbol("kIsForOnEventAttribute"),
3923
- kListener: Symbol("kListener"),
3924
- kStatusCode: Symbol("status-code"),
3925
- kWebSocket: Symbol("websocket"),
3931
+ kForOnEventAttribute: /* @__PURE__ */ Symbol("kIsForOnEventAttribute"),
3932
+ kListener: /* @__PURE__ */ Symbol("kListener"),
3933
+ kStatusCode: /* @__PURE__ */ Symbol("status-code"),
3934
+ kWebSocket: /* @__PURE__ */ Symbol("websocket"),
3926
3935
  NOOP: () => {
3927
3936
  }
3928
3937
  };
@@ -4220,8 +4229,8 @@ var require_buffer_util = __commonJS({
4220
4229
  var require_limiter = __commonJS({
4221
4230
  "../../node_modules/ws/lib/limiter.js"(exports, module) {
4222
4231
  "use strict";
4223
- var kDone = Symbol("kDone");
4224
- var kRun = Symbol("kRun");
4232
+ var kDone = /* @__PURE__ */ Symbol("kDone");
4233
+ var kRun = /* @__PURE__ */ Symbol("kRun");
4225
4234
  var Limiter = class {
4226
4235
  /**
4227
4236
  * Creates a new `Limiter`.
@@ -4276,11 +4285,11 @@ var require_permessage_deflate = __commonJS({
4276
4285
  var { kStatusCode } = require_constants();
4277
4286
  var FastBuffer = Buffer[Symbol.species];
4278
4287
  var TRAILER = Buffer.from([0, 0, 255, 255]);
4279
- var kPerMessageDeflate = Symbol("permessage-deflate");
4280
- var kTotalLength = Symbol("total-length");
4281
- var kCallback = Symbol("callback");
4282
- var kBuffers = Symbol("buffers");
4283
- var kError = Symbol("error");
4288
+ var kPerMessageDeflate = /* @__PURE__ */ Symbol("permessage-deflate");
4289
+ var kTotalLength = /* @__PURE__ */ Symbol("total-length");
4290
+ var kCallback = /* @__PURE__ */ Symbol("callback");
4291
+ var kBuffers = /* @__PURE__ */ Symbol("buffers");
4292
+ var kError = /* @__PURE__ */ Symbol("error");
4284
4293
  var zlibLimiter;
4285
4294
  var PerMessageDeflate2 = class {
4286
4295
  /**
@@ -5535,7 +5544,7 @@ var require_sender = __commonJS({
5535
5544
  var { EMPTY_BUFFER, kWebSocket, NOOP } = require_constants();
5536
5545
  var { isBlob, isValidStatusCode } = require_validation();
5537
5546
  var { mask: applyMask, toBuffer } = require_buffer_util();
5538
- var kByteLength = Symbol("kByteLength");
5547
+ var kByteLength = /* @__PURE__ */ Symbol("kByteLength");
5539
5548
  var maskBuffer = Buffer.alloc(4);
5540
5549
  var RANDOM_POOL_SIZE = 8 * 1024;
5541
5550
  var randomPool;
@@ -6020,14 +6029,14 @@ var require_event_target = __commonJS({
6020
6029
  "../../node_modules/ws/lib/event-target.js"(exports, module) {
6021
6030
  "use strict";
6022
6031
  var { kForOnEventAttribute, kListener } = require_constants();
6023
- var kCode = Symbol("kCode");
6024
- var kData = Symbol("kData");
6025
- var kError = Symbol("kError");
6026
- var kMessage = Symbol("kMessage");
6027
- var kReason = Symbol("kReason");
6028
- var kTarget = Symbol("kTarget");
6029
- var kType = Symbol("kType");
6030
- var kWasClean = Symbol("kWasClean");
6032
+ var kCode = /* @__PURE__ */ Symbol("kCode");
6033
+ var kData = /* @__PURE__ */ Symbol("kData");
6034
+ var kError = /* @__PURE__ */ Symbol("kError");
6035
+ var kMessage = /* @__PURE__ */ Symbol("kMessage");
6036
+ var kReason = /* @__PURE__ */ Symbol("kReason");
6037
+ var kTarget = /* @__PURE__ */ Symbol("kTarget");
6038
+ var kType = /* @__PURE__ */ Symbol("kType");
6039
+ var kWasClean = /* @__PURE__ */ Symbol("kWasClean");
6031
6040
  var Event3 = class {
6032
6041
  /**
6033
6042
  * Create a new `Event`.
@@ -6429,7 +6438,7 @@ var require_websocket = __commonJS({
6429
6438
  } = require_event_target();
6430
6439
  var { format, parse: parse4 } = require_extension();
6431
6440
  var { toBuffer } = require_buffer_util();
6432
- var kAborted = Symbol("kAborted");
6441
+ var kAborted = /* @__PURE__ */ Symbol("kAborted");
6433
6442
  var protocolVersions = [8, 13];
6434
6443
  var readyStates = ["CONNECTING", "OPEN", "CLOSING", "CLOSED"];
6435
6444
  var subprotocolRegex = /^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/;
@@ -11263,13 +11272,13 @@ var init_mcp_config_codex = __esm({
11263
11272
  var require_identity = __commonJS({
11264
11273
  "../../node_modules/yaml/dist/nodes/identity.js"(exports) {
11265
11274
  "use strict";
11266
- var ALIAS = Symbol.for("yaml.alias");
11267
- var DOC = Symbol.for("yaml.document");
11268
- var MAP = Symbol.for("yaml.map");
11269
- var PAIR = Symbol.for("yaml.pair");
11270
- var SCALAR = Symbol.for("yaml.scalar");
11271
- var SEQ = Symbol.for("yaml.seq");
11272
- var NODE_TYPE = Symbol.for("yaml.node.type");
11275
+ var ALIAS = /* @__PURE__ */ Symbol.for("yaml.alias");
11276
+ var DOC = /* @__PURE__ */ Symbol.for("yaml.document");
11277
+ var MAP = /* @__PURE__ */ Symbol.for("yaml.map");
11278
+ var PAIR = /* @__PURE__ */ Symbol.for("yaml.pair");
11279
+ var SCALAR = /* @__PURE__ */ Symbol.for("yaml.scalar");
11280
+ var SEQ = /* @__PURE__ */ Symbol.for("yaml.seq");
11281
+ var NODE_TYPE = /* @__PURE__ */ Symbol.for("yaml.node.type");
11273
11282
  var isAlias = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === ALIAS;
11274
11283
  var isDocument = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === DOC;
11275
11284
  var isMap2 = (node) => !!node && typeof node === "object" && node[NODE_TYPE] === MAP;
@@ -11321,9 +11330,9 @@ var require_visit = __commonJS({
11321
11330
  "../../node_modules/yaml/dist/visit.js"(exports) {
11322
11331
  "use strict";
11323
11332
  var identity = require_identity();
11324
- var BREAK = Symbol("break visit");
11325
- var SKIP = Symbol("skip children");
11326
- var REMOVE = Symbol("remove node");
11333
+ var BREAK = /* @__PURE__ */ Symbol("break visit");
11334
+ var SKIP = /* @__PURE__ */ Symbol("skip children");
11335
+ var REMOVE = /* @__PURE__ */ Symbol("remove node");
11327
11336
  function visit(node, visitor) {
11328
11337
  const visitor_ = initVisitor(visitor);
11329
11338
  if (identity.isDocument(node)) {
@@ -16783,9 +16792,9 @@ var require_cst_stringify = __commonJS({
16783
16792
  var require_cst_visit = __commonJS({
16784
16793
  "../../node_modules/yaml/dist/parse/cst-visit.js"(exports) {
16785
16794
  "use strict";
16786
- var BREAK = Symbol("break visit");
16787
- var SKIP = Symbol("skip children");
16788
- var REMOVE = Symbol("remove item");
16795
+ var BREAK = /* @__PURE__ */ Symbol("break visit");
16796
+ var SKIP = /* @__PURE__ */ Symbol("skip children");
16797
+ var REMOVE = /* @__PURE__ */ Symbol("remove item");
16789
16798
  function visit(cst, visitor) {
16790
16799
  if ("type" in cst && cst.type === "document")
16791
16800
  cst = { start: cst.start, value: cst.value };
@@ -23430,6 +23439,7 @@ var init_claude_live_session = __esm({
23430
23439
  const q2 = queryFn({ prompt: this.bridge, options });
23431
23440
  this.iterationDone = this.iterate(q2);
23432
23441
  }
23442
+ opts;
23433
23443
  bridge = new MessageBridge();
23434
23444
  pending = [];
23435
23445
  active = null;
@@ -23876,7 +23886,7 @@ function lastMergeTargetIndex(content, delta) {
23876
23886
  }
23877
23887
  return -1;
23878
23888
  }
23879
- function applyContentDelta(content, delta) {
23889
+ function applyContentDelta(content, delta, now = Date.now) {
23880
23890
  if (delta.type === "text") {
23881
23891
  const idx = lastMergeTargetIndex(content, delta);
23882
23892
  const target = idx === -1 ? void 0 : content[idx];
@@ -23896,7 +23906,7 @@ function applyContentDelta(content, delta) {
23896
23906
  if (idx !== -1) {
23897
23907
  const existing = content[idx];
23898
23908
  if (existing.type !== "tool_use") {
23899
- return content.map((b3, i) => i === idx ? { ...delta, startedAt: Date.now() } : b3);
23909
+ return content.map((b3, i) => i === idx ? { ...delta, startedAt: now() } : b3);
23900
23910
  }
23901
23911
  const mergedInput = mergeToolUseInputJson(existing.input, delta.input);
23902
23912
  const mergedSummary = pickRicherToolSummary(
@@ -23916,7 +23926,7 @@ function applyContentDelta(content, delta) {
23916
23926
  toolFilePath: delta.toolFilePath || existing.toolFilePath
23917
23927
  } : b3);
23918
23928
  }
23919
- return [...content, { ...delta, startedAt: Date.now() }];
23929
+ return [...content, { ...delta, startedAt: now() }];
23920
23930
  }
23921
23931
  if (delta.type === "tool_result") {
23922
23932
  const updated = content.map(
@@ -25692,6 +25702,11 @@ var init_session_runtime = __esm({
25692
25702
  }
25693
25703
  }
25694
25704
  }
25705
+ store;
25706
+ events;
25707
+ leases;
25708
+ environmentId;
25709
+ turnRunner;
25695
25710
  aborts = /* @__PURE__ */ new Map();
25696
25711
  live = /* @__PURE__ */ new Map();
25697
25712
  /** In-flight turn promises (including runner cleanup / process kill). */
@@ -27447,6 +27462,8 @@ var init_event_log = __esm({
27447
27462
  this.db = db;
27448
27463
  this.environmentId = environmentId;
27449
27464
  }
27465
+ db;
27466
+ environmentId;
27450
27467
  append(input) {
27451
27468
  const eventId = randomUUID5();
27452
27469
  const timestamp = Date.now();
@@ -31512,7 +31529,7 @@ var init_core = __esm({
31512
31529
  NEVER = /* @__PURE__ */ Object.freeze({
31513
31530
  status: "aborted"
31514
31531
  });
31515
- $brand = Symbol("zod_brand");
31532
+ $brand = /* @__PURE__ */ Symbol("zod_brand");
31516
31533
  $ZodAsyncError = class extends Error {
31517
31534
  constructor() {
31518
31535
  super(`Encountered Promise during synchronous parse. Use .parseAsync() instead.`);
@@ -41681,8 +41698,8 @@ function registry() {
41681
41698
  var _a2, $output, $input, $ZodRegistry, globalRegistry;
41682
41699
  var init_registries = __esm({
41683
41700
  "../../node_modules/zod/v4/core/registries.js"() {
41684
- $output = Symbol("ZodOutput");
41685
- $input = Symbol("ZodInput");
41701
+ $output = /* @__PURE__ */ Symbol("ZodOutput");
41702
+ $input = /* @__PURE__ */ Symbol("ZodInput");
41686
41703
  $ZodRegistry = class {
41687
41704
  constructor() {
41688
41705
  this._map = /* @__PURE__ */ new WeakMap();
@@ -46601,12 +46618,12 @@ var skippedItem;
46601
46618
  var init_schema_deserialize = __esm({
46602
46619
  "../../node_modules/@agentclientprotocol/sdk/dist/schema-deserialize.js"() {
46603
46620
  init_v4();
46604
- skippedItem = Symbol("skippedItem");
46621
+ skippedItem = /* @__PURE__ */ Symbol("skippedItem");
46605
46622
  }
46606
46623
  });
46607
46624
 
46608
46625
  // ../../node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js
46609
- var zRequestId, zSessionId, zWriteTextFileRequest, zReadTextFileRequest, zToolCallId, zToolKind, zToolCallStatus, zRole, zAnnotations, zTextContent, zImageContent, zAudioContent, zResourceLink, zTextResourceContents, zBlobResourceContents, zEmbeddedResourceResource, zEmbeddedResource, zContentBlock, zContent, zDiff, zTerminalId, zTerminal, zToolCallContent, zToolCallLocation, zToolCallUpdate, zPermissionOptionId, zPermissionOptionKind, zPermissionOption, zRequestPermissionRequest, zEnvVariable, zCreateTerminalRequest, zTerminalOutputRequest, zReleaseTerminalRequest, zWaitForTerminalExitRequest, zKillTerminalRequest, zElicitationSessionScope, zElicitationRequestScope, zElicitationSchemaType, zStringFormat, zEnumOption, zStringPropertySchema, zNumberPropertySchema, zIntegerPropertySchema, zBooleanPropertySchema, zStringMultiSelectItems, zTitledMultiSelectItems, zMultiSelectItems, zMultiSelectPropertySchema, zElicitationPropertySchema, zElicitationSchema, zElicitationFormMode, zElicitationId, zElicitationUrlMode, zCreateElicitationRequest, zMcpServerAcpId, zConnectMcpRequest, zMcpConnectionId, zMessageMcpRequest, zDisconnectMcpRequest, zExtRequest, zAgentRequest, zProtocolVersion, zPromptCapabilities, zMcpCapabilities, zSessionListCapabilities, zSessionDeleteCapabilities, zSessionAdditionalDirectoriesCapabilities, zSessionForkCapabilities, zSessionResumeCapabilities, zSessionCloseCapabilities, zSessionCapabilities, zLogoutCapabilities, zAgentAuthCapabilities, zProvidersCapabilities, zNesDocumentDidOpenCapabilities, zTextDocumentSyncKind, zNesDocumentDidChangeCapabilities, zNesDocumentDidCloseCapabilities, zNesDocumentDidSaveCapabilities, zNesDocumentDidFocusCapabilities, zNesDocumentEventCapabilities, zNesEventCapabilities, zNesRecentFilesCapabilities, zNesRelatedSnippetsCapabilities, zNesEditHistoryCapabilities, zNesUserActionsCapabilities, zNesOpenFilesCapabilities, zNesDiagnosticsCapabilities, zNesContextCapabilities, zNesCapabilities, zPositionEncodingKind, zAgentCapabilities, zAuthMethodId, zAuthEnvVar, zAuthMethodEnvVar, zAuthMethodTerminal, zAuthMethodAgent, zAuthMethod, zImplementation, zInitializeResponse, zAuthenticateResponse, zProviderId, zLlmProtocol, zProviderCurrentConfig, zProviderInfo, zListProvidersResponse, zSetProviderResponse, zDisableProviderResponse, zLogoutResponse, zSessionModeId, zSessionMode, zSessionModeState, zSessionConfigId, zSessionConfigOptionCategory, zSessionConfigValueId, zSessionConfigSelectOption, zSessionConfigGroupId, zSessionConfigSelectGroup, zSessionConfigSelectOptions, zSessionConfigSelect, zSessionConfigBoolean, zSessionConfigOption, zNewSessionResponse, zLoadSessionResponse, zSessionInfo, zListSessionsResponse, zDeleteSessionResponse, zForkSessionResponse, zResumeSessionResponse, zCloseSessionResponse, zSetSessionModeResponse, zSetSessionConfigOptionResponse, zStopReason, zUsage, zPromptResponse, zStartNesResponse, zNesSuggestionId, zPosition, zRange, zNesTextEdit, zNesEditSuggestion, zNesJumpSuggestion, zNesRenameSuggestion, zNesSearchAndReplaceSuggestion, zNesSuggestion, zSuggestNesResponse, zCloseNesResponse, zExtResponse, zMessageMcpResponse, zErrorCode, zError, zAgentResponse, zMessageId, zContentChunk, zToolCall, zPlanEntryPriority, zPlanEntryStatus, zPlanEntry, zPlan, zPlanId, zPlanItems, zPlanFile, zPlanMarkdown, zPlanUpdateContent, zPlanUpdate, zPlanRemoved, zUnstructuredCommandInput, zAvailableCommandInput, zAvailableCommand, zAvailableCommandsUpdate, zCurrentModeUpdate, zConfigOptionUpdate, zSessionInfoUpdate, zCost, zUsageUpdate, zSessionUpdate, zSessionNotification, zCompleteElicitationNotification, zMessageMcpNotification, zExtNotification, zAgentNotification, zFileSystemCapabilities, zBooleanConfigOptionCapabilities, zSessionConfigOptionsCapabilities, zClientSessionCapabilities, zPlanCapabilities, zAuthCapabilities, zElicitationFormCapabilities, zElicitationUrlCapabilities, zElicitationCapabilities, zNesJumpCapabilities, zNesRenameCapabilities, zNesSearchAndReplaceCapabilities, zClientNesCapabilities, zClientCapabilities, zInitializeRequest, zAuthenticateRequest, zListProvidersRequest, zSetProviderRequest, zDisableProviderRequest, zLogoutRequest, zHttpHeader, zMcpServerHttp, zMcpServerSse, zMcpServerAcp, zMcpServerStdio, zMcpServer, zNewSessionRequest, zLoadSessionRequest, zListSessionsRequest, zDeleteSessionRequest, zForkSessionRequest, zResumeSessionRequest, zCloseSessionRequest, zSetSessionModeRequest, zSetSessionConfigOptionRequest, zPromptRequest, zWorkspaceFolder, zNesRepository, zStartNesRequest, zNesTriggerKind, zNesRecentFile, zNesExcerpt, zNesRelatedSnippet, zNesEditHistoryEntry, zNesUserAction, zNesOpenFile, zNesDiagnosticSeverity, zNesDiagnostic, zNesSuggestContext, zSuggestNesRequest, zCloseNesRequest, zClientRequest, zWriteTextFileResponse, zReadTextFileResponse, zSelectedPermissionOutcome, zRequestPermissionOutcome, zRequestPermissionResponse, zCreateTerminalResponse, zTerminalExitStatus, zTerminalOutputResponse, zReleaseTerminalResponse, zWaitForTerminalExitResponse, zKillTerminalResponse, zElicitationContentValue, zElicitationAcceptAction, zCreateElicitationResponse, zConnectMcpResponse, zDisconnectMcpResponse, zClientResponse, zCancelNotification, zDidOpenDocumentNotification, zTextDocumentContentChangeEvent, zDidChangeDocumentNotification, zDidCloseDocumentNotification, zDidSaveDocumentNotification, zDidFocusDocumentNotification, zAcceptNesNotification, zNesRejectReason, zRejectNesNotification, zClientNotification, zCancelRequestNotification;
46626
+ var zRequestId, zSessionId, zWriteTextFileRequest, zReadTextFileRequest, zToolCallId, zToolKind, zToolCallStatus, zRole, zAnnotations, zTextContent, zImageContent, zAudioContent, zResourceLink, zTextResourceContents, zBlobResourceContents, zEmbeddedResourceResource, zEmbeddedResource, zContentBlock, zContent, zDiff, zTerminalId, zTerminal, zToolCallContent, zToolCallLocation, zToolCallUpdate, zPermissionOptionId, zPermissionOptionKind, zPermissionOption, zRequestPermissionRequest, zEnvVariable, zCreateTerminalRequest, zTerminalOutputRequest, zReleaseTerminalRequest, zWaitForTerminalExitRequest, zKillTerminalRequest, zElicitationSessionScope, zElicitationRequestScope, zElicitationSchemaType, zStringFormat, zEnumOption, zStringPropertySchema, zNumberPropertySchema, zIntegerPropertySchema, zBooleanPropertySchema, zStringMultiSelectItems, zTitledMultiSelectItems, zMultiSelectItems, zMultiSelectPropertySchema, zElicitationPropertySchema, zElicitationSchema, zElicitationFormMode, zElicitationId, zElicitationUrlMode, zCreateElicitationRequest, zMcpServerAcpId, zConnectMcpRequest, zMcpConnectionId, zMessageMcpRequest, zDisconnectMcpRequest, zExtRequest, zAgentRequest, zProtocolVersion, zPromptCapabilities, zMcpCapabilities, zSessionListCapabilities, zSessionDeleteCapabilities, zSessionAdditionalDirectoriesCapabilities, zSessionForkCapabilities, zSessionResumeCapabilities, zSessionCloseCapabilities, zSessionCapabilities, zLogoutCapabilities, zAgentAuthCapabilities, zProvidersCapabilities, zNesDocumentDidOpenCapabilities, zTextDocumentSyncKind, zNesDocumentDidChangeCapabilities, zNesDocumentDidCloseCapabilities, zNesDocumentDidSaveCapabilities, zNesDocumentDidFocusCapabilities, zNesDocumentEventCapabilities, zNesEventCapabilities, zNesRecentFilesCapabilities, zNesRelatedSnippetsCapabilities, zNesEditHistoryCapabilities, zNesUserActionsCapabilities, zNesOpenFilesCapabilities, zNesDiagnosticsCapabilities, zNesContextCapabilities, zNesCapabilities, zPositionEncodingKind, zAgentCapabilities, zAuthMethodId, zAuthMethodTerminal, zAuthMethodAgent, zAuthMethod, zImplementation, zInitializeResponse, zAuthenticateResponse, zProviderId, zLlmProtocol, zProviderCurrentConfig, zProviderInfo, zListProvidersResponse, zSetProviderResponse, zDisableProviderResponse, zLogoutResponse, zSessionModeId, zSessionMode, zSessionModeState, zSessionConfigId, zSessionConfigOptionCategory, zSessionConfigValueId, zSessionConfigSelectOption, zSessionConfigGroupId, zSessionConfigSelectGroup, zSessionConfigSelectOptions, zSessionConfigSelect, zSessionConfigBoolean, zSessionConfigOption, zNewSessionResponse, zLoadSessionResponse, zSessionInfo, zListSessionsResponse, zDeleteSessionResponse, zForkSessionResponse, zResumeSessionResponse, zCloseSessionResponse, zSetSessionModeResponse, zSetSessionConfigOptionResponse, zStopReason, zUsage, zPromptResponse, zStartNesResponse, zNesSuggestionId, zPosition, zRange, zNesTextEdit, zNesEditSuggestion, zNesJumpSuggestion, zNesRenameSuggestion, zNesSearchAndReplaceSuggestion, zNesSuggestion, zSuggestNesResponse, zCloseNesResponse, zExtResponse, zMessageMcpResponse, zErrorCode, zError, zAgentResponse, zMessageId, zContentChunk, zToolCall, zPlanEntryPriority, zPlanEntryStatus, zPlanEntry, zPlan, zPlanId, zPlanItems, zPlanFile, zPlanMarkdown, zPlanUpdateContent, zPlanUpdate, zPlanRemoved, zUnstructuredCommandInput, zAvailableCommandInput, zAvailableCommand, zAvailableCommandsUpdate, zCurrentModeUpdate, zConfigOptionUpdate, zSessionInfoUpdate, zCost, zUsageUpdate, zCompactionId, zCompactionStatus, zCompactionUpdate, zCompactionSummaryChunk, zSessionUpdate, zSessionNotification, zCompleteElicitationNotification, zMessageMcpNotification, zExtNotification, zAgentNotification, zFileSystemCapabilities, zCompactionCapabilities, zBooleanConfigOptionCapabilities, zSessionConfigOptionsCapabilities, zClientSessionCapabilities, zPlanCapabilities, zAuthCapabilities, zElicitationFormCapabilities, zElicitationUrlCapabilities, zElicitationCapabilities, zNesJumpCapabilities, zNesRenameCapabilities, zNesSearchAndReplaceCapabilities, zClientNesCapabilities, zClientCapabilities, zInitializeRequest, zAuthenticateRequest, zListProvidersRequest, zSetProviderRequest, zDisableProviderRequest, zLogoutRequest, zHttpHeader, zMcpServerHttp, zMcpServerSse, zMcpServerAcp, zMcpServerStdio, zMcpServer, zNewSessionRequest, zLoadSessionRequest, zListSessionsRequest, zDeleteSessionRequest, zForkSessionRequest, zResumeSessionRequest, zCloseSessionRequest, zSetSessionModeRequest, zSetSessionConfigOptionRequest, zPromptRequest, zWorkspaceFolder, zNesRepository, zStartNesRequest, zNesTriggerKind, zNesRecentFile, zNesExcerpt, zNesRelatedSnippet, zNesEditHistoryEntry, zNesUserAction, zNesOpenFile, zNesDiagnosticSeverity, zNesDiagnostic, zNesSuggestContext, zSuggestNesRequest, zCloseNesRequest, zClientRequest, zWriteTextFileResponse, zReadTextFileResponse, zSelectedPermissionOutcome, zRequestPermissionOutcome, zRequestPermissionResponse, zCreateTerminalResponse, zTerminalExitStatus, zTerminalOutputResponse, zReleaseTerminalResponse, zWaitForTerminalExitResponse, zKillTerminalResponse, zElicitationContentValue, zElicitationAcceptAction, zCreateElicitationResponse, zConnectMcpResponse, zDisconnectMcpResponse, zClientResponse, zCancelNotification, zDidOpenDocumentNotification, zTextDocumentContentChangeEvent, zDidChangeDocumentNotification, zDidCloseDocumentNotification, zDidSaveDocumentNotification, zDidFocusDocumentNotification, zAcceptNesNotification, zNesRejectReason, zRejectNesNotification, zClientNotification, zCancelRequestNotification;
46610
46627
  var init_zod_gen = __esm({
46611
46628
  "../../node_modules/@agentclientprotocol/sdk/dist/schema/zod.gen.js"() {
46612
46629
  init_schema_deserialize();
@@ -47146,21 +47163,6 @@ var init_zod_gen = __esm({
47146
47163
  _meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
47147
47164
  });
47148
47165
  zAuthMethodId = string2();
47149
- zAuthEnvVar = object({
47150
- name: string2(),
47151
- label: defaultOnError(string2().nullish(), () => void 0),
47152
- secret: defaultOnError(boolean2().optional().default(true), () => true),
47153
- optional: defaultOnError(boolean2().optional().default(false), () => false),
47154
- _meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
47155
- });
47156
- zAuthMethodEnvVar = object({
47157
- id: zAuthMethodId,
47158
- name: string2(),
47159
- description: defaultOnError(string2().nullish(), () => void 0),
47160
- vars: requiredDefaultOnError(vecSkipError(zAuthEnvVar), () => []),
47161
- link: defaultOnError(string2().nullish(), () => void 0),
47162
- _meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
47163
- });
47164
47166
  zAuthMethodTerminal = object({
47165
47167
  id: zAuthMethodId,
47166
47168
  name: string2(),
@@ -47176,9 +47178,6 @@ var init_zod_gen = __esm({
47176
47178
  _meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
47177
47179
  });
47178
47180
  zAuthMethod = union([
47179
- zAuthMethodEnvVar.and(object({
47180
- type: literal("env_var")
47181
- })),
47182
47181
  zAuthMethodTerminal.and(object({
47183
47182
  type: literal("terminal")
47184
47183
  })),
@@ -47629,6 +47628,26 @@ var init_zod_gen = __esm({
47629
47628
  cost: defaultOnError(zCost.nullish(), () => void 0),
47630
47629
  _meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
47631
47630
  });
47631
+ zCompactionId = string2();
47632
+ zCompactionStatus = union([
47633
+ literal("in_progress"),
47634
+ literal("completed"),
47635
+ literal("failed"),
47636
+ literal("cancelled"),
47637
+ string2()
47638
+ ]);
47639
+ zCompactionUpdate = object({
47640
+ compactionId: zCompactionId,
47641
+ status: zCompactionStatus,
47642
+ summary: defaultOnError(vecSkipError(zContentBlock).nullish(), () => void 0),
47643
+ error: defaultOnError(string2().nullish(), () => void 0),
47644
+ _meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
47645
+ });
47646
+ zCompactionSummaryChunk = object({
47647
+ compactionId: zCompactionId,
47648
+ content: zContentBlock,
47649
+ _meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
47650
+ });
47632
47651
  zSessionUpdate = union([
47633
47652
  zContentChunk.and(object({
47634
47653
  sessionUpdate: literal("user_message_chunk")
@@ -47668,6 +47687,12 @@ var init_zod_gen = __esm({
47668
47687
  })),
47669
47688
  zUsageUpdate.and(object({
47670
47689
  sessionUpdate: literal("usage_update")
47690
+ })),
47691
+ zCompactionUpdate.and(object({
47692
+ sessionUpdate: literal("compaction_update")
47693
+ })),
47694
+ zCompactionSummaryChunk.and(object({
47695
+ sessionUpdate: literal("compaction_summary_chunk")
47671
47696
  }))
47672
47697
  ]);
47673
47698
  zSessionNotification = object({
@@ -47700,6 +47725,7 @@ var init_zod_gen = __esm({
47700
47725
  writeTextFile: defaultOnError(boolean2().optional().default(false), () => false),
47701
47726
  _meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
47702
47727
  });
47728
+ zCompactionCapabilities = record(string2(), unknown());
47703
47729
  zBooleanConfigOptionCapabilities = object({
47704
47730
  _meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
47705
47731
  });
@@ -47708,6 +47734,7 @@ var init_zod_gen = __esm({
47708
47734
  _meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
47709
47735
  });
47710
47736
  zClientSessionCapabilities = object({
47737
+ compaction: defaultOnError(zCompactionCapabilities.nullish(), () => void 0),
47711
47738
  configOptions: defaultOnError(zSessionConfigOptionsCapabilities.nullish(), () => void 0),
47712
47739
  _meta: defaultOnError(record(string2(), unknown()).nullish(), () => void 0)
47713
47740
  });
@@ -48329,7 +48356,14 @@ function isAbortError(error51) {
48329
48356
  const maybeAbortError = error51;
48330
48357
  return maybeAbortError.name === "AbortError" || maybeAbortError.code === "ABORT_ERR";
48331
48358
  }
48332
- var CANCEL_REQUEST_METHOD, Handled, RequestResponder, HandlerRegistration, ConnectionContext, Connection, ConnectionBuilder, RequestError;
48359
+ function protocolErrorResponse(error51) {
48360
+ return {
48361
+ jsonrpc: "2.0",
48362
+ id: null,
48363
+ error: error51.toErrorResponse()
48364
+ };
48365
+ }
48366
+ var CANCEL_REQUEST_METHOD, Handled, RequestResponder, requestBatchSizes, HandlerRegistration, ConnectionContext, Connection, ConnectionBuilder, RequestError;
48333
48367
  var init_jsonrpc = __esm({
48334
48368
  "../../node_modules/@agentclientprotocol/sdk/dist/jsonrpc.js"() {
48335
48369
  CANCEL_REQUEST_METHOD = "$/cancel_request";
@@ -48391,6 +48425,7 @@ var init_jsonrpc = __esm({
48391
48425
  });
48392
48426
  }
48393
48427
  };
48428
+ requestBatchSizes = /* @__PURE__ */ new WeakMap();
48394
48429
  HandlerRegistration = class {
48395
48430
  disposeHandler;
48396
48431
  active = true;
@@ -48741,9 +48776,6 @@ var init_jsonrpc = __esm({
48741
48776
  if (done) {
48742
48777
  break;
48743
48778
  }
48744
- if (!message) {
48745
- continue;
48746
- }
48747
48779
  this.receiveWireMessage(message);
48748
48780
  }
48749
48781
  } finally {
@@ -48767,19 +48799,16 @@ var init_jsonrpc = __esm({
48767
48799
  this.receiveBatch(message);
48768
48800
  return;
48769
48801
  }
48770
- if (!isRecord(message)) {
48771
- console.error("Invalid message", { message });
48802
+ if (!isRequestMessage(message) && !isNotificationMessage(message) && !isResponseShapedMessage(message)) {
48803
+ void this.sendWireMessage(protocolErrorResponse(RequestError.invalidRequest(message))).catch(() => {
48804
+ });
48772
48805
  return;
48773
48806
  }
48774
48807
  this.receiveMessage(message);
48775
48808
  }
48776
48809
  receiveBatch(batch) {
48777
48810
  if (batch.length === 0) {
48778
- void this.sendWireMessage({
48779
- jsonrpc: "2.0",
48780
- id: null,
48781
- error: RequestError.invalidRequest(batch).toErrorResponse()
48782
- }).catch(() => {
48811
+ void this.sendWireMessage(protocolErrorResponse(RequestError.invalidRequest(batch))).catch(() => {
48783
48812
  });
48784
48813
  return;
48785
48814
  }
@@ -48809,15 +48838,11 @@ var init_jsonrpc = __esm({
48809
48838
  continue;
48810
48839
  }
48811
48840
  if (!isRequestMessage(message) && !isNotificationMessage(message)) {
48812
- void collectResponse({
48813
- jsonrpc: "2.0",
48814
- id: null,
48815
- error: RequestError.invalidRequest(message).toErrorResponse()
48816
- }).catch(() => {
48841
+ void collectResponse(protocolErrorResponse(RequestError.invalidRequest(message))).catch(() => {
48817
48842
  });
48818
48843
  continue;
48819
48844
  }
48820
- const processing = this.receiveMessage(message, isRequestMessage(message) ? collectResponse : void 0);
48845
+ const processing = this.receiveMessage(message, isRequestMessage(message) ? collectResponse : void 0, batch.length);
48821
48846
  if (isNotificationMessage(message)) {
48822
48847
  void processing.finally(() => {
48823
48848
  remainingNotifications -= 1;
@@ -48826,7 +48851,7 @@ var init_jsonrpc = __esm({
48826
48851
  }
48827
48852
  }
48828
48853
  }
48829
- receiveMessage(message, sendResponse) {
48854
+ receiveMessage(message, sendResponse, batchSize) {
48830
48855
  if (this.abortController.signal.aborted) {
48831
48856
  return Promise.resolve();
48832
48857
  }
@@ -48838,7 +48863,7 @@ var init_jsonrpc = __esm({
48838
48863
  if (!("id" in message)) {
48839
48864
  this.handleProtocolNotification(message);
48840
48865
  }
48841
- return this.processIncomingMessage(this.toIncomingMessage(message, sendResponse)).catch((error51) => this.close(error51));
48866
+ return this.processIncomingMessage(this.toIncomingMessage(message, sendResponse, batchSize)).catch((error51) => this.close(error51));
48842
48867
  } else if ("id" in message) {
48843
48868
  this.handleResponse(message);
48844
48869
  } else {
@@ -48888,7 +48913,7 @@ var init_jsonrpc = __esm({
48888
48913
  }
48889
48914
  }
48890
48915
  }
48891
- toIncomingMessage(message, sendResponse) {
48916
+ toIncomingMessage(message, sendResponse, batchSize) {
48892
48917
  if ("id" in message) {
48893
48918
  const abortController = new AbortController();
48894
48919
  this.incomingRequests.set(message.id, abortController);
@@ -48897,20 +48922,24 @@ var init_jsonrpc = __esm({
48897
48922
  this.incomingRequests.delete(message.id);
48898
48923
  }
48899
48924
  };
48925
+ const responder = new RequestResponder(message.id, (result) => {
48926
+ const response = {
48927
+ jsonrpc: "2.0",
48928
+ id: message.id,
48929
+ ...result
48930
+ };
48931
+ return sendResponse ? sendResponse(response) : this.sendWireMessage(response);
48932
+ }, abortController.signal, finishRequest);
48933
+ if (batchSize !== void 0) {
48934
+ requestBatchSizes.set(responder, batchSize);
48935
+ }
48900
48936
  return {
48901
48937
  kind: "request",
48902
48938
  method: message.method,
48903
48939
  params: message.params,
48904
48940
  raw: message,
48905
48941
  signal: abortController.signal,
48906
- responder: new RequestResponder(message.id, (result) => {
48907
- const response = {
48908
- jsonrpc: "2.0",
48909
- id: message.id,
48910
- ...result
48911
- };
48912
- return sendResponse ? sendResponse(response) : this.sendWireMessage(response);
48913
- }, abortController.signal, finishRequest)
48942
+ responder
48914
48943
  };
48915
48944
  }
48916
48945
  return {
@@ -49199,22 +49228,40 @@ function ndJsonStream(output, input) {
49199
49228
  const textDecoder2 = new TextDecoder();
49200
49229
  let cancelled = false;
49201
49230
  let inputReader;
49231
+ let outputWrite = Promise.resolve();
49232
+ const writeJson = (message) => {
49233
+ const content = JSON.stringify(message) + "\n";
49234
+ const write = outputWrite.then(async () => {
49235
+ const writer = output.getWriter();
49236
+ try {
49237
+ await writer.write(textEncoder.encode(content));
49238
+ } finally {
49239
+ writer.releaseLock();
49240
+ }
49241
+ });
49242
+ outputWrite = write.catch(() => {
49243
+ });
49244
+ return write;
49245
+ };
49202
49246
  const readable = new ReadableStream({
49203
49247
  async start(controller) {
49204
49248
  const lines = new LineBuffer();
49205
- const enqueueLine = (lineBytes) => {
49249
+ const enqueueLine = async (lineBytes) => {
49206
49250
  const trimmedLine = textDecoder2.decode(lineBytes).trim();
49207
- if (trimmedLine) {
49208
- try {
49209
- const message = JSON.parse(trimmedLine);
49210
- if (isRecord(message) || Array.isArray(message)) {
49211
- controller.enqueue(message);
49212
- } else {
49213
- console.warn("Skipping JSON line that is not an object:", trimmedLine);
49214
- }
49215
- } catch (err) {
49216
- console.error("Failed to parse JSON message:", trimmedLine, err);
49217
- }
49251
+ if (!trimmedLine) {
49252
+ return;
49253
+ }
49254
+ let message;
49255
+ try {
49256
+ message = JSON.parse(trimmedLine);
49257
+ } catch {
49258
+ await writeJson(protocolErrorResponse(RequestError.parseError()));
49259
+ return;
49260
+ }
49261
+ if (isRecord(message) || Array.isArray(message)) {
49262
+ controller.enqueue(message);
49263
+ } else {
49264
+ await writeJson(protocolErrorResponse(RequestError.invalidRequest(message)));
49218
49265
  }
49219
49266
  };
49220
49267
  const reader = input.getReader();
@@ -49232,7 +49279,7 @@ function ndJsonStream(output, input) {
49232
49279
  continue;
49233
49280
  }
49234
49281
  for (const line of lines.push(value)) {
49235
- enqueueLine(line);
49282
+ await enqueueLine(line);
49236
49283
  if (cancelled) {
49237
49284
  return;
49238
49285
  }
@@ -49243,7 +49290,7 @@ function ndJsonStream(output, input) {
49243
49290
  }
49244
49291
  const lastLine = lines.flush();
49245
49292
  if (lastLine) {
49246
- enqueueLine(lastLine);
49293
+ await enqueueLine(lastLine);
49247
49294
  }
49248
49295
  } catch (err) {
49249
49296
  if (cancelled) {
@@ -49268,14 +49315,8 @@ function ndJsonStream(output, input) {
49268
49315
  }
49269
49316
  });
49270
49317
  const writable = new WritableStream({
49271
- async write(message) {
49272
- const content = JSON.stringify(message) + "\n";
49273
- const writer = output.getWriter();
49274
- try {
49275
- await writer.write(textEncoder.encode(content));
49276
- } finally {
49277
- writer.releaseLock();
49278
- }
49318
+ write(message) {
49319
+ return writeJson(message);
49279
49320
  }
49280
49321
  });
49281
49322
  return { readable, writable };
@@ -49508,7 +49549,7 @@ var init_acp = __esm({
49508
49549
  cancelRequest: PROTOCOL_METHODS.cancel_request
49509
49550
  }
49510
49551
  };
49511
- startActiveSession = Symbol("startActiveSession");
49552
+ startActiveSession = /* @__PURE__ */ Symbol("startActiveSession");
49512
49553
  AcpContext = class {
49513
49554
  cx;
49514
49555
  currentRequestId;
@@ -49944,11 +49985,11 @@ var init_acp = __esm({
49944
49985
  releaseTerminal: requestSpec(CLIENT_METHODS.terminal_release, zReleaseTerminalRequest, emptyObjectResponse),
49945
49986
  waitForTerminalExit: requestSpec(CLIENT_METHODS.terminal_wait_for_exit, zWaitForTerminalExitRequest),
49946
49987
  killTerminal: requestSpec(CLIENT_METHODS.terminal_kill, zKillTerminalRequest, emptyObjectResponse),
49947
- unstable_createElicitation: requestSpec(CLIENT_METHODS.elicitation_create, zCreateElicitationRequest)
49988
+ createElicitation: requestSpec(CLIENT_METHODS.elicitation_create, zCreateElicitationRequest)
49948
49989
  };
49949
49990
  clientNotificationSpecs = {
49950
49991
  sessionUpdate: notificationSpec(CLIENT_METHODS.session_update, zSessionNotification),
49951
- unstable_completeElicitation: notificationSpec(CLIENT_METHODS.elicitation_complete, zCompleteElicitationNotification)
49992
+ completeElicitation: notificationSpec(CLIENT_METHODS.elicitation_complete, zCompleteElicitationNotification)
49952
49993
  };
49953
49994
  agentRequestSpecsByMethod = specsByMethod(agentRequestSpecs);
49954
49995
  agentNotificationSpecsByMethod = specsByMethod(agentNotificationSpecs);
@@ -49987,9 +50028,9 @@ var init_acp = __esm({
49987
50028
  }
49988
50029
  };
49989
50030
  sessionUpdateRouters = /* @__PURE__ */ new WeakMap();
49990
- appBuilder = Symbol("appBuilder");
49991
- runAgentConnectHandlers = Symbol("runAgentConnectHandlers");
49992
- runClientConnectHandlers = Symbol("runClientConnectHandlers");
50031
+ appBuilder = /* @__PURE__ */ Symbol("appBuilder");
50032
+ runAgentConnectHandlers = /* @__PURE__ */ Symbol("runAgentConnectHandlers");
50033
+ runClientConnectHandlers = /* @__PURE__ */ Symbol("runClientConnectHandlers");
49993
50034
  stableConnectionOptions = { allowBatches: false };
49994
50035
  AgentApp = class {
49995
50036
  builder = Connection.builder();
@@ -55070,7 +55111,7 @@ var init_sdk_gen = __esm({
55070
55111
  /**
55071
55112
  * Upgrade opencode
55072
55113
  *
55073
- * Upgrade opencode to the specified version or latest if not specified.
55114
+ * Upgrade opencode to the specified version.
55074
55115
  */
55075
55116
  upgrade(parameters, options) {
55076
55117
  const params = buildClientParams([parameters], [{ args: [{ in: "body", key: "target" }] }]);
@@ -61629,20 +61670,27 @@ var init_cursor_store = __esm({
61629
61670
  }
61630
61671
  });
61631
61672
 
61632
- // ../../packages/cursor/src/cursor-model-selection.ts
61633
- function parseCursorContextWindow(raw) {
61673
+ // ../../packages/shared/src/model-option-params.ts
61674
+ function parseCatalogContextWindow(raw) {
61634
61675
  if (!raw) return null;
61635
61676
  const match = /^(\d+(?:\.\d+)?)\s*([km])?$/i.exec(raw.trim());
61636
61677
  if (!match) return null;
61637
61678
  const amount = Number(match[1]);
61638
61679
  if (!Number.isFinite(amount) || amount <= 0) return null;
61639
61680
  const unit = match[2]?.toLowerCase();
61640
- const multiplier = unit === "m" ? 1e6 : unit === "k" ? 1e3 : 1;
61641
- return Math.round(amount * multiplier);
61681
+ return Math.round(amount * (unit === "m" ? 1e6 : unit === "k" ? 1e3 : 1));
61642
61682
  }
61683
+ var init_model_option_params = __esm({
61684
+ "../../packages/shared/src/model-option-params.ts"() {
61685
+ "use strict";
61686
+ }
61687
+ });
61688
+
61689
+ // ../../packages/cursor/src/cursor-model-selection.ts
61643
61690
  var init_cursor_model_selection = __esm({
61644
61691
  "../../packages/cursor/src/cursor-model-selection.ts"() {
61645
61692
  "use strict";
61693
+ init_model_option_params();
61646
61694
  }
61647
61695
  });
61648
61696
 
@@ -61816,7 +61864,7 @@ function formatCursorError(error51) {
61816
61864
  }
61817
61865
  function resolveContextWindow(modelSelection) {
61818
61866
  const contextParam = modelSelection?.params?.find((p3) => p3.id === "context");
61819
- return parseCursorContextWindow(contextParam?.value);
61867
+ return parseCatalogContextWindow(contextParam?.value);
61820
61868
  }
61821
61869
  async function createCursorRuntime(opts) {
61822
61870
  const log2 = {
@@ -62985,6 +63033,7 @@ var init_codex_admin_service = __esm({
62985
63033
  constructor(opts) {
62986
63034
  this.opts = opts;
62987
63035
  }
63036
+ opts;
62988
63037
  getProjectAuth(projectId) {
62989
63038
  let auth = projectAuthById.get(projectId);
62990
63039
  if (!auth) {
@@ -70367,8 +70416,8 @@ import { fileURLToPath } from "node:url";
70367
70416
  function resolveCliReleaseVersion() {
70368
70417
  const fromEnv = process.env.SUPERONE_CLI_VERSION?.trim();
70369
70418
  if (fromEnv) return fromEnv;
70370
- if ("0.62.0".trim()) {
70371
- return "0.62.0".trim();
70419
+ if ("0.62.2-alpha".trim()) {
70420
+ return "0.62.2-alpha".trim();
70372
70421
  }
70373
70422
  const fromDist = readDistManifestVersion();
70374
70423
  if (fromDist) return fromDist;
@@ -70640,6 +70689,8 @@ var AuthService = class {
70640
70689
  this.identity = identity;
70641
70690
  this.hashKey = Buffer.from(sha256Hex(identity.privateKeyPem), "hex");
70642
70691
  }
70692
+ db;
70693
+ identity;
70643
70694
  hashKey;
70644
70695
  /** Called when a client session is revoked so the server can close sockets. */
70645
70696
  onRevoke = null;
@@ -76775,6 +76826,7 @@ var HarnessManager = class {
76775
76826
  this.ensureRows();
76776
76827
  this.clearSimulatedContamination();
76777
76828
  }
76829
+ db;
76778
76830
  /**
76779
76831
  * When true, list/get/ready behave as if every harness is enabled+ready.
76780
76832
  * Never persisted — only for contract/CI simulated runners.
@@ -78102,37 +78154,37 @@ var Ds = typeof process == "object" && process ? process : { stdout: null, stder
78102
78154
  var Wr = (s4) => !!s4 && typeof s4 == "object" && (s4 instanceof A || s4 instanceof Cs || Gr(s4) || Zr(s4));
78103
78155
  var Gr = (s4) => !!s4 && typeof s4 == "object" && s4 instanceof Di && typeof s4.pipe == "function" && s4.pipe !== Cs.Writable.prototype.pipe;
78104
78156
  var Zr = (s4) => !!s4 && typeof s4 == "object" && s4 instanceof Di && typeof s4.write == "function" && typeof s4.end == "function";
78105
- var Q = Symbol("EOF");
78106
- var J = Symbol("maybeEmitEnd");
78107
- var nt = Symbol("emittedEnd");
78108
- var De = Symbol("emittingEnd");
78109
- var qt = Symbol("emittedError");
78110
- var Ne = Symbol("closed");
78111
- var Ns = Symbol("read");
78112
- var Ae = Symbol("flush");
78113
- var As = Symbol("flushChunk");
78114
- var z2 = Symbol("encoding");
78115
- var Mt = Symbol("decoder");
78116
- var g = Symbol("flowing");
78117
- var Qt = Symbol("paused");
78118
- var Bt = Symbol("resume");
78119
- var b = Symbol("buffer");
78120
- var N = Symbol("pipes");
78121
- var _ = Symbol("bufferLength");
78122
- var bi = Symbol("bufferPush");
78123
- var Ie = Symbol("bufferShift");
78124
- var L = Symbol("objectMode");
78125
- var S = Symbol("destroyed");
78126
- var _i = Symbol("error");
78127
- var Oi = Symbol("emitData");
78128
- var Is = Symbol("emitEnd");
78129
- var Ti = Symbol("emitEnd2");
78130
- var Z = Symbol("async");
78131
- var xi = Symbol("abort");
78132
- var Ce = Symbol("aborted");
78133
- var Jt = Symbol("signal");
78134
- var Rt = Symbol("dataListeners");
78135
- var C = Symbol("discarded");
78157
+ var Q = /* @__PURE__ */ Symbol("EOF");
78158
+ var J = /* @__PURE__ */ Symbol("maybeEmitEnd");
78159
+ var nt = /* @__PURE__ */ Symbol("emittedEnd");
78160
+ var De = /* @__PURE__ */ Symbol("emittingEnd");
78161
+ var qt = /* @__PURE__ */ Symbol("emittedError");
78162
+ var Ne = /* @__PURE__ */ Symbol("closed");
78163
+ var Ns = /* @__PURE__ */ Symbol("read");
78164
+ var Ae = /* @__PURE__ */ Symbol("flush");
78165
+ var As = /* @__PURE__ */ Symbol("flushChunk");
78166
+ var z2 = /* @__PURE__ */ Symbol("encoding");
78167
+ var Mt = /* @__PURE__ */ Symbol("decoder");
78168
+ var g = /* @__PURE__ */ Symbol("flowing");
78169
+ var Qt = /* @__PURE__ */ Symbol("paused");
78170
+ var Bt = /* @__PURE__ */ Symbol("resume");
78171
+ var b = /* @__PURE__ */ Symbol("buffer");
78172
+ var N = /* @__PURE__ */ Symbol("pipes");
78173
+ var _ = /* @__PURE__ */ Symbol("bufferLength");
78174
+ var bi = /* @__PURE__ */ Symbol("bufferPush");
78175
+ var Ie = /* @__PURE__ */ Symbol("bufferShift");
78176
+ var L = /* @__PURE__ */ Symbol("objectMode");
78177
+ var S = /* @__PURE__ */ Symbol("destroyed");
78178
+ var _i = /* @__PURE__ */ Symbol("error");
78179
+ var Oi = /* @__PURE__ */ Symbol("emitData");
78180
+ var Is = /* @__PURE__ */ Symbol("emitEnd");
78181
+ var Ti = /* @__PURE__ */ Symbol("emitEnd2");
78182
+ var Z = /* @__PURE__ */ Symbol("async");
78183
+ var xi = /* @__PURE__ */ Symbol("abort");
78184
+ var Ce = /* @__PURE__ */ Symbol("aborted");
78185
+ var Jt = /* @__PURE__ */ Symbol("signal");
78186
+ var Rt = /* @__PURE__ */ Symbol("dataListeners");
78187
+ var C = /* @__PURE__ */ Symbol("discarded");
78136
78188
  var jt = (s4) => Promise.resolve().then(s4);
78137
78189
  var Yr = (s4) => s4();
78138
78190
  var Kr = (s4) => s4 === "end" || s4 === "finish" || s4 === "prefinish";
@@ -78438,34 +78490,34 @@ var A = class extends Di {
78438
78490
  }
78439
78491
  };
78440
78492
  var Jr = I.writev;
78441
- var ht = Symbol("_autoClose");
78442
- var H = Symbol("_close");
78443
- var te = Symbol("_ended");
78444
- var m = Symbol("_fd");
78445
- var Ni = Symbol("_finished");
78446
- var tt = Symbol("_flags");
78447
- var Ai = Symbol("_flush");
78448
- var ki = Symbol("_handleChunk");
78449
- var vi = Symbol("_makeBuf");
78450
- var ie = Symbol("_mode");
78451
- var ke = Symbol("_needDrain");
78452
- var Ut = Symbol("_onerror");
78453
- var Ht = Symbol("_onopen");
78454
- var Ii = Symbol("_onread");
78455
- var Pt = Symbol("_onwrite");
78456
- var at = Symbol("_open");
78457
- var U = Symbol("_path");
78458
- var ot = Symbol("_pos");
78459
- var Y = Symbol("_queue");
78460
- var zt = Symbol("_read");
78461
- var Ci = Symbol("_readSize");
78462
- var j = Symbol("_reading");
78463
- var ee = Symbol("_remain");
78464
- var Fi = Symbol("_size");
78465
- var ve = Symbol("_write");
78466
- var gt = Symbol("_writing");
78467
- var Me = Symbol("_defaultFlag");
78468
- var bt = Symbol("_errored");
78493
+ var ht = /* @__PURE__ */ Symbol("_autoClose");
78494
+ var H = /* @__PURE__ */ Symbol("_close");
78495
+ var te = /* @__PURE__ */ Symbol("_ended");
78496
+ var m = /* @__PURE__ */ Symbol("_fd");
78497
+ var Ni = /* @__PURE__ */ Symbol("_finished");
78498
+ var tt = /* @__PURE__ */ Symbol("_flags");
78499
+ var Ai = /* @__PURE__ */ Symbol("_flush");
78500
+ var ki = /* @__PURE__ */ Symbol("_handleChunk");
78501
+ var vi = /* @__PURE__ */ Symbol("_makeBuf");
78502
+ var ie = /* @__PURE__ */ Symbol("_mode");
78503
+ var ke = /* @__PURE__ */ Symbol("_needDrain");
78504
+ var Ut = /* @__PURE__ */ Symbol("_onerror");
78505
+ var Ht = /* @__PURE__ */ Symbol("_onopen");
78506
+ var Ii = /* @__PURE__ */ Symbol("_onread");
78507
+ var Pt = /* @__PURE__ */ Symbol("_onwrite");
78508
+ var at = /* @__PURE__ */ Symbol("_open");
78509
+ var U = /* @__PURE__ */ Symbol("_path");
78510
+ var ot = /* @__PURE__ */ Symbol("_pos");
78511
+ var Y = /* @__PURE__ */ Symbol("_queue");
78512
+ var zt = /* @__PURE__ */ Symbol("_read");
78513
+ var Ci = /* @__PURE__ */ Symbol("_readSize");
78514
+ var j = /* @__PURE__ */ Symbol("_reading");
78515
+ var ee = /* @__PURE__ */ Symbol("_remain");
78516
+ var Fi = /* @__PURE__ */ Symbol("_size");
78517
+ var ve = /* @__PURE__ */ Symbol("_write");
78518
+ var gt = /* @__PURE__ */ Symbol("_writing");
78519
+ var Me = /* @__PURE__ */ Symbol("_defaultFlag");
78520
+ var bt = /* @__PURE__ */ Symbol("_errored");
78469
78521
  var _t = class extends A {
78470
78522
  [bt] = false;
78471
78523
  [m];
@@ -78716,7 +78768,7 @@ var Bi = zs?.writable === true || zs?.set !== void 0 ? (s4) => {
78716
78768
  Ot.concat = s4 ? nn : rn;
78717
78769
  } : (s4) => {
78718
78770
  };
78719
- var Tt = Symbol("_superWrite");
78771
+ var Tt = /* @__PURE__ */ Symbol("_superWrite");
78720
78772
  var Gt = class extends Error {
78721
78773
  code;
78722
78774
  errno;
@@ -78727,7 +78779,7 @@ var Gt = class extends Error {
78727
78779
  return "ZlibError";
78728
78780
  }
78729
78781
  };
78730
- var Pi = Symbol("flushFlag");
78782
+ var Pi = /* @__PURE__ */ Symbol("flushFlag");
78731
78783
  var re = class extends A {
78732
78784
  #t = false;
78733
78785
  #i = false;
@@ -79168,40 +79220,40 @@ var Nn = 1024 * 1024;
79168
79220
  var Xi = Buffer.from([31, 139]);
79169
79221
  var qi = Buffer.from([40, 181, 47, 253]);
79170
79222
  var An = Math.max(Xi.length, qi.length);
79171
- var B = Symbol("state");
79172
- var Nt = Symbol("writeEntry");
79173
- var it = Symbol("readEntry");
79174
- var Zi = Symbol("nextEntry");
79175
- var Zs = Symbol("processEntry");
79176
- var V = Symbol("extendedHeader");
79177
- var he = Symbol("globalExtendedHeader");
79178
- var dt = Symbol("meta");
79179
- var Ys = Symbol("emitMeta");
79180
- var p = Symbol("buffer");
79181
- var st = Symbol("queue");
79182
- var ut = Symbol("ended");
79183
- var Yi = Symbol("emittedEnd");
79184
- var At = Symbol("emit");
79185
- var w = Symbol("unzip");
79186
- var Xe = Symbol("consumeChunk");
79187
- var qe = Symbol("consumeChunkSub");
79188
- var Ki = Symbol("consumeBody");
79189
- var Ks = Symbol("consumeMeta");
79190
- var Vs = Symbol("consumeHeader");
79191
- var ae = Symbol("consuming");
79192
- var Vi = Symbol("bufferConcat");
79193
- var Qe = Symbol("maybeEnd");
79194
- var Yt = Symbol("writing");
79195
- var $ = Symbol("aborted");
79196
- var Je = Symbol("onDone");
79197
- var It = Symbol("sawValidEntry");
79198
- var je = Symbol("sawNullBlock");
79199
- var ti = Symbol("sawEOF");
79200
- var $s = Symbol("closeStream");
79223
+ var B = /* @__PURE__ */ Symbol("state");
79224
+ var Nt = /* @__PURE__ */ Symbol("writeEntry");
79225
+ var it = /* @__PURE__ */ Symbol("readEntry");
79226
+ var Zi = /* @__PURE__ */ Symbol("nextEntry");
79227
+ var Zs = /* @__PURE__ */ Symbol("processEntry");
79228
+ var V = /* @__PURE__ */ Symbol("extendedHeader");
79229
+ var he = /* @__PURE__ */ Symbol("globalExtendedHeader");
79230
+ var dt = /* @__PURE__ */ Symbol("meta");
79231
+ var Ys = /* @__PURE__ */ Symbol("emitMeta");
79232
+ var p = /* @__PURE__ */ Symbol("buffer");
79233
+ var st = /* @__PURE__ */ Symbol("queue");
79234
+ var ut = /* @__PURE__ */ Symbol("ended");
79235
+ var Yi = /* @__PURE__ */ Symbol("emittedEnd");
79236
+ var At = /* @__PURE__ */ Symbol("emit");
79237
+ var w = /* @__PURE__ */ Symbol("unzip");
79238
+ var Xe = /* @__PURE__ */ Symbol("consumeChunk");
79239
+ var qe = /* @__PURE__ */ Symbol("consumeChunkSub");
79240
+ var Ki = /* @__PURE__ */ Symbol("consumeBody");
79241
+ var Ks = /* @__PURE__ */ Symbol("consumeMeta");
79242
+ var Vs = /* @__PURE__ */ Symbol("consumeHeader");
79243
+ var ae = /* @__PURE__ */ Symbol("consuming");
79244
+ var Vi = /* @__PURE__ */ Symbol("bufferConcat");
79245
+ var Qe = /* @__PURE__ */ Symbol("maybeEnd");
79246
+ var Yt = /* @__PURE__ */ Symbol("writing");
79247
+ var $ = /* @__PURE__ */ Symbol("aborted");
79248
+ var Je = /* @__PURE__ */ Symbol("onDone");
79249
+ var It = /* @__PURE__ */ Symbol("sawValidEntry");
79250
+ var je = /* @__PURE__ */ Symbol("sawNullBlock");
79251
+ var ti = /* @__PURE__ */ Symbol("sawEOF");
79252
+ var $s = /* @__PURE__ */ Symbol("closeStream");
79201
79253
  var In = 1e3;
79202
- var le = Symbol("compressedBytesRead");
79203
- var $i = Symbol("decompressedBytesRead");
79204
- var Xs = Symbol("checkDecompressionRatio");
79254
+ var le = /* @__PURE__ */ Symbol("compressedBytesRead");
79255
+ var $i = /* @__PURE__ */ Symbol("decompressedBytesRead");
79256
+ var Xs = /* @__PURE__ */ Symbol("checkDecompressionRatio");
79205
79257
  var Cn = () => true;
79206
79258
  var rt = class extends Dn {
79207
79259
  file;
@@ -79518,24 +79570,24 @@ var ts = (s4) => ei.reduce((t, e) => t.split(e).join(Un.get(e)), s4);
79518
79570
  var Qs = (s4) => ji.reduce((t, e) => t.split(e).join(Hn.get(e)), s4);
79519
79571
  var rr = (s4, t) => t ? (s4 = f(s4).replace(/^\.(\/|$)/, ""), mt(t) + "/" + s4) : f(s4);
79520
79572
  var Wn = 16 * 1024 * 1024;
79521
- var tr = Symbol("process");
79522
- var er = Symbol("file");
79523
- var ir = Symbol("directory");
79524
- var is = Symbol("symlink");
79525
- var sr = Symbol("hardlink");
79526
- var fe = Symbol("header");
79527
- var ii = Symbol("read");
79528
- var ss = Symbol("lstat");
79529
- var si = Symbol("onlstat");
79530
- var rs = Symbol("onread");
79531
- var ns = Symbol("onreadlink");
79532
- var os = Symbol("openfile");
79533
- var hs = Symbol("onopenfile");
79534
- var pt = Symbol("close");
79535
- var ri = Symbol("mode");
79536
- var as = Symbol("awaitDrain");
79537
- var es = Symbol("ondrain");
79538
- var q = Symbol("prefix");
79573
+ var tr = /* @__PURE__ */ Symbol("process");
79574
+ var er = /* @__PURE__ */ Symbol("file");
79575
+ var ir = /* @__PURE__ */ Symbol("directory");
79576
+ var is = /* @__PURE__ */ Symbol("symlink");
79577
+ var sr = /* @__PURE__ */ Symbol("hardlink");
79578
+ var fe = /* @__PURE__ */ Symbol("header");
79579
+ var ii = /* @__PURE__ */ Symbol("read");
79580
+ var ss = /* @__PURE__ */ Symbol("lstat");
79581
+ var si = /* @__PURE__ */ Symbol("onlstat");
79582
+ var rs = /* @__PURE__ */ Symbol("onread");
79583
+ var ns = /* @__PURE__ */ Symbol("onreadlink");
79584
+ var os = /* @__PURE__ */ Symbol("openfile");
79585
+ var hs = /* @__PURE__ */ Symbol("onopenfile");
79586
+ var pt = /* @__PURE__ */ Symbol("close");
79587
+ var ri = /* @__PURE__ */ Symbol("mode");
79588
+ var as = /* @__PURE__ */ Symbol("awaitDrain");
79589
+ var es = /* @__PURE__ */ Symbol("ondrain");
79590
+ var q = /* @__PURE__ */ Symbol("prefix");
79539
79591
  var de = class extends A {
79540
79592
  path;
79541
79593
  portable;
@@ -79976,27 +80028,27 @@ var pi = class {
79976
80028
  }
79977
80029
  };
79978
80030
  var nr = Buffer.alloc(1024);
79979
- var li = Symbol("onStat");
79980
- var me = Symbol("ended");
79981
- var W = Symbol("queue");
79982
- var pe = Symbol("pendingLinks");
79983
- var Et = Symbol("current");
79984
- var Ft = Symbol("process");
79985
- var Ee = Symbol("processing");
79986
- var ai = Symbol("processJob");
79987
- var G = Symbol("jobs");
79988
- var ls = Symbol("jobDone");
79989
- var ci = Symbol("addFSEntry");
79990
- var or = Symbol("addTarEntry");
79991
- var ds = Symbol("stat");
79992
- var us = Symbol("readdir");
79993
- var fi = Symbol("onreaddir");
79994
- var di = Symbol("pipe");
79995
- var hr = Symbol("entry");
79996
- var cs = Symbol("entryOpt");
79997
- var ui = Symbol("writeEntryClass");
79998
- var lr = Symbol("write");
79999
- var fs = Symbol("ondrain");
80031
+ var li = /* @__PURE__ */ Symbol("onStat");
80032
+ var me = /* @__PURE__ */ Symbol("ended");
80033
+ var W = /* @__PURE__ */ Symbol("queue");
80034
+ var pe = /* @__PURE__ */ Symbol("pendingLinks");
80035
+ var Et = /* @__PURE__ */ Symbol("current");
80036
+ var Ft = /* @__PURE__ */ Symbol("process");
80037
+ var Ee = /* @__PURE__ */ Symbol("processing");
80038
+ var ai = /* @__PURE__ */ Symbol("processJob");
80039
+ var G = /* @__PURE__ */ Symbol("jobs");
80040
+ var ls = /* @__PURE__ */ Symbol("jobDone");
80041
+ var ci = /* @__PURE__ */ Symbol("addFSEntry");
80042
+ var or = /* @__PURE__ */ Symbol("addTarEntry");
80043
+ var ds = /* @__PURE__ */ Symbol("stat");
80044
+ var us = /* @__PURE__ */ Symbol("readdir");
80045
+ var fi = /* @__PURE__ */ Symbol("onreaddir");
80046
+ var di = /* @__PURE__ */ Symbol("pipe");
80047
+ var hr = /* @__PURE__ */ Symbol("entry");
80048
+ var cs = /* @__PURE__ */ Symbol("entryOpt");
80049
+ var ui = /* @__PURE__ */ Symbol("writeEntryClass");
80050
+ var lr = /* @__PURE__ */ Symbol("write");
80051
+ var fs = /* @__PURE__ */ Symbol("ondrain");
80000
80052
  var wt = class extends A {
80001
80053
  sync = false;
80002
80054
  opt;
@@ -80466,32 +80518,32 @@ var yi = class {
80466
80518
  }
80467
80519
  };
80468
80520
  var Lr = () => process.umask();
80469
- var Dr = Symbol("onEntry");
80470
- var _s = Symbol("checkFs");
80471
- var Nr = Symbol("checkFs2");
80472
- var Os = Symbol("isReusable");
80473
- var P = Symbol("makeFs");
80474
- var Ts = Symbol("file");
80475
- var xs = Symbol("directory");
80476
- var gi = Symbol("link");
80477
- var Ar = Symbol("symlink");
80478
- var Ir = Symbol("hardlink");
80479
- var Re = Symbol("ensureNoSymlink");
80480
- var Cr = Symbol("unsupported");
80481
- var Fr = Symbol("checkPath");
80482
- var Rs = Symbol("stripAbsolutePath");
80483
- var yt = Symbol("mkdir");
80484
- var O = Symbol("onError");
80485
- var Ri = Symbol("pending");
80486
- var kr = Symbol("pend");
80487
- var $t = Symbol("unpend");
80488
- var gs = Symbol("ended");
80489
- var bs = Symbol("maybeClose");
80490
- var Ls = Symbol("skip");
80491
- var ge = Symbol("doChown");
80492
- var be = Symbol("uid");
80493
- var _e = Symbol("gid");
80494
- var Oe = Symbol("checkedCwd");
80521
+ var Dr = /* @__PURE__ */ Symbol("onEntry");
80522
+ var _s = /* @__PURE__ */ Symbol("checkFs");
80523
+ var Nr = /* @__PURE__ */ Symbol("checkFs2");
80524
+ var Os = /* @__PURE__ */ Symbol("isReusable");
80525
+ var P = /* @__PURE__ */ Symbol("makeFs");
80526
+ var Ts = /* @__PURE__ */ Symbol("file");
80527
+ var xs = /* @__PURE__ */ Symbol("directory");
80528
+ var gi = /* @__PURE__ */ Symbol("link");
80529
+ var Ar = /* @__PURE__ */ Symbol("symlink");
80530
+ var Ir = /* @__PURE__ */ Symbol("hardlink");
80531
+ var Re = /* @__PURE__ */ Symbol("ensureNoSymlink");
80532
+ var Cr = /* @__PURE__ */ Symbol("unsupported");
80533
+ var Fr = /* @__PURE__ */ Symbol("checkPath");
80534
+ var Rs = /* @__PURE__ */ Symbol("stripAbsolutePath");
80535
+ var yt = /* @__PURE__ */ Symbol("mkdir");
80536
+ var O = /* @__PURE__ */ Symbol("onError");
80537
+ var Ri = /* @__PURE__ */ Symbol("pending");
80538
+ var kr = /* @__PURE__ */ Symbol("pend");
80539
+ var $t = /* @__PURE__ */ Symbol("unpend");
80540
+ var gs = /* @__PURE__ */ Symbol("ended");
80541
+ var bs = /* @__PURE__ */ Symbol("maybeClose");
80542
+ var Ls = /* @__PURE__ */ Symbol("skip");
80543
+ var ge = /* @__PURE__ */ Symbol("doChown");
80544
+ var be = /* @__PURE__ */ Symbol("uid");
80545
+ var _e = /* @__PURE__ */ Symbol("gid");
80546
+ var Oe = /* @__PURE__ */ Symbol("checkedCwd");
80495
80547
  var fo = process.env.TESTING_TAR_FAKE_PLATFORM || process.platform;
80496
80548
  var Te = fo === "win32";
80497
80549
  var uo = 1024;
@@ -82042,6 +82094,7 @@ var NodeTerminalManager = class {
82042
82094
  constructor(db) {
82043
82095
  this.db = db;
82044
82096
  }
82097
+ db;
82045
82098
  byId = /* @__PURE__ */ new Map();
82046
82099
  create(opts) {
82047
82100
  if (!existsSync34(opts.cwd)) {
@@ -82225,6 +82278,7 @@ var ProjectRegistry = class {
82225
82278
  constructor(db) {
82226
82279
  this.db = db;
82227
82280
  }
82281
+ db;
82228
82282
  list() {
82229
82283
  const rows = this.db.prepare(
82230
82284
  `SELECT project_id, path, name, repo_identity, opened_at, last_active_at, extra_dirs_json FROM projects ORDER BY last_active_at DESC`
@@ -82424,6 +82478,7 @@ var WorkspaceFsService = class {
82424
82478
  constructor(projects) {
82425
82479
  this.projects = projects;
82426
82480
  }
82481
+ projects;
82427
82482
  projectRoot(projectId) {
82428
82483
  const p3 = this.projects.get(projectId);
82429
82484
  if (!p3) throw Object.assign(new Error("project not found"), { code: "not_found" });
@@ -82916,6 +82971,7 @@ var WorkspaceGitService = class {
82916
82971
  constructor(projects) {
82917
82972
  this.projects = projects;
82918
82973
  }
82974
+ projects;
82919
82975
  root(projectId) {
82920
82976
  const p3 = this.projects.get(projectId);
82921
82977
  if (!p3) throw Object.assign(new Error("project not found"), { code: "not_found" });
@@ -83320,6 +83376,7 @@ var ControlLeaseService = class {
83320
83376
  this.db = db;
83321
83377
  this.leaseEpoch = randomUUID9();
83322
83378
  }
83379
+ db;
83323
83380
  leaseEpoch;
83324
83381
  get epoch() {
83325
83382
  return this.leaseEpoch;
@@ -83551,6 +83608,7 @@ var CollaborationService = class {
83551
83608
  constructor(deps) {
83552
83609
  this.deps = deps;
83553
83610
  }
83611
+ deps;
83554
83612
  /** Agent profiles from session_providers (+ ready-harness fallback). */
83555
83613
  listProfiles() {
83556
83614
  const { harnesses, providers, sessions, sessionProviders } = this.deps;
@@ -84668,6 +84726,7 @@ var WorkspaceWatchService = class {
84668
84726
  constructor(projects) {
84669
84727
  this.projects = projects;
84670
84728
  }
84729
+ projects;
84671
84730
  watchers = /* @__PURE__ */ new Map();
84672
84731
  ownerByWatch = /* @__PURE__ */ new Map();
84673
84732
  cancelByWatch = /* @__PURE__ */ new Map();
@@ -84769,6 +84828,8 @@ var WorkspaceTailWatchService = class {
84769
84828
  this.projects = projects;
84770
84829
  this.fs = fs2;
84771
84830
  }
84831
+ projects;
84832
+ fs;
84772
84833
  entries = /* @__PURE__ */ new Map();
84773
84834
  start(projectId, relativePath, opts) {
84774
84835
  const project = this.projects.get(projectId);
@@ -84962,6 +85023,7 @@ var IdempotencyService = class {
84962
85023
  constructor(db) {
84963
85024
  this.db = db;
84964
85025
  }
85026
+ db;
84965
85027
  inflight = /* @__PURE__ */ new Map();
84966
85028
  payloadHash(payload) {
84967
85029
  return createHash10("sha256").update(JSON.stringify(payload ?? null)).digest("hex");
@@ -85082,6 +85144,7 @@ var ProviderStore = class {
85082
85144
  this.db = db;
85083
85145
  this.crypto = createNodeSecretCrypto(secretKeyPath);
85084
85146
  }
85147
+ db;
85085
85148
  crypto;
85086
85149
  listCredentials() {
85087
85150
  return this.db.prepare("SELECT * FROM provider_credentials ORDER BY sort_order, created_at").all().map((row) => this.rowToCredential(row)).map((c) => this.maskCredential(c));
@@ -85475,7 +85538,7 @@ var RequestHeaders = class {
85475
85538
  return this.entries();
85476
85539
  }
85477
85540
  };
85478
- Object.defineProperty(RequestHeaders.prototype, Symbol.for("nodejs.util.inspect.custom"), { value: function(depth, options, inspectFn) {
85541
+ Object.defineProperty(RequestHeaders.prototype, /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom"), { value: function(depth, options, inspectFn) {
85479
85542
  return `Headers (lightweight) ${inspectFn(Object.fromEntries(this), {
85480
85543
  ...options,
85481
85544
  depth: depth == null ? null : depth - 1
@@ -85515,7 +85578,7 @@ var Request$1 = class extends GlobalRequest {
85515
85578
  super(input, options);
85516
85579
  }
85517
85580
  };
85518
- var wrapBodyStream = Symbol("wrapBodyStream");
85581
+ var wrapBodyStream = /* @__PURE__ */ Symbol("wrapBodyStream");
85519
85582
  var byteExactEncodings = /* @__PURE__ */ new Set([
85520
85583
  "latin1",
85521
85584
  "binary",
@@ -85524,8 +85587,8 @@ var byteExactEncodings = /* @__PURE__ */ new Set([
85524
85587
  "base64url"
85525
85588
  ]);
85526
85589
  var isByteExactEncoding = (encoding) => encoding === null || byteExactEncodings.has(encoding);
85527
- var bodyBufferedBeforeDisconnectKey = Symbol("bodyBufferedBeforeDisconnect");
85528
- var bodyBufferedLengthBeforeDisconnectKey = Symbol("bodyBufferedLengthBeforeDisconnect");
85590
+ var bodyBufferedBeforeDisconnectKey = /* @__PURE__ */ Symbol("bodyBufferedBeforeDisconnect");
85591
+ var bodyBufferedLengthBeforeDisconnectKey = /* @__PURE__ */ Symbol("bodyBufferedLengthBeforeDisconnect");
85529
85592
  var toBufferChunk = (chunk, encoding) => Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk, encoding ?? "utf8");
85530
85593
  var isRecoverableDisconnectedIncoming = (incoming) => !(incoming instanceof Http2ServerRequest) && !!incoming.complete && !!incoming.readableAborted && typeof incoming.read === "function" && isByteExactEncoding(incoming.readableEncoding);
85531
85594
  var recordBodyBufferedBeforeDisconnect = (incoming) => {
@@ -85610,20 +85673,20 @@ var newRequestFromIncoming = (method, url2, headers, incoming, abortController)
85610
85673
  }
85611
85674
  return new Request$1(url2, init);
85612
85675
  };
85613
- var getRequestCache = Symbol("getRequestCache");
85614
- var requestCache = Symbol("requestCache");
85615
- var incomingKey = Symbol("incomingKey");
85616
- var urlKey = Symbol("urlKey");
85617
- var methodKey = Symbol("methodKey");
85618
- var headersKey = Symbol("headersKey");
85619
- var abortControllerKey = Symbol("abortControllerKey");
85620
- var getAbortController = Symbol("getAbortController");
85621
- var abortRequest = Symbol("abortRequest");
85622
- var bodyBufferKey = Symbol("bodyBuffer");
85623
- var bodyReadPromiseKey = Symbol("bodyReadPromise");
85624
- var bodyConsumedDirectlyKey = Symbol("bodyConsumedDirectly");
85625
- var bodyLockReaderKey = Symbol("bodyLockReader");
85626
- var abortReasonKey = Symbol("abortReason");
85676
+ var getRequestCache = /* @__PURE__ */ Symbol("getRequestCache");
85677
+ var requestCache = /* @__PURE__ */ Symbol("requestCache");
85678
+ var incomingKey = /* @__PURE__ */ Symbol("incomingKey");
85679
+ var urlKey = /* @__PURE__ */ Symbol("urlKey");
85680
+ var methodKey = /* @__PURE__ */ Symbol("methodKey");
85681
+ var headersKey = /* @__PURE__ */ Symbol("headersKey");
85682
+ var abortControllerKey = /* @__PURE__ */ Symbol("abortControllerKey");
85683
+ var getAbortController = /* @__PURE__ */ Symbol("getAbortController");
85684
+ var abortRequest = /* @__PURE__ */ Symbol("abortRequest");
85685
+ var bodyBufferKey = /* @__PURE__ */ Symbol("bodyBuffer");
85686
+ var bodyReadPromiseKey = /* @__PURE__ */ Symbol("bodyReadPromise");
85687
+ var bodyConsumedDirectlyKey = /* @__PURE__ */ Symbol("bodyConsumedDirectly");
85688
+ var bodyLockReaderKey = /* @__PURE__ */ Symbol("bodyLockReader");
85689
+ var abortReasonKey = /* @__PURE__ */ Symbol("abortReason");
85627
85690
  var newBodyUnusableError = () => {
85628
85691
  return /* @__PURE__ */ new TypeError("Body is unusable");
85629
85692
  };
@@ -85888,7 +85951,7 @@ Object.defineProperty(requestPrototype, "json", { value: function() {
85888
85951
  if (this[bodyConsumedDirectlyKey]) return rejectBodyUnusable();
85889
85952
  return this.text().then(JSON.parse);
85890
85953
  } });
85891
- Object.defineProperty(requestPrototype, Symbol.for("nodejs.util.inspect.custom"), { value: function(depth, options, inspectFn) {
85954
+ Object.defineProperty(requestPrototype, /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom"), { value: function(depth, options, inspectFn) {
85892
85955
  return `Request (lightweight) ${inspectFn({
85893
85956
  method: this.method,
85894
85957
  url: this.url,
@@ -85930,9 +85993,9 @@ var newRequest = (incoming, defaultHostname) => {
85930
85993
  return req;
85931
85994
  };
85932
85995
  var defaultContentType = "text/plain; charset=UTF-8";
85933
- var responseCache = Symbol("responseCache");
85934
- var getResponseCache = Symbol("getResponseCache");
85935
- var cacheKey = Symbol("cache");
85996
+ var responseCache = /* @__PURE__ */ Symbol("responseCache");
85997
+ var getResponseCache = /* @__PURE__ */ Symbol("getResponseCache");
85998
+ var cacheKey = /* @__PURE__ */ Symbol("cache");
85936
85999
  var GlobalResponse = global.Response;
85937
86000
  var Response$1 = class Response$12 {
85938
86001
  #body;
@@ -86007,7 +86070,7 @@ var Response$1 = class Response$12 {
86007
86070
  return this[getResponseCache]()[k3]();
86008
86071
  } });
86009
86072
  });
86010
- Object.defineProperty(Response$1.prototype, Symbol.for("nodejs.util.inspect.custom"), { value: function(depth, options, inspectFn) {
86073
+ Object.defineProperty(Response$1.prototype, /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom"), { value: function(depth, options, inspectFn) {
86011
86074
  return `Response (lightweight) ${inspectFn({
86012
86075
  status: this.status,
86013
86076
  headers: this.headers,
@@ -86111,8 +86174,8 @@ var buildOutgoingHttpHeaders = (headers, defaultContentType2) => {
86111
86174
  if (defaultContentType2) res["content-type"] ??= defaultContentType2;
86112
86175
  return res;
86113
86176
  };
86114
- var outgoingEnded = Symbol("outgoingEnded");
86115
- var incomingDraining = Symbol("incomingDraining");
86177
+ var outgoingEnded = /* @__PURE__ */ Symbol("outgoingEnded");
86178
+ var incomingDraining = /* @__PURE__ */ Symbol("incomingDraining");
86116
86179
  var DRAIN_TIMEOUT_MS = 500;
86117
86180
  var MAX_DRAIN_BYTES = 64 * 1024 * 1024;
86118
86181
  var drainIncoming = (incoming) => {
@@ -86397,9 +86460,9 @@ var ErrorEvent = globalThis.ErrorEvent ?? class extends Event {
86397
86460
  return this.#eventInitDict.error ?? null;
86398
86461
  }
86399
86462
  };
86400
- var generateConnectionSymbol = () => Symbol("connection");
86401
- var CONNECTION_SYMBOL_KEY = Symbol("CONNECTION_SYMBOL_KEY");
86402
- var WAIT_FOR_WEBSOCKET_SYMBOL = Symbol("WAIT_FOR_WEBSOCKET_SYMBOL");
86463
+ var generateConnectionSymbol = () => /* @__PURE__ */ Symbol("connection");
86464
+ var CONNECTION_SYMBOL_KEY = /* @__PURE__ */ Symbol("CONNECTION_SYMBOL_KEY");
86465
+ var WAIT_FOR_WEBSOCKET_SYMBOL = /* @__PURE__ */ Symbol("WAIT_FOR_WEBSOCKET_SYMBOL");
86403
86466
  var upgradeWebSocket = defineWebSocketHelper(async (c, events, options) => {
86404
86467
  if (c.req.header("upgrade")?.toLowerCase() !== "websocket") return;
86405
86468
  const env = c.env;
@@ -92587,7 +92650,6 @@ ZodNaN2.create = (params) => {
92587
92650
  ...processCreateParams(params)
92588
92651
  });
92589
92652
  };
92590
- var BRAND = Symbol("zod_brand");
92591
92653
  var ZodBranded = class extends ZodType2 {
92592
92654
  _parse(input) {
92593
92655
  const { ctx } = this._processInputParams(input);
@@ -92980,7 +93042,7 @@ function isTerminal2(status) {
92980
93042
  }
92981
93043
 
92982
93044
  // ../../node_modules/zod-to-json-schema/dist/esm/Options.js
92983
- var ignoreOverride = Symbol("Let zodToJsonSchema decide on which parser to use");
93045
+ var ignoreOverride = /* @__PURE__ */ Symbol("Let zodToJsonSchema decide on which parser to use");
92984
93046
  var defaultOptions = {
92985
93047
  name: void 0,
92986
93048
  $refStrategy: "root",
@@ -95947,7 +96009,7 @@ var Server = class extends Protocol {
95947
96009
  };
95948
96010
 
95949
96011
  // ../../node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js
95950
- var COMPLETABLE_SYMBOL = Symbol.for("mcp.completable");
96012
+ var COMPLETABLE_SYMBOL = /* @__PURE__ */ Symbol.for("mcp.completable");
95951
96013
  function isCompletable(schema) {
95952
96014
  return !!schema && typeof schema === "object" && COMPLETABLE_SYMBOL in schema;
95953
96015
  }
@@ -98183,6 +98245,7 @@ var AutomationService = class {
98183
98245
  error: (...args) => console.error("[AutomationService]", ...args)
98184
98246
  };
98185
98247
  }
98248
+ deps;
98186
98249
  pollInterval = null;
98187
98250
  stopped = true;
98188
98251
  runningAutomations = /* @__PURE__ */ new Set();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@super-one/cli",
3
- "version": "0.62.0",
3
+ "version": "0.62.2-alpha",
4
4
  "description": "SuperOne headless node CLI — remote execution environment (RPC, workspaces, sessions).",
5
5
  "type": "module",
6
6
  "license": "BUSL-1.1",