deepline 0.3.420 → 0.3.422

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 (100) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +6 -6
  3. package/dist/cli/{auth-OUHAOA5F.mjs → auth-DMLBSXLV.mjs} +4 -4
  4. package/dist/cli/auth-HD5AM2WM.js +40 -0
  5. package/dist/cli/{billing-PKVUYBJB.js → billing-IFGFPGJV.js} +73 -73
  6. package/dist/cli/{billing-VIZQ6D4L.mjs → billing-SEXKROBQ.mjs} +4 -4
  7. package/dist/cli/{chunk-WVF6T2MI.mjs → chunk-2JKQORUX.mjs} +1 -1
  8. package/dist/cli/{chunk-XXOUOHBO.js → chunk-2LVM22ZU.js} +2 -2
  9. package/dist/cli/{chunk-LJ7ZOBTQ.mjs → chunk-3CE3WGKP.mjs} +2 -2
  10. package/dist/cli/{chunk-SNLYCNAO.mjs → chunk-4CAVSRQH.mjs} +1 -1
  11. package/dist/cli/{chunk-5VPN2HZQ.js → chunk-4EV2FKBI.js} +16 -16
  12. package/dist/cli/{chunk-AOPQ46ZW.mjs → chunk-7OJEYJ6G.mjs} +3 -3
  13. package/dist/cli/{chunk-R62A6ZXG.mjs → chunk-AXDEH2AM.mjs} +2 -2
  14. package/dist/cli/{chunk-QJA6OAJF.js → chunk-AYM2KZN3.js} +6 -6
  15. package/dist/cli/{chunk-HGYUUQJG.js → chunk-BL3LY54Y.js} +8 -8
  16. package/dist/cli/{chunk-YHOGJQR7.mjs → chunk-CO3VMH33.mjs} +25 -57
  17. package/dist/cli/{chunk-LFSHGNT2.mjs → chunk-CTNA5QY2.mjs} +7 -6
  18. package/dist/cli/{chunk-7AIHQR5X.mjs → chunk-FEKJENBB.mjs} +3 -3
  19. package/dist/cli/{chunk-NQAWJ65E.js → chunk-HCYNAIHZ.js} +4 -4
  20. package/dist/cli/{chunk-PZVB72XS.js → chunk-JRSULUPQ.js} +2 -2
  21. package/dist/cli/{chunk-M4AYMLCK.js → chunk-K4X472AT.js} +96 -128
  22. package/dist/cli/{chunk-R4TF44FZ.js → chunk-KBJP3UAU.js} +35 -35
  23. package/dist/cli/{chunk-3L734JBM.mjs → chunk-KXPIFC5S.mjs} +3 -3
  24. package/dist/cli/{chunk-4T242WLH.js → chunk-LXRDHISW.js} +8 -8
  25. package/dist/cli/{chunk-KLNF7MWP.mjs → chunk-M6SXXFMT.mjs} +2 -2
  26. package/dist/cli/{chunk-SVJPQHHN.mjs → chunk-MLP4CAY7.mjs} +4 -4
  27. package/dist/cli/{chunk-J55AD562.js → chunk-OZHPZCAU.js} +52 -52
  28. package/dist/cli/{chunk-5MLCBXXU.js → chunk-PKBPSMOT.js} +7 -6
  29. package/dist/cli/{chunk-IZ3QC7OE.mjs → chunk-PXO253DP.mjs} +1 -1
  30. package/dist/cli/{chunk-TK7V5NQO.mjs → chunk-QNBHQM5R.mjs} +1 -1
  31. package/dist/cli/{chunk-LUQE4CFH.js → chunk-S4KGXRCV.js} +20 -20
  32. package/dist/cli/{chunk-A2CPK2UC.mjs → chunk-SDCIROIS.mjs} +5 -5
  33. package/dist/cli/{chunk-JP35BUED.mjs → chunk-TP26TAAF.mjs} +1 -1
  34. package/dist/cli/{chunk-VESCW5LD.js → chunk-UQQRMCOL.js} +6 -6
  35. package/dist/cli/{chunk-OJ64RXJW.js → chunk-V4RAH5D6.js} +26 -26
  36. package/dist/cli/{chunk-YSJVAPJE.js → chunk-VRI3ABTK.js} +50 -50
  37. package/dist/cli/{chunk-LPNB7RIE.mjs → chunk-VT6WJ26Y.mjs} +1 -1
  38. package/dist/cli/{chunk-UBNWFLYB.mjs → chunk-W74RDGRL.mjs} +2 -2
  39. package/dist/cli/{chunk-OGII53LE.js → chunk-WGO2DY4L.js} +10 -10
  40. package/dist/cli/{chunk-ZCPJ3L43.js → chunk-WP7T4BPE.js} +1 -1
  41. package/dist/cli/command-docs.js +2 -2
  42. package/dist/cli/command-docs.mjs +1 -1
  43. package/dist/cli/{csv-OJLORQ3N.mjs → csv-J7UVP4KB.mjs} +3 -3
  44. package/dist/cli/{csv-CLKRVS6Q.js → csv-Y4YWZSLB.js} +12 -12
  45. package/dist/cli/{db-VIY56Q3E.mjs → db-CQ6NHMLG.mjs} +4 -4
  46. package/dist/cli/{db-PURJUV2P.js → db-SVFCM6YZ.js} +25 -25
  47. package/dist/cli/{describe-P2OJ5B4Q.js → describe-FSDW6LTN.js} +16 -16
  48. package/dist/cli/{describe-PDLBLRNY.mjs → describe-Y65BU7ZY.mjs} +12 -12
  49. package/dist/cli/{executions-6PA6Q2BU.mjs → executions-IW762OIJ.mjs} +4 -4
  50. package/dist/cli/{executions-5CMSUI47.js → executions-SJIKBRHT.js} +6 -6
  51. package/dist/cli/{feedback-WBKYOIOV.js → feedback-RCYSUOB3.js} +7 -7
  52. package/dist/cli/{feedback-IU7JRPUB.mjs → feedback-VMJIWAMT.mjs} +3 -3
  53. package/dist/cli/git-JAW3UEGA.js +24 -0
  54. package/dist/cli/{git-RZVL3FY6.mjs → git-Q2WY3K6X.mjs} +4 -4
  55. package/dist/cli/index.js +135 -135
  56. package/dist/cli/index.mjs +37 -37
  57. package/dist/cli/{legacy-noops-S4MMABPX.mjs → legacy-noops-JVEE2VHK.mjs} +4 -4
  58. package/dist/cli/{legacy-noops-UQKVJEZT.js → legacy-noops-U4YPPYXU.js} +7 -7
  59. package/dist/cli/{monitors-AIS4RRVX.mjs → monitors-AY4KQRTC.mjs} +4 -4
  60. package/dist/cli/{monitors-42RY2EQJ.js → monitors-BMAOQ37R.js} +84 -84
  61. package/dist/cli/{org-GMMSVSCM.js → org-G5IURX74.js} +64 -64
  62. package/dist/cli/{org-DOIEU3KC.mjs → org-ME4X6HWH.mjs} +4 -4
  63. package/dist/cli/{play-6Z2D3FHI.mjs → play-WLYU7WQL.mjs} +10 -10
  64. package/dist/cli/{play-GHUPSQIT.js → play-X5GSZOKZ.js} +283 -283
  65. package/dist/cli/{providers-HTKPCZHW.mjs → providers-2LBMNB7B.mjs} +4 -4
  66. package/dist/cli/{providers-T6O7AAHV.js → providers-AHEUVD3R.js} +7 -7
  67. package/dist/cli/{quickstart-V7CQS7CK.mjs → quickstart-DBLYGHJP.mjs} +3 -3
  68. package/dist/cli/{quickstart-UVHSZ5R4.js → quickstart-DP2SKLIG.js} +5 -5
  69. package/dist/cli/search-4K3VSDS5.js +30 -0
  70. package/dist/cli/{search-GZLYNCII.mjs → search-YKJHY3ZJ.mjs} +5 -5
  71. package/dist/cli/{secrets-L24W7HSZ.js → secrets-2P3I3OEZ.js} +13 -13
  72. package/dist/cli/{secrets-HT2CNTXQ.mjs → secrets-ECLARBO6.mjs} +4 -4
  73. package/dist/cli/{sessions-VWOBR4BP.mjs → sessions-3GDFID7R.mjs} +4 -4
  74. package/dist/cli/{sessions-JTQPPC66.js → sessions-MC4ZCTSN.js} +5 -5
  75. package/dist/cli/{settings-57PNA6CO.js → settings-7SVR2OVL.js} +75 -75
  76. package/dist/cli/{settings-7OOY3WN4.mjs → settings-RTPJXMOA.mjs} +8 -8
  77. package/dist/cli/{setup-MDIJTSFP.js → setup-4WLIJX36.js} +42 -42
  78. package/dist/cli/{setup-EE6JK7EG.mjs → setup-OKAZZGAW.mjs} +7 -7
  79. package/dist/cli/{skills-JDORGABC.mjs → skills-2CVL6RG5.mjs} +5 -5
  80. package/dist/cli/skills-ZNSQOXO2.js +29 -0
  81. package/dist/cli/{tools-LVXONRMU.mjs → tools-KAFHP6J4.mjs} +12 -12
  82. package/dist/cli/tools-W4U4FT3R.js +44 -0
  83. package/dist/cli/{update-JX2ZOYD3.mjs → update-3ZV3W7I4.mjs} +7 -7
  84. package/dist/cli/update-IE2FPLB5.js +31 -0
  85. package/dist/cli/{workflow-G4B6ON6F.mjs → workflow-DKSUNZXE.mjs} +5 -5
  86. package/dist/cli/{workflow-ATUJZTWI.js → workflow-GULDFFP3.js} +15 -15
  87. package/dist/index.js +6 -6
  88. package/dist/index.mjs +3 -3
  89. package/dist/install-integrity.json +80 -80
  90. package/dist/release.d.mts +1 -1
  91. package/dist/release.d.ts +1 -1
  92. package/dist/release.js +2 -2
  93. package/dist/release.mjs +1 -1
  94. package/package.json +1 -1
  95. package/dist/cli/auth-FMFNRZCM.js +0 -40
  96. package/dist/cli/git-SS34WXCG.js +0 -24
  97. package/dist/cli/search-CAQRDWHR.js +0 -30
  98. package/dist/cli/skills-S4KMUPPF.js +0 -29
  99. package/dist/cli/tools-CHZV3D7R.js +0 -44
  100. package/dist/cli/update-2XCGK53M.js +0 -31
@@ -28,7 +28,7 @@ import {
28
28
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
29
29
  SDK_API_MAJOR,
30
30
  resolveConfig
31
- } from "./chunk-IZ3QC7OE.mjs";
31
+ } from "./chunk-PXO253DP.mjs";
32
32
  import {
33
33
  CustomerDbQueryOutcomeUnknownError
34
34
  } from "./chunk-MAMVGOSC.mjs";
@@ -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 _chunkQJA6OAJFjs = require('./chunk-QJA6OAJF.js');
3
+ var _chunkAYM2KZN3js = require('./chunk-AYM2KZN3.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
- _chunkQJA6OAJFjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
36
+ _chunkAYM2KZN3js.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
37
37
  `);
38
38
  }
39
39
  async function traceCliSpan(phase, fields, run) {
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
3
  printCommandEnvelope
4
- } from "./chunk-SNLYCNAO.mjs";
4
+ } from "./chunk-4CAVSRQH.mjs";
5
5
  import {
6
6
  agentSessionIdFromEnvironment
7
- } from "./chunk-IZ3QC7OE.mjs";
7
+ } from "./chunk-PXO253DP.mjs";
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
  import {
@@ -3,7 +3,7 @@ import {
3
3
  detectAgentRuntime,
4
4
  resolveCliCommandContext,
5
5
  resolveConfig
6
- } from "./chunk-IZ3QC7OE.mjs";
6
+ } from "./chunk-PXO253DP.mjs";
7
7
  import {
8
8
  DeeplineError,
9
9
  serializeToolExecutionFailure
@@ -1,19 +1,19 @@
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
3
 
4
- var _chunkPZVB72XSjs = require('./chunk-PZVB72XS.js');
4
+ var _chunkJRSULUPQjs = require('./chunk-JRSULUPQ.js');
5
5
 
6
6
 
7
- var _chunkR4TF44FZjs = require('./chunk-R4TF44FZ.js');
7
+ var _chunkKBJP3UAUjs = require('./chunk-KBJP3UAU.js');
8
8
 
9
9
 
10
- var _chunkJ55AD562js = require('./chunk-J55AD562.js');
10
+ var _chunkOZHPZCAUjs = require('./chunk-OZHPZCAU.js');
11
11
 
12
12
 
13
- var _chunkQJA6OAJFjs = require('./chunk-QJA6OAJF.js');
13
+ var _chunkAYM2KZN3js = require('./chunk-AYM2KZN3.js');
14
14
 
15
15
 
16
- var _chunkNQAWJ65Ejs = require('./chunk-NQAWJ65E.js');
16
+ var _chunkHCYNAIHZjs = require('./chunk-HCYNAIHZ.js');
17
17
 
18
18
  // src/cli/commands/update.ts
19
19
  var _child_process = require('child_process');
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
495
495
  }
496
496
  function resolveNpmGlobalPrefix(env) {
497
497
  try {
498
- const plan = _chunkJ55AD562js.resolveShellSpawn.call(void 0,
498
+ const plan = _chunkOZHPZCAUjs.resolveShellSpawn.call(void 0,
499
499
  "npm",
500
500
  ["prefix", "-g"],
501
501
  process.platform,
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
556
556
  const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
557
557
  const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
558
558
  const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
559
- const npmVersion = options.npmVersion === void 0 ? _chunkPZVB72XSjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
- const npmGlobalInstallFlags = _chunkPZVB72XSjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
559
+ const npmVersion = options.npmVersion === void 0 ? _chunkJRSULUPQjs.readNpmVersion.call(void 0, env) : options.npmVersion;
560
+ const npmGlobalInstallFlags = _chunkJRSULUPQjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
561
561
  const args = installPrefix ? [
562
562
  "install",
563
563
  "-g",
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
567
567
  packageSpec
568
568
  ] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
569
569
  const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
570
- _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkNQAWJ65Ejs.autoDetectBaseUrl.call(void 0, )
570
+ _optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkHCYNAIHZjs.autoDetectBaseUrl.call(void 0, )
571
571
  );
572
572
  return {
573
573
  kind: "npm-global",
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
816
816
  function runCommand(command, args, env = process.env) {
817
817
  return new Promise((resolveResult) => {
818
818
  let output = "";
819
- const plan = _chunkJ55AD562js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
819
+ const plan = _chunkOZHPZCAUjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
820
820
  const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
821
821
  stdio: ["inherit", "pipe", "pipe"],
822
822
  shell: plan.shell,
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
1199
1199
  throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
1200
1200
  }
1201
1201
  async function runUpdateCommand(options, dependencies = {}) {
1202
- const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkNQAWJ65Ejs.autoDetectBaseUrl));
1202
+ const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkHCYNAIHZjs.autoDetectBaseUrl));
1203
1203
  const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
1204
1204
  const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
1205
1205
  const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
1206
1206
  const originalWrite = process.stdout.write.bind(process.stdout);
1207
1207
  process.stdout.write = (() => true);
1208
1208
  try {
1209
- const exitCode = await _chunkR4TF44FZjs.runSkillsCommand.call(void 0, { json: true });
1209
+ const exitCode = await _chunkKBJP3UAUjs.runSkillsCommand.call(void 0, { json: true });
1210
1210
  if (exitCode !== 0) {
1211
1211
  throw new Error(
1212
1212
  `Deepline skills update failed with exit ${exitCode}.`
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
1277
1277
  ]
1278
1278
  };
1279
1279
  if (options.json && !options.executeWithJson) {
1280
- _chunkQJA6OAJFjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1280
+ _chunkAYM2KZN3js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
1281
1281
  return 0;
1282
1282
  }
1283
1283
  if (options.printCommand) {
1284
- _chunkQJA6OAJFjs.printCommandEnvelope.call(void 0,
1284
+ _chunkAYM2KZN3js.printCommandEnvelope.call(void 0,
1285
1285
  {
1286
1286
  ...plan,
1287
1287
  render: {
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
1294
1294
  return 0;
1295
1295
  }
1296
1296
  if (plan.kind === "source" || plan.kind === "homebrew") {
1297
- _chunkQJA6OAJFjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1297
+ _chunkAYM2KZN3js.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
1298
1298
  return 0;
1299
1299
  }
1300
1300
  stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills
1324
1324
  );
1325
1325
  }
1326
1326
  if (options.executeWithJson && options.json) {
1327
- _chunkQJA6OAJFjs.printCommandEnvelope.call(void 0,
1327
+ _chunkAYM2KZN3js.printCommandEnvelope.call(void 0,
1328
1328
  {
1329
1329
  ok: true,
1330
1330
  pinnedVersion
@@ -3,15 +3,15 @@ import {
3
3
  } from "./chunk-LJ5747UC.mjs";
4
4
  import {
5
5
  DeeplineClient
6
- } from "./chunk-WVF6T2MI.mjs";
6
+ } from "./chunk-2JKQORUX.mjs";
7
7
  import {
8
8
  printCommandEnvelope,
9
9
  renderCommandEnvelopeText
10
- } from "./chunk-SNLYCNAO.mjs";
10
+ } from "./chunk-4CAVSRQH.mjs";
11
11
  import {
12
12
  resolveConfig,
13
13
  sdkCliStateDirPath
14
- } from "./chunk-IZ3QC7OE.mjs";
14
+ } from "./chunk-PXO253DP.mjs";
15
15
  import {
16
16
  __commonJS,
17
17
  __toESM
@@ -2,10 +2,10 @@ import {
2
2
  getAuthedHttpClient,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-SNLYCNAO.mjs";
5
+ } from "./chunk-4CAVSRQH.mjs";
6
6
  import {
7
7
  resolveBaseUrlOnly
8
- } from "./chunk-IZ3QC7OE.mjs";
8
+ } from "./chunk-PXO253DP.mjs";
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkNQAWJ65Ejs = require('./chunk-NQAWJ65E.js');
6
+ var _chunkHCYNAIHZjs = require('./chunk-HCYNAIHZ.js');
7
7
 
8
8
 
9
9
 
@@ -288,8 +288,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
288
288
  var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
289
289
  var defaultBrowserCommandRunner = childProcess;
290
290
  function getAuthedHttpClient() {
291
- const config = _chunkNQAWJ65Ejs.resolveConfig.call(void 0, );
292
- return { config, http: new (0, _chunkNQAWJ65Ejs.HttpClient)(config) };
291
+ const config = _chunkHCYNAIHZjs.resolveConfig.call(void 0, );
292
+ return { config, http: new (0, _chunkHCYNAIHZjs.HttpClient)(config) };
293
293
  }
294
294
  function stableOsUserId() {
295
295
  try {
@@ -629,7 +629,7 @@ function collectLocalEnvInfo() {
629
629
  os: `${process.platform} ${process.arch}`,
630
630
  node_version: process.version,
631
631
  home_dir: homeDir,
632
- agent_runtime: _chunkNQAWJ65Ejs.detectAgentRuntime.call(void 0, )
632
+ agent_runtime: _chunkHCYNAIHZjs.detectAgentRuntime.call(void 0, )
633
633
  };
634
634
  const env = process.env;
635
635
  const optional = {
@@ -876,9 +876,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
876
876
  }
877
877
  function withAgentCommandContext(value) {
878
878
  const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
879
- return _chunkNQAWJ65Ejs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
879
+ return _chunkHCYNAIHZjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
880
880
  ...valueRecord,
881
- command_context: _chunkNQAWJ65Ejs.resolveCliCommandContext.call(void 0, )
881
+ command_context: _chunkHCYNAIHZjs.resolveCliCommandContext.call(void 0, )
882
882
  } : value;
883
883
  }
884
884
  function printJson(value, fields) {
@@ -3,15 +3,15 @@
3
3
  var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
4
4
 
5
5
 
6
- var _chunkOGII53LEjs = require('./chunk-OGII53LE.js');
6
+ var _chunkWGO2DY4Ljs = require('./chunk-WGO2DY4L.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkQJA6OAJFjs = require('./chunk-QJA6OAJF.js');
10
+ var _chunkAYM2KZN3js = require('./chunk-AYM2KZN3.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkNQAWJ65Ejs = require('./chunk-NQAWJ65E.js');
14
+ var _chunkHCYNAIHZjs = require('./chunk-HCYNAIHZ.js');
15
15
 
16
16
 
17
17
 
@@ -5713,7 +5713,7 @@ var _fs = require('fs');
5713
5713
  var _path = require('path');
5714
5714
  var SEARCH_REF_TTL_MS = 15 * 6e4;
5715
5715
  function lastSearchPath() {
5716
- return _path.join.call(void 0, _chunkNQAWJ65Ejs.sdkCliStateDirPath.call(void 0, _chunkNQAWJ65Ejs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
5716
+ return _path.join.call(void 0, _chunkHCYNAIHZjs.sdkCliStateDirPath.call(void 0, _chunkHCYNAIHZjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
5717
5717
  }
5718
5718
  function rememberSearchRef(searchRef) {
5719
5719
  try {
@@ -5873,7 +5873,7 @@ var OPTIONAL_COLUMNS = [
5873
5873
  ];
5874
5874
  function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
5875
5875
  if (result.results.length === 0)
5876
- return _chunkQJA6OAJFjs.renderCommandEnvelopeText.call(void 0, result);
5876
+ return _chunkAYM2KZN3js.renderCommandEnvelopeText.call(void 0, result);
5877
5877
  const rows = result.results.map((item) => searchRow(item, summaryWidth));
5878
5878
  const kinds = new Set(rows.map((row) => row.kind));
5879
5879
  const onlyTools = kinds.size === 1 && kinds.has("tool");
@@ -5898,7 +5898,7 @@ function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
5898
5898
  actions: _optionalChain([render, 'optionalAccess', _12 => _12.actions])
5899
5899
  };
5900
5900
  const followUps = _optionalChain([remaining, 'access', _13 => _13.sections, 'optionalAccess', _14 => _14.length]) || _optionalChain([remaining, 'access', _15 => _15.actions, 'optionalAccess', _16 => _16.length]) ? `
5901
- ${_chunkQJA6OAJFjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
5901
+ ${_chunkAYM2KZN3js.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
5902
5902
  const notes = rows.flatMap(
5903
5903
  (row) => row.notes.map((note) => ` ${row.id}: ${note}`)
5904
5904
  );
@@ -5983,7 +5983,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
5983
5983
  console.error("--summary-width must be an integer of at least 2.");
5984
5984
  return 1;
5985
5985
  }
5986
- const { search_ref: searchRef, ...result } = await new (0, _chunkOGII53LEjs.DeeplineClient)().search({
5986
+ const { search_ref: searchRef, ...result } = await new (0, _chunkWGO2DY4Ljs.DeeplineClient)().search({
5987
5987
  query,
5988
5988
  types,
5989
5989
  exclude,
@@ -5997,7 +5997,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
5997
5997
  });
5998
5998
  if (searchRef) rememberSearchRef(searchRef);
5999
5999
  pointAtDescribe(result);
6000
- _chunkQJA6OAJFjs.printCommandEnvelope.call(void 0, result, {
6000
+ _chunkAYM2KZN3js.printCommandEnvelope.call(void 0, result, {
6001
6001
  json: options.json === true,
6002
6002
  text: renderSearchResults(result, summaryWidth)
6003
6003
  });
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  recentSearchRef,
7
7
  registerDeprecatedSearchCommand
8
- } from "./chunk-AOPQ46ZW.mjs";
8
+ } from "./chunk-7OJEYJ6G.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-WVF6T2MI.mjs";
48
+ } from "./chunk-2JKQORUX.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-SVJPQHHN.mjs";
58
+ } from "./chunk-MLP4CAY7.mjs";
59
59
  import {
60
60
  isCliTraceEnabled,
61
61
  recordCliTrace,
62
62
  resolveCliMaintenancePolicy
63
- } from "./chunk-JP35BUED.mjs";
63
+ } from "./chunk-TP26TAAF.mjs";
64
64
  import {
65
65
  checkSdkCompatibility,
66
66
  enforceSdkCompatibilityResponse,
67
67
  flushDeferredSkillsSyncNotices,
68
68
  syncSdkSkillsIfNeeded
69
- } from "./chunk-7AIHQR5X.mjs";
69
+ } from "./chunk-FEKJENBB.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-SNLYCNAO.mjs";
77
+ } from "./chunk-4CAVSRQH.mjs";
78
78
  import {
79
79
  readSdkSkillsLocalVersion,
80
80
  resolveConfig,
81
81
  sdkCliStateDirPath
82
- } from "./chunk-IZ3QC7OE.mjs";
82
+ } from "./chunk-PXO253DP.mjs";
83
83
  import {
84
84
  DeeplineError
85
85
  } from "./chunk-E4IXDAZI.mjs";
@@ -293,32 +293,13 @@ function toListedTool(tool) {
293
293
  executeCommand: `deepline tools execute ${tool.toolId}`
294
294
  };
295
295
  }
296
- function normalizeGrepText(value) {
297
- if (value === null || value === void 0) return "";
298
- if (typeof value === "string") return value.toLowerCase();
299
- if (typeof value === "number" || typeof value === "boolean") {
300
- return String(value).toLowerCase();
301
- }
302
- if (Array.isArray(value)) return value.map(normalizeGrepText).join(" ");
303
- if (typeof value === "object") {
304
- return Object.values(value).map(normalizeGrepText).join(" ");
305
- }
306
- return "";
307
- }
308
296
  function parseGrepTerms(query, mode) {
309
- const trimmed = query.trim().toLowerCase();
297
+ const trimmed = query.trim();
310
298
  if (!trimmed) return [];
311
299
  if (mode === "phrase") return [trimmed];
312
300
  const matches = trimmed.match(/"([^"]+)"|'([^']+)'|\S+/g) ?? [];
313
301
  return matches.map((term) => term.replace(/^["']|["']$/g, "").trim()).filter(Boolean);
314
302
  }
315
- function matchesGrepQuery(value, query, mode) {
316
- const terms = parseGrepTerms(query, mode);
317
- if (terms.length === 0) return true;
318
- const haystack = normalizeGrepText(value);
319
- if (mode === "any") return terms.some((term) => haystack.includes(term));
320
- return terms.every((term) => haystack.includes(term));
321
- }
322
303
  function shellCommandArg(value) {
323
304
  return `'${value.replace(/'/g, `'\\''`)}'`;
324
305
  }
@@ -338,7 +319,7 @@ function zeroMatchToolGuidance(options) {
338
319
  },
339
320
  ...options.mode === "all" ? [
340
321
  {
341
- label: "Relax literal grep from AND to OR matching",
322
+ label: "Relax grep from AND to OR matching",
342
323
  command: `deepline tools grep --mode any -- ${shellCommandArg(query)}`
343
324
  }
344
325
  ] : []
@@ -658,27 +639,8 @@ async function grepTools(queryInput, options = {}) {
658
639
  (item) => requestedCategories.length === 0 || requestedCategories.some(
659
640
  (category) => item.categories.includes(category)
660
641
  )
661
- ).filter(
662
- (item) => apiCompact ? true : matchesGrepQuery(
663
- {
664
- id: item.toolId,
665
- toolId: item.toolId,
666
- provider: item.provider,
667
- displayName: item.displayName,
668
- description: item.description,
669
- categories: item.categories,
670
- operation: item.operation,
671
- operationAliases: item.operationAliases,
672
- inputSchema: item.inputSchema,
673
- outputSchema: item.outputSchema,
674
- inputFields: item.inputFields
675
- },
676
- query,
677
- mode
678
- )
679
642
  );
680
- const shouldCompact = apiCompact;
681
- const outputTools = shouldCompact ? tools.slice(0, 8).map(compactTool) : tools;
643
+ const outputTools = apiCompact ? tools.map(compactTool) : tools;
682
644
  const emptyResult = tools.length === 0 ? zeroMatchToolGuidance({
683
645
  categories: requestedCategories,
684
646
  query,
@@ -714,6 +676,7 @@ function compactTool(tool) {
714
676
  const listed = toListedTool(tool);
715
677
  const searchScore = numericToolField(tool, "searchScore");
716
678
  const search_score = numericToolField(tool, "search_score");
679
+ const matchedFields = tool.matchedFields;
717
680
  return {
718
681
  id: listed.id,
719
682
  toolId: listed.toolId,
@@ -724,7 +687,8 @@ function compactTool(tool) {
724
687
  description: listed.description,
725
688
  categories: listed.categories,
726
689
  type: listed.type,
727
- executeCommand: listed.executeCommand
690
+ executeCommand: listed.executeCommand,
691
+ ...Array.isArray(matchedFields) ? { matchedFields } : {}
728
692
  };
729
693
  }
730
694
  function playIdentifiers(play) {
@@ -869,20 +833,24 @@ Examples:
869
833
  });
870
834
  registerDeprecatedSearchCommand(tools, () => ["tools", "monitors"]);
871
835
  tools.command("grep <query>").description(
872
- "Literal grep over tool ids, descriptions, categories, and input fields."
836
+ "Regex grep over tool ids, descriptions, categories, and input fields."
873
837
  ).addHelpText(
874
838
  "after",
875
839
  `
876
840
  Notes:
877
- Literal registry filtering. Terms are matched case-insensitively against tool
878
- ids, provider, display name, description, categories, aliases, and input
879
- fields. Use --mode phrase for exact phrase matching, --mode any for OR, and
880
- the default --mode all for AND.
841
+ Each whitespace-separated term is a case-insensitive regular expression
842
+ (RE2 syntax), tested against each field on its own: tool id, provider,
843
+ display name, categories, aliases, input field names, and descriptions.
844
+ Results list id matches first, and matchedFields says where each tool
845
+ matched. Use --mode any for OR, the default --mode all for AND, and
846
+ --mode phrase to treat the whole query, spaces included, as one pattern.
847
+ A term that is not valid RE2 (for example c++) is matched literally.
881
848
 
882
849
  Examples:
850
+ deepline tools grep '^hubspot_'
851
+ deepline tools grep 'twilio|telesign|vonage'
852
+ deepline tools grep 'hubspot.*(call|engagement)'
883
853
  deepline tools grep email --categories email_finder
884
- deepline tools grep "phone validate" --mode all
885
- deepline tools grep hunter --mode phrase
886
854
  `
887
855
  ).option(
888
856
  "--categories <categories>",
@@ -968,7 +936,7 @@ Examples:
968
936
  process.exitCode = await narrowView();
969
937
  return;
970
938
  }
971
- const { describeAnything } = await import("./describe-PDLBLRNY.mjs");
939
+ const { describeAnything } = await import("./describe-Y65BU7ZY.mjs");
972
940
  process.exitCode = await describeAnything(
973
941
  toolId,
974
942
  {
@@ -444,19 +444,20 @@ Cost:
444
444
  "tools grep": {
445
445
  core: `
446
446
  Purpose:
447
- Literal, case-insensitive filtering of the tool registry by id, provider,
447
+ Case-insensitive regex (RE2) filtering of the tool registry by id, provider,
448
448
  description, categories, or input field names.
449
449
  When:
450
- When you know a provider or field name and want every matching tool rather
451
- than a ranked guess. Use search for intent queries.
450
+ When you know a provider, id pattern, or field name and want every matching
451
+ tool rather than a ranked guess. Use search for intent queries.
452
452
  [[cli:
453
453
  Input:
454
- A query; --mode all (default, AND), any (OR), or phrase; --categories.
454
+ A query of regex terms; --mode all (default, AND), any (OR), or phrase
455
+ (whole query is one pattern); --categories.
455
456
  ]]
456
457
  [[cli:
457
458
  Output (JSON):
458
- tools[] with id, provider, displayName, description, categories, and
459
- executeCommand.
459
+ Every matching tool, id matches first: tools[] with id, provider,
460
+ displayName, description, categories, matchedFields, and executeCommand.
460
461
  ]]
461
462
  Cost:
462
463
  Free.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isJsonOutputMode
3
- } from "./chunk-SNLYCNAO.mjs";
3
+ } from "./chunk-4CAVSRQH.mjs";
4
4
  import {
5
5
  DEFAULT_SKILL_AGENTS,
6
6
  KNOWN_SKILL_AGENTS,
@@ -17,13 +17,13 @@ import {
17
17
  sdkCliStateDirPath,
18
18
  skillsAgentPathSegment,
19
19
  writeSdkSkillsLocalVersion
20
- } from "./chunk-IZ3QC7OE.mjs";
20
+ } from "./chunk-PXO253DP.mjs";
21
21
  import {
22
22
  DeeplineError
23
23
  } from "./chunk-E4IXDAZI.mjs";
24
24
  import {
25
25
  SDK_RELEASE
26
- } from "./chunk-LPNB7RIE.mjs";
26
+ } from "./chunk-VT6WJ26Y.mjs";
27
27
 
28
28
  // src/compat.ts
29
29
  import { randomUUID } from "crypto";
@@ -17,7 +17,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
17
17
  var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
18
18
 
19
19
 
20
- var _chunkZCPJ3L43js = require('./chunk-ZCPJ3L43.js');
20
+ var _chunkWP7T4BPEjs = require('./chunk-WP7T4BPE.js');
21
21
 
22
22
  // src/config.ts
23
23
 
@@ -649,9 +649,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
649
649
  }
650
650
 
651
651
  // src/version.ts
652
- var SDK_VERSION = _chunkZCPJ3L43js.SDK_RELEASE.version;
653
- var SDK_API_MAJOR = _chunkZCPJ3L43js.SDK_RELEASE.contracts.api.currentMajor;
654
- var SDK_API_CONTRACT = _nullishCoalesce(_chunkZCPJ3L43js.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
652
+ var SDK_VERSION = _chunkWP7T4BPEjs.SDK_RELEASE.version;
653
+ var SDK_API_MAJOR = _chunkWP7T4BPEjs.SDK_RELEASE.contracts.api.currentMajor;
654
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunkWP7T4BPEjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
655
655
 
656
656
  // src/agent-runtime.ts
657
657
 
@@ -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 _chunkJ55AD562js = require('./chunk-J55AD562.js');
3
+ var _chunkOZHPZCAUjs = require('./chunk-OZHPZCAU.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 = _chunkJ55AD562js.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkOZHPZCAUjs.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,