deepline 0.3.372 → 0.3.373

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 (113) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/plays/email-status.ts +95 -0
  3. package/dist/bundling-sources/shared_libs/plays/extractor-targets.ts +14 -0
  4. package/dist/bundling-sources/shared_libs/plays/field-catalog.ts +253 -0
  5. package/dist/bundling-sources/shared_libs/plays/tool-result-types.ts +2 -0
  6. package/dist/cli/{auth-ODSACXLF.mjs → auth-7BMCDCRH.mjs} +4 -4
  7. package/dist/cli/auth-BWCNRUG3.js +33 -0
  8. package/dist/cli/{billing-4ERXY2DZ.js → billing-GKI7B4JF.js} +73 -73
  9. package/dist/cli/{billing-OPIOZLAN.mjs → billing-RZEHHMPU.mjs} +4 -4
  10. package/dist/cli/{chunk-E5UD3JDQ.js → chunk-3VN4FTE3.js} +289 -5
  11. package/dist/cli/{chunk-BVUGPOU3.mjs → chunk-6JCVL7CE.mjs} +2 -2
  12. package/dist/cli/{chunk-RJ7JJMQO.js → chunk-BM47AKUZ.js} +266 -254
  13. package/dist/cli/{chunk-DM5QUZJR.js → chunk-CLEB5KUZ.js} +1 -1
  14. package/dist/cli/{chunk-AQFA7HMN.js → chunk-D2CZ4Y5G.js} +15 -15
  15. package/dist/cli/{chunk-3GK3SH3G.mjs → chunk-E6BZWURC.mjs} +200 -13
  16. package/dist/cli/{chunk-RUYZAREB.js → chunk-E7MGPPM5.js} +9 -9
  17. package/dist/cli/{chunk-DONL233W.mjs → chunk-ECA6NQYL.mjs} +4 -4
  18. package/dist/cli/{chunk-GZQKUFM5.js → chunk-EYXSAB7O.js} +26 -26
  19. package/dist/cli/{chunk-MIMV5LTU.mjs → chunk-HNLXC5BP.mjs} +1 -1
  20. package/dist/cli/{chunk-6MDAGRZP.js → chunk-IHQQNWU4.js} +2 -2
  21. package/dist/cli/{chunk-FGHRRJ3D.mjs → chunk-IUYKSTWB.mjs} +1 -1
  22. package/dist/cli/{chunk-VVFH745L.js → chunk-JHUMUIU6.js} +6 -6
  23. package/dist/cli/{chunk-BFLPCGOR.mjs → chunk-JP2YA3AV.mjs} +1 -1
  24. package/dist/cli/{chunk-ML2ZY7YD.js → chunk-ND4BVWWZ.js} +4 -4
  25. package/dist/cli/{chunk-EFJL5FCU.js → chunk-NVZAZGHA.js} +8 -8
  26. package/dist/cli/{chunk-IUWPC5K6.js → chunk-ORBVXCTL.js} +50 -50
  27. package/dist/cli/{chunk-JAERLCMH.mjs → chunk-P5JPGZNI.mjs} +1 -1
  28. package/dist/cli/{chunk-KC2YOJTU.mjs → chunk-PZ26EKNC.mjs} +319 -115
  29. package/dist/cli/{chunk-U3W7E5WT.mjs → chunk-QSV76EMO.mjs} +27 -15
  30. package/dist/cli/{chunk-4LIUZ4QR.mjs → chunk-R6TPSZLN.mjs} +2 -2
  31. package/dist/cli/{chunk-N5TPMNTT.js → chunk-S5OTS6H5.js} +8 -8
  32. package/dist/cli/{chunk-XSPAI6MF.mjs → chunk-TB73PXE3.mjs} +2 -2
  33. package/dist/cli/{chunk-D6O3NJHX.js → chunk-W3H422KP.js} +60 -60
  34. package/dist/cli/{chunk-WJWO74MM.js → chunk-XJYUQBHY.js} +390 -186
  35. package/dist/cli/{chunk-3CTB7V5F.mjs → chunk-XMME4SCK.mjs} +2 -2
  36. package/dist/cli/{chunk-2RC5JQ3C.mjs → chunk-Y32GUTEN.mjs} +1 -1
  37. package/dist/cli/{chunk-JB6ERQUV.mjs → chunk-Y6VOGHF2.mjs} +284 -0
  38. package/dist/cli/{chunk-5HYD3GMS.mjs → chunk-YHHY2YHK.mjs} +3 -3
  39. package/dist/cli/{chunk-2JRRXXTA.js → chunk-YPVTQRUM.js} +201 -14
  40. package/dist/cli/{client-KF2J754U.mjs → client-FO6LMHT4.mjs} +3 -3
  41. package/dist/cli/client-KAWK7FJR.js +20 -0
  42. package/dist/cli/{csv-UL3MCD5D.mjs → csv-3FNCVMWA.mjs} +3 -3
  43. package/dist/cli/{csv-UJ3M7NFP.js → csv-NFQYQWWO.js} +12 -12
  44. package/dist/cli/{db-444XYOTV.js → db-CTLGRV3X.js} +29 -29
  45. package/dist/cli/{db-SIOWA63T.mjs → db-VA7HULGR.mjs} +4 -4
  46. package/dist/cli/{describe-GI5GHAKO.mjs → describe-GXGRMP2M.mjs} +46 -17
  47. package/dist/cli/{describe-RRBESS3S.js → describe-IUHOEPKY.js} +61 -32
  48. package/dist/cli/{executions-ERXZUOL5.js → executions-DSK3HRPU.js} +6 -6
  49. package/dist/cli/{executions-4YDP6BXI.mjs → executions-OZQDZQIK.mjs} +4 -4
  50. package/dist/cli/{feedback-3M7D7DZQ.js → feedback-KTMLMWKV.js} +7 -7
  51. package/dist/cli/{feedback-CPWQL5LU.mjs → feedback-ZOY7R4JD.mjs} +3 -3
  52. package/dist/cli/git-5P5FLEUC.js +23 -0
  53. package/dist/cli/{git-XN6C3TJZ.mjs → git-FIOI4IA2.mjs} +4 -4
  54. package/dist/cli/index.js +81 -81
  55. package/dist/cli/index.mjs +32 -32
  56. package/dist/cli/{legacy-noops-KXQ6TFFL.mjs → legacy-noops-KQZWSABN.mjs} +4 -4
  57. package/dist/cli/{legacy-noops-5XDGOFWH.js → legacy-noops-WXAYRQMQ.js} +7 -7
  58. package/dist/cli/{monitors-KH22PDOC.js → monitors-LPUCHRNJ.js} +85 -85
  59. package/dist/cli/{monitors-33IU5JR6.mjs → monitors-VHNWIF4V.mjs} +4 -4
  60. package/dist/cli/{org-X4NSLQG5.js → org-GWHWBCMD.js} +64 -64
  61. package/dist/cli/{org-MHYMWUEP.mjs → org-UW7NPGEY.mjs} +4 -4
  62. package/dist/cli/play-EVBIC7Z5.js +155 -0
  63. package/dist/cli/{play-LCZKHKW2.mjs → play-FNM2E66T.mjs} +8 -8
  64. package/dist/cli/{providers-J6LWCF5R.js → providers-6D6R3PWX.js} +7 -7
  65. package/dist/cli/{providers-L5FJTSEA.mjs → providers-XAZMYDWS.mjs} +4 -4
  66. package/dist/cli/{quickstart-OOPFA4MX.js → quickstart-HBUWBVH6.js} +5 -5
  67. package/dist/cli/{quickstart-NE3BTWGL.mjs → quickstart-OK65PGZL.mjs} +3 -3
  68. package/dist/cli/search-6ZY2XWP2.js +26 -0
  69. package/dist/cli/{search-DBXOEOIE.mjs → search-XY6JOTS2.mjs} +5 -5
  70. package/dist/cli/{secrets-WPMU7UBD.js → secrets-6CYCPK7T.js} +13 -13
  71. package/dist/cli/{secrets-U2MLWZH2.mjs → secrets-W2LDLU2W.mjs} +4 -4
  72. package/dist/cli/{sessions-YYZ3UJDS.js → sessions-GOYEKNTJ.js} +5 -5
  73. package/dist/cli/{sessions-WYNC4AUE.mjs → sessions-JAX7PGXU.mjs} +4 -4
  74. package/dist/cli/{settings-FQZSHFC6.mjs → settings-OACUQOCM.mjs} +7 -7
  75. package/dist/cli/{settings-WQDFX3X6.js → settings-QMFYFCT7.js} +74 -74
  76. package/dist/cli/{setup-JKYJT35S.mjs → setup-2KA5TZBZ.mjs} +6 -6
  77. package/dist/cli/{setup-DKYVNDTM.js → setup-36VOOGVA.js} +41 -41
  78. package/dist/cli/skills-6GPIEPTP.js +28 -0
  79. package/dist/cli/{skills-VHVCJJJY.mjs → skills-QY4BX5ZX.mjs} +4 -4
  80. package/dist/cli/tools-RTECP4WT.js +40 -0
  81. package/dist/cli/{tools-E23PU7KM.mjs → tools-UCB2QRVC.mjs} +8 -8
  82. package/dist/cli/{update-4A4VU6CW.mjs → update-327MHUO4.mjs} +6 -6
  83. package/dist/cli/update-WR65EHBN.js +28 -0
  84. package/dist/cli/{workflow-WB2USWAA.js → workflow-G7BU54KW.js} +15 -15
  85. package/dist/cli/{workflow-2ZR2ECTG.mjs → workflow-HJN4GA5A.mjs} +5 -5
  86. package/dist/{client-Cw0e2Uec.d.mts → client-Cn-txrXv.d.mts} +1 -1
  87. package/dist/{client-CwdiawoG.d.ts → client-fPoIN-3V.d.ts} +1 -1
  88. package/dist/{compiler-manifest-DgdW0q0b.d.mts → compiler-manifest-CY2v8ab0.d.mts} +2 -0
  89. package/dist/{compiler-manifest-DgdW0q0b.d.ts → compiler-manifest-CY2v8ab0.d.ts} +2 -0
  90. package/dist/{index-C3nQQTI-.d.mts → index-B9fBZH1g.d.mts} +1 -1
  91. package/dist/{index-CEYQAfS0.d.ts → index-BZ6uzZJl.d.ts} +1 -1
  92. package/dist/index.d.mts +5 -5
  93. package/dist/index.d.ts +5 -5
  94. package/dist/index.js +79 -249
  95. package/dist/index.mjs +10 -180
  96. package/dist/install-integrity.json +85 -84
  97. package/dist/plays/bundle-play-file.d.mts +3 -3
  98. package/dist/plays/bundle-play-file.d.ts +3 -3
  99. package/dist/plays/run-request.d.mts +2 -2
  100. package/dist/plays/run-request.d.ts +2 -2
  101. package/dist/release.d.mts +1 -1
  102. package/dist/release.d.ts +1 -1
  103. package/dist/release.js +2 -2
  104. package/dist/release.mjs +1 -1
  105. package/package.json +1 -1
  106. package/dist/cli/auth-4SXMV3CD.js +0 -33
  107. package/dist/cli/client-UUNLXOHF.js +0 -20
  108. package/dist/cli/git-ITSCNUVB.js +0 -23
  109. package/dist/cli/play-4QRPOBWW.js +0 -155
  110. package/dist/cli/search-UGQDBP76.js +0 -26
  111. package/dist/cli/skills-VBQMXDAX.js +0 -28
  112. package/dist/cli/tools-ACEJZMJD.js +0 -40
  113. package/dist/cli/update-V5KMYHVE.js +0 -28
@@ -2,7 +2,7 @@ import {
2
2
  addDescribeOptions,
3
3
  recordPlayTermination,
4
4
  schemaFields
5
- } from "./chunk-3GK3SH3G.mjs";
5
+ } from "./chunk-E6BZWURC.mjs";
6
6
  import {
7
7
  shellQuote
8
8
  } from "./chunk-OVDNJAJN.mjs";
@@ -19,11 +19,11 @@ import {
19
19
  } from "./chunk-EDWJY6T4.mjs";
20
20
  import {
21
21
  registerDeprecatedSearchCommand
22
- } from "./chunk-5HYD3GMS.mjs";
22
+ } from "./chunk-YHHY2YHK.mjs";
23
23
  import {
24
24
  handleDeploymentGet,
25
25
  handleDeploymentsList
26
- } from "./chunk-XSPAI6MF.mjs";
26
+ } from "./chunk-TB73PXE3.mjs";
27
27
  import {
28
28
  pinLocalPlayImports,
29
29
  planLocalPlayExecution
@@ -42,7 +42,7 @@ import {
42
42
  normalizeRunEventOperationRequest,
43
43
  parseLogLevel,
44
44
  playInputExampleArgs
45
- } from "./chunk-2RC5JQ3C.mjs";
45
+ } from "./chunk-Y32GUTEN.mjs";
46
46
  import {
47
47
  CSV_DATA_INPUT_KEY,
48
48
  buildNamedPlayRunRequest,
@@ -75,10 +75,10 @@ import {
75
75
  printJsonError,
76
76
  renderCommandEnvelopeText,
77
77
  shouldEmitJson
78
- } from "./chunk-MIMV5LTU.mjs";
78
+ } from "./chunk-HNLXC5BP.mjs";
79
79
  import {
80
80
  fetchWithDeploymentProtection
81
- } from "./chunk-FGHRRJ3D.mjs";
81
+ } from "./chunk-IUYKSTWB.mjs";
82
82
  import {
83
83
  DeeplineError
84
84
  } from "./chunk-NXGCO4JB.mjs";
@@ -10305,9 +10305,7 @@ function buildRunNextCommands(status) {
10305
10305
  const exportDatasetCmds = Array.isArray(actions2.exportDatasetCmds) ? actions2.exportDatasetCmds : !status.package && extractCanonicalRowsInfo(status) ? [`deepline runs export ${runId} --out output.csv`] : [];
10306
10306
  const commands = {
10307
10307
  get: String(actions2.getRunCmd ?? `deepline runs get ${runId}`),
10308
- full: String(
10309
- actions2.getFullRunCmd ?? `deepline runs get ${runId} --full`
10310
- ),
10308
+ full: String(actions2.getFullRunCmd ?? `deepline runs get ${runId} --full`),
10311
10309
  ...exportDatasetCmds.length === 1 ? { export: String(exportDatasetCmds[0]) } : {},
10312
10310
  logs: String(
10313
10311
  !status.package ? `deepline runs logs ${runId} --out run.log` : actions2.getLogsCmd ?? `deepline runs logs ${runId} --limit 100`
@@ -12297,9 +12295,7 @@ function formatActiveRunConflictError(input) {
12297
12295
  ` active: ${runId}${status ? ` status=${status}` : ""}${startedAt ? ` startedAt=${startedAt}` : ""}`
12298
12296
  );
12299
12297
  lines.push(` get: deepline runs get ${runId}`);
12300
- lines.push(
12301
- ` stop: deepline runs stop ${runId} --reason "stale lock"`
12302
- );
12298
+ lines.push(` stop: deepline runs stop ${runId} --reason "stale lock"`);
12303
12299
  }
12304
12300
  lines.push(
12305
12301
  ` rerun: start another run with the same deepline plays run command`
@@ -15331,6 +15327,18 @@ function describedPlay(play) {
15331
15327
  const reference = formatPlayListReference(play);
15332
15328
  const starter = play.cloneEditStarter ?? buildCloneEditStarter(play);
15333
15329
  const csv = play.csvInput ?? {};
15330
+ const csvField2 = typeof csv.inputField === "string" ? csv.inputField : "csv";
15331
+ const alongside = /* @__PURE__ */ new Set([
15332
+ csvField2,
15333
+ "columns",
15334
+ ...Array.isArray(csv.runLevelControlFields) ? csv.runLevelControlFields.map(String) : []
15335
+ ]);
15336
+ const declared = schemaFields(play.inputSchema).map((field) => field.name);
15337
+ const rowNames = schemaFields(csv.rowInputSchema).map((field) => field.name);
15338
+ const replaced = play.csvInput ? (rowNames.length > 0 ? rowNames : declared).filter(
15339
+ (name) => declared.includes(name) && !alongside.has(name)
15340
+ ) : [];
15341
+ const exclusive = replaced.length ? { field: csvField2, with: replaced } : void 0;
15334
15342
  const headers = isRecord2(csv.defaultColumns) ? csv.defaultColumns : {};
15335
15343
  const rowInputs = schemaFields(csv.rowInputSchema).map((field) => {
15336
15344
  const header = [headers[field.name]].flat().filter((name) => name && name !== field.name).join(" or ");
@@ -15361,7 +15369,10 @@ function describedPlay(play) {
15361
15369
  // A CSV play's run command is built by the server around its columns.
15362
15370
  ...play.csvInput ? { cli: play.runCommand } : {}
15363
15371
  },
15364
- ...starter ? { source: starter.command } : {}
15372
+ ...starter ? { source: starter.command } : {},
15373
+ ...exclusive ? { exclusive } : {},
15374
+ // A prebuilt's cost is what its recent runs were charged; there is no rate.
15375
+ ...play.observedCost?.displayText ? { cost: play.observedCost.displayText } : {}
15365
15376
  };
15366
15377
  }
15367
15378
  function printPlayDescription(play) {
@@ -16483,13 +16494,14 @@ Examples:
16483
16494
  process.exitCode = await ownView();
16484
16495
  return;
16485
16496
  }
16486
- const { describeAnything } = await import("./describe-GI5GHAKO.mjs");
16497
+ const { describeAnything } = await import("./describe-GXGRMP2M.mjs");
16487
16498
  process.exitCode = await describeAnything(
16488
16499
  name,
16489
16500
  {
16490
16501
  ...options,
16491
16502
  kinds: ["prebuilts", "custom"],
16492
- json: Boolean(options.json)
16503
+ json: Boolean(options.json),
16504
+ fullRecord: true
16493
16505
  },
16494
16506
  // An unknown play keeps this command's suggestions.
16495
16507
  ownView
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
3
  printCommandEnvelope
4
- } from "./chunk-MIMV5LTU.mjs";
4
+ } from "./chunk-HNLXC5BP.mjs";
5
5
  import {
6
6
  agentSessionIdFromEnvironment
7
- } from "./chunk-FGHRRJ3D.mjs";
7
+ } from "./chunk-IUYKSTWB.mjs";
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
  import {
@@ -1,14 +1,14 @@
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 _chunkRUYZAREBjs = require('./chunk-RUYZAREB.js');
3
+ var _chunkE7MGPPM5js = require('./chunk-E7MGPPM5.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkVVFH745Ljs = require('./chunk-VVFH745L.js');
7
+ var _chunkJHUMUIU6js = require('./chunk-JHUMUIU6.js');
8
8
 
9
9
 
10
10
 
11
- var _chunkML2ZY7YDjs = require('./chunk-ML2ZY7YD.js');
11
+ var _chunkND4BVWWZjs = require('./chunk-ND4BVWWZ.js');
12
12
 
13
13
  // src/cli/commands/search.ts
14
14
  var _commander = require('commander');
@@ -18,7 +18,7 @@ var _fs = require('fs');
18
18
  var _path = require('path');
19
19
  var SEARCH_REF_TTL_MS = 15 * 6e4;
20
20
  function lastSearchPath() {
21
- return _path.join.call(void 0, _chunkML2ZY7YDjs.sdkCliStateDirPath.call(void 0, _chunkML2ZY7YDjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
21
+ return _path.join.call(void 0, _chunkND4BVWWZjs.sdkCliStateDirPath.call(void 0, _chunkND4BVWWZjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
22
22
  }
23
23
  function rememberSearchRef(searchRef) {
24
24
  try {
@@ -259,7 +259,7 @@ function searchRow(item) {
259
259
  }
260
260
  function renderSearchResults(result) {
261
261
  if (result.results.length === 0)
262
- return _chunkVVFH745Ljs.renderCommandEnvelopeText.call(void 0, result);
262
+ return _chunkJHUMUIU6js.renderCommandEnvelopeText.call(void 0, result);
263
263
  const rows = result.results.map(searchRow);
264
264
  const kinds = new Set(rows.map((row) => row.kind));
265
265
  const onlyTools = kinds.size === 1 && kinds.has("tool");
@@ -283,7 +283,7 @@ function renderSearchResults(result) {
283
283
  actions: _optionalChain([render, 'optionalAccess', _11 => _11.actions])
284
284
  };
285
285
  const followUps = _optionalChain([remaining, 'access', _12 => _12.sections, 'optionalAccess', _13 => _13.length]) || _optionalChain([remaining, 'access', _14 => _14.actions, 'optionalAccess', _15 => _15.length]) ? `
286
- ${_chunkVVFH745Ljs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
286
+ ${_chunkJHUMUIU6js.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
287
287
  const notes = rows.flatMap(
288
288
  (row) => row.notes.map((note) => ` ${row.id}: ${note}`)
289
289
  );
@@ -360,7 +360,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
360
360
  console.error(USAGE);
361
361
  return 1;
362
362
  }
363
- const { search_ref: searchRef, ...result } = await new (0, _chunkRUYZAREBjs.DeeplineClient)().search({
363
+ const { search_ref: searchRef, ...result } = await new (0, _chunkE7MGPPM5js.DeeplineClient)().search({
364
364
  query,
365
365
  types,
366
366
  exclude,
@@ -374,7 +374,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
374
374
  });
375
375
  if (searchRef) rememberSearchRef(searchRef);
376
376
  pointAtDescribe(result);
377
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0, result, {
377
+ _chunkJHUMUIU6js.printCommandEnvelope.call(void 0, result, {
378
378
  json: options.json === true,
379
379
  text: renderSearchResults(result)
380
380
  });
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-MIMV5LTU.mjs";
5
+ } from "./chunk-HNLXC5BP.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-FGHRRJ3D.mjs";
8
+ } from "./chunk-IUYKSTWB.mjs";
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -3,7 +3,7 @@
3
3
  var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
4
4
 
5
5
 
6
- var _chunkVVFH745Ljs = require('./chunk-VVFH745L.js');
6
+ var _chunkJHUMUIU6js = require('./chunk-JHUMUIU6.js');
7
7
 
8
8
 
9
9
 
@@ -22,7 +22,7 @@ var _chunkVVFH745Ljs = require('./chunk-VVFH745L.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkML2ZY7YDjs = require('./chunk-ML2ZY7YD.js');
25
+ var _chunkND4BVWWZjs = require('./chunk-ND4BVWWZ.js');
26
26
 
27
27
 
28
28
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
@@ -123,7 +123,7 @@ function skillsSourceUrl(baseUrl) {
123
123
  function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
124
124
  const skillNames = Array.isArray(skillName) ? skillName : [skillName];
125
125
  const [firstSkillName, ...extraSkillNames] = skillNames;
126
- const agents = _nullishCoalesce(options.agents, () => ( _chunkML2ZY7YDjs.DEFAULT_SKILL_AGENTS));
126
+ const agents = _nullishCoalesce(options.agents, () => ( _chunkND4BVWWZjs.DEFAULT_SKILL_AGENTS));
127
127
  const values = {
128
128
  skills_index_url: skillsIndexUrl(baseUrl),
129
129
  skills_source_url: skillsSourceUrl(baseUrl),
@@ -199,7 +199,7 @@ function shouldSkipCompatibilityCheck() {
199
199
  return value === "1" || value === "true" || value === "yes";
200
200
  }
201
201
  function sdkCompatibilityCachePath(baseUrl, homeDir = _os.homedir.call(void 0, )) {
202
- return _path.join.call(void 0, _chunkML2ZY7YDjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
202
+ return _path.join.call(void 0, _chunkND4BVWWZjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
203
203
  }
204
204
  function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
205
205
  return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
@@ -207,9 +207,9 @@ function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
207
207
  function compatibilityCacheKey(baseUrl, command, skillsVersion) {
208
208
  return JSON.stringify({
209
209
  baseUrl: baseUrl.replace(/\/$/, ""),
210
- version: _chunkML2ZY7YDjs.SDK_VERSION,
211
- apiContract: _chunkML2ZY7YDjs.SDK_API_CONTRACT,
212
- apiMajor: _chunkML2ZY7YDjs.SDK_API_MAJOR,
210
+ version: _chunkND4BVWWZjs.SDK_VERSION,
211
+ apiContract: _chunkND4BVWWZjs.SDK_API_CONTRACT,
212
+ apiMajor: _chunkND4BVWWZjs.SDK_API_MAJOR,
213
213
  command: _optionalChain([command, 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]) || null,
214
214
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
215
215
  });
@@ -217,8 +217,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
217
217
  function legacyCompatibilityCacheKey(baseUrl, command) {
218
218
  return JSON.stringify({
219
219
  baseUrl: baseUrl.replace(/\/$/, ""),
220
- version: _chunkML2ZY7YDjs.SDK_VERSION,
221
- apiContract: _chunkML2ZY7YDjs.SDK_API_CONTRACT,
220
+ version: _chunkND4BVWWZjs.SDK_VERSION,
221
+ apiContract: _chunkND4BVWWZjs.SDK_API_CONTRACT,
222
222
  command: _optionalChain([command, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || null
223
223
  });
224
224
  }
@@ -311,7 +311,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
311
311
  );
312
312
  try {
313
313
  const url = new URL("/api/v2/sdk/compat", baseUrl);
314
- url.searchParams.set("version", _chunkML2ZY7YDjs.SDK_VERSION);
314
+ url.searchParams.set("version", _chunkND4BVWWZjs.SDK_VERSION);
315
315
  if (_optionalChain([options, 'access', _19 => _19.command, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()])) {
316
316
  url.searchParams.set("command", options.command.trim());
317
317
  }
@@ -324,13 +324,13 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
324
324
  const response = await fetch(url, {
325
325
  method: "GET",
326
326
  headers: {
327
- ..._chunkML2ZY7YDjs.deploymentProtectionHeaders.call(void 0, ),
328
- "User-Agent": `deepline-ts-sdk/${_chunkML2ZY7YDjs.SDK_VERSION}`,
329
- "X-Deepline-SDK-Version": _chunkML2ZY7YDjs.SDK_VERSION,
330
- "X-Deepline-API-Major": String(_chunkML2ZY7YDjs.SDK_API_MAJOR),
331
- "X-Deepline-API-Contract": _chunkML2ZY7YDjs.SDK_API_CONTRACT,
327
+ ..._chunkND4BVWWZjs.deploymentProtectionHeaders.call(void 0, ),
328
+ "User-Agent": `deepline-ts-sdk/${_chunkND4BVWWZjs.SDK_VERSION}`,
329
+ "X-Deepline-SDK-Version": _chunkND4BVWWZjs.SDK_VERSION,
330
+ "X-Deepline-API-Major": String(_chunkND4BVWWZjs.SDK_API_MAJOR),
331
+ "X-Deepline-API-Contract": _chunkND4BVWWZjs.SDK_API_CONTRACT,
332
332
  "X-Deepline-CLI-Update-Preferences": "1",
333
- ...options.catalog ? { Authorization: `Bearer ${_chunkML2ZY7YDjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {}
333
+ ...options.catalog ? { Authorization: `Bearer ${_chunkND4BVWWZjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {}
334
334
  },
335
335
  signal: controller.signal
336
336
  });
@@ -583,7 +583,7 @@ function buildEnvironmentContext() {
583
583
  node_version: process.version,
584
584
  runtime: "Node.js",
585
585
  hostname: _os.hostname.call(void 0, ),
586
- agent_runtime: _chunkML2ZY7YDjs.detectAgentRuntime.call(void 0, )
586
+ agent_runtime: _chunkND4BVWWZjs.detectAgentRuntime.call(void 0, )
587
587
  };
588
588
  for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
589
589
  const normalized = _optionalChain([process, 'access', _32 => _32.env, 'access', _33 => _33[key], 'optionalAccess', _34 => _34.trim, 'call', _35 => _35()]);
@@ -607,12 +607,12 @@ function failureReportHeaders(apiKey) {
607
607
  return {
608
608
  Authorization: `Bearer ${apiKey}`,
609
609
  "Content-Type": "application/json",
610
- "User-Agent": `deepline-ts-sdk/${_chunkML2ZY7YDjs.SDK_VERSION}`,
610
+ "User-Agent": `deepline-ts-sdk/${_chunkND4BVWWZjs.SDK_VERSION}`,
611
611
  "X-Deepline-Client-Family": "sdk",
612
612
  "X-Deepline-CLI-Family": "sdk",
613
- "X-Deepline-Agent-Runtime": _chunkML2ZY7YDjs.detectAgentRuntime.call(void 0, ),
614
- "X-Deepline-CLI-Version": _chunkML2ZY7YDjs.SDK_VERSION,
615
- "X-Deepline-SDK-Version": _chunkML2ZY7YDjs.SDK_VERSION
613
+ "X-Deepline-Agent-Runtime": _chunkND4BVWWZjs.detectAgentRuntime.call(void 0, ),
614
+ "X-Deepline-CLI-Version": _chunkND4BVWWZjs.SDK_VERSION,
615
+ "X-Deepline-SDK-Version": _chunkND4BVWWZjs.SDK_VERSION
616
616
  };
617
617
  }
618
618
  async function postFailureReport(input) {
@@ -640,7 +640,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
640
640
  if (isFailureReportingDisabled()) return false;
641
641
  let apiKey = "";
642
642
  try {
643
- apiKey = _chunkML2ZY7YDjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
643
+ apiKey = _chunkND4BVWWZjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
644
644
  } catch (e7) {
645
645
  return false;
646
646
  }
@@ -667,7 +667,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
667
667
  failure_code: failureCode2,
668
668
  failure_stage: failureStage,
669
669
  error_body: "Automatic Deepline skills installation failed.",
670
- cli_version: _chunkML2ZY7YDjs.SDK_VERSION,
670
+ cli_version: _chunkND4BVWWZjs.SDK_VERSION,
671
671
  context: {
672
672
  environment: buildEnvironmentContext(),
673
673
  skills_sync: {
@@ -787,7 +787,7 @@ function buildFailureReport(input) {
787
787
  failure_kind: failureKind,
788
788
  failure_code: code,
789
789
  failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
790
- cli_version: _chunkML2ZY7YDjs.SDK_VERSION,
790
+ cli_version: _chunkND4BVWWZjs.SDK_VERSION,
791
791
  context: {
792
792
  base_url: redactFailureText(input.baseUrl, 400),
793
793
  command_summary: sanitizeCommand(input.argv),
@@ -807,8 +807,8 @@ async function maybeReportSdkCliFailure(input) {
807
807
  if (isServerLoggedPlayRunStartFailure(input)) return false;
808
808
  const exitCode = resolvedExitCode(input);
809
809
  if (!shouldReport({ exitCode, error: input.error })) return false;
810
- const baseUrl = _chunkML2ZY7YDjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
811
- const apiKey = _chunkML2ZY7YDjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
810
+ const baseUrl = _chunkND4BVWWZjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
811
+ const apiKey = _chunkND4BVWWZjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
812
812
  if (!apiKey) return false;
813
813
  return postFailureReport({
814
814
  baseUrl,
@@ -829,25 +829,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
829
829
  var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
830
830
  var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
831
831
  function shouldSkipSkillsSync() {
832
- if (_chunkML2ZY7YDjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
832
+ if (_chunkND4BVWWZjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
833
833
  return true;
834
834
  }
835
835
  const value = _optionalChain([process, 'access', _56 => _56.env, 'access', _57 => _57.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _58 => _58.trim, 'call', _59 => _59(), 'access', _60 => _60.toLowerCase, 'call', _61 => _61()]);
836
836
  return value === "1" || value === "true" || value === "yes" || value === "on";
837
837
  }
838
838
  function unavailableSkillsNoticePath(baseUrl) {
839
- return _path.join.call(void 0, _chunkML2ZY7YDjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
839
+ return _path.join.call(void 0, _chunkND4BVWWZjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
840
840
  }
841
841
  var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
842
842
  var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
843
- var agentLeaseSegment = _chunkML2ZY7YDjs.skillsAgentPathSegment;
843
+ var agentLeaseSegment = _chunkND4BVWWZjs.skillsAgentPathSegment;
844
844
  function sortedLeaseAgents(agents) {
845
- const expanded = agents.includes("*") ? [...agents, ..._chunkML2ZY7YDjs.KNOWN_SKILL_AGENTS] : agents;
845
+ const expanded = agents.includes("*") ? [...agents, ..._chunkND4BVWWZjs.KNOWN_SKILL_AGENTS] : agents;
846
846
  return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
847
847
  }
848
848
  function inProgressSkillsSyncPath(baseUrl, agent) {
849
849
  return _path.join.call(void 0,
850
- _chunkML2ZY7YDjs.sdkCliStateDirPath.call(void 0, baseUrl),
850
+ _chunkND4BVWWZjs.sdkCliStateDirPath.call(void 0, baseUrl),
851
851
  `skills-sync-in-progress-${agentLeaseSegment(agent)}`
852
852
  );
853
853
  }
@@ -1006,7 +1006,7 @@ var SkillsStateUnavailableError = class extends Error {
1006
1006
  constructor(baseUrl, error) {
1007
1007
  const detail = error instanceof Error ? error.message : String(error);
1008
1008
  super(
1009
- `Could not save skills state in ${_chunkML2ZY7YDjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1009
+ `Could not save skills state in ${_chunkND4BVWWZjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1010
1010
  );
1011
1011
  this.name = "SkillsStateUnavailableError";
1012
1012
  }
@@ -1091,7 +1091,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
1091
1091
  }
1092
1092
  function deferredSkillsNoticePath(baseUrl, agents) {
1093
1093
  return _path.join.call(void 0,
1094
- _chunkML2ZY7YDjs.sdkCliStateDirPath.call(void 0, baseUrl),
1094
+ _chunkND4BVWWZjs.sdkCliStateDirPath.call(void 0, baseUrl),
1095
1095
  `skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
1096
1096
  );
1097
1097
  }
@@ -1125,8 +1125,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
1125
1125
  if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
1126
1126
  }
1127
1127
  function flushDeferredSkillsSyncNotices(baseUrl) {
1128
- if (shouldSkipSkillsSync() || _chunkML2ZY7YDjs.hasActivePluginSkills.call(void 0, )) return;
1129
- const agents = _chunkML2ZY7YDjs.resolveAutoSyncSkillAgents.call(void 0, );
1128
+ if (shouldSkipSkillsSync() || _chunkND4BVWWZjs.hasActivePluginSkills.call(void 0, )) return;
1129
+ const agents = _chunkND4BVWWZjs.resolveAutoSyncSkillAgents.call(void 0, );
1130
1130
  if (agents.length === 0) return;
1131
1131
  flushDeferredSkillsNotices(baseUrl, agents);
1132
1132
  }
@@ -1142,7 +1142,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
1142
1142
  }
1143
1143
  function failedSkillsSyncPath(baseUrl, agents) {
1144
1144
  return _path.join.call(void 0,
1145
- _chunkML2ZY7YDjs.sdkCliStateDirPath.call(void 0, baseUrl),
1145
+ _chunkND4BVWWZjs.sdkCliStateDirPath.call(void 0, baseUrl),
1146
1146
  `skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
1147
1147
  );
1148
1148
  }
@@ -1171,7 +1171,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
1171
1171
  if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
1172
1172
  writeMarkedSkillsSyncVersion(path, remoteVersion);
1173
1173
  const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
1174
- const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkML2ZY7YDjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1174
+ const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkND4BVWWZjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1175
1175
  const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _66 => _66.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
1176
1176
  notice(
1177
1177
  `Deepline agent skills are out of date, but ${explanation} To install manually, run:
@@ -1259,7 +1259,7 @@ function buildSdkSkillNames(v1SkillNames2) {
1259
1259
  return sortedUniqueSkillNames(v1SkillNames2);
1260
1260
  }
1261
1261
  function isDefaultAgentSet(agents) {
1262
- return agents.length === _chunkML2ZY7YDjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkML2ZY7YDjs.DEFAULT_SKILL_AGENTS[index]);
1262
+ return agents.length === _chunkND4BVWWZjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkND4BVWWZjs.DEFAULT_SKILL_AGENTS[index]);
1263
1263
  }
1264
1264
  function safeSkillFilePath(value) {
1265
1265
  if (typeof value !== "string" || !value) return false;
@@ -1456,7 +1456,7 @@ function probeInstallers(timeoutMs) {
1456
1456
  }
1457
1457
  function noInstallerProbePath(baseUrl) {
1458
1458
  return _path.join.call(void 0,
1459
- _chunkML2ZY7YDjs.sdkCliStateDirPath.call(void 0, baseUrl),
1459
+ _chunkND4BVWWZjs.sdkCliStateDirPath.call(void 0, baseUrl),
1460
1460
  "skills-sync-no-installer-unknown.json"
1461
1461
  );
1462
1462
  }
@@ -1535,7 +1535,7 @@ function temporarySkillsSyncSkipCommand() {
1535
1535
  function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
1536
1536
  return resolveShellSpawn(install.command, install.args, platform2);
1537
1537
  }
1538
- function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkML2ZY7YDjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1538
+ function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkND4BVWWZjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1539
1539
  const commands = [];
1540
1540
  const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
1541
1541
  if (probes.bunx === "available") {
@@ -1687,11 +1687,11 @@ function writeSdkSkillsStatusLine(line) {
1687
1687
  }
1688
1688
  async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1689
1689
  if (shouldSkipSkillsSync()) return;
1690
- const usingPluginSkills = _chunkML2ZY7YDjs.hasActivePluginSkills.call(void 0, );
1690
+ const usingPluginSkills = _chunkND4BVWWZjs.hasActivePluginSkills.call(void 0, );
1691
1691
  if (usingPluginSkills) {
1692
1692
  return;
1693
1693
  }
1694
- const agents = _chunkML2ZY7YDjs.resolveAutoSyncSkillAgents.call(void 0, );
1694
+ const agents = _chunkND4BVWWZjs.resolveAutoSyncSkillAgents.call(void 0, );
1695
1695
  if (options.mode === "detached" && agents.length > 0) {
1696
1696
  flushDeferredSkillsNotices(baseUrl, agents);
1697
1697
  }
@@ -1719,7 +1719,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1719
1719
  return;
1720
1720
  }
1721
1721
  try {
1722
- const localVersion = _chunkML2ZY7YDjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1722
+ const localVersion = _chunkND4BVWWZjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1723
1723
  const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
1724
1724
  needsUpdate: options.update.needs_update,
1725
1725
  remoteVersion: options.update.remote.version
@@ -1885,7 +1885,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1885
1885
  }
1886
1886
  }
1887
1887
  runLegacySkillsCleanup(agents);
1888
- if (!_chunkML2ZY7YDjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1888
+ if (!_chunkND4BVWWZjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1889
1889
  notice(
1890
1890
  "Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
1891
1891
  );
@@ -1944,7 +1944,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
1944
1944
  return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
1945
1945
  }
1946
1946
  function resolveLocalRoot() {
1947
- const target = _chunkML2ZY7YDjs.resolveProjectPinTarget.call(void 0, );
1947
+ const target = _chunkND4BVWWZjs.resolveProjectPinTarget.call(void 0, );
1948
1948
  if (!target.ok) {
1949
1949
  throw new Error(
1950
1950
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -1955,7 +1955,7 @@ function resolveLocalRoot() {
1955
1955
  return target.dir;
1956
1956
  }
1957
1957
  function detectSkillsAgents(input) {
1958
- const runtime = _nullishCoalesce(input.runtime, () => ( _chunkML2ZY7YDjs.detectAgentRuntime.call(void 0, )));
1958
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunkND4BVWWZjs.detectAgentRuntime.call(void 0, )));
1959
1959
  const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
1960
1960
  if (knownAgent) return [knownAgent];
1961
1961
  const roots = [
@@ -1970,7 +1970,7 @@ function detectSkillsAgents(input) {
1970
1970
  return detected.length > 0 ? detected : ["*"];
1971
1971
  }
1972
1972
  function skillsStatePathForScope(baseUrl, scope, root) {
1973
- return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkML2ZY7YDjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
1973
+ return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkND4BVWWZjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
1974
1974
  }
1975
1975
  function buildSkillsPlan(input) {
1976
1976
  const scopeArgs = input.scope === "global" ? ["--global"] : [];
@@ -2092,7 +2092,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2092
2092
  scope = normalizeScope(options.scope);
2093
2093
  root = scope === "local" ? resolveLocalRoot() : null;
2094
2094
  } catch (error) {
2095
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
2095
+ _chunkJHUMUIU6js.printCommandEnvelope.call(void 0,
2096
2096
  {
2097
2097
  ok: false,
2098
2098
  status: "failed",
@@ -2104,22 +2104,22 @@ async function runSkillsCommand(options, dependencies = {}) {
2104
2104
  );
2105
2105
  return 2;
2106
2106
  }
2107
- const baseUrl = _chunkML2ZY7YDjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
2107
+ const baseUrl = _chunkND4BVWWZjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
2108
2108
  const catalog = {
2109
2109
  skillNames: [...DEFAULT_SDK_SKILL_NAMES],
2110
- version: _chunkML2ZY7YDjs.SDK_VERSION
2110
+ version: _chunkND4BVWWZjs.SDK_VERSION
2111
2111
  };
2112
2112
  const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
2113
2113
  const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
2114
2114
  if (options.dryRun) {
2115
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
2115
+ _chunkJHUMUIU6js.printCommandEnvelope.call(void 0,
2116
2116
  { ok: true, status: "planned", dryRun: true, ...plan },
2117
2117
  { json: options.json }
2118
2118
  );
2119
2119
  return 0;
2120
2120
  }
2121
2121
  if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !hasFailedAutomaticSkillsSync(baseUrl, agents)) {
2122
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
2122
+ _chunkJHUMUIU6js.printCommandEnvelope.call(void 0,
2123
2123
  {
2124
2124
  ok: true,
2125
2125
  status: "current",
@@ -2154,7 +2154,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2154
2154
  .../* @__PURE__ */ new Set([...plan.skillNames, ...LEGACY_SKILL_NAMES_TO_REMOVE])
2155
2155
  ];
2156
2156
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
2157
- _chunkML2ZY7YDjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
2157
+ _chunkND4BVWWZjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
2158
2158
  ".deepline/",
2159
2159
  ...agentRoots.flatMap(
2160
2160
  (agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
@@ -2172,7 +2172,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2172
2172
  } };
2173
2173
  } catch (error) {
2174
2174
  if (!(error instanceof SkillsStateUnavailableError)) throw error;
2175
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
2175
+ _chunkJHUMUIU6js.printCommandEnvelope.call(void 0,
2176
2176
  {
2177
2177
  ok: false,
2178
2178
  status: "failed",
@@ -2188,7 +2188,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2188
2188
  return 5;
2189
2189
  }
2190
2190
  if (!lease) {
2191
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
2191
+ _chunkJHUMUIU6js.printCommandEnvelope.call(void 0,
2192
2192
  {
2193
2193
  ok: false,
2194
2194
  status: "failed",
@@ -2234,7 +2234,7 @@ async function runSkillsInstallWithLease(input) {
2234
2234
  throw new Error("Could not install the current Deepline skills.");
2235
2235
  }
2236
2236
  } catch (error) {
2237
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
2237
+ _chunkJHUMUIU6js.printCommandEnvelope.call(void 0,
2238
2238
  {
2239
2239
  ok: false,
2240
2240
  status: "failed",
@@ -2273,7 +2273,7 @@ async function runSkillsInstallWithLease(input) {
2273
2273
  {
2274
2274
  schemaVersion: 1,
2275
2275
  installedAt: (/* @__PURE__ */ new Date()).toISOString(),
2276
- cliVersion: _chunkML2ZY7YDjs.SDK_VERSION,
2276
+ cliVersion: _chunkND4BVWWZjs.SDK_VERSION,
2277
2277
  scope,
2278
2278
  agents,
2279
2279
  skillsVersion: plan.version,
@@ -2288,7 +2288,7 @@ async function runSkillsInstallWithLease(input) {
2288
2288
  if (scope === "global") {
2289
2289
  clearFailedAutomaticSkillsSync(baseUrl, agents);
2290
2290
  }
2291
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
2291
+ _chunkJHUMUIU6js.printCommandEnvelope.call(void 0,
2292
2292
  {
2293
2293
  ok: true,
2294
2294
  status: "complete",
@@ -2337,7 +2337,7 @@ Examples:
2337
2337
  ).action(async (options) => {
2338
2338
  const claim = _optionalChain([options, 'access', _88 => _88.claim, 'optionalAccess', _89 => _89.trim, 'call', _90 => _90()]);
2339
2339
  if (!claim) {
2340
- _chunkVVFH745Ljs.printCommandEnvelope.call(void 0,
2340
+ _chunkJHUMUIU6js.printCommandEnvelope.call(void 0,
2341
2341
  {
2342
2342
  ok: false,
2343
2343
  status: "failed",
@@ -2350,7 +2350,7 @@ Examples:
2350
2350
  process.exitCode = 2;
2351
2351
  return;
2352
2352
  }
2353
- await syncSdkSkillsIfNeeded(_chunkML2ZY7YDjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
2353
+ await syncSdkSkillsIfNeeded(_chunkND4BVWWZjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
2354
2354
  mode: "inline",
2355
2355
  notices: "defer",
2356
2356
  claim