deepline 0.3.510 → 0.3.512

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 (151) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +159 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +39 -3
  4. package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +2 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +9 -3
  6. package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +35 -3
  7. package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +4 -0
  8. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +241 -34
  9. package/dist/cli/artifacts-5IGM3EYP.js +268 -0
  10. package/dist/cli/artifacts-YSYWQFQQ.mjs +268 -0
  11. package/dist/cli/{auth-USS2W3UV.mjs → auth-4MVWCUXS.mjs} +5 -5
  12. package/dist/cli/auth-M3AJBJ3O.js +43 -0
  13. package/dist/cli/{billing-LQQHU443.js → billing-OYYHWNVS.js} +82 -82
  14. package/dist/cli/{billing-JCUWM5XB.mjs → billing-SZXRENPC.mjs} +7 -7
  15. package/dist/cli/{chunk-RHKFNEV2.mjs → chunk-2BS6BRGH.mjs} +2 -2
  16. package/dist/cli/{chunk-WAOLTP6R.mjs → chunk-2R6M62UO.mjs} +2 -2
  17. package/dist/cli/{chunk-YYUVOUEH.mjs → chunk-32UMZXCZ.mjs} +5 -5
  18. package/dist/cli/{chunk-7BF4R26M.mjs → chunk-3INAN6EK.mjs} +3 -3
  19. package/dist/cli/{chunk-BPGFNVH2.js → chunk-4DSRBHN6.js} +44 -44
  20. package/dist/cli/{chunk-EEQ2QQOH.js → chunk-4QR64X2S.js} +10 -10
  21. package/dist/cli/{chunk-JY73USD7.js → chunk-4ZDHGAE6.js} +2 -2
  22. package/dist/cli/{chunk-KXSOZYCS.mjs → chunk-5XLU47DG.mjs} +1 -1
  23. package/dist/cli/{chunk-ZRACZKEE.mjs → chunk-77DPQI6W.mjs} +62 -0
  24. package/dist/cli/{chunk-YDALHHUC.js → chunk-7U3WY2F3.js} +53 -53
  25. package/dist/cli/{chunk-DMF56C6D.mjs → chunk-AATUAFD2.mjs} +2 -2
  26. package/dist/cli/{chunk-XJZU7KO4.js → chunk-AVYI522S.js} +5 -5
  27. package/dist/cli/{chunk-LF3FF2B2.js → chunk-BP4XEO6Z.js} +1 -1
  28. package/dist/cli/{chunk-7VT7RMZ2.mjs → chunk-DJ4FD5DR.mjs} +2 -2
  29. package/dist/cli/{chunk-CLV4T5FN.mjs → chunk-EQAKPIGI.mjs} +2 -2
  30. package/dist/cli/{chunk-XK3AJFYQ.js → chunk-FF25PDQ2.js} +62 -0
  31. package/dist/cli/{chunk-B6Q6BHSY.mjs → chunk-FJPJ6SO3.mjs} +2 -2
  32. package/dist/cli/{chunk-UV524JZ5.mjs → chunk-GJMIW4Q6.mjs} +1 -1
  33. package/dist/cli/{chunk-5MYXW6M6.mjs → chunk-HA5NSCTH.mjs} +2 -2
  34. package/dist/cli/{chunk-63DHG7BM.js → chunk-HCMFRAYT.js} +26 -26
  35. package/dist/cli/{chunk-FND6GZZ4.mjs → chunk-I6OK54YK.mjs} +5 -5
  36. package/dist/cli/{chunk-F6IXWFPF.js → chunk-IMC2HQ6V.js} +6 -6
  37. package/dist/cli/{chunk-DEPBCRKG.mjs → chunk-JDD6OLWN.mjs} +3 -3
  38. package/dist/cli/{chunk-EJ57CA2L.mjs → chunk-JH7JISQ2.mjs} +1 -1
  39. package/dist/cli/{chunk-XRLE2FPE.js → chunk-JKLFRDQ6.js} +6 -6
  40. package/dist/cli/{chunk-7VQKU6MS.js → chunk-JU35QU3Z.js} +270 -199
  41. package/dist/cli/{chunk-ZCYV6MZH.js → chunk-KBM5T6UV.js} +5 -5
  42. package/dist/cli/{chunk-VPJSQMWQ.js → chunk-L7CAOWHY.js} +3 -3
  43. package/dist/cli/{chunk-B2U3LVSO.mjs → chunk-LYOWQKGN.mjs} +1 -1
  44. package/dist/cli/{chunk-HOKOJGQW.mjs → chunk-MQ5GBB7V.mjs} +1 -1
  45. package/dist/cli/{chunk-OEG6VCK4.mjs → chunk-MTSHUN2R.mjs} +72 -1
  46. package/dist/cli/{chunk-ASBWPRBN.js → chunk-O24VWLOY.js} +16 -16
  47. package/dist/cli/{chunk-HC27PYJM.js → chunk-OU6AK63V.js} +2 -2
  48. package/dist/cli/{chunk-563HM4D2.mjs → chunk-P3RYPSOQ.mjs} +6 -6
  49. package/dist/cli/{chunk-6AL2VF3E.js → chunk-PJCPFF7J.js} +14 -14
  50. package/dist/cli/{chunk-4ZIIS6KG.js → chunk-Q72Q3ZWB.js} +9 -9
  51. package/dist/cli/{chunk-JNECQ5QF.js → chunk-RR6G6ZCT.js} +11 -11
  52. package/dist/cli/{chunk-Q5EJO4TE.mjs → chunk-RXZRZEW7.mjs} +5 -5
  53. package/dist/cli/{chunk-WC5754QJ.mjs → chunk-T3SUWKUT.mjs} +5 -5
  54. package/dist/cli/{chunk-QRQBKLOM.js → chunk-TKN2TRW5.js} +3 -3
  55. package/dist/cli/{chunk-PQ56GE55.mjs → chunk-TNQ5MF6K.mjs} +1 -1
  56. package/dist/cli/{chunk-B2T7PBS6.js → chunk-V6FQRUPJ.js} +41 -41
  57. package/dist/cli/{chunk-3LXU22UZ.js → chunk-VGCNLFER.js} +2 -2
  58. package/dist/cli/{chunk-XL4FFVWL.js → chunk-VZN6D23P.js} +7 -7
  59. package/dist/cli/{chunk-5N2HFB3G.js → chunk-W7DAWILZ.js} +16 -16
  60. package/dist/cli/{chunk-2JXEZAJF.js → chunk-WDCOUJQ5.js} +21 -21
  61. package/dist/cli/{chunk-FFPLCSTZ.mjs → chunk-XKFWY4IK.mjs} +10 -10
  62. package/dist/cli/{chunk-V6DLYRSO.mjs → chunk-YJN55ZWG.mjs} +1 -1
  63. package/dist/cli/{chunk-JVEU6MXD.mjs → chunk-YNMHIJC5.mjs} +1 -1
  64. package/dist/cli/{chunk-N7FV7OM3.js → chunk-ZLHIQU2G.js} +96 -96
  65. package/dist/cli/{chunk-5DU7RXDW.mjs → chunk-ZVYMGTZ7.mjs} +4 -4
  66. package/dist/cli/{chunk-4NJK6P5T.js → chunk-ZZ7SVWKR.js} +4 -4
  67. package/dist/cli/command-docs.js +2 -2
  68. package/dist/cli/command-docs.mjs +1 -1
  69. package/dist/cli/{csv-MTFVEDPU.mjs → csv-AY4KT3NZ.mjs} +4 -4
  70. package/dist/cli/{csv-UXFQZLZM.js → csv-YR2E5HNM.js} +13 -13
  71. package/dist/cli/{db-3WPUYCCI.mjs → db-IMYD3OCM.mjs} +6 -6
  72. package/dist/cli/{db-RGWT6B7K.js → db-YKV6564I.js} +27 -27
  73. package/dist/cli/{describe-XJY5654F.mjs → describe-72GI2Q6T.mjs} +18 -18
  74. package/dist/cli/describe-UFGHQBM7.js +50 -0
  75. package/dist/cli/describe-core.d.mts +2 -2
  76. package/dist/cli/describe-core.d.ts +2 -2
  77. package/dist/cli/{executions-PDE4V5YH.mjs → executions-2YO6KIP3.mjs} +6 -6
  78. package/dist/cli/{executions-IWTALFNB.js → executions-OSNL5CSU.js} +8 -8
  79. package/dist/cli/{feedback-BMOVTPC4.mjs → feedback-SYDNAT62.mjs} +5 -5
  80. package/dist/cli/{feedback-I72P4XZS.js → feedback-WSA7YTKS.js} +10 -10
  81. package/dist/cli/{git-QJG3EF4P.mjs → git-WBH7N3EF.mjs} +5 -5
  82. package/dist/cli/git-YYOW4CYQ.js +25 -0
  83. package/dist/cli/index.js +148 -144
  84. package/dist/cli/index.mjs +47 -43
  85. package/dist/cli/{legacy-noops-5P75CQC7.js → legacy-noops-BZPLWY5C.js} +9 -9
  86. package/dist/cli/{legacy-noops-MZ45GDMK.mjs → legacy-noops-USZM4ZXF.mjs} +6 -6
  87. package/dist/cli/{monitors-VIOBUG2X.mjs → monitors-6HOZMLEV.mjs} +7 -7
  88. package/dist/cli/{monitors-5PHQZDZM.js → monitors-XHXAMMYC.js} +100 -100
  89. package/dist/cli/{org-B5LDVP2P.js → org-BAAOAZF3.js} +72 -72
  90. package/dist/cli/{org-D5RTFJNY.mjs → org-LT3DICB4.mjs} +6 -6
  91. package/dist/cli/{pages-BUJYG3JL.js → pages-7NP4PKLA.js} +18 -18
  92. package/dist/cli/{pages-XWZL3YV2.mjs → pages-MOCSTZZQ.mjs} +6 -6
  93. package/dist/cli/{play-SEC3EE7H.js → play-CGUL22GL.js} +317 -317
  94. package/dist/cli/{play-OSXLGCLZ.mjs → play-MGJ7B7RL.mjs} +18 -18
  95. package/dist/cli/{providers-RQPUASLI.js → providers-5LCUHKX2.js} +9 -9
  96. package/dist/cli/{providers-ENSURIW6.mjs → providers-AOWBHJ24.mjs} +6 -6
  97. package/dist/cli/{quickstart-XDTU4MAT.js → quickstart-7YZUT7GO.js} +6 -6
  98. package/dist/cli/{quickstart-HJTK6XWI.mjs → quickstart-Z6NA2CCM.mjs} +4 -4
  99. package/dist/cli/{run-ZMWSQAR2.mjs → run-7QGBNUKE.mjs} +23 -23
  100. package/dist/cli/{run-GX2SU5AT.js → run-M66ILCWL.js} +41 -41
  101. package/dist/cli/search-OZQH5VMI.js +33 -0
  102. package/dist/cli/{search-DZHZBHWT.mjs → search-Z2T3B4V4.mjs} +8 -8
  103. package/dist/cli/{search-output-3JVZERNV.js → search-output-6OHPSJGK.js} +6 -6
  104. package/dist/cli/{search-output-MNHAR754.mjs → search-output-MLHVBRIR.mjs} +4 -4
  105. package/dist/cli/{secrets-WO2LMDQ2.js → secrets-T7MW2DMK.js} +15 -15
  106. package/dist/cli/{secrets-VALVNVXB.mjs → secrets-VBSILT5H.mjs} +6 -6
  107. package/dist/cli/{sessions-EPYCH3AY.mjs → sessions-KNITGDLS.mjs} +6 -6
  108. package/dist/cli/sessions-XKEIBOTP.js +18 -0
  109. package/dist/cli/{settings-W2ABZUD4.mjs → settings-NBZRRKZS.mjs} +13 -13
  110. package/dist/cli/{settings-OSF4O5HM.js → settings-OSEBDBKR.js} +86 -86
  111. package/dist/cli/{setup-DCXNQG6R.js → setup-7DZPC6FC.js} +50 -50
  112. package/dist/cli/{setup-XI2ERSMQ.mjs → setup-WTEQPZ5I.mjs} +10 -10
  113. package/dist/cli/{skills-ZO4AH2YR.mjs → skills-JMD2MNJZ.mjs} +8 -8
  114. package/dist/cli/skills-R6RO6MQF.js +37 -0
  115. package/dist/cli/{tools-FTECXZYA.mjs → tools-LK5BM2Z7.mjs} +17 -17
  116. package/dist/cli/tools-NBBDUNPR.js +57 -0
  117. package/dist/cli/update-BI2ABPGX.js +35 -0
  118. package/dist/cli/{update-WPFZO2JE.mjs → update-IVUSIA2E.mjs} +10 -10
  119. package/dist/cli/{workflow-7X75IP3D.mjs → workflow-4QP6G54M.mjs} +7 -7
  120. package/dist/cli/{workflow-PKMU33LV.js → workflow-GY374FMJ.js} +17 -17
  121. package/dist/{client-DMpsMNH9.d.mts → client-By7bUS8h.d.mts} +1 -1
  122. package/dist/{client-BlwD-G4v.d.ts → client-CmlKSBXd.d.ts} +1 -1
  123. package/dist/{client-core-DwBLuEkm.d.ts → client-core-BM0mKhgp.d.ts} +93 -1
  124. package/dist/{client-core-CITtRTbB.d.mts → client-core-BZ3tpY_J.d.mts} +93 -1
  125. package/dist/index.d.mts +3 -3
  126. package/dist/index.d.ts +3 -3
  127. package/dist/index.js +9 -9
  128. package/dist/index.mjs +6 -6
  129. package/dist/install-integrity.json +110 -108
  130. package/dist/plays/play-description.d.mts +1 -1
  131. package/dist/plays/play-description.d.ts +1 -1
  132. package/dist/plays/run-request.d.mts +1 -1
  133. package/dist/plays/run-request.d.ts +1 -1
  134. package/dist/release.d.mts +1 -1
  135. package/dist/release.d.ts +1 -1
  136. package/dist/release.js +2 -2
  137. package/dist/release.mjs +1 -1
  138. package/dist/server.d.mts +2 -2
  139. package/dist/server.d.ts +2 -2
  140. package/dist/server.js +5 -5
  141. package/dist/server.mjs +3 -3
  142. package/dist/viewer/viewer.js +16 -7
  143. package/package.json +1 -1
  144. package/dist/cli/auth-S2Z5YMU3.js +0 -43
  145. package/dist/cli/describe-LNCLA2LA.js +0 -50
  146. package/dist/cli/git-QWH7SPGF.js +0 -25
  147. package/dist/cli/search-7WPABWYO.js +0 -33
  148. package/dist/cli/sessions-2IA2DGWO.js +0 -18
  149. package/dist/cli/skills-QMD2WARJ.js +0 -37
  150. package/dist/cli/tools-53E6GBQU.js +0 -57
  151. package/dist/cli/update-PPPNR6J5.js +0 -35
@@ -1,16 +1,16 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunk7VQKU6MSjs = require('./chunk-7VQKU6MS.js');
3
+ var _chunkJU35QU3Zjs = require('./chunk-JU35QU3Z.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkVPJSQMWQjs = require('./chunk-VPJSQMWQ.js');
7
+ var _chunkL7CAOWHYjs = require('./chunk-L7CAOWHY.js');
8
8
 
9
9
  // src/client.ts
10
- var DeeplineClient2 = class extends _chunk7VQKU6MSjs.DeeplineClient {
10
+ var DeeplineClient2 = class extends _chunkJU35QU3Zjs.DeeplineClient {
11
11
  constructor(options) {
12
- const config = _chunkVPJSQMWQjs.resolveConfig.call(void 0, options);
13
- super(config, new (0, _chunkVPJSQMWQjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
12
+ const config = _chunkL7CAOWHYjs.resolveConfig.call(void 0, options);
13
+ super(config, new (0, _chunkL7CAOWHYjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
14
14
  }
15
15
  };
16
16
 
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunk4NJK6P5Tjs = require('./chunk-4NJK6P5T.js');
4
+ var _chunkZZ7SVWKRjs = require('./chunk-ZZ7SVWKR.js');
5
5
 
6
6
 
7
7
  var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
711
711
  }
712
712
  }
713
713
  function resolveAutoSyncSkillAgents() {
714
- switch (_chunk4NJK6P5Tjs.detectAgentRuntime.call(void 0, )) {
714
+ switch (_chunkZZ7SVWKRjs.detectAgentRuntime.call(void 0, )) {
715
715
  case "codex":
716
716
  return ["codex"];
717
717
  case "claude_code":
@@ -781,7 +781,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
781
781
  }
782
782
 
783
783
  // src/http.ts
784
- var HttpClient2 = class extends _chunk4NJK6P5Tjs.HttpClient {
784
+ var HttpClient2 = class extends _chunkZZ7SVWKRjs.HttpClient {
785
785
  constructor(config) {
786
786
  super(config, readSdkSkillsLocalVersion);
787
787
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isJsonOutputMode
3
- } from "./chunk-DMF56C6D.mjs";
3
+ } from "./chunk-AATUAFD2.mjs";
4
4
 
5
5
  // src/cli/progress.ts
6
6
  import { Worker } from "worker_threads";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HttpClient,
3
3
  detectAgentRuntime
4
- } from "./chunk-PQ56GE55.mjs";
4
+ } from "./chunk-TNQ5MF6K.mjs";
5
5
  import {
6
6
  ConfigError
7
7
  } from "./chunk-4QF2K7TM.mjs";
@@ -31,7 +31,7 @@ import {
31
31
  RETAINED_PIPELINE_RECEIVERS_HEADER,
32
32
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
33
33
  SDK_API_MAJOR
34
- } from "./chunk-PQ56GE55.mjs";
34
+ } from "./chunk-TNQ5MF6K.mjs";
35
35
  import {
36
36
  CustomerDbQueryOutcomeUnknownError
37
37
  } from "./chunk-4QF2K7TM.mjs";
@@ -3740,6 +3740,77 @@ var DeeplineClient = class _DeeplineClient {
3740
3740
  `/api/v2/pages/${encodeURIComponent(name)}/links/${encodeURIComponent(linkId)}`
3741
3741
  );
3742
3742
  }
3743
+ // ——————————————————————————————————————————————————————————
3744
+ // Artifacts
3745
+ // ——————————————————————————————————————————————————————————
3746
+ /** List this workspace's artifacts, most recently changed first. */
3747
+ async listArtifacts(input) {
3748
+ const params = new URLSearchParams();
3749
+ if (input?.cursor) params.set("cursor", input.cursor);
3750
+ if (input?.limit) params.set("limit", String(input.limit));
3751
+ const query = params.size > 0 ? `?${params}` : "";
3752
+ return await this.http.get(`/api/v2/artifacts${query}`);
3753
+ }
3754
+ /** One artifact and what the caller may do with it. */
3755
+ async getArtifact(id) {
3756
+ return await this.http.get(
3757
+ `/api/v2/artifacts/${encodeURIComponent(id)}`
3758
+ );
3759
+ }
3760
+ /** Create an artifact that shows a Play's runs at a fixed URL. */
3761
+ async createArtifact(input) {
3762
+ return await this.http.post("/api/v2/artifacts", input);
3763
+ }
3764
+ /** Change the name, description, Play, or saved input. */
3765
+ async updateArtifact(id, input) {
3766
+ return await this.http.patch(
3767
+ `/api/v2/artifacts/${encodeURIComponent(id)}`,
3768
+ input
3769
+ );
3770
+ }
3771
+ /** Who can open an artifact: workspace members, or anyone with its URL. */
3772
+ async setArtifactAccess(id, access) {
3773
+ return await this.http.post(
3774
+ `/api/v2/artifacts/${encodeURIComponent(id)}/access`,
3775
+ { access }
3776
+ );
3777
+ }
3778
+ /** Every run of the artifact's Play, newest first. */
3779
+ async listArtifactRuns(id, input) {
3780
+ const params = new URLSearchParams();
3781
+ if (input?.limit) params.set("limit", String(input.limit));
3782
+ if (input?.offset) params.set("offset", String(input.offset));
3783
+ const query = params.size > 0 ? `?${params}` : "";
3784
+ return await this.http.get(
3785
+ `/api/v2/artifacts/${encodeURIComponent(id)}/runs${query}`
3786
+ );
3787
+ }
3788
+ /**
3789
+ * Refresh an artifact: run its Play with its saved input (or `input`). The run
3790
+ * goes through the normal run API; the artifact shows it when it finishes.
3791
+ */
3792
+ async refreshArtifact(id, input) {
3793
+ const intent = await this.http.post(`/api/v2/artifacts/${encodeURIComponent(id)}/refresh`, {});
3794
+ const started = await this.startPlayRun({
3795
+ name: intent.play,
3796
+ input: input ?? intent.input
3797
+ });
3798
+ return { ...started, artifact: intent.id };
3799
+ }
3800
+ /** Delete an artifact. Its Play and runs are not touched. */
3801
+ async deleteArtifact(id) {
3802
+ return await this.http.delete(
3803
+ `/api/v2/artifacts/${encodeURIComponent(id)}`
3804
+ );
3805
+ }
3806
+ /** The workspace artifact rules and what the caller may do. */
3807
+ async getArtifactPermissions() {
3808
+ return await this.http.get("/api/v2/artifacts/permissions");
3809
+ }
3810
+ /** Change artifact rules. Admins only; omitted verbs keep their rule. */
3811
+ async setArtifactPermissions(rules) {
3812
+ return await this.http.put("/api/v2/artifacts/permissions", { rules });
3813
+ }
3743
3814
  /** List secret metadata visible to the current workspace. */
3744
3815
  async listSecrets() {
3745
3816
  const response = await this.http.get(
@@ -1,19 +1,19 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkHC27PYJMjs = require('./chunk-HC27PYJM.js');
4
+ var _chunkOU6AK63Vjs = require('./chunk-OU6AK63V.js');
5
5
 
6
6
 
7
- var _chunkB2T7PBS6js = require('./chunk-B2T7PBS6.js');
7
+ var _chunkV6FQRUPJjs = require('./chunk-V6FQRUPJ.js');
8
8
 
9
9
 
10
- var _chunkBPGFNVH2js = require('./chunk-BPGFNVH2.js');
10
+ var _chunk4DSRBHN6js = require('./chunk-4DSRBHN6.js');
11
11
 
12
12
 
13
- var _chunkXL4FFVWLjs = require('./chunk-XL4FFVWL.js');
13
+ var _chunkVZN6D23Pjs = require('./chunk-VZN6D23P.js');
14
14
 
15
15
 
16
- var _chunkVPJSQMWQjs = require('./chunk-VPJSQMWQ.js');
16
+ var _chunkL7CAOWHYjs = require('./chunk-L7CAOWHY.js');
17
17
 
18
18
  // src/cli/commands/update.ts
19
19
  var _child_process = require('child_process');
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
495
495
  }
496
496
  function resolveNpmGlobalPrefix(env) {
497
497
  try {
498
- const plan = _chunkBPGFNVH2js.resolveShellSpawn.call(void 0,
498
+ const plan = _chunk4DSRBHN6js.resolveShellSpawn.call(void 0,
499
499
  "npm",
500
500
  ["prefix", "-g"],
501
501
  process.platform,
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
556
556
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
557
557
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
558
558
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
559
- const npmVersion = options.npmVersion === void 0 ? _chunkHC27PYJMjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
- const npmGlobalInstallFlags = _chunkHC27PYJMjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
559
+ const npmVersion = options.npmVersion === void 0 ? _chunkOU6AK63Vjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
+ const npmGlobalInstallFlags = _chunkOU6AK63Vjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
561
561
  const args = installPrefix ? [
562
562
  "install",
563
563
  "-g",
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
567
567
  packageSpec
568
568
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
569
569
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
570
- _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkVPJSQMWQjs.autoDetectBaseUrl.call(void 0, )
570
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkL7CAOWHYjs.autoDetectBaseUrl.call(void 0, )
571
571
  );
572
572
  return {
573
573
  kind: "npm-global",
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
816
816
  function runCommand(command, args, env = process.env) {
817
817
  return new Promise((resolveResult) => {
818
818
  let output = "";
819
- const plan = _chunkBPGFNVH2js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
819
+ const plan = _chunk4DSRBHN6js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
820
820
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
821
821
  stdio: ["inherit", "pipe", "pipe"],
822
822
  shell: plan.shell,
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
1199
1199
  throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
1200
1200
  }
1201
1201
  async function runUpdateCommand(options, dependencies = {}) {
1202
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkVPJSQMWQjs.autoDetectBaseUrl));
1202
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkL7CAOWHYjs.autoDetectBaseUrl));
1203
1203
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1204
1204
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1205
1205
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1206
1206
  const originalWrite = process.stdout.write.bind(process.stdout);
1207
1207
  process.stdout.write = (() => true);
1208
1208
  try {
1209
- const exitCode = await _chunkB2T7PBS6js.runSkillsCommand.call(void 0, { json: true });
1209
+ const exitCode = await _chunkV6FQRUPJjs.runSkillsCommand.call(void 0, { json: true });
1210
1210
  if (exitCode !== 0) {
1211
1211
  throw new Error(
1212
1212
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
1277
1277
  ]
1278
1278
  };
1279
1279
  if (options.json && !options.executeWithJson) {
1280
- _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1280
+ _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1281
1281
  return 0;
1282
1282
  }
1283
1283
  if (options.printCommand) {
1284
- _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
1284
+ _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
1285
1285
  {
1286
1286
  ...plan,
1287
1287
  render: {
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1294
1294
  return 0;
1295
1295
  }
1296
1296
  if (plan.kind === "source" || plan.kind === "homebrew") {
1297
- _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1297
+ _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1298
1298
  return 0;
1299
1299
  }
1300
1300
  stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills install
1324
1324
  );
1325
1325
  }
1326
1326
  if (options.executeWithJson && options.json) {
1327
- _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
1327
+ _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
1328
1328
  {
1329
1329
  ok: true,
1330
1330
  pinnedVersion
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkBPGFNVH2js = require('./chunk-BPGFNVH2.js');
3
+ var _chunk4DSRBHN6js = require('./chunk-4DSRBHN6.js');
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  var _child_process = require('child_process');
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
13
13
  }
14
14
  function readNpmVersion(env) {
15
15
  try {
16
- const plan = _chunkBPGFNVH2js.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunk4DSRBHN6js.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
17
17
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
18
18
  encoding: "utf8",
19
19
  env,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  seedToolListScript
3
- } from "./chunk-FFPLCSTZ.mjs";
3
+ } from "./chunk-XKFWY4IK.mjs";
4
4
  import {
5
5
  addDescribeOptions
6
- } from "./chunk-UV524JZ5.mjs";
6
+ } from "./chunk-GJMIW4Q6.mjs";
7
7
  import {
8
8
  describeLookupsFor,
9
9
  describeName,
@@ -14,18 +14,18 @@ import {
14
14
  } from "./chunk-ITJ7NB2D.mjs";
15
15
  import {
16
16
  DeeplineClient
17
- } from "./chunk-5MYXW6M6.mjs";
17
+ } from "./chunk-HA5NSCTH.mjs";
18
18
  import {
19
19
  failureReportHeaders,
20
20
  isFailureReportingDisabled
21
- } from "./chunk-WAOLTP6R.mjs";
21
+ } from "./chunk-2R6M62UO.mjs";
22
22
  import {
23
23
  printCommandEnvelope
24
- } from "./chunk-DMF56C6D.mjs";
24
+ } from "./chunk-AATUAFD2.mjs";
25
25
  import {
26
26
  autoDetectBaseUrl,
27
27
  resolveApiKeyForBaseUrl
28
- } from "./chunk-HOKOJGQW.mjs";
28
+ } from "./chunk-MQ5GBB7V.mjs";
29
29
 
30
30
  // src/cli/commands/describe.ts
31
31
  import { writeFileSync } from "fs";
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
3
 
4
- var _chunkVPJSQMWQjs = require('./chunk-VPJSQMWQ.js');
4
+ var _chunkL7CAOWHYjs = require('./chunk-L7CAOWHY.js');
5
5
 
6
6
 
7
7
 
8
8
 
9
9
 
10
- var _chunk4NJK6P5Tjs = require('./chunk-4NJK6P5T.js');
10
+ var _chunkZZ7SVWKRjs = require('./chunk-ZZ7SVWKR.js');
11
11
 
12
12
 
13
13
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
@@ -150,7 +150,7 @@ function buildEnvironmentContext() {
150
150
  node_version: process.version,
151
151
  runtime: "Node.js",
152
152
  hostname: _os.hostname.call(void 0, ),
153
- agent_runtime: _chunk4NJK6P5Tjs.detectAgentRuntime.call(void 0, )
153
+ agent_runtime: _chunkZZ7SVWKRjs.detectAgentRuntime.call(void 0, )
154
154
  };
155
155
  for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
156
156
  const normalized = _optionalChain([process, 'access', _5 => _5.env, 'access', _6 => _6[key], 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]);
@@ -171,18 +171,18 @@ function buildEnvironmentContext() {
171
171
  return context;
172
172
  }
173
173
  function failureReportHeaders(apiKey) {
174
- const agentSessionId = _chunk4NJK6P5Tjs.agentSessionIdFromEnvironment.call(void 0, );
174
+ const agentSessionId = _chunkZZ7SVWKRjs.agentSessionIdFromEnvironment.call(void 0, );
175
175
  return {
176
- ..._chunk4NJK6P5Tjs.deploymentProtectionHeaders.call(void 0, ),
176
+ ..._chunkZZ7SVWKRjs.deploymentProtectionHeaders.call(void 0, ),
177
177
  ...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
178
178
  Authorization: `Bearer ${apiKey}`,
179
179
  "Content-Type": "application/json",
180
- "User-Agent": `deepline-ts-sdk/${_chunk4NJK6P5Tjs.SDK_VERSION}`,
180
+ "User-Agent": `deepline-ts-sdk/${_chunkZZ7SVWKRjs.SDK_VERSION}`,
181
181
  "X-Deepline-Client-Family": "sdk",
182
182
  "X-Deepline-CLI-Family": "sdk",
183
- "X-Deepline-Agent-Runtime": _chunk4NJK6P5Tjs.detectAgentRuntime.call(void 0, ),
184
- "X-Deepline-CLI-Version": _chunk4NJK6P5Tjs.SDK_VERSION,
185
- "X-Deepline-SDK-Version": _chunk4NJK6P5Tjs.SDK_VERSION
183
+ "X-Deepline-Agent-Runtime": _chunkZZ7SVWKRjs.detectAgentRuntime.call(void 0, ),
184
+ "X-Deepline-CLI-Version": _chunkZZ7SVWKRjs.SDK_VERSION,
185
+ "X-Deepline-SDK-Version": _chunkZZ7SVWKRjs.SDK_VERSION
186
186
  };
187
187
  }
188
188
  async function postFailureReport(input) {
@@ -210,7 +210,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
210
210
  if (isFailureReportingDisabled()) return false;
211
211
  let apiKey = "";
212
212
  try {
213
- apiKey = _chunkVPJSQMWQjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
213
+ apiKey = _chunkL7CAOWHYjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
214
214
  } catch (e2) {
215
215
  return false;
216
216
  }
@@ -237,7 +237,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
237
237
  failure_code: failureCode2,
238
238
  failure_stage: failureStage,
239
239
  error_body: "Automatic Deepline skills installation failed.",
240
- cli_version: _chunk4NJK6P5Tjs.SDK_VERSION,
240
+ cli_version: _chunkZZ7SVWKRjs.SDK_VERSION,
241
241
  context: {
242
242
  environment: buildEnvironmentContext(),
243
243
  skills_sync: {
@@ -357,7 +357,7 @@ function buildFailureReport(input) {
357
357
  failure_kind: failureKind,
358
358
  failure_code: code,
359
359
  failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
360
- cli_version: _chunk4NJK6P5Tjs.SDK_VERSION,
360
+ cli_version: _chunkZZ7SVWKRjs.SDK_VERSION,
361
361
  context: {
362
362
  base_url: redactFailureText(input.baseUrl, 400),
363
363
  command_summary: sanitizeCommand(input.argv),
@@ -377,8 +377,8 @@ async function maybeReportSdkCliFailure(input) {
377
377
  if (isServerLoggedPlayRunStartFailure(input)) return false;
378
378
  const exitCode = resolvedExitCode(input);
379
379
  if (!shouldReport({ exitCode, error: input.error })) return false;
380
- const baseUrl = _chunkVPJSQMWQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
381
- const apiKey = _chunkVPJSQMWQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
380
+ const baseUrl = _chunkL7CAOWHYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
381
+ const apiKey = _chunkL7CAOWHYjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
382
382
  if (!apiKey) return false;
383
383
  return postFailureReport({
384
384
  baseUrl,
@@ -3,7 +3,7 @@
3
3
  var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
4
4
 
5
5
 
6
- var _chunk7VQKU6MSjs = require('./chunk-7VQKU6MS.js');
6
+ var _chunkJU35QU3Zjs = require('./chunk-JU35QU3Z.js');
7
7
 
8
8
 
9
9
  var _chunkRNSHCJMEjs = require('./chunk-RNSHCJME.js');
@@ -11,7 +11,7 @@ var _chunkRNSHCJMEjs = require('./chunk-RNSHCJME.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkXL4FFVWLjs = require('./chunk-XL4FFVWL.js');
14
+ var _chunkVZN6D23Pjs = require('./chunk-VZN6D23P.js');
15
15
 
16
16
 
17
17
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
@@ -581,7 +581,7 @@ function parseInputFlagValue(raw) {
581
581
  return raw;
582
582
  }
583
583
  function parsePlayRunOptions(args, initialInput = null) {
584
- const selection = _chunkXL4FFVWLjs.parseJsonFields.call(void 0, args, "run");
584
+ const selection = _chunkVZN6D23Pjs.parseJsonFields.call(void 0, args, "run");
585
585
  args = selection.args;
586
586
  const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
587
587
  let filePath = null;
@@ -593,7 +593,7 @@ function parsePlayRunOptions(args, initialInput = null) {
593
593
  let revisionSelector = null;
594
594
  const watch = !args.includes("--no-wait");
595
595
  const dryRun = args.includes("--dry-run");
596
- let jsonOutput = dryRun ? _chunkXL4FFVWLjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkXL4FFVWLjs.argsWantJson.call(void 0, args);
596
+ let jsonOutput = dryRun ? _chunkVZN6D23Pjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkVZN6D23Pjs.argsWantJson.call(void 0, args);
597
597
  const fullJson = args.includes("--full");
598
598
  const force = args.includes("--force") || args.includes("--from-start");
599
599
  const forceToolRefresh = args.includes("--force-tool-refresh") || args.includes("--refresh-cache");
@@ -656,7 +656,7 @@ function parsePlayRunOptions(args, initialInput = null) {
656
656
  "--log-level requires one of: debug, info, warn, error."
657
657
  );
658
658
  }
659
- const parsed = _chunk7VQKU6MSjs.parseLogLevel.call(void 0, value);
659
+ const parsed = _chunkJU35QU3Zjs.parseLogLevel.call(void 0, value);
660
660
  if (!parsed) {
661
661
  throw new Error(
662
662
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -974,7 +974,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
974
974
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
975
975
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
976
976
  );
977
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk7VQKU6MSjs.parseLogLevel.call(void 0, options.logLevel);
977
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkJU35QU3Zjs.parseLogLevel.call(void 0, options.logLevel);
978
978
  if (!logLevel)
979
979
  throw new Error("--log-level requires one of: debug, info, warn, error.");
980
980
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -988,13 +988,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
988
988
  if (debugAlias || debugMapLatency && logLevel === "info")
989
989
  logLevel = "debug";
990
990
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
991
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkXL4FFVWLjs.parseJsonFields.call(void 0,
992
- [...fullJson ? ["--full"] : [], ..._chunkXL4FFVWLjs.jsonFieldArgs.call(void 0, options.json)],
991
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkVZN6D23Pjs.parseJsonFields.call(void 0,
992
+ [...fullJson ? ["--full"] : [], ..._chunkVZN6D23Pjs.jsonFieldArgs.call(void 0, options.json)],
993
993
  "run"
994
994
  ).fields;
995
995
  const watch = options.wait === false ? false : base.watch;
996
996
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
997
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkXL4FFVWLjs.argsWantJson.call(void 0, []) : explicitJson;
997
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkVZN6D23Pjs.argsWantJson.call(void 0, []) : explicitJson;
998
998
  const verboseLogs = Boolean(
999
999
  debugAlias || logLevel === "debug" || debugMapLatency
1000
1000
  );
@@ -3,18 +3,18 @@
3
3
  var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
4
4
 
5
5
 
6
- var _chunkZCYV6MZHjs = require('./chunk-ZCYV6MZH.js');
6
+ var _chunkKBM5T6UVjs = require('./chunk-KBM5T6UV.js');
7
7
 
8
8
 
9
- var _chunk6AL2VF3Ejs = require('./chunk-6AL2VF3E.js');
9
+ var _chunkPJCPFF7Jjs = require('./chunk-PJCPFF7J.js');
10
10
 
11
11
 
12
12
 
13
- var _chunkXL4FFVWLjs = require('./chunk-XL4FFVWL.js');
13
+ var _chunkVZN6D23Pjs = require('./chunk-VZN6D23P.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkVPJSQMWQjs = require('./chunk-VPJSQMWQ.js');
17
+ var _chunkL7CAOWHYjs = require('./chunk-L7CAOWHY.js');
18
18
 
19
19
  // src/cli/commands/search.ts
20
20
  var _commander = require('commander');
@@ -24,7 +24,7 @@ var _fs = require('fs');
24
24
  var _path = require('path');
25
25
  var SEARCH_REF_TTL_MS = 15 * 6e4;
26
26
  function lastSearchPath() {
27
- return _path.join.call(void 0, _chunkVPJSQMWQjs.sdkCliStateDirPath.call(void 0, _chunkVPJSQMWQjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
27
+ return _path.join.call(void 0, _chunkL7CAOWHYjs.sdkCliStateDirPath.call(void 0, _chunkL7CAOWHYjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
28
28
  }
29
29
  function rememberSearchRef(searchRef) {
30
30
  writeSearchRefs({ searchRef });
@@ -134,9 +134,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
134
134
  console.error("--summary-width must be an integer of at least 2.");
135
135
  return 1;
136
136
  }
137
- const client = new (0, _chunkZCYV6MZHjs.DeeplineClient)();
137
+ const client = new (0, _chunkKBM5T6UVjs.DeeplineClient)();
138
138
  const json = options.json === true;
139
- const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-3JVZERNV.js")));
139
+ const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-6OHPSJGK.js")));
140
140
  const searches = [];
141
141
  const chunks = [];
142
142
  const refs = /* @__PURE__ */ new Map();
@@ -159,7 +159,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
159
159
  const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
160
160
  if (!multiple) {
161
161
  if (searchRef) rememberSearchRef(searchRef);
162
- _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0, result, { json, text });
162
+ _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0, result, { json, text });
163
163
  return 0;
164
164
  }
165
165
  searches.push({ ...result, query });
@@ -173,8 +173,8 @@ ${text}`);
173
173
  }
174
174
  } catch (error) {
175
175
  if (!multiple) throw error;
176
- const payload = _chunkXL4FFVWLjs.errorToJsonPayload.call(void 0, error);
177
- const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunk6AL2VF3Ejs.resolveSdkCliFailureExitCode.call(void 0, error)));
176
+ const payload = _chunkVZN6D23Pjs.errorToJsonPayload.call(void 0, error);
177
+ const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkPJCPFF7Jjs.resolveSdkCliFailureExitCode.call(void 0, error)));
178
178
  searches.push({ ...payload, query, exitCode: queryExitCode });
179
179
  if (!json) {
180
180
  console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
@@ -186,7 +186,7 @@ Search failed.
186
186
  }
187
187
  }
188
188
  rememberSearchRefsByTool(refs);
189
- _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
189
+ _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
190
190
  { searches },
191
191
  {
192
192
  json,
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getActiveCliProgress
3
- } from "./chunk-B2U3LVSO.mjs";
3
+ } from "./chunk-LYOWQKGN.mjs";
4
4
  import {
5
5
  maybeReportAutomaticSkillsSyncFailure
6
- } from "./chunk-WAOLTP6R.mjs";
6
+ } from "./chunk-2R6M62UO.mjs";
7
7
  import {
8
8
  DEFAULT_SKILL_AGENTS,
9
9
  KNOWN_SKILL_AGENTS,
@@ -14,17 +14,17 @@ import {
14
14
  sdkCliStateDirPath,
15
15
  skillsAgentPathSegment,
16
16
  writeSdkSkillsLocalVersion
17
- } from "./chunk-HOKOJGQW.mjs";
17
+ } from "./chunk-MQ5GBB7V.mjs";
18
18
  import {
19
19
  SDK_API_CONTRACT,
20
20
  SDK_API_MAJOR,
21
21
  SDK_VERSION,
22
22
  deploymentProtectionHeaders,
23
23
  detectAgentRuntime
24
- } from "./chunk-PQ56GE55.mjs";
24
+ } from "./chunk-TNQ5MF6K.mjs";
25
25
  import {
26
26
  SDK_RELEASE
27
- } from "./chunk-V6DLYRSO.mjs";
27
+ } from "./chunk-YJN55ZWG.mjs";
28
28
 
29
29
  // src/compat.ts
30
30
  import { randomUUID } from "crypto";
@@ -3,18 +3,18 @@ import {
3
3
  } from "./chunk-5AEDYVB6.mjs";
4
4
  import {
5
5
  DeeplineClient
6
- } from "./chunk-5MYXW6M6.mjs";
6
+ } from "./chunk-HA5NSCTH.mjs";
7
7
  import {
8
8
  resolveSdkCliFailureExitCode
9
- } from "./chunk-WAOLTP6R.mjs";
9
+ } from "./chunk-2R6M62UO.mjs";
10
10
  import {
11
11
  errorToJsonPayload,
12
12
  printCommandEnvelope
13
- } from "./chunk-DMF56C6D.mjs";
13
+ } from "./chunk-AATUAFD2.mjs";
14
14
  import {
15
15
  resolveConfig,
16
16
  sdkCliStateDirPath
17
- } from "./chunk-HOKOJGQW.mjs";
17
+ } from "./chunk-MQ5GBB7V.mjs";
18
18
 
19
19
  // src/cli/commands/search.ts
20
20
  import { Option } from "commander";
@@ -136,7 +136,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
136
136
  }
137
137
  const client = new DeeplineClient();
138
138
  const json = options.json === true;
139
- const renderer = json ? void 0 : await import("./search-output-MNHAR754.mjs");
139
+ const renderer = json ? void 0 : await import("./search-output-MLHVBRIR.mjs");
140
140
  const searches = [];
141
141
  const chunks = [];
142
142
  const refs = /* @__PURE__ */ new Map();
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class;
2
2
 
3
- var _chunkXL4FFVWLjs = require('./chunk-XL4FFVWL.js');
3
+ var _chunkVZN6D23Pjs = require('./chunk-VZN6D23P.js');
4
4
 
5
5
  // src/cli/progress.ts
6
6
  var _worker_threads = require('worker_threads');
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
19
19
  __init9() {this.quiet = false}
20
20
  // --json output is one JSON document: progress never renders under it.
21
21
  constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
22
- this.enabled = enabled && !_chunkXL4FFVWLjs.isJsonOutputMode.call(void 0, );
22
+ this.enabled = enabled && !_chunkVZN6D23Pjs.isJsonOutputMode.call(void 0, );
23
23
  }
24
24
  setLogWriter(writer) {
25
25
  this.logWriter = writer;
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
59
59
  this.logWriter(line);
60
60
  return;
61
61
  }
62
- if (_chunkXL4FFVWLjs.isJsonOutputMode.call(void 0, )) return;
62
+ if (_chunkVZN6D23Pjs.isJsonOutputMode.call(void 0, )) return;
63
63
  if (!this.enabled) {
64
64
  process.stderr.write(`${line}
65
65
  `);