deepline 0.3.438 → 0.3.440

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/play-runtime/deployment/commands/roll-execution-relay.ts +8 -4
  4. package/dist/cli/{auth-UDRY6ZL5.mjs → auth-KBORTFO6.mjs} +4 -4
  5. package/dist/cli/auth-LXI5K7V6.js +40 -0
  6. package/dist/cli/{billing-7QTUCC3F.js → billing-RE5WN7IQ.js} +73 -73
  7. package/dist/cli/{billing-3PTMADUE.mjs → billing-VJSUCB5I.mjs} +4 -4
  8. package/dist/cli/{chunk-R4MGS7YD.mjs → chunk-2GNX6SCO.mjs} +24 -0
  9. package/dist/cli/{chunk-GSDUURVH.mjs → chunk-42YHEY2R.mjs} +2 -2
  10. package/dist/cli/{chunk-3BQVWQXZ.js → chunk-4GHEUG6W.js} +20 -20
  11. package/dist/cli/{chunk-K4WKKNGY.js → chunk-4RKPT6IE.js} +2 -2
  12. package/dist/cli/{chunk-3ZGIJPAC.js → chunk-ATTUUPIU.js} +8 -8
  13. package/dist/cli/{chunk-S5AVEKTO.js → chunk-BBYGXP2I.js} +6 -6
  14. package/dist/cli/{chunk-CLDL6HJ4.js → chunk-CI56TXRS.js} +35 -35
  15. package/dist/cli/{chunk-CO67TF3J.mjs → chunk-CWFN7MUU.mjs} +42 -10
  16. package/dist/cli/{chunk-K4EHBVYV.js → chunk-DM6Q634K.js} +24 -0
  17. package/dist/cli/{chunk-IREQVEGX.js → chunk-EPABMF45.js} +6 -6
  18. package/dist/cli/{chunk-GIRJGHC3.js → chunk-FGTKAXRJ.js} +93 -80
  19. package/dist/cli/{chunk-3G2MZM7B.js → chunk-GFEWNYQ4.js} +2 -2
  20. package/dist/cli/{chunk-MOVWT3Z3.js → chunk-GJI7C2OU.js} +8 -8
  21. package/dist/cli/{chunk-64GPTXJV.mjs → chunk-GOHOTLUV.mjs} +3 -3
  22. package/dist/cli/{chunk-QUAV2FSK.mjs → chunk-GRAEERVE.mjs} +3 -3
  23. package/dist/cli/{chunk-QG7LM24G.mjs → chunk-GWC7OBRD.mjs} +2 -2
  24. package/dist/cli/{chunk-EBGHNXSH.js → chunk-HNMQSS7P.js} +1 -1
  25. package/dist/cli/{chunk-2OTCHLWC.mjs → chunk-K23LXA4N.mjs} +1 -1
  26. package/dist/cli/{chunk-ODGVHGHI.js → chunk-M6WSQZHP.js} +52 -52
  27. package/dist/cli/{chunk-SJBJYNJ3.mjs → chunk-NIR2UK5V.mjs} +1 -1
  28. package/dist/cli/{chunk-AGX3XMPN.mjs → chunk-O7PC3VOI.mjs} +1 -1
  29. package/dist/cli/{chunk-KQJMCYFP.js → chunk-OOVQITRM.js} +50 -50
  30. package/dist/cli/{chunk-2KDFL6IV.mjs → chunk-OX5JAD3D.mjs} +4 -4
  31. package/dist/cli/{chunk-GBIWLNWI.mjs → chunk-PCNOULRB.mjs} +14 -1
  32. package/dist/cli/{chunk-IAQ73HVZ.js → chunk-R2P756BJ.js} +16 -16
  33. package/dist/cli/{chunk-PEFUJDEQ.mjs → chunk-R7GGDUOM.mjs} +3 -3
  34. package/dist/cli/{chunk-3G7KUJ63.mjs → chunk-RAJP44MZ.mjs} +1 -1
  35. package/dist/cli/{chunk-LZRYLCV3.mjs → chunk-T6XBX45B.mjs} +5 -5
  36. package/dist/cli/{chunk-HWTAT726.js → chunk-V2ZITVZA.js} +26 -26
  37. package/dist/cli/{chunk-ALWQKQQ6.mjs → chunk-V74O7X2X.mjs} +2 -2
  38. package/dist/cli/{chunk-OSQEFBQA.js → chunk-VXQQZV4A.js} +4 -4
  39. package/dist/cli/{chunk-G6HUOVZ4.mjs → chunk-XL4FJX7J.mjs} +1 -1
  40. package/dist/cli/{chunk-OVLP7546.js → chunk-Z7SKBAOU.js} +113 -81
  41. package/dist/cli/{chunk-DGGQXHAO.mjs → chunk-ZLD46RSR.mjs} +2 -2
  42. package/dist/cli/command-docs.js +2 -2
  43. package/dist/cli/command-docs.mjs +1 -1
  44. package/dist/cli/{csv-K5PMPLNS.js → csv-L64ECPD5.js} +12 -12
  45. package/dist/cli/{csv-ZU2VMGYN.mjs → csv-MP3WOYPE.mjs} +3 -3
  46. package/dist/cli/{db-GJR5NDMX.mjs → db-FOV7GHXS.mjs} +4 -4
  47. package/dist/cli/{db-7CZ73PYG.js → db-RZJK6LGN.js} +25 -25
  48. package/dist/cli/{describe-NS2RAE5K.mjs → describe-R2BEQHVZ.mjs} +12 -12
  49. package/dist/cli/{describe-YNVJ76T6.js → describe-WWENJAG2.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-EKWO3HR7.js → executions-3LFEK56I.js} +6 -6
  53. package/dist/cli/{executions-7VW6WOHA.mjs → executions-C5WO6TGN.mjs} +4 -4
  54. package/dist/cli/{feedback-DTMRRZNI.js → feedback-EMWUZ4LV.js} +7 -7
  55. package/dist/cli/{feedback-I4AKIIFP.mjs → feedback-K6OAZUQ4.mjs} +3 -3
  56. package/dist/cli/git-2BW2UDK6.js +24 -0
  57. package/dist/cli/{git-H7RW4ILW.mjs → git-DJLL3OCZ.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-BJCSECN6.js → legacy-noops-57SRSZ7M.js} +7 -7
  61. package/dist/cli/{legacy-noops-2LJGABEO.mjs → legacy-noops-EAJG56KP.mjs} +4 -4
  62. package/dist/cli/{monitors-75ZYK5QN.mjs → monitors-FHTQ6227.mjs} +4 -4
  63. package/dist/cli/{monitors-YXIETS5O.js → monitors-OI57AAIG.js} +84 -84
  64. package/dist/cli/{org-TIQTG57G.js → org-26EHPBKF.js} +66 -66
  65. package/dist/cli/{org-5BYA54D5.mjs → org-YGHFZTWJ.mjs} +4 -4
  66. package/dist/cli/{play-3HDMONS3.mjs → play-KBKWTIXK.mjs} +10 -10
  67. package/dist/cli/{play-MG6PQTZX.js → play-PXGYS4DH.js} +283 -283
  68. package/dist/cli/{providers-VTU5QFEY.js → providers-IZYBWI6M.js} +7 -7
  69. package/dist/cli/{providers-ZRI33AVX.mjs → providers-YPFEVK5C.mjs} +4 -4
  70. package/dist/cli/{quickstart-E2GZQ7C5.js → quickstart-RBCTFLI3.js} +5 -5
  71. package/dist/cli/{quickstart-GLKJVPGF.mjs → quickstart-SJ2M56CV.mjs} +3 -3
  72. package/dist/cli/search-5CFJRSGN.js +30 -0
  73. package/dist/cli/{search-WA7MLHXA.mjs → search-PSPZTTKR.mjs} +5 -5
  74. package/dist/cli/{secrets-UZCAPRNH.mjs → secrets-BCS4FE5D.mjs} +4 -4
  75. package/dist/cli/{secrets-FJ2FFPR6.js → secrets-XIWKYXGD.js} +13 -13
  76. package/dist/cli/{sessions-RGT3OFG3.mjs → sessions-L3UEERFX.mjs} +4 -4
  77. package/dist/cli/{sessions-GSB77ETF.js → sessions-YX2AJF5I.js} +5 -5
  78. package/dist/cli/{settings-5TWU54SW.mjs → settings-SFFP7AR5.mjs} +8 -8
  79. package/dist/cli/{settings-LOFO3Z7X.js → settings-X2GMYBE7.js} +75 -75
  80. package/dist/cli/{setup-HUAD7RTY.js → setup-4ERUKDQ5.js} +42 -42
  81. package/dist/cli/{setup-ECTNKMOF.mjs → setup-QIHAXFBL.mjs} +7 -7
  82. package/dist/cli/{skills-APEJV5NK.mjs → skills-BYNSDIKJ.mjs} +5 -5
  83. package/dist/cli/skills-EOPZVMJS.js +29 -0
  84. package/dist/cli/{tools-56FHN4LC.mjs → tools-PQSMCIA7.mjs} +12 -12
  85. package/dist/cli/tools-UEZW4OD7.js +44 -0
  86. package/dist/cli/update-6TOZCQ4Y.js +31 -0
  87. package/dist/cli/{update-HEN6P35K.mjs → update-BI4E6UXI.mjs} +7 -7
  88. package/dist/cli/{workflow-VYCNZHZ7.js → workflow-52P63K65.js} +15 -15
  89. package/dist/cli/{workflow-P7XPHC5B.mjs → workflow-PMRFMZVP.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-7MV6G26U.js +0 -40
  107. package/dist/cli/git-F7XXAE3T.js +0 -24
  108. package/dist/cli/search-FWZCKD3Y.js +0 -30
  109. package/dist/cli/skills-M6AIJHCI.js +0 -29
  110. package/dist/cli/tools-4CNXP3XD.js +0 -44
  111. package/dist/cli/update-US3AAEVC.js +0 -31
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  recentSearchRef,
7
7
  registerDeprecatedSearchCommand
8
- } from "./chunk-PEFUJDEQ.mjs";
8
+ } from "./chunk-R7GGDUOM.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-GBIWLNWI.mjs";
48
+ } from "./chunk-PCNOULRB.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-2KDFL6IV.mjs";
58
+ } from "./chunk-OX5JAD3D.mjs";
59
59
  import {
60
60
  isCliTraceEnabled,
61
61
  recordCliTrace,
62
62
  resolveCliMaintenancePolicy
63
- } from "./chunk-3G7KUJ63.mjs";
63
+ } from "./chunk-RAJP44MZ.mjs";
64
64
  import {
65
65
  checkSdkCompatibility,
66
66
  enforceSdkCompatibilityResponse,
67
67
  flushDeferredSkillsSyncNotices,
68
68
  syncSdkSkillsIfNeeded
69
- } from "./chunk-64GPTXJV.mjs";
69
+ } from "./chunk-GOHOTLUV.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-2OTCHLWC.mjs";
77
+ } from "./chunk-K23LXA4N.mjs";
78
78
  import {
79
79
  readSdkSkillsLocalVersion,
80
80
  resolveConfig,
81
81
  sdkCliStateDirPath
82
- } from "./chunk-G6HUOVZ4.mjs";
82
+ } from "./chunk-XL4FJX7J.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-NS2RAE5K.mjs");
971
+ const { describeAnything } = await import("./describe-R2BEQHVZ.mjs");
940
972
  process.exitCode = await describeAnything(
941
973
  toolId,
942
974
  {
@@ -439,6 +439,30 @@ The sequence:
439
439
  Cost:
440
440
  search, describe, list, and grep are free. execute can spend credits; the
441
441
  price is in [[cli:describe <id>]][[mcp:deepline_describe_tool]].
442
+ `
443
+ },
444
+ "tools connect": {
445
+ core: `
446
+ Purpose:
447
+ Connect a provider to the active workspace. Requires an owner or admin.
448
+ Input:
449
+ --credentials-file <path> saves a private JSON object of credential strings.
450
+ --oauth prints an authorization URL. Open it in a browser signed into the
451
+ same Deepline workspace and finish provider consent.
452
+ HubSpot: --preset read-crm, update-crm, marketing, sales-sequences, tickets, or all.
453
+ all requests every supported capability, including write and admin access.
454
+ For custom access use comma-separated --scopes and --optional-scopes instead
455
+ of --preset. --scopes must be nonempty; an empty --optional-scopes string
456
+ requests no optional scopes. Scope names and presets
457
+ are validated by the server; requested access may differ from granted access.
458
+ Output:
459
+ Credentials: confirmation without secret values.
460
+ OAuth: URL, or {provider, redirect_url} with --json. This does not confirm a
461
+ completed connection. The browser must finish authorization.
462
+ Cost:
463
+ Does not spend Deepline credits.
464
+ Example:
465
+ deepline tools connect hubspot --oauth --preset read-crm
442
466
  `
443
467
  },
444
468
  "tools grep": {
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkK4WKKNGYjs = require('./chunk-K4WKKNGY.js');
3
+ var _chunk4RKPT6IEjs = require('./chunk-4RKPT6IE.js');
4
4
 
5
5
 
6
6
 
7
7
 
8
- var _chunkODGVHGHIjs = require('./chunk-ODGVHGHI.js');
8
+ var _chunkM6WSQZHPjs = require('./chunk-M6WSQZHP.js');
9
9
 
10
10
  // src/cli/play-run-admission.ts
11
11
  function usesInlinePlayAdmission(command, args) {
@@ -14,17 +14,17 @@ function usesInlinePlayAdmission(command, args) {
14
14
  );
15
15
  }
16
16
  async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured") {
17
- if (maintenancePolicy !== "off") _chunkODGVHGHIjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
18
- const compatibility = await _chunkK4WKKNGYjs.traceCliSpan.call(void 0,
17
+ if (maintenancePolicy !== "off") _chunkM6WSQZHPjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
18
+ const compatibility = await _chunk4RKPT6IEjs.traceCliSpan.call(void 0,
19
19
  "cli.sdk_compatibility",
20
20
  { baseUrl, command: "plays run" },
21
- () => _chunkODGVHGHIjs.checkSdkCompatibility.call(void 0, baseUrl, {
21
+ () => _chunkM6WSQZHPjs.checkSdkCompatibility.call(void 0, baseUrl, {
22
22
  command: "plays run",
23
23
  persistCache: maintenancePolicy !== "off"
24
24
  })
25
25
  );
26
26
  if (compatibility.error) throw compatibility.error;
27
- _chunkODGVHGHIjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
27
+ _chunkM6WSQZHPjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
28
28
  quietAdvisory: true
29
29
  });
30
30
  }