deepline 0.3.438 → 0.3.439
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/cli/auth-5UUDH4A7.js +40 -0
- package/dist/cli/{auth-UDRY6ZL5.mjs → auth-FE2LP7A5.mjs} +4 -4
- package/dist/cli/{billing-7QTUCC3F.js → billing-4QAWLCKH.js} +73 -73
- package/dist/cli/{billing-3PTMADUE.mjs → billing-GABU2MTX.mjs} +4 -4
- package/dist/cli/{chunk-2KDFL6IV.mjs → chunk-2ELMQ6LW.mjs} +4 -4
- package/dist/cli/{chunk-R4MGS7YD.mjs → chunk-2GNX6SCO.mjs} +24 -0
- package/dist/cli/{chunk-EBGHNXSH.js → chunk-2I42ORGH.js} +1 -1
- package/dist/cli/{chunk-IREQVEGX.js → chunk-3TYXI7MD.js} +6 -6
- package/dist/cli/{chunk-IAQ73HVZ.js → chunk-72XLUEP6.js} +16 -16
- package/dist/cli/{chunk-K4WKKNGY.js → chunk-76DCNYH3.js} +2 -2
- package/dist/cli/{chunk-2OTCHLWC.mjs → chunk-BQQ4LEQB.mjs} +1 -1
- package/dist/cli/{chunk-S5AVEKTO.js → chunk-D4VWHTDT.js} +6 -6
- package/dist/cli/{chunk-K4EHBVYV.js → chunk-DM6Q634K.js} +24 -0
- package/dist/cli/{chunk-3G7KUJ63.mjs → chunk-E6ESUF5C.mjs} +1 -1
- package/dist/cli/{chunk-OSQEFBQA.js → chunk-EBW6KRTG.js} +4 -4
- package/dist/cli/{chunk-ALWQKQQ6.mjs → chunk-F3ORKGAM.mjs} +2 -2
- package/dist/cli/{chunk-3ZGIJPAC.js → chunk-FB3B2NKV.js} +8 -8
- package/dist/cli/{chunk-3G2MZM7B.js → chunk-FCF5BP3Q.js} +2 -2
- package/dist/cli/{chunk-QUAV2FSK.mjs → chunk-FDQAOF3L.mjs} +3 -3
- package/dist/cli/{chunk-GBIWLNWI.mjs → chunk-HO2TOFKF.mjs} +14 -1
- package/dist/cli/{chunk-QG7LM24G.mjs → chunk-HUBVYO52.mjs} +2 -2
- package/dist/cli/{chunk-AGX3XMPN.mjs → chunk-IAL3KSJT.mjs} +1 -1
- package/dist/cli/{chunk-MOVWT3Z3.js → chunk-IX7ZGPLU.js} +8 -8
- package/dist/cli/{chunk-OVLP7546.js → chunk-KGR7SR3C.js} +113 -81
- package/dist/cli/{chunk-SJBJYNJ3.mjs → chunk-MGBVCVJ7.mjs} +1 -1
- package/dist/cli/{chunk-GIRJGHC3.js → chunk-MPY4UD6H.js} +93 -80
- package/dist/cli/{chunk-GSDUURVH.mjs → chunk-N7T6S5SU.mjs} +2 -2
- package/dist/cli/{chunk-KQJMCYFP.js → chunk-P4ITKGRQ.js} +50 -50
- package/dist/cli/{chunk-PEFUJDEQ.mjs → chunk-QFTJ24UV.mjs} +3 -3
- package/dist/cli/{chunk-3BQVWQXZ.js → chunk-R3X55OMZ.js} +20 -20
- package/dist/cli/{chunk-64GPTXJV.mjs → chunk-RIJ4VTYJ.mjs} +3 -3
- package/dist/cli/{chunk-DGGQXHAO.mjs → chunk-SWZQBMXR.mjs} +2 -2
- package/dist/cli/{chunk-ODGVHGHI.js → chunk-TWXPEHTM.js} +52 -52
- package/dist/cli/{chunk-LZRYLCV3.mjs → chunk-UN3F6ZKR.mjs} +5 -5
- package/dist/cli/{chunk-HWTAT726.js → chunk-WJ4PNSX3.js} +26 -26
- package/dist/cli/{chunk-CLDL6HJ4.js → chunk-XFVHEDRH.js} +35 -35
- package/dist/cli/{chunk-CO67TF3J.mjs → chunk-XMSVK6O4.mjs} +42 -10
- package/dist/cli/{chunk-G6HUOVZ4.mjs → chunk-ZTJUGK5I.mjs} +1 -1
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-ZU2VMGYN.mjs → csv-NZOZIEQP.mjs} +3 -3
- package/dist/cli/{csv-K5PMPLNS.js → csv-TVVXG42B.js} +12 -12
- package/dist/cli/{db-7CZ73PYG.js → db-3Q2OPJW6.js} +25 -25
- package/dist/cli/{db-GJR5NDMX.mjs → db-PEZHN563.mjs} +4 -4
- package/dist/cli/{describe-NS2RAE5K.mjs → describe-GHSBWUUS.mjs} +12 -12
- package/dist/cli/{describe-YNVJ76T6.js → describe-M7AP5WVH.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-7VW6WOHA.mjs → executions-7E3GU4QA.mjs} +4 -4
- package/dist/cli/{executions-EKWO3HR7.js → executions-YKR2SAZF.js} +6 -6
- package/dist/cli/{feedback-I4AKIIFP.mjs → feedback-JSPMENHA.mjs} +3 -3
- package/dist/cli/{feedback-DTMRRZNI.js → feedback-JTRYBUQZ.js} +7 -7
- package/dist/cli/git-6QITFAMM.js +24 -0
- package/dist/cli/{git-H7RW4ILW.mjs → git-R4PATSRX.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-3OMVEANW.js} +7 -7
- package/dist/cli/{legacy-noops-2LJGABEO.mjs → legacy-noops-W52GTS36.mjs} +4 -4
- package/dist/cli/{monitors-75ZYK5QN.mjs → monitors-SIXLFZJ3.mjs} +4 -4
- package/dist/cli/{monitors-YXIETS5O.js → monitors-YA6X5BM4.js} +84 -84
- package/dist/cli/{org-TIQTG57G.js → org-73YXPEZ5.js} +66 -66
- package/dist/cli/{org-5BYA54D5.mjs → org-EYFKI2ZI.mjs} +4 -4
- package/dist/cli/{play-3HDMONS3.mjs → play-7EF6XSS6.mjs} +10 -10
- package/dist/cli/{play-MG6PQTZX.js → play-CSRSSDTC.js} +283 -283
- package/dist/cli/{providers-VTU5QFEY.js → providers-IHQGSP3E.js} +7 -7
- package/dist/cli/{providers-ZRI33AVX.mjs → providers-MKIVZMBG.mjs} +4 -4
- package/dist/cli/{quickstart-E2GZQ7C5.js → quickstart-26QTTEHV.js} +5 -5
- package/dist/cli/{quickstart-GLKJVPGF.mjs → quickstart-COU7YD7S.mjs} +3 -3
- package/dist/cli/search-DOK42NBV.js +30 -0
- package/dist/cli/{search-WA7MLHXA.mjs → search-YKN4OI4P.mjs} +5 -5
- package/dist/cli/{secrets-UZCAPRNH.mjs → secrets-CQPQQJ76.mjs} +4 -4
- package/dist/cli/{secrets-FJ2FFPR6.js → secrets-W3DT7F7Q.js} +13 -13
- package/dist/cli/{sessions-GSB77ETF.js → sessions-GYKUO55E.js} +5 -5
- package/dist/cli/{sessions-RGT3OFG3.mjs → sessions-U5ULT5CF.mjs} +4 -4
- package/dist/cli/{settings-5TWU54SW.mjs → settings-6MZCTUWD.mjs} +8 -8
- package/dist/cli/{settings-LOFO3Z7X.js → settings-U6ZOQ3FZ.js} +75 -75
- package/dist/cli/{setup-HUAD7RTY.js → setup-HEDWKIGE.js} +42 -42
- package/dist/cli/{setup-ECTNKMOF.mjs → setup-JFG3GZGE.mjs} +7 -7
- package/dist/cli/skills-FOGBZYDP.js +29 -0
- package/dist/cli/{skills-APEJV5NK.mjs → skills-VIY56KK5.mjs} +5 -5
- package/dist/cli/{tools-56FHN4LC.mjs → tools-Y64ZTYTZ.mjs} +12 -12
- package/dist/cli/tools-ZN54N4NT.js +44 -0
- package/dist/cli/{update-HEN6P35K.mjs → update-2RL67PK2.mjs} +7 -7
- package/dist/cli/update-AZCNZXXP.js +31 -0
- package/dist/cli/{workflow-VYCNZHZ7.js → workflow-FHKZGJGS.js} +15 -15
- package/dist/cli/{workflow-P7XPHC5B.mjs → workflow-YRI7MT3F.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
|
@@ -4,18 +4,18 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UN3F6ZKR.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-RIJ4VTYJ.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BQQ4LEQB.mjs";
|
|
15
15
|
import {
|
|
16
16
|
SDK_VERSION,
|
|
17
17
|
resolveApiKeyForBaseUrl
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ZTJUGK5I.mjs";
|
|
19
19
|
|
|
20
20
|
// src/cli/compatibility-catalog.ts
|
|
21
21
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -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": {
|
|
@@ -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.
|
|
52
|
+
version: "0.3.439",
|
|
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."
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunk76DCNYH3js = require('./chunk-76DCNYH3.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkTWXPEHTMjs = require('./chunk-TWXPEHTM.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") _chunkTWXPEHTMjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
18
|
+
const compatibility = await _chunk76DCNYH3js.traceCliSpan.call(void 0,
|
|
19
19
|
"cli.sdk_compatibility",
|
|
20
20
|
{ baseUrl, command: "plays run" },
|
|
21
|
-
() =>
|
|
21
|
+
() => _chunkTWXPEHTMjs.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
|
+
_chunkTWXPEHTMjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
28
28
|
quietAdvisory: true
|
|
29
29
|
});
|
|
30
30
|
}
|
|
@@ -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
|
|
4
|
+
var _chunkFCF5BP3Qjs = require('./chunk-FCF5BP3Q.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkXFVHEDRHjs = require('./chunk-XFVHEDRH.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkTWXPEHTMjs = require('./chunk-TWXPEHTM.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkD4VWHTDTjs = require('./chunk-D4VWHTDT.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkEBW6KRTGjs = require('./chunk-EBW6KRTG.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 =
|
|
498
|
+
const plan = _chunkTWXPEHTMjs.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 ?
|
|
560
|
-
const npmGlobalInstallFlags =
|
|
559
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkFCF5BP3Qjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunkFCF5BP3Qjs.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()]) ||
|
|
570
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkEBW6KRTGjs.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 =
|
|
819
|
+
const plan = _chunkTWXPEHTMjs.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, () => (
|
|
1202
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkEBW6KRTGjs.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
|
|
1209
|
+
const exitCode = await _chunkXFVHEDRHjs.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
|
-
|
|
1280
|
+
_chunkD4VWHTDTjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunkD4VWHTDTjs.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
|
-
|
|
1297
|
+
_chunkD4VWHTDTjs.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
|
-
|
|
1327
|
+
_chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|
|
@@ -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
|
|
3
|
+
var _chunkD4VWHTDTjs = require('./chunk-D4VWHTDT.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
|
-
|
|
36
|
+
_chunkD4VWHTDTjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkEBW6KRTGjs = require('./chunk-EBW6KRTG.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 =
|
|
292
|
-
return { config, http: new (0,
|
|
291
|
+
const config = _chunkEBW6KRTGjs.resolveConfig.call(void 0, );
|
|
292
|
+
return { config, http: new (0, _chunkEBW6KRTGjs.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:
|
|
632
|
+
agent_runtime: _chunkEBW6KRTGjs.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
|
|
879
|
+
return _chunkEBW6KRTGjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
880
880
|
...valueRecord,
|
|
881
|
-
command_context:
|
|
881
|
+
command_context: _chunkEBW6KRTGjs.resolveCliCommandContext.call(void 0, )
|
|
882
882
|
} : value;
|
|
883
883
|
}
|
|
884
884
|
function printJson(value, fields) {
|
|
@@ -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": {
|
|
@@ -17,7 +17,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
17
17
|
var _chunkPPDBRJRWjs = require('./chunk-PPDBRJRW.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk2I42ORGHjs = require('./chunk-2I42ORGH.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 =
|
|
653
|
-
var SDK_API_MAJOR =
|
|
654
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
652
|
+
var SDK_VERSION = _chunk2I42ORGHjs.SDK_RELEASE.version;
|
|
653
|
+
var SDK_API_MAJOR = _chunk2I42ORGHjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
654
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunk2I42ORGHjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
655
655
|
|
|
656
656
|
// src/agent-runtime.ts
|
|
657
657
|
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BQQ4LEQB.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZTJUGK5I.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -1,10 +1,10 @@
|
|
|
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
|
|
4
|
+
var _chunkD4VWHTDTjs = require('./chunk-D4VWHTDT.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkEBW6KRTGjs = require('./chunk-EBW6KRTG.js');
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
|
|
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
|
|
|
139
139
|
const newestFirst = listSessionFiles(agent).sort(
|
|
140
140
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
141
141
|
);
|
|
142
|
-
const sessionId =
|
|
142
|
+
const sessionId = _chunkEBW6KRTGjs.agentSessionIdFromEnvironment.call(void 0,
|
|
143
143
|
process.env,
|
|
144
144
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
145
145
|
);
|
|
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
|
|
|
451
451
|
return { encodedContent: encoded, needsChunking: true };
|
|
452
452
|
}
|
|
453
453
|
async function uploadPayload(path, payload) {
|
|
454
|
-
const { http } =
|
|
454
|
+
const { http } = _chunkD4VWHTDTjs.getAuthedHttpClient.call(void 0, );
|
|
455
455
|
return await http.post(path, payload);
|
|
456
456
|
}
|
|
457
457
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
484
484
|
...options.rating ? { rating: options.rating } : {}
|
|
485
485
|
});
|
|
486
486
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
487
|
-
|
|
487
|
+
_chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
|
|
488
488
|
{
|
|
489
489
|
...response,
|
|
490
490
|
ok: true,
|
|
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
|
|
|
516
516
|
filename: _path.basename.call(void 0, filePath),
|
|
517
517
|
...rating ? { rating } : {}
|
|
518
518
|
});
|
|
519
|
-
|
|
519
|
+
_chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
|
|
520
520
|
{
|
|
521
521
|
...response2,
|
|
522
522
|
ok: true,
|
|
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
|
|
|
566
566
|
...rating ? { rating } : {}
|
|
567
567
|
});
|
|
568
568
|
const sessionIds = built.map((session) => session.sessionId);
|
|
569
|
-
|
|
569
|
+
_chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
|
|
570
570
|
{
|
|
571
571
|
...response,
|
|
572
572
|
ok: true,
|
|
@@ -674,7 +674,7 @@ ${refreshMeta}
|
|
|
674
674
|
</body>
|
|
675
675
|
</html>`;
|
|
676
676
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
677
|
-
|
|
677
|
+
_chunkD4VWHTDTjs.printCommandEnvelope.call(void 0,
|
|
678
678
|
{
|
|
679
679
|
ok: true,
|
|
680
680
|
file: outputPath,
|
|
@@ -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
|
|
3
|
+
var _chunkTWXPEHTMjs = require('./chunk-TWXPEHTM.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 =
|
|
16
|
+
const plan = _chunkTWXPEHTMjs.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-
|
|
14
|
+
} from "./chunk-RIJ4VTYJ.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-BQQ4LEQB.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-
|
|
25
|
+
} from "./chunk-ZTJUGK5I.mjs";
|
|
26
26
|
|
|
27
27
|
// src/cli/commands/skills.ts
|
|
28
28
|
import { spawn } from "child_process";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
29
29
|
SDK_API_MAJOR,
|
|
30
30
|
resolveConfig
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-ZTJUGK5I.mjs";
|
|
32
32
|
import {
|
|
33
33
|
CustomerDbQueryOutcomeUnknownError
|
|
34
34
|
} from "./chunk-MAMVGOSC.mjs";
|
|
@@ -5181,6 +5181,19 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
5181
5181
|
credentials
|
|
5182
5182
|
});
|
|
5183
5183
|
}
|
|
5184
|
+
/** Start provider OAuth and return the URL to open in a browser. */
|
|
5185
|
+
async startIntegrationOAuth(provider, options = {}) {
|
|
5186
|
+
const scopes = options.scopes?.map((scope) => scope.trim()).filter(Boolean);
|
|
5187
|
+
if (scopes !== void 0 && scopes.length === 0) {
|
|
5188
|
+
throw new Error("scopes must contain at least one OAuth scope.");
|
|
5189
|
+
}
|
|
5190
|
+
return this.http.post("/api/v2/integrations/connect", {
|
|
5191
|
+
provider,
|
|
5192
|
+
...options.preset !== void 0 ? { preset: options.preset } : {},
|
|
5193
|
+
...scopes !== void 0 ? { scopes } : {},
|
|
5194
|
+
...options.optionalScopes !== void 0 ? { optional_scopes: options.optionalScopes } : {}
|
|
5195
|
+
});
|
|
5196
|
+
}
|
|
5184
5197
|
/** Start the Slack OAuth flow required by product notifications. */
|
|
5185
5198
|
async connectNotificationSlack(options) {
|
|
5186
5199
|
return this.http.post("/api/v2/integrations/connect", {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BQQ4LEQB.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZTJUGK5I.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkMPY4UD6Hjs = require('./chunk-MPY4UD6H.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkD4VWHTDTjs = require('./chunk-D4VWHTDT.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkEBW6KRTGjs = require('./chunk-EBW6KRTG.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,
|
|
5716
|
+
return _path.join.call(void 0, _chunkEBW6KRTGjs.sdkCliStateDirPath.call(void 0, _chunkEBW6KRTGjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
5717
5717
|
}
|
|
5718
5718
|
function rememberSearchRef(searchRef) {
|
|
5719
5719
|
try {
|
|
@@ -5877,7 +5877,7 @@ var OPTIONAL_COLUMNS = [
|
|
|
5877
5877
|
];
|
|
5878
5878
|
function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
5879
5879
|
if (result.results.length === 0)
|
|
5880
|
-
return
|
|
5880
|
+
return _chunkD4VWHTDTjs.renderCommandEnvelopeText.call(void 0, result);
|
|
5881
5881
|
const rows = result.results.map((item) => searchRow(item, summaryWidth));
|
|
5882
5882
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
5883
5883
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -5902,7 +5902,7 @@ function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
|
5902
5902
|
actions: _optionalChain([render, 'optionalAccess', _12 => _12.actions])
|
|
5903
5903
|
};
|
|
5904
5904
|
const followUps = _optionalChain([remaining, 'access', _13 => _13.sections, 'optionalAccess', _14 => _14.length]) || _optionalChain([remaining, 'access', _15 => _15.actions, 'optionalAccess', _16 => _16.length]) ? `
|
|
5905
|
-
${
|
|
5905
|
+
${_chunkD4VWHTDTjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
5906
5906
|
const notes = rows.flatMap(
|
|
5907
5907
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
5908
5908
|
);
|
|
@@ -5987,7 +5987,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
5987
5987
|
console.error("--summary-width must be an integer of at least 2.");
|
|
5988
5988
|
return 1;
|
|
5989
5989
|
}
|
|
5990
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
5990
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkMPY4UD6Hjs.DeeplineClient)().search({
|
|
5991
5991
|
query,
|
|
5992
5992
|
types,
|
|
5993
5993
|
exclude,
|
|
@@ -6001,7 +6001,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
6001
6001
|
});
|
|
6002
6002
|
if (searchRef) rememberSearchRef(searchRef);
|
|
6003
6003
|
pointAtDescribe(result);
|
|
6004
|
-
|
|
6004
|
+
_chunkD4VWHTDTjs.printCommandEnvelope.call(void 0, result, {
|
|
6005
6005
|
json: options.json === true,
|
|
6006
6006
|
text: renderSearchResults(result, summaryWidth)
|
|
6007
6007
|
});
|