deepline 0.3.575 → 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 +13 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +145 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/experiment-switches.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +153 -10
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-speed-profile.ts +41 -5
- package/dist/cli/{agents-ULGDKUTM.mjs → agents-SUJRATC2.mjs} +58 -10
- package/dist/cli/{agents-BCLO3KQJ.js → agents-ZIGK3FQ2.js} +84 -36
- package/dist/cli/auth-A5U6GVCF.js +44 -0
- package/dist/cli/{auth-4WCL7A6W.mjs → auth-TRKPRZK6.mjs} +5 -5
- package/dist/cli/{billing-BF5LVXOM.js → billing-6RAF4DQY.js} +102 -102
- package/dist/cli/{billing-7JQ6EUQU.mjs → billing-WPQT3QRS.mjs} +9 -9
- package/dist/cli/{chunk-636GD4IR.js → chunk-2NFDB6CL.js} +2 -2
- package/dist/cli/{chunk-UQZP7XBQ.mjs → chunk-425SUSDJ.mjs} +5 -5
- package/dist/cli/{chunk-TTBZ7QXX.mjs → chunk-4ANO4DM5.mjs} +1 -1
- package/dist/cli/{chunk-V5XLENWK.js → chunk-772IV64Y.js} +5 -5
- package/dist/cli/{chunk-NF722E6C.mjs → chunk-APJ6YIYW.mjs} +1 -1
- package/dist/cli/{chunk-XFV353R2.js → chunk-APOWCBO7.js} +23 -23
- package/dist/cli/{chunk-IOWLFWWG.mjs → chunk-ATW77ZBL.mjs} +2 -2
- package/dist/cli/{chunk-RHRRY2BX.mjs → chunk-CCGFSELM.mjs} +3 -3
- package/dist/cli/{chunk-3PVKXUSJ.mjs → chunk-CWHXE6HJ.mjs} +1 -1
- package/dist/cli/{chunk-5H6254MJ.js → chunk-CZF2LKIT.js} +16 -16
- package/dist/cli/{chunk-GQZFZG6R.mjs → chunk-DA5C5WOI.mjs} +2 -2
- package/dist/cli/{chunk-EZIXKNKM.js → chunk-DJP7CJQC.js} +3 -3
- package/dist/cli/{chunk-G4WPDCXA.js → chunk-EJN43WGD.js} +48 -48
- package/dist/cli/{chunk-ZYSJND73.js → chunk-EKZ6JD6K.js} +9 -9
- package/dist/cli/{chunk-737Y7QGT.js → chunk-EV47DV25.js} +41 -41
- package/dist/cli/{chunk-IBYMGR5Y.mjs → chunk-FHYNK7GL.mjs} +1 -1
- package/dist/cli/{chunk-7DLAJ6JJ.js → chunk-FRYLXDNP.js} +53 -53
- package/dist/cli/{chunk-EV3OPDHF.js → chunk-FXN5WSTY.js} +20 -20
- package/dist/cli/{chunk-MN7JLH2T.mjs → chunk-GFWVBXAK.mjs} +2 -2
- package/dist/cli/{chunk-MWLOBURN.mjs → chunk-H6NF5SNY.mjs} +2 -2
- package/dist/cli/{chunk-E4RYSSXX.mjs → chunk-I44Y4MPK.mjs} +1 -1
- package/dist/cli/{chunk-BM536WWR.mjs → chunk-ID5WQZ2H.mjs} +11 -1
- package/dist/cli/{chunk-ZS6DT4LD.js → chunk-ITK5TGQ7.js} +15 -15
- package/dist/cli/{chunk-AO56MZ7D.js → chunk-JHQ7FORY.js} +3 -3
- package/dist/cli/{chunk-G2H6SQQY.js → chunk-JWLV3XRF.js} +7 -7
- package/dist/cli/{chunk-DMPGJCNZ.js → chunk-KVDIN2YW.js} +29 -1
- package/dist/cli/{chunk-5D7OJY4W.mjs → chunk-LUQMTNFB.mjs} +1 -1
- package/dist/cli/{chunk-H3CG72RZ.mjs → chunk-LXM36EXW.mjs} +11 -11
- package/dist/cli/{chunk-QKP3WYSZ.mjs → chunk-MDP3CNDM.mjs} +2 -2
- package/dist/cli/{chunk-H6JMRLAZ.js → chunk-MOWABWHT.js} +100 -100
- package/dist/cli/{chunk-ZQXJYO5P.js → chunk-MTHAVEQN.js} +5 -5
- package/dist/cli/{chunk-IAJ65IDZ.mjs → chunk-MTM6WNPP.mjs} +4 -4
- package/dist/cli/{chunk-CVY4MBXH.mjs → chunk-MVCKEPWF.mjs} +5 -5
- package/dist/cli/{chunk-JGLCK2XF.mjs → chunk-N6EU2FRF.mjs} +2 -2
- package/dist/cli/{chunk-TMFR2B45.mjs → chunk-NDMKFA6W.mjs} +3 -3
- package/dist/cli/{chunk-HO76C7AE.js → chunk-NMSDMXYS.js} +2 -2
- package/dist/cli/{chunk-FXXERR52.js → chunk-NRBIYZUG.js} +10 -10
- package/dist/cli/{chunk-YNAXKA23.js → chunk-NVJGVNEN.js} +5 -5
- package/dist/cli/{chunk-X47J55ZJ.mjs → chunk-O35BHZLQ.mjs} +2 -2
- package/dist/cli/{chunk-2UM3I2MY.js → chunk-OBZB4J7B.js} +11 -1
- package/dist/cli/{chunk-2T7XOKVL.mjs → chunk-OQQDNJ2D.mjs} +5 -5
- package/dist/cli/{chunk-FDCU3VAJ.mjs → chunk-ORLJIJVX.mjs} +29 -1
- package/dist/cli/{chunk-BQUAE6LQ.mjs → chunk-Q3WDT3YA.mjs} +1 -1
- package/dist/cli/{chunk-GB4IZ5TV.js → chunk-QXAPAHIG.js} +13 -13
- package/dist/cli/{chunk-KNCNFL76.js → chunk-RSZSKTRC.js} +4 -4
- package/dist/cli/{chunk-HEOM3FAC.js → chunk-RVICQWXU.js} +20 -20
- package/dist/cli/{chunk-SYQTBHRX.mjs → chunk-U6Y4HX6J.mjs} +3 -3
- package/dist/cli/{chunk-AS5XGOZY.js → chunk-V5SF5CJ7.js} +2 -2
- package/dist/cli/{chunk-BONMEBWZ.mjs → chunk-WP4Q5PTK.mjs} +4 -4
- package/dist/cli/{chunk-5VSHQG5E.js → chunk-X5ZE7K4J.js} +8 -8
- package/dist/cli/{chunk-56N3XAT6.mjs → chunk-X7Y4T7CV.mjs} +5 -5
- package/dist/cli/{chunk-QEDRUURT.mjs → chunk-XQTJET2Y.mjs} +1 -1
- package/dist/cli/{chunk-6IKLITVH.js → chunk-Y37JQZBP.js} +6 -6
- package/dist/cli/{chunk-PQYDO72W.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-HITK6EOO.mjs → concurrent-runs-help-6CGXMTFQ.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-VJDPVGXM.js +22 -0
- package/dist/cli/{csv-RS7XHQ4P.js → csv-7UZT2LGE.js} +13 -13
- package/dist/cli/{csv-V2T23MXT.mjs → csv-L7P6PC6I.mjs} +4 -4
- package/dist/cli/{db-OQ4RNTGE.mjs → db-4OOEC5KV.mjs} +6 -6
- package/dist/cli/{db-WFIVRPKY.js → db-7KETOIZY.js} +27 -27
- package/dist/cli/{describe-AXV2EEX3.mjs → describe-M6HEFS46.mjs} +18 -18
- package/dist/cli/describe-RLWJYZIR.js +50 -0
- package/dist/cli/{executions-THP5ZDBQ.mjs → executions-U27R2LY4.mjs} +6 -6
- package/dist/cli/{executions-5H2RIWZ3.js → executions-UIR6RQFM.js} +8 -8
- package/dist/cli/{feedback-UOI6UEGA.js → feedback-CQ5FUE4T.js} +14 -14
- package/dist/cli/{feedback-2EJPILGE.mjs → feedback-UUUISTGQ.mjs} +6 -6
- package/dist/cli/{git-DI3LJIAT.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-TYN2BSQ6.js → integrations-ABBLLEJH.js} +29 -29
- package/dist/cli/{integrations-DJYS5VRK.mjs → integrations-NNACG3HD.mjs} +7 -7
- package/dist/cli/{legacy-noops-GXQHNLGJ.js → legacy-noops-3JLS5OD7.js} +9 -9
- package/dist/cli/{legacy-noops-Z457BB6O.mjs → legacy-noops-KQW7AIYU.mjs} +6 -6
- package/dist/cli/{mcp-NAW3GFNN.mjs → mcp-7NHGPYZH.mjs} +4 -4
- package/dist/cli/{mcp-WMBOOTQL.js → mcp-JPBFKR26.js} +24 -24
- package/dist/cli/{monitors-OOQVE7XR.js → monitors-J6HK5KCN.js} +100 -100
- package/dist/cli/{monitors-A7NYAXSJ.mjs → monitors-JOE2DALW.mjs} +7 -7
- package/dist/cli/{org-7YCDUSZE.mjs → org-VZZ4LN4O.mjs} +6 -6
- package/dist/cli/{org-D2AMIVBS.js → org-WFZFQIXQ.js} +121 -121
- package/dist/cli/{outcomes-TNTKCUEO.mjs → outcomes-H2WEZYNT.mjs} +6 -6
- package/dist/cli/{outcomes-2FKZDJSQ.js → outcomes-RZWL47BJ.js} +14 -14
- package/dist/cli/{play-NWKHCHVZ.js → play-2ZEBUF5T.js} +336 -336
- package/dist/cli/{play-L6CVHSN4.mjs → play-KMWA7GVN.mjs} +19 -19
- package/dist/cli/{providers-22LO747B.mjs → providers-2BIA3OWA.mjs} +6 -6
- package/dist/cli/{providers-PZGOI5CN.js → providers-57AZWFSW.js} +9 -9
- package/dist/cli/{quickstart-LLWOC2GR.js → quickstart-EYJFERQO.js} +6 -6
- package/dist/cli/{quickstart-3ZRVKGMH.mjs → quickstart-NSDM2RXV.mjs} +4 -4
- package/dist/cli/{run-SNF23STR.js → run-BW62DZGQ.js} +44 -44
- package/dist/cli/{run-D46W2GUA.mjs → run-X6H5SCEE.mjs} +23 -23
- package/dist/cli/{search-XWVCICIX.mjs → search-2VN74P5N.mjs} +7 -7
- package/dist/cli/search-HYRDZVPQ.js +32 -0
- package/dist/cli/{search-output-36GHD67U.js → search-output-SFWQVBYU.js} +6 -6
- package/dist/cli/{search-output-YM5QXFQQ.mjs → search-output-VN7XOZEQ.mjs} +4 -4
- package/dist/cli/{secrets-7PTZEFRC.mjs → secrets-4M26N436.mjs} +6 -6
- package/dist/cli/{secrets-UXCIHG5I.js → secrets-OIPKG2H7.js} +15 -15
- package/dist/cli/sessions-5P2KZOQE.js +23 -0
- package/dist/cli/{sessions-DTXJKRP4.mjs → sessions-SYFH23L3.mjs} +6 -6
- package/dist/cli/{settings-74B6UOS4.mjs → settings-4HPF3T4P.mjs} +12 -12
- package/dist/cli/{settings-EYSDZE37.js → settings-5NB4HZYL.js} +85 -85
- package/dist/cli/{setup-2QRZ36CH.mjs → setup-CI74F6CL.mjs} +9 -9
- package/dist/cli/{setup-E7PVXBPL.js → setup-JV3F5C7P.js} +49 -49
- package/dist/cli/{skills-2WZ7N3UW.mjs → skills-76CM4GHO.mjs} +7 -7
- package/dist/cli/skills-PJ5EL32L.js +37 -0
- package/dist/cli/{tools-YK5SCUZD.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-563YQK53.mjs → update-KPMDOZRX.mjs} +9 -9
- package/dist/cli/{views-ISNCRZUP.mjs → views-KW54SAES.mjs} +6 -6
- package/dist/cli/{views-OLPS6TPG.js → views-R37NWN6J.js} +21 -21
- package/dist/cli/{workflow-B3ZKU3OR.mjs → workflow-3MIRQV4Q.mjs} +7 -7
- package/dist/cli/{workflow-CUSCTYMW.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 +9 -1
- package/dist/release.d.ts +9 -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-DXUHEL5I.js +0 -44
- package/dist/cli/concurrent-runs-help-JLWY54WL.js +0 -22
- package/dist/cli/describe-33PBWO5O.js +0 -50
- package/dist/cli/git-2OPYEPYW.js +0 -26
- package/dist/cli/search-H57MZPLF.js +0 -32
- package/dist/cli/sessions-JJZMQSH4.js +0 -23
- package/dist/cli/skills-RIF2DCZI.js +0 -37
- package/dist/cli/tools-7VRQ4GSI.js +0 -57
- package/dist/cli/update-CMZAIAES.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."
|
|
@@ -102,6 +102,16 @@ var SDK_RELEASE = {
|
|
|
102
102
|
introducedIn: "0.3.287",
|
|
103
103
|
reason: "deepline search was added in SDK CLI 0.3.287 as the one search across tools, monitors, plays, and docs. On an older version run deepline tools search or deepline plays search, or update."
|
|
104
104
|
},
|
|
105
|
+
{
|
|
106
|
+
command: "integrations",
|
|
107
|
+
introducedIn: "0.3.543",
|
|
108
|
+
reason: "deepline integrations was added in SDK CLI 0.3.543 to connect providers and manage named org authorizations. Older versions cannot print a provider setup link, so update before connecting a provider from the CLI."
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
command: "outcomes",
|
|
112
|
+
introducedIn: "0.3.553",
|
|
113
|
+
reason: "deepline outcomes was added in SDK CLI 0.3.553. Older versions cannot read or write an outcome, so update before setting one up or checking in on it."
|
|
114
|
+
},
|
|
105
115
|
{
|
|
106
116
|
command: "notifications",
|
|
107
117
|
introducedIn: "0.2.40",
|
|
@@ -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
|
|
@@ -4359,6 +4370,18 @@ Outcomes (needs the outcomes rollout):
|
|
|
4359
4370
|
nothing on the outcome.
|
|
4360
4371
|
A paused outcome still wakes its agent when something reaches it; the
|
|
4361
4372
|
agent is told the outcome is paused and decides what is worth doing.
|
|
4373
|
+
Every outcome has an agent by default. While agents are on, an outcome
|
|
4374
|
+
with no home channel is owned by Bot by Deepline: it joins as
|
|
4375
|
+
"deepline" and is woken by the same things (a post that names
|
|
4376
|
+
@deepline, a reply in a thread it started, an answered ask, a task made
|
|
4377
|
+
for it, a schedule it set). With no channel to post in, it writes to the
|
|
4378
|
+
outcome's feed. [[agents outcomes]] lists those outcomes with what woke
|
|
4379
|
+
the agent last; [[outcomes watches list <outcome>]] shows its watch. It
|
|
4380
|
+
starts at most 30 turns an hour on one outcome; what arrives past that
|
|
4381
|
+
waits for the next turn. Giving the outcome a home channel hands the
|
|
4382
|
+
watch to that channel's agent, [[agents disable]] or deleting the outcome
|
|
4383
|
+
removes it, and running [[agents enable]] again puts the agent on
|
|
4384
|
+
outcomes made before this.
|
|
4362
4385
|
From Slack:
|
|
4363
4386
|
Inviting the agent's app to a channel no agent answers in, or mentioning
|
|
4364
4387
|
it there, posts a card that asks which outcome the channel is for. Picking
|
|
@@ -4405,7 +4428,12 @@ Output (JSON):
|
|
|
4405
4428
|
null}} and skills[] {name, description, markdownLength}. get, create,
|
|
4406
4429
|
update and channels add print agent; created, changed or removed says
|
|
4407
4430
|
whether anything changed. models prints default and models[] {id, label,
|
|
4408
|
-
provider, aliases, available}.
|
|
4431
|
+
provider, aliases, available}. outcomes prints owners[] {outcome, agent,
|
|
4432
|
+
watch {key, ringState (idle, pending, delivering, failing), lastRungAt,
|
|
4433
|
+
lastRingError} or null, refusal, lastWake {at, status (woken,
|
|
4434
|
+
nothing_waiting, throttled, not_woken), matches, what[]} or null,
|
|
4435
|
+
lastWokenAt, turnsInWindow, turnLimit, windowEndsAt} and more. channels
|
|
4436
|
+
set prints model {model {id,
|
|
4409
4437
|
label, provider}, from (conversation, agent), changed} and outcome
|
|
4410
4438
|
{changed, agentName, conversation, woken}; channels add --outcome prints
|
|
4411
4439
|
that outcome too.
|
|
@@ -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');
|