deepline 0.3.444 → 0.3.446

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 (106) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +9 -2
  3. package/dist/cli/auth-LQFM7AUA.js +40 -0
  4. package/dist/cli/{auth-XTFEJXCK.mjs → auth-QS4HFSPI.mjs} +4 -4
  5. package/dist/cli/{billing-37ATIT7G.js → billing-72BVAZ6M.js} +73 -73
  6. package/dist/cli/{billing-3RZZWNAR.mjs → billing-X7ZJUBJE.mjs} +4 -4
  7. package/dist/cli/{chunk-53HWKCD3.js → chunk-4UD3HIUY.js} +8 -8
  8. package/dist/cli/{chunk-QR3SSTAE.js → chunk-6PTUA4M7.js} +10 -10
  9. package/dist/cli/{chunk-A5LNESLL.mjs → chunk-6XL3IIFD.mjs} +4 -4
  10. package/dist/cli/{chunk-LUGZDR4E.mjs → chunk-7HUXIWE2.mjs} +3 -3
  11. package/dist/cli/{chunk-2Y3YBOS4.js → chunk-7X7GEXHC.js} +6 -6
  12. package/dist/cli/{chunk-OTHCIRIC.js → chunk-BIQCGMZC.js} +50 -50
  13. package/dist/cli/{chunk-OZT66JBQ.js → chunk-CNIFSBGW.js} +35 -35
  14. package/dist/cli/{chunk-VAQYDKRH.mjs → chunk-D7ES6PAW.mjs} +1 -1
  15. package/dist/cli/{chunk-J6NVL526.mjs → chunk-DPVDPJLA.mjs} +1 -1
  16. package/dist/cli/{chunk-JMARKXIB.js → chunk-EATTWMIB.js} +2 -2
  17. package/dist/cli/{chunk-VJUFRXFU.mjs → chunk-FMUADJJ6.mjs} +3 -3
  18. package/dist/cli/{chunk-HU6PIQDF.mjs → chunk-G7L27KZB.mjs} +2 -2
  19. package/dist/cli/{chunk-RVM54NYN.mjs → chunk-HBC7PNWS.mjs} +1 -1
  20. package/dist/cli/{chunk-W25OALCJ.mjs → chunk-HDFRJ4IT.mjs} +32 -5
  21. package/dist/cli/{chunk-X4YO4AXG.mjs → chunk-IQREZ6NU.mjs} +2 -2
  22. package/dist/cli/{chunk-VHVZVLV7.mjs → chunk-ISQLFI2O.mjs} +1 -1
  23. package/dist/cli/{chunk-CGVTZKKZ.mjs → chunk-JZK7OEG7.mjs} +2 -2
  24. package/dist/cli/{chunk-KNAKCMGJ.js → chunk-KGQNIA37.js} +17 -17
  25. package/dist/cli/{chunk-JD7GAMDF.mjs → chunk-KUWUIXC7.mjs} +2 -2
  26. package/dist/cli/{chunk-AFFH22ER.js → chunk-LBZGICM5.js} +2 -2
  27. package/dist/cli/{chunk-VVJWB47B.js → chunk-MERFSCZL.js} +16 -16
  28. package/dist/cli/{chunk-MBCQHTXT.mjs → chunk-MTRBEEIJ.mjs} +1 -1
  29. package/dist/cli/{chunk-RNM7JYV6.js → chunk-MU76KMIL.js} +20 -20
  30. package/dist/cli/{chunk-OCYDAMHG.js → chunk-N5CNBKPY.js} +246 -246
  31. package/dist/cli/{chunk-HPBZAYSS.mjs → chunk-PE4GNPHD.mjs} +2 -2
  32. package/dist/cli/{chunk-PP66EATA.js → chunk-PQUUWFXY.js} +2 -2
  33. package/dist/cli/{chunk-C4CG252T.mjs → chunk-R4AKASN2.mjs} +3 -3
  34. package/dist/cli/{chunk-GYLEMRHP.mjs → chunk-R53NKATP.mjs} +5 -5
  35. package/dist/cli/{chunk-WYWZZZ2Q.js → chunk-RZ25NO6A.js} +26 -26
  36. package/dist/cli/{chunk-WQPJQEDE.mjs → chunk-SLEUWLJE.mjs} +4 -3
  37. package/dist/cli/{chunk-FS7TP7F2.js → chunk-SSPHVLOF.js} +52 -52
  38. package/dist/cli/{chunk-AJ54W32A.mjs → chunk-T56WZU3Q.mjs} +1 -1
  39. package/dist/cli/{chunk-EPK465ZH.js → chunk-TY6KOFLR.js} +8 -8
  40. package/dist/cli/{chunk-LS32ZMEI.mjs → chunk-ULGMJRSU.mjs} +11 -11
  41. package/dist/cli/{chunk-YIFQGY5A.js → chunk-WX4K4TNG.js} +4 -4
  42. package/dist/cli/{chunk-7VAQZERC.js → chunk-XK7USWW3.js} +6 -6
  43. package/dist/cli/{chunk-7J4VZRO5.js → chunk-XQSQNS73.js} +1 -1
  44. package/dist/cli/{chunk-FKAHVFPJ.mjs → chunk-YBWAG72P.mjs} +1 -1
  45. package/dist/cli/{chunk-QFXPA2E4.js → chunk-Z2GUFYT6.js} +9 -8
  46. package/dist/cli/{chunk-LRNYRGCN.js → chunk-Z2XUZC34.js} +32 -5
  47. package/dist/cli/{csv-EIJQ6RT5.js → csv-I2U2XHF2.js} +12 -12
  48. package/dist/cli/{csv-HA2HOVSY.mjs → csv-J2CGPTVS.mjs} +3 -3
  49. package/dist/cli/{db-X4YIZUGS.mjs → db-7ZYN4RSF.mjs} +4 -4
  50. package/dist/cli/{db-V3QK6J3D.js → db-ID7WE25S.js} +25 -25
  51. package/dist/cli/{describe-AM3JLWNF.js → describe-6MWB45ZF.js} +24 -24
  52. package/dist/cli/{describe-MSL3BOWA.mjs → describe-KIE5HRU6.mjs} +16 -16
  53. package/dist/cli/describe-core.js +4 -4
  54. package/dist/cli/describe-core.mjs +3 -3
  55. package/dist/cli/{executions-QFQVDHSS.js → executions-NPH4K6V4.js} +6 -6
  56. package/dist/cli/{executions-EGH4NDY5.mjs → executions-UAKS7E5U.mjs} +4 -4
  57. package/dist/cli/{feedback-77DLEOWO.js → feedback-T65QHRNJ.js} +7 -7
  58. package/dist/cli/{feedback-RQLOXTWK.mjs → feedback-VGRGR5TG.mjs} +3 -3
  59. package/dist/cli/{git-ZRSKT7ML.mjs → git-MHBPDHFC.mjs} +4 -4
  60. package/dist/cli/git-YKUQZPWL.js +24 -0
  61. package/dist/cli/index.js +131 -131
  62. package/dist/cli/index.mjs +36 -36
  63. package/dist/cli/{legacy-noops-QNQCSKJV.mjs → legacy-noops-O27BEOS7.mjs} +4 -4
  64. package/dist/cli/{legacy-noops-Y3ZMVJSZ.js → legacy-noops-UWDPM46V.js} +7 -7
  65. package/dist/cli/{monitors-VEFE3ZSZ.mjs → monitors-OEQ7GQ7Z.mjs} +4 -4
  66. package/dist/cli/{monitors-4RY75IKZ.js → monitors-U4O52KL7.js} +84 -84
  67. package/dist/cli/{org-YOT76AE4.js → org-FKNL42W7.js} +66 -66
  68. package/dist/cli/{org-X6ZD3GOS.mjs → org-TCP4TADK.mjs} +4 -4
  69. package/dist/cli/{play-AXDXVYTK.mjs → play-3UFJK5TR.mjs} +12 -12
  70. package/dist/cli/{play-7XEA7F7Y.js → play-H2XWJ2GR.js} +296 -296
  71. package/dist/cli/{providers-JKYTNJDM.mjs → providers-SYZJQNNL.mjs} +4 -4
  72. package/dist/cli/{providers-CS3UWBH5.js → providers-ZDLZX6AB.js} +7 -7
  73. package/dist/cli/{quickstart-R2PI3T74.js → quickstart-GPFZQF5I.js} +5 -5
  74. package/dist/cli/{quickstart-BHATVOX5.mjs → quickstart-LLZAA3YH.mjs} +3 -3
  75. package/dist/cli/search-WQ77HY2K.js +30 -0
  76. package/dist/cli/{search-46CJMKQ7.mjs → search-XEZ6YINQ.mjs} +5 -5
  77. package/dist/cli/{secrets-NCBNWNNK.js → secrets-6LG6WSV4.js} +13 -13
  78. package/dist/cli/{secrets-I2VZ75XW.mjs → secrets-GTUPRTIQ.mjs} +4 -4
  79. package/dist/cli/{sessions-SFZPFEXX.js → sessions-6T7GLRAE.js} +5 -5
  80. package/dist/cli/{sessions-UCMJTFYV.mjs → sessions-FCD3L6BO.mjs} +4 -4
  81. package/dist/cli/{settings-N6CUAM55.js → settings-BLS3NVLD.js} +75 -75
  82. package/dist/cli/{settings-AJ2FOCRS.mjs → settings-TMJK4XRG.mjs} +8 -8
  83. package/dist/cli/{setup-DB34HKIL.js → setup-CLGJAUHO.js} +42 -42
  84. package/dist/cli/{setup-LRWULRUP.mjs → setup-XIWCJNVC.mjs} +7 -7
  85. package/dist/cli/{skills-Z5TF33TE.mjs → skills-CAZWF6XW.mjs} +5 -5
  86. package/dist/cli/skills-VRIWFWDM.js +29 -0
  87. package/dist/cli/tools-E4JIROSM.js +44 -0
  88. package/dist/cli/{tools-MOWM5ABI.mjs → tools-ZW5RKTQD.mjs} +15 -15
  89. package/dist/cli/update-DFQ3SX6R.js +31 -0
  90. package/dist/cli/{update-4LXOHDJU.mjs → update-EEAZY5SI.mjs} +7 -7
  91. package/dist/cli/{workflow-RS57FL5I.js → workflow-6WUBJEPO.js} +15 -15
  92. package/dist/cli/{workflow-IWVOD4N3.mjs → workflow-QQW22LYJ.mjs} +5 -5
  93. package/dist/index.js +6 -6
  94. package/dist/index.mjs +3 -3
  95. package/dist/install-integrity.json +86 -86
  96. package/dist/release.d.mts +1 -1
  97. package/dist/release.d.ts +1 -1
  98. package/dist/release.js +2 -2
  99. package/dist/release.mjs +1 -1
  100. package/package.json +1 -1
  101. package/dist/cli/auth-KWVGTCBU.js +0 -40
  102. package/dist/cli/git-OIDNWUNY.js +0 -24
  103. package/dist/cli/search-CNDIFIZG.js +0 -30
  104. package/dist/cli/skills-Y7CEDG56.js +0 -29
  105. package/dist/cli/tools-RQWYUW3K.js +0 -44
  106. package/dist/cli/update-XKRUZQSS.js +0 -31
@@ -11,10 +11,10 @@
11
11
 
12
12
 
13
13
 
14
- var _chunkFS7TP7F2js = require('./chunk-FS7TP7F2.js');
14
+ var _chunkSSPHVLOFjs = require('./chunk-SSPHVLOF.js');
15
15
 
16
16
 
17
- var _chunk2Y3YBOS4js = require('./chunk-2Y3YBOS4.js');
17
+ var _chunk7X7GEXHCjs = require('./chunk-7X7GEXHC.js');
18
18
 
19
19
 
20
20
 
@@ -22,7 +22,7 @@ var _chunk2Y3YBOS4js = require('./chunk-2Y3YBOS4.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkYIFQGY5Ajs = require('./chunk-YIFQGY5A.js');
25
+ var _chunkWX4K4TNGjs = require('./chunk-WX4K4TNG.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 = _chunkYIFQGY5Ajs.resolveProjectPinTarget.call(void 0, );
78
+ const target = _chunkWX4K4TNGjs.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, () => ( _chunkYIFQGY5Ajs.detectAgentRuntime.call(void 0, )));
89
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunkWX4K4TNGjs.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, _chunkYIFQGY5Ajs.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, _chunkWX4K4TNGjs.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 = [..._chunkFS7TP7F2js.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
108
+ const legacyNames = [..._chunkSSPHVLOFjs.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=${_chunkFS7TP7F2js.SKILLS_NPX_PACKAGE}`,
122
+ `--package=${_chunkSSPHVLOFjs.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=${_chunkFS7TP7F2js.SKILLS_NPX_PACKAGE}`,
138
+ `--package=${_chunkSSPHVLOFjs.SKILLS_NPX_PACKAGE}`,
139
139
  "--",
140
140
  "skills",
141
141
  "add",
142
- _chunkFS7TP7F2js.skillsSourceUrl.call(void 0, input.baseUrl),
142
+ _chunkSSPHVLOFjs.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 = _chunkFS7TP7F2js.resolveShellSpawn.call(void 0,
179
+ const plan = _chunkSSPHVLOFjs.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
- `${_chunkFS7TP7F2js.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
201
+ `${_chunkSSPHVLOFjs.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(`${_chunkFS7TP7F2js.SKILLS_NPX_PACKAGE} exited ${code}.
212
+ process.stderr.write(`${_chunkSSPHVLOFjs.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
- _chunk2Y3YBOS4js.printCommandEnvelope.call(void 0,
226
+ _chunk7X7GEXHCjs.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 = _chunkYIFQGY5Ajs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
238
+ const baseUrl = _chunkWX4K4TNGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
239
239
  const catalog = {
240
- skillNames: [..._chunkFS7TP7F2js.DEFAULT_SDK_SKILL_NAMES],
241
- version: _chunkYIFQGY5Ajs.SDK_VERSION
240
+ skillNames: [..._chunkSSPHVLOFjs.DEFAULT_SDK_SKILL_NAMES],
241
+ version: _chunkWX4K4TNGjs.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
- _chunk2Y3YBOS4js.printCommandEnvelope.call(void 0,
246
+ _chunk7X7GEXHCjs.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)) && !_chunkFS7TP7F2js.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
253
- _chunk2Y3YBOS4js.printCommandEnvelope.call(void 0,
252
+ if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkSSPHVLOFjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
253
+ _chunk7X7GEXHCjs.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, ..._chunkFS7TP7F2js.LEGACY_SKILL_NAMES_TO_REMOVE])
285
+ .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkSSPHVLOFjs.LEGACY_SKILL_NAMES_TO_REMOVE])
286
286
  ];
287
287
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
288
- _chunkYIFQGY5Ajs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
288
+ _chunkWX4K4TNGjs.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 _chunkFS7TP7F2js.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
297
+ lease = scope === "global" ? await _chunkSSPHVLOFjs.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 _chunkFS7TP7F2js.SkillsStateUnavailableError)) throw error;
306
- _chunk2Y3YBOS4js.printCommandEnvelope.call(void 0,
305
+ if (!(error instanceof _chunkSSPHVLOFjs.SkillsStateUnavailableError)) throw error;
306
+ _chunk7X7GEXHCjs.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
- _chunk2Y3YBOS4js.printCommandEnvelope.call(void 0,
322
+ _chunk7X7GEXHCjs.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 ${_chunkFS7TP7F2js.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
331
+ next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkSSPHVLOFjs.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
- _chunk2Y3YBOS4js.printCommandEnvelope.call(void 0,
368
+ _chunk7X7GEXHCjs.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: _chunkYIFQGY5Ajs.SDK_VERSION,
407
+ cliVersion: _chunkWX4K4TNGjs.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
- _chunkFS7TP7F2js.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
420
+ _chunkSSPHVLOFjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
421
421
  }
422
- _chunk2Y3YBOS4js.printCommandEnvelope.call(void 0,
422
+ _chunk7X7GEXHCjs.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 ${_chunkFS7TP7F2js.SKILLS_NPX_PACKAGE},
453
+ This command reinstalls current Deepline-managed skills using ${_chunkSSPHVLOFjs.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(_chunkFS7TP7F2js.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
465
+ program.command(_chunkSSPHVLOFjs.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
- _chunk2Y3YBOS4js.printCommandEnvelope.call(void 0,
471
+ _chunk7X7GEXHCjs.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 _chunkFS7TP7F2js.syncSdkSkillsIfNeeded.call(void 0, _chunkYIFQGY5Ajs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
484
+ await _chunkSSPHVLOFjs.syncSdkSkillsIfNeeded.call(void 0, _chunkWX4K4TNGjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
485
485
  mode: "inline",
486
486
  notices: "defer",
487
487
  claim
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-MBCQHTXT.mjs";
3
+ } from "./chunk-MTRBEEIJ.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-LUGZDR4E.mjs";
3
+ } from "./chunk-7HUXIWE2.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkFS7TP7F2js = require('./chunk-FS7TP7F2.js');
3
+ var _chunkSSPHVLOFjs = require('./chunk-SSPHVLOF.js');
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  var _child_process = require('child_process');
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
13
13
  }
14
14
  function readNpmVersion(env) {
15
15
  try {
16
- const plan = _chunkFS7TP7F2js.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkSSPHVLOFjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
17
17
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
18
18
  encoding: "utf8",
19
19
  env,
@@ -11,10 +11,10 @@ import {
11
11
  skillsInstallLeasePath,
12
12
  skillsSourceUrl,
13
13
  syncSdkSkillsIfNeeded
14
- } from "./chunk-LUGZDR4E.mjs";
14
+ } from "./chunk-7HUXIWE2.mjs";
15
15
  import {
16
16
  printCommandEnvelope
17
- } from "./chunk-MBCQHTXT.mjs";
17
+ } from "./chunk-MTRBEEIJ.mjs";
18
18
  import {
19
19
  SDK_VERSION,
20
20
  autoDetectBaseUrl,
@@ -22,7 +22,7 @@ import {
22
22
  ensureProjectPrivatePathsIgnored,
23
23
  resolveProjectPinTarget,
24
24
  sdkCliStateDirPath
25
- } from "./chunk-AJ54W32A.mjs";
25
+ } from "./chunk-T56WZU3Q.mjs";
26
26
 
27
27
  // src/cli/commands/skills.ts
28
28
  import { spawn } from "child_process";
@@ -3,7 +3,7 @@ import {
3
3
  formatModelDescription,
4
4
  publicToolSchemas,
5
5
  toolMetadataJsonForDescribe
6
- } from "./chunk-WQPJQEDE.mjs";
6
+ } from "./chunk-SLEUWLJE.mjs";
7
7
  import {
8
8
  buildPlayDashboardUrl,
9
9
  byokLines,
@@ -13,7 +13,7 @@ import {
13
13
  examples,
14
14
  schemaLines,
15
15
  topLevelField
16
- } from "./chunk-W25OALCJ.mjs";
16
+ } from "./chunk-HDFRJ4IT.mjs";
17
17
  import {
18
18
  DeeplineError
19
19
  } from "./chunk-HBL4PM5Q.mjs";
@@ -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.444",
52
+ version: "0.3.446",
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."
@@ -178,11 +178,16 @@ function rateLimitQualifier(limit) {
178
178
  ].filter(Boolean);
179
179
  return notes.length ? ` ${notes.join(", ")}` : "";
180
180
  }
181
- function exampleValue(field) {
181
+ function exampleValue(field, schema) {
182
182
  if (field.example !== void 0) return field.example;
183
183
  if (field.type.startsWith(RECORD)) {
184
184
  const value = field.type.slice(RECORD.length).replace(/>( \| null)?$/, "");
185
- return { key: exampleValue({ ...field, type: value }) };
185
+ return {
186
+ key: exampleValue(
187
+ { ...field, type: value },
188
+ isRecord(schema) ? schema.additionalProperties : void 0
189
+ )
190
+ };
186
191
  }
187
192
  const literal = /^"(?:[^"\\]|\\.)*"/.exec(field.type);
188
193
  if (literal) return JSON.parse(literal[0]);
@@ -190,14 +195,30 @@ function exampleValue(field) {
190
195
  if (type.includes("[]")) return [];
191
196
  if (type.startsWith(SHAPE)) {
192
197
  return Object.fromEntries(
193
- (field.fields ?? []).filter((child) => child.required).map((child) => [child.name, exampleValue(child)])
198
+ (field.fields ?? []).filter((child) => child.required).map((child) => [
199
+ child.name,
200
+ exampleValue(child, propertySchema(schema, child.name))
201
+ ])
194
202
  );
195
203
  }
196
204
  if (type.startsWith("object")) return {};
197
- if (type.startsWith("integer") || type.startsWith("number")) return 1;
205
+ if (type.startsWith("integer") || type.startsWith("number")) {
206
+ return lowestNumber(schema);
207
+ }
198
208
  if (type.startsWith("boolean")) return true;
199
209
  return "...";
200
210
  }
211
+ function propertySchema(schema, name) {
212
+ return isRecord(schema) && isRecord(schema.properties) ? schema.properties[name] : void 0;
213
+ }
214
+ function lowestNumber(schema) {
215
+ const bounds = isRecord(schema) ? schema : {};
216
+ const lowest = Math.max(
217
+ typeof bounds.minimum === "number" ? bounds.minimum : -Infinity,
218
+ typeof bounds.exclusiveMinimum === "number" ? bounds.exclusiveMinimum + 1 : -Infinity
219
+ );
220
+ return lowest >= 0 ? lowest : 1;
221
+ }
201
222
  function shapeKey(fields) {
202
223
  return JSON.stringify(
203
224
  fields.map((field) => [
@@ -454,8 +475,14 @@ function examples(described, options) {
454
475
  const { runner } = described;
455
476
  const required = described.inputs.filter((field) => field.required);
456
477
  const shown = options.verbose ? described.inputs : required.length ? required : described.inputs.slice(0, 1);
478
+ const inputSchema = runner.via === "tool" && runner.inputSchema !== void 0 ? withoutRefs(runner.inputSchema, runner.inputSchema) : void 0;
457
479
  const input = JSON.stringify(
458
- Object.fromEntries(shown.map((field) => [field.name, exampleValue(field)]))
480
+ Object.fromEntries(
481
+ shown.map((field) => [
482
+ field.name,
483
+ exampleValue(field, propertySchema(inputSchema, field.name))
484
+ ])
485
+ )
459
486
  );
460
487
  const read = options.verbose ? described.outputs : described.outputs.filter((field) => !field.secondary).slice(0, 1);
461
488
  const reads = (expression) => read.flatMap((field) => {
@@ -1,11 +1,11 @@
1
1
  import {
2
2
  traceCliSpan
3
- } from "./chunk-VAQYDKRH.mjs";
3
+ } from "./chunk-D7ES6PAW.mjs";
4
4
  import {
5
5
  checkSdkCompatibility,
6
6
  enforceSdkCompatibilityResponse,
7
7
  flushDeferredSkillsSyncNotices
8
- } from "./chunk-LUGZDR4E.mjs";
8
+ } from "./chunk-7HUXIWE2.mjs";
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -28,7 +28,7 @@ import {
28
28
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
29
29
  SDK_API_MAJOR,
30
30
  resolveConfig
31
- } from "./chunk-AJ54W32A.mjs";
31
+ } from "./chunk-T56WZU3Q.mjs";
32
32
  import {
33
33
  CustomerDbQueryOutcomeUnknownError
34
34
  } from "./chunk-4QF2K7TM.mjs";
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-MBCQHTXT.mjs";
5
+ } from "./chunk-MTRBEEIJ.mjs";
6
6
  import {
7
7
  ACTIVE_ORG_ID_ENV,
8
8
  ACTIVE_ORG_NAME_ENV,
@@ -25,7 +25,7 @@ import {
25
25
  saveHostEnvValues,
26
26
  saveProjectDeeplineEnvValues,
27
27
  storedHostApiKey
28
- } from "./chunk-AJ54W32A.mjs";
28
+ } from "./chunk-T56WZU3Q.mjs";
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
  import {
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkQFXPA2E4js = require('./chunk-QFXPA2E4.js');
6
+ var _chunkZ2GUFYT6js = require('./chunk-Z2GUFYT6.js');
7
7
 
8
8
 
9
9
 
@@ -13,7 +13,7 @@ var _chunkQFXPA2E4js = require('./chunk-QFXPA2E4.js');
13
13
 
14
14
 
15
15
 
16
- var _chunkLRNYRGCNjs = require('./chunk-LRNYRGCN.js');
16
+ var _chunkZ2XUZC34js = require('./chunk-Z2XUZC34.js');
17
17
 
18
18
 
19
19
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
@@ -31,13 +31,13 @@ var VIEWS = {
31
31
  details: model,
32
32
  lines: [
33
33
  ...unlisted,
34
- ..._chunkQFXPA2E4js.formatModelDescription.call(void 0, model).trimEnd().split("\n")
34
+ ..._chunkZ2GUFYT6js.formatModelDescription.call(void 0, model).trimEnd().split("\n")
35
35
  ]
36
36
  };
37
37
  },
38
38
  byok: async (_value, tool) => ({
39
39
  details: _nullishCoalesce(tool.byok, () => ( {})),
40
- lines: _chunkLRNYRGCNjs.byokLines.call(void 0, _nullishCoalesce(tool.byok, () => ( {})))
40
+ lines: _chunkZ2XUZC34js.byokLines.call(void 0, _nullishCoalesce(tool.byok, () => ( {})))
41
41
  })
42
42
  };
43
43
  var isFeatureView = (value) => typeof value === "string" && Object.hasOwn(VIEWS, value);
@@ -113,7 +113,7 @@ async function describeName(name, options, lookups) {
113
113
  const record2 = await lookups.play(reference);
114
114
  if (!record2) return null;
115
115
  return {
116
- described: _chunkLRNYRGCNjs.describedPlay.call(void 0, record2),
116
+ described: _chunkZ2XUZC34js.describedPlay.call(void 0, record2),
117
117
  record: { ...record2 },
118
118
  schemas: {
119
119
  inputSchema: _nullishCoalesce(record2.inputSchema, () => ( null)),
@@ -128,18 +128,18 @@ async function describeName(name, options, lookups) {
128
128
  const features = toolFeatures(record2);
129
129
  return {
130
130
  described: {
131
- ..._chunkQFXPA2E4js.describedTool.call(void 0, record2, name),
131
+ ..._chunkZ2GUFYT6js.describedTool.call(void 0, record2, name),
132
132
  // Shown when the tool runs only on your own credentials; otherwise
133
133
  // it is a feature, described with --feature byok.
134
134
  ..._optionalChain([byok, 'optionalAccess', _3 => _3.required]) === true ? { byok } : {},
135
135
  ...features.length ? { features: features.map(({ view: _view, ...feature }) => feature) } : {}
136
136
  },
137
- record: _chunkQFXPA2E4js.toolMetadataJsonForDescribe.call(void 0,
137
+ record: _chunkZ2GUFYT6js.toolMetadataJsonForDescribe.call(void 0,
138
138
  record2,
139
139
  name,
140
140
  lookups.seedStarterScript
141
141
  ),
142
- schemas: _chunkQFXPA2E4js.publicToolSchemas.call(void 0, record2),
142
+ schemas: _chunkZ2GUFYT6js.publicToolSchemas.call(void 0, record2),
143
143
  feature: (featureName, value) => {
144
144
  const feature = features.find(({ name: name2 }) => name2 === featureName);
145
145
  return feature ? describeFeature(record2, feature, value, {
@@ -170,7 +170,7 @@ async function describeName(name, options, lookups) {
170
170
  const note = shadows ? `Showing your workspace play "${name}". It has the same name as a Deepline ${shadows.kind.replace("_", " ")}; see that one with: ${shadows.describeCommand}` : null;
171
171
  const verbose = options.verbose === true;
172
172
  const isPlay = described.kind === "prebuilt_play" || described.kind === "custom_play";
173
- const dashboardUrl = isPlay ? _chunkLRNYRGCNjs.buildPlayDashboardUrl.call(void 0, lookups.baseUrl, described.id) : null;
173
+ const dashboardUrl = isPlay ? _chunkZ2XUZC34js.buildPlayDashboardUrl.call(void 0, lookups.baseUrl, described.id) : null;
174
174
  if (options.webUrl) {
175
175
  if (!dashboardUrl) {
176
176
  return {
@@ -234,7 +234,7 @@ async function describeName(name, options, lookups) {
234
234
  },
235
235
  lines: [
236
236
  `${described.id} [${described.kind.replace("_", " ")}]`,
237
- ..._chunkLRNYRGCNjs.schemaLines.call(void 0, described, {
237
+ ..._chunkZ2XUZC34js.schemaLines.call(void 0, described, {
238
238
  full: true,
239
239
  secondary: true,
240
240
  ...fields.length ? { fields } : {}
@@ -243,17 +243,17 @@ async function describeName(name, options, lookups) {
243
243
  } : {
244
244
  envelope: {
245
245
  ...summary,
246
- inputs: inputs.map(_chunkLRNYRGCNjs.topLevelField),
247
- outputs: outputs.map(_chunkLRNYRGCNjs.topLevelField),
248
- ...described.rowInputs ? { rowInputs: described.rowInputs.map(_chunkLRNYRGCNjs.topLevelField) } : {},
249
- ...described.rowOutputs ? { rowOutputs: described.rowOutputs.map(_chunkLRNYRGCNjs.topLevelField) } : {},
250
- runExamples: _chunkLRNYRGCNjs.examples.call(void 0, described, { verbose }),
246
+ inputs: inputs.map(_chunkZ2XUZC34js.topLevelField),
247
+ outputs: outputs.map(_chunkZ2XUZC34js.topLevelField),
248
+ ...described.rowInputs ? { rowInputs: described.rowInputs.map(_chunkZ2XUZC34js.topLevelField) } : {},
249
+ ...described.rowOutputs ? { rowOutputs: described.rowOutputs.map(_chunkZ2XUZC34js.topLevelField) } : {},
250
+ runExamples: _chunkZ2XUZC34js.examples.call(void 0, described, { verbose }),
251
251
  ...dashboardUrl ? { dashboardUrl } : {},
252
252
  ...shadows ? { shadows, note } : {}
253
253
  },
254
254
  lines: [
255
255
  ...note ? [`Note: ${note}`, ""] : [],
256
- ..._chunkLRNYRGCNjs.describedLines.call(void 0, described, {
256
+ ..._chunkZ2XUZC34js.describedLines.call(void 0, described, {
257
257
  cli: shown && (!named || options.cliExample === true),
258
258
  play: shown && (!named || options.playExample === true),
259
259
  explain: named,
@@ -270,7 +270,7 @@ async function describeName(name, options, lookups) {
270
270
  // its value stands, so callers of the older commands read what they did.
271
271
  { ...view.envelope, ...record }
272
272
  ) : {
273
- ..._chunkLRNYRGCNjs.describedJson.call(void 0, described, {
273
+ ..._chunkZ2XUZC34js.describedJson.call(void 0, described, {
274
274
  secondary: verbose || fields.length > 0,
275
275
  verbose
276
276
  }),
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-MBCQHTXT.mjs";
5
+ } from "./chunk-MTRBEEIJ.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-AJ54W32A.mjs";
8
+ } from "./chunk-T56WZU3Q.mjs";
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunk2Y3YBOS4js = require('./chunk-2Y3YBOS4.js');
3
+ var _chunk7X7GEXHCjs = require('./chunk-7X7GEXHC.js');
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  var _commander = require('commander');
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
33
33
  sinceStartMs: now - cliTraceStartedAt,
34
34
  ...event
35
35
  };
36
- _chunk2Y3YBOS4js.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
36
+ _chunk7X7GEXHCjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
37
37
  `);
38
38
  }
39
39
  async function traceCliSpan(phase, fields, run) {