deepline 0.3.512 → 0.3.513

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 (129) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/cli/{artifacts-YSYWQFQQ.mjs → artifacts-AMM4RZNI.mjs} +6 -6
  3. package/dist/cli/{artifacts-5IGM3EYP.js → artifacts-SZA52D3P.js} +18 -18
  4. package/dist/cli/{auth-4MVWCUXS.mjs → auth-3HQ7FXPX.mjs} +5 -5
  5. package/dist/cli/auth-THCURTEC.js +43 -0
  6. package/dist/cli/{billing-SZXRENPC.mjs → billing-7AIKDEQQ.mjs} +7 -7
  7. package/dist/cli/{billing-OYYHWNVS.js → billing-SVFRN4BJ.js} +82 -82
  8. package/dist/cli/{chunk-MQ5GBB7V.mjs → chunk-3SE4O52N.mjs} +1 -1
  9. package/dist/cli/{chunk-VZN6D23P.js → chunk-3UKVFI2R.js} +7 -7
  10. package/dist/cli/{chunk-JDD6OLWN.mjs → chunk-3WHK7WCP.mjs} +3 -3
  11. package/dist/cli/{chunk-YJN55ZWG.mjs → chunk-46QVEEXR.mjs} +1 -1
  12. package/dist/cli/{chunk-Q72Q3ZWB.js → chunk-4EGBOZ53.js} +9 -9
  13. package/dist/cli/{chunk-FF25PDQ2.js → chunk-5IZXMA2L.js} +4 -1
  14. package/dist/cli/{chunk-AATUAFD2.mjs → chunk-5T4SZPVO.mjs} +2 -2
  15. package/dist/cli/{chunk-77DPQI6W.mjs → chunk-5UWWZLMX.mjs} +4 -1
  16. package/dist/cli/{chunk-VGCNLFER.js → chunk-6JNRYX65.js} +2 -2
  17. package/dist/cli/{chunk-OU6AK63V.js → chunk-6UVAYLQG.js} +2 -2
  18. package/dist/cli/{chunk-FJPJ6SO3.mjs → chunk-7NIBAJML.mjs} +2 -2
  19. package/dist/cli/{chunk-TNQ5MF6K.mjs → chunk-7UVKC5G4.mjs} +1 -1
  20. package/dist/cli/{chunk-V6FQRUPJ.js → chunk-ADB6FD2Q.js} +41 -41
  21. package/dist/cli/{chunk-32UMZXCZ.mjs → chunk-B4BKATGX.mjs} +5 -5
  22. package/dist/cli/{chunk-3INAN6EK.mjs → chunk-C5KH6FDN.mjs} +3 -3
  23. package/dist/cli/{chunk-RXZRZEW7.mjs → chunk-CEWRCUSH.mjs} +5 -5
  24. package/dist/cli/{chunk-4QR64X2S.js → chunk-D72M5LBQ.js} +10 -10
  25. package/dist/cli/{chunk-KBM5T6UV.js → chunk-EAQQTYJL.js} +5 -5
  26. package/dist/cli/{chunk-XKFWY4IK.mjs → chunk-FC6BR2OA.mjs} +10 -10
  27. package/dist/cli/{chunk-I6OK54YK.mjs → chunk-FLG3VIDQ.mjs} +5 -5
  28. package/dist/cli/{chunk-ZLHIQU2G.js → chunk-H6WD65CD.js} +96 -96
  29. package/dist/cli/{chunk-4ZDHGAE6.js → chunk-HDDE4Y4V.js} +2 -2
  30. package/dist/cli/{chunk-IMC2HQ6V.js → chunk-JA5PBN44.js} +6 -6
  31. package/dist/cli/{chunk-RR6G6ZCT.js → chunk-JI2LKS5V.js} +11 -11
  32. package/dist/cli/{chunk-EQAKPIGI.mjs → chunk-JNNQ53BX.mjs} +2 -2
  33. package/dist/cli/{chunk-LYOWQKGN.mjs → chunk-K3CUVLW7.mjs} +1 -1
  34. package/dist/cli/{chunk-ZVYMGTZ7.mjs → chunk-KINDIV44.mjs} +4 -4
  35. package/dist/cli/{chunk-DJ4FD5DR.mjs → chunk-LA66PYB4.mjs} +2 -2
  36. package/dist/cli/{chunk-BP4XEO6Z.js → chunk-MPOF4Z44.js} +1 -1
  37. package/dist/cli/{chunk-2R6M62UO.mjs → chunk-OD72PULZ.mjs} +2 -2
  38. package/dist/cli/{chunk-AVYI522S.js → chunk-ORQVTTTM.js} +5 -5
  39. package/dist/cli/{chunk-GJMIW4Q6.mjs → chunk-P2EHYH2Q.mjs} +1 -1
  40. package/dist/cli/{chunk-MTSHUN2R.mjs → chunk-P63SBUEW.mjs} +1 -1
  41. package/dist/cli/{chunk-7U3WY2F3.js → chunk-P6TG7COR.js} +53 -53
  42. package/dist/cli/{chunk-HCMFRAYT.js → chunk-PFEFK2FB.js} +26 -26
  43. package/dist/cli/{chunk-L7CAOWHY.js → chunk-PGHCBL5G.js} +3 -3
  44. package/dist/cli/{chunk-2BS6BRGH.mjs → chunk-PPQU263U.mjs} +2 -2
  45. package/dist/cli/{chunk-JU35QU3Z.js → chunk-QDGUDNVR.js} +7 -7
  46. package/dist/cli/{chunk-P3RYPSOQ.mjs → chunk-ROIFA4H7.mjs} +6 -6
  47. package/dist/cli/{chunk-JH7JISQ2.mjs → chunk-ROJ55CXM.mjs} +1 -1
  48. package/dist/cli/{chunk-JKLFRDQ6.js → chunk-SDD75XIU.js} +6 -6
  49. package/dist/cli/{chunk-W7DAWILZ.js → chunk-TWHJ4WCA.js} +16 -16
  50. package/dist/cli/{chunk-4DSRBHN6.js → chunk-U5QR527Y.js} +44 -44
  51. package/dist/cli/{chunk-O24VWLOY.js → chunk-UDVX7HKU.js} +16 -16
  52. package/dist/cli/{chunk-PJCPFF7J.js → chunk-VMLZQ3VM.js} +14 -14
  53. package/dist/cli/{chunk-YNMHIJC5.mjs → chunk-WFN6SB2B.mjs} +1 -1
  54. package/dist/cli/{chunk-5XLU47DG.mjs → chunk-XCP75LSJ.mjs} +1 -1
  55. package/dist/cli/{chunk-ZZ7SVWKR.js → chunk-Y2SIHXYS.js} +4 -4
  56. package/dist/cli/{chunk-WDCOUJQ5.js → chunk-YZW4ZLU3.js} +21 -21
  57. package/dist/cli/{chunk-TKN2TRW5.js → chunk-Z52XVM5I.js} +3 -3
  58. package/dist/cli/{chunk-T3SUWKUT.mjs → chunk-ZDO67LFA.mjs} +5 -5
  59. package/dist/cli/{chunk-HA5NSCTH.mjs → chunk-ZKUXTF6X.mjs} +2 -2
  60. package/dist/cli/command-docs.js +2 -2
  61. package/dist/cli/command-docs.mjs +1 -1
  62. package/dist/cli/{csv-AY4KT3NZ.mjs → csv-56JWAO3Y.mjs} +4 -4
  63. package/dist/cli/{csv-YR2E5HNM.js → csv-WKF5O6C4.js} +13 -13
  64. package/dist/cli/{db-IMYD3OCM.mjs → db-SENEFS45.mjs} +6 -6
  65. package/dist/cli/{db-YKV6564I.js → db-UURETUXZ.js} +27 -27
  66. package/dist/cli/describe-GIJAGNZM.js +50 -0
  67. package/dist/cli/{describe-72GI2Q6T.mjs → describe-R3XKAGF5.mjs} +18 -18
  68. package/dist/cli/{executions-2YO6KIP3.mjs → executions-BAUUWHSW.mjs} +6 -6
  69. package/dist/cli/{executions-OSNL5CSU.js → executions-WZUS3S2K.js} +8 -8
  70. package/dist/cli/{feedback-SYDNAT62.mjs → feedback-5SCDE247.mjs} +5 -5
  71. package/dist/cli/{feedback-WSA7YTKS.js → feedback-Z6A7WMJS.js} +10 -10
  72. package/dist/cli/{git-WBH7N3EF.mjs → git-246MRTK7.mjs} +5 -5
  73. package/dist/cli/git-D5UAIEQE.js +25 -0
  74. package/dist/cli/index.js +145 -145
  75. package/dist/cli/index.mjs +44 -44
  76. package/dist/cli/{legacy-noops-BZPLWY5C.js → legacy-noops-AKETAVNI.js} +9 -9
  77. package/dist/cli/{legacy-noops-USZM4ZXF.mjs → legacy-noops-M242HT67.mjs} +6 -6
  78. package/dist/cli/{monitors-6HOZMLEV.mjs → monitors-N5T6PLCX.mjs} +7 -7
  79. package/dist/cli/{monitors-XHXAMMYC.js → monitors-QIHYTSKD.js} +100 -100
  80. package/dist/cli/{org-BAAOAZF3.js → org-BSCPIN7Y.js} +72 -72
  81. package/dist/cli/{org-LT3DICB4.mjs → org-YMDLKBVM.mjs} +6 -6
  82. package/dist/cli/{pages-7NP4PKLA.js → pages-BYSQBWD5.js} +18 -18
  83. package/dist/cli/{pages-MOCSTZZQ.mjs → pages-FRLPAY6I.mjs} +6 -6
  84. package/dist/cli/{play-MGJ7B7RL.mjs → play-CMJI6RNI.mjs} +18 -18
  85. package/dist/cli/{play-CGUL22GL.js → play-OIJAMP5P.js} +317 -317
  86. package/dist/cli/{providers-5LCUHKX2.js → providers-6Q7H2RYZ.js} +9 -9
  87. package/dist/cli/{providers-AOWBHJ24.mjs → providers-KWFIH3E7.mjs} +6 -6
  88. package/dist/cli/{quickstart-7YZUT7GO.js → quickstart-GU35UZPU.js} +6 -6
  89. package/dist/cli/{quickstart-Z6NA2CCM.mjs → quickstart-UZWAQ7VJ.mjs} +4 -4
  90. package/dist/cli/{run-7QGBNUKE.mjs → run-AJ24G4CT.mjs} +23 -23
  91. package/dist/cli/{run-M66ILCWL.js → run-OYOQIVBM.js} +41 -41
  92. package/dist/cli/{search-Z2T3B4V4.mjs → search-2KNDV3DL.mjs} +8 -8
  93. package/dist/cli/search-UZM6U4MZ.js +33 -0
  94. package/dist/cli/{search-output-6OHPSJGK.js → search-output-526FOJQD.js} +6 -6
  95. package/dist/cli/{search-output-MLHVBRIR.mjs → search-output-X5TMIIA4.mjs} +4 -4
  96. package/dist/cli/{secrets-T7MW2DMK.js → secrets-QL5SMK62.js} +15 -15
  97. package/dist/cli/{secrets-VBSILT5H.mjs → secrets-XEOGG6TV.mjs} +6 -6
  98. package/dist/cli/sessions-T27GUYZX.js +18 -0
  99. package/dist/cli/{sessions-KNITGDLS.mjs → sessions-Z352OY5B.mjs} +6 -6
  100. package/dist/cli/{settings-NBZRRKZS.mjs → settings-AET5AKBY.mjs} +13 -13
  101. package/dist/cli/{settings-OSEBDBKR.js → settings-EKLYIRWJ.js} +86 -86
  102. package/dist/cli/{setup-7DZPC6FC.js → setup-IJWDEYLG.js} +50 -50
  103. package/dist/cli/{setup-WTEQPZ5I.mjs → setup-JPGTZYR2.mjs} +10 -10
  104. package/dist/cli/{skills-JMD2MNJZ.mjs → skills-DGCK6723.mjs} +8 -8
  105. package/dist/cli/skills-MLMVPHWG.js +37 -0
  106. package/dist/cli/tools-5WBKZRLQ.js +57 -0
  107. package/dist/cli/{tools-LK5BM2Z7.mjs → tools-7GEQLQWX.mjs} +17 -17
  108. package/dist/cli/update-JK4NLT4H.js +35 -0
  109. package/dist/cli/{update-IVUSIA2E.mjs → update-SAN6LDPT.mjs} +10 -10
  110. package/dist/cli/{workflow-4QP6G54M.mjs → workflow-C66GOHRB.mjs} +7 -7
  111. package/dist/cli/{workflow-GY374FMJ.js → workflow-E4NGYGGM.js} +17 -17
  112. package/dist/index.js +9 -9
  113. package/dist/index.mjs +6 -6
  114. package/dist/install-integrity.json +106 -106
  115. package/dist/release.d.mts +1 -1
  116. package/dist/release.d.ts +1 -1
  117. package/dist/release.js +2 -2
  118. package/dist/release.mjs +1 -1
  119. package/dist/server.js +5 -5
  120. package/dist/server.mjs +3 -3
  121. package/package.json +1 -1
  122. package/dist/cli/auth-M3AJBJ3O.js +0 -43
  123. package/dist/cli/describe-UFGHQBM7.js +0 -50
  124. package/dist/cli/git-YYOW4CYQ.js +0 -25
  125. package/dist/cli/search-OZQH5VMI.js +0 -33
  126. package/dist/cli/sessions-XKEIBOTP.js +0 -18
  127. package/dist/cli/skills-R6RO6MQF.js +0 -37
  128. package/dist/cli/tools-NBBDUNPR.js +0 -57
  129. package/dist/cli/update-BI2ABPGX.js +0 -35
@@ -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.512",
52
+ version: "0.3.513",
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."
@@ -3,7 +3,7 @@
3
3
  var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
4
4
 
5
5
 
6
- var _chunkJU35QU3Zjs = require('./chunk-JU35QU3Z.js');
6
+ var _chunkQDGUDNVRjs = require('./chunk-QDGUDNVR.js');
7
7
 
8
8
 
9
9
  var _chunkRNSHCJMEjs = require('./chunk-RNSHCJME.js');
@@ -11,7 +11,7 @@ var _chunkRNSHCJMEjs = require('./chunk-RNSHCJME.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkVZN6D23Pjs = require('./chunk-VZN6D23P.js');
14
+ var _chunk3UKVFI2Rjs = require('./chunk-3UKVFI2R.js');
15
15
 
16
16
 
17
17
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
@@ -581,7 +581,7 @@ function parseInputFlagValue(raw) {
581
581
  return raw;
582
582
  }
583
583
  function parsePlayRunOptions(args, initialInput = null) {
584
- const selection = _chunkVZN6D23Pjs.parseJsonFields.call(void 0, args, "run");
584
+ const selection = _chunk3UKVFI2Rjs.parseJsonFields.call(void 0, args, "run");
585
585
  args = selection.args;
586
586
  const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
587
587
  let filePath = null;
@@ -593,7 +593,7 @@ function parsePlayRunOptions(args, initialInput = null) {
593
593
  let revisionSelector = null;
594
594
  const watch = !args.includes("--no-wait");
595
595
  const dryRun = args.includes("--dry-run");
596
- let jsonOutput = dryRun ? _chunkVZN6D23Pjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkVZN6D23Pjs.argsWantJson.call(void 0, args);
596
+ let jsonOutput = dryRun ? _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunk3UKVFI2Rjs.argsWantJson.call(void 0, args);
597
597
  const fullJson = args.includes("--full");
598
598
  const force = args.includes("--force") || args.includes("--from-start");
599
599
  const forceToolRefresh = args.includes("--force-tool-refresh") || args.includes("--refresh-cache");
@@ -656,7 +656,7 @@ function parsePlayRunOptions(args, initialInput = null) {
656
656
  "--log-level requires one of: debug, info, warn, error."
657
657
  );
658
658
  }
659
- const parsed = _chunkJU35QU3Zjs.parseLogLevel.call(void 0, value);
659
+ const parsed = _chunkQDGUDNVRjs.parseLogLevel.call(void 0, value);
660
660
  if (!parsed) {
661
661
  throw new Error(
662
662
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -974,7 +974,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
974
974
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
975
975
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
976
976
  );
977
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkJU35QU3Zjs.parseLogLevel.call(void 0, options.logLevel);
977
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkQDGUDNVRjs.parseLogLevel.call(void 0, options.logLevel);
978
978
  if (!logLevel)
979
979
  throw new Error("--log-level requires one of: debug, info, warn, error.");
980
980
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -988,13 +988,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
988
988
  if (debugAlias || debugMapLatency && logLevel === "info")
989
989
  logLevel = "debug";
990
990
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
991
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkVZN6D23Pjs.parseJsonFields.call(void 0,
992
- [...fullJson ? ["--full"] : [], ..._chunkVZN6D23Pjs.jsonFieldArgs.call(void 0, options.json)],
991
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunk3UKVFI2Rjs.parseJsonFields.call(void 0,
992
+ [...fullJson ? ["--full"] : [], ..._chunk3UKVFI2Rjs.jsonFieldArgs.call(void 0, options.json)],
993
993
  "run"
994
994
  ).fields;
995
995
  const watch = options.wait === false ? false : base.watch;
996
996
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
997
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkVZN6D23Pjs.argsWantJson.call(void 0, []) : explicitJson;
997
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunk3UKVFI2Rjs.argsWantJson.call(void 0, []) : explicitJson;
998
998
  const verboseLogs = Boolean(
999
999
  debugAlias || logLevel === "debug" || debugMapLatency
1000
1000
  );
@@ -908,7 +908,10 @@ Authoring rules:
908
908
  For large datasets, keep working sets bounded and checkpoint progress;
909
909
  inline ctx.runPlay shares parent memory, while ctx.runPlayAsync starts an
910
910
  independent run. A larger profile does not make a job resumable. This is
911
- not the CLI wait timeout.
911
+ not the CLI wait timeout. Size for a measured peak, not a guess. For file
912
+ transforms, stream through disk and pass paths to subprocesses: Node and
913
+ Python share the sandbox's memory. Persist outputs before a checkpoint,
914
+ because scratch files can disappear on resume.
912
915
  Recurring sourcing: .run({ key: 'domain', mode: 'net_new' }) returns only
913
916
  rows the table has not seen before.
914
917
  Results: project each answer into flat columns (the value, its source,
@@ -2,10 +2,10 @@ import {
2
2
  HttpClient,
3
3
  resolveCliCommandContext,
4
4
  resolveConfig
5
- } from "./chunk-MQ5GBB7V.mjs";
5
+ } from "./chunk-3SE4O52N.mjs";
6
6
  import {
7
7
  detectAgentRuntime
8
- } from "./chunk-TNQ5MF6K.mjs";
8
+ } from "./chunk-7UVKC5G4.mjs";
9
9
  import {
10
10
  DeeplineError,
11
11
  serializeToolExecutionFailure
@@ -908,7 +908,10 @@ Authoring rules:
908
908
  For large datasets, keep working sets bounded and checkpoint progress;
909
909
  inline ctx.runPlay shares parent memory, while ctx.runPlayAsync starts an
910
910
  independent run. A larger profile does not make a job resumable. This is
911
- not the CLI wait timeout.
911
+ not the CLI wait timeout. Size for a measured peak, not a guess. For file
912
+ transforms, stream through disk and pass paths to subprocesses: Node and
913
+ Python share the sandbox's memory. Persist outputs before a checkpoint,
914
+ because scratch files can disappear on resume.
912
915
  Recurring sourcing: .run({ key: 'domain', mode: 'net_new' }) returns only
913
916
  rows the table has not seen before.
914
917
  Results: project each answer into flat columns (the value, its source,
@@ -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; }
2
2
 
3
- var _chunkVZN6D23Pjs = require('./chunk-VZN6D23P.js');
3
+ var _chunk3UKVFI2Rjs = require('./chunk-3UKVFI2R.js');
4
4
 
5
5
  // src/cli/feedback-preferences.ts
6
6
 
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
57
57
  const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
58
58
  const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
59
59
  if (options.json) {
60
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
60
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
61
61
  { ok: false, code, exitCode: 2, message },
62
62
  { json: true }
63
63
  );
@@ -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 _chunk4DSRBHN6js = require('./chunk-4DSRBHN6.js');
3
+ var _chunkU5QR527Yjs = require('./chunk-U5QR527Y.js');
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  var _child_process = require('child_process');
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
13
13
  }
14
14
  function readNpmVersion(env) {
15
15
  try {
16
- const plan = _chunk4DSRBHN6js.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkU5QR527Yjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
17
17
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
18
18
  encoding: "utf8",
19
19
  env,
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  traceCliSpan
3
- } from "./chunk-JH7JISQ2.mjs";
3
+ } from "./chunk-ROJ55CXM.mjs";
4
4
  import {
5
5
  checkSdkCompatibility,
6
6
  enforceSdkCompatibilityResponse,
7
7
  flushDeferredSkillsSyncNotices
8
- } from "./chunk-RXZRZEW7.mjs";
8
+ } from "./chunk-CEWRCUSH.mjs";
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -16,7 +16,7 @@ import {
16
16
  } from "./chunk-HBL4PM5Q.mjs";
17
17
  import {
18
18
  SDK_RELEASE
19
- } from "./chunk-YJN55ZWG.mjs";
19
+ } from "./chunk-46QVEEXR.mjs";
20
20
 
21
21
  // src/version.ts
22
22
  var SDK_VERSION = SDK_RELEASE.version;
@@ -11,20 +11,20 @@
11
11
 
12
12
 
13
13
 
14
- var _chunk4DSRBHN6js = require('./chunk-4DSRBHN6.js');
14
+ var _chunkU5QR527Yjs = require('./chunk-U5QR527Y.js');
15
15
 
16
16
 
17
- var _chunkVZN6D23Pjs = require('./chunk-VZN6D23P.js');
17
+ var _chunk3UKVFI2Rjs = require('./chunk-3UKVFI2R.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
- var _chunkL7CAOWHYjs = require('./chunk-L7CAOWHY.js');
23
+ var _chunkPGHCBL5Gjs = require('./chunk-PGHCBL5G.js');
24
24
 
25
25
 
26
26
 
27
- var _chunkZZ7SVWKRjs = require('./chunk-ZZ7SVWKR.js');
27
+ var _chunkY2SIHXYSjs = require('./chunk-Y2SIHXYS.js');
28
28
 
29
29
 
30
30
  var _chunkRLX5ZFNXjs = require('./chunk-RLX5ZFNX.js');
@@ -145,7 +145,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
145
145
  return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
146
146
  }
147
147
  function resolveLocalRoot() {
148
- const target = _chunkL7CAOWHYjs.resolveProjectPinTarget.call(void 0, );
148
+ const target = _chunkPGHCBL5Gjs.resolveProjectPinTarget.call(void 0, );
149
149
  if (!target.ok) {
150
150
  throw new Error(
151
151
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -156,7 +156,7 @@ function resolveLocalRoot() {
156
156
  return target.dir;
157
157
  }
158
158
  function detectSkillsAgents(input) {
159
- const runtime = _nullishCoalesce(input.runtime, () => ( _chunkZZ7SVWKRjs.detectAgentRuntime.call(void 0, )));
159
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunkY2SIHXYSjs.detectAgentRuntime.call(void 0, )));
160
160
  const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
161
161
  if (knownAgent) return [knownAgent];
162
162
  const roots = [
@@ -171,11 +171,11 @@ function detectSkillsAgents(input) {
171
171
  return detected.length > 0 ? detected : ["*"];
172
172
  }
173
173
  function skillsStatePathForScope(baseUrl, scope, root) {
174
- return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkL7CAOWHYjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
174
+ return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkPGHCBL5Gjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
175
175
  }
176
176
  function buildSkillsPlan(input) {
177
177
  const scopeArgs = input.scope === "global" ? ["--global"] : [];
178
- const legacyNames = [..._chunk4DSRBHN6js.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
178
+ const legacyNames = [..._chunkU5QR527Yjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
179
179
  (a, b) => a.localeCompare(b)
180
180
  );
181
181
  return {
@@ -189,7 +189,7 @@ function buildSkillsPlan(input) {
189
189
  args: [
190
190
  "exec",
191
191
  "--yes",
192
- `--package=${_chunk4DSRBHN6js.SKILLS_NPX_PACKAGE}`,
192
+ `--package=${_chunkU5QR527Yjs.SKILLS_NPX_PACKAGE}`,
193
193
  "--",
194
194
  "skills",
195
195
  "remove",
@@ -205,11 +205,11 @@ function buildSkillsPlan(input) {
205
205
  args: [
206
206
  "exec",
207
207
  "--yes",
208
- `--package=${_chunk4DSRBHN6js.SKILLS_NPX_PACKAGE}`,
208
+ `--package=${_chunkU5QR527Yjs.SKILLS_NPX_PACKAGE}`,
209
209
  "--",
210
210
  "skills",
211
211
  "add",
212
- _chunk4DSRBHN6js.skillsSourceUrl.call(void 0, input.baseUrl),
212
+ _chunkU5QR527Yjs.skillsSourceUrl.call(void 0, input.baseUrl),
213
213
  "--agent",
214
214
  ...input.agents,
215
215
  ...scopeArgs,
@@ -246,7 +246,7 @@ function readSkillsInstallState(path) {
246
246
  }
247
247
  function runProcess(command, args, cwd) {
248
248
  return new Promise((resolve, reject) => {
249
- const plan = _chunk4DSRBHN6js.resolveShellSpawn.call(void 0,
249
+ const plan = _chunkU5QR527Yjs.resolveShellSpawn.call(void 0,
250
250
  command,
251
251
  args,
252
252
  process.platform,
@@ -268,7 +268,7 @@ function runProcess(command, args, cwd) {
268
268
  child.kill("SIGTERM");
269
269
  reject(
270
270
  new Error(
271
- `${_chunk4DSRBHN6js.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
271
+ `${_chunkU5QR527Yjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
272
272
  )
273
273
  );
274
274
  }, SKILLS_PROCESS_TIMEOUT_MS);
@@ -279,7 +279,7 @@ function runProcess(command, args, cwd) {
279
279
  child.once("close", (code) => {
280
280
  clearTimeout(timeout);
281
281
  if (code && stderr.trim()) {
282
- process.stderr.write(`${_chunk4DSRBHN6js.SKILLS_NPX_PACKAGE} exited ${code}.
282
+ process.stderr.write(`${_chunkU5QR527Yjs.SKILLS_NPX_PACKAGE} exited ${code}.
283
283
  `);
284
284
  }
285
285
  resolve(_nullishCoalesce(code, () => ( 1)));
@@ -287,7 +287,7 @@ function runProcess(command, args, cwd) {
287
287
  });
288
288
  }
289
289
  async function showSkills(options, name) {
290
- const baseUrl = _chunkL7CAOWHYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
290
+ const baseUrl = _chunkPGHCBL5Gjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
291
291
  const url = name ? `${baseUrl}/.well-known/skills/${encodeURIComponent(name)}/SKILL.md` : `${baseUrl}/.well-known/skills/index.json`;
292
292
  try {
293
293
  const response = await fetch(url, {
@@ -300,7 +300,7 @@ async function showSkills(options, name) {
300
300
  }
301
301
  if (name) {
302
302
  const markdown = await response.text();
303
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
303
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
304
304
  { ok: true, status: "completed", skill: { name, markdown } },
305
305
  { json: options.json, text: markdown }
306
306
  );
@@ -310,7 +310,7 @@ async function showSkills(options, name) {
310
310
  const skills = (_nullishCoalesce(index.skills, () => ( []))).filter(
311
311
  (skill) => skill.install_surface === "v1" && skill.name
312
312
  );
313
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
313
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
314
314
  {
315
315
  ok: true,
316
316
  status: "completed",
@@ -327,7 +327,7 @@ Read one with: deepline skills show <name>
327
327
  );
328
328
  return 0;
329
329
  } catch (error) {
330
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
330
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
331
331
  {
332
332
  ok: false,
333
333
  status: "failed",
@@ -350,7 +350,7 @@ async function runSkillsCommand(options, dependencies = {}) {
350
350
  scope = normalizeScope(options.scope);
351
351
  root = scope === "local" ? resolveLocalRoot() : null;
352
352
  } catch (error) {
353
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
353
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
354
354
  {
355
355
  ok: false,
356
356
  status: "failed",
@@ -362,22 +362,22 @@ async function runSkillsCommand(options, dependencies = {}) {
362
362
  );
363
363
  return 2;
364
364
  }
365
- const baseUrl = _chunkL7CAOWHYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
365
+ const baseUrl = _chunkPGHCBL5Gjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
366
366
  const catalog = {
367
- skillNames: [..._chunk4DSRBHN6js.DEFAULT_SDK_SKILL_NAMES],
368
- version: _chunkZZ7SVWKRjs.SDK_VERSION
367
+ skillNames: [..._chunkU5QR527Yjs.DEFAULT_SDK_SKILL_NAMES],
368
+ version: _chunkY2SIHXYSjs.SDK_VERSION
369
369
  };
370
370
  const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
371
371
  const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
372
372
  if (options.dryRun) {
373
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
373
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
374
374
  { ok: true, status: "planned", dryRun: true, ...plan },
375
375
  { json: options.json }
376
376
  );
377
377
  return 0;
378
378
  }
379
- if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunk4DSRBHN6js.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
380
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
379
+ if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkU5QR527Yjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
380
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
381
381
  {
382
382
  ok: true,
383
383
  status: "current",
@@ -409,10 +409,10 @@ async function runSkillsCommand(options, dependencies = {}) {
409
409
  }
410
410
  if (scope === "local" && root) {
411
411
  const managedNames = [
412
- .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunk4DSRBHN6js.LEGACY_SKILL_NAMES_TO_REMOVE])
412
+ .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkU5QR527Yjs.LEGACY_SKILL_NAMES_TO_REMOVE])
413
413
  ];
414
414
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
415
- _chunkL7CAOWHYjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
415
+ _chunkPGHCBL5Gjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
416
416
  ".deepline/",
417
417
  ...agentRoots.flatMap(
418
418
  (agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
@@ -421,7 +421,7 @@ async function runSkillsCommand(options, dependencies = {}) {
421
421
  }
422
422
  let lease;
423
423
  try {
424
- lease = scope === "global" ? await _chunk4DSRBHN6js.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
424
+ lease = scope === "global" ? await _chunkU5QR527Yjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
425
425
  waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
426
426
  onWait: () => process.stderr.write(
427
427
  "Waiting for a background Deepline skills refresh to finish...\n"
@@ -429,8 +429,8 @@ async function runSkillsCommand(options, dependencies = {}) {
429
429
  }) : { release: () => {
430
430
  } };
431
431
  } catch (error) {
432
- if (!(error instanceof _chunk4DSRBHN6js.SkillsStateUnavailableError)) throw error;
433
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
432
+ if (!(error instanceof _chunkU5QR527Yjs.SkillsStateUnavailableError)) throw error;
433
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
434
434
  {
435
435
  ok: false,
436
436
  status: "failed",
@@ -446,7 +446,7 @@ async function runSkillsCommand(options, dependencies = {}) {
446
446
  return 5;
447
447
  }
448
448
  if (!lease) {
449
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
449
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
450
450
  {
451
451
  ok: false,
452
452
  status: "failed",
@@ -455,7 +455,7 @@ async function runSkillsCommand(options, dependencies = {}) {
455
455
  scope,
456
456
  agents,
457
457
  message: "A background Deepline skills refresh is still running for these agents.",
458
- next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunk4DSRBHN6js.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
458
+ next: `Retry in a moment: deepline skills install --scope ${scope}. If no refresh is running, remove ${_chunkU5QR527Yjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
459
459
  },
460
460
  { json: options.json }
461
461
  );
@@ -504,7 +504,7 @@ async function runSkillsInstallWithLease(input) {
504
504
  }
505
505
  }
506
506
  } catch (error) {
507
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
507
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
508
508
  {
509
509
  ok: false,
510
510
  status: "failed",
@@ -520,7 +520,7 @@ async function runSkillsInstallWithLease(input) {
520
520
  return 5;
521
521
  }
522
522
  if (missing.length > 0) {
523
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
523
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
524
524
  {
525
525
  ok: false,
526
526
  status: "failed",
@@ -560,7 +560,7 @@ async function runSkillsInstallWithLease(input) {
560
560
  {
561
561
  schemaVersion: 1,
562
562
  installedAt: (/* @__PURE__ */ new Date()).toISOString(),
563
- cliVersion: _chunkZZ7SVWKRjs.SDK_VERSION,
563
+ cliVersion: _chunkY2SIHXYSjs.SDK_VERSION,
564
564
  scope,
565
565
  agents,
566
566
  skillsVersion: plan.version,
@@ -573,9 +573,9 @@ async function runSkillsInstallWithLease(input) {
573
573
  "utf8"
574
574
  );
575
575
  if (scope === "global") {
576
- _chunk4DSRBHN6js.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
576
+ _chunkU5QR527Yjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
577
577
  }
578
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
578
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
579
579
  {
580
580
  ok: true,
581
581
  status: "complete",
@@ -624,7 +624,7 @@ Examples:
624
624
  "after",
625
625
  `
626
626
  Notes:
627
- This command reinstalls current Deepline-managed skills using ${_chunk4DSRBHN6js.SKILLS_NPX_PACKAGE},
627
+ This command reinstalls current Deepline-managed skills using ${_chunkU5QR527Yjs.SKILLS_NPX_PACKAGE},
628
628
  then removes legacy Deepline skill names. Local scope writes into the resolved
629
629
  persistent project.
630
630
 
@@ -636,13 +636,13 @@ Examples:
636
636
  ).action(async (options) => {
637
637
  process.exitCode = await runSkillsCommand(options);
638
638
  });
639
- program.command(_chunk4DSRBHN6js.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
639
+ program.command(_chunkU5QR527Yjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
640
640
  "--claim <token>",
641
641
  "Owner token of the leases this child was started for."
642
642
  ).action(async (options) => {
643
643
  const claim = _optionalChain([options, 'access', _9 => _9.claim, 'optionalAccess', _10 => _10.trim, 'call', _11 => _11()]);
644
644
  if (!claim) {
645
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
645
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
646
646
  {
647
647
  ok: false,
648
648
  status: "failed",
@@ -655,7 +655,7 @@ Examples:
655
655
  process.exitCode = 2;
656
656
  return;
657
657
  }
658
- await _chunk4DSRBHN6js.syncSdkSkillsIfNeeded.call(void 0, _chunkL7CAOWHYjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
658
+ await _chunkU5QR527Yjs.syncSdkSkillsIfNeeded.call(void 0, _chunkPGHCBL5Gjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
659
659
  mode: "inline",
660
660
  notices: "defer",
661
661
  claim
@@ -4,20 +4,20 @@ import {
4
4
  resolveUpdatePlan,
5
5
  runAutomaticUpdatePlan,
6
6
  shouldRunCliAutoUpdate
7
- } from "./chunk-I6OK54YK.mjs";
7
+ } from "./chunk-FLG3VIDQ.mjs";
8
8
  import {
9
9
  isCiEnvironment
10
- } from "./chunk-RXZRZEW7.mjs";
10
+ } from "./chunk-CEWRCUSH.mjs";
11
11
  import {
12
12
  addJsonNotice,
13
13
  isJsonOutputMode
14
- } from "./chunk-AATUAFD2.mjs";
14
+ } from "./chunk-5T4SZPVO.mjs";
15
15
  import {
16
16
  resolveApiKeyForBaseUrl
17
- } from "./chunk-MQ5GBB7V.mjs";
17
+ } from "./chunk-3SE4O52N.mjs";
18
18
  import {
19
19
  SDK_VERSION
20
- } from "./chunk-TNQ5MF6K.mjs";
20
+ } from "./chunk-7UVKC5G4.mjs";
21
21
 
22
22
  // src/cli/compatibility-catalog.ts
23
23
  var readers = /* @__PURE__ */ new WeakMap();
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-AATUAFD2.mjs";
5
+ } from "./chunk-5T4SZPVO.mjs";
6
6
  import {
7
7
  ACTIVE_ORG_ID_ENV,
8
8
  ACTIVE_ORG_NAME_ENV,
@@ -22,14 +22,14 @@ import {
22
22
  saveHostEnvValues,
23
23
  saveProjectDeeplineEnvValues,
24
24
  storedHostApiKey
25
- } from "./chunk-MQ5GBB7V.mjs";
25
+ } from "./chunk-3SE4O52N.mjs";
26
26
  import {
27
27
  SDK_API_CONTRACT,
28
28
  SDK_VERSION,
29
29
  connectionFailureMessage,
30
30
  detectAgentRuntime,
31
31
  networkCauseCode
32
- } from "./chunk-TNQ5MF6K.mjs";
32
+ } from "./chunk-7UVKC5G4.mjs";
33
33
  import {
34
34
  DeeplineError
35
35
  } from "./chunk-HBL4PM5Q.mjs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  getActiveCliProgress
3
- } from "./chunk-LYOWQKGN.mjs";
3
+ } from "./chunk-K3CUVLW7.mjs";
4
4
  import {
5
5
  maybeReportAutomaticSkillsSyncFailure
6
- } from "./chunk-2R6M62UO.mjs";
6
+ } from "./chunk-OD72PULZ.mjs";
7
7
  import {
8
8
  DEFAULT_SKILL_AGENTS,
9
9
  KNOWN_SKILL_AGENTS,
@@ -14,17 +14,17 @@ import {
14
14
  sdkCliStateDirPath,
15
15
  skillsAgentPathSegment,
16
16
  writeSdkSkillsLocalVersion
17
- } from "./chunk-MQ5GBB7V.mjs";
17
+ } from "./chunk-3SE4O52N.mjs";
18
18
  import {
19
19
  SDK_API_CONTRACT,
20
20
  SDK_API_MAJOR,
21
21
  SDK_VERSION,
22
22
  deploymentProtectionHeaders,
23
23
  detectAgentRuntime
24
- } from "./chunk-TNQ5MF6K.mjs";
24
+ } from "./chunk-7UVKC5G4.mjs";
25
25
  import {
26
26
  SDK_RELEASE
27
- } from "./chunk-YJN55ZWG.mjs";
27
+ } from "./chunk-46QVEEXR.mjs";
28
28
 
29
29
  // src/compat.ts
30
30
  import { randomUUID } from "crypto";
@@ -1,13 +1,13 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkVGCNLFERjs = require('./chunk-VGCNLFER.js');
3
+ var _chunk6JNRYX65js = require('./chunk-6JNRYX65.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkVZN6D23Pjs = require('./chunk-VZN6D23P.js');
7
+ var _chunk3UKVFI2Rjs = require('./chunk-3UKVFI2R.js');
8
8
 
9
9
 
10
- var _chunkZZ7SVWKRjs = require('./chunk-ZZ7SVWKR.js');
10
+ var _chunkY2SIHXYSjs = require('./chunk-Y2SIHXYS.js');
11
11
 
12
12
  // src/cli/commands/sessions.ts
13
13
 
@@ -142,7 +142,7 @@ function currentSessionFile(agent) {
142
142
  const newestFirst = listSessionFiles(agent).sort(
143
143
  (a, b) => b.mtimeMs - a.mtimeMs
144
144
  );
145
- const sessionId = _chunkZZ7SVWKRjs.agentSessionIdFromEnvironment.call(void 0,
145
+ const sessionId = _chunkY2SIHXYSjs.agentSessionIdFromEnvironment.call(void 0,
146
146
  process.env,
147
147
  agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
148
148
  );
@@ -454,7 +454,7 @@ function buildSessionUploadContent(raw) {
454
454
  return { encodedContent: encoded, needsChunking: true };
455
455
  }
456
456
  async function uploadPayload(path, payload) {
457
- const { http } = _chunkVZN6D23Pjs.getAuthedHttpClient.call(void 0, );
457
+ const { http } = _chunk3UKVFI2Rjs.getAuthedHttpClient.call(void 0, );
458
458
  return await http.post(path, payload);
459
459
  }
460
460
  async function uploadChunkedSessions(sessions, options) {
@@ -487,7 +487,7 @@ async function uploadChunkedSessions(sessions, options) {
487
487
  ...options.rating ? { rating: options.rating } : {}
488
488
  });
489
489
  const sessionIds = sessions.map((session) => session.sessionId);
490
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
490
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
491
491
  {
492
492
  ...response,
493
493
  ok: true,
@@ -508,7 +508,7 @@ async function uploadChunkedSessions(sessions, options) {
508
508
  );
509
509
  }
510
510
  async function handleSessionsSend(options) {
511
- if (_chunkVGCNLFERjs.rejectRestrictedFeedback.call(void 0, options)) return;
511
+ if (_chunk6JNRYX65js.rejectRestrictedFeedback.call(void 0, options)) return;
512
512
  const rating = parseSessionRating(options.rating);
513
513
  if (options.file) {
514
514
  const filePath = _path.resolve.call(void 0, options.file);
@@ -520,7 +520,7 @@ async function handleSessionsSend(options) {
520
520
  filename: _path.basename.call(void 0, filePath),
521
521
  ...rating ? { rating } : {}
522
522
  });
523
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
523
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
524
524
  {
525
525
  ...response2,
526
526
  ok: true,
@@ -570,7 +570,7 @@ async function handleSessionsSend(options) {
570
570
  ...rating ? { rating } : {}
571
571
  });
572
572
  const sessionIds = built.map((session) => session.sessionId);
573
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
573
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
574
574
  {
575
575
  ...response,
576
576
  ok: true,
@@ -678,7 +678,7 @@ ${refreshMeta}
678
678
  </body>
679
679
  </html>`;
680
680
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
681
- _chunkVZN6D23Pjs.printCommandEnvelope.call(void 0,
681
+ _chunk3UKVFI2Rjs.printCommandEnvelope.call(void 0,
682
682
  {
683
683
  ok: true,
684
684
  file: outputPath,