deepline 0.3.390 → 0.3.392

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 (132) hide show
  1. package/dist/bundling-sources/sdk/src/agent-runtime.ts +21 -16
  2. package/dist/bundling-sources/sdk/src/billing-idempotency.ts +1 -1
  3. package/dist/bundling-sources/sdk/src/cli-invocation-id.ts +1 -1
  4. package/dist/bundling-sources/sdk/src/client.ts +75 -52
  5. package/dist/bundling-sources/sdk/src/config.ts +3 -2
  6. package/dist/bundling-sources/sdk/src/db/query.ts +3 -3
  7. package/dist/bundling-sources/sdk/src/deployment-protection.ts +7 -5
  8. package/dist/bundling-sources/sdk/src/http.ts +31 -41
  9. package/dist/bundling-sources/sdk/src/index.ts +26 -26
  10. package/dist/bundling-sources/sdk/src/play.ts +5 -5
  11. package/dist/bundling-sources/sdk/src/plays/bundle-play-file.ts +1 -1
  12. package/dist/bundling-sources/sdk/src/plays/csv-data-input.ts +3 -0
  13. package/dist/bundling-sources/sdk/src/plays/local-play-execution.ts +2 -2
  14. package/dist/bundling-sources/sdk/src/plays/run-request.ts +2 -2
  15. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  16. package/dist/bundling-sources/sdk/src/runs/read-errors.ts +1 -1
  17. package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +1 -1
  18. package/dist/bundling-sources/sdk/src/skills-version.ts +2 -2
  19. package/dist/bundling-sources/sdk/src/tool-calls.ts +3 -3
  20. package/dist/bundling-sources/sdk/src/types.ts +12 -1
  21. package/dist/bundling-sources/sdk/src/version.ts +1 -1
  22. package/dist/bundling-sources/shared_libs/play-runtime/async-operation.ts +87 -1
  23. package/dist/bundling-sources/shared_libs/plays/extension-bridge.ts +57 -0
  24. package/dist/bundling-sources/shared_libs/plays/local-file-discovery.ts +1 -1
  25. package/dist/bundling-sources/shared_libs/plays/run-summary-types.ts +1 -0
  26. package/dist/cli/auth-67TAELQL.js +39 -0
  27. package/dist/cli/{auth-THPE72WM.mjs → auth-6JSA2ZCW.mjs} +4 -4
  28. package/dist/cli/{billing-52KJIWW2.mjs → billing-MRRO643H.mjs} +4 -4
  29. package/dist/cli/{billing-YRXEPKPB.js → billing-Q5BLQHIU.js} +73 -73
  30. package/dist/cli/{chunk-B22POC3J.mjs → chunk-24VEN5PQ.mjs} +7 -7
  31. package/dist/cli/{chunk-T5JMOYB4.js → chunk-2FQG2HU4.js} +8 -8
  32. package/dist/cli/{chunk-5KD4F7NR.mjs → chunk-2G7DXFHI.mjs} +1 -1
  33. package/dist/cli/{chunk-DNYNJU5J.mjs → chunk-2GAHHSLB.mjs} +34 -26
  34. package/dist/cli/{chunk-FKFE3WH3.mjs → chunk-2Q3GEFL4.mjs} +2 -2
  35. package/dist/cli/{chunk-ICZQGDYM.mjs → chunk-2QLML6G4.mjs} +4 -4
  36. package/dist/cli/{chunk-Z7LX4WYM.mjs → chunk-3FV4GBRK.mjs} +5 -5
  37. package/dist/cli/{chunk-UCPH7S5H.js → chunk-4SFPVW7A.js} +26 -26
  38. package/dist/cli/{chunk-HXENYWVS.js → chunk-4TCT77UF.js} +485 -114
  39. package/dist/cli/{chunk-L7NEMEUI.js → chunk-6DBOU7UH.js} +48 -48
  40. package/dist/cli/{chunk-CU7GDBBM.mjs → chunk-A3APGZFP.mjs} +2 -2
  41. package/dist/cli/{chunk-TLCCVMSB.js → chunk-BB3FNYFY.js} +2 -2
  42. package/dist/cli/{chunk-KUEYQLM3.js → chunk-CVLM3WMJ.js} +235 -220
  43. package/dist/cli/{chunk-PMNJLCIA.js → chunk-EY7RFC6A.js} +15 -15
  44. package/dist/cli/{chunk-5JLQPVNX.js → chunk-GSK6NHVM.js} +1 -0
  45. package/dist/cli/{chunk-JV7YZMNK.mjs → chunk-HGYBEAQP.mjs} +3 -3
  46. package/dist/cli/{chunk-EDWJY6T4.mjs → chunk-HQXL5526.mjs} +1 -0
  47. package/dist/cli/{chunk-QVMRQYSO.js → chunk-JOFPQGXW.js} +50 -50
  48. package/dist/cli/{chunk-OV567DMC.js → chunk-JSLPHFP7.js} +1 -1
  49. package/dist/cli/{chunk-653YVNNZ.mjs → chunk-MU6M3URX.mjs} +1 -1
  50. package/dist/cli/{chunk-HVDBGPDP.mjs → chunk-PQSA443V.mjs} +485 -114
  51. package/dist/cli/{chunk-RWOX543D.mjs → chunk-R3O2CZ4H.mjs} +2 -2
  52. package/dist/cli/{chunk-ENJWB4SX.js → chunk-RIV2GS5E.js} +228 -228
  53. package/dist/cli/{chunk-MI2JQCYZ.js → chunk-RV6ALZIX.js} +6 -6
  54. package/dist/cli/{chunk-QANTWJXH.js → chunk-T7OKJ2T6.js} +61 -61
  55. package/dist/cli/{chunk-ZFZ5PICC.js → chunk-UCKJQG25.js} +8 -8
  56. package/dist/cli/{chunk-CZUGLUQK.js → chunk-WMS5U6YB.js} +99 -91
  57. package/dist/cli/{chunk-EMJB62SM.mjs → chunk-YAZCDBXX.mjs} +1 -1
  58. package/dist/cli/{chunk-NQZW72DN.mjs → chunk-YN6YA7ZZ.mjs} +46 -31
  59. package/dist/cli/{chunk-KZOKUN3N.mjs → chunk-ZTACINO5.mjs} +2 -2
  60. package/dist/cli/command-docs.d.mts +24 -1
  61. package/dist/cli/command-docs.d.ts +24 -1
  62. package/dist/cli/command-docs.js +8 -2
  63. package/dist/cli/command-docs.mjs +9 -3
  64. package/dist/cli/{csv-JYDWK56E.js → csv-26U5T24Z.js} +12 -12
  65. package/dist/cli/{csv-IPUY3W6Z.mjs → csv-E4QGUIGI.mjs} +3 -3
  66. package/dist/cli/{db-IP5IPYJQ.mjs → db-JTRJIAQW.mjs} +4 -4
  67. package/dist/cli/{db-DAWM3T76.js → db-QHBFLMVL.js} +29 -29
  68. package/dist/cli/{describe-3RTUG7EW.mjs → describe-E3DE3ZK3.mjs} +9 -9
  69. package/dist/cli/{describe-5UWGF33U.js → describe-FDV2V74F.js} +19 -19
  70. package/dist/cli/{executions-7ZNMR443.mjs → executions-B3GTNPRE.mjs} +4 -4
  71. package/dist/cli/{executions-OEKC7TL5.js → executions-VZYOGVQY.js} +6 -6
  72. package/dist/cli/{feedback-IUJV565X.mjs → feedback-4CEBR3OV.mjs} +3 -3
  73. package/dist/cli/{feedback-5F2NQJP4.js → feedback-CR55FJA2.js} +7 -7
  74. package/dist/cli/git-I5JTK6YU.js +23 -0
  75. package/dist/cli/{git-IPV5G2PS.mjs → git-NM2PHHZ4.mjs} +4 -4
  76. package/dist/cli/index.js +93 -93
  77. package/dist/cli/index.mjs +33 -33
  78. package/dist/cli/{legacy-noops-UQOWD66P.mjs → legacy-noops-A7MSW5ND.mjs} +4 -4
  79. package/dist/cli/{legacy-noops-IZZRWI7V.js → legacy-noops-ZUA4YFIH.js} +7 -7
  80. package/dist/cli/{monitors-SULGYCTF.mjs → monitors-NVPRQYP3.mjs} +4 -4
  81. package/dist/cli/{monitors-N6WK7YPE.js → monitors-ZE3TLZ4H.js} +85 -85
  82. package/dist/cli/{org-EPVTTBDK.mjs → org-KUBILNQV.mjs} +4 -4
  83. package/dist/cli/{org-COMHSC5H.js → org-U7A6DV5D.js} +64 -64
  84. package/dist/cli/play-A2V7YDU7.js +157 -0
  85. package/dist/cli/{play-OCTPASJI.mjs → play-HRDXQ4QE.mjs} +8 -8
  86. package/dist/cli/{providers-QBVNC5EV.mjs → providers-OHIWI453.mjs} +4 -4
  87. package/dist/cli/{providers-34D6ATLE.js → providers-VD6YTVQZ.js} +7 -7
  88. package/dist/cli/{quickstart-3XR45BHI.js → quickstart-ETTCWPA4.js} +5 -5
  89. package/dist/cli/{quickstart-SYGV5XVH.mjs → quickstart-UBV2FONF.mjs} +3 -3
  90. package/dist/cli/{search-UUJ7EHBV.mjs → search-F44IZRT7.mjs} +5 -5
  91. package/dist/cli/search-WWXMBVPH.js +26 -0
  92. package/dist/cli/{secrets-TIL6DESO.js → secrets-CAEMRORF.js} +13 -13
  93. package/dist/cli/{secrets-MWRFHNIT.mjs → secrets-R6XOJZKU.mjs} +4 -4
  94. package/dist/cli/{sessions-2LXC6ZYD.js → sessions-6GC7OFTT.js} +5 -5
  95. package/dist/cli/{sessions-5TKMBU5P.mjs → sessions-RLN6UQS3.mjs} +4 -4
  96. package/dist/cli/{settings-II3IQECQ.js → settings-DPNVUAV2.js} +74 -74
  97. package/dist/cli/{settings-NRIACLPU.mjs → settings-KIPAMRPP.mjs} +7 -7
  98. package/dist/cli/{setup-AF3UMIIC.js → setup-DTL3L5SG.js} +41 -41
  99. package/dist/cli/{setup-VIMZ4U73.mjs → setup-TU2F7PU5.mjs} +6 -6
  100. package/dist/cli/skills-SWOSEZLB.js +28 -0
  101. package/dist/cli/{skills-5OKAXXWJ.mjs → skills-UV5MYJ46.mjs} +4 -4
  102. package/dist/cli/tools-IL2YCDQ6.js +40 -0
  103. package/dist/cli/{tools-5UXNV4YY.mjs → tools-QRRNDCQ7.mjs} +6 -6
  104. package/dist/cli/{update-Q4HX6CR3.mjs → update-4426TF35.mjs} +6 -6
  105. package/dist/cli/update-BERDPEYR.js +28 -0
  106. package/dist/cli/{workflow-NZZ5H4P4.js → workflow-HNLOVISB.js} +15 -15
  107. package/dist/cli/{workflow-45BLG7GN.mjs → workflow-N4U5VLZ3.mjs} +5 -5
  108. package/dist/{client-DEKvymBI.d.ts → client-Uxuy-xQ2.d.ts} +23 -0
  109. package/dist/{client-0avPvYBP.d.mts → client-e6Qh5ZIg.d.mts} +23 -0
  110. package/dist/index.d.mts +2 -2
  111. package/dist/index.d.ts +2 -2
  112. package/dist/index.js +6 -6
  113. package/dist/index.mjs +3 -3
  114. package/dist/install-integrity.json +79 -78
  115. package/dist/plays/csv-data-input.d.mts +2 -0
  116. package/dist/plays/csv-data-input.d.ts +2 -0
  117. package/dist/plays/csv-data-input.js +2 -2
  118. package/dist/plays/csv-data-input.mjs +1 -1
  119. package/dist/plays/run-request.d.mts +1 -1
  120. package/dist/plays/run-request.d.ts +1 -1
  121. package/dist/release.d.mts +1 -1
  122. package/dist/release.d.ts +1 -1
  123. package/dist/release.js +2 -2
  124. package/dist/release.mjs +1 -1
  125. package/package.json +1 -1
  126. package/dist/cli/auth-OVT7BZ5A.js +0 -39
  127. package/dist/cli/git-ZZ5MD2KG.js +0 -23
  128. package/dist/cli/play-RWY2JHAP.js +0 -157
  129. package/dist/cli/search-PTG76HU3.js +0 -26
  130. package/dist/cli/skills-I6NTZMBZ.js +0 -28
  131. package/dist/cli/tools-NXD7YFYV.js +0 -40
  132. package/dist/cli/update-SZ6AMT3M.js +0 -28
@@ -14,7 +14,7 @@ import {
14
14
  } from "./chunk-NXGCO4JB.mjs";
15
15
  import {
16
16
  SDK_RELEASE
17
- } from "./chunk-EMJB62SM.mjs";
17
+ } from "./chunk-YAZCDBXX.mjs";
18
18
 
19
19
  // src/errors.ts
20
20
  var CustomerDbQueryOutcomeUnknownError = class extends DeeplineError {
@@ -501,7 +501,8 @@ function resolveConfig(options) {
501
501
  maxRetries: options?.maxRetries ?? DEFAULT_MAX_RETRIES,
502
502
  // Pass through untouched: the transport owns case-insensitive merging so
503
503
  // there is exactly one place that decides which header wins.
504
- ...options?.headers ? { headers: { ...options.headers } } : {}
504
+ ...options?.headers ? { headers: { ...options.headers } } : {},
505
+ ...options?.environment ? { environment: options.environment } : {}
505
506
  };
506
507
  }
507
508
  function mergeProjectEnvFile(filePath, values) {
@@ -793,24 +794,25 @@ function isCoworkLikeSandbox2() {
793
794
  return claudeRemote || sessionHome || (pluginMode || pluginRoot) && projectDir;
794
795
  }
795
796
  function detectAgentRuntime(options = {}) {
796
- const explicit = normalizeAgentRuntime(process.env.DEEPLINE_AGENT_RUNTIME);
797
+ const env = options.env ?? process.env;
798
+ const explicit = normalizeAgentRuntime(env.DEEPLINE_AGENT_RUNTIME);
797
799
  if (explicit) return explicit;
798
- if (process.env.CODEX_THREAD_ID?.trim()) return "codex";
800
+ if (env.CODEX_THREAD_ID?.trim()) return "codex";
799
801
  if (options.detectCowork !== false && isCoworkLikeSandbox2()) {
800
802
  return "claude_cowork";
801
803
  }
802
- if (process.env.CLAUDECODE?.trim() === "1") return "claude_code";
803
- if (process.env.CLINE_ACTIVE?.trim().toLowerCase() === "true") return "cline";
804
- if (process.env.CURSOR_TRACE_ID?.trim() || process.env.CURSOR_AGENT?.trim()) {
804
+ if (env.CLAUDECODE?.trim() === "1") return "claude_code";
805
+ if (env.CLINE_ACTIVE?.trim().toLowerCase() === "true") return "cline";
806
+ if (env.CURSOR_TRACE_ID?.trim() || env.CURSOR_AGENT?.trim()) {
805
807
  return "cursor";
806
808
  }
807
- if (process.env.WINDSURF?.trim() || process.env.CASCADE?.trim()) {
809
+ if (env.WINDSURF?.trim() || env.CASCADE?.trim()) {
808
810
  return "windsurf";
809
811
  }
810
- if (process.env.ANTIGRAVITY?.trim() || process.env.ANTIGRAVITY_CLI?.trim() || process.env.ANTIGRAVITY_AGENT?.trim() || process.env.ANTIGRAVITY_WORKSPACE?.trim()) {
812
+ if (env.ANTIGRAVITY?.trim() || env.ANTIGRAVITY_CLI?.trim() || env.ANTIGRAVITY_AGENT?.trim() || env.ANTIGRAVITY_WORKSPACE?.trim()) {
811
813
  return "antigravity";
812
814
  }
813
- if (process.env.GEMINI_CLI?.trim() || process.env.GEMINI_CLI_VERSION?.trim() || process.env.GEMINI_SANDBOX?.trim() || process.env.GEMINI_CONFIG_DIR?.trim()) {
815
+ if (env.GEMINI_CLI?.trim() || env.GEMINI_CLI_VERSION?.trim() || env.GEMINI_SANDBOX?.trim() || env.GEMINI_CONFIG_DIR?.trim()) {
814
816
  return "gemini";
815
817
  }
816
818
  return options.defaultRuntime ?? "unknown";
@@ -945,8 +947,8 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
945
947
  }
946
948
 
947
949
  // src/deployment-protection.ts
948
- function deploymentProtectionHeaders() {
949
- const token = typeof process !== "undefined" ? process.env?.VERCEL_PROTECTION_BYPASS_TOKEN : void 0;
950
+ function deploymentProtectionHeaders(env = typeof process !== "undefined" ? process.env : {}) {
951
+ const token = env.VERCEL_PROTECTION_BYPASS_TOKEN;
950
952
  return token ? { "x-vercel-protection-bypass": token } : {};
951
953
  }
952
954
  var fetchWithDeploymentProtection = (input, init) => {
@@ -1353,9 +1355,12 @@ var HttpClient = class {
1353
1355
  const normalized = String(value ?? "").replace(/[\u0000-\u001f\u007f]/g, " ").trim().slice(0, MAX_DIAGNOSTIC_HEADER_LENGTH);
1354
1356
  return normalized || null;
1355
1357
  }
1358
+ environment() {
1359
+ return this.config.environment ?? (typeof process !== "undefined" ? process.env : {});
1360
+ }
1356
1361
  readSkillsVersionHeader() {
1357
1362
  const explicit = this.cleanDiagnosticHeader(
1358
- process.env.DEEPLINE_SKILLS_VERSION
1363
+ this.environment().DEEPLINE_SKILLS_VERSION
1359
1364
  );
1360
1365
  if (explicit) return explicit;
1361
1366
  try {
@@ -1367,54 +1372,57 @@ var HttpClient = class {
1367
1372
  }
1368
1373
  }
1369
1374
  authHeaders(extra) {
1375
+ const env = this.environment();
1370
1376
  const transportHeaders = {
1371
1377
  Authorization: `Bearer ${this.config.apiKey}`,
1372
1378
  "User-Agent": `deepline-ts-sdk/${SDK_VERSION}`,
1373
1379
  "X-Deepline-Client-Family": "sdk",
1374
1380
  "X-Deepline-CLI-Family": "sdk",
1375
- "X-Deepline-Agent-Runtime": detectAgentRuntime(),
1381
+ "X-Deepline-Agent-Runtime": detectAgentRuntime(
1382
+ this.config.environment ? { env, detectCowork: false } : {}
1383
+ ),
1376
1384
  "X-Deepline-CLI-Version": SDK_VERSION,
1377
1385
  "X-Deepline-SDK-Version": SDK_VERSION,
1378
1386
  "X-Deepline-API-Contract": SDK_API_CONTRACT,
1379
1387
  "X-Deepline-Run-Result-Shape": "canonical"
1380
1388
  };
1381
- const headers = deploymentProtectionHeaders();
1389
+ const headers = deploymentProtectionHeaders(env);
1382
1390
  const skillsVersion = this.readSkillsVersionHeader();
1383
1391
  if (skillsVersion) {
1384
1392
  headers["X-Deepline-Skills-Version"] = skillsVersion;
1385
1393
  }
1386
- const agentSessionId = agentSessionIdFromEnvironment();
1394
+ const agentSessionId = agentSessionIdFromEnvironment(env);
1387
1395
  if (agentSessionId) {
1388
1396
  headers["X-Deepline-Agent-Session-Id"] = agentSessionId;
1389
1397
  }
1390
- const playArtifactR2Prefix = typeof process !== "undefined" ? process.env?.DEEPLINE_PLAY_ARTIFACT_R2_PREFIX : void 0;
1398
+ const playArtifactR2Prefix = env.DEEPLINE_PLAY_ARTIFACT_R2_PREFIX;
1391
1399
  if (playArtifactR2Prefix) {
1392
1400
  headers["x-deepline-play-artifact-r2-prefix"] = playArtifactR2Prefix;
1393
1401
  }
1394
- const coordinatorUrl = typeof process !== "undefined" ? process.env?.DEEPLINE_COORDINATOR_URL : void 0;
1395
- const coordinatorInternalToken = typeof process !== "undefined" ? process.env?.DEEPLINE_INTERNAL_TOKEN : void 0;
1396
- const absurdReleaseOverride = typeof process !== "undefined" ? process.env?.DEEPLINE_ABSURD_RELEASE : void 0;
1397
- const preferredReceiptGatewayMachineId = typeof process !== "undefined" ? process.env?.DEEPLINE_PREFERRED_RECEIPT_GATEWAY_MACHINE_ID : void 0;
1402
+ const coordinatorUrl = env.DEEPLINE_COORDINATOR_URL;
1403
+ const coordinatorInternalToken = env.DEEPLINE_INTERNAL_TOKEN;
1404
+ const absurdReleaseOverride = env.DEEPLINE_ABSURD_RELEASE;
1405
+ const preferredReceiptGatewayMachineId = env.DEEPLINE_PREFERRED_RECEIPT_GATEWAY_MACHINE_ID;
1398
1406
  if (coordinatorUrl?.trim()) {
1399
1407
  headers[COORDINATOR_URL_OVERRIDE_HEADER] = coordinatorUrl.trim();
1400
1408
  }
1401
- const workerCallbackUrl = typeof process !== "undefined" ? process.env?.DEEPLINE_WORKER_CALLBACK_URL : void 0;
1409
+ const workerCallbackUrl = env.DEEPLINE_WORKER_CALLBACK_URL;
1402
1410
  if (workerCallbackUrl?.trim()) {
1403
1411
  headers[WORKER_CALLBACK_URL_OVERRIDE_HEADER] = workerCallbackUrl.trim();
1404
1412
  }
1405
- const runtimeSchedulerSchema = typeof process !== "undefined" ? process.env?.DEEPLINE_RUNTIME_SCHEDULER_SCHEMA : void 0;
1413
+ const runtimeSchedulerSchema = env.DEEPLINE_RUNTIME_SCHEDULER_SCHEMA;
1406
1414
  if (runtimeSchedulerSchema?.trim()) {
1407
1415
  headers[RUNTIME_SCHEDULER_SCHEMA_OVERRIDE_HEADER] = runtimeSchedulerSchema.trim();
1408
1416
  }
1409
- const syntheticRun = typeof process !== "undefined" ? process.env?.DEEPLINE_SYNTHETIC_RUN : void 0;
1417
+ const syntheticRun = env.DEEPLINE_SYNTHETIC_RUN;
1410
1418
  if (syntheticRun && syntheticRun.trim() && syntheticRun.trim() !== "0") {
1411
1419
  headers[SYNTHETIC_RUN_HEADER] = "1";
1412
1420
  }
1413
- const runtimeTestFault = typeof process !== "undefined" ? process.env?.DEEPLINE_TEST_RUNTIME_FAULT : void 0;
1421
+ const runtimeTestFault = env.DEEPLINE_TEST_RUNTIME_FAULT;
1414
1422
  if (runtimeTestFault?.trim()) {
1415
1423
  headers[PLAY_RUNTIME_TEST_FAULT_HEADER] = runtimeTestFault.trim();
1416
1424
  }
1417
- const retainedReceivers = typeof process !== "undefined" ? process.env?.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS?.trim() : void 0;
1425
+ const retainedReceivers = env.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS?.trim();
1418
1426
  if (retainedReceivers && coordinatorInternalToken?.trim()) {
1419
1427
  headers[RETAINED_PIPELINE_RECEIVERS_HEADER] = retainedReceivers;
1420
1428
  headers[COORDINATOR_INTERNAL_TOKEN_HEADER] = coordinatorInternalToken.trim();
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
3
  printCommandEnvelope
4
- } from "./chunk-5KD4F7NR.mjs";
4
+ } from "./chunk-2G7DXFHI.mjs";
5
5
  import {
6
6
  agentSessionIdFromEnvironment
7
- } from "./chunk-DNYNJU5J.mjs";
7
+ } from "./chunk-2GAHHSLB.mjs";
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
  import {
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-653YVNNZ.mjs";
4
+ } from "./chunk-MU6M3URX.mjs";
5
5
  import {
6
6
  resolveShellSpawn,
7
7
  runSkillsCommand
8
- } from "./chunk-KZOKUN3N.mjs";
8
+ } from "./chunk-ZTACINO5.mjs";
9
9
  import {
10
10
  printCommandEnvelope
11
- } from "./chunk-5KD4F7NR.mjs";
11
+ } from "./chunk-2G7DXFHI.mjs";
12
12
  import {
13
13
  autoDetectBaseUrl
14
- } from "./chunk-DNYNJU5J.mjs";
14
+ } from "./chunk-2GAHHSLB.mjs";
15
15
 
16
16
  // src/cli/commands/update.ts
17
17
  import { spawn, spawnSync } from "child_process";
@@ -13,7 +13,7 @@ import {
13
13
  observedMaxText,
14
14
  recentSearchRef,
15
15
  registerDeprecatedSearchCommand
16
- } from "./chunk-JV7YZMNK.mjs";
16
+ } from "./chunk-HGYBEAQP.mjs";
17
17
  import {
18
18
  DEEPLINE_EXTRACTOR_TARGET_DEFINITIONS,
19
19
  EMAIL_STATUS_JSON_SCHEMA,
@@ -32,7 +32,7 @@ import {
32
32
  import {
33
33
  DeeplineClient,
34
34
  validateExecutionIdempotencyKey
35
- } from "./chunk-NQZW72DN.mjs";
35
+ } from "./chunk-YN6YA7ZZ.mjs";
36
36
  import {
37
37
  beginToolExecuteCommand,
38
38
  getToolExecuteInvocationId,
@@ -46,11 +46,11 @@ import {
46
46
  printJsonError,
47
47
  renderCommandEnvelopeText,
48
48
  shouldEmitJson
49
- } from "./chunk-5KD4F7NR.mjs";
49
+ } from "./chunk-2G7DXFHI.mjs";
50
50
  import {
51
51
  resolveConfig,
52
52
  sdkCliStateDirPath
53
- } from "./chunk-DNYNJU5J.mjs";
53
+ } from "./chunk-2GAHHSLB.mjs";
54
54
  import {
55
55
  DeeplineError
56
56
  } from "./chunk-NXGCO4JB.mjs";
@@ -1112,7 +1112,7 @@ Examples:
1112
1112
  process.exitCode = await narrowView();
1113
1113
  return;
1114
1114
  }
1115
- const { describeAnything } = await import("./describe-3RTUG7EW.mjs");
1115
+ const { describeAnything } = await import("./describe-E3DE3ZK3.mjs");
1116
1116
  process.exitCode = await describeAnything(
1117
1117
  toolId,
1118
1118
  {
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkMI2JQCYZjs = require('./chunk-MI2JQCYZ.js');
5
+ var _chunkRV6ALZIXjs = require('./chunk-RV6ALZIX.js');
6
6
 
7
7
 
8
- var _chunkCZUGLUQKjs = require('./chunk-CZUGLUQK.js');
8
+ var _chunkWMS5U6YBjs = require('./chunk-WMS5U6YB.js');
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
32
32
  return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
33
33
  }
34
34
  async function handleList(options) {
35
- const { http } = _chunkMI2JQCYZjs.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkRV6ALZIXjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0,
39
+ _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
40
40
  {
41
41
  projects: payload.projects,
42
42
  count: payload.projects.length,
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
73
73
  }
74
74
  }
75
75
  async function handleStatus(options) {
76
- const { http } = _chunkMI2JQCYZjs.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkRV6ALZIXjs.getAuthedHttpClient.call(void 0, );
77
77
  const payload = await http.get("/api/v2/github/installation");
78
78
  const installation = payload.installation;
79
79
  const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
@@ -136,7 +136,7 @@ async function handleStatus(options) {
136
136
  )
137
137
  );
138
138
  }
139
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0,
139
+ _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
140
140
  {
141
141
  installation,
142
142
  installations: _nullishCoalesce(payload.installations, () => ( [])),
@@ -147,10 +147,10 @@ async function handleStatus(options) {
147
147
  );
148
148
  }
149
149
  async function handleRepos(options) {
150
- const { http } = _chunkMI2JQCYZjs.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkRV6ALZIXjs.getAuthedHttpClient.call(void 0, );
151
151
  const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
152
152
  const payload = await http.get(`/api/v2/github/repos${query}`);
153
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0,
153
+ _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
154
154
  {
155
155
  installation: payload.installation,
156
156
  repositories: payload.repositories,
@@ -171,7 +171,7 @@ async function handleRepos(options) {
171
171
  }
172
172
  async function resolveRepoId(repo, installation) {
173
173
  if (/^\d+$/.test(repo)) return Number(repo);
174
- const { http } = _chunkMI2JQCYZjs.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkRV6ALZIXjs.getAuthedHttpClient.call(void 0, );
175
175
  const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
176
176
  const payload = await http.get(
177
177
  `/api/v2/github/repos${query}`
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
188
188
  }
189
189
  async function handleLink(repo, options) {
190
190
  const repoId = await resolveRepoId(repo, options.installation);
191
- const { http } = _chunkMI2JQCYZjs.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkRV6ALZIXjs.getAuthedHttpClient.call(void 0, );
192
192
  const payload = await http.post("/api/v2/play-projects", {
193
193
  repoId,
194
194
  ...options.installation !== void 0 ? { installationId: options.installation } : {},
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
197
197
  ...options.branch !== void 0 ? { productionBranch: options.branch } : {},
198
198
  ...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
199
199
  });
200
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0,
200
+ _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
201
201
  {
202
202
  project: payload.project,
203
203
  render: {
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
220
220
  );
221
221
  }
222
222
  async function handleGet(id, options) {
223
- const { http } = _chunkMI2JQCYZjs.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkRV6ALZIXjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0,
227
+ _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
228
228
  {
229
229
  project: payload.project,
230
230
  render: {
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
240
240
  );
241
241
  }
242
242
  async function handleSet(id, options) {
243
- const { http } = _chunkMI2JQCYZjs.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkRV6ALZIXjs.getAuthedHttpClient.call(void 0, );
244
244
  const payload = await http.patch(
245
245
  `/api/v2/play-projects/${encodeURIComponent(id)}`,
246
246
  {
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
251
251
  ...options.disabled !== void 0 ? { disabled: options.disabled } : {}
252
252
  }
253
253
  );
254
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0,
254
+ _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
255
255
  {
256
256
  project: payload.project,
257
257
  render: {
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
264
264
  );
265
265
  }
266
266
  async function handleUnlink(id, options) {
267
- const { http } = _chunkMI2JQCYZjs.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkRV6ALZIXjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0,
269
+ _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
270
270
  {
271
271
  ok: true,
272
272
  id,
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
286
286
  );
287
287
  }
288
288
  async function handleConnect(options) {
289
- const baseUrl = _chunkCZUGLUQKjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkWMS5U6YBjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkMI2JQCYZjs.openInBrowser.call(void 0, connectUrl);
292
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkRV6ALZIXjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
293
293
  {
294
294
  connectUrl,
295
295
  browser: opened,
@@ -311,7 +311,7 @@ async function handleConnect(options) {
311
311
  );
312
312
  }
313
313
  async function handleDeploymentsList(options) {
314
- const { http } = _chunkMI2JQCYZjs.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkRV6ALZIXjs.getAuthedHttpClient.call(void 0, );
315
315
  const query = new URLSearchParams();
316
316
  if (options.repo) query.set("projectId", options.repo);
317
317
  if (options.limit) query.set("limit", options.limit);
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
319
319
  const payload = await http.get(
320
320
  `/api/v2/deployments${suffix}`
321
321
  );
322
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0,
322
+ _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
323
323
  {
324
324
  deployments: payload.deployments,
325
325
  count: payload.deployments.length,
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
363
363
  ]);
364
364
  }
365
365
  async function handleDeploymentGet(id, options) {
366
- const { http } = _chunkMI2JQCYZjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkRV6ALZIXjs.getAuthedHttpClient.call(void 0, );
367
367
  const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
368
368
  const playLines = renderDeploymentPlayLines(payload.deployment.results);
369
369
  const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
370
370
  const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
371
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0,
371
+ _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
372
372
  {
373
373
  deployment: payload.deployment,
374
374
  project: payload.project,
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
387
387
  );
388
388
  }
389
389
  async function handleDeploymentCancel(id, options) {
390
- const { http } = _chunkMI2JQCYZjs.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkRV6ALZIXjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkMI2JQCYZjs.printCommandEnvelope.call(void 0,
392
+ _chunkRV6ALZIXjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,