deepline 0.3.479 → 0.3.481

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 (152) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +35 -1
  2. package/dist/bundling-sources/sdk/src/http-core.ts +2 -0
  3. package/dist/bundling-sources/sdk/src/plays/run-request.ts +54 -31
  4. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  5. package/dist/bundling-sources/shared_libs/monitors/legacy-radar-forward-routes.ts +569 -0
  6. package/dist/bundling-sources/shared_libs/monitors/legacy-radar-retirement.ts +451 -0
  7. package/dist/bundling-sources/shared_libs/monitors/package.json +5 -1
  8. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/runtime-array-input-receipts.ts +13 -6
  10. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +2 -0
  11. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +125 -22
  12. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +16 -53
  13. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +34 -48
  14. package/dist/bundling-sources/shared_libs/security/receipt-admission-token.ts +44 -0
  15. package/dist/cli/auth-EQWYBNIE.js +43 -0
  16. package/dist/cli/{auth-D7DYB57R.mjs → auth-FYY65LYD.mjs} +7 -5
  17. package/dist/cli/{billing-DT4JT4QN.mjs → billing-3MELYUTI.mjs} +7 -7
  18. package/dist/cli/{billing-DHGSNM6E.js → billing-TROHWBSE.js} +80 -80
  19. package/dist/cli/{chunk-GQCH6Y7W.js → chunk-27BYXQU4.js} +1 -1
  20. package/dist/cli/{chunk-CK2Q6AWR.js → chunk-4CIVXXSU.js} +26 -26
  21. package/dist/cli/{chunk-G6V34EQ5.js → chunk-5ONCPLWC.js} +16 -16
  22. package/dist/cli/{chunk-27GSBTWD.js → chunk-6VKDKATO.js} +96 -65
  23. package/dist/cli/{chunk-LXYDN5FE.js → chunk-6WWBVWFQ.js} +7 -7
  24. package/dist/cli/{chunk-JNFNNJ75.mjs → chunk-6ZMUAASO.mjs} +4 -4
  25. package/dist/cli/{chunk-6C3QY5JS.mjs → chunk-75LUK4E5.mjs} +1 -1
  26. package/dist/cli/{chunk-JKUFOP7M.mjs → chunk-7VVC4RZX.mjs} +1 -1
  27. package/dist/cli/{chunk-N7E25EU2.mjs → chunk-ASQJUUGB.mjs} +5 -5
  28. package/dist/cli/{chunk-FKEZ5DIJ.mjs → chunk-BJ5UFTWL.mjs} +28 -7
  29. package/dist/cli/{chunk-W4HIOBQQ.js → chunk-BJMEXKZY.js} +2 -2
  30. package/dist/cli/{chunk-YC2QBF2W.mjs → chunk-C7UIUKW6.mjs} +2 -2
  31. package/dist/cli/{chunk-AKVNUNL7.js → chunk-CM3KC74A.js} +3 -3
  32. package/dist/cli/{chunk-JFGOMQW6.mjs → chunk-CS2P3EQS.mjs} +2 -2
  33. package/dist/cli/{chunk-VKBLXJCK.js → chunk-CUSWZTS7.js} +8 -8
  34. package/dist/cli/{chunk-GSULE54L.js → chunk-D3UHG54V.js} +199 -178
  35. package/dist/cli/{chunk-3PHOAUU4.mjs → chunk-EJTU6X6C.mjs} +41 -10
  36. package/dist/cli/{chunk-AFHFZU5V.js → chunk-EPEAQA6O.js} +37 -37
  37. package/dist/cli/{chunk-K5RRY7DJ.mjs → chunk-EPZSX7FZ.mjs} +4 -4
  38. package/dist/cli/{chunk-27PXHD2P.mjs → chunk-FXLMDAAY.mjs} +1 -1
  39. package/dist/cli/chunk-GBAT5NMI.mjs +789 -0
  40. package/dist/cli/{chunk-Y2MVDYV6.js → chunk-GJOKFJ2Y.js} +10 -10
  41. package/dist/cli/{chunk-JDMR33HS.js → chunk-GVAENVIG.js} +28 -19
  42. package/dist/cli/{chunk-NELMCOWK.mjs → chunk-HNRELVCS.mjs} +27 -18
  43. package/dist/cli/{chunk-GICSDK72.mjs → chunk-HXG7TYRS.mjs} +2 -2
  44. package/dist/cli/{chunk-EMVWC5LP.js → chunk-J4D3PCQ2.js} +5 -5
  45. package/dist/cli/{chunk-6QIXWFPO.mjs → chunk-JE27DTQM.mjs} +3 -3
  46. package/dist/cli/{chunk-3GIM7XRH.js → chunk-KDU6TSGE.js} +2 -2
  47. package/dist/cli/{chunk-JMCTNS6S.js → chunk-KPXP2DIY.js} +7 -9
  48. package/dist/cli/chunk-KQSTV4MW.js +789 -0
  49. package/dist/cli/{chunk-RJVUILW4.mjs → chunk-LISZBUA7.mjs} +2 -2
  50. package/dist/cli/{chunk-D6MLXRMQ.mjs → chunk-LTOY2GUJ.mjs} +10 -10
  51. package/dist/cli/{chunk-FBEXJVQL.js → chunk-MKDWU3ZI.js} +93 -93
  52. package/dist/cli/{chunk-UOYA35OT.mjs → chunk-N5267HEH.mjs} +1 -1
  53. package/dist/cli/{chunk-XDFARN7U.mjs → chunk-PDJS6LFI.mjs} +2 -1
  54. package/dist/cli/{chunk-J5VDE42G.js → chunk-R4EFW2I2.js} +3 -3
  55. package/dist/cli/{chunk-GONL4EFT.mjs → chunk-RV2GB7KW.mjs} +2 -2
  56. package/dist/cli/{chunk-GZ43YXHT.mjs → chunk-S5BM6NPJ.mjs} +3 -5
  57. package/dist/cli/{chunk-PUOKABQF.mjs → chunk-S5WXSC3P.mjs} +5 -5
  58. package/dist/cli/{chunk-ZJRVHQSZ.mjs → chunk-SOGLBLMH.mjs} +4 -4
  59. package/dist/cli/{chunk-FV7WGK5X.js → chunk-SVPM2E2U.js} +5 -5
  60. package/dist/cli/{chunk-XBYW5EHY.mjs → chunk-UUGSZZZH.mjs} +1 -1
  61. package/dist/cli/{chunk-3SGA53DX.js → chunk-VBDR2DP6.js} +3 -3
  62. package/dist/cli/{chunk-O5BUFQ2P.mjs → chunk-VRAOWHXJ.mjs} +1 -1
  63. package/dist/cli/{chunk-TZCHXF4R.mjs → chunk-VTKAIGW6.mjs} +3 -3
  64. package/dist/cli/{chunk-33O2JGHE.js → chunk-WF5QE2IW.js} +17 -16
  65. package/dist/cli/{chunk-OVFCPV24.js → chunk-WICQQ7GY.js} +53 -53
  66. package/dist/cli/{chunk-W6N2S5N7.js → chunk-WTWRZ5ZI.js} +8 -8
  67. package/dist/cli/{chunk-N4M6CO5H.js → chunk-X4XZFIK6.js} +14 -14
  68. package/dist/cli/{chunk-VRZXGJXH.js → chunk-X6MEQBAT.js} +21 -21
  69. package/dist/cli/{csv-JXFOD7DJ.mjs → csv-2EG7JW7V.mjs} +4 -4
  70. package/dist/cli/{csv-DQWOZ2BL.js → csv-OUALOZBF.js} +13 -13
  71. package/dist/cli/{db-Q2OAAXRX.js → db-7BTOI6YB.js} +28 -28
  72. package/dist/cli/{db-NOGMZAQE.mjs → db-ECDQWI2Y.mjs} +7 -7
  73. package/dist/cli/describe-EXSH6OZD.js +48 -0
  74. package/dist/cli/{describe-VKZTZLX6.mjs → describe-KO6WKQIB.mjs} +18 -18
  75. package/dist/cli/describe-core.d.mts +2 -2
  76. package/dist/cli/describe-core.d.ts +2 -2
  77. package/dist/cli/{executions-XU3JMNI3.mjs → executions-3VMFBZT4.mjs} +7 -7
  78. package/dist/cli/{executions-B3GDZ4GQ.js → executions-VZSG3F3E.js} +9 -9
  79. package/dist/cli/{feedback-5IW3ZKRP.js → feedback-ASKBWRXR.js} +8 -8
  80. package/dist/cli/{feedback-R5UQXINE.mjs → feedback-SN7AVALN.mjs} +4 -4
  81. package/dist/cli/{git-7B4H7VEL.mjs → git-W2DZXEAY.mjs} +5 -5
  82. package/dist/cli/git-X2XUKYYX.js +25 -0
  83. package/dist/cli/index.js +167 -144
  84. package/dist/cli/index.mjs +73 -50
  85. package/dist/cli/{legacy-noops-AVT6T5QI.js → legacy-noops-6KOC6LV7.js} +8 -8
  86. package/dist/cli/{legacy-noops-KY7JAALE.mjs → legacy-noops-R2SML7ED.mjs} +5 -5
  87. package/dist/cli/{monitors-G7L7AFXR.mjs → monitors-4VGZGJBT.mjs} +8 -8
  88. package/dist/cli/{monitors-GZB6CWK2.js → monitors-OJXDYU4G.js} +92 -92
  89. package/dist/cli/{org-ZHHKAPCE.js → org-AELMZFUT.js} +73 -73
  90. package/dist/cli/{org-QDUBOQTH.mjs → org-UGN5ZG2Y.mjs} +7 -7
  91. package/dist/cli/{pages-5P3SPMN5.js → pages-L26N7MK3.js} +18 -18
  92. package/dist/cli/{pages-Q4WGQCST.mjs → pages-ZYPAAYSS.mjs} +7 -7
  93. package/dist/cli/{play-WRSHD4RE.mjs → play-ENYB7X4S.mjs} +125 -53
  94. package/dist/cli/{play-IRLKESZB.js → play-VTZWB3N5.js} +620 -548
  95. package/dist/cli/{providers-7CQUHS57.mjs → providers-BZQTVAQG.mjs} +7 -7
  96. package/dist/cli/{providers-LKEYLN6D.js → providers-HWBY6MGQ.js} +10 -10
  97. package/dist/cli/{quickstart-KS45M5SR.js → quickstart-D54IJ3PX.js} +6 -6
  98. package/dist/cli/{quickstart-I6NYGMEE.mjs → quickstart-SSQJDWPB.mjs} +4 -4
  99. package/dist/cli/{run-BLMOBNAN.js → run-45NKE7UY.js} +37 -37
  100. package/dist/cli/{run-AZETCL7R.mjs → run-FR3TPYT3.mjs} +23 -23
  101. package/dist/cli/{search-EEKEP67Y.mjs → search-CZCWSR5L.mjs} +8 -8
  102. package/dist/cli/search-V2GJKQQQ.js +32 -0
  103. package/dist/cli/{secrets-M6NU3TD2.js → secrets-KJ5ZEDWT.js} +16 -16
  104. package/dist/cli/{secrets-HAULG2EW.mjs → secrets-KKK55B4Y.mjs} +7 -7
  105. package/dist/cli/{sessions-5MB4XKOK.mjs → sessions-2YKA54PH.mjs} +5 -5
  106. package/dist/cli/{sessions-DSR5AHIA.js → sessions-QCNPUTDZ.js} +6 -6
  107. package/dist/cli/{settings-JUQP4HYQ.mjs → settings-4NI2AS5V.mjs} +12 -12
  108. package/dist/cli/{settings-6US327NQ.js → settings-KM3LCPWD.js} +79 -79
  109. package/dist/cli/{setup-JRH4UC47.mjs → setup-BZF3M54I.mjs} +33 -18
  110. package/dist/cli/{setup-5ZRSEQUD.js → setup-V5MTS2AA.js} +67 -52
  111. package/dist/cli/skills-CRFYW767.js +33 -0
  112. package/dist/cli/{skills-HFOZ5WDH.mjs → skills-NXYNB3LP.mjs} +7 -7
  113. package/dist/cli/{tools-CJEBZNPB.mjs → tools-57MWFRIZ.mjs} +17 -17
  114. package/dist/cli/tools-Q662HPVJ.js +55 -0
  115. package/dist/cli/{update-VQJEPAAK.mjs → update-QM6H677U.mjs} +9 -9
  116. package/dist/cli/update-TYHKF7F5.js +33 -0
  117. package/dist/cli/{workflow-EYWE3T75.mjs → workflow-NHYDIUWY.mjs} +8 -8
  118. package/dist/cli/{workflow-NKPDRZOP.js → workflow-TGEC4ITO.js} +18 -18
  119. package/dist/{client-B9N1bcGc.d.mts → client-DJ3r8VQJ.d.mts} +1 -1
  120. package/dist/{client-Btw075Hq.d.ts → client-JPSNljtj.d.ts} +1 -1
  121. package/dist/{client-core-TulbIeRB.d.mts → client-core-3SJlNsKU.d.mts} +21 -2
  122. package/dist/{client-core-DvGWlwtX.d.ts → client-core-rCoQ5Xz3.d.ts} +21 -2
  123. package/dist/index.d.mts +3 -3
  124. package/dist/index.d.ts +3 -3
  125. package/dist/index.js +10 -10
  126. package/dist/index.mjs +7 -7
  127. package/dist/install-integrity.json +106 -104
  128. package/dist/plays/bundle-play-file.mjs +5426 -12
  129. package/dist/plays/play-description.d.mts +1 -1
  130. package/dist/plays/play-description.d.ts +1 -1
  131. package/dist/plays/run-request.d.mts +1 -1
  132. package/dist/plays/run-request.d.ts +1 -1
  133. package/dist/plays/run-request.js +4 -2
  134. package/dist/plays/run-request.mjs +3 -1
  135. package/dist/release.d.mts +1 -1
  136. package/dist/release.d.ts +1 -1
  137. package/dist/release.js +2 -2
  138. package/dist/release.mjs +1 -1
  139. package/dist/server.d.mts +2 -2
  140. package/dist/server.d.ts +2 -2
  141. package/dist/server.js +6 -6
  142. package/dist/server.mjs +4 -4
  143. package/package.json +1 -1
  144. package/dist/cli/auth-MZDFNRPG.js +0 -41
  145. package/dist/cli/chunk-7UFFWPQ2.js +0 -6188
  146. package/dist/cli/chunk-ZBSUXXZS.mjs +0 -6188
  147. package/dist/cli/describe-THHHNUEA.js +0 -48
  148. package/dist/cli/git-BX27JAW4.js +0 -25
  149. package/dist/cli/search-PEQXXY2B.js +0 -32
  150. package/dist/cli/skills-P67KCVDR.js +0 -33
  151. package/dist/cli/tools-PDBEAI22.js +0 -55
  152. package/dist/cli/update-G6DI3BQW.js +0 -33
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-YC2QBF2W.mjs";
5
+ } from "./chunk-C7UIUKW6.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-O5BUFQ2P.mjs";
25
+ } from "./chunk-VRAOWHXJ.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-XDFARN7U.mjs";
32
+ } from "./chunk-PDJS6LFI.mjs";
33
33
  import {
34
34
  DeeplineError
35
35
  } from "./chunk-HBL4PM5Q.mjs";
@@ -50,6 +50,7 @@ var EXIT_SERVER = 5;
50
50
  var EXIT_WORKSPACE_MISMATCH = 6;
51
51
  var AUTH_HTTP_TIMEOUT_MS = 1e4;
52
52
  var AUTH_REGISTER_HTTP_TIMEOUT_MS = 3e4;
53
+ var APPROVAL_LINK_REPORT_TIMEOUT_MS = 750;
53
54
  function statusBannerLine(value) {
54
55
  if (!value || typeof value !== "object" || Array.isArray(value)) return null;
55
56
  const banner = value;
@@ -140,6 +141,8 @@ function readPendingAuthClaim(baseUrl, scope) {
140
141
  claimToken,
141
142
  claimUrl: typeof parsed.claimUrl === "string" && parsed.claimUrl.trim() ? parsed.claimUrl.trim() : `${baseUrl}/api/v2/auth/cli/claim/${encodeURIComponent(claimToken)}`,
142
143
  orgName: typeof parsed.orgName === "string" ? parsed.orgName.trim() : void 0,
144
+ ...parsed.approvalLinkReporting === true ? { approvalLinkReporting: true } : {},
145
+ ...typeof parsed.signupWorkspaceId === "string" ? { signupWorkspaceId: parsed.signupWorkspaceId } : {},
143
146
  // The record's own scope, when it has one. `register` writes this field
144
147
  // precisely so a resume can learn where the credential belongs; reading
145
148
  // back the caller's argument instead made it decorative, and a record
@@ -378,7 +381,23 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
378
381
  console.log(` \u2022 Signed in with organization: ${statusData.org_name}`);
379
382
  }
380
383
  }
381
- async function handleRegister(args) {
384
+ async function reportApprovalLinkShown(baseUrl, claim, mode) {
385
+ try {
386
+ await httpJson(
387
+ "POST",
388
+ `${baseUrl}/api/v2/auth/cli/status`,
389
+ null,
390
+ {
391
+ claim_token: claim.claimToken,
392
+ approval_link_shown: mode,
393
+ ...claim.signupWorkspaceId ? { signup_workspace_id: claim.signupWorkspaceId } : {}
394
+ },
395
+ APPROVAL_LINK_REPORT_TIMEOUT_MS
396
+ );
397
+ } catch {
398
+ }
399
+ }
400
+ async function handleRegister(args, options) {
382
401
  const baseUrl = autoDetectBaseUrl().replace(/\/$/, "");
383
402
  let orgName = "";
384
403
  let orgId = "";
@@ -425,13 +444,17 @@ async function handleRegister(args) {
425
444
  }
426
445
  const claimUrl = String(data.claim_url || "");
427
446
  const claimToken = String(data.claim_token || "");
447
+ const signupWorkspaceId = process.env.DEEPLINE_SIGNUP_WORKSPACE_ID?.trim();
448
+ const pendingClaim = {
449
+ claimToken,
450
+ claimUrl,
451
+ scope: authScope,
452
+ ...orgName ? { orgName } : {},
453
+ ...data.approval_link_reporting === true ? { approvalLinkReporting: true } : {},
454
+ ...signupWorkspaceId ? { signupWorkspaceId } : {}
455
+ };
428
456
  if (claimToken) {
429
- savePendingClaim(baseUrl, {
430
- claimToken,
431
- claimUrl,
432
- scope: authScope,
433
- ...orgName ? { orgName } : {}
434
- });
457
+ savePendingClaim(baseUrl, pendingClaim);
435
458
  saveEnvValues(
436
459
  {
437
460
  [HOST_URL_ENV]: baseUrl
@@ -447,6 +470,13 @@ async function handleRegister(args) {
447
470
  );
448
471
  console.log(` ${claimUrl}`);
449
472
  if (shouldOpen) openInBrowser(claimUrl);
473
+ if (claimToken && pendingClaim.approvalLinkReporting && !options?.deferApprovalLinkReport) {
474
+ await reportApprovalLinkShown(
475
+ baseUrl,
476
+ pendingClaim,
477
+ shouldOpen ? "auto" : "manual"
478
+ );
479
+ }
450
480
  }
451
481
  if (data.cli_message) {
452
482
  console.log(String(data.cli_message));
@@ -962,6 +992,7 @@ export {
962
992
  httpJson,
963
993
  readStatusBanner,
964
994
  reportSetupCompleted,
995
+ reportApprovalLinkShown,
965
996
  handleRegister,
966
997
  handleWait,
967
998
  authStatusLine,
@@ -11,20 +11,20 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkOVFCPV24js = require('./chunk-OVFCPV24.js');
14
+ var _chunkWICQQ7GYjs = require('./chunk-WICQQ7GY.js');
15
15
 
16
16
 
17
- var _chunkLXYDN5FEjs = require('./chunk-LXYDN5FE.js');
17
+ var _chunk6WWBVWFQjs = require('./chunk-6WWBVWFQ.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
- var _chunk3SGA53DXjs = require('./chunk-3SGA53DX.js');
23
+ var _chunkVBDR2DP6js = require('./chunk-VBDR2DP6.js');
24
24
 
25
25
 
26
26
 
27
- var _chunk33O2JGHEjs = require('./chunk-33O2JGHE.js');
27
+ var _chunkWF5QE2IWjs = require('./chunk-WF5QE2IW.js');
28
28
 
29
29
  // src/cli/commands/skills.ts
30
30
  var _child_process = require('child_process');
@@ -132,7 +132,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
132
132
  return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
133
133
  }
134
134
  function resolveLocalRoot() {
135
- const target = _chunk3SGA53DXjs.resolveProjectPinTarget.call(void 0, );
135
+ const target = _chunkVBDR2DP6js.resolveProjectPinTarget.call(void 0, );
136
136
  if (!target.ok) {
137
137
  throw new Error(
138
138
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -143,7 +143,7 @@ function resolveLocalRoot() {
143
143
  return target.dir;
144
144
  }
145
145
  function detectSkillsAgents(input) {
146
- const runtime = _nullishCoalesce(input.runtime, () => ( _chunk33O2JGHEjs.detectAgentRuntime.call(void 0, )));
146
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunkWF5QE2IWjs.detectAgentRuntime.call(void 0, )));
147
147
  const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
148
148
  if (knownAgent) return [knownAgent];
149
149
  const roots = [
@@ -158,11 +158,11 @@ function detectSkillsAgents(input) {
158
158
  return detected.length > 0 ? detected : ["*"];
159
159
  }
160
160
  function skillsStatePathForScope(baseUrl, scope, root) {
161
- return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunk3SGA53DXjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
161
+ return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkVBDR2DP6js.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
162
162
  }
163
163
  function buildSkillsPlan(input) {
164
164
  const scopeArgs = input.scope === "global" ? ["--global"] : [];
165
- const legacyNames = [..._chunkOVFCPV24js.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
165
+ const legacyNames = [..._chunkWICQQ7GYjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
166
166
  (a, b) => a.localeCompare(b)
167
167
  );
168
168
  return {
@@ -176,7 +176,7 @@ function buildSkillsPlan(input) {
176
176
  args: [
177
177
  "exec",
178
178
  "--yes",
179
- `--package=${_chunkOVFCPV24js.SKILLS_NPX_PACKAGE}`,
179
+ `--package=${_chunkWICQQ7GYjs.SKILLS_NPX_PACKAGE}`,
180
180
  "--",
181
181
  "skills",
182
182
  "remove",
@@ -192,11 +192,11 @@ function buildSkillsPlan(input) {
192
192
  args: [
193
193
  "exec",
194
194
  "--yes",
195
- `--package=${_chunkOVFCPV24js.SKILLS_NPX_PACKAGE}`,
195
+ `--package=${_chunkWICQQ7GYjs.SKILLS_NPX_PACKAGE}`,
196
196
  "--",
197
197
  "skills",
198
198
  "add",
199
- _chunkOVFCPV24js.skillsSourceUrl.call(void 0, input.baseUrl),
199
+ _chunkWICQQ7GYjs.skillsSourceUrl.call(void 0, input.baseUrl),
200
200
  "--agent",
201
201
  ...input.agents,
202
202
  ...scopeArgs,
@@ -233,7 +233,7 @@ function readSkillsInstallState(path) {
233
233
  }
234
234
  function runProcess(command, args, cwd) {
235
235
  return new Promise((resolve, reject) => {
236
- const plan = _chunkOVFCPV24js.resolveShellSpawn.call(void 0,
236
+ const plan = _chunkWICQQ7GYjs.resolveShellSpawn.call(void 0,
237
237
  command,
238
238
  args,
239
239
  process.platform,
@@ -255,7 +255,7 @@ function runProcess(command, args, cwd) {
255
255
  child.kill("SIGTERM");
256
256
  reject(
257
257
  new Error(
258
- `${_chunkOVFCPV24js.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
258
+ `${_chunkWICQQ7GYjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
259
259
  )
260
260
  );
261
261
  }, SKILLS_PROCESS_TIMEOUT_MS);
@@ -266,7 +266,7 @@ function runProcess(command, args, cwd) {
266
266
  child.once("close", (code) => {
267
267
  clearTimeout(timeout);
268
268
  if (code && stderr.trim()) {
269
- process.stderr.write(`${_chunkOVFCPV24js.SKILLS_NPX_PACKAGE} exited ${code}.
269
+ process.stderr.write(`${_chunkWICQQ7GYjs.SKILLS_NPX_PACKAGE} exited ${code}.
270
270
  `);
271
271
  }
272
272
  resolve(_nullishCoalesce(code, () => ( 1)));
@@ -280,7 +280,7 @@ async function runSkillsCommand(options, dependencies = {}) {
280
280
  scope = normalizeScope(options.scope);
281
281
  root = scope === "local" ? resolveLocalRoot() : null;
282
282
  } catch (error) {
283
- _chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
283
+ _chunk6WWBVWFQjs.printCommandEnvelope.call(void 0,
284
284
  {
285
285
  ok: false,
286
286
  status: "failed",
@@ -292,22 +292,22 @@ async function runSkillsCommand(options, dependencies = {}) {
292
292
  );
293
293
  return 2;
294
294
  }
295
- const baseUrl = _chunk3SGA53DXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
295
+ const baseUrl = _chunkVBDR2DP6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
296
296
  const catalog = {
297
- skillNames: [..._chunkOVFCPV24js.DEFAULT_SDK_SKILL_NAMES],
298
- version: _chunk33O2JGHEjs.SDK_VERSION
297
+ skillNames: [..._chunkWICQQ7GYjs.DEFAULT_SDK_SKILL_NAMES],
298
+ version: _chunkWF5QE2IWjs.SDK_VERSION
299
299
  };
300
300
  const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
301
301
  const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
302
302
  if (options.dryRun) {
303
- _chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
303
+ _chunk6WWBVWFQjs.printCommandEnvelope.call(void 0,
304
304
  { ok: true, status: "planned", dryRun: true, ...plan },
305
305
  { json: options.json }
306
306
  );
307
307
  return 0;
308
308
  }
309
- if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkOVFCPV24js.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
310
- _chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
309
+ if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkWICQQ7GYjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
310
+ _chunk6WWBVWFQjs.printCommandEnvelope.call(void 0,
311
311
  {
312
312
  ok: true,
313
313
  status: "current",
@@ -339,10 +339,10 @@ async function runSkillsCommand(options, dependencies = {}) {
339
339
  }
340
340
  if (scope === "local" && root) {
341
341
  const managedNames = [
342
- .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkOVFCPV24js.LEGACY_SKILL_NAMES_TO_REMOVE])
342
+ .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkWICQQ7GYjs.LEGACY_SKILL_NAMES_TO_REMOVE])
343
343
  ];
344
344
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
345
- _chunk3SGA53DXjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
345
+ _chunkVBDR2DP6js.ensureProjectPrivatePathsIgnored.call(void 0, root, [
346
346
  ".deepline/",
347
347
  ...agentRoots.flatMap(
348
348
  (agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
@@ -351,7 +351,7 @@ async function runSkillsCommand(options, dependencies = {}) {
351
351
  }
352
352
  let lease;
353
353
  try {
354
- lease = scope === "global" ? await _chunkOVFCPV24js.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
354
+ lease = scope === "global" ? await _chunkWICQQ7GYjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
355
355
  waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
356
356
  onWait: () => process.stderr.write(
357
357
  "Waiting for a background Deepline skills refresh to finish...\n"
@@ -359,8 +359,8 @@ async function runSkillsCommand(options, dependencies = {}) {
359
359
  }) : { release: () => {
360
360
  } };
361
361
  } catch (error) {
362
- if (!(error instanceof _chunkOVFCPV24js.SkillsStateUnavailableError)) throw error;
363
- _chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
362
+ if (!(error instanceof _chunkWICQQ7GYjs.SkillsStateUnavailableError)) throw error;
363
+ _chunk6WWBVWFQjs.printCommandEnvelope.call(void 0,
364
364
  {
365
365
  ok: false,
366
366
  status: "failed",
@@ -376,7 +376,7 @@ async function runSkillsCommand(options, dependencies = {}) {
376
376
  return 5;
377
377
  }
378
378
  if (!lease) {
379
- _chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
379
+ _chunk6WWBVWFQjs.printCommandEnvelope.call(void 0,
380
380
  {
381
381
  ok: false,
382
382
  status: "failed",
@@ -385,7 +385,7 @@ async function runSkillsCommand(options, dependencies = {}) {
385
385
  scope,
386
386
  agents,
387
387
  message: "A background Deepline skills refresh is still running for these agents.",
388
- next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkOVFCPV24js.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
388
+ next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkWICQQ7GYjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
389
389
  },
390
390
  { json: options.json }
391
391
  );
@@ -434,7 +434,7 @@ async function runSkillsInstallWithLease(input) {
434
434
  }
435
435
  }
436
436
  } catch (error) {
437
- _chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
437
+ _chunk6WWBVWFQjs.printCommandEnvelope.call(void 0,
438
438
  {
439
439
  ok: false,
440
440
  status: "failed",
@@ -450,7 +450,7 @@ async function runSkillsInstallWithLease(input) {
450
450
  return 5;
451
451
  }
452
452
  if (missing.length > 0) {
453
- _chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
453
+ _chunk6WWBVWFQjs.printCommandEnvelope.call(void 0,
454
454
  {
455
455
  ok: false,
456
456
  status: "failed",
@@ -490,7 +490,7 @@ async function runSkillsInstallWithLease(input) {
490
490
  {
491
491
  schemaVersion: 1,
492
492
  installedAt: (/* @__PURE__ */ new Date()).toISOString(),
493
- cliVersion: _chunk33O2JGHEjs.SDK_VERSION,
493
+ cliVersion: _chunkWF5QE2IWjs.SDK_VERSION,
494
494
  scope,
495
495
  agents,
496
496
  skillsVersion: plan.version,
@@ -503,9 +503,9 @@ async function runSkillsInstallWithLease(input) {
503
503
  "utf8"
504
504
  );
505
505
  if (scope === "global") {
506
- _chunkOVFCPV24js.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
506
+ _chunkWICQQ7GYjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
507
507
  }
508
- _chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
508
+ _chunk6WWBVWFQjs.printCommandEnvelope.call(void 0,
509
509
  {
510
510
  ok: true,
511
511
  status: "complete",
@@ -536,7 +536,7 @@ function registerSkillsCommand(program) {
536
536
  "after",
537
537
  `
538
538
  Notes:
539
- This command reinstalls current Deepline-managed skills using ${_chunkOVFCPV24js.SKILLS_NPX_PACKAGE},
539
+ This command reinstalls current Deepline-managed skills using ${_chunkWICQQ7GYjs.SKILLS_NPX_PACKAGE},
540
540
  then removes legacy Deepline skill names. Local scope writes into the resolved
541
541
  persistent project.
542
542
 
@@ -548,13 +548,13 @@ Examples:
548
548
  ).action(async (options) => {
549
549
  process.exitCode = await runSkillsCommand(options);
550
550
  });
551
- program.command(_chunkOVFCPV24js.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
551
+ program.command(_chunkWICQQ7GYjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
552
552
  "--claim <token>",
553
553
  "Owner token of the leases this child was started for."
554
554
  ).action(async (options) => {
555
555
  const claim = _optionalChain([options, 'access', _5 => _5.claim, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]);
556
556
  if (!claim) {
557
- _chunkLXYDN5FEjs.printCommandEnvelope.call(void 0,
557
+ _chunk6WWBVWFQjs.printCommandEnvelope.call(void 0,
558
558
  {
559
559
  ok: false,
560
560
  status: "failed",
@@ -567,7 +567,7 @@ Examples:
567
567
  process.exitCode = 2;
568
568
  return;
569
569
  }
570
- await _chunkOVFCPV24js.syncSdkSkillsIfNeeded.call(void 0, _chunk3SGA53DXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
570
+ await _chunkWICQQ7GYjs.syncSdkSkillsIfNeeded.call(void 0, _chunkVBDR2DP6js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
571
571
  mode: "inline",
572
572
  notices: "defer",
573
573
  claim
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getActiveCliProgress
3
- } from "./chunk-XBYW5EHY.mjs";
3
+ } from "./chunk-UUGSZZZH.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-O5BUFQ2P.mjs";
15
+ } from "./chunk-VRAOWHXJ.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-XDFARN7U.mjs";
23
+ } from "./chunk-PDJS6LFI.mjs";
24
24
  import {
25
25
  DeeplineError
26
26
  } from "./chunk-HBL4PM5Q.mjs";
27
27
  import {
28
28
  SDK_RELEASE
29
- } from "./chunk-27PXHD2P.mjs";
29
+ } from "./chunk-FXLMDAAY.mjs";
30
30
 
31
31
  // src/compat.ts
32
32
  import { randomUUID } from "crypto";
@@ -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.479",
52
+ version: "0.3.481",
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."