deepline 0.3.485 → 0.3.486

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 (123) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/ledger-safe-payload.ts +8 -4
  3. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +37 -44
  4. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +2 -1
  5. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +2 -9
  6. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +7 -26
  7. package/dist/cli/auth-ARKH3OAU.js +43 -0
  8. package/dist/cli/{auth-OWMUENCU.mjs → auth-B4DJO4FB.mjs} +5 -5
  9. package/dist/cli/{billing-2FMNQGOX.js → billing-GDWAMARK.js} +79 -79
  10. package/dist/cli/{billing-JX4H3VFF.mjs → billing-IIQ3VNXU.mjs} +6 -6
  11. package/dist/cli/{chunk-3Z24NKW7.mjs → chunk-2DVFQYPG.mjs} +10 -10
  12. package/dist/cli/{chunk-T4G2T5DS.js → chunk-5DUP4ZUE.js} +21 -21
  13. package/dist/cli/{chunk-KZTNNLIL.mjs → chunk-5QYZ4MEW.mjs} +2 -2
  14. package/dist/cli/{chunk-TSCUWWTM.mjs → chunk-5RLVCOKH.mjs} +1 -1
  15. package/dist/cli/{chunk-JD6HKNKD.mjs → chunk-5Y7LLRWO.mjs} +1 -1
  16. package/dist/cli/{chunk-ECIXZNSW.js → chunk-5YILTBF7.js} +53 -53
  17. package/dist/cli/{chunk-JQXUWYWX.js → chunk-7FTQKEZ6.js} +10 -10
  18. package/dist/cli/{chunk-TMCC7ORQ.mjs → chunk-A456YVDE.mjs} +1 -1
  19. package/dist/cli/{chunk-S3WQJ5VG.js → chunk-BJL7RYQN.js} +3 -3
  20. package/dist/cli/{chunk-IHMYIHF4.js → chunk-BNB2RK4L.js} +5 -5
  21. package/dist/cli/{chunk-BSKPQB2P.js → chunk-BYEDI5PM.js} +7 -7
  22. package/dist/cli/{chunk-5DCQWQCP.js → chunk-C4GFBB52.js} +26 -26
  23. package/dist/cli/{chunk-DMNVM34J.js → chunk-DFHS5XVZ.js} +4 -4
  24. package/dist/cli/{chunk-E73JXJA3.mjs → chunk-F3G2HAUQ.mjs} +1 -1
  25. package/dist/cli/{chunk-UQ3LQ6IF.js → chunk-FCAKAW6S.js} +5 -5
  26. package/dist/cli/{chunk-W33OL4F2.mjs → chunk-FGPJXQEJ.mjs} +2 -2
  27. package/dist/cli/{chunk-C6QWRSMQ.js → chunk-FSCOYTRV.js} +6 -6
  28. package/dist/cli/{chunk-NKPTM7SK.js → chunk-GCEUOHJW.js} +7 -7
  29. package/dist/cli/{chunk-3OF7NSGR.js → chunk-KPIVQFXZ.js} +94 -94
  30. package/dist/cli/{chunk-GHHJWCMD.mjs → chunk-MJ56FCYU.mjs} +1 -1
  31. package/dist/cli/{chunk-TVW6USSG.js → chunk-NSPMJLYA.js} +3 -3
  32. package/dist/cli/{chunk-3DBW6C7M.mjs → chunk-P6KGYOCM.mjs} +2 -2
  33. package/dist/cli/{chunk-NLRTFJGH.js → chunk-PCYZDTDC.js} +9 -9
  34. package/dist/cli/{chunk-U6WEGDD3.js → chunk-PHWFY26F.js} +2 -2
  35. package/dist/cli/{chunk-FJY6K3BG.mjs → chunk-PKOFEHZL.mjs} +1 -1
  36. package/dist/cli/{chunk-L352NOE3.mjs → chunk-PQHDZHZG.mjs} +2 -2
  37. package/dist/cli/{chunk-NRNWPWBW.js → chunk-PTM3QRAT.js} +37 -37
  38. package/dist/cli/{chunk-YDA3PMKK.mjs → chunk-PV7AYBKQ.mjs} +2 -2
  39. package/dist/cli/{chunk-ACTUAZYP.mjs → chunk-PYDHVRAF.mjs} +4 -4
  40. package/dist/cli/{chunk-775AZTO7.js → chunk-QD22TY33.js} +7 -7
  41. package/dist/cli/{chunk-EC2CVPN5.js → chunk-QEQ3KHVY.js} +3 -3
  42. package/dist/cli/{chunk-L7IQ3DFH.js → chunk-S5EYODEG.js} +53 -53
  43. package/dist/cli/{chunk-HKGXGGIV.js → chunk-S7OILDJH.js} +1 -1
  44. package/dist/cli/{chunk-G5PI3RNT.mjs → chunk-T3Q6BMVH.mjs} +1 -1
  45. package/dist/cli/{chunk-RZE5I2XJ.mjs → chunk-TBE2K5W4.mjs} +4 -4
  46. package/dist/cli/{chunk-CW6TAQBF.mjs → chunk-TE2QT2MX.mjs} +4 -4
  47. package/dist/cli/{chunk-AFADYKFE.js → chunk-TNHY3ATN.js} +8 -8
  48. package/dist/cli/{chunk-3DYU3JQN.mjs → chunk-U23L57VU.mjs} +2 -2
  49. package/dist/cli/{chunk-VZYTLWOM.mjs → chunk-UEJLWUJ3.mjs} +2 -2
  50. package/dist/cli/{chunk-676NZ7K4.mjs → chunk-VJLL5XIP.mjs} +1 -1
  51. package/dist/cli/{chunk-2ZEQ43B7.mjs → chunk-WCOJH4W4.mjs} +3 -3
  52. package/dist/cli/{chunk-SR6S4EYG.mjs → chunk-XAZWUW6I.mjs} +5 -5
  53. package/dist/cli/{chunk-UPHXGZCE.mjs → chunk-YIKHNZ6B.mjs} +4 -4
  54. package/dist/cli/{chunk-2ILND7XX.js → chunk-YS6JOYYS.js} +2 -2
  55. package/dist/cli/{chunk-62PJ6PK7.mjs → chunk-ZMRZ3BXG.mjs} +5 -5
  56. package/dist/cli/{chunk-OW4OTEFF.js → chunk-ZQI26KE4.js} +16 -16
  57. package/dist/cli/{csv-HFEQPGNY.js → csv-3PSMPZM5.js} +13 -13
  58. package/dist/cli/{csv-OHF3Y5KB.mjs → csv-LFCT3WQ4.mjs} +4 -4
  59. package/dist/cli/{db-M456OUXD.mjs → db-HULKVAMU.mjs} +6 -6
  60. package/dist/cli/{db-VLQKCYQS.js → db-R7I2PPTV.js} +27 -27
  61. package/dist/cli/{describe-M6VXFYVL.mjs → describe-D55V42LH.mjs} +17 -17
  62. package/dist/cli/describe-H47BLOEP.js +49 -0
  63. package/dist/cli/{executions-4FGRBPJF.mjs → executions-ICVVOYVG.mjs} +6 -6
  64. package/dist/cli/{executions-GKINJZI6.js → executions-O37FN2SK.js} +8 -8
  65. package/dist/cli/{feedback-D2WMGK3V.mjs → feedback-3K3QPGCQ.mjs} +4 -4
  66. package/dist/cli/{feedback-ZH5K7WV7.js → feedback-MAZQ7C6S.js} +8 -8
  67. package/dist/cli/{git-OCIJ5ME4.mjs → git-2MMD5KJS.mjs} +5 -5
  68. package/dist/cli/git-RQ2XLFYZ.js +25 -0
  69. package/dist/cli/index.js +137 -137
  70. package/dist/cli/index.mjs +40 -40
  71. package/dist/cli/{legacy-noops-QNIVP7LO.js → legacy-noops-2OX2Y3Y2.js} +8 -8
  72. package/dist/cli/{legacy-noops-V6Q2X34P.mjs → legacy-noops-VLSWJ6VE.mjs} +5 -5
  73. package/dist/cli/{monitors-2USHTG5G.mjs → monitors-2NODQQWG.mjs} +7 -7
  74. package/dist/cli/{monitors-5DNK7W2K.js → monitors-UCSV5FOR.js} +91 -91
  75. package/dist/cli/{org-RPGM5AN4.js → org-4YY73VTW.js} +72 -72
  76. package/dist/cli/{org-TL2YPYSE.mjs → org-W7AUQCDE.mjs} +6 -6
  77. package/dist/cli/{pages-PNUKPFWV.js → pages-FBZEUMXK.js} +17 -17
  78. package/dist/cli/{pages-XDEW6EE3.mjs → pages-ZRP7U5PO.mjs} +6 -6
  79. package/dist/cli/{play-F5LHRKV5.js → play-LFCTQJXA.js} +312 -312
  80. package/dist/cli/{play-WINNQ4HZ.mjs → play-XF2BSGTP.mjs} +17 -17
  81. package/dist/cli/{providers-BD4IS5U5.js → providers-5456JNHP.js} +9 -9
  82. package/dist/cli/{providers-PXGL3FRE.mjs → providers-SICAPKGI.mjs} +6 -6
  83. package/dist/cli/{quickstart-7LVF6HZF.js → quickstart-2KLLIPIU.js} +6 -6
  84. package/dist/cli/{quickstart-XTH3UQWZ.mjs → quickstart-IBVG6GX6.mjs} +4 -4
  85. package/dist/cli/{run-NH2BAWPA.js → run-DNLDGJRC.js} +36 -36
  86. package/dist/cli/{run-MBMUENR7.mjs → run-XPIZIQ7H.mjs} +22 -22
  87. package/dist/cli/search-2KQA65LH.js +32 -0
  88. package/dist/cli/{search-BMRWBV66.mjs → search-PW22AEAL.mjs} +7 -7
  89. package/dist/cli/{search-output-5NNT337U.js → search-output-H6F6QMRF.js} +6 -6
  90. package/dist/cli/{search-output-QKKRD4MF.mjs → search-output-JFD53H2N.mjs} +4 -4
  91. package/dist/cli/{secrets-AWEXBTJV.mjs → secrets-542CTZRZ.mjs} +6 -6
  92. package/dist/cli/{secrets-KQSTOREN.js → secrets-LCCRRAN7.js} +15 -15
  93. package/dist/cli/{sessions-DSPLZYCJ.js → sessions-5FYDQE3N.js} +6 -6
  94. package/dist/cli/{sessions-RO25Q67X.mjs → sessions-CALLS2XD.mjs} +5 -5
  95. package/dist/cli/{settings-JMGXGK4Z.mjs → settings-GSKPHUEC.mjs} +11 -11
  96. package/dist/cli/{settings-7JXIKNKI.js → settings-ORGKOBP6.js} +78 -78
  97. package/dist/cli/{setup-5QFAQQRW.js → setup-4BUWJKB6.js} +47 -47
  98. package/dist/cli/{setup-ZQZ47FHB.mjs → setup-V57GHVAF.mjs} +9 -9
  99. package/dist/cli/skills-KYZPPGSN.js +33 -0
  100. package/dist/cli/{skills-W3H2DL56.mjs → skills-NGLCFQFT.mjs} +7 -7
  101. package/dist/cli/tools-AFYXUEMD.js +56 -0
  102. package/dist/cli/{tools-2BZCVNBS.mjs → tools-G2YNCFNX.mjs} +16 -16
  103. package/dist/cli/{update-GAWYMGAW.mjs → update-IZ3Z5T5C.mjs} +9 -9
  104. package/dist/cli/update-T6JJ7A3K.js +33 -0
  105. package/dist/cli/{workflow-ZPTDFPKW.js → workflow-7AHST2XV.js} +17 -17
  106. package/dist/cli/{workflow-M6LLHQ2I.mjs → workflow-L7ROQIM7.mjs} +7 -7
  107. package/dist/index.js +9 -9
  108. package/dist/index.mjs +6 -6
  109. package/dist/install-integrity.json +98 -98
  110. package/dist/release.d.mts +1 -1
  111. package/dist/release.d.ts +1 -1
  112. package/dist/release.js +2 -2
  113. package/dist/release.mjs +1 -1
  114. package/dist/server.js +5 -5
  115. package/dist/server.mjs +3 -3
  116. package/package.json +1 -1
  117. package/dist/cli/auth-ABZBH55L.js +0 -43
  118. package/dist/cli/describe-CP35DZ5Z.js +0 -49
  119. package/dist/cli/git-IDALMZDN.js +0 -25
  120. package/dist/cli/search-R3MQJQMT.js +0 -32
  121. package/dist/cli/skills-EDZXY7DV.js +0 -33
  122. package/dist/cli/tools-2EY2ETCZ.js +0 -56
  123. package/dist/cli/update-UKDQKNBY.js +0 -33
@@ -6,7 +6,7 @@ var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkBSKPQB2Pjs = require('./chunk-BSKPQB2P.js');
9
+ var _chunkBYEDI5PMjs = require('./chunk-BYEDI5PM.js');
10
10
 
11
11
  // src/cli/describe-options.ts
12
12
  function addDescribeOptions(command, options = {}) {
@@ -247,7 +247,7 @@ function projectRunDatasetCell(value) {
247
247
  const logicalValue = parseSerializedDatasetValue(value);
248
248
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
249
249
  if (typeof logicalValue === "object") {
250
- return _chunkBSKPQB2Pjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
250
+ return _chunkBYEDI5PMjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
251
251
  }
252
252
  return logicalValue;
253
253
  }
@@ -642,7 +642,7 @@ function csvText(rows, columns = []) {
642
642
  rows: rows.map((row) => record(row) ? row : { value: row }),
643
643
  columns
644
644
  });
645
- return _chunkBSKPQB2Pjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
645
+ return _chunkBYEDI5PMjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
646
646
  }
647
647
  function writeExecutionOutput(result, options) {
648
648
  let temp;
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  traceCliSpan
3
- } from "./chunk-676NZ7K4.mjs";
3
+ } from "./chunk-VJLL5XIP.mjs";
4
4
  import {
5
5
  checkSdkCompatibility,
6
6
  enforceSdkCompatibilityResponse,
7
7
  flushDeferredSkillsSyncNotices
8
- } from "./chunk-CW6TAQBF.mjs";
8
+ } from "./chunk-TE2QT2MX.mjs";
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -3,7 +3,7 @@
3
3
  var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
4
4
 
5
5
 
6
- var _chunk775AZTO7js = require('./chunk-775AZTO7.js');
6
+ var _chunkQD22TY33js = require('./chunk-QD22TY33.js');
7
7
 
8
8
 
9
9
  var _chunkAUQQVDABjs = require('./chunk-AUQQVDAB.js');
@@ -11,7 +11,7 @@ var _chunkAUQQVDABjs = require('./chunk-AUQQVDAB.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkBSKPQB2Pjs = require('./chunk-BSKPQB2P.js');
14
+ var _chunkBYEDI5PMjs = require('./chunk-BYEDI5PM.js');
15
15
 
16
16
 
17
17
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
@@ -579,7 +579,7 @@ function parseInputFlagValue(raw) {
579
579
  return raw;
580
580
  }
581
581
  function parsePlayRunOptions(args, initialInput = null) {
582
- const selection = _chunkBSKPQB2Pjs.parseJsonFields.call(void 0, args, "run");
582
+ const selection = _chunkBYEDI5PMjs.parseJsonFields.call(void 0, args, "run");
583
583
  args = selection.args;
584
584
  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.";
585
585
  let filePath = null;
@@ -591,7 +591,7 @@ function parsePlayRunOptions(args, initialInput = null) {
591
591
  let revisionSelector = null;
592
592
  const watch = !args.includes("--no-wait");
593
593
  const dryRun = args.includes("--dry-run");
594
- let jsonOutput = dryRun ? _chunkBSKPQB2Pjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkBSKPQB2Pjs.argsWantJson.call(void 0, args);
594
+ let jsonOutput = dryRun ? _chunkBYEDI5PMjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkBYEDI5PMjs.argsWantJson.call(void 0, args);
595
595
  const fullJson = args.includes("--full");
596
596
  const force = args.includes("--force");
597
597
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -654,7 +654,7 @@ function parsePlayRunOptions(args, initialInput = null) {
654
654
  "--log-level requires one of: debug, info, warn, error."
655
655
  );
656
656
  }
657
- const parsed = _chunk775AZTO7js.parseLogLevel.call(void 0, value);
657
+ const parsed = _chunkQD22TY33js.parseLogLevel.call(void 0, value);
658
658
  if (!parsed) {
659
659
  throw new Error(
660
660
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -972,7 +972,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
972
972
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
973
973
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
974
974
  );
975
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunk775AZTO7js.parseLogLevel.call(void 0, options.logLevel);
975
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkQD22TY33js.parseLogLevel.call(void 0, options.logLevel);
976
976
  if (!logLevel)
977
977
  throw new Error("--log-level requires one of: debug, info, warn, error.");
978
978
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -986,13 +986,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
986
986
  if (debugAlias || debugMapLatency && logLevel === "info")
987
987
  logLevel = "debug";
988
988
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
989
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkBSKPQB2Pjs.parseJsonFields.call(void 0,
990
- [...fullJson ? ["--full"] : [], ..._chunkBSKPQB2Pjs.jsonFieldArgs.call(void 0, options.json)],
989
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkBYEDI5PMjs.parseJsonFields.call(void 0,
990
+ [...fullJson ? ["--full"] : [], ..._chunkBYEDI5PMjs.jsonFieldArgs.call(void 0, options.json)],
991
991
  "run"
992
992
  ).fields;
993
993
  const watch = options.wait === false ? false : base.watch;
994
994
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
995
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkBSKPQB2Pjs.argsWantJson.call(void 0, []) : explicitJson;
995
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkBYEDI5PMjs.argsWantJson.call(void 0, []) : explicitJson;
996
996
  const verboseLogs = Boolean(
997
997
  debugAlias || logLevel === "debug" || debugMapLatency
998
998
  );
@@ -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(); } }
2
2
 
3
- var _chunkBSKPQB2Pjs = require('./chunk-BSKPQB2P.js');
3
+ var _chunkBYEDI5PMjs = require('./chunk-BYEDI5PM.js');
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  var _commander = require('commander');
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
33
33
  sinceStartMs: now - cliTraceStartedAt,
34
34
  ...event
35
35
  };
36
- _chunkBSKPQB2Pjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
36
+ _chunkBYEDI5PMjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
37
37
  `);
38
38
  }
39
39
  async function traceCliSpan(phase, fields, run) {
@@ -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-GHHJWCMD.mjs";
34
+ } from "./chunk-MJ56FCYU.mjs";
35
35
  import {
36
36
  CustomerDbQueryOutcomeUnknownError
37
37
  } from "./chunk-4QF2K7TM.mjs";
@@ -2,10 +2,10 @@ import {
2
2
  HttpClient,
3
3
  resolveCliCommandContext,
4
4
  resolveConfig
5
- } from "./chunk-G5PI3RNT.mjs";
5
+ } from "./chunk-T3Q6BMVH.mjs";
6
6
  import {
7
7
  detectAgentRuntime
8
- } from "./chunk-GHHJWCMD.mjs";
8
+ } from "./chunk-MJ56FCYU.mjs";
9
9
  import {
10
10
  DeeplineError,
11
11
  serializeToolExecutionFailure
@@ -11,20 +11,20 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkECIXZNSWjs = require('./chunk-ECIXZNSW.js');
14
+ var _chunk5YILTBF7js = require('./chunk-5YILTBF7.js');
15
15
 
16
16
 
17
- var _chunkBSKPQB2Pjs = require('./chunk-BSKPQB2P.js');
17
+ var _chunkBYEDI5PMjs = require('./chunk-BYEDI5PM.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
- var _chunkS3WQJ5VGjs = require('./chunk-S3WQJ5VG.js');
23
+ var _chunkBJL7RYQNjs = require('./chunk-BJL7RYQN.js');
24
24
 
25
25
 
26
26
 
27
- var _chunkDMNVM34Jjs = require('./chunk-DMNVM34J.js');
27
+ var _chunkDFHS5XVZjs = require('./chunk-DFHS5XVZ.js');
28
28
 
29
29
  // src/cli/commands/skills.ts
30
30
  var _child_process = require('child_process');
@@ -132,7 +132,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
132
132
  return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
133
133
  }
134
134
  function resolveLocalRoot() {
135
- const target = _chunkS3WQJ5VGjs.resolveProjectPinTarget.call(void 0, );
135
+ const target = _chunkBJL7RYQNjs.resolveProjectPinTarget.call(void 0, );
136
136
  if (!target.ok) {
137
137
  throw new Error(
138
138
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -143,7 +143,7 @@ function resolveLocalRoot() {
143
143
  return target.dir;
144
144
  }
145
145
  function detectSkillsAgents(input) {
146
- const runtime = _nullishCoalesce(input.runtime, () => ( _chunkDMNVM34Jjs.detectAgentRuntime.call(void 0, )));
146
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunkDFHS5XVZjs.detectAgentRuntime.call(void 0, )));
147
147
  const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
148
148
  if (knownAgent) return [knownAgent];
149
149
  const roots = [
@@ -158,11 +158,11 @@ function detectSkillsAgents(input) {
158
158
  return detected.length > 0 ? detected : ["*"];
159
159
  }
160
160
  function skillsStatePathForScope(baseUrl, scope, root) {
161
- return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkS3WQJ5VGjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
161
+ return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkBJL7RYQNjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
162
162
  }
163
163
  function buildSkillsPlan(input) {
164
164
  const scopeArgs = input.scope === "global" ? ["--global"] : [];
165
- const legacyNames = [..._chunkECIXZNSWjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
165
+ const legacyNames = [..._chunk5YILTBF7js.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
166
166
  (a, b) => a.localeCompare(b)
167
167
  );
168
168
  return {
@@ -176,7 +176,7 @@ function buildSkillsPlan(input) {
176
176
  args: [
177
177
  "exec",
178
178
  "--yes",
179
- `--package=${_chunkECIXZNSWjs.SKILLS_NPX_PACKAGE}`,
179
+ `--package=${_chunk5YILTBF7js.SKILLS_NPX_PACKAGE}`,
180
180
  "--",
181
181
  "skills",
182
182
  "remove",
@@ -192,11 +192,11 @@ function buildSkillsPlan(input) {
192
192
  args: [
193
193
  "exec",
194
194
  "--yes",
195
- `--package=${_chunkECIXZNSWjs.SKILLS_NPX_PACKAGE}`,
195
+ `--package=${_chunk5YILTBF7js.SKILLS_NPX_PACKAGE}`,
196
196
  "--",
197
197
  "skills",
198
198
  "add",
199
- _chunkECIXZNSWjs.skillsSourceUrl.call(void 0, input.baseUrl),
199
+ _chunk5YILTBF7js.skillsSourceUrl.call(void 0, input.baseUrl),
200
200
  "--agent",
201
201
  ...input.agents,
202
202
  ...scopeArgs,
@@ -233,7 +233,7 @@ function readSkillsInstallState(path) {
233
233
  }
234
234
  function runProcess(command, args, cwd) {
235
235
  return new Promise((resolve, reject) => {
236
- const plan = _chunkECIXZNSWjs.resolveShellSpawn.call(void 0,
236
+ const plan = _chunk5YILTBF7js.resolveShellSpawn.call(void 0,
237
237
  command,
238
238
  args,
239
239
  process.platform,
@@ -255,7 +255,7 @@ function runProcess(command, args, cwd) {
255
255
  child.kill("SIGTERM");
256
256
  reject(
257
257
  new Error(
258
- `${_chunkECIXZNSWjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
258
+ `${_chunk5YILTBF7js.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
259
259
  )
260
260
  );
261
261
  }, SKILLS_PROCESS_TIMEOUT_MS);
@@ -266,7 +266,7 @@ function runProcess(command, args, cwd) {
266
266
  child.once("close", (code) => {
267
267
  clearTimeout(timeout);
268
268
  if (code && stderr.trim()) {
269
- process.stderr.write(`${_chunkECIXZNSWjs.SKILLS_NPX_PACKAGE} exited ${code}.
269
+ process.stderr.write(`${_chunk5YILTBF7js.SKILLS_NPX_PACKAGE} exited ${code}.
270
270
  `);
271
271
  }
272
272
  resolve(_nullishCoalesce(code, () => ( 1)));
@@ -280,7 +280,7 @@ async function runSkillsCommand(options, dependencies = {}) {
280
280
  scope = normalizeScope(options.scope);
281
281
  root = scope === "local" ? resolveLocalRoot() : null;
282
282
  } catch (error) {
283
- _chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
283
+ _chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
284
284
  {
285
285
  ok: false,
286
286
  status: "failed",
@@ -292,22 +292,22 @@ async function runSkillsCommand(options, dependencies = {}) {
292
292
  );
293
293
  return 2;
294
294
  }
295
- const baseUrl = _chunkS3WQJ5VGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
295
+ const baseUrl = _chunkBJL7RYQNjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
296
296
  const catalog = {
297
- skillNames: [..._chunkECIXZNSWjs.DEFAULT_SDK_SKILL_NAMES],
298
- version: _chunkDMNVM34Jjs.SDK_VERSION
297
+ skillNames: [..._chunk5YILTBF7js.DEFAULT_SDK_SKILL_NAMES],
298
+ version: _chunkDFHS5XVZjs.SDK_VERSION
299
299
  };
300
300
  const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
301
301
  const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
302
302
  if (options.dryRun) {
303
- _chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
303
+ _chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
304
304
  { ok: true, status: "planned", dryRun: true, ...plan },
305
305
  { json: options.json }
306
306
  );
307
307
  return 0;
308
308
  }
309
- if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkECIXZNSWjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
310
- _chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
309
+ if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunk5YILTBF7js.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
310
+ _chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
311
311
  {
312
312
  ok: true,
313
313
  status: "current",
@@ -339,10 +339,10 @@ async function runSkillsCommand(options, dependencies = {}) {
339
339
  }
340
340
  if (scope === "local" && root) {
341
341
  const managedNames = [
342
- .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkECIXZNSWjs.LEGACY_SKILL_NAMES_TO_REMOVE])
342
+ .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunk5YILTBF7js.LEGACY_SKILL_NAMES_TO_REMOVE])
343
343
  ];
344
344
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
345
- _chunkS3WQJ5VGjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
345
+ _chunkBJL7RYQNjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
346
346
  ".deepline/",
347
347
  ...agentRoots.flatMap(
348
348
  (agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
@@ -351,7 +351,7 @@ async function runSkillsCommand(options, dependencies = {}) {
351
351
  }
352
352
  let lease;
353
353
  try {
354
- lease = scope === "global" ? await _chunkECIXZNSWjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
354
+ lease = scope === "global" ? await _chunk5YILTBF7js.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
355
355
  waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
356
356
  onWait: () => process.stderr.write(
357
357
  "Waiting for a background Deepline skills refresh to finish...\n"
@@ -359,8 +359,8 @@ async function runSkillsCommand(options, dependencies = {}) {
359
359
  }) : { release: () => {
360
360
  } };
361
361
  } catch (error) {
362
- if (!(error instanceof _chunkECIXZNSWjs.SkillsStateUnavailableError)) throw error;
363
- _chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
362
+ if (!(error instanceof _chunk5YILTBF7js.SkillsStateUnavailableError)) throw error;
363
+ _chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
364
364
  {
365
365
  ok: false,
366
366
  status: "failed",
@@ -376,7 +376,7 @@ async function runSkillsCommand(options, dependencies = {}) {
376
376
  return 5;
377
377
  }
378
378
  if (!lease) {
379
- _chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
379
+ _chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
380
380
  {
381
381
  ok: false,
382
382
  status: "failed",
@@ -385,7 +385,7 @@ async function runSkillsCommand(options, dependencies = {}) {
385
385
  scope,
386
386
  agents,
387
387
  message: "A background Deepline skills refresh is still running for these agents.",
388
- next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkECIXZNSWjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
388
+ next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunk5YILTBF7js.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
389
389
  },
390
390
  { json: options.json }
391
391
  );
@@ -434,7 +434,7 @@ async function runSkillsInstallWithLease(input) {
434
434
  }
435
435
  }
436
436
  } catch (error) {
437
- _chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
437
+ _chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
438
438
  {
439
439
  ok: false,
440
440
  status: "failed",
@@ -450,7 +450,7 @@ async function runSkillsInstallWithLease(input) {
450
450
  return 5;
451
451
  }
452
452
  if (missing.length > 0) {
453
- _chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
453
+ _chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
454
454
  {
455
455
  ok: false,
456
456
  status: "failed",
@@ -490,7 +490,7 @@ async function runSkillsInstallWithLease(input) {
490
490
  {
491
491
  schemaVersion: 1,
492
492
  installedAt: (/* @__PURE__ */ new Date()).toISOString(),
493
- cliVersion: _chunkDMNVM34Jjs.SDK_VERSION,
493
+ cliVersion: _chunkDFHS5XVZjs.SDK_VERSION,
494
494
  scope,
495
495
  agents,
496
496
  skillsVersion: plan.version,
@@ -503,9 +503,9 @@ async function runSkillsInstallWithLease(input) {
503
503
  "utf8"
504
504
  );
505
505
  if (scope === "global") {
506
- _chunkECIXZNSWjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
506
+ _chunk5YILTBF7js.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
507
507
  }
508
- _chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
508
+ _chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
509
509
  {
510
510
  ok: true,
511
511
  status: "complete",
@@ -536,7 +536,7 @@ function registerSkillsCommand(program) {
536
536
  "after",
537
537
  `
538
538
  Notes:
539
- This command reinstalls current Deepline-managed skills using ${_chunkECIXZNSWjs.SKILLS_NPX_PACKAGE},
539
+ This command reinstalls current Deepline-managed skills using ${_chunk5YILTBF7js.SKILLS_NPX_PACKAGE},
540
540
  then removes legacy Deepline skill names. Local scope writes into the resolved
541
541
  persistent project.
542
542
 
@@ -548,13 +548,13 @@ Examples:
548
548
  ).action(async (options) => {
549
549
  process.exitCode = await runSkillsCommand(options);
550
550
  });
551
- program.command(_chunkECIXZNSWjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
551
+ program.command(_chunk5YILTBF7js.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
552
552
  "--claim <token>",
553
553
  "Owner token of the leases this child was started for."
554
554
  ).action(async (options) => {
555
555
  const claim = _optionalChain([options, 'access', _5 => _5.claim, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]);
556
556
  if (!claim) {
557
- _chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
557
+ _chunkBYEDI5PMjs.printCommandEnvelope.call(void 0,
558
558
  {
559
559
  ok: false,
560
560
  status: "failed",
@@ -567,7 +567,7 @@ Examples:
567
567
  process.exitCode = 2;
568
568
  return;
569
569
  }
570
- await _chunkECIXZNSWjs.syncSdkSkillsIfNeeded.call(void 0, _chunkS3WQJ5VGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
570
+ await _chunk5YILTBF7js.syncSdkSkillsIfNeeded.call(void 0, _chunkBJL7RYQNjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
571
571
  mode: "inline",
572
572
  notices: "defer",
573
573
  claim
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-F6QV42MC.mjs";
4
4
  import {
5
5
  parseLogLevel
6
- } from "./chunk-FJY6K3BG.mjs";
6
+ } from "./chunk-PKOFEHZL.mjs";
7
7
  import {
8
8
  setDottedInputValue
9
9
  } from "./chunk-ONONSV2Q.mjs";
@@ -11,7 +11,7 @@ import {
11
11
  argsWantJson,
12
12
  jsonFieldArgs,
13
13
  parseJsonFields
14
- } from "./chunk-L352NOE3.mjs";
14
+ } from "./chunk-PQHDZHZG.mjs";
15
15
  import {
16
16
  DeeplineError
17
17
  } from "./chunk-HBL4PM5Q.mjs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  seedToolListScript
3
- } from "./chunk-3Z24NKW7.mjs";
3
+ } from "./chunk-2DVFQYPG.mjs";
4
4
  import {
5
5
  addDescribeOptions
6
- } from "./chunk-JD6HKNKD.mjs";
6
+ } from "./chunk-5Y7LLRWO.mjs";
7
7
  import {
8
8
  describeLookupsFor,
9
9
  describeName,
@@ -14,10 +14,10 @@ import {
14
14
  } from "./chunk-JVHOS3K3.mjs";
15
15
  import {
16
16
  DeeplineClient
17
- } from "./chunk-3DYU3JQN.mjs";
17
+ } from "./chunk-U23L57VU.mjs";
18
18
  import {
19
19
  printCommandEnvelope
20
- } from "./chunk-L352NOE3.mjs";
20
+ } from "./chunk-PQHDZHZG.mjs";
21
21
 
22
22
  // src/cli/commands/describe.ts
23
23
  import { writeFileSync } from "fs";
@@ -31,7 +31,7 @@ var _chunkNMU3VR5Ujs = require('./chunk-NMU3VR5U.js');
31
31
 
32
32
 
33
33
 
34
- var _chunkDMNVM34Jjs = require('./chunk-DMNVM34J.js');
34
+ var _chunkDFHS5XVZjs = require('./chunk-DFHS5XVZ.js');
35
35
 
36
36
 
37
37
  var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
@@ -652,7 +652,7 @@ var ToolCalls = class {
652
652
  idempotencyKey,
653
653
  onResponse: (response2) => {
654
654
  lastResponse = null;
655
- atomicToolsSupported = response2.headers.get(_chunkDMNVM34Jjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
655
+ atomicToolsSupported = response2.headers.get(_chunkDFHS5XVZjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
656
656
  recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
657
657
  if (_optionalChain([options, 'optionalAccess', _30 => _30.onServerTiming])) {
658
658
  try {
@@ -1031,8 +1031,8 @@ function runtimeSelectionHeaders(runtime, env) {
1031
1031
  }
1032
1032
  const receivers = _optionalChain([env, 'access', _52 => _52.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _53 => _53.trim, 'call', _54 => _54()]);
1033
1033
  return {
1034
- [_chunkDMNVM34Jjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1035
- ...receivers ? { [_chunkDMNVM34Jjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1034
+ [_chunkDFHS5XVZjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1035
+ ...receivers ? { [_chunkDFHS5XVZjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1036
1036
  };
1037
1037
  }
1038
1038
  function normalizeTestPolicyOverrides(value, source) {
@@ -1103,7 +1103,7 @@ var PlayClient = class {
1103
1103
  return _chunkAUQQVDABjs.startPlayRun.call(void 0,
1104
1104
  this.http,
1105
1105
  resolved.request,
1106
- _optionalChain([options, 'optionalAccess', _62 => _62.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkDMNVM34Jjs.SDK_API_MAJOR) } : headers,
1106
+ _optionalChain([options, 'optionalAccess', _62 => _62.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkDFHS5XVZjs.SDK_API_MAJOR) } : headers,
1107
1107
  options
1108
1108
  );
1109
1109
  }
@@ -3200,7 +3200,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
3200
3200
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
3201
3201
  );
3202
3202
  }
3203
- return { [_chunkDMNVM34Jjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3203
+ return { [_chunkDFHS5XVZjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3204
3204
  }
3205
3205
  function sleep(ms) {
3206
3206
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -4001,7 +4001,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
4001
4001
  );
4002
4002
  const headers = _optionalChain([options, 'optionalAccess', _181 => _181.cliAdmission]) ? {
4003
4003
  ...runtimeHeaders,
4004
- "X-Deepline-API-Major": String(_chunkDMNVM34Jjs.SDK_API_MAJOR)
4004
+ "X-Deepline-API-Major": String(_chunkDFHS5XVZjs.SDK_API_MAJOR)
4005
4005
  } : runtimeHeaders;
4006
4006
  const http = this.http;
4007
4007
  let submitted = false;
@@ -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 _chunkBSKPQB2Pjs = require('./chunk-BSKPQB2P.js');
3
+ var _chunkBYEDI5PMjs = require('./chunk-BYEDI5PM.js');
4
4
 
5
5
  // src/cli/progress.ts
6
6
  var _worker_threads = require('worker_threads');
@@ -17,7 +17,7 @@ var CliProgress = (_class = class {
17
17
 
18
18
  // --json output is one JSON document: progress never renders under it.
19
19
  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);
20
- this.enabled = enabled && !_chunkBSKPQB2Pjs.isJsonOutputMode.call(void 0, );
20
+ this.enabled = enabled && !_chunkBYEDI5PMjs.isJsonOutputMode.call(void 0, );
21
21
  }
22
22
  setLogWriter(writer) {
23
23
  this.logWriter = writer;
@@ -49,7 +49,7 @@ var CliProgress = (_class = class {
49
49
  this.logWriter(line);
50
50
  return;
51
51
  }
52
- if (_chunkBSKPQB2Pjs.isJsonOutputMode.call(void 0, )) return;
52
+ if (_chunkBYEDI5PMjs.isJsonOutputMode.call(void 0, )) return;
53
53
  if (!this.enabled) {
54
54
  process.stderr.write(`${line}
55
55
  `);