deepline 0.3.577 → 0.3.579
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/client-core.ts +7 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +124 -57
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +43 -64
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-worker-wake.ts +25 -0
- package/dist/bundling-sources/shared_libs/plays/sandbox-runtime-limits.ts +83 -0
- package/dist/cli/{agents-ZIGK3FQ2.js → agents-D5RZEVXQ.js} +37 -54
- package/dist/cli/{agents-SUJRATC2.mjs → agents-FJTRTYCL.mjs} +10 -27
- package/dist/cli/{auth-TRKPRZK6.mjs → auth-OMYIDVXZ.mjs} +5 -5
- package/dist/cli/auth-Q4O7MJU4.js +44 -0
- package/dist/cli/{billing-6RAF4DQY.js → billing-EWFUDLQ7.js} +104 -102
- package/dist/cli/{billing-WPQT3QRS.mjs → billing-XK3LBNYS.mjs} +11 -9
- package/dist/cli/{chunk-MVCKEPWF.mjs → chunk-27ZYRIQC.mjs} +5 -5
- package/dist/cli/{chunk-CWHXE6HJ.mjs → chunk-3Z4TVZE7.mjs} +1 -1
- package/dist/cli/{chunk-KVDIN2YW.js → chunk-44NTNNKC.js} +11 -13
- package/dist/cli/{chunk-O35BHZLQ.mjs → chunk-6DMGKAWO.mjs} +2 -2
- package/dist/cli/{chunk-ATW77ZBL.mjs → chunk-6EVVUVU3.mjs} +2 -2
- package/dist/cli/{chunk-LXM36EXW.mjs → chunk-6GON36H3.mjs} +17 -14
- package/dist/cli/{chunk-RSZSKTRC.js → chunk-6MIEJJSO.js} +4 -4
- package/dist/cli/{chunk-ID5WQZ2H.mjs → chunk-6NYHMXC7.mjs} +1 -1
- package/dist/cli/{chunk-DJP7CJQC.js → chunk-72TWLORR.js} +3 -3
- package/dist/cli/{chunk-X5ZE7K4J.js → chunk-7HOYKXVY.js} +8 -8
- package/dist/cli/{chunk-NRBIYZUG.js → chunk-7JMCRYXU.js} +10 -10
- package/dist/cli/{chunk-MDP3CNDM.mjs → chunk-7SZCJC4R.mjs} +2 -2
- package/dist/cli/{chunk-APOWCBO7.js → chunk-ABH6PUDZ.js} +23 -23
- package/dist/cli/{chunk-EV47DV25.js → chunk-AP7PIGL5.js} +41 -41
- package/dist/cli/{chunk-CZF2LKIT.js → chunk-BLEYV4BJ.js} +21 -21
- package/dist/cli/{chunk-DWUESXDD.mjs → chunk-BZ4M7OFO.mjs} +11 -1
- package/dist/cli/{chunk-RVICQWXU.js → chunk-DH736ASH.js} +20 -20
- package/dist/cli/{chunk-FYKHAT2F.mjs → chunk-DTQBQSUU.mjs} +9 -0
- package/dist/cli/{chunk-X7Y4T7CV.mjs → chunk-F57NDSKT.mjs} +5 -5
- package/dist/cli/{chunk-ITK5TGQ7.js → chunk-FKXSIIR4.js} +15 -15
- package/dist/cli/{chunk-ZHJIDDYR.js → chunk-G5CZDRY3.js} +26 -26
- package/dist/cli/{chunk-MOWABWHT.js → chunk-HEZW2IDK.js} +277 -274
- package/dist/cli/{chunk-ORLJIJVX.mjs → chunk-HGUFTSB5.mjs} +11 -13
- package/dist/cli/{chunk-FHYNK7GL.mjs → chunk-I2TSRLOI.mjs} +1 -1
- package/dist/cli/{chunk-OQQDNJ2D.mjs → chunk-JFS4KHA3.mjs} +5 -5
- package/dist/cli/{chunk-NMSDMXYS.js → chunk-K2BU67UC.js} +2 -2
- package/dist/cli/{chunk-XQTJET2Y.mjs → chunk-KIIOKQFY.mjs} +1 -1
- package/dist/cli/{chunk-CCGFSELM.mjs → chunk-KQAEXBVQ.mjs} +3 -3
- package/dist/cli/{chunk-Y37JQZBP.js → chunk-KWQHQG53.js} +6 -6
- package/dist/cli/{chunk-V5SF5CJ7.js → chunk-LCPJR3IY.js} +2 -2
- package/dist/cli/{chunk-EKZ6JD6K.js → chunk-LQ45LCH7.js} +9 -9
- package/dist/cli/{chunk-APJ6YIYW.mjs → chunk-LV2LGW2Q.mjs} +1 -1
- package/dist/cli/{chunk-N6EU2FRF.mjs → chunk-LYBZLA6F.mjs} +2 -2
- package/dist/cli/{chunk-JWLV3XRF.js → chunk-LYJ2NSHD.js} +17 -12
- package/dist/cli/{chunk-MTM6WNPP.mjs → chunk-M4YWN5BT.mjs} +4 -4
- package/dist/cli/{chunk-H6NF5SNY.mjs → chunk-N6X2UKYQ.mjs} +2 -2
- package/dist/cli/{chunk-2NFDB6CL.js → chunk-NKUXW4WB.js} +2 -2
- package/dist/cli/{chunk-OBZB4J7B.js → chunk-NOMO5GPI.js} +1 -1
- package/dist/cli/{chunk-GFWVBXAK.mjs → chunk-NONMY5CY.mjs} +2 -2
- package/dist/cli/{chunk-QXAPAHIG.js → chunk-NWZU6HL4.js} +13 -13
- package/dist/cli/{chunk-FXN5WSTY.js → chunk-OOGP737I.js} +20 -20
- package/dist/cli/{chunk-LUQMTNFB.mjs → chunk-OSRATALX.mjs} +1 -1
- package/dist/cli/{chunk-ZO65VJRJ.js → chunk-PGRRMVQ5.js} +10 -1
- package/dist/cli/{chunk-MTHAVEQN.js → chunk-PLWZ3NB7.js} +5 -5
- package/dist/cli/{chunk-MXK4M7HP.js → chunk-Q4VKMF3B.js} +17 -17
- package/dist/cli/{chunk-SKHUWQZE.js → chunk-QA55PGJH.js} +17 -7
- package/dist/cli/{chunk-425SUSDJ.mjs → chunk-S2OXA7QS.mjs} +7 -7
- package/dist/cli/{chunk-NDMKFA6W.mjs → chunk-SUHCW7U5.mjs} +3 -3
- package/dist/cli/{chunk-U6Y4HX6J.mjs → chunk-SZIWFQI2.mjs} +3 -3
- package/dist/cli/{chunk-4ANO4DM5.mjs → chunk-TFNDOH4W.mjs} +1 -1
- package/dist/cli/{chunk-JHQ7FORY.js → chunk-TVAFWAOQ.js} +3 -3
- package/dist/cli/{chunk-NVJGVNEN.js → chunk-UYCBG75H.js} +5 -5
- package/dist/cli/{chunk-RW3URFZK.mjs → chunk-VFIIRK7S.mjs} +2 -2
- package/dist/cli/{chunk-WP4Q5PTK.mjs → chunk-WQQQP3FH.mjs} +4 -4
- package/dist/cli/{chunk-772IV64Y.js → chunk-WWSGXX6U.js} +5 -5
- package/dist/cli/{chunk-Q3WDT3YA.mjs → chunk-X6LPC3SU.mjs} +1 -1
- package/dist/cli/{chunk-DA5C5WOI.mjs → chunk-XQYBBCFI.mjs} +2 -2
- package/dist/cli/{chunk-FRYLXDNP.js → chunk-XTM6NOJ6.js} +53 -53
- package/dist/cli/{chunk-EJN43WGD.js → chunk-Y2ND6PPW.js} +48 -48
- package/dist/cli/{chunk-I44Y4MPK.mjs → chunk-YCWRKSLB.mjs} +8 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/concurrent-runs-help-D6XH3FY5.js +22 -0
- package/dist/cli/{concurrent-runs-help-6CGXMTFQ.mjs → concurrent-runs-help-IQBZBTD5.mjs} +6 -6
- package/dist/cli/{csv-L7P6PC6I.mjs → csv-6BEOWTGM.mjs} +4 -4
- package/dist/cli/{csv-7UZT2LGE.js → csv-T7TWLIGD.js} +13 -13
- package/dist/cli/{db-4OOEC5KV.mjs → db-FA5QGXZ7.mjs} +6 -6
- package/dist/cli/{db-7KETOIZY.js → db-MFTUN3DF.js} +27 -27
- package/dist/cli/{describe-M6HEFS46.mjs → describe-TITEQNVE.mjs} +21 -21
- package/dist/cli/describe-TYZ5YH3V.js +50 -0
- package/dist/cli/describe-core.d.mts +4 -2
- package/dist/cli/describe-core.d.ts +4 -2
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-U27R2LY4.mjs → executions-DMYJJIRB.mjs} +6 -6
- package/dist/cli/{executions-UIR6RQFM.js → executions-QW3L7G7J.js} +8 -8
- package/dist/cli/{feedback-CQ5FUE4T.js → feedback-6JZGE7OQ.js} +14 -14
- package/dist/cli/{feedback-UUUISTGQ.mjs → feedback-WPSNSFRC.mjs} +6 -6
- package/dist/cli/{git-DTILSRIQ.mjs → git-GO65XRM3.mjs} +5 -5
- package/dist/cli/git-UGGRLGTQ.js +26 -0
- package/dist/cli/index.js +148 -148
- package/dist/cli/index.mjs +47 -47
- package/dist/cli/{integrations-NNACG3HD.mjs → integrations-EEBPETH2.mjs} +7 -7
- package/dist/cli/{integrations-ABBLLEJH.js → integrations-T5JPSZXN.js} +29 -29
- package/dist/cli/{legacy-noops-3JLS5OD7.js → legacy-noops-B55OMNH7.js} +9 -9
- package/dist/cli/{legacy-noops-KQW7AIYU.mjs → legacy-noops-XDNZ46IR.mjs} +6 -6
- package/dist/cli/{mcp-JPBFKR26.js → mcp-3YA333TQ.js} +24 -24
- package/dist/cli/{mcp-7NHGPYZH.mjs → mcp-4QIUAAWS.mjs} +4 -4
- package/dist/cli/{monitors-JOE2DALW.mjs → monitors-BVUPS4CE.mjs} +7 -7
- package/dist/cli/{monitors-J6HK5KCN.js → monitors-FOS7MWZO.js} +100 -100
- package/dist/cli/{org-WFZFQIXQ.js → org-CYM7HFLN.js} +121 -121
- package/dist/cli/{org-VZZ4LN4O.mjs → org-TCMRRVFC.mjs} +6 -6
- package/dist/cli/{outcomes-H2WEZYNT.mjs → outcomes-2JSWXWQ3.mjs} +6 -6
- package/dist/cli/{outcomes-RZWL47BJ.js → outcomes-VDJVP5YC.js} +14 -14
- package/dist/cli/{play-KMWA7GVN.mjs → play-CPP4EBYF.mjs} +20 -20
- package/dist/cli/{play-2ZEBUF5T.js → play-U3G73VIR.js} +349 -349
- package/dist/cli/{providers-57AZWFSW.js → providers-2ZB67TK7.js} +9 -9
- package/dist/cli/{providers-2BIA3OWA.mjs → providers-RVMIX5ED.mjs} +6 -6
- package/dist/cli/{quickstart-NSDM2RXV.mjs → quickstart-L3YO3OWZ.mjs} +4 -4
- package/dist/cli/{quickstart-EYJFERQO.js → quickstart-V3Y7XZ47.js} +6 -6
- package/dist/cli/{run-BW62DZGQ.js → run-M2CADJ6E.js} +49 -48
- package/dist/cli/{run-X6H5SCEE.mjs → run-PQ3Z2GOF.mjs} +27 -26
- package/dist/cli/{search-2VN74P5N.mjs → search-QVLGI7SZ.mjs} +7 -7
- package/dist/cli/search-RHPPZZFG.js +32 -0
- package/dist/cli/{search-output-SFWQVBYU.js → search-output-IUANVHWU.js} +8 -8
- package/dist/cli/{search-output-VN7XOZEQ.mjs → search-output-PN3V7MSO.mjs} +5 -5
- package/dist/cli/{secrets-OIPKG2H7.js → secrets-AOW6F67J.js} +15 -15
- package/dist/cli/{secrets-4M26N436.mjs → secrets-HK25G4K2.mjs} +6 -6
- package/dist/cli/sessions-AEGGTZ3K.js +23 -0
- package/dist/cli/{sessions-SYFH23L3.mjs → sessions-YN2OIAGR.mjs} +6 -6
- package/dist/cli/{settings-5NB4HZYL.js → settings-6EV2FPGF.js} +85 -85
- package/dist/cli/{settings-4HPF3T4P.mjs → settings-7UW5TWSM.mjs} +12 -12
- package/dist/cli/{setup-CI74F6CL.mjs → setup-BG56SHKH.mjs} +9 -9
- package/dist/cli/{setup-JV3F5C7P.js → setup-ZQPD2R5K.js} +49 -49
- package/dist/cli/skills-C6ZEZWBE.js +37 -0
- package/dist/cli/{skills-76CM4GHO.mjs → skills-MQV2TNUZ.mjs} +7 -7
- package/dist/cli/tools-PM3MC3RR.js +57 -0
- package/dist/cli/{tools-SVGLDWOC.mjs → tools-RGI4OE5T.mjs} +19 -19
- package/dist/cli/{update-KPMDOZRX.mjs → update-SQKGHQKF.mjs} +9 -9
- package/dist/cli/update-ZHUPF2HT.js +37 -0
- package/dist/cli/{views-KW54SAES.mjs → views-734T2CXF.mjs} +6 -6
- package/dist/cli/{views-R37NWN6J.js → views-BUKVHCRD.js} +21 -21
- package/dist/cli/{workflow-3MIRQV4Q.mjs → workflow-JNRRBMEK.mjs} +7 -7
- package/dist/cli/{workflow-BKRKUNYS.js → workflow-LPJC6RHP.js} +17 -17
- package/dist/{client-BrdMPFCM.d.ts → client-C1AubrWJ.d.ts} +1 -1
- package/dist/{client-CF-bsrtI.d.mts → client-CNYctEBh.d.mts} +1 -1
- package/dist/{client-core-DM1ZedOG.d.mts → client-core-Bb06TCx5.d.mts} +7 -0
- package/dist/{client-core-rMoUWSYM.d.ts → client-core-D6zAE46g.d.ts} +7 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +126 -126
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-A5U6GVCF.js +0 -44
- package/dist/cli/concurrent-runs-help-VJDPVGXM.js +0 -22
- package/dist/cli/describe-RLWJYZIR.js +0 -50
- package/dist/cli/git-ZGDD3BVX.js +0 -26
- package/dist/cli/search-HYRDZVPQ.js +0 -32
- package/dist/cli/sessions-5P2KZOQE.js +0 -23
- package/dist/cli/skills-PJ5EL32L.js +0 -37
- package/dist/cli/tools-Y5ID2SPK.js +0 -57
- package/dist/cli/update-FSUMCMNZ.js +0 -37
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkTVAFWAOQjs = require('./chunk-TVAFWAOQ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk6MIEJJSOjs = require('./chunk-6MIEJJSO.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -331,7 +331,7 @@ function buildEnvironmentContext() {
|
|
|
331
331
|
node_version: process.version,
|
|
332
332
|
runtime: "Node.js",
|
|
333
333
|
hostname: _os.hostname.call(void 0, ),
|
|
334
|
-
agent_runtime:
|
|
334
|
+
agent_runtime: _chunk6MIEJJSOjs.detectAgentRuntime.call(void 0, )
|
|
335
335
|
};
|
|
336
336
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
337
337
|
const normalized = _optionalChain([process, 'access', _6 => _6.env, 'access', _7 => _7[key], 'optionalAccess', _8 => _8.trim, 'call', _9 => _9()]);
|
|
@@ -352,18 +352,18 @@ function buildEnvironmentContext() {
|
|
|
352
352
|
return context;
|
|
353
353
|
}
|
|
354
354
|
function failureReportHeaders(apiKey) {
|
|
355
|
-
const agentSessionId =
|
|
355
|
+
const agentSessionId = _chunk6MIEJJSOjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
356
356
|
return {
|
|
357
|
-
...
|
|
357
|
+
..._chunk6MIEJJSOjs.deploymentProtectionHeaders.call(void 0, ),
|
|
358
358
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
359
359
|
Authorization: `Bearer ${apiKey}`,
|
|
360
360
|
"Content-Type": "application/json",
|
|
361
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
361
|
+
"User-Agent": `deepline-ts-sdk/${_chunk6MIEJJSOjs.SDK_VERSION}`,
|
|
362
362
|
"X-Deepline-Client-Family": "sdk",
|
|
363
363
|
"X-Deepline-CLI-Family": "sdk",
|
|
364
|
-
"X-Deepline-Agent-Runtime":
|
|
365
|
-
"X-Deepline-CLI-Version":
|
|
366
|
-
"X-Deepline-SDK-Version":
|
|
364
|
+
"X-Deepline-Agent-Runtime": _chunk6MIEJJSOjs.detectAgentRuntime.call(void 0, ),
|
|
365
|
+
"X-Deepline-CLI-Version": _chunk6MIEJJSOjs.SDK_VERSION,
|
|
366
|
+
"X-Deepline-SDK-Version": _chunk6MIEJJSOjs.SDK_VERSION
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
369
|
async function postFailureReport(input) {
|
|
@@ -391,7 +391,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
391
391
|
if (isFailureReportingDisabled()) return false;
|
|
392
392
|
let apiKey = "";
|
|
393
393
|
try {
|
|
394
|
-
apiKey =
|
|
394
|
+
apiKey = _chunkTVAFWAOQjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
395
395
|
} catch (e2) {
|
|
396
396
|
return false;
|
|
397
397
|
}
|
|
@@ -418,7 +418,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
418
418
|
failure_code: failureCode2,
|
|
419
419
|
failure_stage: failureStage,
|
|
420
420
|
error_body: "Automatic Deepline skills installation failed.",
|
|
421
|
-
cli_version:
|
|
421
|
+
cli_version: _chunk6MIEJJSOjs.SDK_VERSION,
|
|
422
422
|
context: {
|
|
423
423
|
environment: buildEnvironmentContext(),
|
|
424
424
|
skills_sync: {
|
|
@@ -538,7 +538,7 @@ function buildFailureReport(input) {
|
|
|
538
538
|
failure_kind: failureKind,
|
|
539
539
|
failure_code: code,
|
|
540
540
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
541
|
-
cli_version:
|
|
541
|
+
cli_version: _chunk6MIEJJSOjs.SDK_VERSION,
|
|
542
542
|
context: {
|
|
543
543
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
544
544
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -558,8 +558,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
558
558
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
559
559
|
const exitCode = resolvedExitCode(input);
|
|
560
560
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
561
|
-
const baseUrl =
|
|
562
|
-
const apiKey =
|
|
561
|
+
const baseUrl = _chunkTVAFWAOQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
562
|
+
const apiKey = _chunkTVAFWAOQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
563
563
|
if (!apiKey) return false;
|
|
564
564
|
return postFailureReport({
|
|
565
565
|
baseUrl,
|
|
@@ -914,8 +914,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
914
914
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
915
915
|
var defaultBrowserCommandRunner = childProcess;
|
|
916
916
|
function getAuthedHttpClient() {
|
|
917
|
-
const config =
|
|
918
|
-
return { config, http: new (0,
|
|
917
|
+
const config = _chunkTVAFWAOQjs.resolveConfig.call(void 0, );
|
|
918
|
+
return { config, http: new (0, _chunkTVAFWAOQjs.HttpClient)(config) };
|
|
919
919
|
}
|
|
920
920
|
function stableOsUserId() {
|
|
921
921
|
try {
|
|
@@ -1256,7 +1256,7 @@ function collectLocalEnvInfo() {
|
|
|
1256
1256
|
os: `${process.platform} ${process.arch}`,
|
|
1257
1257
|
node_version: process.version,
|
|
1258
1258
|
home_dir: homeDir,
|
|
1259
|
-
agent_runtime:
|
|
1259
|
+
agent_runtime: _chunk6MIEJJSOjs.detectAgentRuntime.call(void 0, )
|
|
1260
1260
|
};
|
|
1261
1261
|
const env = process.env;
|
|
1262
1262
|
const optional = {
|
|
@@ -1503,9 +1503,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
1503
1503
|
}
|
|
1504
1504
|
function withAgentCommandContext(value) {
|
|
1505
1505
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
1506
|
-
return
|
|
1506
|
+
return _chunk6MIEJJSOjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
1507
1507
|
...valueRecord,
|
|
1508
|
-
command_context:
|
|
1508
|
+
command_context: _chunkTVAFWAOQjs.resolveCliCommandContext.call(void 0, )
|
|
1509
1509
|
} : value;
|
|
1510
1510
|
}
|
|
1511
1511
|
function printJson(value, fields, options = {}) {
|
|
@@ -1677,7 +1677,7 @@ function errorToJsonPayload(error) {
|
|
|
1677
1677
|
...upstreamResponse ? { upstreamResponse } : {},
|
|
1678
1678
|
...Object.keys(details).length > 0 ? { details } : {}
|
|
1679
1679
|
};
|
|
1680
|
-
const retry = cliRetryGuidance(payloadError,
|
|
1680
|
+
const retry = cliRetryGuidance(payloadError, _chunk6MIEJJSOjs.readToolFailureHint.call(void 0, error));
|
|
1681
1681
|
return {
|
|
1682
1682
|
ok: false,
|
|
1683
1683
|
status: "failed",
|
|
@@ -19,6 +19,12 @@ function featureLines(id, features) {
|
|
|
19
19
|
)
|
|
20
20
|
];
|
|
21
21
|
}
|
|
22
|
+
function credentialSourceText(source) {
|
|
23
|
+
if (source === "user") return "your own provider key";
|
|
24
|
+
if (source === "managed") return "Deepline's managed key";
|
|
25
|
+
if (source === "none") return "no provider key needed";
|
|
26
|
+
return null;
|
|
27
|
+
}
|
|
22
28
|
function byokLines(byok) {
|
|
23
29
|
if (typeof byok.supported !== "boolean") {
|
|
24
30
|
return ["BYOK: unknown (this server does not report it)"];
|
|
@@ -711,6 +717,7 @@ function describedLines(described, view) {
|
|
|
711
717
|
...described.description ? [described.description] : [],
|
|
712
718
|
...described.signature ? [`Signature: ${described.signature}`] : [],
|
|
713
719
|
...described.cost ? [`Cost: ${described.cost}`] : [],
|
|
720
|
+
...credentialSourceText(described.credentialSource) ? [`Runs on: ${credentialSourceText(described.credentialSource)}`] : [],
|
|
714
721
|
...described.guidance.map((line) => `Guidance: ${line}`),
|
|
715
722
|
...described.rateLimit ? [`Rate limit: ${described.rateLimit}`] : [],
|
|
716
723
|
..._optionalChain([described, 'access', _18 => _18.toolUsage, 'optionalAccess', _19 => _19.effect]) ? [`Effect: ${described.toolUsage.effect}`] : [],
|
|
@@ -841,6 +848,7 @@ function describedJson(described, view) {
|
|
|
841
848
|
...described.cost ? { cost: described.cost } : {},
|
|
842
849
|
...described.rateLimit ? { rateLimit: described.rateLimit } : {},
|
|
843
850
|
...described.byok ? { byok: described.byok } : {},
|
|
851
|
+
...described.credentialSource ? { credentialSource: described.credentialSource } : {},
|
|
844
852
|
...described.connected !== void 0 ? { connected: described.connected } : {},
|
|
845
853
|
...described.credentialStatus ? { credentialStatus: described.credentialStatus } : {},
|
|
846
854
|
...described.connectCommand ? { connectCommand: described.connectCommand } : {},
|
|
@@ -1005,4 +1013,5 @@ function describedPlay(play) {
|
|
|
1005
1013
|
|
|
1006
1014
|
|
|
1007
1015
|
|
|
1008
|
-
|
|
1016
|
+
|
|
1017
|
+
exports.credentialSourceText = credentialSourceText; exports.byokLines = byokLines; exports.SCHEMA_LINE_LIMIT = SCHEMA_LINE_LIMIT; exports.schemaField = schemaField; exports.schemaFields = schemaFields; exports.rateLimitSummary = rateLimitSummary; exports.rateLimitQualifier = rateLimitQualifier; exports.schemaLines = schemaLines; exports.fieldBlockLines = fieldBlockLines; exports.examples = examples; exports.discoveryAuthLines = discoveryAuthLines; exports.describedLines = describedLines; exports.topLevelField = topLevelField; exports.describedJson = describedJson; exports.buildPlayDashboardUrl = buildPlayDashboardUrl; exports.buildPlayRunUrl = buildPlayRunUrl; exports.describedPlay = describedPlay;
|
|
@@ -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 _chunk7HOYKXVYjs = require('./chunk-7HOYKXVY.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkTVAFWAOQjs = require('./chunk-TVAFWAOQ.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 = _chunkTVAFWAOQjs.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunk7HOYKXVYjs.PlayClient)(
|
|
142
|
+
new (0, _chunkTVAFWAOQjs.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkQA55PGJHjs = require('./chunk-QA55PGJH.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ var _chunkSKHUWQZEjs = require('./chunk-SKHUWQZE.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkPGRRMVQ5js = require('./chunk-PGRRMVQ5.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
@@ -31,13 +31,13 @@ var VIEWS = {
|
|
|
31
31
|
details: model,
|
|
32
32
|
lines: [
|
|
33
33
|
...unlisted,
|
|
34
|
-
...
|
|
34
|
+
..._chunkQA55PGJHjs.formatModelDescription.call(void 0, model).trimEnd().split("\n")
|
|
35
35
|
]
|
|
36
36
|
};
|
|
37
37
|
},
|
|
38
38
|
byok: async (_value, tool) => ({
|
|
39
39
|
details: _nullishCoalesce(tool.byok, () => ( {})),
|
|
40
|
-
lines:
|
|
40
|
+
lines: _chunkPGRRMVQ5js.byokLines.call(void 0, _nullishCoalesce(tool.byok, () => ( {})))
|
|
41
41
|
})
|
|
42
42
|
};
|
|
43
43
|
var isFeatureView = (value) => typeof value === "string" && Object.hasOwn(VIEWS, value);
|
|
@@ -133,7 +133,7 @@ async function findNamed(reference, options, lookups) {
|
|
|
133
133
|
const record = await lookups.play(reference2);
|
|
134
134
|
if (!record) return null;
|
|
135
135
|
return {
|
|
136
|
-
described:
|
|
136
|
+
described: _chunkPGRRMVQ5js.describedPlay.call(void 0, record),
|
|
137
137
|
record: { ...record },
|
|
138
138
|
schemas: {
|
|
139
139
|
inputSchema: _nullishCoalesce(record.inputSchema, () => ( null)),
|
|
@@ -153,15 +153,15 @@ async function findNamed(reference, options, lookups) {
|
|
|
153
153
|
const features = toolFeatures(record);
|
|
154
154
|
return {
|
|
155
155
|
described: {
|
|
156
|
-
...
|
|
156
|
+
..._chunkQA55PGJHjs.describedTool.call(void 0, record, name),
|
|
157
157
|
...features.length ? { features: features.map(({ view: _view, ...feature }) => feature) } : {}
|
|
158
158
|
},
|
|
159
|
-
record:
|
|
159
|
+
record: _chunkQA55PGJHjs.toolMetadataJsonForDescribe.call(void 0,
|
|
160
160
|
record,
|
|
161
161
|
name,
|
|
162
162
|
lookups.seedStarterScript
|
|
163
163
|
),
|
|
164
|
-
schemas:
|
|
164
|
+
schemas: _chunkQA55PGJHjs.publicToolSchemas.call(void 0, record),
|
|
165
165
|
feature: (featureName, value) => {
|
|
166
166
|
const feature = features.find(({ name: name2 }) => name2 === featureName);
|
|
167
167
|
return feature ? describeFeature(record, feature, value, {
|
|
@@ -208,7 +208,7 @@ async function describeName(name, options, lookups) {
|
|
|
208
208
|
const note = shadows ? `Showing your org play "${name}". It has the same name as a Deepline ${shadows.kind.replace("_", " ")}; see that one with: ${shadows.describeCommand}` : null;
|
|
209
209
|
const verbose = options.verbose === true;
|
|
210
210
|
const isPlay = described.kind === "prebuilt_play" || described.kind === "custom_play";
|
|
211
|
-
const dashboardUrl = isPlay ?
|
|
211
|
+
const dashboardUrl = isPlay ? _chunkPGRRMVQ5js.buildPlayDashboardUrl.call(void 0,
|
|
212
212
|
lookups.baseUrl,
|
|
213
213
|
described.id,
|
|
214
214
|
lookups.dashboardOrgId
|
|
@@ -276,7 +276,7 @@ async function describeName(name, options, lookups) {
|
|
|
276
276
|
},
|
|
277
277
|
lines: [
|
|
278
278
|
`${described.id} [${described.kind.replace("_", " ")}]`,
|
|
279
|
-
...
|
|
279
|
+
..._chunkPGRRMVQ5js.schemaLines.call(void 0, described, {
|
|
280
280
|
full: true,
|
|
281
281
|
secondary: true,
|
|
282
282
|
...fields.length ? { fields } : {}
|
|
@@ -285,17 +285,17 @@ async function describeName(name, options, lookups) {
|
|
|
285
285
|
} : {
|
|
286
286
|
envelope: {
|
|
287
287
|
...summary,
|
|
288
|
-
inputs: inputs.map(
|
|
289
|
-
outputs: outputs.map(
|
|
290
|
-
...described.rowInputs ? { rowInputs: described.rowInputs.map(
|
|
291
|
-
...described.rowOutputs ? { rowOutputs: described.rowOutputs.map(
|
|
292
|
-
runExamples:
|
|
288
|
+
inputs: inputs.map(_chunkPGRRMVQ5js.topLevelField),
|
|
289
|
+
outputs: outputs.map(_chunkPGRRMVQ5js.topLevelField),
|
|
290
|
+
...described.rowInputs ? { rowInputs: described.rowInputs.map(_chunkPGRRMVQ5js.topLevelField) } : {},
|
|
291
|
+
...described.rowOutputs ? { rowOutputs: described.rowOutputs.map(_chunkPGRRMVQ5js.topLevelField) } : {},
|
|
292
|
+
runExamples: _chunkPGRRMVQ5js.examples.call(void 0, described, { verbose }),
|
|
293
293
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
294
294
|
...shadows ? { shadows, note } : {}
|
|
295
295
|
},
|
|
296
296
|
lines: [
|
|
297
297
|
...note ? [`Note: ${note}`, ""] : [],
|
|
298
|
-
...
|
|
298
|
+
..._chunkPGRRMVQ5js.describedLines.call(void 0, described, {
|
|
299
299
|
cli: shown && (!named || options.cliExample === true),
|
|
300
300
|
play: shown && (!named || options.playExample === true),
|
|
301
301
|
explain: named,
|
|
@@ -312,7 +312,7 @@ async function describeName(name, options, lookups) {
|
|
|
312
312
|
// its value stands, so callers of the older commands read what they did.
|
|
313
313
|
{ ...view.envelope, ...record }
|
|
314
314
|
) : {
|
|
315
|
-
...
|
|
315
|
+
..._chunkPGRRMVQ5js.describedJson.call(void 0, described, {
|
|
316
316
|
secondary: verbose || fields.length > 0,
|
|
317
317
|
verbose
|
|
318
318
|
}),
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkPGRRMVQ5js = require('./chunk-PGRRMVQ5.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -80,6 +80,9 @@ var CapabilityDescription = class _CapabilityDescription {
|
|
|
80
80
|
const billingSourceLabel = stringValue(
|
|
81
81
|
_nullishCoalesce(this.#catalogEntry.billingSourceLabel, () => ( this.#catalogEntry.billing_source_label))
|
|
82
82
|
);
|
|
83
|
+
const credentialSource = stringValue(
|
|
84
|
+
_nullishCoalesce(this.#catalogEntry.credentialSource, () => ( this.#catalogEntry.credential_source))
|
|
85
|
+
);
|
|
83
86
|
const isFree = billingSource === "free";
|
|
84
87
|
const displayText = stringValue(
|
|
85
88
|
_nullishCoalesce(pricing.displayText, () => ( pricing.display_text))
|
|
@@ -99,6 +102,7 @@ var CapabilityDescription = class _CapabilityDescription {
|
|
|
99
102
|
),
|
|
100
103
|
billingSource,
|
|
101
104
|
billingSourceLabel,
|
|
105
|
+
...credentialSource ? { credentialSource } : {},
|
|
102
106
|
deeplineCreditsPerPricingUnit: isFree ? 0 : canonicalCredits,
|
|
103
107
|
deeplineUsdPerPricingUnit: isFree ? 0 : canonicalUsd,
|
|
104
108
|
...pricing.estimatedRange && showManagedPricing ? {
|
|
@@ -314,7 +318,7 @@ function extractorValueType(name) {
|
|
|
314
318
|
}
|
|
315
319
|
const named = NAMED_VALUE_SHAPES[definition.valueKind];
|
|
316
320
|
if (!named) return { type: "string" };
|
|
317
|
-
const { type, fields } =
|
|
321
|
+
const { type, fields } = _chunkPGRRMVQ5js.schemaField.call(void 0, name, named.schema, true);
|
|
318
322
|
return { type, ...fields ? { fields } : {}, shape: named.shape };
|
|
319
323
|
}
|
|
320
324
|
function jsonSchemaOf(wrapper) {
|
|
@@ -374,7 +378,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
374
378
|
// The server's public monitor pricing sends `display`.
|
|
375
379
|
cost: stringField(pricing, "display", "displayText") || void 0,
|
|
376
380
|
guidance: [],
|
|
377
|
-
inputs:
|
|
381
|
+
inputs: _chunkPGRRMVQ5js.schemaFields.call(void 0,
|
|
378
382
|
recordField(tool, "payload_schema", "payloadSchema")
|
|
379
383
|
),
|
|
380
384
|
outputs: [],
|
|
@@ -411,7 +415,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
411
415
|
(path) => path.replace(/^toolResponse\.raw\./, "")
|
|
412
416
|
);
|
|
413
417
|
const node = roots.flatMap((root) => paths.map((path) => schemaNodeAt(root, path))).find(isRecord);
|
|
414
|
-
const { fields, ...typed } =
|
|
418
|
+
const { fields, ...typed } = _chunkPGRRMVQ5js.schemaField.call(void 0, name, node, true);
|
|
415
419
|
const valueType = stringField(_nullishCoalesce(details.get(name), () => ( {})), "valueType");
|
|
416
420
|
const deepline = kind === "extractedValues" ? extractorValueType(name) : void 0;
|
|
417
421
|
const known = typed.type !== "unknown" ? void 0 : kind === "extractedLists" ? { type: "object[]" } : deepline;
|
|
@@ -460,12 +464,18 @@ function describedTool(tool, requestedToolId) {
|
|
|
460
464
|
);
|
|
461
465
|
const provider = stringField(tool, "provider");
|
|
462
466
|
const connectCommand = credentialStatus === "requires_connection" && (!byok || byok.setupUrl) && /^[a-z0-9][a-z0-9_-]*$/.test(provider) ? `deepline integrations connect ${provider} --link --json` : void 0;
|
|
467
|
+
const credentialSource = stringField(
|
|
468
|
+
tool,
|
|
469
|
+
"credentialSource",
|
|
470
|
+
"credential_source"
|
|
471
|
+
);
|
|
463
472
|
return {
|
|
464
473
|
kind: "tool",
|
|
465
474
|
id: String(contract.toolId),
|
|
466
475
|
...provider ? { provider } : {},
|
|
467
476
|
displayName,
|
|
468
477
|
description,
|
|
478
|
+
...credentialSource ? { credentialSource } : {},
|
|
469
479
|
cost: [
|
|
470
480
|
stringField(cost, "displayText"),
|
|
471
481
|
// "Free (free)" says the same thing twice, as does "Uses your provided
|
|
@@ -481,7 +491,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
481
491
|
],
|
|
482
492
|
rateLimit: withPlanRateLimit(
|
|
483
493
|
recordField(recordField(tool, "pricing"), "benefit").requestsPerMinute,
|
|
484
|
-
|
|
494
|
+
_chunkPGRRMVQ5js.rateLimitSummary.call(void 0,
|
|
485
495
|
recordField(contract, "executionMetadata").configuredRateLimits
|
|
486
496
|
)
|
|
487
497
|
),
|
|
@@ -491,9 +501,9 @@ function describedTool(tool, requestedToolId) {
|
|
|
491
501
|
...connectCommand && !_optionalChain([tool, 'access', _5 => _5.auth, 'optionalAccess', _6 => _6.connectionRequired]) ? { connectCommand } : {},
|
|
492
502
|
...tool.auth ? { auth: tool.auth } : {},
|
|
493
503
|
...tool.toolUsage ? { toolUsage: tool.toolUsage } : {},
|
|
494
|
-
inputs:
|
|
504
|
+
inputs: _chunkPGRRMVQ5js.schemaFields.call(void 0, inputSchema),
|
|
495
505
|
outputs: [...lists, ...values].map(({ field }) => field),
|
|
496
|
-
rawResponse:
|
|
506
|
+
rawResponse: _chunkPGRRMVQ5js.schemaFields.call(void 0, outputSchema),
|
|
497
507
|
runner: playReference ? { via: "play", reference: playReference } : { via: "tool", toolId: String(contract.toolId), inputSchema }
|
|
498
508
|
};
|
|
499
509
|
}
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6GON36H3.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-YCWRKSLB.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
10
10
|
findNamed
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VFIIRK7S.mjs";
|
|
12
12
|
import {
|
|
13
13
|
SCHEMA_LINE_LIMIT
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DTQBQSUU.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6EVVUVU3.mjs";
|
|
18
18
|
import {
|
|
19
19
|
failureReportHeaders,
|
|
20
20
|
isFailureReportingDisabled,
|
|
21
21
|
printCommandEnvelope
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-6DMGKAWO.mjs";
|
|
23
23
|
import {
|
|
24
24
|
autoDetectBaseUrl,
|
|
25
25
|
resolveApiKeyForBaseUrl,
|
|
26
26
|
resolveCliDashboardOrgId
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-3Z4TVZE7.mjs";
|
|
28
28
|
|
|
29
29
|
// src/cli/commands/describe.ts
|
|
30
30
|
import { writeFileSync } from "fs";
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6DMGKAWO.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-3Z4TVZE7.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-I2TSRLOI.mjs";
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rejectRestrictedFeedback
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OSRATALX.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getAuthedHttpClient,
|
|
6
6
|
printCommandEnvelope
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-6DMGKAWO.mjs";
|
|
8
8
|
import {
|
|
9
9
|
agentSessionIdFromEnvironment,
|
|
10
10
|
claudeProjectsRoots,
|
|
11
11
|
coworkTranscriptFromEnvironment
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-I2TSRLOI.mjs";
|
|
13
13
|
|
|
14
14
|
// src/cli/commands/sessions.ts
|
|
15
15
|
import {
|
|
@@ -1,7 +1,7 @@
|
|
|
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 _chunk6MIEJJSOjs = require('./chunk-6MIEJJSO.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
|
|
@@ -778,7 +778,7 @@ function readSkillsVersionFile(path) {
|
|
|
778
778
|
}
|
|
779
779
|
}
|
|
780
780
|
function resolveAutoSyncSkillAgents() {
|
|
781
|
-
switch (
|
|
781
|
+
switch (_chunk6MIEJJSOjs.detectAgentRuntime.call(void 0, )) {
|
|
782
782
|
case "codex":
|
|
783
783
|
return ["codex"];
|
|
784
784
|
case "claude_code":
|
|
@@ -848,7 +848,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
|
|
|
848
848
|
}
|
|
849
849
|
|
|
850
850
|
// src/http.ts
|
|
851
|
-
var HttpClient2 = class extends
|
|
851
|
+
var HttpClient2 = class extends _chunk6MIEJJSOjs.HttpClient {
|
|
852
852
|
constructor(config) {
|
|
853
853
|
super(config, readSdkSkillsLocalVersion);
|
|
854
854
|
}
|
|
@@ -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 _chunk7HOYKXVYjs = require('./chunk-7HOYKXVY.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkTVAFWAOQjs = require('./chunk-TVAFWAOQ.js');
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunk7HOYKXVYjs.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
12
|
+
const config = _chunkTVAFWAOQjs.resolveConfig.call(void 0, options);
|
|
13
|
+
super(config, new (0, _chunkTVAFWAOQjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
formatModelDescription,
|
|
4
4
|
publicToolSchemas,
|
|
5
5
|
toolMetadataJsonForDescribe
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-BZ4M7OFO.mjs";
|
|
7
7
|
import {
|
|
8
8
|
buildPlayDashboardUrl,
|
|
9
9
|
byokLines,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
examples,
|
|
14
14
|
schemaLines,
|
|
15
15
|
topLevelField
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-DTQBQSUU.mjs";
|
|
17
17
|
import {
|
|
18
18
|
DeeplineError
|
|
19
19
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JFS4KHA3.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-6DMGKAWO.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-3Z4TVZE7.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-I2TSRLOI.mjs";
|
|
28
28
|
import {
|
|
29
29
|
DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
|
|
30
30
|
} from "./chunk-5JPKRDFC.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
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 _chunkXTM6NOJ6js = require('./chunk-XTM6NOJ6.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkTJCENACZjs = require('./chunk-TJCENACZ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkTVAFWAOQjs = require('./chunk-TVAFWAOQ.js');
|
|
11
11
|
|
|
12
12
|
// src/cli/concurrent-runs-help.ts
|
|
13
13
|
var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
|
|
@@ -24,11 +24,11 @@ function concurrentRunsLine(payload) {
|
|
|
24
24
|
return plans ? `${here} Plan limits: ${plans}.` : here;
|
|
25
25
|
}
|
|
26
26
|
async function concurrentRunsHelpStatus(timeoutMs = 2e3) {
|
|
27
|
-
const baseUrl =
|
|
28
|
-
const apiKey =
|
|
27
|
+
const baseUrl = _chunkTVAFWAOQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
28
|
+
const apiKey = _chunkTVAFWAOQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
29
29
|
if (!apiKey) return "";
|
|
30
30
|
try {
|
|
31
|
-
const { status, data } = await
|
|
31
|
+
const { status, data } = await _chunkXTM6NOJ6js.httpJson.call(void 0,
|
|
32
32
|
"GET",
|
|
33
33
|
`${baseUrl}/api/v2/billing/entitlements`,
|
|
34
34
|
apiKey,
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6DMGKAWO.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-3Z4TVZE7.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|