@moxt-ai/cli 0.11.0-beta.9 → 0.12.0

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/index.cjs CHANGED
@@ -4976,7 +4976,7 @@ var init_version = __esm({
4976
4976
  });
4977
4977
 
4978
4978
  // ../machine-connector/dist/runtime/local-codex-runtime/contracts.js
4979
- var localCodexRuntimeProtocolVersion, localCodexRuntimeEventSchemaVersion, localCodexRuntimeEventRedactionVersion, LocalCodexComponentStatusWire, LocalCodexUnavailableReasonWire, LocalCodexTurnStatusWire, LocalCodexControlKindWire, LocalCodexControlOutcomeWire, LocalCodexDiscoveryKindWire, localFilesCapability, LocalCodexDiscoveryStatusWire, LocalCodexAttemptPhase, LocalCodexControlApplyPhase;
4979
+ var localCodexRuntimeProtocolVersion, localCodexRuntimeEventSchemaVersion, localCodexRuntimeEventRedactionVersion, LocalCodexComponentStatusWire, LocalCodexUnavailableReasonWire, LocalCodexTurnStatusWire, LocalCodexControlKindWire, LocalCodexControlOutcomeWire, LocalCodexDiscoveryKindWire, localFilesCapability, LocalCodexDiscoveryStatusWire, LocalCodexAttemptPhase, LocalCodexControlApplyPhase, LocalCodexThreadNamingPolicyWire;
4980
4980
  var init_contracts2 = __esm({
4981
4981
  "../machine-connector/dist/runtime/local-codex-runtime/contracts.js"() {
4982
4982
  "use strict";
@@ -5037,6 +5037,10 @@ var init_contracts2 = __esm({
5037
5037
  LocalCodexControlApplyPhase2["Applied"] = "applied";
5038
5038
  LocalCodexControlApplyPhase2["Recorded"] = "recorded";
5039
5039
  })(LocalCodexControlApplyPhase || (LocalCodexControlApplyPhase = {}));
5040
+ (function(LocalCodexThreadNamingPolicyWire2) {
5041
+ LocalCodexThreadNamingPolicyWire2["Generate"] = "generate";
5042
+ LocalCodexThreadNamingPolicyWire2["Preserve"] = "preserve";
5043
+ })(LocalCodexThreadNamingPolicyWire || (LocalCodexThreadNamingPolicyWire = {}));
5040
5044
  }
5041
5045
  });
5042
5046
 
@@ -8363,7 +8367,7 @@ var init_relay_client = __esm({
8363
8367
  });
8364
8368
  }
8365
8369
  async claimCodexRuntime(request2, signal) {
8366
- return await this.authenticatedPost("codex-runtime/turns/claim", request2, {
8370
+ return await this.authenticatedPost("codex-runtime/turns/claim-v2", request2, {
8367
8371
  circuitKind: RelayCircuitKind.Claim,
8368
8372
  mode: RelayRequestMode.LongPoll,
8369
8373
  probeBody: { ...request2, waitSeconds: 0 },
@@ -12075,7 +12079,7 @@ var init_runtime_worker = __esm({
12075
12079
  async setInitialThreadName(client, active, threadId) {
12076
12080
  const claim = active.claim;
12077
12081
  const initialThreadName = active.initialThreadName;
12078
- if (initialThreadName === void 0 || initialThreadName.completed || active.interruptedCleanupStarted || claim.executionContext.workflowTaskId !== void 0 || claim.executionContext.workflowWatcherId !== void 0) {
12082
+ if (initialThreadName === void 0 || initialThreadName.completed || active.interruptedCleanupStarted || claim.threadNamingPolicy === LocalCodexThreadNamingPolicyWire.Preserve) {
12079
12083
  return;
12080
12084
  }
12081
12085
  const text3 = firstTextInput(claim).value;
@@ -16531,7 +16535,7 @@ function getApiKeyOrUndefined() {
16531
16535
 
16532
16536
  // src/utils/http.ts
16533
16537
  function getUserAgent() {
16534
- return `moxt-cli/${"0.11.0-beta.9"} (${(0, import_os.platform)()}/${(0, import_os.arch)()}) node/${process.versions.node}`;
16538
+ return `moxt-cli/${"0.12.0"} (${(0, import_os.platform)()}/${(0, import_os.arch)()}) node/${process.versions.node}`;
16535
16539
  }
16536
16540
  async function sendRequest(method, path4, init) {
16537
16541
  return await fetch(`${getApiBaseUrl()}${path4}`, {
@@ -31117,7 +31121,7 @@ var FLUSH_TIMEOUT_MS = 3e3;
31117
31121
  var MAX_BATCH_SIZE = 100;
31118
31122
  function commonLabels() {
31119
31123
  return {
31120
- cli_version: "0.11.0-beta.9",
31124
+ cli_version: "0.12.0",
31121
31125
  node_version: process.versions.node,
31122
31126
  os: (0, import_node_os11.platform)(),
31123
31127
  arch: (0, import_node_os11.arch)(),
@@ -31163,7 +31167,7 @@ async function flush() {
31163
31167
  }
31164
31168
  const batch = buffer.splice(0, MAX_BATCH_SIZE);
31165
31169
  const payload = {
31166
- release_id: "0.11.0-beta.9",
31170
+ release_id: "0.12.0",
31167
31171
  client_type: "cli",
31168
31172
  metric_data_list: batch.map((m) => ({
31169
31173
  profile: "cli",
@@ -31546,9 +31550,9 @@ function commandPath3(command) {
31546
31550
  }
31547
31551
 
31548
31552
  // src/index.ts
31549
- var program2 = createProgram("0.11.0-beta.9");
31550
- installDaemonReconcileHook(program2, "0.11.0-beta.9");
31551
- installUpdateHook(program2, "0.11.0-beta.9");
31553
+ var program2 = createProgram("0.12.0");
31554
+ installDaemonReconcileHook(program2, "0.12.0");
31555
+ installUpdateHook(program2, "0.12.0");
31552
31556
  instrumentProgram(program2);
31553
31557
  installExitHandler();
31554
31558
  program2.parseAsync(process.argv).then(async () => {