deepline 0.3.437 → 0.3.439

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 (111) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +23 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +19 -0
  4. package/dist/cli/auth-5UUDH4A7.js +40 -0
  5. package/dist/cli/{auth-TSUA536O.mjs → auth-FE2LP7A5.mjs} +4 -4
  6. package/dist/cli/{billing-V3T2YPBR.js → billing-4QAWLCKH.js} +73 -73
  7. package/dist/cli/{billing-5TGADGMX.mjs → billing-GABU2MTX.mjs} +4 -4
  8. package/dist/cli/{chunk-PZGRH4X7.mjs → chunk-2ELMQ6LW.mjs} +4 -4
  9. package/dist/cli/{chunk-R4MGS7YD.mjs → chunk-2GNX6SCO.mjs} +24 -0
  10. package/dist/cli/{chunk-WXJAODJD.js → chunk-2I42ORGH.js} +1 -1
  11. package/dist/cli/{chunk-D7NOGNG5.js → chunk-3TYXI7MD.js} +6 -6
  12. package/dist/cli/{chunk-IPJ3DZ7I.js → chunk-72XLUEP6.js} +16 -16
  13. package/dist/cli/{chunk-632AG45P.js → chunk-76DCNYH3.js} +2 -2
  14. package/dist/cli/{chunk-7QLXY6RP.mjs → chunk-BQQ4LEQB.mjs} +1 -1
  15. package/dist/cli/{chunk-JU67SR7M.js → chunk-D4VWHTDT.js} +6 -6
  16. package/dist/cli/{chunk-K4EHBVYV.js → chunk-DM6Q634K.js} +24 -0
  17. package/dist/cli/{chunk-JJ7SVPMN.mjs → chunk-E6ESUF5C.mjs} +1 -1
  18. package/dist/cli/{chunk-Q5LCLAY5.js → chunk-EBW6KRTG.js} +4 -4
  19. package/dist/cli/{chunk-BFV62ZMO.mjs → chunk-F3ORKGAM.mjs} +2 -2
  20. package/dist/cli/{chunk-Z6TTBJHH.js → chunk-FB3B2NKV.js} +8 -8
  21. package/dist/cli/{chunk-U5PCCQMO.js → chunk-FCF5BP3Q.js} +2 -2
  22. package/dist/cli/{chunk-G56WUJBT.mjs → chunk-FDQAOF3L.mjs} +3 -3
  23. package/dist/cli/{chunk-KAM3ZGK4.mjs → chunk-HO2TOFKF.mjs} +14 -1
  24. package/dist/cli/{chunk-PXUAU5Q6.mjs → chunk-HUBVYO52.mjs} +2 -2
  25. package/dist/cli/{chunk-5IJDDKD6.mjs → chunk-IAL3KSJT.mjs} +1 -1
  26. package/dist/cli/{chunk-JHT2LCK3.js → chunk-IX7ZGPLU.js} +8 -8
  27. package/dist/cli/{chunk-BZ3RMXER.js → chunk-KGR7SR3C.js} +113 -81
  28. package/dist/cli/{chunk-QHDQIHME.mjs → chunk-MGBVCVJ7.mjs} +1 -1
  29. package/dist/cli/{chunk-XGKH5EC7.js → chunk-MPY4UD6H.js} +93 -80
  30. package/dist/cli/{chunk-AFWYYSKY.mjs → chunk-N7T6S5SU.mjs} +2 -2
  31. package/dist/cli/{chunk-6VB2BPUX.js → chunk-P4ITKGRQ.js} +50 -50
  32. package/dist/cli/{chunk-HS3A4Q6E.mjs → chunk-QFTJ24UV.mjs} +3 -3
  33. package/dist/cli/{chunk-ZOPU46KZ.js → chunk-R3X55OMZ.js} +20 -20
  34. package/dist/cli/{chunk-UNX3UQFJ.mjs → chunk-RIJ4VTYJ.mjs} +3 -3
  35. package/dist/cli/{chunk-OOXULCVG.mjs → chunk-SWZQBMXR.mjs} +2 -2
  36. package/dist/cli/{chunk-BR63JXVC.js → chunk-TWXPEHTM.js} +52 -52
  37. package/dist/cli/{chunk-QOTWZX7F.mjs → chunk-UN3F6ZKR.mjs} +5 -5
  38. package/dist/cli/{chunk-NEGUDVTQ.js → chunk-WJ4PNSX3.js} +26 -26
  39. package/dist/cli/{chunk-YRK64KJY.js → chunk-XFVHEDRH.js} +35 -35
  40. package/dist/cli/{chunk-RG4ORMHV.mjs → chunk-XMSVK6O4.mjs} +42 -10
  41. package/dist/cli/{chunk-JIY4IN6O.mjs → chunk-ZTJUGK5I.mjs} +1 -1
  42. package/dist/cli/command-docs.js +2 -2
  43. package/dist/cli/command-docs.mjs +1 -1
  44. package/dist/cli/{csv-BWEZ5PWQ.mjs → csv-NZOZIEQP.mjs} +3 -3
  45. package/dist/cli/{csv-WL7ZWIT5.js → csv-TVVXG42B.js} +12 -12
  46. package/dist/cli/{db-DCTSMDWZ.js → db-3Q2OPJW6.js} +25 -25
  47. package/dist/cli/{db-KAR7YCP4.mjs → db-PEZHN563.mjs} +4 -4
  48. package/dist/cli/{describe-EMVTMHVJ.mjs → describe-GHSBWUUS.mjs} +12 -12
  49. package/dist/cli/{describe-A7FCQTHV.js → describe-M7AP5WVH.js} +16 -16
  50. package/dist/cli/describe-core.d.mts +1 -1
  51. package/dist/cli/describe-core.d.ts +1 -1
  52. package/dist/cli/{executions-XR4PN6WX.mjs → executions-7E3GU4QA.mjs} +4 -4
  53. package/dist/cli/{executions-YSUL2TQR.js → executions-YKR2SAZF.js} +6 -6
  54. package/dist/cli/{feedback-PJSTAXH7.mjs → feedback-JSPMENHA.mjs} +3 -3
  55. package/dist/cli/{feedback-G5IU7E4Y.js → feedback-JTRYBUQZ.js} +7 -7
  56. package/dist/cli/git-6QITFAMM.js +24 -0
  57. package/dist/cli/{git-TJ5Q2Z7A.mjs → git-R4PATSRX.mjs} +4 -4
  58. package/dist/cli/index.js +135 -135
  59. package/dist/cli/index.mjs +37 -37
  60. package/dist/cli/{legacy-noops-GS3DMVI5.js → legacy-noops-3OMVEANW.js} +7 -7
  61. package/dist/cli/{legacy-noops-O6OLRAES.mjs → legacy-noops-W52GTS36.mjs} +4 -4
  62. package/dist/cli/{monitors-BPEMPIO4.mjs → monitors-SIXLFZJ3.mjs} +4 -4
  63. package/dist/cli/{monitors-A4S5WBGO.js → monitors-YA6X5BM4.js} +84 -84
  64. package/dist/cli/{org-VQCNY2WB.js → org-73YXPEZ5.js} +66 -66
  65. package/dist/cli/{org-OL3AIYSH.mjs → org-EYFKI2ZI.mjs} +4 -4
  66. package/dist/cli/{play-7XS2VNKK.mjs → play-7EF6XSS6.mjs} +10 -10
  67. package/dist/cli/{play-U6UJM67Q.js → play-CSRSSDTC.js} +283 -283
  68. package/dist/cli/{providers-RLVGGWTW.js → providers-IHQGSP3E.js} +7 -7
  69. package/dist/cli/{providers-S7Q4I65H.mjs → providers-MKIVZMBG.mjs} +4 -4
  70. package/dist/cli/{quickstart-BNSND2KM.js → quickstart-26QTTEHV.js} +5 -5
  71. package/dist/cli/{quickstart-2XZPRIBJ.mjs → quickstart-COU7YD7S.mjs} +3 -3
  72. package/dist/cli/search-DOK42NBV.js +30 -0
  73. package/dist/cli/{search-UVIIPKWR.mjs → search-YKN4OI4P.mjs} +5 -5
  74. package/dist/cli/{secrets-DQUHORO5.mjs → secrets-CQPQQJ76.mjs} +4 -4
  75. package/dist/cli/{secrets-RKE6ZNTC.js → secrets-W3DT7F7Q.js} +13 -13
  76. package/dist/cli/{sessions-4Y7G5432.js → sessions-GYKUO55E.js} +5 -5
  77. package/dist/cli/{sessions-W77NIN3J.mjs → sessions-U5ULT5CF.mjs} +4 -4
  78. package/dist/cli/{settings-SL5QVPV3.mjs → settings-6MZCTUWD.mjs} +8 -8
  79. package/dist/cli/{settings-CTNYYHZP.js → settings-U6ZOQ3FZ.js} +75 -75
  80. package/dist/cli/{setup-DP6PDQUN.js → setup-HEDWKIGE.js} +42 -42
  81. package/dist/cli/{setup-Y5UBJKVQ.mjs → setup-JFG3GZGE.mjs} +7 -7
  82. package/dist/cli/skills-FOGBZYDP.js +29 -0
  83. package/dist/cli/{skills-LWLEGYDS.mjs → skills-VIY56KK5.mjs} +5 -5
  84. package/dist/cli/{tools-M2XZNF66.mjs → tools-Y64ZTYTZ.mjs} +12 -12
  85. package/dist/cli/tools-ZN54N4NT.js +44 -0
  86. package/dist/cli/{update-EK2YNVKT.mjs → update-2RL67PK2.mjs} +7 -7
  87. package/dist/cli/update-AZCNZXXP.js +31 -0
  88. package/dist/cli/{workflow-BHDL5RHZ.js → workflow-FHKZGJGS.js} +15 -15
  89. package/dist/cli/{workflow-YFZDZT4Z.mjs → workflow-YRI7MT3F.mjs} +5 -5
  90. package/dist/{client-uX4RCcOS.d.ts → client-9nH8tx4R.d.ts} +9 -0
  91. package/dist/{client-jgdWPXpp.d.mts → client-Doml68vC.d.mts} +9 -0
  92. package/dist/index.d.mts +2 -2
  93. package/dist/index.d.ts +2 -2
  94. package/dist/index.js +6 -6
  95. package/dist/index.mjs +3 -3
  96. package/dist/install-integrity.json +82 -82
  97. package/dist/plays/play-description.d.mts +1 -1
  98. package/dist/plays/play-description.d.ts +1 -1
  99. package/dist/plays/run-request.d.mts +1 -1
  100. package/dist/plays/run-request.d.ts +1 -1
  101. package/dist/release.d.mts +1 -1
  102. package/dist/release.d.ts +1 -1
  103. package/dist/release.js +2 -2
  104. package/dist/release.mjs +1 -1
  105. package/package.json +1 -1
  106. package/dist/cli/auth-DN5GJY5Q.js +0 -40
  107. package/dist/cli/git-QHEYASI4.js +0 -24
  108. package/dist/cli/search-J6VQK6XY.js +0 -30
  109. package/dist/cli/skills-G2Y3KXA3.js +0 -29
  110. package/dist/cli/tools-6SKR5PQ4.js +0 -44
  111. package/dist/cli/update-AUB6RNSI.js +0 -31
@@ -11,10 +11,10 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkBR63JXVCjs = require('./chunk-BR63JXVC.js');
14
+ var _chunkTWXPEHTMjs = require('./chunk-TWXPEHTM.js');
15
15
 
16
16
 
17
- var _chunkJU67SR7Mjs = require('./chunk-JU67SR7M.js');
17
+ var _chunkD4VWHTDTjs = require('./chunk-D4VWHTDT.js');
18
18
 
19
19
 
20
20
 
@@ -22,7 +22,7 @@ var _chunkJU67SR7Mjs = require('./chunk-JU67SR7M.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkQ5LCLAY5js = require('./chunk-Q5LCLAY5.js');
25
+ var _chunkEBW6KRTGjs = require('./chunk-EBW6KRTG.js');
26
26
 
27
27
  // src/cli/commands/skills.ts
28
28
  var _child_process = require('child_process');
@@ -75,7 +75,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
75
75
  return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
76
76
  }
77
77
  function resolveLocalRoot() {
78
- const target = _chunkQ5LCLAY5js.resolveProjectPinTarget.call(void 0, );
78
+ const target = _chunkEBW6KRTGjs.resolveProjectPinTarget.call(void 0, );
79
79
  if (!target.ok) {
80
80
  throw new Error(
81
81
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -86,7 +86,7 @@ function resolveLocalRoot() {
86
86
  return target.dir;
87
87
  }
88
88
  function detectSkillsAgents(input) {
89
- const runtime = _nullishCoalesce(input.runtime, () => ( _chunkQ5LCLAY5js.detectAgentRuntime.call(void 0, )));
89
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunkEBW6KRTGjs.detectAgentRuntime.call(void 0, )));
90
90
  const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
91
91
  if (knownAgent) return [knownAgent];
92
92
  const roots = [
@@ -101,11 +101,11 @@ function detectSkillsAgents(input) {
101
101
  return detected.length > 0 ? detected : ["*"];
102
102
  }
103
103
  function skillsStatePathForScope(baseUrl, scope, root) {
104
- return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkQ5LCLAY5js.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
104
+ return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkEBW6KRTGjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
105
105
  }
106
106
  function buildSkillsPlan(input) {
107
107
  const scopeArgs = input.scope === "global" ? ["--global"] : [];
108
- const legacyNames = [..._chunkBR63JXVCjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
108
+ const legacyNames = [..._chunkTWXPEHTMjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
109
109
  (a, b) => a.localeCompare(b)
110
110
  );
111
111
  return {
@@ -119,7 +119,7 @@ function buildSkillsPlan(input) {
119
119
  args: [
120
120
  "exec",
121
121
  "--yes",
122
- `--package=${_chunkBR63JXVCjs.SKILLS_NPX_PACKAGE}`,
122
+ `--package=${_chunkTWXPEHTMjs.SKILLS_NPX_PACKAGE}`,
123
123
  "--",
124
124
  "skills",
125
125
  "remove",
@@ -135,11 +135,11 @@ function buildSkillsPlan(input) {
135
135
  args: [
136
136
  "exec",
137
137
  "--yes",
138
- `--package=${_chunkBR63JXVCjs.SKILLS_NPX_PACKAGE}`,
138
+ `--package=${_chunkTWXPEHTMjs.SKILLS_NPX_PACKAGE}`,
139
139
  "--",
140
140
  "skills",
141
141
  "add",
142
- _chunkBR63JXVCjs.skillsSourceUrl.call(void 0, input.baseUrl),
142
+ _chunkTWXPEHTMjs.skillsSourceUrl.call(void 0, input.baseUrl),
143
143
  "--agent",
144
144
  ...input.agents,
145
145
  ...scopeArgs,
@@ -176,7 +176,7 @@ function readSkillsInstallState(path) {
176
176
  }
177
177
  function runProcess(command, args, cwd) {
178
178
  return new Promise((resolve, reject) => {
179
- const plan = _chunkBR63JXVCjs.resolveShellSpawn.call(void 0,
179
+ const plan = _chunkTWXPEHTMjs.resolveShellSpawn.call(void 0,
180
180
  command,
181
181
  args,
182
182
  process.platform,
@@ -198,7 +198,7 @@ function runProcess(command, args, cwd) {
198
198
  child.kill("SIGTERM");
199
199
  reject(
200
200
  new Error(
201
- `${_chunkBR63JXVCjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
201
+ `${_chunkTWXPEHTMjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
202
202
  )
203
203
  );
204
204
  }, SKILLS_PROCESS_TIMEOUT_MS);
@@ -209,7 +209,7 @@ function runProcess(command, args, cwd) {
209
209
  child.once("close", (code) => {
210
210
  clearTimeout(timeout);
211
211
  if (code && stderr.trim()) {
212
- process.stderr.write(`${_chunkBR63JXVCjs.SKILLS_NPX_PACKAGE} exited ${code}.
212
+ process.stderr.write(`${_chunkTWXPEHTMjs.SKILLS_NPX_PACKAGE} exited ${code}.
213
213
  `);
214
214
  }
215
215
  resolve(_nullishCoalesce(code, () => ( 1)));
@@ -223,7 +223,7 @@ async function runSkillsCommand(options, dependencies = {}) {
223
223
  scope = normalizeScope(options.scope);
224
224
  root = scope === "local" ? resolveLocalRoot() : null;
225
225
  } catch (error) {
226
- _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0,
226
+ _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
227
227
  {
228
228
  ok: false,
229
229
  status: "failed",
@@ -235,22 +235,22 @@ async function runSkillsCommand(options, dependencies = {}) {
235
235
  );
236
236
  return 2;
237
237
  }
238
- const baseUrl = _chunkQ5LCLAY5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
238
+ const baseUrl = _chunkEBW6KRTGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
239
239
  const catalog = {
240
- skillNames: [..._chunkBR63JXVCjs.DEFAULT_SDK_SKILL_NAMES],
241
- version: _chunkQ5LCLAY5js.SDK_VERSION
240
+ skillNames: [..._chunkTWXPEHTMjs.DEFAULT_SDK_SKILL_NAMES],
241
+ version: _chunkEBW6KRTGjs.SDK_VERSION
242
242
  };
243
243
  const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
244
244
  const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
245
245
  if (options.dryRun) {
246
- _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0,
246
+ _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
247
247
  { ok: true, status: "planned", dryRun: true, ...plan },
248
248
  { json: options.json }
249
249
  );
250
250
  return 0;
251
251
  }
252
- if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkBR63JXVCjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
253
- _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0,
252
+ if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkTWXPEHTMjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
253
+ _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
254
254
  {
255
255
  ok: true,
256
256
  status: "current",
@@ -282,10 +282,10 @@ async function runSkillsCommand(options, dependencies = {}) {
282
282
  }
283
283
  if (scope === "local" && root) {
284
284
  const managedNames = [
285
- .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkBR63JXVCjs.LEGACY_SKILL_NAMES_TO_REMOVE])
285
+ .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkTWXPEHTMjs.LEGACY_SKILL_NAMES_TO_REMOVE])
286
286
  ];
287
287
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
288
- _chunkQ5LCLAY5js.ensureProjectPrivatePathsIgnored.call(void 0, root, [
288
+ _chunkEBW6KRTGjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
289
289
  ".deepline/",
290
290
  ...agentRoots.flatMap(
291
291
  (agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
@@ -294,7 +294,7 @@ async function runSkillsCommand(options, dependencies = {}) {
294
294
  }
295
295
  let lease;
296
296
  try {
297
- lease = scope === "global" ? await _chunkBR63JXVCjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
297
+ lease = scope === "global" ? await _chunkTWXPEHTMjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
298
298
  waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
299
299
  onWait: () => process.stderr.write(
300
300
  "Waiting for a background Deepline skills refresh to finish...\n"
@@ -302,8 +302,8 @@ async function runSkillsCommand(options, dependencies = {}) {
302
302
  }) : { release: () => {
303
303
  } };
304
304
  } catch (error) {
305
- if (!(error instanceof _chunkBR63JXVCjs.SkillsStateUnavailableError)) throw error;
306
- _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0,
305
+ if (!(error instanceof _chunkTWXPEHTMjs.SkillsStateUnavailableError)) throw error;
306
+ _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
307
307
  {
308
308
  ok: false,
309
309
  status: "failed",
@@ -319,7 +319,7 @@ async function runSkillsCommand(options, dependencies = {}) {
319
319
  return 5;
320
320
  }
321
321
  if (!lease) {
322
- _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0,
322
+ _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
323
323
  {
324
324
  ok: false,
325
325
  status: "failed",
@@ -328,7 +328,7 @@ async function runSkillsCommand(options, dependencies = {}) {
328
328
  scope,
329
329
  agents,
330
330
  message: "A background Deepline skills refresh is still running for these agents.",
331
- next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkBR63JXVCjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
331
+ next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkTWXPEHTMjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
332
332
  },
333
333
  { json: options.json }
334
334
  );
@@ -365,7 +365,7 @@ async function runSkillsInstallWithLease(input) {
365
365
  throw new Error("Could not install the current Deepline skills.");
366
366
  }
367
367
  } catch (error) {
368
- _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0,
368
+ _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
369
369
  {
370
370
  ok: false,
371
371
  status: "failed",
@@ -404,7 +404,7 @@ async function runSkillsInstallWithLease(input) {
404
404
  {
405
405
  schemaVersion: 1,
406
406
  installedAt: (/* @__PURE__ */ new Date()).toISOString(),
407
- cliVersion: _chunkQ5LCLAY5js.SDK_VERSION,
407
+ cliVersion: _chunkEBW6KRTGjs.SDK_VERSION,
408
408
  scope,
409
409
  agents,
410
410
  skillsVersion: plan.version,
@@ -417,9 +417,9 @@ async function runSkillsInstallWithLease(input) {
417
417
  "utf8"
418
418
  );
419
419
  if (scope === "global") {
420
- _chunkBR63JXVCjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
420
+ _chunkTWXPEHTMjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
421
421
  }
422
- _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0,
422
+ _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
423
423
  {
424
424
  ok: true,
425
425
  status: "complete",
@@ -450,7 +450,7 @@ function registerSkillsCommand(program) {
450
450
  "after",
451
451
  `
452
452
  Notes:
453
- This command reinstalls current Deepline-managed skills using ${_chunkBR63JXVCjs.SKILLS_NPX_PACKAGE},
453
+ This command reinstalls current Deepline-managed skills using ${_chunkTWXPEHTMjs.SKILLS_NPX_PACKAGE},
454
454
  then removes legacy Deepline skill names. Local scope writes into the resolved
455
455
  persistent project.
456
456
 
@@ -462,13 +462,13 @@ Examples:
462
462
  ).action(async (options) => {
463
463
  process.exitCode = await runSkillsCommand(options);
464
464
  });
465
- program.command(_chunkBR63JXVCjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
465
+ program.command(_chunkTWXPEHTMjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
466
466
  "--claim <token>",
467
467
  "Owner token of the leases this child was started for."
468
468
  ).action(async (options) => {
469
469
  const claim = _optionalChain([options, 'access', _ => _.claim, 'optionalAccess', _2 => _2.trim, 'call', _3 => _3()]);
470
470
  if (!claim) {
471
- _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0,
471
+ _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
472
472
  {
473
473
  ok: false,
474
474
  status: "failed",
@@ -481,7 +481,7 @@ Examples:
481
481
  process.exitCode = 2;
482
482
  return;
483
483
  }
484
- await _chunkBR63JXVCjs.syncSdkSkillsIfNeeded.call(void 0, _chunkQ5LCLAY5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
484
+ await _chunkTWXPEHTMjs.syncSdkSkillsIfNeeded.call(void 0, _chunkEBW6KRTGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
485
485
  mode: "inline",
486
486
  notices: "defer",
487
487
  claim
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  recentSearchRef,
7
7
  registerDeprecatedSearchCommand
8
- } from "./chunk-HS3A4Q6E.mjs";
8
+ } from "./chunk-QFTJ24UV.mjs";
9
9
  import {
10
10
  arrayField,
11
11
  formatModelDescription,
@@ -45,7 +45,7 @@ import {
45
45
  import {
46
46
  DeeplineClient,
47
47
  validateExecutionIdempotencyKey
48
- } from "./chunk-KAM3ZGK4.mjs";
48
+ } from "./chunk-HO2TOFKF.mjs";
49
49
  import {
50
50
  stableStringify
51
51
  } from "./chunk-UBKA33KY.mjs";
@@ -55,18 +55,18 @@ import {
55
55
  maybeAutoUpdateAndRelaunch,
56
56
  registerCompatibilityCatalog,
57
57
  runToolExecuteStage
58
- } from "./chunk-PZGRH4X7.mjs";
58
+ } from "./chunk-2ELMQ6LW.mjs";
59
59
  import {
60
60
  isCliTraceEnabled,
61
61
  recordCliTrace,
62
62
  resolveCliMaintenancePolicy
63
- } from "./chunk-JJ7SVPMN.mjs";
63
+ } from "./chunk-E6ESUF5C.mjs";
64
64
  import {
65
65
  checkSdkCompatibility,
66
66
  enforceSdkCompatibilityResponse,
67
67
  flushDeferredSkillsSyncNotices,
68
68
  syncSdkSkillsIfNeeded
69
- } from "./chunk-UNX3UQFJ.mjs";
69
+ } from "./chunk-RIJ4VTYJ.mjs";
70
70
  import {
71
71
  printCommandEnvelope,
72
72
  printCompactJson,
@@ -74,12 +74,12 @@ import {
74
74
  printJsonError,
75
75
  renderCommandEnvelopeText,
76
76
  shouldEmitJson
77
- } from "./chunk-7QLXY6RP.mjs";
77
+ } from "./chunk-BQQ4LEQB.mjs";
78
78
  import {
79
79
  readSdkSkillsLocalVersion,
80
80
  resolveConfig,
81
81
  sdkCliStateDirPath
82
- } from "./chunk-JIY4IN6O.mjs";
82
+ } from "./chunk-ZTJUGK5I.mjs";
83
83
  import {
84
84
  DeeplineError
85
85
  } from "./chunk-E4IXDAZI.mjs";
@@ -760,12 +760,44 @@ Output:
760
760
  `
761
761
  );
762
762
  tools.command("connect <provider>").description(
763
- "Save your provider credentials for the active workspace (owner/admin required)."
764
- ).requiredOption(
763
+ "Connect a provider with credentials or OAuth (owner/admin required)."
764
+ ).option(
765
765
  "--credentials-file <path>",
766
766
  "JSON object of credential field names and string values; keep this file private"
767
+ ).option("--oauth", "Return an OAuth authorization URL").option("--preset <id>", "Server-defined access preset (HubSpot only)").option("--scopes <scopes>", "Comma-separated OAuth scopes").option(
768
+ "--optional-scopes <scopes>",
769
+ "Comma-separated optional OAuth scopes"
767
770
  ).option("--json", "Emit a confirmation without credential values").action(
768
771
  async (provider, options) => {
772
+ if (options.oauth) {
773
+ if (options.credentialsFile)
774
+ throw new Error("Use --oauth or --credentials-file, not both.");
775
+ if (options.preset !== void 0 && (options.scopes !== void 0 || options.optionalScopes !== void 0))
776
+ throw new Error("Use --preset or individual scopes, not both.");
777
+ const splitScopes = (value) => value.split(",").map((scope) => scope.trim()).filter(Boolean);
778
+ const result2 = await new DeeplineClient().startIntegrationOAuth(
779
+ provider,
780
+ {
781
+ ...options.preset !== void 0 ? { preset: options.preset } : {},
782
+ ...options.scopes !== void 0 ? { scopes: splitScopes(options.scopes) } : {},
783
+ ...options.optionalScopes !== void 0 ? { optionalScopes: splitScopes(options.optionalScopes) } : {}
784
+ }
785
+ );
786
+ if (!result2.ok || typeof result2.redirect_url !== "string" || !result2.redirect_url)
787
+ throw new Error(
788
+ "The API did not return an OAuth authorization URL."
789
+ );
790
+ if (shouldEmitJson(options.json))
791
+ console.log(
792
+ JSON.stringify({ provider, redirect_url: result2.redirect_url })
793
+ );
794
+ else console.log(result2.redirect_url);
795
+ return;
796
+ }
797
+ if (!options.credentialsFile || options.preset !== void 0 || options.scopes !== void 0 || options.optionalScopes !== void 0)
798
+ throw new Error(
799
+ "Use --credentials-file to save credentials, or --oauth to request access."
800
+ );
769
801
  let credentials;
770
802
  try {
771
803
  credentials = JSON.parse(
@@ -936,7 +968,7 @@ Examples:
936
968
  process.exitCode = await narrowView();
937
969
  return;
938
970
  }
939
- const { describeAnything } = await import("./describe-EMVTMHVJ.mjs");
971
+ const { describeAnything } = await import("./describe-GHSBWUUS.mjs");
940
972
  process.exitCode = await describeAnything(
941
973
  toolId,
942
974
  {
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-E4IXDAZI.mjs";
18
18
  import {
19
19
  SDK_RELEASE
20
- } from "./chunk-QHDQIHME.mjs";
20
+ } from "./chunk-MGBVCVJ7.mjs";
21
21
 
22
22
  // src/config.ts
23
23
  import {
@@ -6,7 +6,7 @@
6
6
 
7
7
 
8
8
 
9
- var _chunkK4EHBVYVjs = require('./chunk-K4EHBVYV.js');
9
+ var _chunkDM6Q634Kjs = require('./chunk-DM6Q634K.js');
10
10
  require('./chunk-COGTRVWW.js');
11
11
 
12
12
 
@@ -16,4 +16,4 @@ require('./chunk-COGTRVWW.js');
16
16
 
17
17
 
18
18
 
19
- exports.CLI_DOC_SURFACE = _chunkK4EHBVYVjs.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunkK4EHBVYVjs.COMMAND_DOCS; exports.commandDocKey = _chunkK4EHBVYVjs.commandDocKey; exports.helpDetailFromArgv = _chunkK4EHBVYVjs.helpDetailFromArgv; exports.renderActionExplanation = _chunkK4EHBVYVjs.renderActionExplanation; exports.renderCommandExplanation = _chunkK4EHBVYVjs.renderCommandExplanation; exports.renderDocText = _chunkK4EHBVYVjs.renderDocText;
19
+ exports.CLI_DOC_SURFACE = _chunkDM6Q634Kjs.CLI_DOC_SURFACE; exports.COMMAND_DOCS = _chunkDM6Q634Kjs.COMMAND_DOCS; exports.commandDocKey = _chunkDM6Q634Kjs.commandDocKey; exports.helpDetailFromArgv = _chunkDM6Q634Kjs.helpDetailFromArgv; exports.renderActionExplanation = _chunkDM6Q634Kjs.renderActionExplanation; exports.renderCommandExplanation = _chunkDM6Q634Kjs.renderCommandExplanation; exports.renderDocText = _chunkDM6Q634Kjs.renderDocText;
@@ -6,7 +6,7 @@ import {
6
6
  renderActionExplanation,
7
7
  renderCommandExplanation,
8
8
  renderDocText
9
- } from "./chunk-R4MGS7YD.mjs";
9
+ } from "./chunk-2GNX6SCO.mjs";
10
10
  import "./chunk-KRD6H754.mjs";
11
11
  export {
12
12
  CLI_DOC_SURFACE,
@@ -4,12 +4,12 @@ import {
4
4
  printCommandEnvelope,
5
5
  printJson,
6
6
  readCsvRows
7
- } from "./chunk-7QLXY6RP.mjs";
8
- import "./chunk-JIY4IN6O.mjs";
7
+ } from "./chunk-BQQ4LEQB.mjs";
8
+ import "./chunk-ZTJUGK5I.mjs";
9
9
  import "./chunk-MAMVGOSC.mjs";
10
10
  import "./chunk-DLIRSHV6.mjs";
11
11
  import "./chunk-E4IXDAZI.mjs";
12
- import "./chunk-QHDQIHME.mjs";
12
+ import "./chunk-MGBVCVJ7.mjs";
13
13
  import "./chunk-WZYKRD7T.mjs";
14
14
  import "./chunk-KRD6H754.mjs";
15
15
 
@@ -4,12 +4,12 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkJU67SR7Mjs = require('./chunk-JU67SR7M.js');
8
- require('./chunk-Q5LCLAY5.js');
7
+ var _chunkD4VWHTDTjs = require('./chunk-D4VWHTDT.js');
8
+ require('./chunk-EBW6KRTG.js');
9
9
  require('./chunk-NPBJI7RE.js');
10
10
  require('./chunk-XNYIZMNQ.js');
11
11
  require('./chunk-PPDBRJRW.js');
12
- require('./chunk-WXJAODJD.js');
12
+ require('./chunk-2I42ORGH.js');
13
13
  require('./chunk-OG64RBAC.js');
14
14
  require('./chunk-COGTRVWW.js');
15
15
 
@@ -127,7 +127,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
127
127
  column.length,
128
128
  ...rows.map((row) => {
129
129
  const value = _nullishCoalesce(row[column], () => ( ""));
130
- return (verbose ? value : _chunkJU67SR7Mjs.clip.call(void 0, value, 42)).length;
130
+ return (verbose ? value : _chunkD4VWHTDTjs.clip.call(void 0, value, 42)).length;
131
131
  })
132
132
  )
133
133
  ])
@@ -137,7 +137,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
137
137
  const body = rows.map(
138
138
  (row) => columns.map((column) => {
139
139
  const raw = _nullishCoalesce(row[column], () => ( ""));
140
- const display = verbose ? raw : _chunkJU67SR7Mjs.clip.call(void 0, raw, 42);
140
+ const display = verbose ? raw : _chunkD4VWHTDTjs.clip.call(void 0, raw, 42);
141
141
  return display.padEnd(widths[column]);
142
142
  }).join(" | ")
143
143
  );
@@ -157,7 +157,7 @@ async function handleCsvShow(path, options, command) {
157
157
  { exitCode: 2 }
158
158
  );
159
159
  }
160
- const allRows = _chunkJU67SR7Mjs.readCsvRows.call(void 0, csvPath);
160
+ const allRows = _chunkD4VWHTDTjs.readCsvRows.call(void 0, csvPath);
161
161
  const [rowStart, rowEnd] = parseRowRange(options.rows);
162
162
  const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
163
163
  const { rows: selected, columns } = selectColumns(
@@ -170,7 +170,7 @@ async function handleCsvShow(path, options, command) {
170
170
  if (options.summary) {
171
171
  const summaries = summarizeColumns(selected, columns);
172
172
  if (format === "json") {
173
- _chunkJU67SR7Mjs.printJson.call(void 0, {
173
+ _chunkD4VWHTDTjs.printJson.call(void 0, {
174
174
  rows: summaries,
175
175
  total_rows: selected.length,
176
176
  source_total_rows: allRows.length
@@ -179,7 +179,7 @@ async function handleCsvShow(path, options, command) {
179
179
  }
180
180
  const displayRows = summaryDisplayRows(summaries);
181
181
  if (format === "csv") {
182
- process.stdout.write(_chunkJU67SR7Mjs.csvStringFromRows.call(void 0, displayRows));
182
+ process.stdout.write(_chunkD4VWHTDTjs.csvStringFromRows.call(void 0, displayRows));
183
183
  return;
184
184
  }
185
185
  process.stdout.write(
@@ -194,7 +194,7 @@ async function handleCsvShow(path, options, command) {
194
194
  return;
195
195
  }
196
196
  if (format === "json") {
197
- _chunkJU67SR7Mjs.printJson.call(void 0, {
197
+ _chunkD4VWHTDTjs.printJson.call(void 0, {
198
198
  rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
199
199
  });
200
200
  return;
@@ -437,7 +437,7 @@ async function handleCsvRenderStart(options) {
437
437
  if (log) {
438
438
  detail = `
439
439
  CSV render log:
440
- ${_chunkJU67SR7Mjs.clip.call(void 0, log, 2e3)}`;
440
+ ${_chunkD4VWHTDTjs.clip.call(void 0, log, 2e3)}`;
441
441
  }
442
442
  } catch (e7) {
443
443
  }
@@ -488,7 +488,7 @@ async function handleCsvRenderStatus(options) {
488
488
  if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
489
489
  if (payload.url) lines.push(`Render URL: ${payload.url}`);
490
490
  lines.push(`Render Health: ${payload.health_status}`);
491
- _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0, payload, {
491
+ _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0, payload, {
492
492
  json: options.json,
493
493
  text: `${lines.join("\n")}
494
494
  `
@@ -524,7 +524,7 @@ async function handleCsvRenderStop(options) {
524
524
  };
525
525
  const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
526
526
  ` : "No running CSV render process found.\n";
527
- _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
527
+ _chunkD4VWHTDTjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
528
528
  }
529
529
  async function handleCsvRender(action, options) {
530
530
  const normalized = _nullishCoalesce(action, () => ( "start"));