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.
- package/dist/bundling-sources/sdk/src/client.ts +23 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/commands/roll-execution-relay.ts +8 -4
- package/dist/cli/{auth-UDRY6ZL5.mjs → auth-KBORTFO6.mjs} +4 -4
- package/dist/cli/auth-LXI5K7V6.js +40 -0
- package/dist/cli/{billing-7QTUCC3F.js → billing-RE5WN7IQ.js} +73 -73
- package/dist/cli/{billing-3PTMADUE.mjs → billing-VJSUCB5I.mjs} +4 -4
- package/dist/cli/{chunk-R4MGS7YD.mjs → chunk-2GNX6SCO.mjs} +24 -0
- package/dist/cli/{chunk-GSDUURVH.mjs → chunk-42YHEY2R.mjs} +2 -2
- package/dist/cli/{chunk-3BQVWQXZ.js → chunk-4GHEUG6W.js} +20 -20
- package/dist/cli/{chunk-K4WKKNGY.js → chunk-4RKPT6IE.js} +2 -2
- package/dist/cli/{chunk-3ZGIJPAC.js → chunk-ATTUUPIU.js} +8 -8
- package/dist/cli/{chunk-S5AVEKTO.js → chunk-BBYGXP2I.js} +6 -6
- package/dist/cli/{chunk-CLDL6HJ4.js → chunk-CI56TXRS.js} +35 -35
- package/dist/cli/{chunk-CO67TF3J.mjs → chunk-CWFN7MUU.mjs} +42 -10
- package/dist/cli/{chunk-K4EHBVYV.js → chunk-DM6Q634K.js} +24 -0
- package/dist/cli/{chunk-IREQVEGX.js → chunk-EPABMF45.js} +6 -6
- package/dist/cli/{chunk-GIRJGHC3.js → chunk-FGTKAXRJ.js} +93 -80
- package/dist/cli/{chunk-3G2MZM7B.js → chunk-GFEWNYQ4.js} +2 -2
- package/dist/cli/{chunk-MOVWT3Z3.js → chunk-GJI7C2OU.js} +8 -8
- package/dist/cli/{chunk-64GPTXJV.mjs → chunk-GOHOTLUV.mjs} +3 -3
- package/dist/cli/{chunk-QUAV2FSK.mjs → chunk-GRAEERVE.mjs} +3 -3
- package/dist/cli/{chunk-QG7LM24G.mjs → chunk-GWC7OBRD.mjs} +2 -2
- package/dist/cli/{chunk-EBGHNXSH.js → chunk-HNMQSS7P.js} +1 -1
- package/dist/cli/{chunk-2OTCHLWC.mjs → chunk-K23LXA4N.mjs} +1 -1
- package/dist/cli/{chunk-ODGVHGHI.js → chunk-M6WSQZHP.js} +52 -52
- package/dist/cli/{chunk-SJBJYNJ3.mjs → chunk-NIR2UK5V.mjs} +1 -1
- package/dist/cli/{chunk-AGX3XMPN.mjs → chunk-O7PC3VOI.mjs} +1 -1
- package/dist/cli/{chunk-KQJMCYFP.js → chunk-OOVQITRM.js} +50 -50
- package/dist/cli/{chunk-2KDFL6IV.mjs → chunk-OX5JAD3D.mjs} +4 -4
- package/dist/cli/{chunk-GBIWLNWI.mjs → chunk-PCNOULRB.mjs} +14 -1
- package/dist/cli/{chunk-IAQ73HVZ.js → chunk-R2P756BJ.js} +16 -16
- package/dist/cli/{chunk-PEFUJDEQ.mjs → chunk-R7GGDUOM.mjs} +3 -3
- package/dist/cli/{chunk-3G7KUJ63.mjs → chunk-RAJP44MZ.mjs} +1 -1
- package/dist/cli/{chunk-LZRYLCV3.mjs → chunk-T6XBX45B.mjs} +5 -5
- package/dist/cli/{chunk-HWTAT726.js → chunk-V2ZITVZA.js} +26 -26
- package/dist/cli/{chunk-ALWQKQQ6.mjs → chunk-V74O7X2X.mjs} +2 -2
- package/dist/cli/{chunk-OSQEFBQA.js → chunk-VXQQZV4A.js} +4 -4
- package/dist/cli/{chunk-G6HUOVZ4.mjs → chunk-XL4FJX7J.mjs} +1 -1
- package/dist/cli/{chunk-OVLP7546.js → chunk-Z7SKBAOU.js} +113 -81
- package/dist/cli/{chunk-DGGQXHAO.mjs → chunk-ZLD46RSR.mjs} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-K5PMPLNS.js → csv-L64ECPD5.js} +12 -12
- package/dist/cli/{csv-ZU2VMGYN.mjs → csv-MP3WOYPE.mjs} +3 -3
- package/dist/cli/{db-GJR5NDMX.mjs → db-FOV7GHXS.mjs} +4 -4
- package/dist/cli/{db-7CZ73PYG.js → db-RZJK6LGN.js} +25 -25
- package/dist/cli/{describe-NS2RAE5K.mjs → describe-R2BEQHVZ.mjs} +12 -12
- package/dist/cli/{describe-YNVJ76T6.js → describe-WWENJAG2.js} +16 -16
- package/dist/cli/describe-core.d.mts +1 -1
- package/dist/cli/describe-core.d.ts +1 -1
- package/dist/cli/{executions-EKWO3HR7.js → executions-3LFEK56I.js} +6 -6
- package/dist/cli/{executions-7VW6WOHA.mjs → executions-C5WO6TGN.mjs} +4 -4
- package/dist/cli/{feedback-DTMRRZNI.js → feedback-EMWUZ4LV.js} +7 -7
- package/dist/cli/{feedback-I4AKIIFP.mjs → feedback-K6OAZUQ4.mjs} +3 -3
- package/dist/cli/git-2BW2UDK6.js +24 -0
- package/dist/cli/{git-H7RW4ILW.mjs → git-DJLL3OCZ.mjs} +4 -4
- package/dist/cli/index.js +135 -135
- package/dist/cli/index.mjs +37 -37
- package/dist/cli/{legacy-noops-BJCSECN6.js → legacy-noops-57SRSZ7M.js} +7 -7
- package/dist/cli/{legacy-noops-2LJGABEO.mjs → legacy-noops-EAJG56KP.mjs} +4 -4
- package/dist/cli/{monitors-75ZYK5QN.mjs → monitors-FHTQ6227.mjs} +4 -4
- package/dist/cli/{monitors-YXIETS5O.js → monitors-OI57AAIG.js} +84 -84
- package/dist/cli/{org-TIQTG57G.js → org-26EHPBKF.js} +66 -66
- package/dist/cli/{org-5BYA54D5.mjs → org-YGHFZTWJ.mjs} +4 -4
- package/dist/cli/{play-3HDMONS3.mjs → play-KBKWTIXK.mjs} +10 -10
- package/dist/cli/{play-MG6PQTZX.js → play-PXGYS4DH.js} +283 -283
- package/dist/cli/{providers-VTU5QFEY.js → providers-IZYBWI6M.js} +7 -7
- package/dist/cli/{providers-ZRI33AVX.mjs → providers-YPFEVK5C.mjs} +4 -4
- package/dist/cli/{quickstart-E2GZQ7C5.js → quickstart-RBCTFLI3.js} +5 -5
- package/dist/cli/{quickstart-GLKJVPGF.mjs → quickstart-SJ2M56CV.mjs} +3 -3
- package/dist/cli/search-5CFJRSGN.js +30 -0
- package/dist/cli/{search-WA7MLHXA.mjs → search-PSPZTTKR.mjs} +5 -5
- package/dist/cli/{secrets-UZCAPRNH.mjs → secrets-BCS4FE5D.mjs} +4 -4
- package/dist/cli/{secrets-FJ2FFPR6.js → secrets-XIWKYXGD.js} +13 -13
- package/dist/cli/{sessions-RGT3OFG3.mjs → sessions-L3UEERFX.mjs} +4 -4
- package/dist/cli/{sessions-GSB77ETF.js → sessions-YX2AJF5I.js} +5 -5
- package/dist/cli/{settings-5TWU54SW.mjs → settings-SFFP7AR5.mjs} +8 -8
- package/dist/cli/{settings-LOFO3Z7X.js → settings-X2GMYBE7.js} +75 -75
- package/dist/cli/{setup-HUAD7RTY.js → setup-4ERUKDQ5.js} +42 -42
- package/dist/cli/{setup-ECTNKMOF.mjs → setup-QIHAXFBL.mjs} +7 -7
- package/dist/cli/{skills-APEJV5NK.mjs → skills-BYNSDIKJ.mjs} +5 -5
- package/dist/cli/skills-EOPZVMJS.js +29 -0
- package/dist/cli/{tools-56FHN4LC.mjs → tools-PQSMCIA7.mjs} +12 -12
- package/dist/cli/tools-UEZW4OD7.js +44 -0
- package/dist/cli/update-6TOZCQ4Y.js +31 -0
- package/dist/cli/{update-HEN6P35K.mjs → update-BI4E6UXI.mjs} +7 -7
- package/dist/cli/{workflow-VYCNZHZ7.js → workflow-52P63K65.js} +15 -15
- package/dist/cli/{workflow-P7XPHC5B.mjs → workflow-PMRFMZVP.mjs} +5 -5
- package/dist/{client-uX4RCcOS.d.ts → client-9nH8tx4R.d.ts} +9 -0
- package/dist/{client-jgdWPXpp.d.mts → client-Doml68vC.d.mts} +9 -0
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +82 -82
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/package.json +1 -1
- package/dist/cli/auth-7MV6G26U.js +0 -40
- package/dist/cli/git-F7XXAE3T.js +0 -24
- package/dist/cli/search-FWZCKD3Y.js +0 -30
- package/dist/cli/skills-M6AIJHCI.js +0 -29
- package/dist/cli/tools-4CNXP3XD.js +0 -44
- 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-
|
|
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-
|
|
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-
|
|
58
|
+
} from "./chunk-OX5JAD3D.mjs";
|
|
59
59
|
import {
|
|
60
60
|
isCliTraceEnabled,
|
|
61
61
|
recordCliTrace,
|
|
62
62
|
resolveCliMaintenancePolicy
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-RAJP44MZ.mjs";
|
|
64
64
|
import {
|
|
65
65
|
checkSdkCompatibility,
|
|
66
66
|
enforceSdkCompatibilityResponse,
|
|
67
67
|
flushDeferredSkillsSyncNotices,
|
|
68
68
|
syncSdkSkillsIfNeeded
|
|
69
|
-
} from "./chunk-
|
|
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-
|
|
77
|
+
} from "./chunk-K23LXA4N.mjs";
|
|
78
78
|
import {
|
|
79
79
|
readSdkSkillsLocalVersion,
|
|
80
80
|
resolveConfig,
|
|
81
81
|
sdkCliStateDirPath
|
|
82
|
-
} from "./chunk-
|
|
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
|
-
"
|
|
764
|
-
).
|
|
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-
|
|
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
|
|
3
|
+
var _chunk4RKPT6IEjs = require('./chunk-4RKPT6IE.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
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")
|
|
18
|
-
const compatibility = await
|
|
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
|
-
() =>
|
|
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
|
-
|
|
27
|
+
_chunkM6WSQZHPjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
28
28
|
quietAdvisory: true
|
|
29
29
|
});
|
|
30
30
|
}
|