deepline 0.3.576 → 0.3.577
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/cli/{agents-BLJR2Y3X.mjs → agents-SUJRATC2.mjs} +27 -10
- package/dist/cli/{agents-CJQ7KBFT.js → agents-ZIGK3FQ2.js} +54 -37
- package/dist/cli/auth-A5U6GVCF.js +44 -0
- package/dist/cli/{auth-SLZIRCPE.mjs → auth-TRKPRZK6.mjs} +5 -5
- package/dist/cli/{billing-IECMVARO.js → billing-6RAF4DQY.js} +102 -102
- package/dist/cli/{billing-6Q4SK5KF.mjs → billing-WPQT3QRS.mjs} +9 -9
- package/dist/cli/{chunk-L6H72AIX.js → chunk-2NFDB6CL.js} +2 -2
- package/dist/cli/{chunk-X5V6S5KI.mjs → chunk-425SUSDJ.mjs} +5 -5
- package/dist/cli/{chunk-66K7F7LR.mjs → chunk-4ANO4DM5.mjs} +1 -1
- package/dist/cli/{chunk-EQO77FQZ.js → chunk-772IV64Y.js} +5 -5
- package/dist/cli/{chunk-TZHS2W5Z.mjs → chunk-APJ6YIYW.mjs} +1 -1
- package/dist/cli/{chunk-6RY5COUY.js → chunk-APOWCBO7.js} +23 -23
- package/dist/cli/{chunk-QCD7BQ5Z.mjs → chunk-ATW77ZBL.mjs} +2 -2
- package/dist/cli/{chunk-7DI34I73.mjs → chunk-CCGFSELM.mjs} +3 -3
- package/dist/cli/{chunk-ZRC52APB.mjs → chunk-CWHXE6HJ.mjs} +1 -1
- package/dist/cli/{chunk-4KIIXV5Z.js → chunk-CZF2LKIT.js} +16 -16
- package/dist/cli/{chunk-5VABOJ4M.mjs → chunk-DA5C5WOI.mjs} +2 -2
- package/dist/cli/{chunk-45POZK3F.js → chunk-DJP7CJQC.js} +3 -3
- package/dist/cli/{chunk-WPGZ6V36.js → chunk-EJN43WGD.js} +48 -48
- package/dist/cli/{chunk-ANPHEXTT.js → chunk-EKZ6JD6K.js} +9 -9
- package/dist/cli/{chunk-OXRG325T.js → chunk-EV47DV25.js} +41 -41
- package/dist/cli/{chunk-XJNJ3BWU.mjs → chunk-FHYNK7GL.mjs} +1 -1
- package/dist/cli/{chunk-SBZSJQEI.js → chunk-FRYLXDNP.js} +53 -53
- package/dist/cli/{chunk-JSIOLCTK.js → chunk-FXN5WSTY.js} +20 -20
- package/dist/cli/{chunk-GI57Q7JU.mjs → chunk-GFWVBXAK.mjs} +2 -2
- package/dist/cli/{chunk-OMVBBAQP.mjs → chunk-H6NF5SNY.mjs} +2 -2
- package/dist/cli/{chunk-S4IW4NAI.mjs → chunk-I44Y4MPK.mjs} +1 -1
- package/dist/cli/{chunk-CUIFDMNP.mjs → chunk-ID5WQZ2H.mjs} +1 -1
- package/dist/cli/{chunk-GZ7KYGYE.js → chunk-ITK5TGQ7.js} +15 -15
- package/dist/cli/{chunk-36254433.js → chunk-JHQ7FORY.js} +3 -3
- package/dist/cli/{chunk-Y4A6Y5EY.js → chunk-JWLV3XRF.js} +7 -7
- package/dist/cli/{chunk-MXPCTF57.js → chunk-KVDIN2YW.js} +11 -0
- package/dist/cli/{chunk-YHM64N5C.mjs → chunk-LUQMTNFB.mjs} +1 -1
- package/dist/cli/{chunk-ZIGMC2X4.mjs → chunk-LXM36EXW.mjs} +11 -11
- package/dist/cli/{chunk-KQTZO6NT.mjs → chunk-MDP3CNDM.mjs} +2 -2
- package/dist/cli/{chunk-F4H26PP6.js → chunk-MOWABWHT.js} +100 -100
- package/dist/cli/{chunk-DGY4EYIX.js → chunk-MTHAVEQN.js} +5 -5
- package/dist/cli/{chunk-LKC7PHDX.mjs → chunk-MTM6WNPP.mjs} +4 -4
- package/dist/cli/{chunk-PU5VCDCJ.mjs → chunk-MVCKEPWF.mjs} +5 -5
- package/dist/cli/{chunk-AUR24RQB.mjs → chunk-N6EU2FRF.mjs} +2 -2
- package/dist/cli/{chunk-HE53AI2E.mjs → chunk-NDMKFA6W.mjs} +3 -3
- package/dist/cli/{chunk-M23G33MH.js → chunk-NMSDMXYS.js} +2 -2
- package/dist/cli/{chunk-NQFZ7FYN.js → chunk-NRBIYZUG.js} +10 -10
- package/dist/cli/{chunk-BRPUB6UA.js → chunk-NVJGVNEN.js} +5 -5
- package/dist/cli/{chunk-JPFAD6G6.mjs → chunk-O35BHZLQ.mjs} +2 -2
- package/dist/cli/{chunk-E4M4QZBP.js → chunk-OBZB4J7B.js} +1 -1
- package/dist/cli/{chunk-2UHEJPSS.mjs → chunk-OQQDNJ2D.mjs} +5 -5
- package/dist/cli/{chunk-AZFSCPYK.mjs → chunk-ORLJIJVX.mjs} +11 -0
- package/dist/cli/{chunk-SY3OKOI5.mjs → chunk-Q3WDT3YA.mjs} +1 -1
- package/dist/cli/{chunk-WDWV77SJ.js → chunk-QXAPAHIG.js} +13 -13
- package/dist/cli/{chunk-MDJ4LPQ5.js → chunk-RSZSKTRC.js} +4 -4
- package/dist/cli/{chunk-6JQZC6HX.js → chunk-RVICQWXU.js} +20 -20
- package/dist/cli/{chunk-D5LWYP2H.mjs → chunk-U6Y4HX6J.mjs} +3 -3
- package/dist/cli/{chunk-UD6M2ZTY.js → chunk-V5SF5CJ7.js} +2 -2
- package/dist/cli/{chunk-ZYN6S6G2.mjs → chunk-WP4Q5PTK.mjs} +4 -4
- package/dist/cli/{chunk-PYFMNPTA.js → chunk-X5ZE7K4J.js} +8 -8
- package/dist/cli/{chunk-UGIH4462.mjs → chunk-X7Y4T7CV.mjs} +5 -5
- package/dist/cli/{chunk-R5NKLZL2.mjs → chunk-XQTJET2Y.mjs} +1 -1
- package/dist/cli/{chunk-HHMO3CON.js → chunk-Y37JQZBP.js} +6 -6
- package/dist/cli/{chunk-V25CXBR2.js → chunk-ZHJIDDYR.js} +26 -26
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{concurrent-runs-help-H3SA7J6H.mjs → concurrent-runs-help-6CGXMTFQ.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-VJDPVGXM.js +22 -0
- package/dist/cli/{csv-6DEKR3QQ.js → csv-7UZT2LGE.js} +13 -13
- package/dist/cli/{csv-ICXI7JAS.mjs → csv-L7P6PC6I.mjs} +4 -4
- package/dist/cli/{db-VI7T5E6O.mjs → db-4OOEC5KV.mjs} +6 -6
- package/dist/cli/{db-AG7INMLP.js → db-7KETOIZY.js} +27 -27
- package/dist/cli/{describe-S6NFWWGK.mjs → describe-M6HEFS46.mjs} +18 -18
- package/dist/cli/describe-RLWJYZIR.js +50 -0
- package/dist/cli/{executions-MK7H4Q2H.mjs → executions-U27R2LY4.mjs} +6 -6
- package/dist/cli/{executions-M5R5QHIA.js → executions-UIR6RQFM.js} +8 -8
- package/dist/cli/{feedback-L3L4FEQL.js → feedback-CQ5FUE4T.js} +14 -14
- package/dist/cli/{feedback-ZHATL2XF.mjs → feedback-UUUISTGQ.mjs} +6 -6
- package/dist/cli/{git-W5DHNH2Q.mjs → git-DTILSRIQ.mjs} +5 -5
- package/dist/cli/git-ZGDD3BVX.js +26 -0
- package/dist/cli/index.js +148 -148
- package/dist/cli/index.mjs +47 -47
- package/dist/cli/{integrations-IBWNO3YP.js → integrations-ABBLLEJH.js} +29 -29
- package/dist/cli/{integrations-73YSN2LI.mjs → integrations-NNACG3HD.mjs} +7 -7
- package/dist/cli/{legacy-noops-AE6DBYJM.js → legacy-noops-3JLS5OD7.js} +9 -9
- package/dist/cli/{legacy-noops-4LFZJTDX.mjs → legacy-noops-KQW7AIYU.mjs} +6 -6
- package/dist/cli/{mcp-E6PTSNDE.mjs → mcp-7NHGPYZH.mjs} +4 -4
- package/dist/cli/{mcp-BKL6M6OI.js → mcp-JPBFKR26.js} +24 -24
- package/dist/cli/{monitors-SW7ZCPPT.js → monitors-J6HK5KCN.js} +100 -100
- package/dist/cli/{monitors-MXJ27KQK.mjs → monitors-JOE2DALW.mjs} +7 -7
- package/dist/cli/{org-HYAJ2MIK.mjs → org-VZZ4LN4O.mjs} +6 -6
- package/dist/cli/{org-XJ44KZ5I.js → org-WFZFQIXQ.js} +121 -121
- package/dist/cli/{outcomes-PUMAXRGD.mjs → outcomes-H2WEZYNT.mjs} +6 -6
- package/dist/cli/{outcomes-PTXGG4BZ.js → outcomes-RZWL47BJ.js} +14 -14
- package/dist/cli/{play-EPDZ3GDV.js → play-2ZEBUF5T.js} +336 -336
- package/dist/cli/{play-QN3X6IAE.mjs → play-KMWA7GVN.mjs} +19 -19
- package/dist/cli/{providers-JIN5UQ7Z.mjs → providers-2BIA3OWA.mjs} +6 -6
- package/dist/cli/{providers-GNJFGNDH.js → providers-57AZWFSW.js} +9 -9
- package/dist/cli/{quickstart-YH6NNC5I.js → quickstart-EYJFERQO.js} +6 -6
- package/dist/cli/{quickstart-4EBFHGB7.mjs → quickstart-NSDM2RXV.mjs} +4 -4
- package/dist/cli/{run-4DRF7KQJ.js → run-BW62DZGQ.js} +44 -44
- package/dist/cli/{run-5467KBCP.mjs → run-X6H5SCEE.mjs} +23 -23
- package/dist/cli/{search-ZERTOGH6.mjs → search-2VN74P5N.mjs} +7 -7
- package/dist/cli/search-HYRDZVPQ.js +32 -0
- package/dist/cli/{search-output-OMNZN2LP.js → search-output-SFWQVBYU.js} +6 -6
- package/dist/cli/{search-output-OAVJXRFO.mjs → search-output-VN7XOZEQ.mjs} +4 -4
- package/dist/cli/{secrets-KAVDYB4P.mjs → secrets-4M26N436.mjs} +6 -6
- package/dist/cli/{secrets-7XK2BGYX.js → secrets-OIPKG2H7.js} +15 -15
- package/dist/cli/sessions-5P2KZOQE.js +23 -0
- package/dist/cli/{sessions-TNPI6XWB.mjs → sessions-SYFH23L3.mjs} +6 -6
- package/dist/cli/{settings-KUABXRAJ.mjs → settings-4HPF3T4P.mjs} +12 -12
- package/dist/cli/{settings-RQ3Z3JCM.js → settings-5NB4HZYL.js} +85 -85
- package/dist/cli/{setup-6IX6BSS7.mjs → setup-CI74F6CL.mjs} +9 -9
- package/dist/cli/{setup-TDOWNKYN.js → setup-JV3F5C7P.js} +49 -49
- package/dist/cli/{skills-Z6NBJ4KP.mjs → skills-76CM4GHO.mjs} +7 -7
- package/dist/cli/skills-PJ5EL32L.js +37 -0
- package/dist/cli/{tools-LQKFWK7J.mjs → tools-SVGLDWOC.mjs} +17 -17
- package/dist/cli/tools-Y5ID2SPK.js +57 -0
- package/dist/cli/update-FSUMCMNZ.js +37 -0
- package/dist/cli/{update-RUB4EIKW.mjs → update-KPMDOZRX.mjs} +9 -9
- package/dist/cli/{views-D7WY5QPR.mjs → views-KW54SAES.mjs} +6 -6
- package/dist/cli/{views-FFLXLAGC.js → views-R37NWN6J.js} +21 -21
- package/dist/cli/{workflow-BV2OTEQD.mjs → workflow-3MIRQV4Q.mjs} +7 -7
- package/dist/cli/{workflow-QW7QVODA.js → workflow-BKRKUNYS.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +116 -116
- 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-GSDYP4ZN.js +0 -44
- package/dist/cli/concurrent-runs-help-PB7GT6F2.js +0 -22
- package/dist/cli/describe-LMHIG3DP.js +0 -50
- package/dist/cli/git-WYNCLDHD.js +0 -26
- package/dist/cli/search-B2KCWPUV.js +0 -32
- package/dist/cli/sessions-PUQURPPC.js +0 -23
- package/dist/cli/skills-AACRY2TV.js +0 -37
- package/dist/cli/tools-OTYA4722.js +0 -57
- package/dist/cli/update-JTGMI6OJ.js +0 -37
|
@@ -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(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkX5ZE7K4Jjs = require('./chunk-X5ZE7K4J.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkJHQ7FORYjs = require('./chunk-JHQ7FORY.js');
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
|
|
|
137
137
|
|
|
138
138
|
// src/plays/client.ts
|
|
139
139
|
function createPlayClient(options) {
|
|
140
|
-
const config =
|
|
141
|
-
return new (0,
|
|
142
|
-
new (0,
|
|
140
|
+
const config = _chunkJHQ7FORYjs.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunkX5ZE7K4Jjs.PlayClient)(
|
|
142
|
+
new (0, _chunkJHQ7FORYjs.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ATW77ZBL.mjs";
|
|
7
7
|
import {
|
|
8
8
|
errorToJsonPayload,
|
|
9
9
|
printCommandEnvelope,
|
|
10
10
|
resolveSdkCliFailureExitCode
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-O35BHZLQ.mjs";
|
|
12
12
|
import {
|
|
13
13
|
resolveConfig,
|
|
14
14
|
sdkCliStateDirPath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-CWHXE6HJ.mjs";
|
|
16
16
|
|
|
17
17
|
// src/cli/commands/search.ts
|
|
18
18
|
import { Option } from "commander";
|
|
@@ -134,7 +134,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
134
134
|
}
|
|
135
135
|
const client = new DeeplineClient();
|
|
136
136
|
const json = options.json === true;
|
|
137
|
-
const renderer = json ? void 0 : await import("./search-output-
|
|
137
|
+
const renderer = json ? void 0 : await import("./search-output-VN7XOZEQ.mjs");
|
|
138
138
|
const searches = [];
|
|
139
139
|
const chunks = [];
|
|
140
140
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-X7Y4T7CV.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment,
|
|
10
10
|
resolveShellSpawn,
|
|
11
11
|
syncSdkSkillsIfNeeded
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-OQQDNJ2D.mjs";
|
|
13
13
|
import {
|
|
14
14
|
addJsonNotice,
|
|
15
15
|
isJsonOutputMode
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-O35BHZLQ.mjs";
|
|
17
17
|
import {
|
|
18
18
|
resolveApiKeyForBaseUrl
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-CWHXE6HJ.mjs";
|
|
20
20
|
import {
|
|
21
21
|
SDK_VERSION
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-FHYNK7GL.mjs";
|
|
23
23
|
|
|
24
24
|
// src/cli/compatibility-catalog.ts
|
|
25
25
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-MF7PCM6C.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-XQTJET2Y.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-5TYLSS4Q.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-O35BHZLQ.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-O35BHZLQ.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -22,14 +22,14 @@ import {
|
|
|
22
22
|
saveHostEnvValues,
|
|
23
23
|
saveProjectDeeplineEnvValues,
|
|
24
24
|
storedHostApiKey
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-CWHXE6HJ.mjs";
|
|
26
26
|
import {
|
|
27
27
|
SDK_API_CONTRACT,
|
|
28
28
|
SDK_VERSION,
|
|
29
29
|
connectionFailureMessage,
|
|
30
30
|
detectAgentRuntime,
|
|
31
31
|
networkCauseCode
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-FHYNK7GL.mjs";
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -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 _chunkEJN43WGDjs = require('./chunk-EJN43WGD.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 = _chunkEJN43WGDjs.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
|
windowsHide: true,
|
|
19
19
|
encoding: "utf8",
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkNVJGVNENjs = require('./chunk-NVJGVNEN.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkFXN5WSTYjs = require('./chunk-FXN5WSTY.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkJHQ7FORYjs = require('./chunk-JHQ7FORY.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, _chunkJHQ7FORYjs.sdkCliStateDirPath.call(void 0, _chunkJHQ7FORYjs.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, _chunkNVJGVNENjs.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-SFWQVBYU.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
|
+
_chunkFXN5WSTYjs.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 = _chunkFXN5WSTYjs.errorToJsonPayload.call(void 0, error);
|
|
175
|
+
const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkFXN5WSTYjs.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
|
+
_chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
|
|
188
188
|
{ searches },
|
|
189
189
|
{
|
|
190
190
|
json,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkX5ZE7K4Jjs = require('./chunk-X5ZE7K4J.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkJHQ7FORYjs = require('./chunk-JHQ7FORY.js');
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunkX5ZE7K4Jjs.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
12
|
+
const config = _chunkJHQ7FORYjs.resolveConfig.call(void 0, options);
|
|
13
|
+
super(config, new (0, _chunkJHQ7FORYjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
resolveApiKeyForBaseUrl,
|
|
5
5
|
resolveCliCommandContext,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-CWHXE6HJ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
SDK_VERSION,
|
|
10
10
|
agentSessionIdFromEnvironment,
|
|
11
11
|
deploymentProtectionHeaders,
|
|
12
12
|
detectAgentRuntime,
|
|
13
13
|
readToolFailureHint
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-FHYNK7GL.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError,
|
|
17
17
|
normalizeToolExecutionFailure,
|
|
@@ -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.577",
|
|
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,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-4ANO4DM5.mjs";
|
|
4
4
|
import {
|
|
5
5
|
maybeReportAutomaticSkillsSyncFailure
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-O35BHZLQ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_MAX_RETRIES,
|
|
9
9
|
DEFAULT_SKILL_AGENTS,
|
|
@@ -18,20 +18,20 @@ import {
|
|
|
18
18
|
sdkCliStateDirPath,
|
|
19
19
|
skillsAgentPathSegment,
|
|
20
20
|
writeSdkSkillsLocalVersion
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-CWHXE6HJ.mjs";
|
|
22
22
|
import {
|
|
23
23
|
SDK_API_CONTRACT,
|
|
24
24
|
SDK_API_MAJOR,
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
deploymentProtectionHeaders,
|
|
27
27
|
detectAgentRuntime
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-FHYNK7GL.mjs";
|
|
29
29
|
import {
|
|
30
30
|
DeeplineError
|
|
31
31
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
32
32
|
import {
|
|
33
33
|
SDK_RELEASE
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-ID5WQZ2H.mjs";
|
|
35
35
|
|
|
36
36
|
// src/compat.ts
|
|
37
37
|
import { randomUUID } from "crypto";
|
|
@@ -4326,6 +4326,17 @@ Make an agent (members with the run grant):
|
|
|
4326
4326
|
Only an agent's or skill's creator, or an admin, changes or deletes it:
|
|
4327
4327
|
[[agents update pipeline --skills icp,territories]], [[agents delete pipeline]],
|
|
4328
4328
|
[[agents channels remove C0123456789]], [[agents skills delete icp]].
|
|
4329
|
+
Name in Slack:
|
|
4330
|
+
An agent posts under the Slack app's own name unless it has a display
|
|
4331
|
+
name: [[agents update pipeline --display-name "Pipeline Panda"]] (or
|
|
4332
|
+
--display-name on create). Each post in that agent's channels then shows
|
|
4333
|
+
it, with the app's badge, so a channel shows which agent answers there.
|
|
4334
|
+
--display-name "" returns it to the app's name. At most 80 characters, one
|
|
4335
|
+
line. People still @mention the app's own handle, and Slack's app pages
|
|
4336
|
+
show the app's name. It needs the same Slack scope as the workspace logo:
|
|
4337
|
+
a Slack workspace installed before that keeps the app's name until it is
|
|
4338
|
+
installed again. A new name, or a channel moved to another agent, shows
|
|
4339
|
+
on posts within a minute.
|
|
4329
4340
|
Models:
|
|
4330
4341
|
One key serves every agent, so your agents run on the models of that
|
|
4331
4342
|
key's provider. An agent runs on the provider's default unless it is given
|
|
@@ -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 _chunkV5SF5CJ7js = require('./chunk-V5SF5CJ7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkFXN5WSTYjs = require('./chunk-FXN5WSTY.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunkRSZSKTRCjs = require('./chunk-RSZSKTRC.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 _chunkRSZSKTRCjs.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 = _chunkRSZSKTRCjs.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 : _chunkRSZSKTRCjs.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(_chunkRSZSKTRCjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunkRSZSKTRCjs.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 = _chunkRSZSKTRCjs.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 } = _chunkFXN5WSTYjs.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 (_chunkV5SF5CJ7js.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
|
+
_chunkFXN5WSTYjs.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
|
+
_chunkFXN5WSTYjs.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
|
+
_chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
|
|
706
706
|
{
|
|
707
707
|
ok: true,
|
|
708
708
|
file: outputPath,
|
|
@@ -21,12 +21,12 @@ var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
|
21
21
|
var _chunkCFJFUVX2js = require('./chunk-CFJFUVX2.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkOBZB4J7Bjs = require('./chunk-OBZB4J7B.js');
|
|
25
25
|
|
|
26
26
|
// src/version.ts
|
|
27
|
-
var SDK_VERSION =
|
|
28
|
-
var SDK_API_MAJOR =
|
|
29
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
27
|
+
var SDK_VERSION = _chunkOBZB4J7Bjs.SDK_RELEASE.version;
|
|
28
|
+
var SDK_API_MAJOR = _chunkOBZB4J7Bjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
29
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkOBZB4J7Bjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
30
30
|
|
|
31
31
|
// src/agent-runtime.ts
|
|
32
32
|
var _fs = require('fs');
|
|
@@ -1,23 +1,23 @@
|
|
|
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 _chunkNMSDMXYSjs = require('./chunk-NMSDMXYS.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkEV47DV25js = require('./chunk-EV47DV25.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkEJN43WGDjs = require('./chunk-EJN43WGD.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkFXN5WSTYjs = require('./chunk-FXN5WSTY.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunkJHQ7FORYjs = require('./chunk-JHQ7FORY.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/update.ts
|
|
23
23
|
var _child_process = require('child_process');
|
|
@@ -499,7 +499,7 @@ function normalizedNpmPrefix(value) {
|
|
|
499
499
|
}
|
|
500
500
|
function resolveNpmGlobalPrefix(env) {
|
|
501
501
|
try {
|
|
502
|
-
const plan =
|
|
502
|
+
const plan = _chunkEJN43WGDjs.resolveShellSpawn.call(void 0,
|
|
503
503
|
"npm",
|
|
504
504
|
["prefix", "-g"],
|
|
505
505
|
process.platform,
|
|
@@ -561,8 +561,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
561
561
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
562
562
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
563
563
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
564
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
565
|
-
const npmGlobalInstallFlags =
|
|
564
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkNMSDMXYSjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
565
|
+
const npmGlobalInstallFlags = _chunkNMSDMXYSjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
566
566
|
const args = installPrefix ? [
|
|
567
567
|
"install",
|
|
568
568
|
"-g",
|
|
@@ -572,7 +572,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
572
572
|
packageSpec
|
|
573
573
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
574
574
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
575
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
575
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkJHQ7FORYjs.autoDetectBaseUrl.call(void 0, )
|
|
576
576
|
);
|
|
577
577
|
return {
|
|
578
578
|
kind: "npm-global",
|
|
@@ -821,7 +821,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
821
821
|
function runCommand(command, args, env = process.env) {
|
|
822
822
|
return new Promise((resolveResult) => {
|
|
823
823
|
let output = "";
|
|
824
|
-
const plan =
|
|
824
|
+
const plan = _chunkEJN43WGDjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
825
825
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
826
826
|
windowsHide: true,
|
|
827
827
|
stdio: ["inherit", "pipe", "pipe"],
|
|
@@ -1169,7 +1169,7 @@ function normalizePinnedVersion(value) {
|
|
|
1169
1169
|
}
|
|
1170
1170
|
async function readPinMetadata(registryUrl, version) {
|
|
1171
1171
|
const controller = new AbortController();
|
|
1172
|
-
const timeout = setTimeout(() => controller.abort(),
|
|
1172
|
+
const timeout = setTimeout(() => controller.abort(), _chunkJHQ7FORYjs.DEFAULT_TIMEOUT);
|
|
1173
1173
|
try {
|
|
1174
1174
|
const response = await fetch(
|
|
1175
1175
|
new URL(
|
|
@@ -1185,7 +1185,7 @@ async function readPinMetadata(registryUrl, version) {
|
|
|
1185
1185
|
if (!response.ok) {
|
|
1186
1186
|
return {
|
|
1187
1187
|
kind: "miss",
|
|
1188
|
-
transient:
|
|
1188
|
+
transient: _chunkJHQ7FORYjs.TRANSIENT_HTTP_STATUSES.has(response.status),
|
|
1189
1189
|
error: new Error(`${registryUrl} returned HTTP ${response.status}`)
|
|
1190
1190
|
};
|
|
1191
1191
|
}
|
|
@@ -1219,8 +1219,8 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl, retry =
|
|
|
1219
1219
|
"https://registry.npmjs.org/",
|
|
1220
1220
|
...fallbackRegistryUrl ? [fallbackRegistryUrl] : []
|
|
1221
1221
|
];
|
|
1222
|
-
const maxRetries = _nullishCoalesce(retry.maxRetries, () => (
|
|
1223
|
-
const backoffMs = _nullishCoalesce(retry.backoffMs, () => (
|
|
1222
|
+
const maxRetries = _nullishCoalesce(retry.maxRetries, () => ( _chunkJHQ7FORYjs.DEFAULT_MAX_RETRIES));
|
|
1223
|
+
const backoffMs = _nullishCoalesce(retry.backoffMs, () => ( _chunkJHQ7FORYjs.defaultRetryBackoffMs));
|
|
1224
1224
|
let lastError = null;
|
|
1225
1225
|
for (let round = 1; ; round += 1) {
|
|
1226
1226
|
let transientOnly = true;
|
|
@@ -1283,14 +1283,14 @@ async function resolveInstalledVersionIfLatest(plan) {
|
|
|
1283
1283
|
return null;
|
|
1284
1284
|
}
|
|
1285
1285
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1286
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1286
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkJHQ7FORYjs.autoDetectBaseUrl));
|
|
1287
1287
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1288
1288
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1289
1289
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1290
1290
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1291
1291
|
process.stdout.write = (() => true);
|
|
1292
1292
|
try {
|
|
1293
|
-
const exitCode = await
|
|
1293
|
+
const exitCode = await _chunkEV47DV25js.runSkillsCommand.call(void 0, { json: true });
|
|
1294
1294
|
if (exitCode !== 0) {
|
|
1295
1295
|
throw new Error(
|
|
1296
1296
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1363,7 +1363,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1363
1363
|
};
|
|
1364
1364
|
if (options.json && !options.executeWithJson) {
|
|
1365
1365
|
const upToDateVersion2 = pinnedVersion || options.force ? null : await resolveUpToDateVersion(plan);
|
|
1366
|
-
|
|
1366
|
+
_chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
|
|
1367
1367
|
{
|
|
1368
1368
|
...plan,
|
|
1369
1369
|
updated: false,
|
|
@@ -1375,7 +1375,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1375
1375
|
return 0;
|
|
1376
1376
|
}
|
|
1377
1377
|
if (options.printCommand) {
|
|
1378
|
-
|
|
1378
|
+
_chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
|
|
1379
1379
|
{
|
|
1380
1380
|
...plan,
|
|
1381
1381
|
render: {
|
|
@@ -1388,7 +1388,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1388
1388
|
return 0;
|
|
1389
1389
|
}
|
|
1390
1390
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1391
|
-
|
|
1391
|
+
_chunkFXN5WSTYjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1392
1392
|
return 0;
|
|
1393
1393
|
}
|
|
1394
1394
|
const upToDateVersion = pinnedVersion || options.force ? null : await resolveUpToDateVersion(plan);
|
|
@@ -1426,7 +1426,7 @@ To retry with full installer output, run: deepline skills install
|
|
|
1426
1426
|
);
|
|
1427
1427
|
}
|
|
1428
1428
|
if (options.executeWithJson && options.json) {
|
|
1429
|
-
|
|
1429
|
+
_chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
|
|
1430
1430
|
{
|
|
1431
1431
|
ok: true,
|
|
1432
1432
|
pinnedVersion,
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rejectRestrictedFeedback
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LUQMTNFB.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getAuthedHttpClient,
|
|
6
6
|
printCommandEnvelope
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-O35BHZLQ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
agentSessionIdFromEnvironment,
|
|
10
10
|
claudeProjectsRoots,
|
|
11
11
|
coworkTranscriptFromEnvironment
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FHYNK7GL.mjs";
|
|
13
13
|
|
|
14
14
|
// src/cli/commands/sessions.ts
|
|
15
15
|
import {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkFXN5WSTYjs = require('./chunk-FXN5WSTY.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/feedback-preferences.ts
|
|
6
6
|
|
|
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
|
|
|
57
57
|
const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
|
|
58
58
|
const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
|
|
59
59
|
if (options.json) {
|
|
60
|
-
|
|
60
|
+
_chunkFXN5WSTYjs.printCommandEnvelope.call(void 0,
|
|
61
61
|
{ ok: false, code, exitCode: 2, message },
|
|
62
62
|
{ json: true }
|
|
63
63
|
);
|