deepline 0.3.508 → 0.3.510

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 (136) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/monitors/org-monitor-limits.ts +7 -2
  3. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
  4. package/dist/bundling-sources/shared_libs/play-runtime/db-session-plan.ts +47 -6
  5. package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-execution-relay.ts +94 -43
  6. package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-receipt-gateway.ts +111 -27
  7. package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/runtime-topology.ts +79 -6
  8. package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +80 -6
  9. package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-transient-retry.ts +571 -0
  10. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +1 -0
  11. package/dist/cli/auth-S2Z5YMU3.js +43 -0
  12. package/dist/cli/{auth-2URIN52G.mjs → auth-USS2W3UV.mjs} +5 -5
  13. package/dist/cli/{billing-IW23GSR5.mjs → billing-JCUWM5XB.mjs} +7 -7
  14. package/dist/cli/{billing-R2HY2ZVJ.js → billing-LQQHU443.js} +82 -82
  15. package/dist/cli/{chunk-7PELFO3C.js → chunk-2JXEZAJF.js} +21 -21
  16. package/dist/cli/chunk-3LXU22UZ.js +77 -0
  17. package/dist/cli/{chunk-74UO7THC.js → chunk-4NJK6P5T.js} +4 -4
  18. package/dist/cli/{chunk-FXKKFM7J.js → chunk-4ZIIS6KG.js} +9 -9
  19. package/dist/cli/{chunk-63MCLOR2.mjs → chunk-563HM4D2.mjs} +6 -6
  20. package/dist/cli/{chunk-XSOLA2ED.mjs → chunk-5DU7RXDW.mjs} +4 -4
  21. package/dist/cli/{chunk-OWH7SSBO.mjs → chunk-5MYXW6M6.mjs} +2 -2
  22. package/dist/cli/{chunk-3BZ74K27.js → chunk-5N2HFB3G.js} +16 -16
  23. package/dist/cli/{chunk-2YOM5J3G.js → chunk-63DHG7BM.js} +26 -26
  24. package/dist/cli/{chunk-P7GOQTUN.js → chunk-6AL2VF3E.js} +14 -14
  25. package/dist/cli/{chunk-QBZECLNG.mjs → chunk-7BF4R26M.mjs} +3 -3
  26. package/dist/cli/{chunk-JRHMPZJX.js → chunk-7VQKU6MS.js} +7 -7
  27. package/dist/cli/{chunk-3C6VBHNW.mjs → chunk-7VT7RMZ2.mjs} +2 -2
  28. package/dist/cli/{chunk-M37I4A2Z.js → chunk-ASBWPRBN.js} +16 -16
  29. package/dist/cli/{chunk-3ZNPIJX6.js → chunk-B2T7PBS6.js} +41 -41
  30. package/dist/cli/{chunk-NC2FIUPX.mjs → chunk-B2U3LVSO.mjs} +1 -1
  31. package/dist/cli/{chunk-RNZQ7RDW.mjs → chunk-B6Q6BHSY.mjs} +2 -2
  32. package/dist/cli/{chunk-IZZ7FFWP.js → chunk-BPGFNVH2.js} +44 -44
  33. package/dist/cli/{chunk-2PYFXXYA.mjs → chunk-CLV4T5FN.mjs} +2 -2
  34. package/dist/cli/{chunk-JEB6BNIU.mjs → chunk-DEPBCRKG.mjs} +15 -4
  35. package/dist/cli/{chunk-DZ7JCRAL.mjs → chunk-DMF56C6D.mjs} +2 -2
  36. package/dist/cli/{chunk-RWXHMG6F.js → chunk-EEQ2QQOH.js} +21 -10
  37. package/dist/cli/{chunk-UDH3YMBI.mjs → chunk-EJ57CA2L.mjs} +1 -1
  38. package/dist/cli/{chunk-JYNHHO3J.js → chunk-F6IXWFPF.js} +6 -6
  39. package/dist/cli/{chunk-DWV7KM6H.mjs → chunk-FFPLCSTZ.mjs} +10 -10
  40. package/dist/cli/{chunk-VXNL4HLE.mjs → chunk-FND6GZZ4.mjs} +5 -5
  41. package/dist/cli/{chunk-D73YB5NQ.js → chunk-HC27PYJM.js} +2 -2
  42. package/dist/cli/{chunk-FRT5MFLF.mjs → chunk-HOKOJGQW.mjs} +1 -1
  43. package/dist/cli/{chunk-AYNO4VFW.js → chunk-JNECQ5QF.js} +11 -11
  44. package/dist/cli/chunk-JVEU6MXD.mjs +77 -0
  45. package/dist/cli/{chunk-ZLIAUR2E.js → chunk-JY73USD7.js} +2 -2
  46. package/dist/cli/{chunk-K4RME7AV.mjs → chunk-KXSOZYCS.mjs} +1 -1
  47. package/dist/cli/{chunk-ESVK4Z7S.js → chunk-LF3FF2B2.js} +1 -1
  48. package/dist/cli/{chunk-63BGKU3A.js → chunk-N7FV7OM3.js} +96 -96
  49. package/dist/cli/{chunk-Q4I5YKN4.mjs → chunk-OEG6VCK4.mjs} +1 -1
  50. package/dist/cli/{chunk-2LY42EZJ.mjs → chunk-PQ56GE55.mjs} +1 -1
  51. package/dist/cli/{chunk-GRGZKXLL.mjs → chunk-Q5EJO4TE.mjs} +5 -5
  52. package/dist/cli/{chunk-N5HRBS4K.js → chunk-QRQBKLOM.js} +3 -3
  53. package/dist/cli/{chunk-4DAR2GYV.mjs → chunk-RHKFNEV2.mjs} +2 -2
  54. package/dist/cli/{chunk-C6TP4DR3.mjs → chunk-UV524JZ5.mjs} +1 -1
  55. package/dist/cli/{chunk-KSQO32L5.mjs → chunk-V6DLYRSO.mjs} +1 -1
  56. package/dist/cli/{chunk-J3LJ37WD.js → chunk-VPJSQMWQ.js} +3 -3
  57. package/dist/cli/{chunk-3XBI4KZM.mjs → chunk-WAOLTP6R.mjs} +2 -2
  58. package/dist/cli/{chunk-JXYVBF5L.mjs → chunk-WC5754QJ.mjs} +5 -5
  59. package/dist/cli/{chunk-RUD77W2Y.js → chunk-XJZU7KO4.js} +5 -5
  60. package/dist/cli/{chunk-GDHLL5EQ.js → chunk-XK3AJFYQ.js} +35 -10
  61. package/dist/cli/{chunk-JUYW6TSU.js → chunk-XL4FFVWL.js} +7 -7
  62. package/dist/cli/{chunk-ZL2ME3UT.js → chunk-XRLE2FPE.js} +6 -6
  63. package/dist/cli/{chunk-R4S2AK3Q.js → chunk-YDALHHUC.js} +53 -53
  64. package/dist/cli/{chunk-IF242BIJ.mjs → chunk-YYUVOUEH.mjs} +5 -5
  65. package/dist/cli/{chunk-TVADI7K5.js → chunk-ZCYV6MZH.js} +5 -5
  66. package/dist/cli/{chunk-AFSYNOG4.mjs → chunk-ZRACZKEE.mjs} +35 -10
  67. package/dist/cli/command-docs.js +2 -2
  68. package/dist/cli/command-docs.mjs +1 -1
  69. package/dist/cli/{csv-CMJSMC2I.mjs → csv-MTFVEDPU.mjs} +4 -4
  70. package/dist/cli/{csv-DPDO6BU6.js → csv-UXFQZLZM.js} +13 -13
  71. package/dist/cli/{db-SL3EFN6V.mjs → db-3WPUYCCI.mjs} +6 -6
  72. package/dist/cli/{db-PPPKNTT5.js → db-RGWT6B7K.js} +27 -27
  73. package/dist/cli/describe-LNCLA2LA.js +50 -0
  74. package/dist/cli/{describe-XLN33FJX.mjs → describe-XJY5654F.mjs} +18 -18
  75. package/dist/cli/{executions-6YDTV2J6.js → executions-IWTALFNB.js} +8 -8
  76. package/dist/cli/{executions-O6Z5B5NY.mjs → executions-PDE4V5YH.mjs} +6 -6
  77. package/dist/cli/{feedback-DP7LPWAD.mjs → feedback-BMOVTPC4.mjs} +11 -7
  78. package/dist/cli/{feedback-BZ434BN4.js → feedback-I72P4XZS.js} +15 -11
  79. package/dist/cli/{git-MI7E5WGL.mjs → git-QJG3EF4P.mjs} +5 -5
  80. package/dist/cli/git-QWH7SPGF.js +25 -0
  81. package/dist/cli/index.js +173 -156
  82. package/dist/cli/index.mjs +76 -59
  83. package/dist/cli/{legacy-noops-65WNPQVZ.js → legacy-noops-5P75CQC7.js} +9 -8
  84. package/dist/cli/{legacy-noops-6VYXF2MG.mjs → legacy-noops-MZ45GDMK.mjs} +6 -5
  85. package/dist/cli/{monitors-BYUCTVSC.js → monitors-5PHQZDZM.js} +100 -100
  86. package/dist/cli/{monitors-Y7I5ZVCN.mjs → monitors-VIOBUG2X.mjs} +7 -7
  87. package/dist/cli/{org-F2ASWTFY.js → org-B5LDVP2P.js} +72 -72
  88. package/dist/cli/{org-IW3YD6JZ.mjs → org-D5RTFJNY.mjs} +6 -6
  89. package/dist/cli/{pages-X6HLRQNV.js → pages-BUJYG3JL.js} +18 -18
  90. package/dist/cli/{pages-H2CXNIDB.mjs → pages-XWZL3YV2.mjs} +6 -6
  91. package/dist/cli/{play-LLEEDXRX.mjs → play-OSXLGCLZ.mjs} +93 -54
  92. package/dist/cli/{play-H2EM7DTI.js → play-SEC3EE7H.js} +468 -429
  93. package/dist/cli/{providers-BZR5JONN.mjs → providers-ENSURIW6.mjs} +6 -6
  94. package/dist/cli/{providers-6R2SPOEV.js → providers-RQPUASLI.js} +9 -9
  95. package/dist/cli/{quickstart-KVES7R6D.mjs → quickstart-HJTK6XWI.mjs} +4 -4
  96. package/dist/cli/{quickstart-PW7ONQUH.js → quickstart-XDTU4MAT.js} +6 -6
  97. package/dist/cli/{run-HVUQROBE.js → run-GX2SU5AT.js} +41 -41
  98. package/dist/cli/{run-RDI3Q6GO.mjs → run-ZMWSQAR2.mjs} +23 -23
  99. package/dist/cli/search-7WPABWYO.js +33 -0
  100. package/dist/cli/{search-3TJ24CUF.mjs → search-DZHZBHWT.mjs} +8 -8
  101. package/dist/cli/{search-output-JHT553SL.js → search-output-3JVZERNV.js} +6 -6
  102. package/dist/cli/{search-output-Y57OBQXX.mjs → search-output-MNHAR754.mjs} +4 -4
  103. package/dist/cli/{secrets-OZK7GRD5.mjs → secrets-VALVNVXB.mjs} +6 -6
  104. package/dist/cli/{secrets-U5JHWAXU.js → secrets-WO2LMDQ2.js} +15 -15
  105. package/dist/cli/sessions-2IA2DGWO.js +18 -0
  106. package/dist/cli/{sessions-D6DSEQ2T.mjs → sessions-EPYCH3AY.mjs} +6 -5
  107. package/dist/cli/{settings-DLPEHYGS.js → settings-OSF4O5HM.js} +109 -82
  108. package/dist/cli/{settings-ITLSLT2R.mjs → settings-W2ABZUD4.mjs} +39 -12
  109. package/dist/cli/{setup-Y5ZYEC6U.js → setup-DCXNQG6R.js} +50 -50
  110. package/dist/cli/{setup-XTYLF2CF.mjs → setup-XI2ERSMQ.mjs} +10 -10
  111. package/dist/cli/skills-QMD2WARJ.js +37 -0
  112. package/dist/cli/{skills-C4WCAVII.mjs → skills-ZO4AH2YR.mjs} +8 -8
  113. package/dist/cli/tools-53E6GBQU.js +57 -0
  114. package/dist/cli/{tools-ZESAPVOW.mjs → tools-FTECXZYA.mjs} +17 -17
  115. package/dist/cli/update-PPPNR6J5.js +35 -0
  116. package/dist/cli/{update-4PCKVDCS.mjs → update-WPFZO2JE.mjs} +10 -10
  117. package/dist/cli/{workflow-42CL4TVR.mjs → workflow-7X75IP3D.mjs} +7 -7
  118. package/dist/cli/{workflow-XXKXMPTI.js → workflow-PKMU33LV.js} +17 -17
  119. package/dist/index.js +9 -9
  120. package/dist/index.mjs +6 -6
  121. package/dist/install-integrity.json +105 -102
  122. package/dist/release.d.mts +1 -1
  123. package/dist/release.d.ts +1 -1
  124. package/dist/release.js +2 -2
  125. package/dist/release.mjs +1 -1
  126. package/dist/server.js +5 -5
  127. package/dist/server.mjs +3 -3
  128. package/package.json +1 -1
  129. package/dist/cli/auth-LFU77QDI.js +0 -43
  130. package/dist/cli/describe-JKZ67X3E.js +0 -50
  131. package/dist/cli/git-U5N6CTML.js +0 -25
  132. package/dist/cli/search-NKEEGLY6.js +0 -33
  133. package/dist/cli/sessions-PNMYAJNB.js +0 -17
  134. package/dist/cli/skills-K6FVG3BX.js +0 -37
  135. package/dist/cli/tools-LSALTN7I.js +0 -57
  136. package/dist/cli/update-P5KGNFNL.js +0 -35
@@ -1,9 +1,9 @@
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 _chunkN5HRBS4Kjs = require('./chunk-N5HRBS4K.js');
3
+ var _chunkQRQBKLOMjs = require('./chunk-QRQBKLOM.js');
4
4
 
5
5
 
6
- var _chunkP7GOQTUNjs = require('./chunk-P7GOQTUN.js');
6
+ var _chunk6AL2VF3Ejs = require('./chunk-6AL2VF3E.js');
7
7
 
8
8
 
9
9
 
@@ -14,17 +14,17 @@ var _chunkP7GOQTUNjs = require('./chunk-P7GOQTUN.js');
14
14
 
15
15
 
16
16
 
17
- var _chunkJ3LJ37WDjs = require('./chunk-J3LJ37WD.js');
17
+ var _chunkVPJSQMWQjs = require('./chunk-VPJSQMWQ.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
23
 
24
- var _chunk74UO7THCjs = require('./chunk-74UO7THC.js');
24
+ var _chunk4NJK6P5Tjs = require('./chunk-4NJK6P5T.js');
25
25
 
26
26
 
27
- var _chunkESVK4Z7Sjs = require('./chunk-ESVK4Z7S.js');
27
+ var _chunkLF3FF2B2js = require('./chunk-LF3FF2B2.js');
28
28
 
29
29
  // src/compat.ts
30
30
  var _crypto = require('crypto');
@@ -59,7 +59,7 @@ function shouldSkipCompatibilityCheck() {
59
59
  return value === "1" || value === "true" || value === "yes";
60
60
  }
61
61
  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, )) {
62
- return _path.join.call(void 0, _chunkJ3LJ37WDjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
62
+ return _path.join.call(void 0, _chunkVPJSQMWQjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
63
63
  }
64
64
  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, )) {
65
65
  return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
@@ -67,9 +67,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
67
67
  function compatibilityCacheKey(baseUrl, command, skillsVersion) {
68
68
  return JSON.stringify({
69
69
  baseUrl: baseUrl.replace(/\/$/, ""),
70
- version: _chunk74UO7THCjs.SDK_VERSION,
71
- apiContract: _chunk74UO7THCjs.SDK_API_CONTRACT,
72
- apiMajor: _chunk74UO7THCjs.SDK_API_MAJOR,
70
+ version: _chunk4NJK6P5Tjs.SDK_VERSION,
71
+ apiContract: _chunk4NJK6P5Tjs.SDK_API_CONTRACT,
72
+ apiMajor: _chunk4NJK6P5Tjs.SDK_API_MAJOR,
73
73
  command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
74
74
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
75
75
  });
@@ -77,8 +77,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
77
77
  function legacyCompatibilityCacheKey(baseUrl, command) {
78
78
  return JSON.stringify({
79
79
  baseUrl: baseUrl.replace(/\/$/, ""),
80
- version: _chunk74UO7THCjs.SDK_VERSION,
81
- apiContract: _chunk74UO7THCjs.SDK_API_CONTRACT,
80
+ version: _chunk4NJK6P5Tjs.SDK_VERSION,
81
+ apiContract: _chunk4NJK6P5Tjs.SDK_API_CONTRACT,
82
82
  command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
83
83
  });
84
84
  }
@@ -103,7 +103,7 @@ function isSavedWithin(savedAt, windowMs, now) {
103
103
  }
104
104
  var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
105
105
  function claimUpdateAdvisory(baseUrl, now = Date.now()) {
106
- const path = _path.join.call(void 0, _chunkJ3LJ37WDjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
106
+ const path = _path.join.call(void 0, _chunkVPJSQMWQjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
107
107
  try {
108
108
  const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
109
109
  if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
@@ -190,7 +190,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
190
190
  );
191
191
  try {
192
192
  const url = new URL("/api/v2/sdk/compat", baseUrl);
193
- url.searchParams.set("version", _chunk74UO7THCjs.SDK_VERSION);
193
+ url.searchParams.set("version", _chunk4NJK6P5Tjs.SDK_VERSION);
194
194
  if (_optionalChain([options, 'access', _34 => _34.command, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()])) {
195
195
  url.searchParams.set("command", options.command.trim());
196
196
  }
@@ -198,7 +198,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
198
198
  url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
199
199
  url.searchParams.set(
200
200
  "skills_cli_capability",
201
- String(_chunkESVK4Z7Sjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
201
+ String(_chunkLF3FF2B2js.SDK_RELEASE.packageCapabilities.skillsGuidance)
202
202
  );
203
203
  }
204
204
  if (options.catalog) {
@@ -210,14 +210,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
210
210
  const response = await fetch(url, {
211
211
  method: "GET",
212
212
  headers: {
213
- ..._chunk74UO7THCjs.deploymentProtectionHeaders.call(void 0, ),
214
- "User-Agent": `deepline-ts-sdk/${_chunk74UO7THCjs.SDK_VERSION}`,
215
- "X-Deepline-SDK-Version": _chunk74UO7THCjs.SDK_VERSION,
216
- "X-Deepline-API-Major": String(_chunk74UO7THCjs.SDK_API_MAJOR),
217
- "X-Deepline-API-Contract": _chunk74UO7THCjs.SDK_API_CONTRACT,
213
+ ..._chunk4NJK6P5Tjs.deploymentProtectionHeaders.call(void 0, ),
214
+ "User-Agent": `deepline-ts-sdk/${_chunk4NJK6P5Tjs.SDK_VERSION}`,
215
+ "X-Deepline-SDK-Version": _chunk4NJK6P5Tjs.SDK_VERSION,
216
+ "X-Deepline-API-Major": String(_chunk4NJK6P5Tjs.SDK_API_MAJOR),
217
+ "X-Deepline-API-Contract": _chunk4NJK6P5Tjs.SDK_API_CONTRACT,
218
218
  "X-Deepline-CLI-Update-Preferences": "1",
219
219
  "X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
220
- ...options.catalog ? { Authorization: `Bearer ${_chunkJ3LJ37WDjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
220
+ ...options.catalog ? { Authorization: `Bearer ${_chunkVPJSQMWQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
221
221
  ..._optionalChain([options, 'access', _37 => _37.catalog, 'optionalAccess', _38 => _38.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
222
222
  },
223
223
  signal: controller.signal
@@ -386,7 +386,7 @@ function skillsSourceUrl(baseUrl) {
386
386
  function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
387
387
  const skillNames = Array.isArray(skillName) ? skillName : [skillName];
388
388
  const [firstSkillName, ...extraSkillNames] = skillNames;
389
- const agents = _nullishCoalesce(options.agents, () => ( _chunkJ3LJ37WDjs.DEFAULT_SKILL_AGENTS));
389
+ const agents = _nullishCoalesce(options.agents, () => ( _chunkVPJSQMWQjs.DEFAULT_SKILL_AGENTS));
390
390
  const values = {
391
391
  skills_index_url: skillsIndexUrl(baseUrl),
392
392
  skills_source_url: skillsSourceUrl(baseUrl),
@@ -514,25 +514,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
514
514
  var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
515
515
  var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
516
516
  function shouldSkipSkillsSync() {
517
- if (_chunk74UO7THCjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
517
+ if (_chunk4NJK6P5Tjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
518
518
  return true;
519
519
  }
520
520
  const value = _optionalChain([process, 'access', _57 => _57.env, 'access', _58 => _58.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _59 => _59.trim, 'call', _60 => _60(), 'access', _61 => _61.toLowerCase, 'call', _62 => _62()]);
521
521
  return value === "1" || value === "true" || value === "yes" || value === "on" || !isCliSkillsSyncEnabled();
522
522
  }
523
523
  function unavailableSkillsNoticePath(baseUrl) {
524
- return _path.join.call(void 0, _chunkJ3LJ37WDjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
524
+ return _path.join.call(void 0, _chunkVPJSQMWQjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
525
525
  }
526
526
  var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
527
527
  var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
528
- var agentLeaseSegment = _chunkJ3LJ37WDjs.skillsAgentPathSegment;
528
+ var agentLeaseSegment = _chunkVPJSQMWQjs.skillsAgentPathSegment;
529
529
  function sortedLeaseAgents(agents) {
530
- const expanded = agents.includes("*") ? [...agents, ..._chunkJ3LJ37WDjs.KNOWN_SKILL_AGENTS] : agents;
530
+ const expanded = agents.includes("*") ? [...agents, ..._chunkVPJSQMWQjs.KNOWN_SKILL_AGENTS] : agents;
531
531
  return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
532
532
  }
533
533
  function inProgressSkillsSyncPath(baseUrl, agent) {
534
534
  return _path.join.call(void 0,
535
- _chunkJ3LJ37WDjs.sdkCliStateDirPath.call(void 0, baseUrl),
535
+ _chunkVPJSQMWQjs.sdkCliStateDirPath.call(void 0, baseUrl),
536
536
  `skills-sync-in-progress-${agentLeaseSegment(agent)}`
537
537
  );
538
538
  }
@@ -691,7 +691,7 @@ var SkillsStateUnavailableError = class extends Error {
691
691
  constructor(baseUrl, error) {
692
692
  const detail = error instanceof Error ? error.message : String(error);
693
693
  super(
694
- `Could not save skills state in ${_chunkJ3LJ37WDjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
694
+ `Could not save skills state in ${_chunkVPJSQMWQjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
695
695
  );
696
696
  this.name = "SkillsStateUnavailableError";
697
697
  }
@@ -776,7 +776,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
776
776
  }
777
777
  function deferredSkillsNoticePath(baseUrl, agents) {
778
778
  return _path.join.call(void 0,
779
- _chunkJ3LJ37WDjs.sdkCliStateDirPath.call(void 0, baseUrl),
779
+ _chunkVPJSQMWQjs.sdkCliStateDirPath.call(void 0, baseUrl),
780
780
  `skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
781
781
  );
782
782
  }
@@ -810,8 +810,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
810
810
  if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
811
811
  }
812
812
  function flushDeferredSkillsSyncNotices(baseUrl) {
813
- if (shouldSkipSkillsSync() || _chunkJ3LJ37WDjs.hasActivePluginSkills.call(void 0, )) return;
814
- const agents = _chunkJ3LJ37WDjs.resolveAutoSyncSkillAgents.call(void 0, );
813
+ if (shouldSkipSkillsSync() || _chunkVPJSQMWQjs.hasActivePluginSkills.call(void 0, )) return;
814
+ const agents = _chunkVPJSQMWQjs.resolveAutoSyncSkillAgents.call(void 0, );
815
815
  if (agents.length === 0) return;
816
816
  flushDeferredSkillsNotices(baseUrl, agents);
817
817
  }
@@ -827,7 +827,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
827
827
  }
828
828
  function failedSkillsSyncPath(baseUrl, agents) {
829
829
  return _path.join.call(void 0,
830
- _chunkJ3LJ37WDjs.sdkCliStateDirPath.call(void 0, baseUrl),
830
+ _chunkVPJSQMWQjs.sdkCliStateDirPath.call(void 0, baseUrl),
831
831
  `skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
832
832
  );
833
833
  }
@@ -856,7 +856,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
856
856
  if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
857
857
  writeMarkedSkillsSyncVersion(path, remoteVersion);
858
858
  const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
859
- const manualCommand = _optionalChain([probes, 'optionalAccess', _66 => _66.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkJ3LJ37WDjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
859
+ const manualCommand = _optionalChain([probes, 'optionalAccess', _66 => _66.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkVPJSQMWQjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
860
860
  const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _67 => _67.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.`;
861
861
  notice(
862
862
  `Deepline agent skills are out of date, but ${explanation} To install manually, run:
@@ -944,7 +944,7 @@ function buildSdkSkillNames(v1SkillNames2) {
944
944
  return sortedUniqueSkillNames(v1SkillNames2);
945
945
  }
946
946
  function isDefaultAgentSet(agents) {
947
- return agents.length === _chunkJ3LJ37WDjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkJ3LJ37WDjs.DEFAULT_SKILL_AGENTS[index]);
947
+ return agents.length === _chunkVPJSQMWQjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkVPJSQMWQjs.DEFAULT_SKILL_AGENTS[index]);
948
948
  }
949
949
  function safeSkillFilePath(value) {
950
950
  if (typeof value !== "string" || !value) return false;
@@ -1101,10 +1101,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
1101
1101
  method: "POST",
1102
1102
  headers: { "Content-Type": "application/json" },
1103
1103
  body: JSON.stringify({
1104
- sdk_cli: { version: _chunk74UO7THCjs.SDK_VERSION },
1104
+ sdk_cli: { version: _chunk4NJK6P5Tjs.SDK_VERSION },
1105
1105
  skills: {
1106
1106
  version: localVersion,
1107
- capability: _chunkESVK4Z7Sjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1107
+ capability: _chunkLF3FF2B2js.SDK_RELEASE.packageCapabilities.skillsGuidance
1108
1108
  }
1109
1109
  }),
1110
1110
  signal: controller.signal
@@ -1143,7 +1143,7 @@ function probeInstallers(timeoutMs) {
1143
1143
  }
1144
1144
  function noInstallerProbePath(baseUrl) {
1145
1145
  return _path.join.call(void 0,
1146
- _chunkJ3LJ37WDjs.sdkCliStateDirPath.call(void 0, baseUrl),
1146
+ _chunkVPJSQMWQjs.sdkCliStateDirPath.call(void 0, baseUrl),
1147
1147
  "skills-sync-no-installer-unknown.json"
1148
1148
  );
1149
1149
  }
@@ -1222,7 +1222,7 @@ function temporarySkillsSyncSkipCommand() {
1222
1222
  function resolveSkillsInstallSpawn(install, platform = process.platform) {
1223
1223
  return resolveShellSpawn(install.command, install.args, platform);
1224
1224
  }
1225
- function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkJ3LJ37WDjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1225
+ function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkVPJSQMWQjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1226
1226
  const commands = [];
1227
1227
  const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
1228
1228
  if (probes.bunx === "available") {
@@ -1364,7 +1364,7 @@ function runLegacySkillsCleanup(agents) {
1364
1364
  }
1365
1365
  }
1366
1366
  function writeSdkSkillsStatusLine(line) {
1367
- const progress = _chunkN5HRBS4Kjs.getActiveCliProgress.call(void 0, );
1367
+ const progress = _chunkQRQBKLOMjs.getActiveCliProgress.call(void 0, );
1368
1368
  if (progress) {
1369
1369
  progress.writeLine(line);
1370
1370
  return;
@@ -1375,11 +1375,11 @@ function writeSdkSkillsStatusLine(line) {
1375
1375
  async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1376
1376
  const skip = shouldSkipSkillsSync();
1377
1377
  if (skip && !options.claim) return;
1378
- const usingPluginSkills = _chunkJ3LJ37WDjs.hasActivePluginSkills.call(void 0, );
1378
+ const usingPluginSkills = _chunkVPJSQMWQjs.hasActivePluginSkills.call(void 0, );
1379
1379
  if (usingPluginSkills) {
1380
1380
  return;
1381
1381
  }
1382
- const agents = _chunkJ3LJ37WDjs.resolveAutoSyncSkillAgents.call(void 0, );
1382
+ const agents = _chunkVPJSQMWQjs.resolveAutoSyncSkillAgents.call(void 0, );
1383
1383
  if (options.mode === "detached" && agents.length > 0) {
1384
1384
  flushDeferredSkillsNotices(baseUrl, agents);
1385
1385
  }
@@ -1411,7 +1411,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1411
1411
  return;
1412
1412
  }
1413
1413
  try {
1414
- const localVersion = _chunkJ3LJ37WDjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1414
+ const localVersion = _chunkVPJSQMWQjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1415
1415
  const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
1416
1416
  needsUpdate: options.update.needs_update,
1417
1417
  remoteVersion: options.update.remote.version
@@ -1533,7 +1533,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1533
1533
  update.remoteVersion,
1534
1534
  agents
1535
1535
  );
1536
- void _chunkP7GOQTUNjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1536
+ void _chunk6AL2VF3Ejs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1537
1537
  baseUrl,
1538
1538
  remoteSkillsVersion: update.remoteVersion,
1539
1539
  agents,
@@ -1564,7 +1564,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1564
1564
  notice(
1565
1565
  publishedFailure ? `Deepline could not verify the published skills: ${detail}. The local version remains stale; it will retry automatically on a later command.` : `Deepline agent-skills refresh could not verify the five installed targets: ${detail}. The local version remains stale. After fixing the install, remove ${failedSkillsSyncPath(baseUrl, agents)} to retry this version automatically.`
1566
1566
  );
1567
- void _chunkP7GOQTUNjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1567
+ void _chunk6AL2VF3Ejs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
1568
1568
  baseUrl,
1569
1569
  remoteSkillsVersion: update.remoteVersion,
1570
1570
  agents,
@@ -1577,7 +1577,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1577
1577
  }
1578
1578
  }
1579
1579
  runLegacySkillsCleanup(agents);
1580
- if (!_chunkJ3LJ37WDjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1580
+ if (!_chunkVPJSQMWQjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1581
1581
  notice(
1582
1582
  "Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
1583
1583
  );
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-DZ7JCRAL.mjs";
5
+ } from "./chunk-DMF56C6D.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-FRT5MFLF.mjs";
8
+ } from "./chunk-HOKOJGQW.mjs";
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -1,10 +1,13 @@
1
+ import {
2
+ rejectRestrictedFeedback
3
+ } from "./chunk-JVEU6MXD.mjs";
1
4
  import {
2
5
  getAuthedHttpClient,
3
6
  printCommandEnvelope
4
- } from "./chunk-DZ7JCRAL.mjs";
7
+ } from "./chunk-DMF56C6D.mjs";
5
8
  import {
6
9
  agentSessionIdFromEnvironment
7
- } from "./chunk-2LY42EZJ.mjs";
10
+ } from "./chunk-PQ56GE55.mjs";
8
11
 
9
12
  // src/cli/commands/sessions.ts
10
13
  import {
@@ -505,6 +508,7 @@ async function uploadChunkedSessions(sessions, options) {
505
508
  );
506
509
  }
507
510
  async function handleSessionsSend(options) {
511
+ if (rejectRestrictedFeedback(options)) return;
508
512
  const rating = parseSessionRating(options.rating);
509
513
  if (options.file) {
510
514
  const filePath = resolve(options.file);
@@ -717,8 +721,10 @@ function registerSessionSendRenderCommands(parent, familyName) {
717
721
  parent.command("send").description("Upload session transcript(s) or a local file to Deepline.").addHelpText(
718
722
  "after",
719
723
  `
724
+ In the default ask mode, ask the user first and pass --requested if they agree.
725
+
720
726
  Examples:
721
- deepline ${familyName} send --current-session
727
+ deepline ${familyName} send --current-session --requested
722
728
  deepline ${familyName} send --agent codex --current-session
723
729
  deepline ${familyName} send --session-id 5a3bfb97-a2d9-49d9-82c6-52ccc03dadca --label "pilot run"
724
730
  deepline ${familyName} send --current-session --rating poor # tag the session as one that went poorly
@@ -742,9 +748,14 @@ Examples:
742
748
  "--current-session",
743
749
  "Use the calling agent's session, else the newest in this directory"
744
750
  ).option("--file <path>", "Upload a raw local file instead of a session").option(
751
+ "--requested",
752
+ "Mark the upload as requested or approved by the user"
753
+ ).option(
745
754
  "--rating <good|poor|neutral>",
746
755
  "Tag the upload by outcome, not tone, so Deepline can filter sessions: good = the user's goal was met without product problems; poor = the goal was missed, or a product failure, bug, or avoidable friction (including a substantial workaround) got in the way; neutral = partly met or unclear."
747
- ).option("--json", "Emit JSON output").action(handleSessionsSend);
756
+ ).option("--json", "Emit JSON output").action(
757
+ (options, command) => handleSessionsSend({ ...options, json: command.optsWithGlobals().json })
758
+ );
748
759
  parent.command("render").description("Render local session transcript(s) to an HTML viewer.").addHelpText(
749
760
  "after",
750
761
  `
@@ -2,10 +2,10 @@ import {
2
2
  HttpClient,
3
3
  resolveCliCommandContext,
4
4
  resolveConfig
5
- } from "./chunk-FRT5MFLF.mjs";
5
+ } from "./chunk-HOKOJGQW.mjs";
6
6
  import {
7
7
  detectAgentRuntime
8
- } from "./chunk-2LY42EZJ.mjs";
8
+ } from "./chunk-PQ56GE55.mjs";
9
9
  import {
10
10
  DeeplineError,
11
11
  serializeToolExecutionFailure
@@ -1,10 +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 _chunk3LXU22UZjs = require('./chunk-3LXU22UZ.js');
3
4
 
4
- var _chunkJUYW6TSUjs = require('./chunk-JUYW6TSU.js');
5
5
 
6
6
 
7
- var _chunk74UO7THCjs = require('./chunk-74UO7THC.js');
7
+ var _chunkXL4FFVWLjs = require('./chunk-XL4FFVWL.js');
8
+
9
+
10
+ var _chunk4NJK6P5Tjs = require('./chunk-4NJK6P5T.js');
8
11
 
9
12
  // src/cli/commands/sessions.ts
10
13
 
@@ -139,7 +142,7 @@ function currentSessionFile(agent) {
139
142
  const newestFirst = listSessionFiles(agent).sort(
140
143
  (a, b) => b.mtimeMs - a.mtimeMs
141
144
  );
142
- const sessionId = _chunk74UO7THCjs.agentSessionIdFromEnvironment.call(void 0,
145
+ const sessionId = _chunk4NJK6P5Tjs.agentSessionIdFromEnvironment.call(void 0,
143
146
  process.env,
144
147
  agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
145
148
  );
@@ -451,7 +454,7 @@ function buildSessionUploadContent(raw) {
451
454
  return { encodedContent: encoded, needsChunking: true };
452
455
  }
453
456
  async function uploadPayload(path, payload) {
454
- const { http } = _chunkJUYW6TSUjs.getAuthedHttpClient.call(void 0, );
457
+ const { http } = _chunkXL4FFVWLjs.getAuthedHttpClient.call(void 0, );
455
458
  return await http.post(path, payload);
456
459
  }
457
460
  async function uploadChunkedSessions(sessions, options) {
@@ -484,7 +487,7 @@ async function uploadChunkedSessions(sessions, options) {
484
487
  ...options.rating ? { rating: options.rating } : {}
485
488
  });
486
489
  const sessionIds = sessions.map((session) => session.sessionId);
487
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
490
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
488
491
  {
489
492
  ...response,
490
493
  ok: true,
@@ -505,6 +508,7 @@ async function uploadChunkedSessions(sessions, options) {
505
508
  );
506
509
  }
507
510
  async function handleSessionsSend(options) {
511
+ if (_chunk3LXU22UZjs.rejectRestrictedFeedback.call(void 0, options)) return;
508
512
  const rating = parseSessionRating(options.rating);
509
513
  if (options.file) {
510
514
  const filePath = _path.resolve.call(void 0, options.file);
@@ -516,7 +520,7 @@ async function handleSessionsSend(options) {
516
520
  filename: _path.basename.call(void 0, filePath),
517
521
  ...rating ? { rating } : {}
518
522
  });
519
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
523
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
520
524
  {
521
525
  ...response2,
522
526
  ok: true,
@@ -566,7 +570,7 @@ async function handleSessionsSend(options) {
566
570
  ...rating ? { rating } : {}
567
571
  });
568
572
  const sessionIds = built.map((session) => session.sessionId);
569
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
573
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
570
574
  {
571
575
  ...response,
572
576
  ok: true,
@@ -674,7 +678,7 @@ ${refreshMeta}
674
678
  </body>
675
679
  </html>`;
676
680
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
677
- _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
681
+ _chunkXL4FFVWLjs.printCommandEnvelope.call(void 0,
678
682
  {
679
683
  ok: true,
680
684
  file: outputPath,
@@ -717,8 +721,10 @@ function registerSessionSendRenderCommands(parent, familyName) {
717
721
  parent.command("send").description("Upload session transcript(s) or a local file to Deepline.").addHelpText(
718
722
  "after",
719
723
  `
724
+ In the default ask mode, ask the user first and pass --requested if they agree.
725
+
720
726
  Examples:
721
- deepline ${familyName} send --current-session
727
+ deepline ${familyName} send --current-session --requested
722
728
  deepline ${familyName} send --agent codex --current-session
723
729
  deepline ${familyName} send --session-id 5a3bfb97-a2d9-49d9-82c6-52ccc03dadca --label "pilot run"
724
730
  deepline ${familyName} send --current-session --rating poor # tag the session as one that went poorly
@@ -742,9 +748,14 @@ Examples:
742
748
  "--current-session",
743
749
  "Use the calling agent's session, else the newest in this directory"
744
750
  ).option("--file <path>", "Upload a raw local file instead of a session").option(
751
+ "--requested",
752
+ "Mark the upload as requested or approved by the user"
753
+ ).option(
745
754
  "--rating <good|poor|neutral>",
746
755
  "Tag the upload by outcome, not tone, so Deepline can filter sessions: good = the user's goal was met without product problems; poor = the goal was missed, or a product failure, bug, or avoidable friction (including a substantial workaround) got in the way; neutral = partly met or unclear."
747
- ).option("--json", "Emit JSON output").action(handleSessionsSend);
756
+ ).option("--json", "Emit JSON output").action(
757
+ (options, command) => handleSessionsSend({ ...options, json: command.optsWithGlobals().json })
758
+ );
748
759
  parent.command("render").description("Render local session transcript(s) to an HTML viewer.").addHelpText(
749
760
  "after",
750
761
  `
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-DZ7JCRAL.mjs";
3
+ } from "./chunk-DMF56C6D.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";
@@ -1,11 +1,11 @@
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 _chunkZLIAUR2Ejs = require('./chunk-ZLIAUR2E.js');
3
+ var _chunkJY73USD7js = require('./chunk-JY73USD7.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkIZZ7FFWPjs = require('./chunk-IZZ7FFWP.js');
8
+ var _chunkBPGFNVH2js = require('./chunk-BPGFNVH2.js');
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -18,11 +18,11 @@ function usesCliPlayAdmission(command, args) {
18
18
  }
19
19
  async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
20
20
  _optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
21
- if (maintenancePolicy !== "off") _chunkIZZ7FFWPjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
- const compatibility = await _chunkZLIAUR2Ejs.traceCliSpan.call(void 0,
21
+ if (maintenancePolicy !== "off") _chunkBPGFNVH2js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
+ const compatibility = await _chunkJY73USD7js.traceCliSpan.call(void 0,
23
23
  "cli.sdk_compatibility",
24
24
  { baseUrl, command: "plays run" },
25
- () => _chunkIZZ7FFWPjs.checkSdkCompatibility.call(void 0, baseUrl, {
25
+ () => _chunkBPGFNVH2js.checkSdkCompatibility.call(void 0, baseUrl, {
26
26
  command: "plays run",
27
27
  persistCache: maintenancePolicy !== "off",
28
28
  signal
@@ -30,7 +30,7 @@ async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configure
30
30
  );
31
31
  _optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
32
32
  if (compatibility.error) throw compatibility.error;
33
- _chunkIZZ7FFWPjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
33
+ _chunkBPGFNVH2js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
34
34
  quietAdvisory: true
35
35
  });
36
36
  }
@@ -2,11 +2,11 @@ import {
2
2
  addDescribeOptions,
3
3
  recordApiResponse,
4
4
  writeExecutionOutput
5
- } from "./chunk-C6TP4DR3.mjs";
5
+ } from "./chunk-UV524JZ5.mjs";
6
6
  import {
7
7
  recentSearchRef,
8
8
  registerDeprecatedSearchCommand
9
- } from "./chunk-JXYVBF5L.mjs";
9
+ } from "./chunk-WC5754QJ.mjs";
10
10
  import {
11
11
  Capability,
12
12
  arrayField,
@@ -46,10 +46,10 @@ import {
46
46
  } from "./chunk-FIVKWNMT.mjs";
47
47
  import {
48
48
  DeeplineClient
49
- } from "./chunk-OWH7SSBO.mjs";
49
+ } from "./chunk-5MYXW6M6.mjs";
50
50
  import {
51
51
  validateExecutionIdempotencyKey
52
- } from "./chunk-Q4I5YKN4.mjs";
52
+ } from "./chunk-OEG6VCK4.mjs";
53
53
  import {
54
54
  stableStringify
55
55
  } from "./chunk-BMCRTI6Z.mjs";
@@ -59,18 +59,18 @@ import {
59
59
  maybeAutoUpdateAndRelaunch,
60
60
  registerCompatibilityCatalog,
61
61
  runToolExecuteStage
62
- } from "./chunk-IF242BIJ.mjs";
62
+ } from "./chunk-YYUVOUEH.mjs";
63
63
  import {
64
64
  isCliTraceEnabled,
65
65
  recordCliTrace,
66
66
  resolveCliMaintenancePolicy
67
- } from "./chunk-UDH3YMBI.mjs";
67
+ } from "./chunk-EJ57CA2L.mjs";
68
68
  import {
69
69
  checkSdkCompatibility,
70
70
  enforceSdkCompatibilityResponse,
71
71
  flushDeferredSkillsSyncNotices,
72
72
  syncSdkSkillsIfNeeded
73
- } from "./chunk-GRGZKXLL.mjs";
73
+ } from "./chunk-Q5EJO4TE.mjs";
74
74
  import {
75
75
  printCommandEnvelope,
76
76
  printCompactJson,
@@ -78,12 +78,12 @@ import {
78
78
  printJsonError,
79
79
  renderCommandEnvelopeText,
80
80
  shouldEmitJson
81
- } from "./chunk-DZ7JCRAL.mjs";
81
+ } from "./chunk-DMF56C6D.mjs";
82
82
  import {
83
83
  readSdkSkillsLocalVersion,
84
84
  resolveConfig,
85
85
  sdkCliStateDirPath
86
- } from "./chunk-FRT5MFLF.mjs";
86
+ } from "./chunk-HOKOJGQW.mjs";
87
87
  import {
88
88
  DeeplineError
89
89
  } from "./chunk-HBL4PM5Q.mjs";
@@ -1053,7 +1053,7 @@ Examples:
1053
1053
  process.exitCode = await narrowView();
1054
1054
  return;
1055
1055
  }
1056
- const { describeAnything } = await import("./describe-XLN33FJX.mjs");
1056
+ const { describeAnything } = await import("./describe-XJY5654F.mjs");
1057
1057
  process.exitCode = await describeAnything(
1058
1058
  toolId,
1059
1059
  {
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-K4RME7AV.mjs";
4
+ } from "./chunk-KXSOZYCS.mjs";
5
5
  import {
6
6
  runSkillsCommand
7
- } from "./chunk-XSOLA2ED.mjs";
7
+ } from "./chunk-5DU7RXDW.mjs";
8
8
  import {
9
9
  resolveShellSpawn
10
- } from "./chunk-GRGZKXLL.mjs";
10
+ } from "./chunk-Q5EJO4TE.mjs";
11
11
  import {
12
12
  printCommandEnvelope
13
- } from "./chunk-DZ7JCRAL.mjs";
13
+ } from "./chunk-DMF56C6D.mjs";
14
14
  import {
15
15
  autoDetectBaseUrl
16
- } from "./chunk-FRT5MFLF.mjs";
16
+ } from "./chunk-HOKOJGQW.mjs";
17
17
 
18
18
  // src/cli/commands/update.ts
19
19
  import { spawn, spawnSync } from "child_process";
@@ -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 _chunkIZZ7FFWPjs = require('./chunk-IZZ7FFWP.js');
3
+ var _chunkBPGFNVH2js = require('./chunk-BPGFNVH2.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 = _chunkIZZ7FFWPjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkBPGFNVH2js.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,7 +1,7 @@
1
1
  import {
2
2
  HttpClient,
3
3
  detectAgentRuntime
4
- } from "./chunk-2LY42EZJ.mjs";
4
+ } from "./chunk-PQ56GE55.mjs";
5
5
  import {
6
6
  ConfigError
7
7
  } from "./chunk-4QF2K7TM.mjs";