deepline 0.3.503 → 0.3.505
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +5 -0
- package/dist/bundling-sources/shared_libs/monitors/http-error-response.ts +35 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-public-aliases.ts +13 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +144 -7
- package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +18 -0
- package/dist/bundling-sources/shared_libs/product-notifications/onboarding-unsubscribe.ts +23 -0
- package/dist/cli/{auth-IC4WLSE3.mjs → auth-AHE2EDQA.mjs} +5 -5
- package/dist/cli/auth-SEPKNRHV.js +43 -0
- package/dist/cli/{billing-2VOV64SD.mjs → billing-7CPWTGGI.mjs} +19 -12
- package/dist/cli/{billing-LWQOII22.js → billing-JOIZPHON.js} +92 -85
- package/dist/cli/{chunk-33JUK73X.js → chunk-3YEOOXD4.js} +96 -37
- package/dist/cli/{chunk-FVDTERO2.js → chunk-45XYW477.js} +21 -21
- package/dist/cli/{chunk-5GI6NKOE.mjs → chunk-4OFSAZN6.mjs} +1 -1
- package/dist/cli/{chunk-D27HP3HS.mjs → chunk-52FPW2RD.mjs} +2 -2
- package/dist/cli/chunk-5LUF4LAR.mjs +209 -0
- package/dist/cli/{chunk-VC5B462T.mjs → chunk-5XT4DZQL.mjs} +2 -2
- package/dist/cli/{chunk-26RSSTCF.js → chunk-6FEN6VWZ.js} +26 -26
- package/dist/cli/{chunk-7HEDCIR3.mjs → chunk-6U3AGJWI.mjs} +1 -1
- package/dist/cli/{chunk-KPBBT6OS.mjs → chunk-7AD565DO.mjs} +1 -1
- package/dist/cli/{chunk-FZHOWPSN.js → chunk-7DDACLMX.js} +16 -16
- package/dist/cli/{chunk-ZEQPCEV4.mjs → chunk-7DDKLFOY.mjs} +3 -3
- package/dist/cli/{chunk-WHP3FJ7T.js → chunk-7QLK2GHL.js} +5 -5
- package/dist/cli/{chunk-BI2Q45SY.mjs → chunk-ACI6CUDX.mjs} +11 -401
- package/dist/cli/{chunk-C5RQTTLP.js → chunk-BWAYMJ23.js} +7 -7
- package/dist/cli/{chunk-YXGPMTAK.js → chunk-CA3SYXCS.js} +2 -2
- package/dist/cli/{chunk-J6RBOLK7.mjs → chunk-CSLLQWAB.mjs} +1 -1
- package/dist/cli/{chunk-F73PD2XD.js → chunk-EMUFF6EU.js} +7 -7
- package/dist/cli/chunk-FIQ5UEIF.mjs +405 -0
- package/dist/cli/{chunk-2626LTU3.js → chunk-GAUNJCXQ.js} +96 -96
- package/dist/cli/{chunk-A2C6ONWA.js → chunk-GXMNOUHP.js} +6 -6
- package/dist/cli/{chunk-MJQOG4TZ.js → chunk-HASFFOSU.js} +16 -16
- package/dist/cli/{chunk-TCQYWZFS.js → chunk-IDAE5VDH.js} +5 -5
- package/dist/cli/{chunk-JJVN7OIX.mjs → chunk-IZYOYXG7.mjs} +4 -4
- package/dist/cli/{chunk-FHJ54BHH.mjs → chunk-JA7YBRP4.mjs} +1 -1
- package/dist/cli/{chunk-HRTDCXHI.js → chunk-JSTKLYYD.js} +2 -2
- package/dist/cli/{chunk-5M5WSFRZ.mjs → chunk-JVKEZT7L.mjs} +48 -8
- package/dist/cli/{chunk-4IIYSBEP.js → chunk-K26YOPDO.js} +50 -10
- package/dist/cli/{chunk-2K2QBLYO.js → chunk-LC4FG34E.js} +53 -53
- package/dist/cli/{chunk-XYZZZLN6.mjs → chunk-MAFZ64RN.mjs} +2 -2
- package/dist/cli/{chunk-B3X4YWQ6.js → chunk-MHZAG2ZQ.js} +80 -470
- package/dist/cli/{chunk-DPI5OYVU.mjs → chunk-NARJWXBR.mjs} +2 -2
- package/dist/cli/{chunk-GLZBFBJS.mjs → chunk-OA6U5NVB.mjs} +5 -5
- package/dist/cli/{chunk-URZNSJE2.mjs → chunk-OMEDQ77C.mjs} +93 -34
- package/dist/cli/{chunk-QIEYEY6Z.js → chunk-OORPAQVC.js} +8 -8
- package/dist/cli/{chunk-WS274KID.mjs → chunk-PDLOPF5L.mjs} +1 -1
- package/dist/cli/{chunk-KGLVATEB.mjs → chunk-PZN24YQQ.mjs} +2 -2
- package/dist/cli/{chunk-GIHNEYBG.mjs → chunk-QGNNAZ5M.mjs} +1 -1
- package/dist/cli/chunk-QYGYVCRI.js +405 -0
- package/dist/cli/chunk-R7J7CJPZ.js +209 -0
- package/dist/cli/{chunk-6XTE6C3W.mjs → chunk-RT3HJBIH.mjs} +12 -12
- package/dist/cli/{chunk-L3TZV625.mjs → chunk-SHKRL7CW.mjs} +1 -1
- package/dist/cli/{chunk-FIUTDSJX.js → chunk-SPN7U3MV.js} +4 -4
- package/dist/cli/{chunk-EQ3WMKFY.mjs → chunk-UZ24SF7N.mjs} +5 -5
- package/dist/cli/{chunk-AARF4SOW.js → chunk-VXKWF3AD.js} +9 -9
- package/dist/cli/{chunk-JPDD4Y53.mjs → chunk-W6I4N4JN.mjs} +6 -6
- package/dist/cli/{chunk-PVA3MWCO.js → chunk-WPCF7C6B.js} +3 -3
- package/dist/cli/{chunk-3CXHK4TW.js → chunk-WTQLUULB.js} +6 -6
- package/dist/cli/{chunk-EDMV4JT5.mjs → chunk-WTUC5VKB.mjs} +2 -2
- package/dist/cli/{chunk-IIP46RVC.js → chunk-XHPB6RGY.js} +1 -1
- package/dist/cli/{chunk-RVOBFO7C.js → chunk-Y52XY56V.js} +41 -41
- package/dist/cli/{chunk-K7NFFQFU.mjs → chunk-YBIVVAL7.mjs} +2 -2
- package/dist/cli/{chunk-HS63YBT5.js → chunk-ZLN2B5YA.js} +3 -3
- package/dist/cli/command-docs.d.mts +2 -1
- package/dist/cli/command-docs.d.ts +2 -1
- package/dist/cli/command-docs.js +6 -2
- package/dist/cli/command-docs.mjs +5 -1
- package/dist/cli/{csv-NEWCNOSZ.js → csv-DZHVIW3G.js} +13 -13
- package/dist/cli/{csv-2TXOI3UE.mjs → csv-WTPI6ZON.mjs} +4 -4
- package/dist/cli/{db-J3IJS4OG.js → db-D7LPPNCC.js} +27 -27
- package/dist/cli/{db-PX7EQEIG.mjs → db-NR4PJ6AF.mjs} +6 -6
- package/dist/cli/describe-HVQBTKFM.js +50 -0
- package/dist/cli/{describe-GQHGTZSL.mjs → describe-NCKAJPUG.mjs} +18 -17
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-FFKK24RY.mjs → executions-RQVJ4LAB.mjs} +6 -6
- package/dist/cli/{executions-RO3TJUXL.js → executions-UQG6LWEN.js} +8 -8
- package/dist/cli/{feedback-ZTO56SRL.mjs → feedback-RD4Y3YQR.mjs} +4 -4
- package/dist/cli/{feedback-XRR4HIS6.js → feedback-TCHA67IA.js} +8 -8
- package/dist/cli/git-TUB2ZUEH.js +25 -0
- package/dist/cli/{git-FIPBVFYZ.mjs → git-Z7434B7Y.mjs} +5 -5
- package/dist/cli/index.js +145 -141
- package/dist/cli/index.mjs +51 -47
- package/dist/cli/{legacy-noops-MTBBGM27.js → legacy-noops-23WRA7DH.js} +8 -8
- package/dist/cli/{legacy-noops-AMD2NWHF.mjs → legacy-noops-LQJU4UIV.mjs} +5 -5
- package/dist/cli/{monitors-42PIGLBF.js → monitors-KOWN7M3V.js} +95 -95
- package/dist/cli/{monitors-24LDKDJX.mjs → monitors-Z6VYUZ2W.mjs} +7 -7
- package/dist/cli/{org-GQMCA3MN.js → org-2T5K2VP5.js} +72 -72
- package/dist/cli/{org-4B7SCFRL.mjs → org-UBNRO5XO.mjs} +6 -6
- package/dist/cli/{pages-PD5EGL2R.mjs → pages-GHPJBVV3.mjs} +6 -6
- package/dist/cli/{pages-RL2M62GJ.js → pages-SRXTU7XO.js} +18 -18
- package/dist/cli/{play-FST6ZAHW.js → play-2HMZ57EZ.js} +324 -517
- package/dist/cli/{play-5V54VTUR.mjs → play-HRQKGTXA.mjs} +24 -217
- package/dist/cli/{providers-N5YVCKPL.mjs → providers-JWJRFRR5.mjs} +6 -6
- package/dist/cli/{providers-HBUUPN7J.js → providers-P5O676MZ.js} +9 -9
- package/dist/cli/{quickstart-NJDDVTQR.mjs → quickstart-S7NZUQRO.mjs} +4 -4
- package/dist/cli/{quickstart-4QIQNSHG.js → quickstart-YCY72TAO.js} +6 -6
- package/dist/cli/{run-FGOKCG4J.js → run-MHLLGF4G.js} +41 -40
- package/dist/cli/{run-JHI5MTHD.mjs → run-QWMRIUIU.mjs} +23 -22
- package/dist/cli/{search-EWIZBIY2.mjs → search-4BFTQUEP.mjs} +8 -7
- package/dist/cli/search-QPUHOEIL.js +33 -0
- package/dist/cli/{search-output-TMQTRC2W.js → search-output-62LBVZHN.js} +6 -6
- package/dist/cli/{search-output-NAK3MWBH.mjs → search-output-LIYHDTBP.mjs} +4 -4
- package/dist/cli/{secrets-ONQVW5SR.mjs → secrets-GW27V77E.mjs} +6 -6
- package/dist/cli/{secrets-5TSUEOJB.js → secrets-KKKHVSOO.js} +15 -15
- package/dist/cli/{sessions-BSGE5EET.js → sessions-R3OEINAR.js} +6 -6
- package/dist/cli/{sessions-B7F5O3ZR.mjs → sessions-R75LBGIL.mjs} +5 -5
- package/dist/cli/{settings-SGGFQV5R.mjs → settings-I3AQZSYG.mjs} +12 -11
- package/dist/cli/{settings-47LARBRU.js → settings-MQIHAEZN.js} +79 -78
- package/dist/cli/{setup-ATGNXQUK.mjs → setup-2YA5MYMS.mjs} +10 -9
- package/dist/cli/{setup-BNFZFXO6.js → setup-X3QRJERP.js} +50 -49
- package/dist/cli/{skills-CIMBRM5R.mjs → skills-7252FOOI.mjs} +8 -7
- package/dist/cli/skills-BPZWMZSL.js +37 -0
- package/dist/cli/tools-F7RVQ3IK.js +57 -0
- package/dist/cli/{tools-DTDXAULX.mjs → tools-SKQTSVGE.mjs} +17 -16
- package/dist/cli/{update-EOIJBJCO.mjs → update-GNBBSKTB.mjs} +10 -9
- package/dist/cli/update-TLSY6LC2.js +35 -0
- package/dist/cli/{workflow-IWXUJPWY.mjs → workflow-OJSAL5FO.mjs} +7 -7
- package/dist/cli/{workflow-V5VKPICQ.js → workflow-QB7YYWPP.js} +17 -17
- package/dist/{client-CIwenMFS.d.ts → client-B3GSaSFn.d.ts} +1 -1
- package/dist/{client-DYAfJpaN.d.mts → client-DEJg0CZn.d.mts} +1 -1
- package/dist/{client-core-DlzP8vEs.d.mts → client-core-C404E33V.d.mts} +5 -0
- package/dist/{client-core-CRjtyMAI.d.ts → client-core-GQmy3N8y.d.ts} +5 -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 +109 -104
- package/dist/plays/bundle-play-file.mjs +4 -4
- 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-ZCMSXZO4.js +0 -43
- package/dist/cli/describe-LE7EZCL4.js +0 -49
- package/dist/cli/git-26AH4XIO.js +0 -25
- package/dist/cli/search-CTKSEVSO.js +0 -32
- package/dist/cli/skills-6RD25MVM.js +0 -36
- package/dist/cli/tools-TDZH4XHS.js +0 -56
- package/dist/cli/update-Y32VT4VL.js +0 -34
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } 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 _chunkVXKWF3ADjs = require('./chunk-VXKWF3AD.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
8
|
+
var _chunk7DDACLMXjs = require('./chunk-7DDACLMX.js');
|
|
9
|
+
require('./chunk-GAUNJCXQ.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
16
|
-
require('./chunk-
|
|
15
|
+
var _chunkWTQLUULBjs = require('./chunk-WTQLUULB.js');
|
|
16
|
+
require('./chunk-3YEOOXD4.js');
|
|
17
17
|
require('./chunk-D3BCSAN7.js');
|
|
18
18
|
|
|
19
19
|
|
|
@@ -24,29 +24,30 @@ require('./chunk-AID3OYVJ.js');
|
|
|
24
24
|
require('./chunk-VLEVVDWG.js');
|
|
25
25
|
require('./chunk-J33TSWO5.js');
|
|
26
26
|
require('./chunk-HGFFYVXN.js');
|
|
27
|
-
require('./chunk-
|
|
27
|
+
require('./chunk-IDAE5VDH.js');
|
|
28
28
|
require('./chunk-BLMB4N63.js');
|
|
29
|
-
require('./chunk-
|
|
29
|
+
require('./chunk-BWAYMJ23.js');
|
|
30
30
|
require('./chunk-E4CABWXL.js');
|
|
31
31
|
require('./chunk-RNSHCJME.js');
|
|
32
32
|
require('./chunk-NMU3VR5U.js');
|
|
33
33
|
require('./chunk-WSGXBROE.js');
|
|
34
|
-
require('./chunk-
|
|
35
|
-
require('./chunk-
|
|
36
|
-
require('./chunk-
|
|
37
|
-
require('./chunk-
|
|
38
|
-
require('./chunk-
|
|
39
|
-
require('./chunk-
|
|
34
|
+
require('./chunk-45XYW477.js');
|
|
35
|
+
require('./chunk-CA3SYXCS.js');
|
|
36
|
+
require('./chunk-HASFFOSU.js');
|
|
37
|
+
require('./chunk-JSTKLYYD.js');
|
|
38
|
+
require('./chunk-Y52XY56V.js');
|
|
39
|
+
require('./chunk-MHZAG2ZQ.js');
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
43
|
-
require('./chunk-
|
|
44
|
-
require('./chunk-
|
|
45
|
-
require('./chunk-
|
|
42
|
+
var _chunkWPCF7C6Bjs = require('./chunk-WPCF7C6B.js');
|
|
43
|
+
require('./chunk-QYGYVCRI.js');
|
|
44
|
+
require('./chunk-EMUFF6EU.js');
|
|
45
|
+
require('./chunk-ZLN2B5YA.js');
|
|
46
|
+
require('./chunk-SPN7U3MV.js');
|
|
46
47
|
require('./chunk-ALJJRZNJ.js');
|
|
47
48
|
require('./chunk-XNYIZMNQ.js');
|
|
48
49
|
require('./chunk-DIAWYWT5.js');
|
|
49
|
-
require('./chunk-
|
|
50
|
+
require('./chunk-XHPB6RGY.js');
|
|
50
51
|
require('./chunk-OG64RBAC.js');
|
|
51
52
|
require('./chunk-RLX5ZFNX.js');
|
|
52
53
|
require('./chunk-COGTRVWW.js');
|
|
@@ -82,7 +83,7 @@ function readInput(options) {
|
|
|
82
83
|
return input;
|
|
83
84
|
}
|
|
84
85
|
function refuse(message, output) {
|
|
85
|
-
|
|
86
|
+
_chunkWTQLUULBjs.writeExecutionOutput.call(void 0,
|
|
86
87
|
{ id: null, status: "failed", error: { message }, ran: false },
|
|
87
88
|
output
|
|
88
89
|
);
|
|
@@ -98,7 +99,7 @@ async function runAnything(name, options) {
|
|
|
98
99
|
logsOut: options.logsOut,
|
|
99
100
|
fields: _optionalChain([options, 'access', _7 => _7.fields, 'optionalAccess', _8 => _8.split, 'call', _9 => _9(","), 'access', _10 => _10.map, 'call', _11 => _11((path) => path.trim()), 'access', _12 => _12.filter, 'call', _13 => _13(Boolean)])
|
|
100
101
|
};
|
|
101
|
-
if (!
|
|
102
|
+
if (!_chunkWTQLUULBjs.preflightExecutionOutput.call(void 0, output)) return 2;
|
|
102
103
|
let input;
|
|
103
104
|
let timeoutMs;
|
|
104
105
|
try {
|
|
@@ -116,7 +117,7 @@ async function runAnything(name, options) {
|
|
|
116
117
|
throw new Error("--max-credits takes a number of credits above 0.");
|
|
117
118
|
}
|
|
118
119
|
if (options.timeout !== void 0 && options.timeout !== "0") {
|
|
119
|
-
const { parseToolExecuteTimeout } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
120
|
+
const { parseToolExecuteTimeout } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-F7RVQ3IK.js")));
|
|
120
121
|
timeoutMs = parseToolExecuteTimeout(options.timeout);
|
|
121
122
|
}
|
|
122
123
|
} catch (error) {
|
|
@@ -137,7 +138,7 @@ async function runAnything(name, options) {
|
|
|
137
138
|
if (name !== void 0) {
|
|
138
139
|
return refuse("Use a name or -e, not both.", output);
|
|
139
140
|
}
|
|
140
|
-
const { writeInlinePlay } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
141
|
+
const { writeInlinePlay } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-2HMZ57EZ.js")));
|
|
141
142
|
let file;
|
|
142
143
|
try {
|
|
143
144
|
file = writeInlinePlay(options.eval);
|
|
@@ -160,19 +161,19 @@ async function runAnything(name, options) {
|
|
|
160
161
|
output
|
|
161
162
|
);
|
|
162
163
|
}
|
|
163
|
-
if (
|
|
164
|
+
if (_chunkVXKWF3ADjs.looksLikeFilePath.call(void 0, name)) {
|
|
164
165
|
output.label = `${name} (play file)`;
|
|
165
166
|
return runPlay(name, play);
|
|
166
167
|
}
|
|
167
168
|
let { base, revision } = splitRevision(name);
|
|
168
|
-
let found = await
|
|
169
|
+
let found = await _chunk7DDACLMXjs.findNamed.call(void 0, base, {});
|
|
169
170
|
if (!found.chosen && revision) {
|
|
170
|
-
found = await
|
|
171
|
+
found = await _chunk7DDACLMXjs.findNamed.call(void 0, name, {});
|
|
171
172
|
if (found.chosen)
|
|
172
173
|
({ base, revision } = { base: name, revision: void 0 });
|
|
173
174
|
}
|
|
174
175
|
const { chosen, shadowed } = found;
|
|
175
|
-
if (!chosen) return refuse(
|
|
176
|
+
if (!chosen) return refuse(_chunk7DDACLMXjs.nothingNamed.call(void 0, base), output);
|
|
176
177
|
const { described } = chosen;
|
|
177
178
|
if (described.kind === "custom_play" && shadowed) {
|
|
178
179
|
console.error(
|
|
@@ -197,7 +198,7 @@ async function runAnything(name, options) {
|
|
|
197
198
|
if (runner.via === "play") {
|
|
198
199
|
return runPlay(runner.reference, { ...play, revision });
|
|
199
200
|
}
|
|
200
|
-
const { executeToolForReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
201
|
+
const { executeToolForReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-F7RVQ3IK.js")));
|
|
201
202
|
return executeToolForReceipt({
|
|
202
203
|
toolId: runner.toolId,
|
|
203
204
|
params: input,
|
|
@@ -211,7 +212,7 @@ function dryRun(described, input, output) {
|
|
|
211
212
|
const missing = described.inputs.filter((field) => field.required && !(field.name in input)).map((field) => field.name);
|
|
212
213
|
const known = new Set(described.inputs.map((field) => field.name));
|
|
213
214
|
const unknown = known.size ? Object.keys(input).filter((key) => !known.has(key)) : [];
|
|
214
|
-
|
|
215
|
+
_chunkWTQLUULBjs.writeExecutionOutput.call(void 0,
|
|
215
216
|
{
|
|
216
217
|
id: null,
|
|
217
218
|
status: "dry_run",
|
|
@@ -228,16 +229,16 @@ function dryRun(described, input, output) {
|
|
|
228
229
|
return missing.length ? 2 : 0;
|
|
229
230
|
}
|
|
230
231
|
async function runPlay(reference, play) {
|
|
231
|
-
const { handlePlayRun, writePlayRunReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
232
|
+
const { handlePlayRun, writePlayRunReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-2HMZ57EZ.js")));
|
|
232
233
|
const { output, options, revision } = play;
|
|
233
234
|
if (options.dryRun) {
|
|
234
|
-
const dryRunOptions =
|
|
235
|
+
const dryRunOptions = _chunkVXKWF3ADjs.resolvePlayRunCliOptions.call(void 0, reference, {
|
|
235
236
|
input: JSON.stringify(play.input),
|
|
236
237
|
dryRun: true,
|
|
237
238
|
json: output.receiptJson === true
|
|
238
239
|
});
|
|
239
240
|
if (output.receiptOut === void 0) return handlePlayRun(dryRunOptions);
|
|
240
|
-
const writeDryRunError = (error) =>
|
|
241
|
+
const writeDryRunError = (error) => _chunkWTQLUULBjs.writeExecutionOutput.call(void 0,
|
|
241
242
|
{
|
|
242
243
|
id: null,
|
|
243
244
|
status: "failed",
|
|
@@ -251,7 +252,7 @@ async function runPlay(reference, play) {
|
|
|
251
252
|
try {
|
|
252
253
|
return await handlePlayRun(dryRunOptions, {
|
|
253
254
|
writeDryRunError,
|
|
254
|
-
writeDryRunPlan: (plan) =>
|
|
255
|
+
writeDryRunPlan: (plan) => _chunkWTQLUULBjs.writeExecutionOutput.call(void 0,
|
|
255
256
|
{
|
|
256
257
|
id: null,
|
|
257
258
|
status: "dry_run",
|
|
@@ -262,19 +263,19 @@ async function runPlay(reference, play) {
|
|
|
262
263
|
)
|
|
263
264
|
});
|
|
264
265
|
} catch (error) {
|
|
265
|
-
if (error instanceof
|
|
266
|
+
if (error instanceof _chunkWTQLUULBjs.ExecutionOutputError) throw error;
|
|
266
267
|
writeDryRunError(error);
|
|
267
268
|
return 1;
|
|
268
269
|
}
|
|
269
270
|
}
|
|
270
271
|
let id = null;
|
|
271
272
|
let written = false;
|
|
272
|
-
const progress =
|
|
273
|
-
if (!play.noWait) progress.setLogWriter(
|
|
273
|
+
const progress = _chunkWPCF7C6Bjs.createCliProgress.call(void 0, true);
|
|
274
|
+
if (!play.noWait) progress.setLogWriter(_chunkWTQLUULBjs.openLogDestination.call(void 0, output));
|
|
274
275
|
progress.setQuiet(process.stderr.isTTY !== true);
|
|
275
276
|
try {
|
|
276
277
|
const code = await handlePlayRun(
|
|
277
|
-
|
|
278
|
+
_chunkVXKWF3ADjs.resolvePlayRunCliOptions.call(void 0, reference, {
|
|
278
279
|
input: JSON.stringify(play.input),
|
|
279
280
|
// The receipt is the only thing on stdout.
|
|
280
281
|
json: true,
|
|
@@ -307,7 +308,7 @@ async function runPlay(reference, play) {
|
|
|
307
308
|
},
|
|
308
309
|
writeStarted: (runId, status, page) => {
|
|
309
310
|
written = true;
|
|
310
|
-
|
|
311
|
+
_chunkWTQLUULBjs.writeExecutionOutput.call(void 0,
|
|
311
312
|
{
|
|
312
313
|
id: runId,
|
|
313
314
|
status,
|
|
@@ -323,7 +324,7 @@ async function runPlay(reference, play) {
|
|
|
323
324
|
}
|
|
324
325
|
);
|
|
325
326
|
if (!written) {
|
|
326
|
-
|
|
327
|
+
_chunkWTQLUULBjs.writeExecutionOutput.call(void 0,
|
|
327
328
|
{
|
|
328
329
|
id,
|
|
329
330
|
status: "failed",
|
|
@@ -335,7 +336,7 @@ async function runPlay(reference, play) {
|
|
|
335
336
|
return code;
|
|
336
337
|
} catch (error) {
|
|
337
338
|
if (written) throw error;
|
|
338
|
-
|
|
339
|
+
_chunkWTQLUULBjs.writeExecutionOutput.call(void 0,
|
|
339
340
|
{
|
|
340
341
|
id,
|
|
341
342
|
status: "failed",
|
|
@@ -367,7 +368,7 @@ function registerRunCommand(program) {
|
|
|
367
368
|
try {
|
|
368
369
|
process.exitCode = await runAnything(name, options);
|
|
369
370
|
} catch (error) {
|
|
370
|
-
if (options.receiptOut === void 0 || !(error instanceof
|
|
371
|
+
if (options.receiptOut === void 0 || !(error instanceof _chunkWTQLUULBjs.ExecutionOutputError)) {
|
|
371
372
|
throw error;
|
|
372
373
|
}
|
|
373
374
|
process.exitCode = 1;
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
looksLikeFilePath,
|
|
3
3
|
resolvePlayRunCliOptions
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NARJWXBR.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findNamed,
|
|
7
7
|
nothingNamed
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-W6I4N4JN.mjs";
|
|
9
|
+
import "./chunk-RT3HJBIH.mjs";
|
|
10
10
|
import {
|
|
11
11
|
ExecutionOutputError,
|
|
12
12
|
openLogDestination,
|
|
13
13
|
preflightExecutionOutput,
|
|
14
14
|
writeExecutionOutput
|
|
15
|
-
} from "./chunk-
|
|
16
|
-
import "./chunk-
|
|
15
|
+
} from "./chunk-JA7YBRP4.mjs";
|
|
16
|
+
import "./chunk-OMEDQ77C.mjs";
|
|
17
17
|
import "./chunk-5AEDYVB6.mjs";
|
|
18
18
|
import {
|
|
19
19
|
DEEPLINE_NAMESPACE
|
|
@@ -24,29 +24,30 @@ import "./chunk-OVDNJAJN.mjs";
|
|
|
24
24
|
import "./chunk-F6QV42MC.mjs";
|
|
25
25
|
import "./chunk-FR2ILQ4G.mjs";
|
|
26
26
|
import "./chunk-FIVKWNMT.mjs";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-52FPW2RD.mjs";
|
|
28
28
|
import "./chunk-2GEYN3H4.mjs";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-4OFSAZN6.mjs";
|
|
30
30
|
import "./chunk-L2VKAASU.mjs";
|
|
31
31
|
import "./chunk-N4TR6QRI.mjs";
|
|
32
32
|
import "./chunk-S3A4IXBQ.mjs";
|
|
33
33
|
import "./chunk-BMCRTI6Z.mjs";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-UZ24SF7N.mjs";
|
|
35
|
+
import "./chunk-PDLOPF5L.mjs";
|
|
36
|
+
import "./chunk-OA6U5NVB.mjs";
|
|
37
|
+
import "./chunk-CSLLQWAB.mjs";
|
|
38
|
+
import "./chunk-IZYOYXG7.mjs";
|
|
39
|
+
import "./chunk-ACI6CUDX.mjs";
|
|
40
40
|
import {
|
|
41
41
|
createCliProgress
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-QGNNAZ5M.mjs";
|
|
43
|
+
import "./chunk-FIQ5UEIF.mjs";
|
|
44
|
+
import "./chunk-PZN24YQQ.mjs";
|
|
45
|
+
import "./chunk-SHKRL7CW.mjs";
|
|
46
|
+
import "./chunk-7AD565DO.mjs";
|
|
46
47
|
import "./chunk-4QF2K7TM.mjs";
|
|
47
48
|
import "./chunk-DLIRSHV6.mjs";
|
|
48
49
|
import "./chunk-HBL4PM5Q.mjs";
|
|
49
|
-
import "./chunk-
|
|
50
|
+
import "./chunk-6U3AGJWI.mjs";
|
|
50
51
|
import "./chunk-WZYKRD7T.mjs";
|
|
51
52
|
import "./chunk-5JPKRDFC.mjs";
|
|
52
53
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -116,7 +117,7 @@ async function runAnything(name, options) {
|
|
|
116
117
|
throw new Error("--max-credits takes a number of credits above 0.");
|
|
117
118
|
}
|
|
118
119
|
if (options.timeout !== void 0 && options.timeout !== "0") {
|
|
119
|
-
const { parseToolExecuteTimeout } = await import("./tools-
|
|
120
|
+
const { parseToolExecuteTimeout } = await import("./tools-SKQTSVGE.mjs");
|
|
120
121
|
timeoutMs = parseToolExecuteTimeout(options.timeout);
|
|
121
122
|
}
|
|
122
123
|
} catch (error) {
|
|
@@ -137,7 +138,7 @@ async function runAnything(name, options) {
|
|
|
137
138
|
if (name !== void 0) {
|
|
138
139
|
return refuse("Use a name or -e, not both.", output);
|
|
139
140
|
}
|
|
140
|
-
const { writeInlinePlay } = await import("./play-
|
|
141
|
+
const { writeInlinePlay } = await import("./play-HRQKGTXA.mjs");
|
|
141
142
|
let file;
|
|
142
143
|
try {
|
|
143
144
|
file = writeInlinePlay(options.eval);
|
|
@@ -197,7 +198,7 @@ async function runAnything(name, options) {
|
|
|
197
198
|
if (runner.via === "play") {
|
|
198
199
|
return runPlay(runner.reference, { ...play, revision });
|
|
199
200
|
}
|
|
200
|
-
const { executeToolForReceipt } = await import("./tools-
|
|
201
|
+
const { executeToolForReceipt } = await import("./tools-SKQTSVGE.mjs");
|
|
201
202
|
return executeToolForReceipt({
|
|
202
203
|
toolId: runner.toolId,
|
|
203
204
|
params: input,
|
|
@@ -228,7 +229,7 @@ function dryRun(described, input, output) {
|
|
|
228
229
|
return missing.length ? 2 : 0;
|
|
229
230
|
}
|
|
230
231
|
async function runPlay(reference, play) {
|
|
231
|
-
const { handlePlayRun, writePlayRunReceipt } = await import("./play-
|
|
232
|
+
const { handlePlayRun, writePlayRunReceipt } = await import("./play-HRQKGTXA.mjs");
|
|
232
233
|
const { output, options, revision } = play;
|
|
233
234
|
if (options.dryRun) {
|
|
234
235
|
const dryRunOptions = resolvePlayRunCliOptions(reference, {
|
|
@@ -5,21 +5,22 @@ import {
|
|
|
5
5
|
pointAtDescribe,
|
|
6
6
|
registerDeprecatedSearchCommand,
|
|
7
7
|
registerSearchCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-OMEDQ77C.mjs";
|
|
9
9
|
import "./chunk-5AEDYVB6.mjs";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-52FPW2RD.mjs";
|
|
11
|
+
import "./chunk-4OFSAZN6.mjs";
|
|
12
12
|
import "./chunk-L2VKAASU.mjs";
|
|
13
13
|
import "./chunk-N4TR6QRI.mjs";
|
|
14
14
|
import "./chunk-S3A4IXBQ.mjs";
|
|
15
15
|
import "./chunk-BMCRTI6Z.mjs";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-FIQ5UEIF.mjs";
|
|
17
|
+
import "./chunk-PZN24YQQ.mjs";
|
|
18
|
+
import "./chunk-SHKRL7CW.mjs";
|
|
19
|
+
import "./chunk-7AD565DO.mjs";
|
|
19
20
|
import "./chunk-4QF2K7TM.mjs";
|
|
20
21
|
import "./chunk-DLIRSHV6.mjs";
|
|
21
22
|
import "./chunk-HBL4PM5Q.mjs";
|
|
22
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-6U3AGJWI.mjs";
|
|
23
24
|
import "./chunk-WZYKRD7T.mjs";
|
|
24
25
|
import "./chunk-KRD6H754.mjs";
|
|
25
26
|
export {
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunk3YEOOXD4js = require('./chunk-3YEOOXD4.js');
|
|
9
|
+
require('./chunk-D3BCSAN7.js');
|
|
10
|
+
require('./chunk-IDAE5VDH.js');
|
|
11
|
+
require('./chunk-BWAYMJ23.js');
|
|
12
|
+
require('./chunk-E4CABWXL.js');
|
|
13
|
+
require('./chunk-RNSHCJME.js');
|
|
14
|
+
require('./chunk-NMU3VR5U.js');
|
|
15
|
+
require('./chunk-WSGXBROE.js');
|
|
16
|
+
require('./chunk-QYGYVCRI.js');
|
|
17
|
+
require('./chunk-EMUFF6EU.js');
|
|
18
|
+
require('./chunk-ZLN2B5YA.js');
|
|
19
|
+
require('./chunk-SPN7U3MV.js');
|
|
20
|
+
require('./chunk-ALJJRZNJ.js');
|
|
21
|
+
require('./chunk-XNYIZMNQ.js');
|
|
22
|
+
require('./chunk-DIAWYWT5.js');
|
|
23
|
+
require('./chunk-XHPB6RGY.js');
|
|
24
|
+
require('./chunk-OG64RBAC.js');
|
|
25
|
+
require('./chunk-COGTRVWW.js');
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
exports.SEARCH_TYPES = _chunk3YEOOXD4js.SEARCH_TYPES; exports.appendCsv = _chunk3YEOOXD4js.appendCsv; exports.parseTypes = _chunk3YEOOXD4js.parseTypes; exports.pointAtDescribe = _chunk3YEOOXD4js.pointAtDescribe; exports.registerDeprecatedSearchCommand = _chunk3YEOOXD4js.registerDeprecatedSearchCommand; exports.registerSearchCommand = _chunk3YEOOXD4js.registerSearchCommand;
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
require('./chunk-
|
|
8
|
-
require('./chunk-
|
|
6
|
+
var _chunkEMUFF6EUjs = require('./chunk-EMUFF6EU.js');
|
|
7
|
+
require('./chunk-ZLN2B5YA.js');
|
|
8
|
+
require('./chunk-SPN7U3MV.js');
|
|
9
9
|
require('./chunk-ALJJRZNJ.js');
|
|
10
10
|
require('./chunk-XNYIZMNQ.js');
|
|
11
11
|
require('./chunk-DIAWYWT5.js');
|
|
12
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-XHPB6RGY.js');
|
|
13
13
|
require('./chunk-OG64RBAC.js');
|
|
14
14
|
|
|
15
15
|
|
|
@@ -5827,7 +5827,7 @@ var OPTIONAL_COLUMNS = [
|
|
|
5827
5827
|
];
|
|
5828
5828
|
function renderSearchResults(result, summaryWidth = _chunkD3BCSAN7js.DEFAULT_SUMMARY_WIDTH) {
|
|
5829
5829
|
if (result.results.length === 0)
|
|
5830
|
-
return
|
|
5830
|
+
return _chunkEMUFF6EUjs.renderCommandEnvelopeText.call(void 0, result);
|
|
5831
5831
|
const rows = result.results.map((item) => searchRow(item, summaryWidth));
|
|
5832
5832
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
5833
5833
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -5854,7 +5854,7 @@ function renderSearchResults(result, summaryWidth = _chunkD3BCSAN7js.DEFAULT_SUM
|
|
|
5854
5854
|
actions: _optionalChain([render, 'optionalAccess', _18 => _18.actions])
|
|
5855
5855
|
};
|
|
5856
5856
|
const followUps = _optionalChain([remaining, 'access', _19 => _19.sections, 'optionalAccess', _20 => _20.length]) || _optionalChain([remaining, 'access', _21 => _21.actions, 'optionalAccess', _22 => _22.length]) ? `
|
|
5857
|
-
${
|
|
5857
|
+
${_chunkEMUFF6EUjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
5858
5858
|
const missingConnections = /* @__PURE__ */ new Set();
|
|
5859
5859
|
for (const item of result.results) {
|
|
5860
5860
|
if (item.credentialStatus !== "requires_connection") continue;
|
|
@@ -3,13 +3,13 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
renderCommandEnvelopeText
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-PZN24YQQ.mjs";
|
|
7
|
+
import "./chunk-SHKRL7CW.mjs";
|
|
8
|
+
import "./chunk-7AD565DO.mjs";
|
|
9
9
|
import "./chunk-4QF2K7TM.mjs";
|
|
10
10
|
import "./chunk-DLIRSHV6.mjs";
|
|
11
11
|
import "./chunk-HBL4PM5Q.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-6U3AGJWI.mjs";
|
|
13
13
|
import "./chunk-WZYKRD7T.mjs";
|
|
14
14
|
import {
|
|
15
15
|
__commonJS,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-52FPW2RD.mjs";
|
|
4
|
+
import "./chunk-4OFSAZN6.mjs";
|
|
5
5
|
import "./chunk-L2VKAASU.mjs";
|
|
6
6
|
import "./chunk-N4TR6QRI.mjs";
|
|
7
7
|
import "./chunk-S3A4IXBQ.mjs";
|
|
@@ -9,13 +9,13 @@ import "./chunk-BMCRTI6Z.mjs";
|
|
|
9
9
|
import {
|
|
10
10
|
getAuthedHttpClient,
|
|
11
11
|
printCommandEnvelope
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-PZN24YQQ.mjs";
|
|
13
|
+
import "./chunk-SHKRL7CW.mjs";
|
|
14
|
+
import "./chunk-7AD565DO.mjs";
|
|
15
15
|
import "./chunk-4QF2K7TM.mjs";
|
|
16
16
|
import "./chunk-DLIRSHV6.mjs";
|
|
17
17
|
import "./chunk-HBL4PM5Q.mjs";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-6U3AGJWI.mjs";
|
|
19
19
|
import "./chunk-WZYKRD7T.mjs";
|
|
20
20
|
import "./chunk-KRD6H754.mjs";
|
|
21
21
|
|
|
@@ -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
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkIDAE5VDHjs = require('./chunk-IDAE5VDH.js');
|
|
4
|
+
require('./chunk-BWAYMJ23.js');
|
|
5
5
|
require('./chunk-E4CABWXL.js');
|
|
6
6
|
require('./chunk-RNSHCJME.js');
|
|
7
7
|
require('./chunk-NMU3VR5U.js');
|
|
@@ -9,13 +9,13 @@ require('./chunk-WSGXBROE.js');
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
12
|
+
var _chunkEMUFF6EUjs = require('./chunk-EMUFF6EU.js');
|
|
13
|
+
require('./chunk-ZLN2B5YA.js');
|
|
14
|
+
require('./chunk-SPN7U3MV.js');
|
|
15
15
|
require('./chunk-ALJJRZNJ.js');
|
|
16
16
|
require('./chunk-XNYIZMNQ.js');
|
|
17
17
|
require('./chunk-DIAWYWT5.js');
|
|
18
|
-
require('./chunk-
|
|
18
|
+
require('./chunk-XHPB6RGY.js');
|
|
19
19
|
require('./chunk-OG64RBAC.js');
|
|
20
20
|
require('./chunk-COGTRVWW.js');
|
|
21
21
|
|
|
@@ -207,9 +207,9 @@ function preventShellHistoryLeak(forbidden) {
|
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
async function handleList(options) {
|
|
210
|
-
const client = new (0,
|
|
210
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
211
211
|
const secrets = await client.listSecrets();
|
|
212
|
-
|
|
212
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
213
213
|
{
|
|
214
214
|
secrets,
|
|
215
215
|
count: secrets.length,
|
|
@@ -227,14 +227,14 @@ async function handleList(options) {
|
|
|
227
227
|
}
|
|
228
228
|
async function handleCheck(nameInput, options) {
|
|
229
229
|
const name = normalizeSecretName(nameInput);
|
|
230
|
-
const client = new (0,
|
|
230
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
231
231
|
const playName = options.play === void 0 ? void 0 : normalizePlaySelector(options.play);
|
|
232
232
|
const check = playName !== void 0 ? await client.inspectSecret(name, { playName }) : null;
|
|
233
233
|
const secret = check ? check.secret : await client.checkSecret(name);
|
|
234
234
|
const ok = check ? check.ok : Boolean(secret);
|
|
235
235
|
const quotedPlay = `'${(_nullishCoalesce(options.play, () => ( "PLAY"))).replace(/'/g, `'"'"'`)}'`;
|
|
236
236
|
const scopeHint = check ? _optionalChain([secret, 'optionalAccess', _3 => _3.scope]) === "play" ? check.reason === "disabled" ? `The Play-scoped secret is disabled and no active org fallback is available. Restore it with: deepline secrets set ${name} --scope play --play ${quotedPlay}` : `The active Play-scoped secret takes precedence over the org secret.${ok ? "" : ` Restore it with: deepline secrets set ${name} --scope play --play ${quotedPlay}`}` : `No Play override.${ok ? " The org secret is available." : ` Set or rotate the org secret with: deepline secrets set ${name}`}` : `Metadata only. Verify effective scope and active version with: deepline secrets check ${name} --play <play-name>`;
|
|
237
|
-
|
|
237
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
238
238
|
{
|
|
239
239
|
ok,
|
|
240
240
|
name,
|
|
@@ -262,7 +262,7 @@ async function handleSet(nameInput, forbidden, options) {
|
|
|
262
262
|
const name = normalizeSecretName(nameInput);
|
|
263
263
|
const { scope, playName } = resolveSecretWriteScope(options);
|
|
264
264
|
const value = await readSecretValueFromOptions(options);
|
|
265
|
-
const { http } =
|
|
265
|
+
const { http } = _chunkEMUFF6EUjs.getAuthedHttpClient.call(void 0, );
|
|
266
266
|
const response = await http.post(
|
|
267
267
|
"/api/v2/secrets",
|
|
268
268
|
{
|
|
@@ -274,7 +274,7 @@ async function handleSet(nameInput, forbidden, options) {
|
|
|
274
274
|
}
|
|
275
275
|
);
|
|
276
276
|
const secret = response.secret;
|
|
277
|
-
|
|
277
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
278
278
|
{
|
|
279
279
|
ok: true,
|
|
280
280
|
secret,
|
|
@@ -302,7 +302,7 @@ async function handleNote(secretId, noteInput, options) {
|
|
|
302
302
|
}
|
|
303
303
|
const note = options.clear ? "" : noteInput;
|
|
304
304
|
if (options.dryRun) {
|
|
305
|
-
|
|
305
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
306
306
|
{
|
|
307
307
|
ok: true,
|
|
308
308
|
dryRun: true,
|
|
@@ -323,9 +323,9 @@ async function handleNote(secretId, noteInput, options) {
|
|
|
323
323
|
);
|
|
324
324
|
return;
|
|
325
325
|
}
|
|
326
|
-
const client = new (0,
|
|
326
|
+
const client = new (0, _chunkIDAE5VDHjs.DeeplineClient)();
|
|
327
327
|
const secret = await client.updateSecretNote(secretId, note);
|
|
328
|
-
|
|
328
|
+
_chunkEMUFF6EUjs.printCommandEnvelope.call(void 0,
|
|
329
329
|
{
|
|
330
330
|
ok: true,
|
|
331
331
|
secret,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
4
|
+
var _chunkOORPAQVCjs = require('./chunk-OORPAQVC.js');
|
|
5
|
+
require('./chunk-EMUFF6EU.js');
|
|
6
|
+
require('./chunk-ZLN2B5YA.js');
|
|
7
|
+
require('./chunk-SPN7U3MV.js');
|
|
8
8
|
require('./chunk-ALJJRZNJ.js');
|
|
9
9
|
require('./chunk-XNYIZMNQ.js');
|
|
10
10
|
require('./chunk-DIAWYWT5.js');
|
|
11
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-XHPB6RGY.js');
|
|
12
12
|
require('./chunk-OG64RBAC.js');
|
|
13
13
|
require('./chunk-COGTRVWW.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
exports.registerSessionSendRenderCommands =
|
|
17
|
+
exports.registerSessionSendRenderCommands = _chunkOORPAQVCjs.registerSessionSendRenderCommands; exports.registerSessionsCommands = _chunkOORPAQVCjs.registerSessionsCommands;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerSessionSendRenderCommands,
|
|
3
3
|
registerSessionsCommands
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-5XT4DZQL.mjs";
|
|
5
|
+
import "./chunk-PZN24YQQ.mjs";
|
|
6
|
+
import "./chunk-SHKRL7CW.mjs";
|
|
7
|
+
import "./chunk-7AD565DO.mjs";
|
|
8
8
|
import "./chunk-4QF2K7TM.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
10
|
import "./chunk-HBL4PM5Q.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-6U3AGJWI.mjs";
|
|
12
12
|
import "./chunk-WZYKRD7T.mjs";
|
|
13
13
|
import "./chunk-KRD6H754.mjs";
|
|
14
14
|
export {
|