deepline 0.3.543 → 0.3.545
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 +11 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/monitor-fleet-contract.ts +3 -1
- package/dist/bundling-sources/shared_libs/monitors/fleets/errors.ts +5 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/issues.ts +5 -1
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +6 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +142 -3
- package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +29 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +13 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +1 -1
- package/dist/cli/auth-455MB4K6.js +43 -0
- package/dist/cli/{auth-ITAELTOA.mjs → auth-VZAMAMFW.mjs} +5 -5
- package/dist/cli/{billing-33XVFDUJ.js → billing-ASZJDFH2.js} +92 -92
- package/dist/cli/{billing-WZ7RVZW4.mjs → billing-DADQUQEZ.mjs} +8 -8
- package/dist/cli/{chunk-NR3O56FT.mjs → chunk-2CBX43LP.mjs} +5 -5
- package/dist/cli/{chunk-F6VSQ5LN.js → chunk-2FF3O2Y2.js} +12 -12
- package/dist/cli/{chunk-52YK3EII.mjs → chunk-2HFSYH7V.mjs} +2 -2
- package/dist/cli/{chunk-EHUG6EUT.js → chunk-34UKDHRL.js} +26 -26
- package/dist/cli/{chunk-JXG7HWBA.mjs → chunk-3M2QH3KA.mjs} +1 -1
- package/dist/cli/{chunk-2NCJQEZH.js → chunk-3NG43NXB.js} +53 -53
- package/dist/cli/{chunk-4SKDSSPU.mjs → chunk-3TCHX7YK.mjs} +2 -2
- package/dist/cli/{chunk-5VIPTLRX.mjs → chunk-4NZ3OZNO.mjs} +1 -1
- package/dist/cli/{chunk-ZRT2PNYY.mjs → chunk-52C6W7FG.mjs} +1 -1
- package/dist/cli/{chunk-STXG2LFC.js → chunk-5YYWZ43J.js} +2 -2
- package/dist/cli/{chunk-274WKLSY.mjs → chunk-7JZ27AFH.mjs} +2 -2
- package/dist/cli/{chunk-R57UCXQG.mjs → chunk-7MFATEUC.mjs} +1 -1
- package/dist/cli/{chunk-MCBUWK5K.js → chunk-7MHBJU73.js} +22 -22
- package/dist/cli/{chunk-XFPVFWZR.mjs → chunk-7P72EGLK.mjs} +1 -1
- package/dist/cli/{chunk-TBCNL2T5.js → chunk-C6XYSTBW.js} +1 -1
- package/dist/cli/{chunk-QFRMVI4S.js → chunk-CJ7DBYEQ.js} +3 -3
- package/dist/cli/{chunk-YE3T73BV.js → chunk-CXETRZ3G.js} +10 -10
- package/dist/cli/{chunk-BGAUADV4.js → chunk-D3SXB2NX.js} +41 -41
- package/dist/cli/{chunk-UJ6GOV7K.js → chunk-DGKDCZGC.js} +13 -13
- package/dist/cli/{chunk-46BEBZ3M.js → chunk-DZTVDL2X.js} +29 -28
- package/dist/cli/{chunk-2KTGZKRE.js → chunk-EK5C2R7S.js} +15 -15
- package/dist/cli/{chunk-YJYKZ2U3.js → chunk-ERLW6RPA.js} +2 -2
- package/dist/cli/{chunk-VSJEOSYL.mjs → chunk-EWA3M54M.mjs} +1 -1
- package/dist/cli/{chunk-2LNTKICO.js → chunk-FB7UPZ6M.js} +3 -3
- package/dist/cli/{chunk-PX7XAVUC.js → chunk-G5TV6WLV.js} +19 -19
- package/dist/cli/{chunk-NHKP2NSU.js → chunk-GFRJU2KB.js} +2 -2
- package/dist/cli/{chunk-D6YAU3CF.mjs → chunk-GWDPNOA7.mjs} +2 -1
- package/dist/cli/{chunk-ZSPBJB7I.mjs → chunk-HLUNTJBO.mjs} +4 -4
- package/dist/cli/{chunk-OELJKQOL.mjs → chunk-HPX7LLAM.mjs} +2 -2
- package/dist/cli/{chunk-DI3GL3T6.js → chunk-HR5BT42R.js} +99 -99
- package/dist/cli/{chunk-3JZXU5OB.js → chunk-IYJO3RWR.js} +5 -5
- package/dist/cli/{chunk-DH43ECTN.mjs → chunk-JL5JU3LD.mjs} +2 -2
- package/dist/cli/{chunk-OAFKUHN5.mjs → chunk-KRW727W6.mjs} +4 -4
- package/dist/cli/{chunk-SYOPHFKB.mjs → chunk-KYO2FICL.mjs} +5 -5
- package/dist/cli/{chunk-FNW2SGPD.mjs → chunk-LTCEZWPZ.mjs} +2 -2
- package/dist/cli/{chunk-XBM3KABD.mjs → chunk-LWPFMYSO.mjs} +2 -2
- package/dist/cli/{chunk-NLENABRU.js → chunk-N4LADLCO.js} +6 -6
- package/dist/cli/{chunk-XSN6BAZT.mjs → chunk-NAN3A4IF.mjs} +5 -5
- package/dist/cli/{chunk-23D224GI.js → chunk-NCX2JH2F.js} +9 -9
- package/dist/cli/{chunk-DUGTPVT7.js → chunk-NZDZGK35.js} +7 -7
- package/dist/cli/{chunk-C35NLLSA.js → chunk-OGQYAJSO.js} +5 -5
- package/dist/cli/{chunk-J2F6F5GL.js → chunk-QI57XUGA.js} +5 -5
- package/dist/cli/{chunk-O2KLWUNI.js → chunk-QM7PHHYZ.js} +44 -44
- package/dist/cli/{chunk-5MN3BKNB.js → chunk-TQKHXMV3.js} +16 -16
- package/dist/cli/{chunk-SU4K4SUU.mjs → chunk-WP36UBRY.mjs} +1 -1
- package/dist/cli/{chunk-AACKPOGA.mjs → chunk-XBYQZEUE.mjs} +1 -1
- package/dist/cli/{chunk-7AUQTNLB.mjs → chunk-XGEUPU3L.mjs} +2 -2
- package/dist/cli/{chunk-HKJ26NRN.mjs → chunk-XMUPZINS.mjs} +5 -5
- package/dist/cli/{chunk-GRCFX2EG.js → chunk-YRQKRQDU.js} +4 -4
- package/dist/cli/{chunk-6SJZMMD5.mjs → chunk-YWTRCKGD.mjs} +11 -11
- package/dist/cli/{chunk-SZNJENGT.mjs → chunk-Z4Y4BLW7.mjs} +3 -3
- package/dist/cli/{chunk-W2OPPSAZ.mjs → chunk-Z7QM244Q.mjs} +3 -3
- package/dist/cli/concurrent-runs-help-GFWXOKF5.js +21 -0
- package/dist/cli/{concurrent-runs-help-Z6ODNL4E.mjs → concurrent-runs-help-YP7ALTDB.mjs} +6 -6
- package/dist/cli/{csv-SSOFTXHU.js → csv-67WT5EGR.js} +13 -13
- package/dist/cli/{csv-5QW2HPHT.mjs → csv-D5ITFSYI.mjs} +4 -4
- package/dist/cli/{db-4LK5AJNO.js → db-GZS76X7R.js} +27 -27
- package/dist/cli/{db-K2JMR6EM.mjs → db-SZYBRFYG.mjs} +6 -6
- package/dist/cli/{describe-AXHQZHTT.mjs → describe-YJ7ZLLLI.mjs} +18 -18
- package/dist/cli/describe-ZRGYAEBT.js +50 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-FY2XTX2W.mjs → executions-HMYGR32E.mjs} +6 -6
- package/dist/cli/{executions-AATJQQAQ.js → executions-O5USTYGL.js} +8 -8
- package/dist/cli/{feedback-QPVJER75.js → feedback-RHLFDCRS.js} +14 -14
- package/dist/cli/{feedback-MKBPRGS6.mjs → feedback-Z3NXWYUO.mjs} +6 -6
- package/dist/cli/{git-AGRFZR3K.mjs → git-CLFKXELB.mjs} +5 -5
- package/dist/cli/git-RC4XDATD.js +25 -0
- package/dist/cli/index.js +142 -142
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{integrations-OUQ6U33M.mjs → integrations-FOACOBQB.mjs} +7 -7
- package/dist/cli/{integrations-R6OUFZXI.js → integrations-TZ4QEQGV.js} +15 -15
- package/dist/cli/{legacy-noops-DVL2RRKL.mjs → legacy-noops-6F6Y3BV7.mjs} +6 -6
- package/dist/cli/{legacy-noops-H7INM2QN.js → legacy-noops-QRDOS33V.js} +9 -9
- package/dist/cli/{mcp-33F7D7WI.js → mcp-ETMMDDGB.js} +24 -24
- package/dist/cli/{mcp-2Z2YVOLK.mjs → mcp-UXRCWOZU.mjs} +4 -4
- package/dist/cli/{monitors-NZD2WIKK.mjs → monitors-6XEWR46R.mjs} +86 -13
- package/dist/cli/{monitors-KDUJHAKJ.js → monitors-DITT7QTV.js} +179 -106
- package/dist/cli/{org-4PQGHLEB.js → org-4DE37X3L.js} +88 -88
- package/dist/cli/{org-EJW45RUA.mjs → org-CVSSH73G.mjs} +6 -6
- package/dist/cli/{play-MLHMQL4G.js → play-RH6P45CI.js} +317 -317
- package/dist/cli/{play-3CM5RT5J.mjs → play-Y5NCHOKK.mjs} +17 -17
- package/dist/cli/{providers-YBJG7277.js → providers-DU42DLOL.js} +9 -9
- package/dist/cli/{providers-BHYBJI4R.mjs → providers-VHUHC4IZ.mjs} +6 -6
- package/dist/cli/{quickstart-LL3MR562.mjs → quickstart-HJY5YYE5.mjs} +4 -4
- package/dist/cli/{quickstart-O7L2NNGJ.js → quickstart-XJ43JLEC.js} +6 -6
- package/dist/cli/{run-OK545H5Q.mjs → run-JAIXHVH7.mjs} +23 -23
- package/dist/cli/{run-HJ2AR6CM.js → run-JXUS7QFI.js} +43 -43
- package/dist/cli/search-O5VVMXII.js +32 -0
- package/dist/cli/{search-Z5ZKMRTX.mjs → search-RDMNM2AX.mjs} +7 -7
- package/dist/cli/{search-output-SVW4DETG.js → search-output-RKAM2HBH.js} +6 -6
- package/dist/cli/{search-output-Q5VHNUWG.mjs → search-output-ZKTR3WTJ.mjs} +4 -4
- package/dist/cli/{secrets-ENQWMCB5.js → secrets-TKFVMAYX.js} +15 -15
- package/dist/cli/{secrets-QIKIEFWB.mjs → secrets-WSW3FTF6.mjs} +6 -6
- package/dist/cli/sessions-3PWFWCHO.js +22 -0
- package/dist/cli/{sessions-AETO22RF.mjs → sessions-724BK6VP.mjs} +6 -6
- package/dist/cli/{settings-OFLIFTMZ.js → settings-5LJZDAZU.js} +85 -85
- package/dist/cli/{settings-G5RGRPFV.mjs → settings-YRC7J75G.mjs} +12 -12
- package/dist/cli/{setup-QW7Y62XD.js → setup-2F3DBSOS.js} +49 -49
- package/dist/cli/{setup-G4N3X6KG.mjs → setup-STNPX5MK.mjs} +9 -9
- package/dist/cli/{skills-QRFQGHNA.mjs → skills-D5PK56FO.mjs} +7 -7
- package/dist/cli/skills-RFOMVXIT.js +36 -0
- package/dist/cli/tools-CAO6EVUW.js +57 -0
- package/dist/cli/{tools-52BH7UTF.mjs → tools-WOGWMBA3.mjs} +17 -17
- package/dist/cli/update-L4DQZY3G.js +34 -0
- package/dist/cli/{update-SDGZLAGL.mjs → update-PC6XSWMI.mjs} +9 -9
- package/dist/cli/{views-5QKAWYPI.js → views-HLCLAPWN.js} +21 -21
- package/dist/cli/{views-3BIJFJMQ.mjs → views-IIHT4RYQ.mjs} +6 -6
- package/dist/cli/{workflow-G67RPWVY.js → workflow-CCZ2A7DI.js} +17 -17
- package/dist/cli/{workflow-QAK773FR.mjs → workflow-HK4MZ7LK.mjs} +7 -7
- package/dist/{client-D1ga52xq.d.ts → client-BQ6yuSjM.d.ts} +1 -1
- package/dist/{client-bd4QQIXo.d.mts → client-DfdUc_MY.d.mts} +1 -1
- package/dist/{client-core-B6eMVx8h.d.ts → client-core-3GQ8WMuk.d.ts} +14 -0
- package/dist/{client-core-CqfWNf2Q.d.mts → client-core-ClsNRytk.d.mts} +14 -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 +114 -114
- 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-S6B5WUU5.js +0 -43
- package/dist/cli/concurrent-runs-help-E4OYD3DS.js +0 -21
- package/dist/cli/describe-AC6PLEFP.js +0 -50
- package/dist/cli/git-RUYFQEJX.js +0 -25
- package/dist/cli/search-UUNS6BCC.js +0 -32
- package/dist/cli/sessions-FNSUDERA.js +0 -22
- package/dist/cli/skills-3IXIY2IV.js +0 -36
- package/dist/cli/tools-MYBUMPKH.js +0 -57
- package/dist/cli/update-GT7574UU.js +0 -34
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkHR5BT42Rjs = require('./chunk-HR5BT42R.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkNZDZGK35js = require('./chunk-NZDZGK35.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,16 +14,16 @@ var _chunkRKF263LRjs = require('./chunk-RKF263LR.js');
|
|
|
14
14
|
var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkIYJO3RWRjs = require('./chunk-IYJO3RWR.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkG5TV6WLVjs = require('./chunk-G5TV6WLV.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunkCJ7DBYEQjs = require('./chunk-CJ7DBYEQ.js');
|
|
27
27
|
|
|
28
28
|
// src/cli/commands/describe.ts
|
|
29
29
|
var _fs = require('fs');
|
|
@@ -32,14 +32,14 @@ var _path = require('path');
|
|
|
32
32
|
// src/cli/doc-read-reporting.ts
|
|
33
33
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
34
34
|
async function reportDocRead(docId) {
|
|
35
|
-
if (
|
|
35
|
+
if (_chunkG5TV6WLVjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
36
36
|
try {
|
|
37
|
-
const baseUrl =
|
|
38
|
-
const apiKey =
|
|
37
|
+
const baseUrl = _chunkCJ7DBYEQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
38
|
+
const apiKey = _chunkCJ7DBYEQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
39
39
|
if (!apiKey) return;
|
|
40
40
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
41
41
|
method: "POST",
|
|
42
|
-
headers:
|
|
42
|
+
headers: _chunkG5TV6WLVjs.failureReportHeaders.call(void 0, apiKey),
|
|
43
43
|
body: JSON.stringify({ doc_id: docId }),
|
|
44
44
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
45
45
|
});
|
|
@@ -52,16 +52,16 @@ function nothingNamed(name) {
|
|
|
52
52
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
53
53
|
}
|
|
54
54
|
function findNamed2(name, options) {
|
|
55
|
-
return _chunkRKF263LRjs.findNamed.call(void 0, name, options, _chunkRKF263LRjs.describeLookupsFor.call(void 0, new (0,
|
|
55
|
+
return _chunkRKF263LRjs.findNamed.call(void 0, name, options, _chunkRKF263LRjs.describeLookupsFor.call(void 0, new (0, _chunkIYJO3RWRjs.DeeplineClient)()));
|
|
56
56
|
}
|
|
57
57
|
async function describeAnything(name, options, onMissing) {
|
|
58
|
-
const client = new (0,
|
|
58
|
+
const client = new (0, _chunkIYJO3RWRjs.DeeplineClient)();
|
|
59
59
|
const lookups = _chunkRKF263LRjs.describeLookupsFor.call(void 0, client);
|
|
60
60
|
const outcome = await _chunkRKF263LRjs.describeName.call(void 0, name, options, {
|
|
61
61
|
...lookups,
|
|
62
62
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
63
63
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
64
|
-
seedStarterScript:
|
|
64
|
+
seedStarterScript: _chunkHR5BT42Rjs.seedToolListScript
|
|
65
65
|
});
|
|
66
66
|
if (outcome.status === "missing") {
|
|
67
67
|
if (onMissing) return onMissing();
|
|
@@ -87,18 +87,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
87
87
|
` : text;
|
|
88
88
|
_fs.writeFileSync.call(void 0, path, content);
|
|
89
89
|
const bytes = Buffer.byteLength(content);
|
|
90
|
-
|
|
90
|
+
_chunkG5TV6WLVjs.printCommandEnvelope.call(void 0,
|
|
91
91
|
{ path, bytes },
|
|
92
92
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
93
93
|
` }
|
|
94
94
|
);
|
|
95
95
|
return 0;
|
|
96
96
|
}
|
|
97
|
-
|
|
97
|
+
_chunkG5TV6WLVjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
98
98
|
return 0;
|
|
99
99
|
}
|
|
100
100
|
function registerDescribeCommand(program) {
|
|
101
|
-
|
|
101
|
+
_chunkNZDZGK35js.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
102
102
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
103
103
|
).addHelpText(
|
|
104
104
|
"after",
|
|
@@ -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 _chunkG5TV6WLVjs = require('./chunk-G5TV6WLV.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
|
+
_chunkG5TV6WLVjs.printCommandEnvelope.call(void 0,
|
|
61
61
|
{ ok: false, code, exitCode: 2, message },
|
|
62
62
|
{ json: true }
|
|
63
63
|
);
|
|
@@ -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; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkG5TV6WLVjs = require('./chunk-G5TV6WLV.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
var _worker_threads = require('worker_threads');
|
|
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
|
|
|
19
19
|
__init9() {this.quiet = false}
|
|
20
20
|
// --json output is one JSON document: progress never renders under it.
|
|
21
21
|
constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
|
|
22
|
-
this.enabled = enabled && !
|
|
22
|
+
this.enabled = enabled && !_chunkG5TV6WLVjs.isJsonOutputMode.call(void 0, );
|
|
23
23
|
}
|
|
24
24
|
setLogWriter(writer) {
|
|
25
25
|
this.logWriter = writer;
|
|
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
|
|
|
59
59
|
this.logWriter(line);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
62
|
+
if (_chunkG5TV6WLVjs.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkCJ7DBYEQjs = require('./chunk-CJ7DBYEQ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkYRQKRQDUjs = require('./chunk-YRQKRQDU.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
@@ -330,7 +330,7 @@ function buildEnvironmentContext() {
|
|
|
330
330
|
node_version: process.version,
|
|
331
331
|
runtime: "Node.js",
|
|
332
332
|
hostname: _os.hostname.call(void 0, ),
|
|
333
|
-
agent_runtime:
|
|
333
|
+
agent_runtime: _chunkYRQKRQDUjs.detectAgentRuntime.call(void 0, )
|
|
334
334
|
};
|
|
335
335
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
336
336
|
const normalized = _optionalChain([process, 'access', _6 => _6.env, 'access', _7 => _7[key], 'optionalAccess', _8 => _8.trim, 'call', _9 => _9()]);
|
|
@@ -351,18 +351,18 @@ function buildEnvironmentContext() {
|
|
|
351
351
|
return context;
|
|
352
352
|
}
|
|
353
353
|
function failureReportHeaders(apiKey) {
|
|
354
|
-
const agentSessionId =
|
|
354
|
+
const agentSessionId = _chunkYRQKRQDUjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
355
355
|
return {
|
|
356
|
-
...
|
|
356
|
+
..._chunkYRQKRQDUjs.deploymentProtectionHeaders.call(void 0, ),
|
|
357
357
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
358
358
|
Authorization: `Bearer ${apiKey}`,
|
|
359
359
|
"Content-Type": "application/json",
|
|
360
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
360
|
+
"User-Agent": `deepline-ts-sdk/${_chunkYRQKRQDUjs.SDK_VERSION}`,
|
|
361
361
|
"X-Deepline-Client-Family": "sdk",
|
|
362
362
|
"X-Deepline-CLI-Family": "sdk",
|
|
363
|
-
"X-Deepline-Agent-Runtime":
|
|
364
|
-
"X-Deepline-CLI-Version":
|
|
365
|
-
"X-Deepline-SDK-Version":
|
|
363
|
+
"X-Deepline-Agent-Runtime": _chunkYRQKRQDUjs.detectAgentRuntime.call(void 0, ),
|
|
364
|
+
"X-Deepline-CLI-Version": _chunkYRQKRQDUjs.SDK_VERSION,
|
|
365
|
+
"X-Deepline-SDK-Version": _chunkYRQKRQDUjs.SDK_VERSION
|
|
366
366
|
};
|
|
367
367
|
}
|
|
368
368
|
async function postFailureReport(input) {
|
|
@@ -390,7 +390,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
390
390
|
if (isFailureReportingDisabled()) return false;
|
|
391
391
|
let apiKey = "";
|
|
392
392
|
try {
|
|
393
|
-
apiKey =
|
|
393
|
+
apiKey = _chunkCJ7DBYEQjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
394
394
|
} catch (e2) {
|
|
395
395
|
return false;
|
|
396
396
|
}
|
|
@@ -417,7 +417,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
417
417
|
failure_code: failureCode2,
|
|
418
418
|
failure_stage: failureStage,
|
|
419
419
|
error_body: "Automatic Deepline skills installation failed.",
|
|
420
|
-
cli_version:
|
|
420
|
+
cli_version: _chunkYRQKRQDUjs.SDK_VERSION,
|
|
421
421
|
context: {
|
|
422
422
|
environment: buildEnvironmentContext(),
|
|
423
423
|
skills_sync: {
|
|
@@ -537,7 +537,7 @@ function buildFailureReport(input) {
|
|
|
537
537
|
failure_kind: failureKind,
|
|
538
538
|
failure_code: code,
|
|
539
539
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
540
|
-
cli_version:
|
|
540
|
+
cli_version: _chunkYRQKRQDUjs.SDK_VERSION,
|
|
541
541
|
context: {
|
|
542
542
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
543
543
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -557,8 +557,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
557
557
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
558
558
|
const exitCode = resolvedExitCode(input);
|
|
559
559
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
560
|
-
const baseUrl =
|
|
561
|
-
const apiKey =
|
|
560
|
+
const baseUrl = _chunkCJ7DBYEQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
561
|
+
const apiKey = _chunkCJ7DBYEQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
562
562
|
if (!apiKey) return false;
|
|
563
563
|
return postFailureReport({
|
|
564
564
|
baseUrl,
|
|
@@ -682,8 +682,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
682
682
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
683
683
|
var defaultBrowserCommandRunner = childProcess;
|
|
684
684
|
function getAuthedHttpClient() {
|
|
685
|
-
const config =
|
|
686
|
-
return { config, http: new (0,
|
|
685
|
+
const config = _chunkCJ7DBYEQjs.resolveConfig.call(void 0, );
|
|
686
|
+
return { config, http: new (0, _chunkCJ7DBYEQjs.HttpClient)(config) };
|
|
687
687
|
}
|
|
688
688
|
function stableOsUserId() {
|
|
689
689
|
try {
|
|
@@ -1023,7 +1023,7 @@ function collectLocalEnvInfo() {
|
|
|
1023
1023
|
os: `${process.platform} ${process.arch}`,
|
|
1024
1024
|
node_version: process.version,
|
|
1025
1025
|
home_dir: homeDir,
|
|
1026
|
-
agent_runtime:
|
|
1026
|
+
agent_runtime: _chunkYRQKRQDUjs.detectAgentRuntime.call(void 0, )
|
|
1027
1027
|
};
|
|
1028
1028
|
const env = process.env;
|
|
1029
1029
|
const optional = {
|
|
@@ -1270,9 +1270,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
1270
1270
|
}
|
|
1271
1271
|
function withAgentCommandContext(value) {
|
|
1272
1272
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
1273
|
-
return
|
|
1273
|
+
return _chunkYRQKRQDUjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
1274
1274
|
...valueRecord,
|
|
1275
|
-
command_context:
|
|
1275
|
+
command_context: _chunkCJ7DBYEQjs.resolveCliCommandContext.call(void 0, )
|
|
1276
1276
|
} : value;
|
|
1277
1277
|
}
|
|
1278
1278
|
function printJson(value, fields) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkG5TV6WLVjs = require('./chunk-G5TV6WLV.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/maintenance-policy.ts
|
|
6
6
|
var _commander = require('commander');
|
|
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
|
|
|
33
33
|
sinceStartMs: now - cliTraceStartedAt,
|
|
34
34
|
...event
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_chunkG5TV6WLVjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -36,7 +36,7 @@ import {
|
|
|
36
36
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
37
37
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
38
38
|
SDK_API_MAJOR
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-3M2QH3KA.mjs";
|
|
40
40
|
import {
|
|
41
41
|
CustomerDbQueryOutcomeUnknownError
|
|
42
42
|
} from "./chunk-CQBIO6HW.mjs";
|
|
@@ -7333,6 +7333,7 @@ var DeeplineClient = class _DeeplineClient {
|
|
|
7333
7333
|
const body = {
|
|
7334
7334
|
...typeof definitionOrId === "string" ? {} : { definition: definitionOrId },
|
|
7335
7335
|
...options?.dryRun ? { dry_run: true } : {},
|
|
7336
|
+
...options?.adoptExisting ? { adopt_existing: true } : {},
|
|
7336
7337
|
...options?.expectedGeneration !== void 0 ? { expected_generation: options.expectedGeneration } : {}
|
|
7337
7338
|
};
|
|
7338
7339
|
return this.http.request(
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
skillsInstallLeasePath,
|
|
12
12
|
skillsSourceUrl,
|
|
13
13
|
syncSdkSkillsIfNeeded
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2CBX43LP.mjs";
|
|
15
15
|
import {
|
|
16
16
|
printCommandEnvelope
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JL5JU3LD.mjs";
|
|
18
18
|
import {
|
|
19
19
|
autoDetectBaseUrl,
|
|
20
20
|
ensureProjectPrivatePathsIgnored,
|
|
21
21
|
resolveProjectPinTarget,
|
|
22
22
|
sdkCliStateDirPath
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-7MFATEUC.mjs";
|
|
24
24
|
import {
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
detectAgentRuntime
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-3M2QH3KA.mjs";
|
|
28
28
|
import {
|
|
29
29
|
DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
|
|
30
30
|
} from "./chunk-5JPKRDFC.mjs";
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-Z7SXGOIQ.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-GWDPNOA7.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-LX35AXTN.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-JL5JU3LD.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-JL2OTMSG.mjs";
|