deepline 0.3.547 → 0.3.548
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/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +47 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +89 -0
- package/dist/bundling-sources/shared_libs/security/email-blacklist.ts +3 -0
- package/dist/bundling-sources/shared_libs/security/email-domain.ts +24 -0
- package/dist/cli/auth-7UJFY5BY.js +43 -0
- package/dist/cli/{auth-WJEY4IDX.mjs → auth-YOOVLLUL.mjs} +5 -5
- package/dist/cli/{billing-PHJUDYF3.mjs → billing-2NCNX6L2.mjs} +8 -8
- package/dist/cli/{billing-IJITDDRQ.js → billing-HETIOUD6.js} +92 -92
- package/dist/cli/{chunk-FFBXLFKV.js → chunk-2OG2KBYJ.js} +1 -1
- package/dist/cli/{chunk-ECUD4QPD.mjs → chunk-3QRU6RY7.mjs} +3 -3
- package/dist/cli/{chunk-DJI5CLLW.mjs → chunk-53QLWPZK.mjs} +1 -1
- package/dist/cli/{chunk-IVFFCAV2.js → chunk-5OJOFUMO.js} +44 -44
- package/dist/cli/{chunk-MO7TGNXB.js → chunk-5XFJBIQT.js} +13 -13
- package/dist/cli/{chunk-E2OIYPB4.js → chunk-5XXPP3PR.js} +10 -10
- package/dist/cli/{chunk-Z2YGQZWV.mjs → chunk-64BFUBXX.mjs} +2 -2
- package/dist/cli/{chunk-QU3K3IY6.js → chunk-6GIZNOXQ.js} +12 -12
- package/dist/cli/{chunk-XNTDTAKC.mjs → chunk-7AJ5V3BK.mjs} +1 -1
- package/dist/cli/{chunk-HFIFKP3A.js → chunk-7H6TQ6W2.js} +5 -5
- package/dist/cli/{chunk-VNOQEDVC.js → chunk-7JIOJLTS.js} +7 -7
- package/dist/cli/{chunk-GIGAYLY6.js → chunk-7UJZWI5Z.js} +9 -9
- package/dist/cli/{chunk-L6QE2XVM.mjs → chunk-ATTURFOV.mjs} +1 -1
- package/dist/cli/{chunk-LMLSOHTU.js → chunk-AUYBBFPT.js} +53 -53
- package/dist/cli/{chunk-MBQELFL7.js → chunk-BDBEEV6X.js} +22 -22
- package/dist/cli/{chunk-L5J6UJ2X.js → chunk-BWJZ4NQJ.js} +15 -15
- package/dist/cli/{chunk-SAJWYN4B.js → chunk-CXZLHBNK.js} +4 -4
- package/dist/cli/{chunk-PBMO36BP.mjs → chunk-F4ON5COB.mjs} +2 -2
- package/dist/cli/{chunk-DIUNDLSX.mjs → chunk-FMQA7UZZ.mjs} +2 -2
- package/dist/cli/{chunk-ITLZBDSR.mjs → chunk-FUUYWEF4.mjs} +2 -2
- package/dist/cli/{chunk-G6KW764N.mjs → chunk-GCEGQ7TQ.mjs} +1 -1
- package/dist/cli/{chunk-2AHY47SI.js → chunk-GUIYFOG2.js} +3 -3
- package/dist/cli/{chunk-OVYXYTEP.js → chunk-HDLMX7SG.js} +16 -16
- package/dist/cli/{chunk-IKYN6PLO.mjs → chunk-HIMZ57QD.mjs} +5 -5
- package/dist/cli/{chunk-REAFIEV5.js → chunk-HTZIJORU.js} +99 -99
- package/dist/cli/{chunk-ESCVHDNY.mjs → chunk-HU3DDLGD.mjs} +5 -5
- package/dist/cli/{chunk-GJOGFWX3.js → chunk-I2JIWKCQ.js} +19 -19
- package/dist/cli/{chunk-2HPTLBNB.js → chunk-IIWXBRDK.js} +3 -3
- package/dist/cli/{chunk-CKIRKYW7.mjs → chunk-IQBXX54G.mjs} +3 -3
- package/dist/cli/{chunk-K3GMDSUX.js → chunk-JQWX377P.js} +5 -5
- package/dist/cli/{chunk-ABLTVG3J.js → chunk-LAVPP6WD.js} +41 -41
- package/dist/cli/{chunk-NBYFQZ6O.js → chunk-M2OZORIH.js} +2 -2
- package/dist/cli/{chunk-MOZEAGSR.mjs → chunk-MQSKSISW.mjs} +1 -1
- package/dist/cli/{chunk-56MEAGWA.mjs → chunk-MWQ4WWZF.mjs} +2 -2
- package/dist/cli/{chunk-G6XTCG3J.mjs → chunk-NFMX7BRF.mjs} +2 -2
- package/dist/cli/{chunk-TNJG4ZPN.mjs → chunk-OGDQFVCP.mjs} +2 -2
- package/dist/cli/{chunk-FMQXAOVE.mjs → chunk-OQCYSLML.mjs} +4 -4
- package/dist/cli/{chunk-GZFZZQL4.js → chunk-PVE3A2BO.js} +8 -8
- package/dist/cli/{chunk-5SFHPMBY.mjs → chunk-QQBRXMZM.mjs} +11 -11
- package/dist/cli/{chunk-GPAWLXW3.mjs → chunk-QZ74ZC55.mjs} +1 -1
- package/dist/cli/{chunk-YURGAKI3.js → chunk-T3RDWG5J.js} +2 -2
- package/dist/cli/{chunk-XMBVHJPR.mjs → chunk-TKGFHRHE.mjs} +1 -1
- package/dist/cli/{chunk-RXRC2COC.mjs → chunk-U35ZLVBA.mjs} +2 -2
- package/dist/cli/{chunk-YVKLF7RW.js → chunk-U7HJXE6Y.js} +2 -2
- package/dist/cli/{chunk-AEQ5VWZ5.mjs → chunk-UBQQR56I.mjs} +4 -4
- package/dist/cli/{chunk-N63U5CRG.js → chunk-VK2GSTRN.js} +26 -26
- package/dist/cli/{chunk-QLE3QKJ2.mjs → chunk-VSACOMIA.mjs} +5 -5
- package/dist/cli/{chunk-D6OIEH47.js → chunk-WI4MCR7M.js} +5 -5
- package/dist/cli/{chunk-DZC7LMYM.js → chunk-WIHQAZPV.js} +6 -6
- package/dist/cli/{chunk-IGAK22XO.mjs → chunk-WVZF4DU7.mjs} +1 -1
- package/dist/cli/{chunk-VPF54TXQ.mjs → chunk-XKEBQVCP.mjs} +5 -5
- package/dist/cli/{chunk-HARZ4AAX.mjs → chunk-XU3D2KFR.mjs} +1 -1
- package/dist/cli/concurrent-runs-help-A2IQVZRJ.js +21 -0
- package/dist/cli/{concurrent-runs-help-ZNGP563R.mjs → concurrent-runs-help-FDCCZ45D.mjs} +6 -6
- package/dist/cli/{csv-VAHQHYYV.mjs → csv-GJYLQ52D.mjs} +4 -4
- package/dist/cli/{csv-X6D4ZELE.js → csv-OCEQWZO3.js} +13 -13
- package/dist/cli/{db-4G4S2VOV.mjs → db-5MA2UUHQ.mjs} +6 -6
- package/dist/cli/{db-YA5ZGVEX.js → db-G5QGXFAX.js} +27 -27
- package/dist/cli/{describe-EVXEM2S6.mjs → describe-4DOJ4DHA.mjs} +18 -18
- package/dist/cli/describe-SD7DRTBW.js +50 -0
- package/dist/cli/{executions-HR6CTN5M.mjs → executions-C7SMBHHB.mjs} +6 -6
- package/dist/cli/{executions-5YC7ABF6.js → executions-IYEVUPJI.js} +8 -8
- package/dist/cli/{feedback-MJHSYLFF.js → feedback-GYAF46GA.js} +14 -14
- package/dist/cli/{feedback-GEU5SPLR.mjs → feedback-XUU2UKM6.mjs} +6 -6
- package/dist/cli/git-7YYVMY6L.js +25 -0
- package/dist/cli/{git-NPFF6QUS.mjs → git-WVCMK5AH.mjs} +5 -5
- package/dist/cli/index.js +142 -142
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{integrations-Z7EGVBHF.mjs → integrations-FXADGAX2.mjs} +7 -7
- package/dist/cli/{integrations-YPHFI77G.js → integrations-YYBJJFVX.js} +15 -15
- package/dist/cli/{legacy-noops-5IYCFWWX.mjs → legacy-noops-LJY7LDUE.mjs} +6 -6
- package/dist/cli/{legacy-noops-246E3KKG.js → legacy-noops-REZCYES2.js} +9 -9
- package/dist/cli/{mcp-YTYTW67G.js → mcp-L5PURE5S.js} +24 -24
- package/dist/cli/{mcp-WUYGZXPI.mjs → mcp-XSB3ZJFR.mjs} +4 -4
- package/dist/cli/{monitors-SA6ILD6Z.js → monitors-I5EIHSGV.js} +100 -100
- package/dist/cli/{monitors-73DQKCU7.mjs → monitors-UBPF2OLO.mjs} +7 -7
- package/dist/cli/{org-WVQRB2KX.mjs → org-PHHIN2ER.mjs} +6 -6
- package/dist/cli/{org-X7ELDV7B.js → org-SGSTGGUD.js} +88 -88
- package/dist/cli/{play-QI6V2EUQ.mjs → play-LEJNJLWY.mjs} +17 -17
- package/dist/cli/{play-QTYOAJPE.js → play-WQEKMANL.js} +317 -317
- package/dist/cli/{providers-DPVMVDS4.mjs → providers-3W26ZDAV.mjs} +6 -6
- package/dist/cli/{providers-XXFLVREV.js → providers-RSDXBXIS.js} +9 -9
- package/dist/cli/{quickstart-YWGNHULM.mjs → quickstart-LGJD2M36.mjs} +4 -4
- package/dist/cli/{quickstart-33ISXQJU.js → quickstart-U3QX4EMI.js} +6 -6
- package/dist/cli/{run-BWHZXLTD.js → run-F2UPZUJS.js} +43 -43
- package/dist/cli/{run-J6FCAKQC.mjs → run-YWZ3W5HK.mjs} +23 -23
- package/dist/cli/search-K6ANAXLF.js +32 -0
- package/dist/cli/{search-Z3UU3WBB.mjs → search-O2OJH3PY.mjs} +7 -7
- package/dist/cli/{search-output-OJYY4J7E.mjs → search-output-H5BF6SJ3.mjs} +4 -4
- package/dist/cli/{search-output-YIPV74ME.js → search-output-W7OCBYBU.js} +6 -6
- package/dist/cli/{secrets-YZZN2WST.mjs → secrets-65XCAA7U.mjs} +6 -6
- package/dist/cli/{secrets-UXRJCEN4.js → secrets-BN4GYVRI.js} +15 -15
- package/dist/cli/sessions-M52QWLA6.js +22 -0
- package/dist/cli/{sessions-ITCGPD7Z.mjs → sessions-SVEVESCQ.mjs} +6 -6
- package/dist/cli/{settings-LAFYMILP.js → settings-7YMDAFCN.js} +85 -85
- package/dist/cli/{settings-ZP2LSVNM.mjs → settings-HAU2NP2H.mjs} +12 -12
- package/dist/cli/{setup-WEQAQSYC.mjs → setup-5RXHZ6YI.mjs} +9 -9
- package/dist/cli/{setup-4AL3XYM5.js → setup-G37QXQGM.js} +49 -49
- package/dist/cli/{skills-NQH4HFW2.mjs → skills-Q7A3XFAU.mjs} +7 -7
- package/dist/cli/skills-ZK4D5BJW.js +36 -0
- package/dist/cli/tools-DBZTLYFM.js +57 -0
- package/dist/cli/{tools-CXK2GSI4.mjs → tools-ZG4NYRGB.mjs} +17 -17
- package/dist/cli/{update-3ROF3Z75.mjs → update-2CMZTZCL.mjs} +9 -9
- package/dist/cli/update-LC5HGEEH.js +34 -0
- package/dist/cli/{views-AOUHVGV2.mjs → views-A6IIY4OQ.mjs} +6 -6
- package/dist/cli/{views-XJFO5CEH.js → views-XUMDMDIE.js} +21 -21
- package/dist/cli/{workflow-GY3DBHXX.js → workflow-4EEW6MCD.js} +17 -17
- package/dist/cli/{workflow-KBS2QJK6.mjs → workflow-74MYISHU.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +110 -110
- 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/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-AC5277PI.js +0 -43
- package/dist/cli/concurrent-runs-help-ZYISYOQA.js +0 -21
- package/dist/cli/describe-GYYSLZLV.js +0 -50
- package/dist/cli/git-FZIQZNI4.js +0 -25
- package/dist/cli/search-JCWJX2XD.js +0 -32
- package/dist/cli/sessions-NA4SJH6Q.js +0 -22
- package/dist/cli/skills-XZ4Y6SZ7.js +0 -36
- package/dist/cli/tools-WJQ6Y7E4.js +0 -57
- package/dist/cli/update-ZLRLTBRD.js +0 -34
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rejectRestrictedFeedback
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WVZF4DU7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getAuthedHttpClient,
|
|
6
6
|
printCommandEnvelope
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-OGDQFVCP.mjs";
|
|
8
8
|
import {
|
|
9
9
|
agentSessionIdFromEnvironment,
|
|
10
10
|
claudeProjectsRoots,
|
|
11
11
|
coworkTranscriptFromEnvironment
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-53QLWPZK.mjs";
|
|
13
13
|
|
|
14
14
|
// src/cli/commands/sessions.ts
|
|
15
15
|
import {
|
|
@@ -1,9 +1,9 @@
|
|
|
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 _chunkGUIYFOG2js = require('./chunk-GUIYFOG2.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkI2JIWKCQjs = require('./chunk-I2JIWKCQ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,17 +14,17 @@ var _chunkGJOGFWX3js = require('./chunk-GJOGFWX3.js');
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkIIWXBRDKjs = require('./chunk-IIWXBRDK.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkCXZLHBNKjs = require('./chunk-CXZLHBNK.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
|
-
var
|
|
27
|
+
var _chunk2OG2KBYJjs = require('./chunk-2OG2KBYJ.js');
|
|
28
28
|
|
|
29
29
|
// src/compat.ts
|
|
30
30
|
var _crypto = require('crypto');
|
|
@@ -59,7 +59,7 @@ function shouldSkipCompatibilityCheck() {
|
|
|
59
59
|
return value === "1" || value === "true" || value === "yes";
|
|
60
60
|
}
|
|
61
61
|
function sdkCompatibilityCachePath(baseUrl, homeDir = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.HOME, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || _os.homedir.call(void 0, )) {
|
|
62
|
-
return _path.join.call(void 0,
|
|
62
|
+
return _path.join.call(void 0, _chunkIIWXBRDKjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
|
|
63
63
|
}
|
|
64
64
|
function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'access', _11 => _11.env, 'access', _12 => _12.HOME, 'optionalAccess', _13 => _13.trim, 'call', _14 => _14()]) || _os.homedir.call(void 0, )) {
|
|
65
65
|
return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
|
|
@@ -67,9 +67,9 @@ function legacySdkCompatibilityCachePath(homeDir = _optionalChain([process, 'acc
|
|
|
67
67
|
function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
68
68
|
return JSON.stringify({
|
|
69
69
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
70
|
-
version:
|
|
71
|
-
apiContract:
|
|
72
|
-
apiMajor:
|
|
70
|
+
version: _chunkCXZLHBNKjs.SDK_VERSION,
|
|
71
|
+
apiContract: _chunkCXZLHBNKjs.SDK_API_CONTRACT,
|
|
72
|
+
apiMajor: _chunkCXZLHBNKjs.SDK_API_MAJOR,
|
|
73
73
|
command: _optionalChain([command, 'optionalAccess', _15 => _15.trim, 'call', _16 => _16()]) || null,
|
|
74
74
|
skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
|
|
75
75
|
});
|
|
@@ -77,8 +77,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
|
|
|
77
77
|
function legacyCompatibilityCacheKey(baseUrl, command) {
|
|
78
78
|
return JSON.stringify({
|
|
79
79
|
baseUrl: baseUrl.replace(/\/$/, ""),
|
|
80
|
-
version:
|
|
81
|
-
apiContract:
|
|
80
|
+
version: _chunkCXZLHBNKjs.SDK_VERSION,
|
|
81
|
+
apiContract: _chunkCXZLHBNKjs.SDK_API_CONTRACT,
|
|
82
82
|
command: _optionalChain([command, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]) || null
|
|
83
83
|
});
|
|
84
84
|
}
|
|
@@ -103,7 +103,7 @@ function isSavedWithin(savedAt, windowMs, now) {
|
|
|
103
103
|
}
|
|
104
104
|
var UPDATE_ADVISORY_INTERVAL_MS = 24 * 60 * 60 * 1e3;
|
|
105
105
|
function claimUpdateAdvisory(baseUrl, now = Date.now()) {
|
|
106
|
-
const path = _path.join.call(void 0,
|
|
106
|
+
const path = _path.join.call(void 0, _chunkIIWXBRDKjs.sdkCliStateDirPath.call(void 0, baseUrl), "update-advisory.json");
|
|
107
107
|
try {
|
|
108
108
|
const { shownAt } = JSON.parse(_fs.readFileSync.call(void 0, path, "utf8"));
|
|
109
109
|
if (isSavedWithin(shownAt, UPDATE_ADVISORY_INTERVAL_MS, now)) return false;
|
|
@@ -190,7 +190,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
190
190
|
);
|
|
191
191
|
try {
|
|
192
192
|
const url = new URL("/api/v2/sdk/compat", baseUrl);
|
|
193
|
-
url.searchParams.set("version",
|
|
193
|
+
url.searchParams.set("version", _chunkCXZLHBNKjs.SDK_VERSION);
|
|
194
194
|
if (_optionalChain([options, 'access', _34 => _34.command, 'optionalAccess', _35 => _35.trim, 'call', _36 => _36()])) {
|
|
195
195
|
url.searchParams.set("command", options.command.trim());
|
|
196
196
|
}
|
|
@@ -198,7 +198,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
198
198
|
url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
|
|
199
199
|
url.searchParams.set(
|
|
200
200
|
"skills_cli_capability",
|
|
201
|
-
String(
|
|
201
|
+
String(_chunk2OG2KBYJjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
|
|
202
202
|
);
|
|
203
203
|
}
|
|
204
204
|
if (options.catalog) {
|
|
@@ -210,14 +210,14 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
|
|
|
210
210
|
const response = await fetch(url, {
|
|
211
211
|
method: "GET",
|
|
212
212
|
headers: {
|
|
213
|
-
...
|
|
214
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
215
|
-
"X-Deepline-SDK-Version":
|
|
216
|
-
"X-Deepline-API-Major": String(
|
|
217
|
-
"X-Deepline-API-Contract":
|
|
213
|
+
..._chunkCXZLHBNKjs.deploymentProtectionHeaders.call(void 0, ),
|
|
214
|
+
"User-Agent": `deepline-ts-sdk/${_chunkCXZLHBNKjs.SDK_VERSION}`,
|
|
215
|
+
"X-Deepline-SDK-Version": _chunkCXZLHBNKjs.SDK_VERSION,
|
|
216
|
+
"X-Deepline-API-Major": String(_chunkCXZLHBNKjs.SDK_API_MAJOR),
|
|
217
|
+
"X-Deepline-API-Contract": _chunkCXZLHBNKjs.SDK_API_CONTRACT,
|
|
218
218
|
"X-Deepline-CLI-Update-Preferences": "1",
|
|
219
219
|
"X-Deepline-CLI-Auto-Update-Capability": SDK_CLI_AUTO_UPDATE_CAPABILITY,
|
|
220
|
-
...options.catalog ? { Authorization: `Bearer ${
|
|
220
|
+
...options.catalog ? { Authorization: `Bearer ${_chunkIIWXBRDKjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {},
|
|
221
221
|
..._optionalChain([options, 'access', _37 => _37.catalog, 'optionalAccess', _38 => _38.cliInvocationId]) ? { "X-Deepline-CLI-Invocation-ID": options.catalog.cliInvocationId } : {}
|
|
222
222
|
},
|
|
223
223
|
signal: controller.signal
|
|
@@ -386,7 +386,7 @@ function skillsSourceUrl(baseUrl) {
|
|
|
386
386
|
function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
|
|
387
387
|
const skillNames = Array.isArray(skillName) ? skillName : [skillName];
|
|
388
388
|
const [firstSkillName, ...extraSkillNames] = skillNames;
|
|
389
|
-
const agents = _nullishCoalesce(options.agents, () => (
|
|
389
|
+
const agents = _nullishCoalesce(options.agents, () => ( _chunkIIWXBRDKjs.DEFAULT_SKILL_AGENTS));
|
|
390
390
|
const values = {
|
|
391
391
|
skills_index_url: skillsIndexUrl(baseUrl),
|
|
392
392
|
skills_source_url: skillsSourceUrl(baseUrl),
|
|
@@ -514,25 +514,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
|
|
|
514
514
|
var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
|
|
515
515
|
var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
|
|
516
516
|
function shouldSkipSkillsSync() {
|
|
517
|
-
if (
|
|
517
|
+
if (_chunkCXZLHBNKjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
|
|
518
518
|
return true;
|
|
519
519
|
}
|
|
520
520
|
const value = _optionalChain([process, 'access', _57 => _57.env, 'access', _58 => _58.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _59 => _59.trim, 'call', _60 => _60(), 'access', _61 => _61.toLowerCase, 'call', _62 => _62()]);
|
|
521
521
|
return value === "1" || value === "true" || value === "yes" || value === "on" || !isCliSkillsSyncEnabled();
|
|
522
522
|
}
|
|
523
523
|
function unavailableSkillsNoticePath(baseUrl) {
|
|
524
|
-
return _path.join.call(void 0,
|
|
524
|
+
return _path.join.call(void 0, _chunkIIWXBRDKjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
|
|
525
525
|
}
|
|
526
526
|
var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
|
|
527
527
|
var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
|
|
528
|
-
var agentLeaseSegment =
|
|
528
|
+
var agentLeaseSegment = _chunkIIWXBRDKjs.skillsAgentPathSegment;
|
|
529
529
|
function sortedLeaseAgents(agents) {
|
|
530
|
-
const expanded = agents.includes("*") ? [...agents, ...
|
|
530
|
+
const expanded = agents.includes("*") ? [...agents, ..._chunkIIWXBRDKjs.KNOWN_SKILL_AGENTS] : agents;
|
|
531
531
|
return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
|
|
532
532
|
}
|
|
533
533
|
function inProgressSkillsSyncPath(baseUrl, agent) {
|
|
534
534
|
return _path.join.call(void 0,
|
|
535
|
-
|
|
535
|
+
_chunkIIWXBRDKjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
536
536
|
`skills-sync-in-progress-${agentLeaseSegment(agent)}`
|
|
537
537
|
);
|
|
538
538
|
}
|
|
@@ -691,7 +691,7 @@ var SkillsStateUnavailableError = class extends Error {
|
|
|
691
691
|
constructor(baseUrl, error) {
|
|
692
692
|
const detail = error instanceof Error ? error.message : String(error);
|
|
693
693
|
super(
|
|
694
|
-
`Could not save skills state in ${
|
|
694
|
+
`Could not save skills state in ${_chunkIIWXBRDKjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
|
|
695
695
|
);
|
|
696
696
|
this.name = "SkillsStateUnavailableError";
|
|
697
697
|
}
|
|
@@ -776,7 +776,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
|
|
|
776
776
|
}
|
|
777
777
|
function deferredSkillsNoticePath(baseUrl, agents) {
|
|
778
778
|
return _path.join.call(void 0,
|
|
779
|
-
|
|
779
|
+
_chunkIIWXBRDKjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
780
780
|
`skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
|
|
781
781
|
);
|
|
782
782
|
}
|
|
@@ -810,8 +810,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
|
|
|
810
810
|
if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
|
|
811
811
|
}
|
|
812
812
|
function flushDeferredSkillsSyncNotices(baseUrl) {
|
|
813
|
-
if (shouldSkipSkillsSync() ||
|
|
814
|
-
const agents =
|
|
813
|
+
if (shouldSkipSkillsSync() || _chunkIIWXBRDKjs.hasActivePluginSkills.call(void 0, )) return;
|
|
814
|
+
const agents = _chunkIIWXBRDKjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
815
815
|
if (agents.length === 0) return;
|
|
816
816
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
817
817
|
}
|
|
@@ -833,7 +833,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError, sidecarPath) {
|
|
|
833
833
|
}
|
|
834
834
|
function failedSkillsSyncPath(baseUrl, agents) {
|
|
835
835
|
return _path.join.call(void 0,
|
|
836
|
-
|
|
836
|
+
_chunkIIWXBRDKjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
837
837
|
`skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
|
|
838
838
|
);
|
|
839
839
|
}
|
|
@@ -862,7 +862,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
|
|
|
862
862
|
if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
|
|
863
863
|
writeMarkedSkillsSyncVersion(path, remoteVersion);
|
|
864
864
|
const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
|
|
865
|
-
const manualCommand = _optionalChain([probes, 'optionalAccess', _66 => _66.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames,
|
|
865
|
+
const manualCommand = _optionalChain([probes, 'optionalAccess', _66 => _66.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkIIWXBRDKjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
|
|
866
866
|
const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _67 => _67.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
|
|
867
867
|
notice(
|
|
868
868
|
`Deepline agent skills are out of date, but ${explanation} To install manually, run:
|
|
@@ -950,7 +950,7 @@ function buildSdkSkillNames(v1SkillNames2) {
|
|
|
950
950
|
return sortedUniqueSkillNames(v1SkillNames2);
|
|
951
951
|
}
|
|
952
952
|
function isDefaultAgentSet(agents) {
|
|
953
|
-
return agents.length ===
|
|
953
|
+
return agents.length === _chunkIIWXBRDKjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkIIWXBRDKjs.DEFAULT_SKILL_AGENTS[index]);
|
|
954
954
|
}
|
|
955
955
|
function safeSkillFilePath(value) {
|
|
956
956
|
if (typeof value !== "string" || !value) return false;
|
|
@@ -1107,10 +1107,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
|
|
|
1107
1107
|
method: "POST",
|
|
1108
1108
|
headers: { "Content-Type": "application/json" },
|
|
1109
1109
|
body: JSON.stringify({
|
|
1110
|
-
sdk_cli: { version:
|
|
1110
|
+
sdk_cli: { version: _chunkCXZLHBNKjs.SDK_VERSION },
|
|
1111
1111
|
skills: {
|
|
1112
1112
|
version: localVersion,
|
|
1113
|
-
capability:
|
|
1113
|
+
capability: _chunk2OG2KBYJjs.SDK_RELEASE.packageCapabilities.skillsGuidance
|
|
1114
1114
|
}
|
|
1115
1115
|
}),
|
|
1116
1116
|
signal: controller.signal
|
|
@@ -1149,7 +1149,7 @@ function probeInstallers(timeoutMs) {
|
|
|
1149
1149
|
}
|
|
1150
1150
|
function noInstallerProbePath(baseUrl) {
|
|
1151
1151
|
return _path.join.call(void 0,
|
|
1152
|
-
|
|
1152
|
+
_chunkIIWXBRDKjs.sdkCliStateDirPath.call(void 0, baseUrl),
|
|
1153
1153
|
"skills-sync-no-installer-unknown.json"
|
|
1154
1154
|
);
|
|
1155
1155
|
}
|
|
@@ -1228,7 +1228,7 @@ function temporarySkillsSyncSkipCommand() {
|
|
|
1228
1228
|
function resolveSkillsInstallSpawn(install, platform = process.platform) {
|
|
1229
1229
|
return resolveShellSpawn(install.command, install.args, platform);
|
|
1230
1230
|
}
|
|
1231
|
-
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents =
|
|
1231
|
+
function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkIIWXBRDKjs.DEFAULT_SKILL_AGENTS, knownProbes) {
|
|
1232
1232
|
const commands = [];
|
|
1233
1233
|
const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
|
|
1234
1234
|
if (probes.bunx === "available") {
|
|
@@ -1370,7 +1370,7 @@ function runLegacySkillsCleanup(agents) {
|
|
|
1370
1370
|
}
|
|
1371
1371
|
}
|
|
1372
1372
|
function writeSdkSkillsStatusLine(line) {
|
|
1373
|
-
const progress =
|
|
1373
|
+
const progress = _chunkGUIYFOG2js.getActiveCliProgress.call(void 0, );
|
|
1374
1374
|
if (progress) {
|
|
1375
1375
|
progress.writeLine(line);
|
|
1376
1376
|
return;
|
|
@@ -1381,11 +1381,11 @@ function writeSdkSkillsStatusLine(line) {
|
|
|
1381
1381
|
async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
1382
1382
|
const skip = shouldSkipSkillsSync();
|
|
1383
1383
|
if (skip && !options.claim) return;
|
|
1384
|
-
const usingPluginSkills =
|
|
1384
|
+
const usingPluginSkills = _chunkIIWXBRDKjs.hasActivePluginSkills.call(void 0, );
|
|
1385
1385
|
if (usingPluginSkills) {
|
|
1386
1386
|
return;
|
|
1387
1387
|
}
|
|
1388
|
-
const agents =
|
|
1388
|
+
const agents = _chunkIIWXBRDKjs.resolveAutoSyncSkillAgents.call(void 0, );
|
|
1389
1389
|
if (options.mode === "detached" && agents.length > 0) {
|
|
1390
1390
|
flushDeferredSkillsNotices(baseUrl, agents);
|
|
1391
1391
|
}
|
|
@@ -1422,7 +1422,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
|
|
|
1422
1422
|
return;
|
|
1423
1423
|
}
|
|
1424
1424
|
try {
|
|
1425
|
-
const localVersion =
|
|
1425
|
+
const localVersion = _chunkIIWXBRDKjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
|
|
1426
1426
|
const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
|
|
1427
1427
|
needsUpdate: options.update.needs_update,
|
|
1428
1428
|
remoteVersion: options.update.remote.version
|
|
@@ -1544,7 +1544,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1544
1544
|
update.remoteVersion,
|
|
1545
1545
|
agents
|
|
1546
1546
|
);
|
|
1547
|
-
void
|
|
1547
|
+
void _chunkI2JIWKCQjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
|
|
1548
1548
|
baseUrl,
|
|
1549
1549
|
remoteSkillsVersion: update.remoteVersion,
|
|
1550
1550
|
agents,
|
|
@@ -1575,7 +1575,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1575
1575
|
notice(
|
|
1576
1576
|
publishedFailure ? `Deepline could not verify the published skills: ${detail}. The local version remains stale; it will retry automatically on a later command.` : `Deepline agent-skills refresh could not verify the five installed targets: ${detail}. The local version remains stale. After fixing the install, remove ${failedSkillsSyncPath(baseUrl, agents)} to retry this version automatically.`
|
|
1577
1577
|
);
|
|
1578
|
-
void
|
|
1578
|
+
void _chunkI2JIWKCQjs.maybeReportAutomaticSkillsSyncFailure.call(void 0, {
|
|
1579
1579
|
baseUrl,
|
|
1580
1580
|
remoteSkillsVersion: update.remoteVersion,
|
|
1581
1581
|
agents,
|
|
@@ -1588,7 +1588,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
|
|
|
1588
1588
|
}
|
|
1589
1589
|
}
|
|
1590
1590
|
runLegacySkillsCleanup(agents);
|
|
1591
|
-
if (!
|
|
1591
|
+
if (!_chunkIIWXBRDKjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
|
|
1592
1592
|
notice(
|
|
1593
1593
|
"Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
|
|
1594
1594
|
);
|
|
@@ -1,15 +1,15 @@
|
|
|
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 _chunkT3RDWG5Jjs = require('./chunk-T3RDWG5J.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkI2JIWKCQjs = require('./chunk-I2JIWKCQ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkCXZLHBNKjs = require('./chunk-CXZLHBNK.js');
|
|
13
13
|
|
|
14
14
|
// src/cli/commands/sessions.ts
|
|
15
15
|
|
|
@@ -55,7 +55,7 @@ function codexSessionsRoot() {
|
|
|
55
55
|
}
|
|
56
56
|
function listClaudeSessionFiles() {
|
|
57
57
|
const files = [];
|
|
58
|
-
for (const root of
|
|
58
|
+
for (const root of _chunkCXZLHBNKjs.claudeProjectsRoots.call(void 0, )) {
|
|
59
59
|
files.push(...listClaudeSessionFilesIn(root));
|
|
60
60
|
}
|
|
61
61
|
return files;
|
|
@@ -147,7 +147,7 @@ function currentSessionFile(agent) {
|
|
|
147
147
|
const newestFirst = listSessionFiles(agent).sort(
|
|
148
148
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
149
149
|
);
|
|
150
|
-
const sessionId =
|
|
150
|
+
const sessionId = _chunkCXZLHBNKjs.agentSessionIdFromEnvironment.call(void 0,
|
|
151
151
|
process.env,
|
|
152
152
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
153
153
|
);
|
|
@@ -156,7 +156,7 @@ function currentSessionFile(agent) {
|
|
|
156
156
|
(candidate) => candidate.sessionId === sessionId
|
|
157
157
|
);
|
|
158
158
|
if (named) return named;
|
|
159
|
-
const cowork = agent === "codex" ? null :
|
|
159
|
+
const cowork = agent === "codex" ? null : _chunkCXZLHBNKjs.coworkTranscriptFromEnvironment.call(void 0, );
|
|
160
160
|
const coworkStat = cowork ? statIfReadable(cowork.filePath) : null;
|
|
161
161
|
if (cowork && coworkStat) {
|
|
162
162
|
return { agent: "claude", ...cowork, mtimeMs: coworkStat.mtimeMs };
|
|
@@ -166,7 +166,7 @@ function currentSessionFile(agent) {
|
|
|
166
166
|
), () => ( newestFirst[0])), () => ( null));
|
|
167
167
|
}
|
|
168
168
|
function feedbackAgentSessionId(agentRuntime) {
|
|
169
|
-
return _nullishCoalesce(
|
|
169
|
+
return _nullishCoalesce(_chunkCXZLHBNKjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunkCXZLHBNKjs.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
|
|
170
170
|
}
|
|
171
171
|
function sessionStartedInDirectory(candidate, cwd) {
|
|
172
172
|
if (candidate.agent === "claude") {
|
|
@@ -215,7 +215,7 @@ function readCodexSessionId(filePath) {
|
|
|
215
215
|
return null;
|
|
216
216
|
}
|
|
217
217
|
function sessionSearchDescription(agent) {
|
|
218
|
-
const claude =
|
|
218
|
+
const claude = _chunkCXZLHBNKjs.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
|
|
219
219
|
if (agent === "claude") return claude;
|
|
220
220
|
if (agent === "codex") return "~/.codex/sessions/**/*.jsonl";
|
|
221
221
|
return `${claude} or ~/.codex/sessions/**/*.jsonl`;
|
|
@@ -472,7 +472,7 @@ function buildSessionUploadContent(raw) {
|
|
|
472
472
|
return { encodedContent: encoded, needsChunking: true };
|
|
473
473
|
}
|
|
474
474
|
async function uploadPayload(path, payload) {
|
|
475
|
-
const { http } =
|
|
475
|
+
const { http } = _chunkI2JIWKCQjs.getAuthedHttpClient.call(void 0, );
|
|
476
476
|
return await http.post(path, payload);
|
|
477
477
|
}
|
|
478
478
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -550,7 +550,7 @@ async function uploadAgentSession(agentRuntime) {
|
|
|
550
550
|
return target.sessionId;
|
|
551
551
|
}
|
|
552
552
|
async function handleSessionsSend(options) {
|
|
553
|
-
if (
|
|
553
|
+
if (_chunkT3RDWG5Jjs.rejectRestrictedFeedback.call(void 0, options)) return;
|
|
554
554
|
const rating = parseSessionRating(options.rating);
|
|
555
555
|
if (options.file) {
|
|
556
556
|
const filePath = _path.resolve.call(void 0, options.file);
|
|
@@ -562,7 +562,7 @@ async function handleSessionsSend(options) {
|
|
|
562
562
|
filename: _path.basename.call(void 0, filePath),
|
|
563
563
|
...rating ? { rating } : {}
|
|
564
564
|
});
|
|
565
|
-
|
|
565
|
+
_chunkI2JIWKCQjs.printCommandEnvelope.call(void 0,
|
|
566
566
|
{
|
|
567
567
|
...response2,
|
|
568
568
|
ok: true,
|
|
@@ -594,7 +594,7 @@ async function handleSessionsSend(options) {
|
|
|
594
594
|
labeled: Boolean(_optionalChain([options, 'access', _27 => _27.label, 'optionalAccess', _28 => _28.length]))
|
|
595
595
|
});
|
|
596
596
|
const sessionIds = built.map((session) => session.sessionId);
|
|
597
|
-
|
|
597
|
+
_chunkI2JIWKCQjs.printCommandEnvelope.call(void 0,
|
|
598
598
|
{
|
|
599
599
|
...response,
|
|
600
600
|
ok: true,
|
|
@@ -702,7 +702,7 @@ ${refreshMeta}
|
|
|
702
702
|
</body>
|
|
703
703
|
</html>`;
|
|
704
704
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
705
|
-
|
|
705
|
+
_chunkI2JIWKCQjs.printCommandEnvelope.call(void 0,
|
|
706
706
|
{
|
|
707
707
|
ok: true,
|
|
708
708
|
file: outputPath,
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkJQWX377Pjs = require('./chunk-JQWX377P.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkI2JIWKCQjs = require('./chunk-I2JIWKCQ.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkIIWXBRDKjs = require('./chunk-IIWXBRDK.js');
|
|
16
16
|
|
|
17
17
|
// src/cli/commands/search.ts
|
|
18
18
|
var _commander = require('commander');
|
|
@@ -22,7 +22,7 @@ var _fs = require('fs');
|
|
|
22
22
|
var _path = require('path');
|
|
23
23
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
24
24
|
function lastSearchPath() {
|
|
25
|
-
return _path.join.call(void 0,
|
|
25
|
+
return _path.join.call(void 0, _chunkIIWXBRDKjs.sdkCliStateDirPath.call(void 0, _chunkIIWXBRDKjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
26
26
|
}
|
|
27
27
|
function rememberSearchRef(searchRef) {
|
|
28
28
|
writeSearchRefs({ searchRef });
|
|
@@ -132,9 +132,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
132
132
|
console.error("--summary-width must be an integer of at least 2.");
|
|
133
133
|
return 1;
|
|
134
134
|
}
|
|
135
|
-
const client = new (0,
|
|
135
|
+
const client = new (0, _chunkJQWX377Pjs.DeeplineClient)();
|
|
136
136
|
const json = options.json === true;
|
|
137
|
-
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
137
|
+
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-W7OCBYBU.js")));
|
|
138
138
|
const searches = [];
|
|
139
139
|
const chunks = [];
|
|
140
140
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -157,7 +157,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
157
157
|
const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
|
|
158
158
|
if (!multiple) {
|
|
159
159
|
if (searchRef) rememberSearchRef(searchRef);
|
|
160
|
-
|
|
160
|
+
_chunkI2JIWKCQjs.printCommandEnvelope.call(void 0, result, { json, text });
|
|
161
161
|
return 0;
|
|
162
162
|
}
|
|
163
163
|
searches.push({ ...result, query });
|
|
@@ -171,8 +171,8 @@ ${text}`);
|
|
|
171
171
|
}
|
|
172
172
|
} catch (error) {
|
|
173
173
|
if (!multiple) throw error;
|
|
174
|
-
const payload =
|
|
175
|
-
const queryExitCode = _nullishCoalesce(payload.exitCode, () => (
|
|
174
|
+
const payload = _chunkI2JIWKCQjs.errorToJsonPayload.call(void 0, error);
|
|
175
|
+
const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkI2JIWKCQjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
176
176
|
searches.push({ ...payload, query, exitCode: queryExitCode });
|
|
177
177
|
if (!json) {
|
|
178
178
|
console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
|
|
@@ -184,7 +184,7 @@ Search failed.
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
rememberSearchRefsByTool(refs);
|
|
187
|
-
|
|
187
|
+
_chunkI2JIWKCQjs.printCommandEnvelope.call(void 0,
|
|
188
188
|
{ searches },
|
|
189
189
|
{
|
|
190
190
|
json,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-TKGFHRHE.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QZ74ZC55.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -1,16 +1,16 @@
|
|
|
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 _chunkJQWX377Pjs = require('./chunk-JQWX377P.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkI2JIWKCQjs = require('./chunk-I2JIWKCQ.js');
|
|
7
7
|
|
|
8
8
|
// src/cli/commands/integration-commands.ts
|
|
9
9
|
var _commander = require('commander');
|
|
10
10
|
var _fs = require('fs');
|
|
11
11
|
var _path = require('path');
|
|
12
12
|
function printIntegrationResult(value, json, lines, nextCursor) {
|
|
13
|
-
|
|
13
|
+
_chunkI2JIWKCQjs.printCommandEnvelope.call(void 0,
|
|
14
14
|
{},
|
|
15
15
|
{
|
|
16
16
|
json: json || void 0,
|
|
@@ -26,7 +26,7 @@ function registerIntegrationBalanceCommand(parent, hidden = false) {
|
|
|
26
26
|
return parent.command("balance <provider>", { hidden }).description(
|
|
27
27
|
"Read a fresh balance using this workspace\u2019s own provider connection (LeadMagic)."
|
|
28
28
|
).option("--json", "Print the balance and observation timestamp as JSON").action(async (provider, options) => {
|
|
29
|
-
const balance = await new (0,
|
|
29
|
+
const balance = await new (0, _chunkJQWX377Pjs.DeeplineClient)().getIntegrationBalance(
|
|
30
30
|
provider
|
|
31
31
|
);
|
|
32
32
|
printIntegrationResult(balance, options.json, [
|
|
@@ -42,7 +42,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
|
|
|
42
42
|
"List teammates\u2019 personal connections for this provider"
|
|
43
43
|
).option("--cursor <cursor>", "Read the next page of members").action(
|
|
44
44
|
async (options) => {
|
|
45
|
-
const client = new (0,
|
|
45
|
+
const client = new (0, _chunkJQWX377Pjs.DeeplineClient)();
|
|
46
46
|
if (name === "list" && options.cursor && !options.members)
|
|
47
47
|
throw new Error(
|
|
48
48
|
"Use --cursor with --members to continue a member page."
|
|
@@ -86,7 +86,7 @@ function registerLegacyHubSpotMembersCommand(parent, hidden = false) {
|
|
|
86
86
|
return parent.command("hubspot-members", { hidden }).description(
|
|
87
87
|
"List personal HubSpot connection status for workspace members."
|
|
88
88
|
).option("--cursor <cursor>", "Read the next roster page").option("--json", "Print the roster page as JSON").action(async (options) => {
|
|
89
|
-
const page = await new (0,
|
|
89
|
+
const page = await new (0, _chunkJQWX377Pjs.DeeplineClient)().listPersonalHubSpotMembers(
|
|
90
90
|
options.cursor
|
|
91
91
|
);
|
|
92
92
|
const rows = page.members.map((member) => {
|
|
@@ -112,7 +112,7 @@ function registerLegacyWorkspaceConnectionCommand(parent, hidden = false) {
|
|
|
112
112
|
);
|
|
113
113
|
if (options.autoName && (action !== "connect" || options.name !== void 0))
|
|
114
114
|
throw new Error("Use --auto-name with connect and omit --name.");
|
|
115
|
-
const client = new (0,
|
|
115
|
+
const client = new (0, _chunkJQWX377Pjs.DeeplineClient)();
|
|
116
116
|
const { connections } = action === "connect" ? { connections: [] } : options.name ? await client.listWorkspaceConnectionInventory(provider) : await client.listWorkspaceIntegrationConnections();
|
|
117
117
|
const row = connections.find(
|
|
118
118
|
(connection) => connection.provider === provider && (!("type" in connection) || connection.type === "oauth") && (options.name === void 0 || "name" in connection && connection.name === options.name)
|
|
@@ -145,7 +145,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
|
|
|
145
145
|
"Print the proposed change without contacting Google or saving it"
|
|
146
146
|
).option("--json", "Print the result as JSON").action(
|
|
147
147
|
async (action, options) => {
|
|
148
|
-
const client = new (0,
|
|
148
|
+
const client = new (0, _chunkJQWX377Pjs.DeeplineClient)();
|
|
149
149
|
if (action === "list") {
|
|
150
150
|
const inventory = await client.listCalendarAvailabilityConnections();
|
|
151
151
|
const approvals = _optionalChain([inventory, 'access', _3 => _3.approvals, 'optionalAccess', _4 => _4.length]) ? inventory.approvals.map(
|
|
@@ -295,7 +295,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
|
|
|
295
295
|
}
|
|
296
296
|
function registerLegacyAvailabilityCalendarsCommand(parent, hidden = false) {
|
|
297
297
|
return parent.command("availability-calendars", { hidden }).description("Calendar discovery compatibility command for the pilot.").option("--cursor <cursor>", "Legacy calendar page cursor").option("--json", "Print the response as JSON").action(async (options) => {
|
|
298
|
-
const page = await new (0,
|
|
298
|
+
const page = await new (0, _chunkJQWX377Pjs.DeeplineClient)().listAvailabilityCalendars(
|
|
299
299
|
options.cursor
|
|
300
300
|
);
|
|
301
301
|
printIntegrationResult(page, options.json, [
|
|
@@ -339,7 +339,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
339
339
|
printSetupPlan({ provider, action: "connect_link" }, options.json);
|
|
340
340
|
return;
|
|
341
341
|
}
|
|
342
|
-
const link = await new (0,
|
|
342
|
+
const link = await new (0, _chunkJQWX377Pjs.DeeplineClient)().getIntegrationConnectLink(
|
|
343
343
|
provider
|
|
344
344
|
);
|
|
345
345
|
printIntegrationResult(link, options.json, [link.connect_url]);
|
|
@@ -366,7 +366,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
366
366
|
);
|
|
367
367
|
return;
|
|
368
368
|
}
|
|
369
|
-
const result2 = await new (0,
|
|
369
|
+
const result2 = await new (0, _chunkJQWX377Pjs.DeeplineClient)().startIntegrationOAuth(
|
|
370
370
|
provider,
|
|
371
371
|
{
|
|
372
372
|
...options.preset !== void 0 ? { preset: options.preset } : {},
|
|
@@ -416,7 +416,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
416
416
|
"--credentials-file must contain a nonempty JSON object of string credential values."
|
|
417
417
|
);
|
|
418
418
|
}
|
|
419
|
-
const result = await new (0,
|
|
419
|
+
const result = await new (0, _chunkJQWX377Pjs.DeeplineClient)().setIntegrationCredentials(
|
|
420
420
|
provider,
|
|
421
421
|
credentials,
|
|
422
422
|
{ expectedConnectionId: options.expectedConnectionId }
|
|
@@ -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.548",
|
|
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."
|