deepline 0.3.489 → 0.3.491

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 (151) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +6 -1
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/sdk/src/types.ts +4 -1
  4. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/direct-admission-deadline.ts +3 -1
  6. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +10 -0
  7. package/dist/cli/{auth-5RIU6GT7.mjs → auth-FXAC472Y.mjs} +5 -5
  8. package/dist/cli/auth-QIDL3YCW.js +43 -0
  9. package/dist/cli/{billing-T5MAGF25.js → billing-PDOA3KZ3.js} +79 -79
  10. package/dist/cli/{billing-T4TMPRFS.mjs → billing-UM4LE33K.mjs} +6 -6
  11. package/dist/cli/{chunk-SZHNIKTR.js → chunk-27MRSV6O.js} +26 -26
  12. package/dist/cli/{chunk-NBHCEVWY.mjs → chunk-2MW6TGNZ.mjs} +4 -4
  13. package/dist/cli/{chunk-FL7NHJTS.js → chunk-3FMU6F6E.js} +15 -15
  14. package/dist/cli/{chunk-TMQ3PCSY.mjs → chunk-3K4IAV7I.mjs} +2 -2
  15. package/dist/cli/{chunk-LMUOUIBV.mjs → chunk-3WRWPNHE.mjs} +5 -5
  16. package/dist/cli/{chunk-IAYSWZDJ.js → chunk-4IP5MLWU.js} +1 -1
  17. package/dist/cli/{chunk-6V7KVRR5.js → chunk-4OLXMJ2L.js} +13 -2
  18. package/dist/cli/{chunk-WIKIF67Q.js → chunk-5KMGKG4B.js} +8 -8
  19. package/dist/cli/{chunk-WRJ6MEY5.mjs → chunk-6PMM7VJN.mjs} +1 -1
  20. package/dist/cli/{chunk-GW6HV7Z7.js → chunk-6UARNRXT.js} +7 -7
  21. package/dist/cli/{chunk-UYZNRLDE.js → chunk-74H5OTRM.js} +1 -1
  22. package/dist/cli/{chunk-K2RUSHZ7.js → chunk-AEKJZJ4R.js} +4 -4
  23. package/dist/cli/{chunk-F3TDT57M.js → chunk-B2TXKEED.js} +5 -5
  24. package/dist/cli/{chunk-RI2PLVD4.js → chunk-BCKIBVEJ.js} +7 -7
  25. package/dist/cli/{chunk-S5PMBDY6.mjs → chunk-CFPFTS3A.mjs} +12 -12
  26. package/dist/cli/{chunk-J7EENGKJ.mjs → chunk-CGDUFVNE.mjs} +2 -2
  27. package/dist/cli/{chunk-S4F2R2LO.js → chunk-CRBBGKRH.js} +9 -9
  28. package/dist/cli/{chunk-JVHOS3K3.mjs → chunk-DEJIN4DF.mjs} +1 -1
  29. package/dist/cli/{chunk-FH7ZABHW.js → chunk-DUFRH43S.js} +261 -261
  30. package/dist/cli/{chunk-H66YVVT7.mjs → chunk-EPD7NSDJ.mjs} +2 -2
  31. package/dist/cli/{chunk-INW22YP7.mjs → chunk-FTXIJTV2.mjs} +3 -5
  32. package/dist/cli/{chunk-G7POOFBJ.mjs → chunk-H6UIS36S.mjs} +2 -2
  33. package/dist/cli/{chunk-CSBMKHTV.js → chunk-HHTVRICE.js} +17 -17
  34. package/dist/cli/{chunk-YSB44HZB.js → chunk-HNG2U3IG.js} +2 -2
  35. package/dist/cli/{chunk-L2GMFNAO.mjs → chunk-HSJK6EMU.mjs} +3 -3
  36. package/dist/cli/{chunk-R23HZ6AV.js → chunk-I64PYCTB.js} +2 -2
  37. package/dist/cli/{chunk-5DEJ3TLB.js → chunk-IG3GSBBE.js} +122 -119
  38. package/dist/cli/{chunk-C55LNEUF.mjs → chunk-IIO7UOVW.mjs} +5 -2
  39. package/dist/cli/{chunk-QJ4FWKUU.mjs → chunk-KGJVDR4Q.mjs} +2 -2
  40. package/dist/cli/{chunk-3S5VBG6Z.mjs → chunk-LMG7O6XJ.mjs} +2 -2
  41. package/dist/cli/{chunk-RACN23LT.mjs → chunk-MAM6ZOVS.mjs} +18 -4
  42. package/dist/cli/{chunk-VP65YKOA.js → chunk-MN6DCV63.js} +5 -5
  43. package/dist/cli/{chunk-7R243PYK.mjs → chunk-NUOKAKZW.mjs} +1 -1
  44. package/dist/cli/{chunk-ZICPJKMP.mjs → chunk-OLHWZM4A.mjs} +5 -5
  45. package/dist/cli/{chunk-6PHHQDM6.mjs → chunk-ORKLMANE.mjs} +1 -1
  46. package/dist/cli/{chunk-4GWEZPZR.mjs → chunk-OYJTLEB4.mjs} +1 -1
  47. package/dist/cli/{chunk-2QUROYZU.mjs → chunk-PIPEPCRL.mjs} +1 -1
  48. package/dist/cli/{chunk-FNKSRKTA.js → chunk-Q7G7CU4W.js} +3 -3
  49. package/dist/cli/{chunk-35N4S2E6.mjs → chunk-QBOE5LEH.mjs} +1 -1
  50. package/dist/cli/{chunk-FFDWL5N2.js → chunk-RFSXXDH7.js} +16 -16
  51. package/dist/cli/{chunk-DHAJSTSH.mjs → chunk-S4CYM4EC.mjs} +6 -6
  52. package/dist/cli/{chunk-UI67QLIR.js → chunk-SJOHQ2WW.js} +53 -53
  53. package/dist/cli/{chunk-I4NWMPT3.js → chunk-SUMKWA53.js} +53 -53
  54. package/dist/cli/{chunk-6FMP5XRF.js → chunk-TH7JLR5D.js} +6 -6
  55. package/dist/cli/{chunk-Q2EIZKVX.mjs → chunk-TKLDKIJU.mjs} +12 -1
  56. package/dist/cli/{chunk-DY7T6VNT.js → chunk-TMAS3WH3.js} +21 -21
  57. package/dist/cli/{chunk-Y3SG26KP.mjs → chunk-VC3SH4QW.mjs} +4 -4
  58. package/dist/cli/{chunk-OTQ2CO6M.mjs → chunk-WCWVXN3R.mjs} +2 -2
  59. package/dist/cli/{chunk-YEX3VNAY.mjs → chunk-X75ONMDJ.mjs} +2 -2
  60. package/dist/cli/{chunk-4EFD6R2V.js → chunk-X7YOVJBC.js} +52 -38
  61. package/dist/cli/{chunk-LOX3BISD.js → chunk-YNWET57Z.js} +9 -11
  62. package/dist/cli/{chunk-QXWE6PHI.mjs → chunk-YV4DP6KQ.mjs} +2 -2
  63. package/dist/cli/{chunk-UZ7VPOTA.js → chunk-ZEZ3CZ3X.js} +3 -3
  64. package/dist/cli/{chunk-LM5UIDFA.js → chunk-ZX2FXZJN.js} +7 -7
  65. package/dist/cli/{csv-XTKN255I.js → csv-IGPAPAES.js} +13 -13
  66. package/dist/cli/{csv-WAD54M7T.mjs → csv-RNMQHECI.mjs} +4 -4
  67. package/dist/cli/{db-TTS6Y4FI.js → db-32OXM3TO.js} +27 -27
  68. package/dist/cli/{db-2ELZMJFC.mjs → db-CKMVVGXJ.mjs} +6 -6
  69. package/dist/cli/describe-67GMIEIO.js +50 -0
  70. package/dist/cli/{describe-Z7GWMGKU.mjs → describe-QR7I3VOF.mjs} +21 -20
  71. package/dist/cli/describe-core.d.mts +2 -2
  72. package/dist/cli/describe-core.d.ts +2 -2
  73. package/dist/cli/describe-core.js +4 -4
  74. package/dist/cli/describe-core.mjs +3 -3
  75. package/dist/cli/{executions-WUBVVJXN.js → executions-PCZS7B2M.js} +8 -8
  76. package/dist/cli/{executions-2TQH54AB.mjs → executions-S4M4JMCU.mjs} +6 -6
  77. package/dist/cli/{feedback-6KAY4LE6.js → feedback-6EGKPZ3U.js} +8 -8
  78. package/dist/cli/{feedback-QI75ZVF2.mjs → feedback-FGUJVCBS.mjs} +4 -4
  79. package/dist/cli/getting-started.d.mts +17 -2
  80. package/dist/cli/getting-started.d.ts +17 -2
  81. package/dist/cli/getting-started.js +8 -2
  82. package/dist/cli/getting-started.mjs +9 -3
  83. package/dist/cli/{git-3PI2SXVS.mjs → git-LR4ARG5H.mjs} +5 -5
  84. package/dist/cli/git-PIH5Z5LN.js +25 -0
  85. package/dist/cli/index.js +138 -137
  86. package/dist/cli/index.mjs +41 -40
  87. package/dist/cli/{legacy-noops-SIDE3HLT.mjs → legacy-noops-S37PJ7OJ.mjs} +5 -5
  88. package/dist/cli/{legacy-noops-BNEVRTQT.js → legacy-noops-VX4JEQR6.js} +8 -8
  89. package/dist/cli/{monitors-WRWVVXUZ.js → monitors-ADASJI72.js} +91 -91
  90. package/dist/cli/{monitors-BYQ5V5MX.mjs → monitors-H3AX6CZG.mjs} +7 -7
  91. package/dist/cli/{org-OZNDX3G2.mjs → org-D3F5LUDW.mjs} +6 -6
  92. package/dist/cli/{org-KWCSSJ3Y.js → org-ZRJ3C56J.js} +72 -72
  93. package/dist/cli/{pages-OQVOMVF5.js → pages-5TKO3644.js} +17 -17
  94. package/dist/cli/{pages-DXU3TNND.mjs → pages-PSHU366M.mjs} +6 -6
  95. package/dist/cli/{play-ZFG4HDDX.mjs → play-AUDDK7XB.mjs} +20 -19
  96. package/dist/cli/{play-6D7U66KO.js → play-VDAETQDI.js} +323 -322
  97. package/dist/cli/{providers-H7R3Z5HS.js → providers-IURPWRWD.js} +9 -9
  98. package/dist/cli/{providers-4RRQIK3Q.mjs → providers-X7YMZSKQ.mjs} +6 -6
  99. package/dist/cli/{quickstart-TFKRPMCH.mjs → quickstart-6AGWVFNX.mjs} +5 -5
  100. package/dist/cli/{quickstart-FQ5E5G6O.js → quickstart-Y6GFXLDV.js} +13 -13
  101. package/dist/cli/{run-GRCGGUUM.mjs → run-TG7J45NS.mjs} +26 -25
  102. package/dist/cli/{run-QRDJTXKB.js → run-TQFGOXNT.js} +41 -40
  103. package/dist/cli/{search-OEVSDE3U.mjs → search-3G4J2GC6.mjs} +7 -7
  104. package/dist/cli/search-VC43NUY7.js +32 -0
  105. package/dist/cli/{search-output-F6KBWKT2.js → search-output-NPZICK5C.js} +6 -6
  106. package/dist/cli/{search-output-VK5ZDVKL.mjs → search-output-ZGNHDCLL.mjs} +4 -4
  107. package/dist/cli/{secrets-DCRVVQV2.mjs → secrets-EAWJBRUD.mjs} +6 -6
  108. package/dist/cli/{secrets-KKAAZENS.js → secrets-KTTHT4ZG.js} +15 -15
  109. package/dist/cli/{sessions-XVBIXCXU.mjs → sessions-D4Q3LCEQ.mjs} +5 -5
  110. package/dist/cli/{sessions-FDHENJVG.js → sessions-S4YVBPAW.js} +6 -6
  111. package/dist/cli/{settings-36HMWFAP.js → settings-BAK3VOWW.js} +79 -78
  112. package/dist/cli/{settings-OBVR52US.mjs → settings-JUORW6NL.mjs} +12 -11
  113. package/dist/cli/{setup-KFYQZYP3.mjs → setup-AXFGCXJE.mjs} +17 -12
  114. package/dist/cli/{setup-M6OWOPMB.js → setup-NJPHTW32.js} +60 -55
  115. package/dist/cli/skills-4NQZISNK.js +36 -0
  116. package/dist/cli/{skills-AZDPA6IQ.mjs → skills-SKJVDJEF.mjs} +10 -7
  117. package/dist/cli/{tools-F6XEUK7H.mjs → tools-63THJVJZ.mjs} +19 -18
  118. package/dist/cli/tools-BAHK33FQ.js +57 -0
  119. package/dist/cli/update-EMIGRGJ7.js +34 -0
  120. package/dist/cli/{update-QMGJRICE.mjs → update-KSID5F74.mjs} +10 -9
  121. package/dist/cli/{workflow-M4YPUASM.js → workflow-BLSMWBKW.js} +17 -17
  122. package/dist/cli/{workflow-L5WNCAPB.mjs → workflow-C4B54X2Z.mjs} +7 -7
  123. package/dist/{client-BkbDHRIg.d.mts → client-B4R1scm2.d.mts} +1 -1
  124. package/dist/{client-D3hVHXjK.d.ts → client-CQgGFxAH.d.ts} +1 -1
  125. package/dist/{client-core-DUdVqO_m.d.ts → client-core-BUNjKBKq.d.ts} +6 -1
  126. package/dist/{client-core-BZoSMKcY.d.mts → client-core-DMvHWjub.d.mts} +6 -1
  127. package/dist/index.d.mts +3 -3
  128. package/dist/index.d.ts +3 -3
  129. package/dist/index.js +9 -9
  130. package/dist/index.mjs +6 -6
  131. package/dist/install-integrity.json +110 -110
  132. package/dist/plays/play-description.d.mts +1 -1
  133. package/dist/plays/play-description.d.ts +1 -1
  134. package/dist/plays/run-request.d.mts +1 -1
  135. package/dist/plays/run-request.d.ts +1 -1
  136. package/dist/release.d.mts +1 -1
  137. package/dist/release.d.ts +1 -1
  138. package/dist/release.js +2 -2
  139. package/dist/release.mjs +1 -1
  140. package/dist/server.d.mts +2 -2
  141. package/dist/server.d.ts +2 -2
  142. package/dist/server.js +5 -5
  143. package/dist/server.mjs +3 -3
  144. package/package.json +1 -1
  145. package/dist/cli/auth-PSIS3XA6.js +0 -43
  146. package/dist/cli/describe-2V7H5LJP.js +0 -49
  147. package/dist/cli/git-DCADFTQ6.js +0 -25
  148. package/dist/cli/search-2FB7WQUS.js +0 -32
  149. package/dist/cli/skills-URCPOKZZ.js +0 -33
  150. package/dist/cli/tools-4G5J5NQP.js +0 -56
  151. package/dist/cli/update-UWVL2OYA.js +0 -33
@@ -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 _chunkYSB44HZBjs = require('./chunk-YSB44HZB.js');
3
+ var _chunkHNG2U3IGjs = require('./chunk-HNG2U3IG.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkUI67QLIRjs = require('./chunk-UI67QLIR.js');
8
+ var _chunkSJOHQ2WWjs = require('./chunk-SJOHQ2WW.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") _chunkUI67QLIRjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
- const compatibility = await _chunkYSB44HZBjs.traceCliSpan.call(void 0,
21
+ if (maintenancePolicy !== "off") _chunkSJOHQ2WWjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
22
+ const compatibility = await _chunkHNG2U3IGjs.traceCliSpan.call(void 0,
23
23
  "cli.sdk_compatibility",
24
24
  { baseUrl, command: "plays run" },
25
- () => _chunkUI67QLIRjs.checkSdkCompatibility.call(void 0, baseUrl, {
25
+ () => _chunkSJOHQ2WWjs.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
- _chunkUI67QLIRjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
33
+ _chunkSJOHQ2WWjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
34
34
  quietAdvisory: true
35
35
  });
36
36
  }
@@ -34,16 +34,24 @@ var DEEPLINE_GTM_STARTER_PROMPTS = [
34
34
  var DEEPLINE_GTM_PRIMARY_STARTER_PROMPT = DEEPLINE_GTM_STARTER_PROMPTS[0].prompt;
35
35
  var DEEPLINE_GTM_HANDOFF_QUESTION = "What would you like to do with Deepline?";
36
36
  var DEEPLINE_GTM_CUSTOM_OPTION = "Tell me what you want to accomplish and I'll help you build it";
37
+ var DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE = "~/.agents/skills/deepline-gtm/SKILL.md";
38
+ function deeplineGtmStarterSkillStep(codexSkillFile) {
39
+ return `Load the deepline-gtm skill first. Claude Code: invoke it with the selected prompt. Codex and others: read ${codexSkillFile}, installed mid-session so unlisted. Then run the starter command as written, adding no flags.`;
40
+ }
41
+ var DEEPLINE_GTM_STARTER_SKILL_STEP = deeplineGtmStarterSkillStep(
42
+ `${DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE} (project .agents/skills/ if setup reports local scope)`
43
+ );
37
44
  var DEEPLINE_GTM_STARTER_OPTIONS = [
38
45
  ...DEEPLINE_GTM_STARTER_PROMPTS.map(({ prompt }) => prompt),
39
46
  DEEPLINE_GTM_CUSTOM_OPTION
40
47
  ];
41
- function deeplineGtmGettingStartedPayload() {
48
+ function deeplineGtmGettingStartedPayload(codexSkillFile = DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE) {
42
49
  return {
43
50
  skill: DEEPLINE_GTM_SKILL,
44
51
  examples: DEEPLINE_GTM_STARTER_PROMPTS,
45
52
  question: DEEPLINE_GTM_HANDOFF_QUESTION,
46
53
  customOption: DEEPLINE_GTM_CUSTOM_OPTION,
54
+ starterBehavior: deeplineGtmStarterSkillStep(codexSkillFile),
47
55
  customProblemBehavior: "Turn the business problem into one exact /deepline-gtm prompt, show that reusable prompt, then execute it without asking the user to paste it again."
48
56
  };
49
57
  }
@@ -54,6 +62,9 @@ export {
54
62
  DEEPLINE_GTM_PRIMARY_STARTER_PROMPT,
55
63
  DEEPLINE_GTM_HANDOFF_QUESTION,
56
64
  DEEPLINE_GTM_CUSTOM_OPTION,
65
+ DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE,
66
+ deeplineGtmStarterSkillStep,
67
+ DEEPLINE_GTM_STARTER_SKILL_STEP,
57
68
  DEEPLINE_GTM_STARTER_OPTIONS,
58
69
  deeplineGtmGettingStartedPayload
59
70
  };
@@ -4,20 +4,20 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkFFDWL5N2js = require('./chunk-FFDWL5N2.js');
7
+ var _chunkRFSXXDH7js = require('./chunk-RFSXXDH7.js');
8
8
 
9
9
 
10
- var _chunkUI67QLIRjs = require('./chunk-UI67QLIR.js');
10
+ var _chunkSJOHQ2WWjs = require('./chunk-SJOHQ2WW.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkRI2PLVD4js = require('./chunk-RI2PLVD4.js');
14
+ var _chunkBCKIBVEJjs = require('./chunk-BCKIBVEJ.js');
15
15
 
16
16
 
17
- var _chunkUZ7VPOTAjs = require('./chunk-UZ7VPOTA.js');
17
+ var _chunkZEZ3CZ3Xjs = require('./chunk-ZEZ3CZ3X.js');
18
18
 
19
19
 
20
- var _chunkK2RUSHZ7js = require('./chunk-K2RUSHZ7.js');
20
+ var _chunkAEKJZJ4Rjs = require('./chunk-AEKJZJ4R.js');
21
21
 
22
22
  // src/cli/compatibility-catalog.ts
23
23
  var readers = /* @__PURE__ */ new WeakMap();
@@ -44,7 +44,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
44
44
  async function reportAutoUpdateEvent(input) {
45
45
  let apiKey = "";
46
46
  try {
47
- apiKey = _chunkUZ7VPOTAjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
47
+ apiKey = _chunkZEZ3CZ3Xjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
48
48
  } catch (e2) {
49
49
  return;
50
50
  }
@@ -60,15 +60,15 @@ async function reportAutoUpdateEvent(input) {
60
60
  headers: {
61
61
  Authorization: `Bearer ${apiKey}`,
62
62
  "Content-Type": "application/json",
63
- "User-Agent": `deepline-ts-sdk/${_chunkK2RUSHZ7js.SDK_VERSION}`,
63
+ "User-Agent": `deepline-ts-sdk/${_chunkAEKJZJ4Rjs.SDK_VERSION}`,
64
64
  "X-Deepline-Client-Family": "sdk",
65
65
  "X-Deepline-CLI-Family": "sdk",
66
- "X-Deepline-CLI-Version": _chunkK2RUSHZ7js.SDK_VERSION,
67
- "X-Deepline-SDK-Version": _chunkK2RUSHZ7js.SDK_VERSION
66
+ "X-Deepline-CLI-Version": _chunkAEKJZJ4Rjs.SDK_VERSION,
67
+ "X-Deepline-SDK-Version": _chunkAEKJZJ4Rjs.SDK_VERSION
68
68
  },
69
69
  body: JSON.stringify({
70
70
  event: input.event,
71
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkK2RUSHZ7js.SDK_VERSION,
71
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkAEKJZJ4Rjs.SDK_VERSION,
72
72
  target_version: input.response.latest,
73
73
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
74
74
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -87,13 +87,13 @@ function envTruthy(name) {
87
87
  return value === "1" || value === "true" || value === "yes";
88
88
  }
89
89
  function shouldSkipSelfUpdate(policy) {
90
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkFFDWL5N2js.shouldRunCliAutoUpdate.call(void 0, ) || _chunkUI67QLIRjs.isCiEnvironment.call(void 0, );
90
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkRFSXXDH7js.shouldRunCliAutoUpdate.call(void 0, ) || _chunkSJOHQ2WWjs.isCiEnvironment.call(void 0, );
91
91
  }
92
92
  function isDowngradeAutoUpdateResponse(response) {
93
93
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
94
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkK2RUSHZ7js.SDK_VERSION;
94
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkAEKJZJ4Rjs.SDK_VERSION;
95
95
  if (!target) return false;
96
- return _chunkFFDWL5N2js.compareUpdateVersions.call(void 0, target, current) < 0;
96
+ return _chunkRFSXXDH7js.compareUpdateVersions.call(void 0, target, current) < 0;
97
97
  }
98
98
  function relaunchCurrentCommand(plan, runtime = {}) {
99
99
  return new Promise((resolve) => {
@@ -146,7 +146,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
146
146
  }
147
147
  if (isDowngradeAutoUpdateResponse(response)) {
148
148
  const target = response.latest;
149
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkK2RUSHZ7js.SDK_VERSION;
149
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkAEKJZJ4Rjs.SDK_VERSION;
150
150
  process.stderr.write(
151
151
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
152
152
  `
@@ -154,21 +154,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
154
154
  return false;
155
155
  }
156
156
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
157
- const plan = _chunkFFDWL5N2js.resolveUpdatePlan.call(void 0, {
157
+ const plan = _chunkRFSXXDH7js.resolveUpdatePlan.call(void 0, {
158
158
  packageSpec,
159
159
  requireVerifiedNpmOwnership: true,
160
160
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
161
161
  });
162
- if (!_chunkFFDWL5N2js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
162
+ if (!_chunkRFSXXDH7js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
163
163
  return false;
164
164
  }
165
165
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
166
166
  deferredAutoUpdate = async () => {
167
167
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
168
168
  };
169
- if (_chunkRI2PLVD4js.isJsonOutputMode.call(void 0, )) {
169
+ if (_chunkBCKIBVEJjs.isJsonOutputMode.call(void 0, )) {
170
170
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
171
- _chunkRI2PLVD4js.addJsonNotice.call(void 0, {
171
+ _chunkBCKIBVEJjs.addJsonNotice.call(void 0, {
172
172
  code: "sdk_update_queued",
173
173
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
174
174
  });
@@ -181,7 +181,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
181
181
  return true;
182
182
  }
183
183
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
184
- if (!_chunkFFDWL5N2js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
184
+ if (!_chunkRFSXXDH7js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
185
185
  const autoUpdate = response.auto_update;
186
186
  const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
187
187
  process.stderr.write(
@@ -194,7 +194,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
194
194
  event: "started",
195
195
  installKind: plan.kind
196
196
  });
197
- const updateResult = await _chunkFFDWL5N2js.runAutomaticUpdatePlan.call(void 0, plan);
197
+ const updateResult = await _chunkRFSXXDH7js.runAutomaticUpdatePlan.call(void 0, plan);
198
198
  if (updateResult.status === "skipped_previous_failure") {
199
199
  void reportAutoUpdateEvent({
200
200
  baseUrl,
@@ -245,7 +245,7 @@ var _crypto = require('crypto');
245
245
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
246
246
  var activeToolExecuteCommand = null;
247
247
  function progressLine(line) {
248
- if (!_chunkRI2PLVD4js.isJsonOutputMode.call(void 0, )) console.error(line);
248
+ if (!_chunkBCKIBVEJjs.isJsonOutputMode.call(void 0, )) console.error(line);
249
249
  }
250
250
  function beginToolExecuteCommand() {
251
251
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getActiveCliProgress
3
- } from "./chunk-7R243PYK.mjs";
3
+ } from "./chunk-NUOKAKZW.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-2QUROYZU.mjs";
15
+ } from "./chunk-PIPEPCRL.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-WRJ6MEY5.mjs";
23
+ } from "./chunk-6PMM7VJN.mjs";
24
24
  import {
25
25
  DeeplineError
26
26
  } from "./chunk-HBL4PM5Q.mjs";
27
27
  import {
28
28
  SDK_RELEASE
29
- } from "./chunk-4GWEZPZR.mjs";
29
+ } from "./chunk-OYJTLEB4.mjs";
30
30
 
31
31
  // src/compat.ts
32
32
  import { randomUUID } from "crypto";
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-YEX3VNAY.mjs";
5
+ } from "./chunk-X75ONMDJ.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-2QUROYZU.mjs";
8
+ } from "./chunk-PIPEPCRL.mjs";
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -2,10 +2,10 @@ import {
2
2
  HttpClient,
3
3
  resolveCliCommandContext,
4
4
  resolveConfig
5
- } from "./chunk-2QUROYZU.mjs";
5
+ } from "./chunk-PIPEPCRL.mjs";
6
6
  import {
7
7
  detectAgentRuntime
8
- } from "./chunk-WRJ6MEY5.mjs";
8
+ } from "./chunk-6PMM7VJN.mjs";
9
9
  import {
10
10
  DeeplineError,
11
11
  serializeToolExecutionFailure
@@ -11,20 +11,23 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkUI67QLIRjs = require('./chunk-UI67QLIR.js');
14
+ var _chunkSJOHQ2WWjs = require('./chunk-SJOHQ2WW.js');
15
15
 
16
16
 
17
- var _chunkRI2PLVD4js = require('./chunk-RI2PLVD4.js');
17
+ var _chunkBCKIBVEJjs = require('./chunk-BCKIBVEJ.js');
18
18
 
19
19
 
20
20
 
21
21
 
22
22
 
23
- var _chunkUZ7VPOTAjs = require('./chunk-UZ7VPOTA.js');
23
+ var _chunkZEZ3CZ3Xjs = require('./chunk-ZEZ3CZ3X.js');
24
24
 
25
25
 
26
26
 
27
- var _chunkK2RUSHZ7js = require('./chunk-K2RUSHZ7.js');
27
+ var _chunkAEKJZJ4Rjs = require('./chunk-AEKJZJ4R.js');
28
+
29
+
30
+ var _chunk4OLXMJ2Ljs = require('./chunk-4OLXMJ2L.js');
28
31
 
29
32
  // src/cli/commands/skills.ts
30
33
  var _child_process = require('child_process');
@@ -73,6 +76,16 @@ function workspaceSkillRootsForAgents(agents) {
73
76
  )
74
77
  ].sort((a, b) => a.localeCompare(b));
75
78
  }
79
+ function deeplineGtmCodexSkillFile(root) {
80
+ if (root === null) return _chunk4OLXMJ2Ljs.DEEPLINE_GTM_GLOBAL_CODEX_SKILL_FILE;
81
+ return _path.join.call(void 0,
82
+ root,
83
+ WORKSPACE_SKILL_ROOTS_BY_AGENT.codex[0],
84
+ "skills",
85
+ "deepline-gtm",
86
+ "SKILL.md"
87
+ );
88
+ }
76
89
  function installedSkillRoots(agent, scope, root) {
77
90
  if (scope === "local") {
78
91
  const dirs = root ? WORKSPACE_SKILL_ROOTS_BY_AGENT[agent] : void 0;
@@ -132,7 +145,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
132
145
  return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
133
146
  }
134
147
  function resolveLocalRoot() {
135
- const target = _chunkUZ7VPOTAjs.resolveProjectPinTarget.call(void 0, );
148
+ const target = _chunkZEZ3CZ3Xjs.resolveProjectPinTarget.call(void 0, );
136
149
  if (!target.ok) {
137
150
  throw new Error(
138
151
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -143,7 +156,7 @@ function resolveLocalRoot() {
143
156
  return target.dir;
144
157
  }
145
158
  function detectSkillsAgents(input) {
146
- const runtime = _nullishCoalesce(input.runtime, () => ( _chunkK2RUSHZ7js.detectAgentRuntime.call(void 0, )));
159
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunkAEKJZJ4Rjs.detectAgentRuntime.call(void 0, )));
147
160
  const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
148
161
  if (knownAgent) return [knownAgent];
149
162
  const roots = [
@@ -158,11 +171,11 @@ function detectSkillsAgents(input) {
158
171
  return detected.length > 0 ? detected : ["*"];
159
172
  }
160
173
  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, _chunkUZ7VPOTAjs.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, _chunkZEZ3CZ3Xjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
162
175
  }
163
176
  function buildSkillsPlan(input) {
164
177
  const scopeArgs = input.scope === "global" ? ["--global"] : [];
165
- const legacyNames = [..._chunkUI67QLIRjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
178
+ const legacyNames = [..._chunkSJOHQ2WWjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
166
179
  (a, b) => a.localeCompare(b)
167
180
  );
168
181
  return {
@@ -176,7 +189,7 @@ function buildSkillsPlan(input) {
176
189
  args: [
177
190
  "exec",
178
191
  "--yes",
179
- `--package=${_chunkUI67QLIRjs.SKILLS_NPX_PACKAGE}`,
192
+ `--package=${_chunkSJOHQ2WWjs.SKILLS_NPX_PACKAGE}`,
180
193
  "--",
181
194
  "skills",
182
195
  "remove",
@@ -192,11 +205,11 @@ function buildSkillsPlan(input) {
192
205
  args: [
193
206
  "exec",
194
207
  "--yes",
195
- `--package=${_chunkUI67QLIRjs.SKILLS_NPX_PACKAGE}`,
208
+ `--package=${_chunkSJOHQ2WWjs.SKILLS_NPX_PACKAGE}`,
196
209
  "--",
197
210
  "skills",
198
211
  "add",
199
- _chunkUI67QLIRjs.skillsSourceUrl.call(void 0, input.baseUrl),
212
+ _chunkSJOHQ2WWjs.skillsSourceUrl.call(void 0, input.baseUrl),
200
213
  "--agent",
201
214
  ...input.agents,
202
215
  ...scopeArgs,
@@ -233,7 +246,7 @@ function readSkillsInstallState(path) {
233
246
  }
234
247
  function runProcess(command, args, cwd) {
235
248
  return new Promise((resolve, reject) => {
236
- const plan = _chunkUI67QLIRjs.resolveShellSpawn.call(void 0,
249
+ const plan = _chunkSJOHQ2WWjs.resolveShellSpawn.call(void 0,
237
250
  command,
238
251
  args,
239
252
  process.platform,
@@ -255,7 +268,7 @@ function runProcess(command, args, cwd) {
255
268
  child.kill("SIGTERM");
256
269
  reject(
257
270
  new Error(
258
- `${_chunkUI67QLIRjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
271
+ `${_chunkSJOHQ2WWjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
259
272
  )
260
273
  );
261
274
  }, SKILLS_PROCESS_TIMEOUT_MS);
@@ -266,7 +279,7 @@ function runProcess(command, args, cwd) {
266
279
  child.once("close", (code) => {
267
280
  clearTimeout(timeout);
268
281
  if (code && stderr.trim()) {
269
- process.stderr.write(`${_chunkUI67QLIRjs.SKILLS_NPX_PACKAGE} exited ${code}.
282
+ process.stderr.write(`${_chunkSJOHQ2WWjs.SKILLS_NPX_PACKAGE} exited ${code}.
270
283
  `);
271
284
  }
272
285
  resolve(_nullishCoalesce(code, () => ( 1)));
@@ -280,7 +293,7 @@ async function runSkillsCommand(options, dependencies = {}) {
280
293
  scope = normalizeScope(options.scope);
281
294
  root = scope === "local" ? resolveLocalRoot() : null;
282
295
  } catch (error) {
283
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
296
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
284
297
  {
285
298
  ok: false,
286
299
  status: "failed",
@@ -292,22 +305,22 @@ async function runSkillsCommand(options, dependencies = {}) {
292
305
  );
293
306
  return 2;
294
307
  }
295
- const baseUrl = _chunkUZ7VPOTAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
308
+ const baseUrl = _chunkZEZ3CZ3Xjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
296
309
  const catalog = {
297
- skillNames: [..._chunkUI67QLIRjs.DEFAULT_SDK_SKILL_NAMES],
298
- version: _chunkK2RUSHZ7js.SDK_VERSION
310
+ skillNames: [..._chunkSJOHQ2WWjs.DEFAULT_SDK_SKILL_NAMES],
311
+ version: _chunkAEKJZJ4Rjs.SDK_VERSION
299
312
  };
300
313
  const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
301
314
  const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
302
315
  if (options.dryRun) {
303
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
316
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
304
317
  { ok: true, status: "planned", dryRun: true, ...plan },
305
318
  { json: options.json }
306
319
  );
307
320
  return 0;
308
321
  }
309
- if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkUI67QLIRjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
310
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
322
+ if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkSJOHQ2WWjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
323
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
311
324
  {
312
325
  ok: true,
313
326
  status: "current",
@@ -339,10 +352,10 @@ async function runSkillsCommand(options, dependencies = {}) {
339
352
  }
340
353
  if (scope === "local" && root) {
341
354
  const managedNames = [
342
- .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkUI67QLIRjs.LEGACY_SKILL_NAMES_TO_REMOVE])
355
+ .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkSJOHQ2WWjs.LEGACY_SKILL_NAMES_TO_REMOVE])
343
356
  ];
344
357
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
345
- _chunkUZ7VPOTAjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
358
+ _chunkZEZ3CZ3Xjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
346
359
  ".deepline/",
347
360
  ...agentRoots.flatMap(
348
361
  (agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
@@ -351,7 +364,7 @@ async function runSkillsCommand(options, dependencies = {}) {
351
364
  }
352
365
  let lease;
353
366
  try {
354
- lease = scope === "global" ? await _chunkUI67QLIRjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
367
+ lease = scope === "global" ? await _chunkSJOHQ2WWjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
355
368
  waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
356
369
  onWait: () => process.stderr.write(
357
370
  "Waiting for a background Deepline skills refresh to finish...\n"
@@ -359,8 +372,8 @@ async function runSkillsCommand(options, dependencies = {}) {
359
372
  }) : { release: () => {
360
373
  } };
361
374
  } catch (error) {
362
- if (!(error instanceof _chunkUI67QLIRjs.SkillsStateUnavailableError)) throw error;
363
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
375
+ if (!(error instanceof _chunkSJOHQ2WWjs.SkillsStateUnavailableError)) throw error;
376
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
364
377
  {
365
378
  ok: false,
366
379
  status: "failed",
@@ -376,7 +389,7 @@ async function runSkillsCommand(options, dependencies = {}) {
376
389
  return 5;
377
390
  }
378
391
  if (!lease) {
379
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
392
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
380
393
  {
381
394
  ok: false,
382
395
  status: "failed",
@@ -385,7 +398,7 @@ async function runSkillsCommand(options, dependencies = {}) {
385
398
  scope,
386
399
  agents,
387
400
  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 ${_chunkUI67QLIRjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
401
+ next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkSJOHQ2WWjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
389
402
  },
390
403
  { json: options.json }
391
404
  );
@@ -434,7 +447,7 @@ async function runSkillsInstallWithLease(input) {
434
447
  }
435
448
  }
436
449
  } catch (error) {
437
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
450
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
438
451
  {
439
452
  ok: false,
440
453
  status: "failed",
@@ -450,7 +463,7 @@ async function runSkillsInstallWithLease(input) {
450
463
  return 5;
451
464
  }
452
465
  if (missing.length > 0) {
453
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
466
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
454
467
  {
455
468
  ok: false,
456
469
  status: "failed",
@@ -490,7 +503,7 @@ async function runSkillsInstallWithLease(input) {
490
503
  {
491
504
  schemaVersion: 1,
492
505
  installedAt: (/* @__PURE__ */ new Date()).toISOString(),
493
- cliVersion: _chunkK2RUSHZ7js.SDK_VERSION,
506
+ cliVersion: _chunkAEKJZJ4Rjs.SDK_VERSION,
494
507
  scope,
495
508
  agents,
496
509
  skillsVersion: plan.version,
@@ -503,9 +516,9 @@ async function runSkillsInstallWithLease(input) {
503
516
  "utf8"
504
517
  );
505
518
  if (scope === "global") {
506
- _chunkUI67QLIRjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
519
+ _chunkSJOHQ2WWjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
507
520
  }
508
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
521
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
509
522
  {
510
523
  ok: true,
511
524
  status: "complete",
@@ -536,7 +549,7 @@ function registerSkillsCommand(program) {
536
549
  "after",
537
550
  `
538
551
  Notes:
539
- This command reinstalls current Deepline-managed skills using ${_chunkUI67QLIRjs.SKILLS_NPX_PACKAGE},
552
+ This command reinstalls current Deepline-managed skills using ${_chunkSJOHQ2WWjs.SKILLS_NPX_PACKAGE},
540
553
  then removes legacy Deepline skill names. Local scope writes into the resolved
541
554
  persistent project.
542
555
 
@@ -548,13 +561,13 @@ Examples:
548
561
  ).action(async (options) => {
549
562
  process.exitCode = await runSkillsCommand(options);
550
563
  });
551
- program.command(_chunkUI67QLIRjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
564
+ program.command(_chunkSJOHQ2WWjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
552
565
  "--claim <token>",
553
566
  "Owner token of the leases this child was started for."
554
567
  ).action(async (options) => {
555
568
  const claim = _optionalChain([options, 'access', _5 => _5.claim, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]);
556
569
  if (!claim) {
557
- _chunkRI2PLVD4js.printCommandEnvelope.call(void 0,
570
+ _chunkBCKIBVEJjs.printCommandEnvelope.call(void 0,
558
571
  {
559
572
  ok: false,
560
573
  status: "failed",
@@ -567,7 +580,7 @@ Examples:
567
580
  process.exitCode = 2;
568
581
  return;
569
582
  }
570
- await _chunkUI67QLIRjs.syncSdkSkillsIfNeeded.call(void 0, _chunkUZ7VPOTAjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
583
+ await _chunkSJOHQ2WWjs.syncSdkSkillsIfNeeded.call(void 0, _chunkZEZ3CZ3Xjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
571
584
  mode: "inline",
572
585
  notices: "defer",
573
586
  claim
@@ -585,4 +598,5 @@ Examples:
585
598
 
586
599
 
587
600
 
588
- exports.workspaceSkillRootsForAgents = workspaceSkillRootsForAgents; exports.missingInstalledSkills = missingInstalledSkills; exports.inferActiveSkillsScope = inferActiveSkillsScope; exports.detectSkillsAgents = detectSkillsAgents; exports.skillsStatePathForScope = skillsStatePathForScope; exports.buildSkillsPlan = buildSkillsPlan; exports.isSkillsPlanCurrent = isSkillsPlanCurrent; exports.runSkillsCommand = runSkillsCommand; exports.registerSkillsCommand = registerSkillsCommand;
601
+
602
+ exports.workspaceSkillRootsForAgents = workspaceSkillRootsForAgents; exports.deeplineGtmCodexSkillFile = deeplineGtmCodexSkillFile; exports.missingInstalledSkills = missingInstalledSkills; exports.inferActiveSkillsScope = inferActiveSkillsScope; exports.detectSkillsAgents = detectSkillsAgents; exports.skillsStatePathForScope = skillsStatePathForScope; exports.buildSkillsPlan = buildSkillsPlan; exports.isSkillsPlanCurrent = isSkillsPlanCurrent; exports.runSkillsCommand = runSkillsCommand; exports.registerSkillsCommand = registerSkillsCommand;
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkIAYSWZDJjs = require('./chunk-IAYSWZDJ.js');
5
+ var _chunk4IP5MLWUjs = require('./chunk-4IP5MLWU.js');
6
6
 
7
7
 
8
8
 
@@ -174,7 +174,7 @@ function extractorValueType(name) {
174
174
  }
175
175
  const named = NAMED_VALUE_SHAPES[definition.valueKind];
176
176
  if (!named) return { type: "string" };
177
- const { type, fields } = _chunkIAYSWZDJjs.schemaField.call(void 0, name, named.schema, true);
177
+ const { type, fields } = _chunk4IP5MLWUjs.schemaField.call(void 0, name, named.schema, true);
178
178
  return { type, ...fields ? { fields } : {}, shape: named.shape };
179
179
  }
180
180
  function jsonSchemaOf(wrapper) {
@@ -211,7 +211,7 @@ function describedTool(tool, requestedToolId) {
211
211
  description,
212
212
  cost: stringField(recordField(tool, "pricing"), "displayText") || void 0,
213
213
  guidance: [],
214
- inputs: _chunkIAYSWZDJjs.schemaFields.call(void 0,
214
+ inputs: _chunk4IP5MLWUjs.schemaFields.call(void 0,
215
215
  recordField(tool, "payload_schema", "payloadSchema")
216
216
  ),
217
217
  outputs: [],
@@ -248,7 +248,7 @@ function describedTool(tool, requestedToolId) {
248
248
  (path) => path.replace(/^toolResponse\.raw\./, "")
249
249
  );
250
250
  const node = roots.flatMap((root) => paths.map((path) => schemaNodeAt(root, path))).find(isRecord);
251
- const { fields, ...typed } = _chunkIAYSWZDJjs.schemaField.call(void 0, name, node, true);
251
+ const { fields, ...typed } = _chunk4IP5MLWUjs.schemaField.call(void 0, name, node, true);
252
252
  const valueType = stringField(_nullishCoalesce(details.get(name), () => ( {})), "valueType");
253
253
  const deepline = kind === "extractedValues" ? extractorValueType(name) : void 0;
254
254
  const known = typed.type !== "unknown" ? void 0 : kind === "extractedLists" ? { type: "object[]" } : deepline;
@@ -308,20 +308,18 @@ function describedTool(tool, requestedToolId) {
308
308
  ],
309
309
  rateLimit: withPlanRateLimit(
310
310
  recordField(recordField(tool, "pricing"), "benefit").requestsPerMinute,
311
- _chunkIAYSWZDJjs.rateLimitSummary.call(void 0,
311
+ _chunk4IP5MLWUjs.rateLimitSummary.call(void 0,
312
312
  recordField(contract, "executionMetadata").configuredRateLimits
313
313
  )
314
314
  ),
315
- inputs: _chunkIAYSWZDJjs.schemaFields.call(void 0, inputSchema),
315
+ inputs: _chunk4IP5MLWUjs.schemaFields.call(void 0, inputSchema),
316
316
  outputs: [...lists, ...values].map(({ field }) => field),
317
- rawResponse: _chunkIAYSWZDJjs.schemaFields.call(void 0, outputSchema),
317
+ rawResponse: _chunk4IP5MLWUjs.schemaFields.call(void 0, outputSchema),
318
318
  runner: playReference ? { via: "play", reference: playReference } : { via: "tool", toolId: String(contract.toolId), inputSchema }
319
319
  };
320
320
  }
321
- function withPlanRateLimit(planRequestsPerMinute, sharedLimit) {
322
- if (typeof planRequestsPerMinute !== "number") return sharedLimit;
323
- const plan = `${planRequestsPerMinute} requests/minute for this workspace on its plan`;
324
- return sharedLimit ? `${plan} (shared ceiling: ${sharedLimit})` : plan;
321
+ function withPlanRateLimit(planRequestsPerMinute, configuredLimit) {
322
+ return typeof planRequestsPerMinute === "number" ? `${planRequestsPerMinute} requests/minute for this workspace on its plan` : configuredLimit;
325
323
  }
326
324
  function sampleValueForField(field) {
327
325
  const name = stringField(field, "name").toLowerCase();
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-C55LNEUF.mjs";
3
+ } from "./chunk-IIO7UOVW.mjs";
4
4
  import {
5
5
  HttpClient,
6
6
  resolveConfig
7
- } from "./chunk-2QUROYZU.mjs";
7
+ } from "./chunk-PIPEPCRL.mjs";
8
8
 
9
9
  // src/client.ts
10
10
  var DeeplineClient2 = class extends DeeplineClient {