deepline 0.3.462 → 0.3.463

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 (121) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/monitors/billing/tamradar.ts +17 -17
  3. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +2 -0
  4. package/dist/bundling-sources/shared_libs/monitors/provider-monitor-upstream-identity.ts +28 -1
  5. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +12 -9
  6. package/dist/bundling-sources/shared_libs/play-runtime/tool-result.ts +17 -7
  7. package/dist/cli/{auth-JDLEY7VU.mjs → auth-LZLBR4C3.mjs} +5 -5
  8. package/dist/cli/auth-XPGKBJKB.js +41 -0
  9. package/dist/cli/{billing-HXAXB3XZ.js → billing-6TJPNJQD.js} +77 -77
  10. package/dist/cli/{billing-SDHLBLMV.mjs → billing-OTOP5RE4.mjs} +6 -6
  11. package/dist/cli/{chunk-NBLSCHKK.js → chunk-2NISBXMN.js} +51 -51
  12. package/dist/cli/{chunk-XANRM3QA.js → chunk-2ZIRCBYG.js} +6 -6
  13. package/dist/cli/{chunk-7VZHXVOQ.js → chunk-3BOIOCNX.js} +1 -1
  14. package/dist/cli/{chunk-4KQ6SIBC.mjs → chunk-3BVLLJ3H.mjs} +2 -2
  15. package/dist/cli/{chunk-PHSEINNH.mjs → chunk-3U5EAP6E.mjs} +5 -5
  16. package/dist/cli/{chunk-WIY6U6GD.mjs → chunk-4YZKBBLZ.mjs} +4 -4
  17. package/dist/cli/{chunk-UAJFWWZE.js → chunk-5DRNNC72.js} +5 -5
  18. package/dist/cli/{chunk-3ACMRZRV.js → chunk-5LHXOIPT.js} +7 -7
  19. package/dist/cli/{chunk-V3MEA7NB.mjs → chunk-7D6X7IXW.mjs} +4 -4
  20. package/dist/cli/{chunk-OMQ23IXL.js → chunk-7FCYPAPP.js} +2 -2
  21. package/dist/cli/{chunk-I6VHOU5O.js → chunk-7XYDDCQ2.js} +26 -26
  22. package/dist/cli/{chunk-OPJAJBD4.js → chunk-ALZBANZI.js} +8 -8
  23. package/dist/cli/{chunk-PKHVSIJG.mjs → chunk-BAPTQDLF.mjs} +2 -2
  24. package/dist/cli/{chunk-Y4DPU4OM.js → chunk-BGNWI3KH.js} +3 -3
  25. package/dist/cli/{chunk-LFXLQEZN.mjs → chunk-C25QE4CH.mjs} +1 -1
  26. package/dist/cli/{chunk-GEGW5HPZ.js → chunk-CBZP6J3V.js} +21 -21
  27. package/dist/cli/{chunk-ZUK6LIJB.mjs → chunk-CTQ56DXP.mjs} +1 -1
  28. package/dist/cli/{chunk-7U3XNPOA.mjs → chunk-CVQ7N5CV.mjs} +10 -10
  29. package/dist/cli/{chunk-6NNVJDVR.mjs → chunk-DHXCBITQ.mjs} +3 -3
  30. package/dist/cli/{chunk-D6DXOUTO.mjs → chunk-F2RHUPVH.mjs} +1 -1
  31. package/dist/cli/{chunk-7LFIMWMW.js → chunk-FK2HNDCN.js} +2 -2
  32. package/dist/cli/{chunk-MUUQZIOF.mjs → chunk-GUT7CLOL.mjs} +3 -3
  33. package/dist/cli/{chunk-6RNQGWFD.mjs → chunk-I624J4H5.mjs} +1 -1
  34. package/dist/cli/{chunk-3KZCFOZ6.mjs → chunk-IKWRUNAP.mjs} +1 -1
  35. package/dist/cli/{chunk-ULK7JGGI.js → chunk-JVDKZJUH.js} +93 -93
  36. package/dist/cli/{chunk-FKVYR3QA.mjs → chunk-LYFKBLJI.mjs} +1 -1
  37. package/dist/cli/{chunk-QJZ6WNWD.js → chunk-NAPTMYTY.js} +8 -8
  38. package/dist/cli/{chunk-VFGVXXZP.js → chunk-NDHJR2WZ.js} +36 -36
  39. package/dist/cli/{chunk-7MJ6VI2T.mjs → chunk-NTLI6P6Y.mjs} +2 -2
  40. package/dist/cli/{chunk-S6UAJR6V.mjs → chunk-O3BJYD6D.mjs} +2 -2
  41. package/dist/cli/{chunk-EM4TXCCI.js → chunk-PVY4DPPF.js} +10 -10
  42. package/dist/cli/{chunk-UDRPEZ5F.mjs → chunk-RD6IQ2JY.mjs} +1 -1
  43. package/dist/cli/{chunk-7SWNPNML.js → chunk-RGOUCIIZ.js} +3 -3
  44. package/dist/cli/{chunk-O2RX5A66.mjs → chunk-S4XQCFES.mjs} +5 -5
  45. package/dist/cli/{chunk-JF3TLIMQ.js → chunk-SKU6ECIY.js} +5 -5
  46. package/dist/cli/{chunk-LROWFPGN.js → chunk-TIRBDQ3W.js} +16 -16
  47. package/dist/cli/{chunk-BGTPIMSM.js → chunk-UC4SFYNU.js} +6 -6
  48. package/dist/cli/{chunk-S42YIQNE.mjs → chunk-UIURR26V.mjs} +4 -4
  49. package/dist/cli/{chunk-HUB3CCM2.js → chunk-UROQDCVW.js} +3 -3
  50. package/dist/cli/{chunk-AT636LLU.mjs → chunk-VDGTTH7K.mjs} +2 -2
  51. package/dist/cli/{chunk-V335HGX5.js → chunk-VY2GBNTX.js} +9 -9
  52. package/dist/cli/{chunk-NHRWZPWZ.mjs → chunk-WUMIYOXQ.mjs} +2 -2
  53. package/dist/cli/{chunk-ZGQSFYD2.js → chunk-WUZS2HK6.js} +53 -53
  54. package/dist/cli/{chunk-XZAFIOUQ.mjs → chunk-XDWS2JJT.mjs} +1 -1
  55. package/dist/cli/{chunk-CKSOY47X.mjs → chunk-XW2JIYG7.mjs} +2 -2
  56. package/dist/cli/{chunk-YT5EODJO.js → chunk-YGGIZ3VT.js} +4 -4
  57. package/dist/cli/{csv-C56GSCEU.js → csv-EH5QWR4O.js} +13 -13
  58. package/dist/cli/{csv-L54JS7TF.mjs → csv-OK45Z5XQ.mjs} +4 -4
  59. package/dist/cli/{db-MOGRMZTA.js → db-3ESJKETS.js} +27 -27
  60. package/dist/cli/{db-YVBUW2DX.mjs → db-6Z5E4HKN.mjs} +6 -6
  61. package/dist/cli/{describe-NLZKKT7C.mjs → describe-PNDQB7YS.mjs} +17 -17
  62. package/dist/cli/describe-QUF7VTTR.js +48 -0
  63. package/dist/cli/{executions-ZBGSTT37.mjs → executions-2NTWQFEG.mjs} +6 -6
  64. package/dist/cli/{executions-A7L4ULPP.js → executions-KUOBRX5V.js} +8 -8
  65. package/dist/cli/{feedback-G6GU37FD.mjs → feedback-7RPRMSGY.mjs} +4 -4
  66. package/dist/cli/{feedback-OHLY7RYD.js → feedback-UPHAZJ4C.js} +8 -8
  67. package/dist/cli/{git-PKZW3QD5.mjs → git-SCYP6WSZ.mjs} +5 -5
  68. package/dist/cli/git-UH653WHV.js +25 -0
  69. package/dist/cli/index.js +135 -135
  70. package/dist/cli/index.mjs +40 -40
  71. package/dist/cli/{legacy-noops-5LM3D724.js → legacy-noops-7XMFCVRG.js} +8 -8
  72. package/dist/cli/{legacy-noops-LJJYG6YA.mjs → legacy-noops-A4KYAGI6.mjs} +5 -5
  73. package/dist/cli/{monitors-72QV4ALO.mjs → monitors-FLC5J7RI.mjs} +7 -7
  74. package/dist/cli/{monitors-UX3H5DC2.js → monitors-NZV6IX5H.js} +91 -91
  75. package/dist/cli/{org-IF7ISUVB.js → org-IZ7UP3XF.js} +68 -68
  76. package/dist/cli/{org-6RRRKOCP.mjs → org-LUETJ7Z5.mjs} +6 -6
  77. package/dist/cli/{pages-3SU3HKL7.js → pages-22ML3O7O.js} +17 -17
  78. package/dist/cli/{pages-DXDYYKEK.mjs → pages-EUX5EAGF.mjs} +6 -6
  79. package/dist/cli/{play-AHASKRLA.mjs → play-CDHPAKKM.mjs} +17 -17
  80. package/dist/cli/{play-EUIUVLUH.js → play-USJBQADG.js} +304 -304
  81. package/dist/cli/{providers-GWGE3WY3.mjs → providers-CCXZ3SQF.mjs} +6 -6
  82. package/dist/cli/{providers-V5WU4VXJ.js → providers-WFEUNPGC.js} +9 -9
  83. package/dist/cli/{quickstart-QP65I5PF.js → quickstart-O4JSUORZ.js} +6 -6
  84. package/dist/cli/{quickstart-OXKQ5ZST.mjs → quickstart-ZUULI635.mjs} +4 -4
  85. package/dist/cli/{run-F3FTYS56.js → run-ISDJYJMU.js} +36 -36
  86. package/dist/cli/{run-6MM72IGL.mjs → run-QJ4NX5F5.mjs} +22 -22
  87. package/dist/cli/{search-ZMEBVJZB.mjs → search-IX3XKZJ3.mjs} +7 -7
  88. package/dist/cli/search-TIFNLRPM.js +32 -0
  89. package/dist/cli/{secrets-XRCJFF3L.mjs → secrets-7VUDXTUZ.mjs} +6 -6
  90. package/dist/cli/{secrets-ACND5N6A.js → secrets-ELQSNCTR.js} +15 -15
  91. package/dist/cli/{sessions-ZGRJPCFF.js → sessions-A3FG3AZX.js} +6 -6
  92. package/dist/cli/{sessions-RTK3CEW6.mjs → sessions-VOIQ62GB.mjs} +5 -5
  93. package/dist/cli/{settings-XDRBPRDE.mjs → settings-S6N6EFBG.mjs} +11 -11
  94. package/dist/cli/{settings-PD5KWQQZ.js → settings-ZTXQEMZI.js} +78 -78
  95. package/dist/cli/{setup-3HPYAOCC.mjs → setup-AYPIK4JE.mjs} +9 -9
  96. package/dist/cli/{setup-E2Q6PXHC.js → setup-Y3WOIFLS.js} +44 -44
  97. package/dist/cli/{skills-OOQFMPOV.mjs → skills-5SF5QWNI.mjs} +7 -7
  98. package/dist/cli/skills-MWFRMG3H.js +31 -0
  99. package/dist/cli/{tools-C5ZT3UIC.mjs → tools-3XNZ4J64.mjs} +16 -16
  100. package/dist/cli/tools-XEC4OD3R.js +55 -0
  101. package/dist/cli/{update-ZWJTADIW.mjs → update-3U4OVX5R.mjs} +9 -9
  102. package/dist/cli/update-DWYEYTZE.js +33 -0
  103. package/dist/cli/{workflow-23NMPAJ7.mjs → workflow-2M5JP7SA.mjs} +7 -7
  104. package/dist/cli/{workflow-TCXU5YJV.js → workflow-RM7H7555.js} +17 -17
  105. package/dist/index.js +10 -10
  106. package/dist/index.mjs +7 -7
  107. package/dist/install-integrity.json +96 -96
  108. package/dist/release.d.mts +1 -1
  109. package/dist/release.d.ts +1 -1
  110. package/dist/release.js +2 -2
  111. package/dist/release.mjs +1 -1
  112. package/dist/server.js +5 -5
  113. package/dist/server.mjs +3 -3
  114. package/package.json +1 -1
  115. package/dist/cli/auth-UXKY6TCC.js +0 -41
  116. package/dist/cli/describe-KYEULWPG.js +0 -48
  117. package/dist/cli/git-P76N4NDQ.js +0 -25
  118. package/dist/cli/search-OYKOOI7A.js +0 -32
  119. package/dist/cli/skills-XYWV52KB.js +0 -31
  120. package/dist/cli/tools-ASCDZJCK.js +0 -55
  121. package/dist/cli/update-5RQSEIFM.js +0 -33
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getActiveCliProgress
3
- } from "./chunk-ZUK6LIJB.mjs";
3
+ } from "./chunk-CTQ56DXP.mjs";
4
4
  import {
5
5
  DEFAULT_SKILL_AGENTS,
6
6
  KNOWN_SKILL_AGENTS,
@@ -12,7 +12,7 @@ import {
12
12
  sdkCliStateDirPath,
13
13
  skillsAgentPathSegment,
14
14
  writeSdkSkillsLocalVersion
15
- } from "./chunk-D6DXOUTO.mjs";
15
+ } from "./chunk-F2RHUPVH.mjs";
16
16
  import {
17
17
  SDK_API_CONTRACT,
18
18
  SDK_API_MAJOR,
@@ -20,13 +20,13 @@ import {
20
20
  agentSessionIdFromEnvironment,
21
21
  deploymentProtectionHeaders,
22
22
  detectAgentRuntime
23
- } from "./chunk-6RNQGWFD.mjs";
23
+ } from "./chunk-I624J4H5.mjs";
24
24
  import {
25
25
  DeeplineError
26
26
  } from "./chunk-HBL4PM5Q.mjs";
27
27
  import {
28
28
  SDK_RELEASE
29
- } from "./chunk-XZAFIOUQ.mjs";
29
+ } from "./chunk-XDWS2JJT.mjs";
30
30
 
31
31
  // src/compat.ts
32
32
  import { randomUUID } from "crypto";
@@ -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 _chunk3ACMRZRVjs = require('./chunk-3ACMRZRV.js');
3
+ var _chunk5LHXOIPTjs = require('./chunk-5LHXOIPT.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 && !_chunk3ACMRZRVjs.isJsonOutputMode.call(void 0, );
20
+ this.enabled = enabled && !_chunk5LHXOIPTjs.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 (_chunk3ACMRZRVjs.isJsonOutputMode.call(void 0, )) return;
52
+ if (_chunk5LHXOIPTjs.isJsonOutputMode.call(void 0, )) return;
53
53
  if (!this.enabled) {
54
54
  process.stderr.write(`${line}
55
55
  `);
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
3
  printCommandEnvelope
4
- } from "./chunk-NHRWZPWZ.mjs";
4
+ } from "./chunk-WUMIYOXQ.mjs";
5
5
  import {
6
6
  agentSessionIdFromEnvironment
7
- } from "./chunk-6RNQGWFD.mjs";
7
+ } from "./chunk-I624J4H5.mjs";
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
  import {
@@ -3,7 +3,7 @@
3
3
  var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
4
4
 
5
5
 
6
- var _chunkBGTPIMSMjs = require('./chunk-BGTPIMSM.js');
6
+ var _chunkUC4SFYNUjs = require('./chunk-UC4SFYNU.js');
7
7
 
8
8
 
9
9
  var _chunkJKVRBCZLjs = require('./chunk-JKVRBCZL.js');
@@ -11,7 +11,7 @@ var _chunkJKVRBCZLjs = require('./chunk-JKVRBCZL.js');
11
11
 
12
12
 
13
13
 
14
- var _chunk3ACMRZRVjs = require('./chunk-3ACMRZRV.js');
14
+ var _chunk5LHXOIPTjs = require('./chunk-5LHXOIPT.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 = _chunk3ACMRZRVjs.parseJsonFields.call(void 0, args, "run");
582
+ const selection = _chunk5LHXOIPTjs.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 ? _chunk3ACMRZRVjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunk3ACMRZRVjs.argsWantJson.call(void 0, args);
594
+ let jsonOutput = dryRun ? _chunk5LHXOIPTjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunk5LHXOIPTjs.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 = _chunkBGTPIMSMjs.parseLogLevel.call(void 0, value);
657
+ const parsed = _chunkUC4SFYNUjs.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 : _chunkBGTPIMSMjs.parseLogLevel.call(void 0, options.logLevel);
975
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkUC4SFYNUjs.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 : _chunk3ACMRZRVjs.parseJsonFields.call(void 0,
990
- [...fullJson ? ["--full"] : [], ..._chunk3ACMRZRVjs.jsonFieldArgs.call(void 0, options.json)],
989
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunk5LHXOIPTjs.parseJsonFields.call(void 0,
990
+ [...fullJson ? ["--full"] : [], ..._chunk5LHXOIPTjs.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 || _chunk3ACMRZRVjs.argsWantJson.call(void 0, []) : explicitJson;
995
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunk5LHXOIPTjs.argsWantJson.call(void 0, []) : explicitJson;
996
996
  const verboseLogs = Boolean(
997
997
  debugAlias || logLevel === "debug" || debugMapLatency
998
998
  );
@@ -2,10 +2,10 @@ import {
2
2
  HttpClient,
3
3
  resolveCliCommandContext,
4
4
  resolveConfig
5
- } from "./chunk-D6DXOUTO.mjs";
5
+ } from "./chunk-F2RHUPVH.mjs";
6
6
  import {
7
7
  detectAgentRuntime
8
- } from "./chunk-6RNQGWFD.mjs";
8
+ } from "./chunk-I624J4H5.mjs";
9
9
  import {
10
10
  DeeplineError,
11
11
  serializeToolExecutionFailure
@@ -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 _chunkHUB3CCM2js = require('./chunk-HUB3CCM2.js');
3
+ var _chunkUROQDCVWjs = require('./chunk-UROQDCVW.js');
4
4
 
5
5
 
6
6
 
@@ -12,7 +12,7 @@ var _chunkHUB3CCM2js = require('./chunk-HUB3CCM2.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkY4DPU4OMjs = require('./chunk-Y4DPU4OM.js');
15
+ var _chunkBGNWI3KHjs = require('./chunk-BGNWI3KH.js');
16
16
 
17
17
 
18
18
 
@@ -20,13 +20,13 @@ var _chunkY4DPU4OMjs = require('./chunk-Y4DPU4OM.js');
20
20
 
21
21
 
22
22
 
23
- var _chunkYT5EODJOjs = require('./chunk-YT5EODJO.js');
23
+ var _chunkYGGIZ3VTjs = require('./chunk-YGGIZ3VT.js');
24
24
 
25
25
 
26
26
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
27
27
 
28
28
 
29
- var _chunk7VZHXVOQjs = require('./chunk-7VZHXVOQ.js');
29
+ var _chunk3BOIOCNXjs = require('./chunk-3BOIOCNX.js');
30
30
 
31
31
  // src/compat.ts
32
32
  var _crypto = require('crypto');
@@ -61,7 +61,7 @@ function shouldSkipCompatibilityCheck() {
61
61
  return value === "1" || value === "true" || value === "yes";
62
62
  }
63
63
  function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
64
- return _path.join.call(void 0, _chunkY4DPU4OMjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
64
+ return _path.join.call(void 0, _chunkBGNWI3KHjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
65
65
  }
66
66
  function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
67
67
  return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
@@ -69,9 +69,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
69
69
  function compatibilityCacheKey(baseUrl, command, skillsVersion) {
70
70
  return JSON.stringify({
71
71
  baseUrl: baseUrl.replace(/\/$/, ""),
72
- version: _chunkYT5EODJOjs.SDK_VERSION,
73
- apiContract: _chunkYT5EODJOjs.SDK_API_CONTRACT,
74
- apiMajor: _chunkYT5EODJOjs.SDK_API_MAJOR,
72
+ version: _chunkYGGIZ3VTjs.SDK_VERSION,
73
+ apiContract: _chunkYGGIZ3VTjs.SDK_API_CONTRACT,
74
+ apiMajor: _chunkYGGIZ3VTjs.SDK_API_MAJOR,
75
75
  command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
76
76
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
77
77
  });
@@ -79,8 +79,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
79
79
  function legacyCompatibilityCacheKey(baseUrl, command) {
80
80
  return JSON.stringify({
81
81
  baseUrl: baseUrl.replace(/\/$/, ""),
82
- version: _chunkYT5EODJOjs.SDK_VERSION,
83
- apiContract: _chunkYT5EODJOjs.SDK_API_CONTRACT,
82
+ version: _chunkYGGIZ3VTjs.SDK_VERSION,
83
+ apiContract: _chunkYGGIZ3VTjs.SDK_API_CONTRACT,
84
84
  command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
85
85
  });
86
86
  }
@@ -105,7 +105,7 @@ function isSavedWithin(savedAt, windowMs, now) {
105
105
  }
106
106
  var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
107
107
  function claimUpdateAdvisory(baseUrl, now = Date.now()) {
108
- const path = _path.join.call(void 0, _chunkY4DPU4OMjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
108
+ const path = _path.join.call(void 0, _chunkBGNWI3KHjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
109
109
  try {
110
110
  const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
111
111
  if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
@@ -189,7 +189,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
189
189
  );
190
190
  try {
191
191
  const url = new URL("/api/v2/sdk/compat", baseUrl);
192
- url.searchParams.set("version", _chunkYT5EODJOjs.SDK_VERSION);
192
+ url.searchParams.set("version", _chunkYGGIZ3VTjs.SDK_VERSION);
193
193
  if (_optionalChain([options, 'access', _27 => _27.command, 'optionalAccess', _28 => _28.trim, 'call', _29 => _29()])) {
194
194
  url.searchParams.set("command", options.command.trim());
195
195
  }
@@ -197,7 +197,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
197
197
  url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
198
198
  url.searchParams.set(
199
199
  "skills_cli_capability",
200
- String(_chunk7VZHXVOQjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
200
+ String(_chunk3BOIOCNXjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
201
201
  );
202
202
  }
203
203
  if (options.catalog) {
@@ -209,14 +209,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
209
209
  const response = await fetch(url, {
210
210
  method: "GET",
211
211
  headers: {
212
- ..._chunkYT5EODJOjs.deploymentProtectionHeaders.call(void 0, ),
213
- "User-Agent": `deepline-ts-sdk/${_chunkYT5EODJOjs.SDK_VERSION}`,
214
- "X-Deepline-SDK-Version": _chunkYT5EODJOjs.SDK_VERSION,
215
- "X-Deepline-API-Major": String(_chunkYT5EODJOjs.SDK_API_MAJOR),
216
- "X-Deepline-API-Contract": _chunkYT5EODJOjs.SDK_API_CONTRACT,
212
+ ..._chunkYGGIZ3VTjs.deploymentProtectionHeaders.call(void 0, ),
213
+ "User-Agent": `deepline-ts-sdk/${_chunkYGGIZ3VTjs.SDK_VERSION}`,
214
+ "X-Deepline-SDK-Version": _chunkYGGIZ3VTjs.SDK_VERSION,
215
+ "X-Deepline-API-Major": String(_chunkYGGIZ3VTjs.SDK_API_MAJOR),
216
+ "X-Deepline-API-Contract": _chunkYGGIZ3VTjs.SDK_API_CONTRACT,
217
217
  "X-Deepline-CLI-Update-Preferences": "1",
218
218
  "X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
219
- ...options.catalog ? { Authorization: `Bearer ${_chunkY4DPU4OMjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
219
+ ...options.catalog ? { Authorization: `Bearer ${_chunkBGNWI3KHjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
220
220
  ..._optionalChain([options, 'access', _30 => _30.catalog, 'optionalAccess', _31 => _31.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
221
221
  },
222
222
  signal: controller.signal
@@ -377,7 +377,7 @@ function skillsSourceUrl(baseUrl) {
377
377
  function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
378
378
  const skillNames = Array.isArray(skillName) ? skillName : [skillName];
379
379
  const [firstSkillName, ...extraSkillNames] = skillNames;
380
- const agents = _nullishCoalesce(options.agents, () => ( _chunkY4DPU4OMjs.DEFAULT_SKILL_AGENTS));
380
+ const agents = _nullishCoalesce(options.agents, () => ( _chunkBGNWI3KHjs.DEFAULT_SKILL_AGENTS));
381
381
  const values = {
382
382
  skills_index_url: skillsIndexUrl(baseUrl),
383
383
  skills_source_url: skillsSourceUrl(baseUrl),
@@ -596,7 +596,7 @@ function buildEnvironmentContext() {
596
596
  node_version: process.version,
597
597
  runtime: "Node.js",
598
598
  hostname: _os.hostname.call(void 0, ),
599
- agent_runtime: _chunkYT5EODJOjs.detectAgentRuntime.call(void 0, )
599
+ agent_runtime: _chunkYGGIZ3VTjs.detectAgentRuntime.call(void 0, )
600
600
  };
601
601
  for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
602
602
  const normalized = _optionalChain([process, 'access', _42 => _42.env, 'access', _43 => _43[key], 'optionalAccess', _44 => _44.trim, 'call', _45 => _45()]);
@@ -617,18 +617,18 @@ function buildEnvironmentContext() {
617
617
  return context;
618
618
  }
619
619
  function failureReportHeaders(apiKey) {
620
- const agentSessionId = _chunkYT5EODJOjs.agentSessionIdFromEnvironment.call(void 0, );
620
+ const agentSessionId = _chunkYGGIZ3VTjs.agentSessionIdFromEnvironment.call(void 0, );
621
621
  return {
622
- ..._chunkYT5EODJOjs.deploymentProtectionHeaders.call(void 0, ),
622
+ ..._chunkYGGIZ3VTjs.deploymentProtectionHeaders.call(void 0, ),
623
623
  ...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
624
624
  Authorization: `Bearer ${apiKey}`,
625
625
  "Content-Type": "application/json",
626
- "User-Agent": `deepline-ts-sdk/${_chunkYT5EODJOjs.SDK_VERSION}`,
626
+ "User-Agent": `deepline-ts-sdk/${_chunkYGGIZ3VTjs.SDK_VERSION}`,
627
627
  "X-Deepline-Client-Family": "sdk",
628
628
  "X-Deepline-CLI-Family": "sdk",
629
- "X-Deepline-Agent-Runtime": _chunkYT5EODJOjs.detectAgentRuntime.call(void 0, ),
630
- "X-Deepline-CLI-Version": _chunkYT5EODJOjs.SDK_VERSION,
631
- "X-Deepline-SDK-Version": _chunkYT5EODJOjs.SDK_VERSION
629
+ "X-Deepline-Agent-Runtime": _chunkYGGIZ3VTjs.detectAgentRuntime.call(void 0, ),
630
+ "X-Deepline-CLI-Version": _chunkYGGIZ3VTjs.SDK_VERSION,
631
+ "X-Deepline-SDK-Version": _chunkYGGIZ3VTjs.SDK_VERSION
632
632
  };
633
633
  }
634
634
  async function postFailureReport(input) {
@@ -656,7 +656,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
656
656
  if (isFailureReportingDisabled()) return false;
657
657
  let apiKey = "";
658
658
  try {
659
- apiKey = _chunkY4DPU4OMjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
659
+ apiKey = _chunkBGNWI3KHjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
660
660
  } catch (e9) {
661
661
  return false;
662
662
  }
@@ -683,7 +683,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
683
683
  failure_code: failureCode2,
684
684
  failure_stage: failureStage,
685
685
  error_body: "Automatic Deepline skills installation failed.",
686
- cli_version: _chunkYT5EODJOjs.SDK_VERSION,
686
+ cli_version: _chunkYGGIZ3VTjs.SDK_VERSION,
687
687
  context: {
688
688
  environment: buildEnvironmentContext(),
689
689
  skills_sync: {
@@ -803,7 +803,7 @@ function buildFailureReport(input) {
803
803
  failure_kind: failureKind,
804
804
  failure_code: code,
805
805
  failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
806
- cli_version: _chunkYT5EODJOjs.SDK_VERSION,
806
+ cli_version: _chunkYGGIZ3VTjs.SDK_VERSION,
807
807
  context: {
808
808
  base_url: redactFailureText(input.baseUrl, 400),
809
809
  command_summary: sanitizeCommand(input.argv),
@@ -823,8 +823,8 @@ async function maybeReportSdkCliFailure(input) {
823
823
  if (isServerLoggedPlayRunStartFailure(input)) return false;
824
824
  const exitCode = resolvedExitCode(input);
825
825
  if (!shouldReport({ exitCode, error: input.error })) return false;
826
- const baseUrl = _chunkY4DPU4OMjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
827
- const apiKey = _chunkY4DPU4OMjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
826
+ const baseUrl = _chunkBGNWI3KHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
827
+ const apiKey = _chunkBGNWI3KHjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
828
828
  if (!apiKey) return false;
829
829
  return postFailureReport({
830
830
  baseUrl,
@@ -861,25 +861,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
861
861
  var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
862
862
  var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
863
863
  function shouldSkipSkillsSync() {
864
- if (_chunkYT5EODJOjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
864
+ if (_chunkYGGIZ3VTjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
865
865
  return true;
866
866
  }
867
867
  const value = _optionalChain([process, 'access', _66 => _66.env, 'access', _67 => _67.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _68 => _68.trim, 'call', _69 => _69(), 'access', _70 => _70.toLowerCase, 'call', _71 => _71()]);
868
868
  return value === "1" || value === "true" || value === "yes" || value === "on";
869
869
  }
870
870
  function unavailableSkillsNoticePath(baseUrl) {
871
- return _path.join.call(void 0, _chunkY4DPU4OMjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
871
+ return _path.join.call(void 0, _chunkBGNWI3KHjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
872
872
  }
873
873
  var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
874
874
  var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
875
- var agentLeaseSegment = _chunkY4DPU4OMjs.skillsAgentPathSegment;
875
+ var agentLeaseSegment = _chunkBGNWI3KHjs.skillsAgentPathSegment;
876
876
  function sortedLeaseAgents(agents) {
877
- const expanded = agents.includes("*") ? [...agents, ..._chunkY4DPU4OMjs.KNOWN_SKILL_AGENTS] : agents;
877
+ const expanded = agents.includes("*") ? [...agents, ..._chunkBGNWI3KHjs.KNOWN_SKILL_AGENTS] : agents;
878
878
  return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
879
879
  }
880
880
  function inProgressSkillsSyncPath(baseUrl, agent) {
881
881
  return _path.join.call(void 0,
882
- _chunkY4DPU4OMjs.sdkCliStateDirPath.call(void 0, baseUrl),
882
+ _chunkBGNWI3KHjs.sdkCliStateDirPath.call(void 0, baseUrl),
883
883
  `skills-sync-in-progress-${agentLeaseSegment(agent)}`
884
884
  );
885
885
  }
@@ -1038,7 +1038,7 @@ var SkillsStateUnavailableError = class extends Error {
1038
1038
  constructor(baseUrl, error) {
1039
1039
  const detail = error instanceof Error ? error.message : String(error);
1040
1040
  super(
1041
- `Could not save skills state in ${_chunkY4DPU4OMjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1041
+ `Could not save skills state in ${_chunkBGNWI3KHjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1042
1042
  );
1043
1043
  this.name = "SkillsStateUnavailableError";
1044
1044
  }
@@ -1123,7 +1123,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
1123
1123
  }
1124
1124
  function deferredSkillsNoticePath(baseUrl, agents) {
1125
1125
  return _path.join.call(void 0,
1126
- _chunkY4DPU4OMjs.sdkCliStateDirPath.call(void 0, baseUrl),
1126
+ _chunkBGNWI3KHjs.sdkCliStateDirPath.call(void 0, baseUrl),
1127
1127
  `skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
1128
1128
  );
1129
1129
  }
@@ -1157,8 +1157,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
1157
1157
  if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
1158
1158
  }
1159
1159
  function flushDeferredSkillsSyncNotices(baseUrl) {
1160
- if (shouldSkipSkillsSync() || _chunkY4DPU4OMjs.hasActivePluginSkills.call(void 0, )) return;
1161
- const agents = _chunkY4DPU4OMjs.resolveAutoSyncSkillAgents.call(void 0, );
1160
+ if (shouldSkipSkillsSync() || _chunkBGNWI3KHjs.hasActivePluginSkills.call(void 0, )) return;
1161
+ const agents = _chunkBGNWI3KHjs.resolveAutoSyncSkillAgents.call(void 0, );
1162
1162
  if (agents.length === 0) return;
1163
1163
  flushDeferredSkillsNotices(baseUrl, agents);
1164
1164
  }
@@ -1174,7 +1174,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
1174
1174
  }
1175
1175
  function failedSkillsSyncPath(baseUrl, agents) {
1176
1176
  return _path.join.call(void 0,
1177
- _chunkY4DPU4OMjs.sdkCliStateDirPath.call(void 0, baseUrl),
1177
+ _chunkBGNWI3KHjs.sdkCliStateDirPath.call(void 0, baseUrl),
1178
1178
  `skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
1179
1179
  );
1180
1180
  }
@@ -1203,7 +1203,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
1203
1203
  if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
1204
1204
  writeMarkedSkillsSyncVersion(path, remoteVersion);
1205
1205
  const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
1206
- const manualCommand = _optionalChain([probes, 'optionalAccess', _75 => _75.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkY4DPU4OMjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1206
+ const manualCommand = _optionalChain([probes, 'optionalAccess', _75 => _75.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkBGNWI3KHjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1207
1207
  const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _76 => _76.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.`;
1208
1208
  notice(
1209
1209
  `Deepline agent skills are out of date, but ${explanation} To install manually, run:
@@ -1291,7 +1291,7 @@ function buildSdkSkillNames(v1SkillNames2) {
1291
1291
  return sortedUniqueSkillNames(v1SkillNames2);
1292
1292
  }
1293
1293
  function isDefaultAgentSet(agents) {
1294
- return agents.length === _chunkY4DPU4OMjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkY4DPU4OMjs.DEFAULT_SKILL_AGENTS[index]);
1294
+ return agents.length === _chunkBGNWI3KHjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkBGNWI3KHjs.DEFAULT_SKILL_AGENTS[index]);
1295
1295
  }
1296
1296
  function safeSkillFilePath(value) {
1297
1297
  if (typeof value !== "string" || !value) return false;
@@ -1448,10 +1448,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
1448
1448
  method: "POST",
1449
1449
  headers: { "Content-Type": "application/json" },
1450
1450
  body: JSON.stringify({
1451
- sdk_cli: { version: _chunkYT5EODJOjs.SDK_VERSION },
1451
+ sdk_cli: { version: _chunkYGGIZ3VTjs.SDK_VERSION },
1452
1452
  skills: {
1453
1453
  version: localVersion,
1454
- capability: _chunk7VZHXVOQjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1454
+ capability: _chunk3BOIOCNXjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1455
1455
  }
1456
1456
  }),
1457
1457
  signal: controller.signal
@@ -1490,7 +1490,7 @@ function probeInstallers(timeoutMs) {
1490
1490
  }
1491
1491
  function noInstallerProbePath(baseUrl) {
1492
1492
  return _path.join.call(void 0,
1493
- _chunkY4DPU4OMjs.sdkCliStateDirPath.call(void 0, baseUrl),
1493
+ _chunkBGNWI3KHjs.sdkCliStateDirPath.call(void 0, baseUrl),
1494
1494
  "skills-sync-no-installer-unknown.json"
1495
1495
  );
1496
1496
  }
@@ -1569,7 +1569,7 @@ function temporarySkillsSyncSkipCommand() {
1569
1569
  function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
1570
1570
  return resolveShellSpawn(install.command, install.args, platform2);
1571
1571
  }
1572
- function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkY4DPU4OMjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1572
+ function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkBGNWI3KHjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1573
1573
  const commands = [];
1574
1574
  const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
1575
1575
  if (probes.bunx === "available") {
@@ -1711,7 +1711,7 @@ function runLegacySkillsCleanup(agents) {
1711
1711
  }
1712
1712
  }
1713
1713
  function writeSdkSkillsStatusLine(line) {
1714
- const progress = _chunkHUB3CCM2js.getActiveCliProgress.call(void 0, );
1714
+ const progress = _chunkUROQDCVWjs.getActiveCliProgress.call(void 0, );
1715
1715
  if (progress) {
1716
1716
  progress.writeLine(line);
1717
1717
  return;
@@ -1721,11 +1721,11 @@ function writeSdkSkillsStatusLine(line) {
1721
1721
  }
1722
1722
  async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1723
1723
  if (shouldSkipSkillsSync()) return;
1724
- const usingPluginSkills = _chunkY4DPU4OMjs.hasActivePluginSkills.call(void 0, );
1724
+ const usingPluginSkills = _chunkBGNWI3KHjs.hasActivePluginSkills.call(void 0, );
1725
1725
  if (usingPluginSkills) {
1726
1726
  return;
1727
1727
  }
1728
- const agents = _chunkY4DPU4OMjs.resolveAutoSyncSkillAgents.call(void 0, );
1728
+ const agents = _chunkBGNWI3KHjs.resolveAutoSyncSkillAgents.call(void 0, );
1729
1729
  if (options.mode === "detached" && agents.length > 0) {
1730
1730
  flushDeferredSkillsNotices(baseUrl, agents);
1731
1731
  }
@@ -1753,7 +1753,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1753
1753
  return;
1754
1754
  }
1755
1755
  try {
1756
- const localVersion = _chunkY4DPU4OMjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1756
+ const localVersion = _chunkBGNWI3KHjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1757
1757
  const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
1758
1758
  needsUpdate: options.update.needs_update,
1759
1759
  remoteVersion: options.update.remote.version
@@ -1919,7 +1919,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1919
1919
  }
1920
1920
  }
1921
1921
  runLegacySkillsCleanup(agents);
1922
- if (!_chunkY4DPU4OMjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1922
+ if (!_chunkBGNWI3KHjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1923
1923
  notice(
1924
1924
  "Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
1925
1925
  );
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.462",
52
+ version: "0.3.463",
53
53
  updateSummary: {
54
54
  introducedIn: "0.3.90",
55
55
  summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  traceCliSpan
3
- } from "./chunk-LFXLQEZN.mjs";
3
+ } from "./chunk-C25QE4CH.mjs";
4
4
  import {
5
5
  checkSdkCompatibility,
6
6
  enforceSdkCompatibilityResponse,
7
7
  flushDeferredSkillsSyncNotices
8
- } from "./chunk-S42YIQNE.mjs";
8
+ } from "./chunk-UIURR26V.mjs";
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -16,12 +16,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
16
16
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
17
17
 
18
18
 
19
- var _chunk7VZHXVOQjs = require('./chunk-7VZHXVOQ.js');
19
+ var _chunk3BOIOCNXjs = require('./chunk-3BOIOCNX.js');
20
20
 
21
21
  // src/version.ts
22
- var SDK_VERSION = _chunk7VZHXVOQjs.SDK_RELEASE.version;
23
- var SDK_API_MAJOR = _chunk7VZHXVOQjs.SDK_RELEASE.contracts.api.currentMajor;
24
- var SDK_API_CONTRACT = _nullishCoalesce(_chunk7VZHXVOQjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
22
+ var SDK_VERSION = _chunk3BOIOCNXjs.SDK_RELEASE.version;
23
+ var SDK_API_MAJOR = _chunk3BOIOCNXjs.SDK_RELEASE.contracts.api.currentMajor;
24
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunk3BOIOCNXjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
25
25
 
26
26
  // src/agent-runtime.ts
27
27
  var _os = require('os');
@@ -4,13 +4,13 @@
4
4
 
5
5
 
6
6
 
7
- var _chunk3ACMRZRVjs = require('./chunk-3ACMRZRV.js');
8
- require('./chunk-Y4DPU4OM.js');
9
- require('./chunk-YT5EODJO.js');
7
+ var _chunk5LHXOIPTjs = require('./chunk-5LHXOIPT.js');
8
+ require('./chunk-BGNWI3KH.js');
9
+ require('./chunk-YGGIZ3VT.js');
10
10
  require('./chunk-ALJJRZNJ.js');
11
11
  require('./chunk-XNYIZMNQ.js');
12
12
  require('./chunk-DIAWYWT5.js');
13
- require('./chunk-7VZHXVOQ.js');
13
+ require('./chunk-3BOIOCNX.js');
14
14
  require('./chunk-OG64RBAC.js');
15
15
  require('./chunk-COGTRVWW.js');
16
16
 
@@ -128,7 +128,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
128
128
  column.length,
129
129
  ...rows.map((row) => {
130
130
  const value = _nullishCoalesce(row[column], () => ( ""));
131
- return (verbose ? value : _chunk3ACMRZRVjs.clip.call(void 0, value, 42)).length;
131
+ return (verbose ? value : _chunk5LHXOIPTjs.clip.call(void 0, value, 42)).length;
132
132
  })
133
133
  )
134
134
  ])
@@ -138,7 +138,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
138
138
  const body = rows.map(
139
139
  (row) => columns.map((column) => {
140
140
  const raw = _nullishCoalesce(row[column], () => ( ""));
141
- const display = verbose ? raw : _chunk3ACMRZRVjs.clip.call(void 0, raw, 42);
141
+ const display = verbose ? raw : _chunk5LHXOIPTjs.clip.call(void 0, raw, 42);
142
142
  return display.padEnd(widths[column]);
143
143
  }).join(" | ")
144
144
  );
@@ -158,7 +158,7 @@ async function handleCsvShow(path, options, command) {
158
158
  { exitCode: 2 }
159
159
  );
160
160
  }
161
- const allRows = _chunk3ACMRZRVjs.readCsvRows.call(void 0, csvPath);
161
+ const allRows = _chunk5LHXOIPTjs.readCsvRows.call(void 0, csvPath);
162
162
  const [rowStart, rowEnd] = parseRowRange(options.rows);
163
163
  const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
164
164
  const { rows: selected, columns } = selectColumns(
@@ -171,7 +171,7 @@ async function handleCsvShow(path, options, command) {
171
171
  if (options.summary) {
172
172
  const summaries = summarizeColumns(selected, columns);
173
173
  if (format === "json") {
174
- _chunk3ACMRZRVjs.printJson.call(void 0, {
174
+ _chunk5LHXOIPTjs.printJson.call(void 0, {
175
175
  rows: summaries,
176
176
  total_rows: selected.length,
177
177
  source_total_rows: allRows.length
@@ -180,7 +180,7 @@ async function handleCsvShow(path, options, command) {
180
180
  }
181
181
  const displayRows = summaryDisplayRows(summaries);
182
182
  if (format === "csv") {
183
- process.stdout.write(_chunk3ACMRZRVjs.csvStringFromRows.call(void 0, displayRows));
183
+ process.stdout.write(_chunk5LHXOIPTjs.csvStringFromRows.call(void 0, displayRows));
184
184
  return;
185
185
  }
186
186
  process.stdout.write(
@@ -195,7 +195,7 @@ async function handleCsvShow(path, options, command) {
195
195
  return;
196
196
  }
197
197
  if (format === "json") {
198
- _chunk3ACMRZRVjs.printJson.call(void 0, {
198
+ _chunk5LHXOIPTjs.printJson.call(void 0, {
199
199
  rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
200
200
  });
201
201
  return;
@@ -438,7 +438,7 @@ async function handleCsvRenderStart(options) {
438
438
  if (log) {
439
439
  detail = `
440
440
  CSV render log:
441
- ${_chunk3ACMRZRVjs.clip.call(void 0, log, 2e3)}`;
441
+ ${_chunk5LHXOIPTjs.clip.call(void 0, log, 2e3)}`;
442
442
  }
443
443
  } catch (e7) {
444
444
  }
@@ -489,7 +489,7 @@ async function handleCsvRenderStatus(options) {
489
489
  if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
490
490
  if (payload.url) lines.push(`Render URL: ${payload.url}`);
491
491
  lines.push(`Render Health: ${payload.health_status}`);
492
- _chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload, {
492
+ _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0, payload, {
493
493
  json: options.json,
494
494
  text: `${lines.join("\n")}
495
495
  `
@@ -525,7 +525,7 @@ async function handleCsvRenderStop(options) {
525
525
  };
526
526
  const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
527
527
  ` : "No running CSV render process found.\n";
528
- _chunk3ACMRZRVjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
528
+ _chunk5LHXOIPTjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
529
529
  }
530
530
  async function handleCsvRender(action, options) {
531
531
  const normalized = _nullishCoalesce(action, () => ( "start"));