deepline 0.3.339 → 0.3.341

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 (95) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +20 -2
  3. package/dist/cli/auth-R7MYOAIT.js +31 -0
  4. package/dist/cli/{auth-DLHLIJBP.mjs → auth-VIQ6WBU5.mjs} +4 -4
  5. package/dist/cli/{billing-MLOOWHEX.mjs → billing-7MIYVDBJ.mjs} +4 -4
  6. package/dist/cli/{billing-7UQXVLH2.js → billing-FW5TG3CQ.js} +71 -71
  7. package/dist/cli/{chunk-7CQBFUGN.mjs → chunk-24RQUGMX.mjs} +6 -6
  8. package/dist/cli/{chunk-6KKVUVA6.js → chunk-2DFZELZG.js} +225 -225
  9. package/dist/cli/{chunk-TJSLXGQ2.mjs → chunk-4LXK5CMK.mjs} +1 -1
  10. package/dist/cli/{chunk-G7DUWWKO.js → chunk-5GQQMICZ.js} +9 -9
  11. package/dist/cli/{chunk-JMKUKFQS.mjs → chunk-5RSBKWF6.mjs} +2 -2
  12. package/dist/cli/{chunk-CI6TSINO.js → chunk-7IT3B2BL.js} +8 -8
  13. package/dist/cli/{chunk-FC4X6GQI.mjs → chunk-7ZBSHTYB.mjs} +4 -4
  14. package/dist/cli/{chunk-S3WJ6LZJ.js → chunk-AFCZAA2Y.js} +8 -8
  15. package/dist/cli/{chunk-RKSYETCE.js → chunk-ASW2NN7E.js} +2 -2
  16. package/dist/cli/{chunk-OWNN6BDD.js → chunk-ATLE7AKN.js} +15 -15
  17. package/dist/cli/{chunk-FTV2LY4S.mjs → chunk-BX6GJWBS.mjs} +3 -3
  18. package/dist/cli/{chunk-OAQ3JR4F.js → chunk-FH6IVCYY.js} +48 -48
  19. package/dist/cli/{chunk-YSM3GVSU.mjs → chunk-IWSPBSV7.mjs} +1 -1
  20. package/dist/cli/{chunk-TOB6N2QF.mjs → chunk-KIGZU235.mjs} +2 -2
  21. package/dist/cli/{chunk-DOGZHHO5.js → chunk-LT33BWLY.js} +6 -6
  22. package/dist/cli/{chunk-2UGEF3HR.js → chunk-MGYI6JH2.js} +26 -26
  23. package/dist/cli/{chunk-RWPA6MGP.js → chunk-NUIPBZVP.js} +45 -45
  24. package/dist/cli/{chunk-2OJGKWOX.js → chunk-PIVZA4GI.js} +4 -4
  25. package/dist/cli/{chunk-35IBDQNW.mjs → chunk-TU3WZZG4.mjs} +5 -5
  26. package/dist/cli/{chunk-KGMWBR5S.mjs → chunk-TVNBP3CX.mjs} +1 -1
  27. package/dist/cli/{chunk-RI7LPAUP.mjs → chunk-U4VULGDJ.mjs} +2 -2
  28. package/dist/cli/{chunk-KSHINNFC.mjs → chunk-VO4RF766.mjs} +1 -1
  29. package/dist/cli/{chunk-ISV5JQ43.js → chunk-WQ5LPOFC.js} +60 -60
  30. package/dist/cli/{chunk-2HTS4ZMF.js → chunk-XQD53NOJ.js} +1 -1
  31. package/dist/cli/{chunk-G5KDPFKG.mjs → chunk-Y2BTWBO7.mjs} +1 -1
  32. package/dist/cli/{chunk-MIMOIQXH.mjs → chunk-ZK7BK7OD.mjs} +2 -2
  33. package/dist/cli/{client-NVSE7EBL.mjs → client-5FQFKJS3.mjs} +3 -3
  34. package/dist/cli/client-HTXSC666.js +20 -0
  35. package/dist/cli/{csv-FC2PSRSE.mjs → csv-J7CGFUZO.mjs} +3 -3
  36. package/dist/cli/{csv-L7MQDTXX.js → csv-X5GUUDBX.js} +12 -12
  37. package/dist/cli/{db-G5HO22EN.mjs → db-DXPCEPTU.mjs} +4 -4
  38. package/dist/cli/{db-7WOBHZBZ.js → db-SQXA3O74.js} +29 -29
  39. package/dist/cli/{describe-AWFEE2EE.js → describe-EQTSIVVZ.js} +15 -15
  40. package/dist/cli/{describe-KCUL54J3.mjs → describe-VHW7FVBJ.mjs} +8 -8
  41. package/dist/cli/{executions-MXEI32CR.js → executions-4XLP2D45.js} +6 -6
  42. package/dist/cli/{executions-TSEMNPMJ.mjs → executions-OSF7KBAM.mjs} +4 -4
  43. package/dist/cli/{feedback-EPVGGNT6.js → feedback-7EBKMWNP.js} +7 -7
  44. package/dist/cli/{feedback-R72V4O7H.mjs → feedback-HM4OG6GJ.mjs} +3 -3
  45. package/dist/cli/git-4VXVJGO6.js +23 -0
  46. package/dist/cli/{git-GVFRGXZI.mjs → git-LXIXK5ZP.mjs} +4 -4
  47. package/dist/cli/index.js +79 -79
  48. package/dist/cli/index.mjs +31 -31
  49. package/dist/cli/{legacy-noops-4QF2EUUO.mjs → legacy-noops-HEDDLUOF.mjs} +4 -4
  50. package/dist/cli/{legacy-noops-3Q4O5QJT.js → legacy-noops-O5TQI3GH.js} +7 -7
  51. package/dist/cli/{monitors-RKV3XM5P.js → monitors-334IBGT6.js} +85 -85
  52. package/dist/cli/{monitors-AWGYR66F.mjs → monitors-6EX3T2US.mjs} +4 -4
  53. package/dist/cli/{org-DTERGBF7.js → org-VWLMFKI7.js} +60 -60
  54. package/dist/cli/{org-YMHTIEYB.mjs → org-ZMKKQ5EY.mjs} +4 -4
  55. package/dist/cli/play-4OUTDB4O.js +153 -0
  56. package/dist/cli/{play-VRTGFHNX.mjs → play-CSMPSPXC.mjs} +7 -7
  57. package/dist/cli/{providers-VJJSRFOV.mjs → providers-PE4K7ZNQ.mjs} +4 -4
  58. package/dist/cli/{providers-WIKQGBZQ.js → providers-Z3F3M67Z.js} +7 -7
  59. package/dist/cli/{quickstart-BUXTOSWT.js → quickstart-BBO4ZMFA.js} +5 -5
  60. package/dist/cli/{quickstart-MJUJ3JM2.mjs → quickstart-P6Q5NLOI.mjs} +3 -3
  61. package/dist/cli/search-6MGGRBOO.js +26 -0
  62. package/dist/cli/{search-LAJ4V4OY.mjs → search-WLQSHUO5.mjs} +5 -5
  63. package/dist/cli/{secrets-UDB4XWHC.js → secrets-IITTIRV2.js} +13 -13
  64. package/dist/cli/{secrets-JGZRDC7K.mjs → secrets-JAYFSPQL.mjs} +4 -4
  65. package/dist/cli/{sessions-YO24QYTQ.js → sessions-EAWCTMCB.js} +5 -5
  66. package/dist/cli/{sessions-5BPLCV4K.mjs → sessions-XIGZKWJG.mjs} +4 -4
  67. package/dist/cli/{settings-YLWSKW7F.js → settings-S6CF5T6U.js} +74 -74
  68. package/dist/cli/{settings-RMHY4XMX.mjs → settings-XOZ3IVRT.mjs} +7 -7
  69. package/dist/cli/{setup-MVCAZC64.js → setup-PO6TJJ5P.js} +41 -41
  70. package/dist/cli/{setup-MWD2WOPN.mjs → setup-QGS4YTRD.mjs} +6 -6
  71. package/dist/cli/skills-2LS3SJP6.js +28 -0
  72. package/dist/cli/{skills-7XXKMWN3.mjs → skills-I6ZYMTOV.mjs} +4 -4
  73. package/dist/cli/tools-JEO4GEFK.js +40 -0
  74. package/dist/cli/{tools-BM22TL5A.mjs → tools-XLYFZCRO.mjs} +6 -6
  75. package/dist/cli/{update-BLLLZRDG.mjs → update-JTTZPF4K.mjs} +6 -6
  76. package/dist/cli/update-NYIWSIRQ.js +28 -0
  77. package/dist/cli/{workflow-EOMW666N.mjs → workflow-2R4X2YR5.mjs} +5 -5
  78. package/dist/cli/{workflow-WG6QFCFL.js → workflow-D2YLWJDP.js} +15 -15
  79. package/dist/index.js +6 -6
  80. package/dist/index.mjs +3 -3
  81. package/dist/install-integrity.json +74 -74
  82. package/dist/release.d.mts +1 -1
  83. package/dist/release.d.ts +1 -1
  84. package/dist/release.js +2 -2
  85. package/dist/release.mjs +1 -1
  86. package/dist/viewer/viewer.js +86 -11
  87. package/package.json +1 -1
  88. package/dist/cli/auth-M5OWKMLF.js +0 -31
  89. package/dist/cli/client-7RSITSKJ.js +0 -20
  90. package/dist/cli/git-FZN5IHKS.js +0 -23
  91. package/dist/cli/play-F7ZUV3HE.js +0 -153
  92. package/dist/cli/search-5MYDHDTY.js +0 -26
  93. package/dist/cli/skills-D7IDTAKN.js +0 -28
  94. package/dist/cli/tools-BH4LHBHV.js +0 -40
  95. package/dist/cli/update-BF2BPMYK.js +0 -28
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-RI7LPAUP.mjs";
3
+ } from "./chunk-U4VULGDJ.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -15,7 +15,7 @@ var _chunkLA46MMTLjs = require('./chunk-LA46MMTL.js');
15
15
 
16
16
 
17
17
 
18
- var _chunk2OJGKWOXjs = require('./chunk-2OJGKWOX.js');
18
+ var _chunkPIVZA4GIjs = require('./chunk-PIVZA4GI.js');
19
19
 
20
20
 
21
21
 
@@ -167,7 +167,7 @@ async function queryCustomerDatabase(http, input) {
167
167
  if (error instanceof _chunk7P5AA3SNjs.DeeplineError && (_optionalChain([error, 'access', _2 => _2.code, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("NETWORK_")]) || // Older API readers return PostgreSQL errors as HTTP 400, including
168
168
  // lost connections and explicitly unknown transaction resolution.
169
169
  /^08[A-Z0-9]{3}$/.test(_nullishCoalesce(error.code, () => ( ""))) || ["57P01", "57P02", "57P03"].includes(_nullishCoalesce(error.code, () => ( ""))) || error.statusCode === 408 || (_nullishCoalesce(error.statusCode, () => ( 0))) >= 500)) {
170
- throw new (0, _chunk2OJGKWOXjs.CustomerDbQueryOutcomeUnknownError)(
170
+ throw new (0, _chunkPIVZA4GIjs.CustomerDbQueryOutcomeUnknownError)(
171
171
  error,
172
172
  plan.request.body.operation_key
173
173
  );
@@ -175,7 +175,7 @@ async function queryCustomerDatabase(http, input) {
175
175
  throw error;
176
176
  }
177
177
  if (!result || typeof result !== "object" || Array.isArray(result) || typeof result.command !== "string" || !Array.isArray(result.columns) || !Array.isArray(result.rows) || typeof result.truncated !== "boolean" || result.row_count !== null && (!Number.isSafeInteger(result.row_count) || result.row_count < 0) || !Number.isSafeInteger(result.row_count_returned) || result.row_count_returned < 0) {
178
- throw new (0, _chunk2OJGKWOXjs.CustomerDbQueryOutcomeUnknownError)(
178
+ throw new (0, _chunkPIVZA4GIjs.CustomerDbQueryOutcomeUnknownError)(
179
179
  new (0, _chunk7P5AA3SNjs.DeeplineError)(
180
180
  "The SQL response did not contain a valid result.",
181
181
  200,
@@ -186,7 +186,7 @@ async function queryCustomerDatabase(http, input) {
186
186
  }
187
187
  const operation = result.operation;
188
188
  if (input.operationKey !== void 0 && (!operation || operation.operation_key !== input.operationKey || !Number.isSafeInteger(operation.completed_at_ms) || operation.completed_at_ms < 0 || !["executed", "operation_recovery"].includes(operation.source))) {
189
- throw new (0, _chunk2OJGKWOXjs.CustomerDbQueryOutcomeUnknownError)(
189
+ throw new (0, _chunkPIVZA4GIjs.CustomerDbQueryOutcomeUnknownError)(
190
190
  new (0, _chunk7P5AA3SNjs.DeeplineError)(
191
191
  "The server did not confirm the original atomic SQL operation.",
192
192
  200,
@@ -2875,8 +2875,8 @@ function runtimeSelectionHeaders(runtime) {
2875
2875
  }
2876
2876
  const receivers = _optionalChain([process, 'access', _102 => _102.env, 'access', _103 => _103.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _104 => _104.trim, 'call', _105 => _105()]);
2877
2877
  return {
2878
- [_chunk2OJGKWOXjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2879
- ...receivers ? { [_chunk2OJGKWOXjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2878
+ [_chunkPIVZA4GIjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2879
+ ...receivers ? { [_chunkPIVZA4GIjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2880
2880
  };
2881
2881
  }
2882
2882
  function isolatedCiRuntimeEventReadHeaders() {
@@ -2892,7 +2892,7 @@ function isolatedCiRuntimeEventReadHeaders() {
2892
2892
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
2893
2893
  );
2894
2894
  }
2895
- return { [_chunk2OJGKWOXjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2895
+ return { [_chunkPIVZA4GIjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2896
2896
  }
2897
2897
  function normalizeTestPolicyOverrides(value, source) {
2898
2898
  if (value && typeof value === "object" && !Array.isArray(value)) {
@@ -3182,8 +3182,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
3182
3182
  * @throws {@link ConfigError} if no API key can be resolved from any source.
3183
3183
  */
3184
3184
  constructor(options) {
3185
- this.config = _chunk2OJGKWOXjs.resolveConfig.call(void 0, options);
3186
- this.http = new (0, _chunk2OJGKWOXjs.HttpClient)(this.config);
3185
+ this.config = _chunkPIVZA4GIjs.resolveConfig.call(void 0, options);
3186
+ this.http = new (0, _chunkPIVZA4GIjs.HttpClient)(this.config);
3187
3187
  this.toolCalls = new ToolCalls(
3188
3188
  this.http,
3189
3189
  this.config.timeout,
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
3
  printCommandEnvelope
4
- } from "./chunk-YSM3GVSU.mjs";
4
+ } from "./chunk-IWSPBSV7.mjs";
5
5
  import {
6
6
  agentSessionIdFromEnvironment
7
- } from "./chunk-KSHINNFC.mjs";
7
+ } from "./chunk-VO4RF766.mjs";
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
  import {
@@ -1,21 +1,21 @@
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 _chunkG7DUWWKOjs = require('./chunk-G7DUWWKO.js');
3
+ var _chunk5GQQMICZjs = require('./chunk-5GQQMICZ.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkDOGZHHO5js = require('./chunk-DOGZHHO5.js');
7
+ var _chunkLT33BWLYjs = require('./chunk-LT33BWLY.js');
8
8
 
9
9
 
10
10
 
11
- var _chunk2OJGKWOXjs = require('./chunk-2OJGKWOX.js');
11
+ var _chunkPIVZA4GIjs = require('./chunk-PIVZA4GI.js');
12
12
 
13
13
  // src/cli/search-ref.ts
14
14
  var _fs = require('fs');
15
15
  var _path = require('path');
16
16
  var SEARCH_REF_TTL_MS = 15 * 6e4;
17
17
  function lastSearchPath() {
18
- return _path.join.call(void 0, _chunk2OJGKWOXjs.sdkCliStateDirPath.call(void 0, _chunk2OJGKWOXjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
18
+ return _path.join.call(void 0, _chunkPIVZA4GIjs.sdkCliStateDirPath.call(void 0, _chunkPIVZA4GIjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
19
19
  }
20
20
  function rememberSearchRef(searchRef) {
21
21
  try {
@@ -127,7 +127,7 @@ function searchRow(item) {
127
127
  }
128
128
  function renderSearchResults(result) {
129
129
  if (result.results.length === 0)
130
- return _chunkDOGZHHO5js.renderCommandEnvelopeText.call(void 0, result);
130
+ return _chunkLT33BWLYjs.renderCommandEnvelopeText.call(void 0, result);
131
131
  const rows = result.results.map(searchRow);
132
132
  const kinds = new Set(rows.map((row) => row.kind));
133
133
  const onlyTools = kinds.size === 1 && kinds.has("tool");
@@ -144,7 +144,7 @@ function renderSearchResults(result) {
144
144
  actions: _optionalChain([render, 'optionalAccess', _9 => _9.actions])
145
145
  };
146
146
  const followUps = _optionalChain([remaining, 'access', _10 => _10.sections, 'optionalAccess', _11 => _11.length]) || _optionalChain([remaining, 'access', _12 => _12.actions, 'optionalAccess', _13 => _13.length]) ? `
147
- ${_chunkDOGZHHO5js.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
147
+ ${_chunkLT33BWLYjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
148
148
  const notes = rows.flatMap(
149
149
  (row) => row.notes.map((note) => ` ${row.id}: ${note}`)
150
150
  );
@@ -224,7 +224,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
224
224
  console.error(USAGE);
225
225
  return 1;
226
226
  }
227
- const { search_ref: searchRef, ...result } = await new (0, _chunkG7DUWWKOjs.DeeplineClient)().search({
227
+ const { search_ref: searchRef, ...result } = await new (0, _chunk5GQQMICZjs.DeeplineClient)().search({
228
228
  query,
229
229
  types,
230
230
  exclude,
@@ -238,7 +238,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
238
238
  });
239
239
  if (searchRef) rememberSearchRef(searchRef);
240
240
  pointAtDescribe(result);
241
- _chunkDOGZHHO5js.printCommandEnvelope.call(void 0, result, {
241
+ _chunkLT33BWLYjs.printCommandEnvelope.call(void 0, result, {
242
242
  json: options.json === true,
243
243
  text: renderSearchResults(result)
244
244
  });
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-TJSLXGQ2.mjs";
4
+ } from "./chunk-4LXK5CMK.mjs";
5
5
  import {
6
6
  resolveShellSpawn,
7
7
  runSkillsCommand
8
- } from "./chunk-RI7LPAUP.mjs";
8
+ } from "./chunk-U4VULGDJ.mjs";
9
9
  import {
10
10
  printCommandEnvelope
11
- } from "./chunk-YSM3GVSU.mjs";
11
+ } from "./chunk-IWSPBSV7.mjs";
12
12
  import {
13
13
  autoDetectBaseUrl
14
- } from "./chunk-KSHINNFC.mjs";
14
+ } from "./chunk-VO4RF766.mjs";
15
15
 
16
16
  // src/cli/commands/update.ts
17
17
  import { spawn, spawnSync } from "child_process";
@@ -1,10 +1,10 @@
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 _chunkDOGZHHO5js = require('./chunk-DOGZHHO5.js');
4
+ var _chunkLT33BWLYjs = require('./chunk-LT33BWLY.js');
5
5
 
6
6
 
7
- var _chunk2OJGKWOXjs = require('./chunk-2OJGKWOX.js');
7
+ var _chunkPIVZA4GIjs = require('./chunk-PIVZA4GI.js');
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
 
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
139
139
  const newestFirst = listSessionFiles(agent).sort(
140
140
  (a, b) => b.mtimeMs - a.mtimeMs
141
141
  );
142
- const sessionId = _chunk2OJGKWOXjs.agentSessionIdFromEnvironment.call(void 0, );
142
+ const sessionId = _chunkPIVZA4GIjs.agentSessionIdFromEnvironment.call(void 0, );
143
143
  const cwd = process.cwd();
144
144
  return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(newestFirst.find((candidate) => candidate.sessionId === sessionId), () => ( newestFirst.find(
145
145
  (candidate) => sessionStartedInDirectory(candidate, cwd)
@@ -448,7 +448,7 @@ function buildSessionUploadContent(raw) {
448
448
  return { encodedContent: encoded, needsChunking: true };
449
449
  }
450
450
  async function uploadPayload(path, payload) {
451
- const { http } = _chunkDOGZHHO5js.getAuthedHttpClient.call(void 0, );
451
+ const { http } = _chunkLT33BWLYjs.getAuthedHttpClient.call(void 0, );
452
452
  return await http.post(path, payload);
453
453
  }
454
454
  async function uploadChunkedSessions(sessions, options) {
@@ -481,7 +481,7 @@ async function uploadChunkedSessions(sessions, options) {
481
481
  ...options.rating ? { rating: options.rating } : {}
482
482
  });
483
483
  const sessionIds = sessions.map((session) => session.sessionId);
484
- _chunkDOGZHHO5js.printCommandEnvelope.call(void 0,
484
+ _chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
485
485
  {
486
486
  ...response,
487
487
  ok: true,
@@ -513,7 +513,7 @@ async function handleSessionsSend(options) {
513
513
  filename: _path.basename.call(void 0, filePath),
514
514
  ...rating ? { rating } : {}
515
515
  });
516
- _chunkDOGZHHO5js.printCommandEnvelope.call(void 0,
516
+ _chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
517
517
  {
518
518
  ...response2,
519
519
  ok: true,
@@ -563,7 +563,7 @@ async function handleSessionsSend(options) {
563
563
  ...rating ? { rating } : {}
564
564
  });
565
565
  const sessionIds = built.map((session) => session.sessionId);
566
- _chunkDOGZHHO5js.printCommandEnvelope.call(void 0,
566
+ _chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
567
567
  {
568
568
  ...response,
569
569
  ok: true,
@@ -671,7 +671,7 @@ ${refreshMeta}
671
671
  </body>
672
672
  </html>`;
673
673
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
674
- _chunkDOGZHHO5js.printCommandEnvelope.call(void 0,
674
+ _chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
675
675
  {
676
676
  ok: true,
677
677
  file: outputPath,
@@ -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 _chunkISV5JQ43js = require('./chunk-ISV5JQ43.js');
3
+ var _chunkWQ5LPOFCjs = require('./chunk-WQ5LPOFC.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 = _chunkISV5JQ43js.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkWQ5LPOFCjs.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,17 +1,17 @@
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 _chunkRKSYETCEjs = require('./chunk-RKSYETCE.js');
4
+ var _chunkASW2NN7Ejs = require('./chunk-ASW2NN7E.js');
5
5
 
6
6
 
7
7
 
8
- var _chunkISV5JQ43js = require('./chunk-ISV5JQ43.js');
8
+ var _chunkWQ5LPOFCjs = require('./chunk-WQ5LPOFC.js');
9
9
 
10
10
 
11
- var _chunkDOGZHHO5js = require('./chunk-DOGZHHO5.js');
11
+ var _chunkLT33BWLYjs = require('./chunk-LT33BWLY.js');
12
12
 
13
13
 
14
- var _chunk2OJGKWOXjs = require('./chunk-2OJGKWOX.js');
14
+ var _chunkPIVZA4GIjs = require('./chunk-PIVZA4GI.js');
15
15
 
16
16
  // src/cli/commands/update.ts
17
17
  var _child_process = require('child_process');
@@ -489,7 +489,7 @@ function normalizedNpmPrefix(value) {
489
489
  }
490
490
  function resolveNpmGlobalPrefix(env) {
491
491
  try {
492
- const plan = _chunkISV5JQ43js.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
492
+ const plan = _chunkWQ5LPOFCjs.resolveShellSpawn.call(void 0, "npm", ["prefix", "-g"], process.platform, env);
493
493
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
494
494
  encoding: "utf8",
495
495
  env,
@@ -545,8 +545,8 @@ function resolveUpdatePlan(options = {}) {
545
545
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
546
546
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
547
547
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
548
- const npmVersion = options.npmVersion === void 0 ? _chunkRKSYETCEjs.readNpmVersion.call(void 0, env) : options.npmVersion;
549
- const npmGlobalInstallFlags = _chunkRKSYETCEjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
548
+ const npmVersion = options.npmVersion === void 0 ? _chunkASW2NN7Ejs.readNpmVersion.call(void 0, env) : options.npmVersion;
549
+ const npmGlobalInstallFlags = _chunkASW2NN7Ejs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
550
550
  const args = installPrefix ? [
551
551
  "install",
552
552
  "-g",
@@ -556,7 +556,7 @@ function resolveUpdatePlan(options = {}) {
556
556
  packageSpec
557
557
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
558
558
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
559
- _optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunk2OJGKWOXjs.autoDetectBaseUrl.call(void 0, )
559
+ _optionalChain([env, 'access', _18 => _18.DEEPLINE_HOST_URL, 'optionalAccess', _19 => _19.trim, 'call', _20 => _20()]) || _chunkPIVZA4GIjs.autoDetectBaseUrl.call(void 0, )
560
560
  );
561
561
  return {
562
562
  kind: "npm-global",
@@ -703,7 +703,7 @@ function sidecarInstallFailure(versionDir) {
703
703
  function runCommand(command, args, env = process.env) {
704
704
  return new Promise((resolveResult) => {
705
705
  let output = "";
706
- const plan = _chunkISV5JQ43js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
706
+ const plan = _chunkWQ5LPOFCjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
707
707
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
708
708
  stdio: ["inherit", "pipe", "pipe"],
709
709
  shell: plan.shell,
@@ -1079,14 +1079,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
1079
1079
  throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
1080
1080
  }
1081
1081
  async function runUpdateCommand(options, dependencies = {}) {
1082
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunk2OJGKWOXjs.autoDetectBaseUrl));
1082
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkPIVZA4GIjs.autoDetectBaseUrl));
1083
1083
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1084
1084
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1085
1085
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1086
1086
  const originalWrite = process.stdout.write.bind(process.stdout);
1087
1087
  process.stdout.write = (() => true);
1088
1088
  try {
1089
- const exitCode = await _chunkISV5JQ43js.runSkillsCommand.call(void 0, { json: true });
1089
+ const exitCode = await _chunkWQ5LPOFCjs.runSkillsCommand.call(void 0, { json: true });
1090
1090
  if (exitCode !== 0) {
1091
1091
  throw new Error(
1092
1092
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1157,11 +1157,11 @@ async function runUpdateCommand(options, dependencies = {}) {
1157
1157
  ]
1158
1158
  };
1159
1159
  if (options.json && !options.executeWithJson) {
1160
- _chunkDOGZHHO5js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1160
+ _chunkLT33BWLYjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1161
1161
  return 0;
1162
1162
  }
1163
1163
  if (options.printCommand) {
1164
- _chunkDOGZHHO5js.printCommandEnvelope.call(void 0,
1164
+ _chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
1165
1165
  {
1166
1166
  ...plan,
1167
1167
  render: {
@@ -1174,7 +1174,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1174
1174
  return 0;
1175
1175
  }
1176
1176
  if (plan.kind === "source" || plan.kind === "homebrew") {
1177
- _chunkDOGZHHO5js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1177
+ _chunkLT33BWLYjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1178
1178
  return 0;
1179
1179
  }
1180
1180
  stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
@@ -1204,7 +1204,7 @@ To retry with full installer output, run: deepline skills --json
1204
1204
  );
1205
1205
  }
1206
1206
  if (options.executeWithJson && options.json) {
1207
- _chunkDOGZHHO5js.printCommandEnvelope.call(void 0,
1207
+ _chunkLT33BWLYjs.printCommandEnvelope.call(void 0,
1208
1208
  {
1209
1209
  ok: true,
1210
1210
  pinnedVersion
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-G5KDPFKG.mjs";
3
+ } from "./chunk-Y2BTWBO7.mjs";
4
4
  import {
5
5
  printCommandEnvelope,
6
6
  renderCommandEnvelopeText
7
- } from "./chunk-YSM3GVSU.mjs";
7
+ } from "./chunk-IWSPBSV7.mjs";
8
8
  import {
9
9
  resolveConfig,
10
10
  sdkCliStateDirPath
11
- } from "./chunk-KSHINNFC.mjs";
11
+ } from "./chunk-VO4RF766.mjs";
12
12
 
13
13
  // src/cli/search-ref.ts
14
14
  import { mkdirSync, readFileSync, writeFileSync } from "fs";