deepline 0.3.419 → 0.3.421

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 (102) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/monitors/quickstart-prompts.ts +13 -16
  3. package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +20 -30
  4. package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
  5. package/dist/cli/{auth-S4XGFFWB.mjs → auth-56JTC4Q7.mjs} +4 -4
  6. package/dist/cli/auth-ZQMAF7W5.js +40 -0
  7. package/dist/cli/{billing-WQMBRCK3.js → billing-C5LR6FA7.js} +73 -73
  8. package/dist/cli/{billing-3MM7VKKA.mjs → billing-ZXOOZEUW.mjs} +4 -4
  9. package/dist/cli/{chunk-WHXZGCKE.js → chunk-2WOVAVJ3.js} +26 -26
  10. package/dist/cli/{chunk-GEHD7ZHY.js → chunk-2XKDLS5P.js} +6 -6
  11. package/dist/cli/{chunk-5R3CAKPM.js → chunk-4I26IVFC.js} +35 -35
  12. package/dist/cli/{chunk-LB7PZRYJ.mjs → chunk-4NS4EZHN.mjs} +2 -2
  13. package/dist/cli/{chunk-2ADW356Z.mjs → chunk-5E55HHW3.mjs} +4 -4
  14. package/dist/cli/{chunk-BQIUAAPX.mjs → chunk-5F6W5NWV.mjs} +5 -5
  15. package/dist/cli/{chunk-NJI4U7IR.js → chunk-5KYK4DGY.js} +8 -8
  16. package/dist/cli/{chunk-2MQXRENZ.js → chunk-6UKY4LBW.js} +20 -20
  17. package/dist/cli/{chunk-2Y2RQZRO.js → chunk-7SRVIWGT.js} +1 -1
  18. package/dist/cli/{chunk-3NUJRZN5.mjs → chunk-7TSF7E3B.mjs} +2 -2
  19. package/dist/cli/{chunk-ZCINJS4P.mjs → chunk-AZGJNNNE.mjs} +2 -2
  20. package/dist/cli/{chunk-VZSBJVI4.js → chunk-C25ZYL6U.js} +4 -4
  21. package/dist/cli/{chunk-LFSHGNT2.mjs → chunk-CTNA5QY2.mjs} +7 -6
  22. package/dist/cli/{chunk-IK3XE6GT.mjs → chunk-EKQH4IUU.mjs} +1 -1
  23. package/dist/cli/{chunk-PGHT4ESO.mjs → chunk-F4V4JJED.mjs} +3 -3
  24. package/dist/cli/{chunk-EP5EVGFD.js → chunk-FB5H5OOH.js} +10 -10
  25. package/dist/cli/{chunk-JUBHX5FK.js → chunk-GIJ47TAV.js} +6 -6
  26. package/dist/cli/{chunk-THGNECIR.js → chunk-HP5FD2LI.js} +8 -8
  27. package/dist/cli/{chunk-CKAQIJTU.js → chunk-JJQLBZEW.js} +2 -2
  28. package/dist/cli/{chunk-D4P53G7A.js → chunk-NSJRLP7R.js} +16 -16
  29. package/dist/cli/{chunk-5MLCBXXU.js → chunk-PKBPSMOT.js} +7 -6
  30. package/dist/cli/{chunk-PR5T2MON.js → chunk-QJV2ALPN.js} +2 -2
  31. package/dist/cli/{chunk-6LLEMZL5.mjs → chunk-RJLFCJ23.mjs} +3 -3
  32. package/dist/cli/{chunk-OVMJ57X5.mjs → chunk-RURYN2BE.mjs} +25 -57
  33. package/dist/cli/{chunk-7IXS77PX.mjs → chunk-SPLOMS4N.mjs} +1 -1
  34. package/dist/cli/{chunk-MUVGAGXH.mjs → chunk-UCI4QROZ.mjs} +1 -1
  35. package/dist/cli/{chunk-EPMYNLKZ.mjs → chunk-VC3E5HFO.mjs} +1 -1
  36. package/dist/cli/{chunk-LA7V3VIF.js → chunk-VEYAPBS4.js} +96 -128
  37. package/dist/cli/{chunk-KABBXKFO.mjs → chunk-VYLZS7X4.mjs} +1 -1
  38. package/dist/cli/{chunk-NPXUFHMI.js → chunk-WR4M5VWK.js} +52 -52
  39. package/dist/cli/{chunk-TLGTZ2XN.mjs → chunk-ZLPT2RZ5.mjs} +2 -2
  40. package/dist/cli/{chunk-JKDMQDJD.mjs → chunk-ZOL3CIKN.mjs} +3 -3
  41. package/dist/cli/{chunk-LIZP3TPY.mjs → chunk-ZSVWCV3G.mjs} +1 -1
  42. package/dist/cli/{chunk-WPJBDOVV.js → chunk-ZZBXD5VX.js} +50 -50
  43. package/dist/cli/command-docs.js +2 -2
  44. package/dist/cli/command-docs.mjs +1 -1
  45. package/dist/cli/{csv-JKBKQMJS.mjs → csv-EJ4QRLA2.mjs} +3 -3
  46. package/dist/cli/{csv-SILKSRLY.js → csv-G6H3U4XV.js} +12 -12
  47. package/dist/cli/{db-Y67OZBKB.mjs → db-PBIIALJ5.mjs} +4 -4
  48. package/dist/cli/{db-HUOYJZ2S.js → db-WKQFXUWI.js} +25 -25
  49. package/dist/cli/{describe-7PO235KZ.mjs → describe-DMRK4UNO.mjs} +12 -12
  50. package/dist/cli/{describe-RN25ACS6.js → describe-ZCU36ES2.js} +16 -16
  51. package/dist/cli/{executions-RNAT43OA.mjs → executions-JAHW6GMA.mjs} +4 -4
  52. package/dist/cli/{executions-4NQOE73P.js → executions-SBA3UYMH.js} +6 -6
  53. package/dist/cli/{feedback-WCPPBNAK.mjs → feedback-PKBUYHMD.mjs} +3 -3
  54. package/dist/cli/{feedback-QW2H7PZ7.js → feedback-QAE4V2NY.js} +7 -7
  55. package/dist/cli/git-54INNT33.js +24 -0
  56. package/dist/cli/{git-GLIWIFE3.mjs → git-GAO3SJAQ.mjs} +4 -4
  57. package/dist/cli/index.js +135 -135
  58. package/dist/cli/index.mjs +37 -37
  59. package/dist/cli/{legacy-noops-ADDQUU26.mjs → legacy-noops-5PY2ZZF3.mjs} +4 -4
  60. package/dist/cli/{legacy-noops-HUWR7BMO.js → legacy-noops-JCMVW5BL.js} +7 -7
  61. package/dist/cli/{monitors-ZR5BRAFH.mjs → monitors-GVYAZRMB.mjs} +4 -4
  62. package/dist/cli/{monitors-TBY3OEWL.js → monitors-YPS4LPDG.js} +84 -84
  63. package/dist/cli/{org-4JCEJFF4.js → org-OBVAU6K7.js} +64 -64
  64. package/dist/cli/{org-UBJ2J7I3.mjs → org-R7AKPKUB.mjs} +4 -4
  65. package/dist/cli/{play-WD5JVYPK.mjs → play-3LFM2SV2.mjs} +10 -10
  66. package/dist/cli/{play-X3ULEXAW.js → play-MTHQQHR6.js} +283 -283
  67. package/dist/cli/{providers-FPUQNBZT.js → providers-CTIROUI3.js} +7 -7
  68. package/dist/cli/{providers-5FHAFCKF.mjs → providers-IRICPDKU.mjs} +4 -4
  69. package/dist/cli/{quickstart-XFQSAVDZ.mjs → quickstart-5FBQVZ5B.mjs} +3 -3
  70. package/dist/cli/{quickstart-ARNCLYA5.js → quickstart-OZDVFNF2.js} +5 -5
  71. package/dist/cli/{search-GPFQ7DVB.mjs → search-FYM47QFU.mjs} +5 -5
  72. package/dist/cli/search-XIKHDZJ3.js +30 -0
  73. package/dist/cli/{secrets-X4SI4ODH.js → secrets-43GJUDAE.js} +13 -13
  74. package/dist/cli/{secrets-T4DP2OUW.mjs → secrets-ENBXU3O3.mjs} +4 -4
  75. package/dist/cli/{sessions-S374MOV3.mjs → sessions-7IQJOH5Z.mjs} +4 -4
  76. package/dist/cli/{sessions-CMRGH7VP.js → sessions-RXX5IHG6.js} +5 -5
  77. package/dist/cli/{settings-RGXD3IYO.mjs → settings-EZGDTS3K.mjs} +8 -8
  78. package/dist/cli/{settings-IWEDBHC4.js → settings-Z2CWWV7P.js} +75 -75
  79. package/dist/cli/{setup-PQHKVOYA.js → setup-2ON3TUXP.js} +42 -42
  80. package/dist/cli/{setup-N6UOP274.mjs → setup-N5UMUBBV.mjs} +7 -7
  81. package/dist/cli/skills-2WIHNEOS.js +29 -0
  82. package/dist/cli/{skills-DHOK5DZB.mjs → skills-4MR2Z2M5.mjs} +5 -5
  83. package/dist/cli/{tools-5Q4246NF.mjs → tools-MCEIWE3I.mjs} +12 -12
  84. package/dist/cli/tools-YUUSOKYX.js +44 -0
  85. package/dist/cli/{update-2LQIYQVX.mjs → update-2JDBGLTX.mjs} +7 -7
  86. package/dist/cli/update-PWX4MJ3R.js +31 -0
  87. package/dist/cli/{workflow-LDRMZBCK.js → workflow-7DNBY4WJ.js} +15 -15
  88. package/dist/cli/{workflow-DBIMUE7K.mjs → workflow-7UDXYU5Y.mjs} +5 -5
  89. package/dist/index.js +6 -6
  90. package/dist/index.mjs +3 -3
  91. package/dist/install-integrity.json +80 -80
  92. package/dist/release.d.mts +1 -1
  93. package/dist/release.d.ts +1 -1
  94. package/dist/release.js +2 -2
  95. package/dist/release.mjs +1 -1
  96. package/package.json +1 -1
  97. package/dist/cli/auth-SF265NLP.js +0 -40
  98. package/dist/cli/git-ODPWPPCD.js +0 -24
  99. package/dist/cli/search-TPHG6627.js +0 -30
  100. package/dist/cli/skills-2LO7KAVM.js +0 -29
  101. package/dist/cli/tools-JGBXER7K.js +0 -44
  102. package/dist/cli/update-V7WJDCBC.js +0 -31
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  recentSearchRef,
7
7
  registerDeprecatedSearchCommand
8
- } from "./chunk-JKDMQDJD.mjs";
8
+ } from "./chunk-ZOL3CIKN.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-MUVGAGXH.mjs";
48
+ } from "./chunk-UCI4QROZ.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-2ADW356Z.mjs";
58
+ } from "./chunk-5E55HHW3.mjs";
59
59
  import {
60
60
  isCliTraceEnabled,
61
61
  recordCliTrace,
62
62
  resolveCliMaintenancePolicy
63
- } from "./chunk-IK3XE6GT.mjs";
63
+ } from "./chunk-EKQH4IUU.mjs";
64
64
  import {
65
65
  checkSdkCompatibility,
66
66
  enforceSdkCompatibilityResponse,
67
67
  flushDeferredSkillsSyncNotices,
68
68
  syncSdkSkillsIfNeeded
69
- } from "./chunk-6LLEMZL5.mjs";
69
+ } from "./chunk-RJLFCJ23.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-EPMYNLKZ.mjs";
77
+ } from "./chunk-VC3E5HFO.mjs";
78
78
  import {
79
79
  readSdkSkillsLocalVersion,
80
80
  resolveConfig,
81
81
  sdkCliStateDirPath
82
- } from "./chunk-KABBXKFO.mjs";
82
+ } from "./chunk-VYLZS7X4.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-7PO235KZ.mjs");
939
+ const { describeAnything } = await import("./describe-DMRK4UNO.mjs");
972
940
  process.exitCode = await describeAnything(
973
941
  toolId,
974
942
  {
@@ -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.419",
52
+ version: "0.3.421",
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."
@@ -28,7 +28,7 @@ import {
28
28
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
29
29
  SDK_API_MAJOR,
30
30
  resolveConfig
31
- } from "./chunk-KABBXKFO.mjs";
31
+ } from "./chunk-VYLZS7X4.mjs";
32
32
  import {
33
33
  CustomerDbQueryOutcomeUnknownError
34
34
  } from "./chunk-MAMVGOSC.mjs";
@@ -3,7 +3,7 @@ import {
3
3
  detectAgentRuntime,
4
4
  resolveCliCommandContext,
5
5
  resolveConfig
6
- } from "./chunk-KABBXKFO.mjs";
6
+ } from "./chunk-VYLZS7X4.mjs";
7
7
  import {
8
8
  DeeplineError,
9
9
  serializeToolExecutionFailure