deepline 0.3.578 → 0.3.580
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 +20 -2
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/billing/public-pricing.ts +470 -15
- package/dist/bundling-sources/shared_libs/monitors/billing/tamradar.ts +12 -0
- package/dist/bundling-sources/shared_libs/monitors/billing/types.ts +59 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-capability.ts +5 -3
- 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 +182 -80
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +39 -2
- 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-MCU3ITQZ.js → agents-BF5VX5ZB.js} +31 -31
- package/dist/cli/{agents-LRBANBZH.mjs → agents-JRFTZE7G.mjs} +4 -4
- package/dist/cli/auth-25MVD7TK.js +44 -0
- package/dist/cli/{auth-5BJKVYMQ.mjs → auth-XJXZ64R4.mjs} +5 -5
- package/dist/cli/{billing-EBBI4MVL.mjs → billing-TXJBGP2I.mjs} +69 -64
- package/dist/cli/{billing-NT57POHH.js → billing-VGMTJI7W.js} +158 -153
- package/dist/cli/{chunk-XBO4ERH6.js → chunk-2ZCFAUCV.js} +3 -3
- package/dist/cli/{chunk-P35YQAUC.js → chunk-3OSNEWGR.js} +281 -275
- package/dist/cli/{chunk-7J473OJ5.mjs → chunk-3P4QZIJ5.mjs} +1 -1
- package/dist/cli/{chunk-SKHUWQZE.js → chunk-3S5KFHQH.js} +17 -7
- package/dist/cli/{chunk-4LMTY4RQ.mjs → chunk-3ZBPXNSW.mjs} +2 -2
- package/dist/cli/{chunk-H7DY5NQ3.mjs → chunk-5BPJW6X5.mjs} +5 -5
- package/dist/cli/{chunk-A7NKOXBV.js → chunk-6VSUP4WN.js} +4 -4
- package/dist/cli/{chunk-4KNRCUKY.mjs → chunk-7HOG3JZE.mjs} +21 -15
- package/dist/cli/{chunk-OAQYLTUN.mjs → chunk-7ORX33JX.mjs} +5 -5
- package/dist/cli/{chunk-24FGR73C.js → chunk-ANX3PYLT.js} +13 -13
- package/dist/cli/{chunk-VVZ7JZMQ.js → chunk-APJ7IPRT.js} +15 -15
- package/dist/cli/{chunk-MXPCTF57.js → chunk-AZTQJJH7.js} +17 -2
- package/dist/cli/{chunk-3GF33QJJ.mjs → chunk-BAXLPQTM.mjs} +4 -4
- package/dist/cli/{chunk-DDJN4RR6.mjs → chunk-BK4Z62CF.mjs} +4 -4
- package/dist/cli/{chunk-IFWB4BYZ.mjs → chunk-C6YXUGX2.mjs} +3 -3
- package/dist/cli/{chunk-J7PCSLRY.js → chunk-COAAKSFX.js} +5 -5
- package/dist/cli/{chunk-Y2TK7OXN.js → chunk-D6I7QWOZ.js} +2 -2
- package/dist/cli/{chunk-W47SXEWQ.js → chunk-DQEHBAHL.js} +9 -9
- package/dist/cli/{chunk-ITYSPUKD.mjs → chunk-EI7KTESB.mjs} +2 -2
- package/dist/cli/{chunk-HZXF2HFF.mjs → chunk-FCJJPEKN.mjs} +5 -5
- package/dist/cli/{chunk-NEH7NZFT.js → chunk-GDBNH57Z.js} +10 -10
- package/dist/cli/{chunk-CFG3ZM7M.mjs → chunk-GE4ZEMMA.mjs} +2 -2
- package/dist/cli/{chunk-4YSJOSBG.mjs → chunk-GIZIWNL5.mjs} +1 -1
- package/dist/cli/{chunk-PJXPHUAR.mjs → chunk-H3B6QM6V.mjs} +3 -3
- package/dist/cli/{chunk-25SSGQJJ.js → chunk-HEZ24K5F.js} +2 -2
- package/dist/cli/{chunk-LYZPGP3P.mjs → chunk-HLMF53HZ.mjs} +1 -1
- package/dist/cli/{chunk-T2CCLYHV.mjs → chunk-IERWFFDB.mjs} +7 -7
- package/dist/cli/{chunk-CFLAGRWL.mjs → chunk-IG3CXIJY.mjs} +1 -1
- package/dist/cli/{chunk-ALXYCC4K.mjs → chunk-IM322G7M.mjs} +1 -1
- package/dist/cli/{chunk-RW3URFZK.mjs → chunk-KLBIHDZB.mjs} +2 -2
- package/dist/cli/{chunk-VMCJKGZS.mjs → chunk-LC4ETCOA.mjs} +2 -2
- package/dist/cli/{chunk-CS36W3RL.js → chunk-LHV3HPAY.js} +26 -26
- package/dist/cli/{chunk-CPNTDIJK.js → chunk-MBOPKQJF.js} +1 -1
- package/dist/cli/{chunk-BPMA4S3O.js → chunk-MCYZO3RB.js} +21 -21
- package/dist/cli/{chunk-JQPFICW3.mjs → chunk-MEDA3STC.mjs} +1 -1
- package/dist/cli/{chunk-ZO65VJRJ.js → chunk-MOZDEYQC.js} +11 -1
- package/dist/cli/{chunk-6UFTWNC5.mjs → chunk-MP6XUVAJ.mjs} +2 -2
- package/dist/cli/{chunk-HGQT6EGK.js → chunk-NNWEQDZR.js} +20 -20
- package/dist/cli/{chunk-AZFSCPYK.mjs → chunk-NV5IJ3NY.mjs} +17 -2
- package/dist/cli/{chunk-QPOJLAFT.mjs → chunk-O7AWGIDD.mjs} +2 -2
- package/dist/cli/{chunk-G7PH2QVM.js → chunk-PFNYLTCZ.js} +5 -5
- package/dist/cli/{chunk-DWUESXDD.mjs → chunk-QXQBTTRD.mjs} +11 -1
- package/dist/cli/{chunk-5IMWXYVB.js → chunk-R77IVVEZ.js} +53 -53
- package/dist/cli/{chunk-MXK4M7HP.js → chunk-S2YKIWCD.js} +17 -17
- package/dist/cli/{chunk-FYKHAT2F.mjs → chunk-SECFDB27.mjs} +10 -0
- package/dist/cli/{chunk-NTHN7ODR.mjs → chunk-SQBSK74D.mjs} +7 -3
- package/dist/cli/{chunk-M3ITWEGS.js → chunk-TSOXJZSW.js} +41 -41
- package/dist/cli/{chunk-CSPOWVWS.mjs → chunk-U4VCAECC.mjs} +8 -3
- package/dist/cli/{chunk-RLPPLS6A.js → chunk-URZPR54R.js} +6 -6
- package/dist/cli/{chunk-27HAQRGH.js → chunk-V5NDHTBB.js} +23 -23
- package/dist/cli/{chunk-HKZN33F2.mjs → chunk-VF3EGTHU.mjs} +3 -3
- package/dist/cli/{chunk-5LCV36BR.js → chunk-VOQWPUIF.js} +20 -20
- package/dist/cli/{chunk-3ZUKYLC6.js → chunk-WJUAVMQC.js} +217 -213
- package/dist/cli/{chunk-W66GXHYR.mjs → chunk-X5RXG6VS.mjs} +1 -1
- package/dist/cli/{chunk-UKSOIH2P.js → chunk-XFVJ3JNA.js} +5 -5
- package/dist/cli/{chunk-RWDYULX2.js → chunk-XQUVLYOL.js} +17 -12
- package/dist/cli/{chunk-XE66BGLB.js → chunk-YY6EB252.js} +2 -2
- package/dist/cli/{chunk-XX7TZM4N.js → chunk-Z6DERGHY.js} +48 -48
- package/dist/cli/{chunk-PXMCPEE2.js → chunk-ZADJC22U.js} +3 -3
- package/dist/cli/{chunk-4CNHOBUO.mjs → chunk-ZR7PDXIA.mjs} +2 -2
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/concurrent-runs-help-DEN63DUM.js +22 -0
- package/dist/cli/{concurrent-runs-help-2MHLIUC6.mjs → concurrent-runs-help-DSUQRWZQ.mjs} +6 -6
- package/dist/cli/{csv-RYYDAC76.js → csv-HSHF6JYZ.js} +13 -13
- package/dist/cli/{csv-J6SRBMOT.mjs → csv-QNXJBT5T.mjs} +4 -4
- package/dist/cli/{db-WK226TM7.mjs → db-RAWY3SWS.mjs} +6 -6
- package/dist/cli/{db-5QLH6QK5.js → db-VHYWVLLU.js} +27 -27
- package/dist/cli/{describe-UBSCFPH5.mjs → describe-WZOVHWAM.mjs} +21 -21
- package/dist/cli/describe-YHZ2EGBQ.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-AGV5V7SD.js → executions-DQIFH4Z6.js} +8 -8
- package/dist/cli/{executions-XF5BNCFS.mjs → executions-QABOXV4K.mjs} +6 -6
- package/dist/cli/{feedback-3RDEZE2M.js → feedback-6IER2W4G.js} +14 -14
- package/dist/cli/{feedback-LT3PDK72.mjs → feedback-DW4O63DG.mjs} +6 -6
- package/dist/cli/{git-7VBTCCBV.mjs → git-3NAPGZGR.mjs} +5 -5
- package/dist/cli/git-SQ2MAKAH.js +26 -0
- package/dist/cli/index.js +148 -148
- package/dist/cli/index.mjs +47 -47
- package/dist/cli/{integrations-JP732FQB.js → integrations-5LHIBBXB.js} +29 -29
- package/dist/cli/{integrations-E7QRWMKZ.mjs → integrations-TSRUTENK.mjs} +7 -7
- package/dist/cli/{legacy-noops-UFNQBPIT.mjs → legacy-noops-4N63A6H7.mjs} +6 -6
- package/dist/cli/{legacy-noops-UTL4W5WE.js → legacy-noops-S22XGYGN.js} +9 -9
- package/dist/cli/{mcp-YHETA3AU.mjs → mcp-4EJHRRFV.mjs} +4 -4
- package/dist/cli/{mcp-5X4XFB4V.js → mcp-JERBGJYE.js} +24 -24
- package/dist/cli/{monitors-WFVZ42OQ.mjs → monitors-7BTLBD6S.mjs} +16 -11
- package/dist/cli/{monitors-AN6KH4XY.js → monitors-FF35CGC4.js} +109 -104
- package/dist/cli/{org-CN3XJZLA.js → org-ADCDO7KU.js} +121 -121
- package/dist/cli/{org-OMDV7WDF.mjs → org-QYIIBKA2.mjs} +6 -6
- package/dist/cli/{outcomes-7HCZ6K3Q.js → outcomes-2LW4GK2L.js} +14 -14
- package/dist/cli/{outcomes-I4ZTG5ND.mjs → outcomes-C5DIBG4Q.mjs} +6 -6
- package/dist/cli/{play-TSNBSHGA.mjs → play-DTTDTISL.mjs} +20 -20
- package/dist/cli/{play-45VXZ57A.js → play-S5MZ2GRA.js} +349 -349
- package/dist/cli/{providers-4TB56ZLK.mjs → providers-AXOEFQ6Q.mjs} +6 -6
- package/dist/cli/{providers-RB3TT7AE.js → providers-N2IWEJBW.js} +9 -9
- package/dist/cli/{quickstart-XHZ3PG5I.mjs → quickstart-ADWSZBV6.mjs} +4 -4
- package/dist/cli/{quickstart-ZNDM6VUD.js → quickstart-UC5AJZWU.js} +6 -6
- package/dist/cli/{run-XNEJGAKV.js → run-6TDYUL7L.js} +49 -48
- package/dist/cli/{run-7PY4G6GB.mjs → run-R2FVH3K6.mjs} +27 -26
- package/dist/cli/{search-BG7KCIOG.mjs → search-GRHUFSLY.mjs} +7 -7
- package/dist/cli/search-V7ANBX3J.js +32 -0
- package/dist/cli/{search-output-3ZBNTHGO.js → search-output-O7NY3VMD.js} +8 -8
- package/dist/cli/{search-output-TWKKP2BE.mjs → search-output-UPQNAFAF.mjs} +5 -5
- package/dist/cli/{secrets-FNR6MX6A.js → secrets-72GJHFER.js} +15 -15
- package/dist/cli/{secrets-AZZCE7E3.mjs → secrets-NKAEJLIQ.mjs} +6 -6
- package/dist/cli/sessions-EO6RTMUC.js +23 -0
- package/dist/cli/{sessions-ZAMKN3AF.mjs → sessions-VIMF3UF5.mjs} +6 -6
- package/dist/cli/{settings-QGASFWV3.js → settings-HFAW5HIF.js} +85 -85
- package/dist/cli/{settings-WKWOOOI2.mjs → settings-KCQHBFNZ.mjs} +12 -12
- package/dist/cli/{setup-KUZDCR3F.js → setup-2MHWGEAD.js} +49 -49
- package/dist/cli/{setup-U36W42LE.mjs → setup-2ZD5ZIUH.mjs} +9 -9
- package/dist/cli/skills-ID6KKDLH.js +37 -0
- package/dist/cli/{skills-25CSZQIK.mjs → skills-X2DZZG5P.mjs} +7 -7
- package/dist/cli/tools-7UY7GERW.js +57 -0
- package/dist/cli/{tools-4NZQ22AA.mjs → tools-KPTOWKD4.mjs} +19 -19
- package/dist/cli/{update-CJYP36TG.mjs → update-6PMQCEUP.mjs} +9 -9
- package/dist/cli/update-T2RDLLSY.js +37 -0
- package/dist/cli/{views-76UIPWJD.js → views-MNBHNO6C.js} +37 -24
- package/dist/cli/{views-GYGE7FSV.mjs → views-VRZ5CTFL.mjs} +21 -8
- package/dist/cli/{workflow-LZSWALZS.mjs → workflow-7JUJWA5S.mjs} +7 -7
- package/dist/cli/{workflow-NCVXBATM.js → workflow-SSMFO7YE.js} +17 -17
- package/dist/{client-CF-bsrtI.d.mts → client-CmG8MT0x.d.mts} +1 -1
- package/dist/{client-BrdMPFCM.d.ts → client-QznpkWrk.d.ts} +1 -1
- package/dist/{client-core-rMoUWSYM.d.ts → client-core-CXDqfeiB.d.ts} +12 -1
- package/dist/{client-core-DM1ZedOG.d.mts → client-core-CY0jNW0e.d.mts} +12 -1
- 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-VSW3MTFO.js +0 -44
- package/dist/cli/concurrent-runs-help-ATT2GVTQ.js +0 -22
- package/dist/cli/describe-Q27SRQWM.js +0 -50
- package/dist/cli/git-BBTP3H7J.js +0 -26
- package/dist/cli/search-ZBU5GW4W.js +0 -32
- package/dist/cli/sessions-GCY62GAW.js +0 -23
- package/dist/cli/skills-43DHMLRW.js +0 -37
- package/dist/cli/tools-5BGKNMFU.js +0 -57
- package/dist/cli/update-CUO2MTB6.js +0 -37
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-EI7KTESB.mjs";
|
|
4
|
+
import "./chunk-SQBSK74D.mjs";
|
|
5
5
|
import "./chunk-FZHMNK6F.mjs";
|
|
6
6
|
import "./chunk-5TYLSS4Q.mjs";
|
|
7
7
|
import "./chunk-PSX3WHIH.mjs";
|
|
8
8
|
import {
|
|
9
9
|
printCommandEnvelope,
|
|
10
10
|
shouldEmitJson
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-3ZBPXNSW.mjs";
|
|
12
|
+
import "./chunk-X5RXG6VS.mjs";
|
|
13
|
+
import "./chunk-IG3CXIJY.mjs";
|
|
14
14
|
import "./chunk-ASB47RXJ.mjs";
|
|
15
15
|
import "./chunk-DLIRSHV6.mjs";
|
|
16
16
|
import "./chunk-Z3A2S3QM.mjs";
|
|
17
17
|
import "./chunk-2MGZAI54.mjs";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-GIZIWNL5.mjs";
|
|
19
19
|
import "./chunk-WZYKRD7T.mjs";
|
|
20
20
|
import "./chunk-KRD6H754.mjs";
|
|
21
21
|
|
|
@@ -1,29 +1,29 @@
|
|
|
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
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkXFVJ3JNAjs = require('./chunk-XFVJ3JNA.js');
|
|
4
|
+
require('./chunk-WJUAVMQC.js');
|
|
5
5
|
require('./chunk-4WAM6TLD.js');
|
|
6
6
|
require('./chunk-MJTVX4QK.js');
|
|
7
7
|
require('./chunk-PMH4GLMD.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
12
|
-
require('./chunk-
|
|
13
|
-
require('./chunk-
|
|
11
|
+
var _chunkNNWEQDZRjs = require('./chunk-NNWEQDZR.js');
|
|
12
|
+
require('./chunk-2ZCFAUCV.js');
|
|
13
|
+
require('./chunk-6VSUP4WN.js');
|
|
14
14
|
require('./chunk-6VLFQZK6.js');
|
|
15
15
|
require('./chunk-XNYIZMNQ.js');
|
|
16
16
|
require('./chunk-LFQJW4S2.js');
|
|
17
17
|
require('./chunk-CFJFUVX2.js');
|
|
18
|
-
require('./chunk-
|
|
18
|
+
require('./chunk-MBOPKQJF.js');
|
|
19
19
|
require('./chunk-OG64RBAC.js');
|
|
20
20
|
require('./chunk-COGTRVWW.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/providers.ts
|
|
23
23
|
async function listProviders(options = {}) {
|
|
24
|
-
const client = new (0,
|
|
24
|
+
const client = new (0, _chunkXFVJ3JNAjs.DeeplineClient)();
|
|
25
25
|
const changed = options.changed === true;
|
|
26
|
-
const emitJson = options.json === true ||
|
|
26
|
+
const emitJson = options.json === true || _chunkNNWEQDZRjs.shouldEmitJson.call(void 0, );
|
|
27
27
|
const providers = await client.listProviders({ changed });
|
|
28
28
|
const render = {
|
|
29
29
|
sections: [
|
|
@@ -43,7 +43,7 @@ async function listProviders(options = {}) {
|
|
|
43
43
|
}
|
|
44
44
|
]
|
|
45
45
|
};
|
|
46
|
-
|
|
46
|
+
_chunkNNWEQDZRjs.printCommandEnvelope.call(void 0,
|
|
47
47
|
{
|
|
48
48
|
providers,
|
|
49
49
|
count: providers.length,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
printCommandEnvelope,
|
|
3
3
|
shouldEmitJson
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-3ZBPXNSW.mjs";
|
|
5
|
+
import "./chunk-X5RXG6VS.mjs";
|
|
6
|
+
import "./chunk-IG3CXIJY.mjs";
|
|
7
7
|
import "./chunk-ASB47RXJ.mjs";
|
|
8
8
|
import "./chunk-DLIRSHV6.mjs";
|
|
9
9
|
import "./chunk-Z3A2S3QM.mjs";
|
|
10
10
|
import "./chunk-2MGZAI54.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-GIZIWNL5.mjs";
|
|
12
12
|
import "./chunk-WZYKRD7T.mjs";
|
|
13
13
|
import {
|
|
14
14
|
DEEPLINE_GTM_SKILL,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
4
|
+
var _chunkNNWEQDZRjs = require('./chunk-NNWEQDZR.js');
|
|
5
|
+
require('./chunk-2ZCFAUCV.js');
|
|
6
|
+
require('./chunk-6VSUP4WN.js');
|
|
7
7
|
require('./chunk-6VLFQZK6.js');
|
|
8
8
|
require('./chunk-XNYIZMNQ.js');
|
|
9
9
|
require('./chunk-LFQJW4S2.js');
|
|
10
10
|
require('./chunk-CFJFUVX2.js');
|
|
11
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-MBOPKQJF.js');
|
|
12
12
|
require('./chunk-OG64RBAC.js');
|
|
13
13
|
|
|
14
14
|
|
|
@@ -18,12 +18,12 @@ require('./chunk-COGTRVWW.js');
|
|
|
18
18
|
|
|
19
19
|
// src/cli/commands/quickstart.ts
|
|
20
20
|
async function handleQuickstart(options) {
|
|
21
|
-
const jsonOutput =
|
|
21
|
+
const jsonOutput = _chunkNNWEQDZRjs.shouldEmitJson.call(void 0, options.json === true);
|
|
22
22
|
const gettingStarted = {
|
|
23
23
|
skill: _chunkRLX5ZFNXjs.DEEPLINE_GTM_SKILL,
|
|
24
24
|
examples: _chunkRLX5ZFNXjs.DEEPLINE_GTM_STARTER_PROMPTS
|
|
25
25
|
};
|
|
26
|
-
|
|
26
|
+
_chunkNNWEQDZRjs.printCommandEnvelope.call(void 0,
|
|
27
27
|
{
|
|
28
28
|
ok: true,
|
|
29
29
|
status: "deprecated",
|
|
@@ -1,57 +1,57 @@
|
|
|
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 _chunkDQEHBAHLjs = require('./chunk-DQEHBAHL.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkMCYZO3RBjs = require('./chunk-MCYZO3RB.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunk3OSNEWGRjs = require('./chunk-3OSNEWGR.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
18
|
-
require('./chunk-
|
|
19
|
-
require('./chunk-
|
|
17
|
+
var _chunkXQUVLYOLjs = require('./chunk-XQUVLYOL.js');
|
|
18
|
+
require('./chunk-APJ7IPRT.js');
|
|
19
|
+
require('./chunk-GDBNH57Z.js');
|
|
20
20
|
require('./chunk-D3BCSAN7.js');
|
|
21
21
|
|
|
22
22
|
|
|
23
|
-
var
|
|
24
|
-
require('./chunk-
|
|
25
|
-
require('./chunk-
|
|
23
|
+
var _chunkS2YKIWCDjs = require('./chunk-S2YKIWCD.js');
|
|
24
|
+
require('./chunk-3S5KFHQH.js');
|
|
25
|
+
require('./chunk-MOZDEYQC.js');
|
|
26
26
|
require('./chunk-BVXIGOBZ.js');
|
|
27
27
|
require('./chunk-CSPHSNBW.js');
|
|
28
28
|
require('./chunk-J33TSWO5.js');
|
|
29
29
|
require('./chunk-HGFFYVXN.js');
|
|
30
|
-
require('./chunk-
|
|
30
|
+
require('./chunk-XFVJ3JNA.js');
|
|
31
31
|
require('./chunk-BLMB4N63.js');
|
|
32
|
-
require('./chunk-
|
|
32
|
+
require('./chunk-WJUAVMQC.js');
|
|
33
33
|
require('./chunk-4WAM6TLD.js');
|
|
34
34
|
require('./chunk-MJTVX4QK.js');
|
|
35
35
|
require('./chunk-PMH4GLMD.js');
|
|
36
|
-
require('./chunk-
|
|
37
|
-
require('./chunk-
|
|
38
|
-
require('./chunk-
|
|
39
|
-
require('./chunk-
|
|
40
|
-
require('./chunk-
|
|
41
|
-
require('./chunk-
|
|
36
|
+
require('./chunk-V5NDHTBB.js');
|
|
37
|
+
require('./chunk-HEZ24K5F.js');
|
|
38
|
+
require('./chunk-VOQWPUIF.js');
|
|
39
|
+
require('./chunk-YY6EB252.js');
|
|
40
|
+
require('./chunk-TSOXJZSW.js');
|
|
41
|
+
require('./chunk-Z6DERGHY.js');
|
|
42
42
|
|
|
43
43
|
|
|
44
|
-
var
|
|
44
|
+
var _chunkZADJC22Ujs = require('./chunk-ZADJC22U.js');
|
|
45
45
|
|
|
46
46
|
|
|
47
|
-
var
|
|
48
|
-
require('./chunk-
|
|
49
|
-
require('./chunk-
|
|
47
|
+
var _chunkNNWEQDZRjs = require('./chunk-NNWEQDZR.js');
|
|
48
|
+
require('./chunk-2ZCFAUCV.js');
|
|
49
|
+
require('./chunk-6VSUP4WN.js');
|
|
50
50
|
require('./chunk-6VLFQZK6.js');
|
|
51
51
|
require('./chunk-XNYIZMNQ.js');
|
|
52
52
|
require('./chunk-LFQJW4S2.js');
|
|
53
53
|
require('./chunk-CFJFUVX2.js');
|
|
54
|
-
require('./chunk-
|
|
54
|
+
require('./chunk-MBOPKQJF.js');
|
|
55
55
|
require('./chunk-OG64RBAC.js');
|
|
56
56
|
require('./chunk-RLX5ZFNX.js');
|
|
57
57
|
require('./chunk-COGTRVWW.js');
|
|
@@ -72,7 +72,7 @@ function readInput(options) {
|
|
|
72
72
|
}
|
|
73
73
|
const path = _nullishCoalesce(options.inputFile, () => ( (_optionalChain([options, 'access', _ => _.input, 'optionalAccess', _2 => _2.startsWith, 'call', _3 => _3("@")]) ? options.input.slice(1) : void 0)));
|
|
74
74
|
const flag = options.inputFile !== void 0 ? "--input-file" : "--input";
|
|
75
|
-
const text = path === void 0 ? _nullishCoalesce(options.input, () => ( "{}")) :
|
|
75
|
+
const text = path === void 0 ? _nullishCoalesce(options.input, () => ( "{}")) : _chunk3OSNEWGRjs.jsonFileText.call(void 0, _fs.readFileSync.call(void 0, path === "-" ? 0 : path));
|
|
76
76
|
let input;
|
|
77
77
|
try {
|
|
78
78
|
input = JSON.parse(text);
|
|
@@ -87,7 +87,7 @@ function readInput(options) {
|
|
|
87
87
|
return input;
|
|
88
88
|
}
|
|
89
89
|
function refuse(message, output) {
|
|
90
|
-
|
|
90
|
+
_chunkXQUVLYOLjs.writeExecutionOutput.call(void 0,
|
|
91
91
|
{ id: null, status: "failed", error: { message }, ran: false },
|
|
92
92
|
output
|
|
93
93
|
);
|
|
@@ -103,7 +103,7 @@ async function runAnything(name, options) {
|
|
|
103
103
|
logsOut: options.logsOut,
|
|
104
104
|
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)])
|
|
105
105
|
};
|
|
106
|
-
if (!
|
|
106
|
+
if (!_chunkXQUVLYOLjs.preflightExecutionOutput.call(void 0, output)) return 2;
|
|
107
107
|
let input;
|
|
108
108
|
let timeoutMs;
|
|
109
109
|
try {
|
|
@@ -121,7 +121,7 @@ async function runAnything(name, options) {
|
|
|
121
121
|
throw new Error("--max-credits takes a number of credits above 0.");
|
|
122
122
|
}
|
|
123
123
|
if (options.timeout !== void 0 && options.timeout !== "0") {
|
|
124
|
-
const { parseToolExecuteTimeout } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
124
|
+
const { parseToolExecuteTimeout } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-7UY7GERW.js")));
|
|
125
125
|
timeoutMs = parseToolExecuteTimeout(options.timeout);
|
|
126
126
|
}
|
|
127
127
|
} catch (error) {
|
|
@@ -142,7 +142,7 @@ async function runAnything(name, options) {
|
|
|
142
142
|
if (name !== void 0) {
|
|
143
143
|
return refuse("Use a name or -e, not both.", output);
|
|
144
144
|
}
|
|
145
|
-
const { writeInlinePlay } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
145
|
+
const { writeInlinePlay } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-S5MZ2GRA.js")));
|
|
146
146
|
let file;
|
|
147
147
|
try {
|
|
148
148
|
file = writeInlinePlay(options.eval);
|
|
@@ -165,7 +165,7 @@ async function runAnything(name, options) {
|
|
|
165
165
|
output
|
|
166
166
|
);
|
|
167
167
|
}
|
|
168
|
-
if (
|
|
168
|
+
if (_chunkDQEHBAHLjs.looksLikeFilePath.call(void 0, name)) {
|
|
169
169
|
if (options.example !== void 0) {
|
|
170
170
|
return refuse(
|
|
171
171
|
"--example takes a named example from a published play; give a play file its input with --input.",
|
|
@@ -176,18 +176,18 @@ async function runAnything(name, options) {
|
|
|
176
176
|
return runPlay(name, play);
|
|
177
177
|
}
|
|
178
178
|
let { base, revision } = splitRevision(name);
|
|
179
|
-
let found = await
|
|
179
|
+
let found = await _chunkMCYZO3RBjs.findNamed.call(void 0, base, {});
|
|
180
180
|
if (!found.chosen && revision) {
|
|
181
|
-
found = await
|
|
181
|
+
found = await _chunkMCYZO3RBjs.findNamed.call(void 0, name, {});
|
|
182
182
|
if (found.chosen)
|
|
183
183
|
({ base, revision } = { base: name, revision: void 0 });
|
|
184
184
|
}
|
|
185
185
|
const { chosen, shadowed } = found;
|
|
186
|
-
if (!chosen) return refuse(
|
|
186
|
+
if (!chosen) return refuse(_chunkMCYZO3RBjs.nothingNamed.call(void 0, base), output);
|
|
187
187
|
const { described } = chosen;
|
|
188
188
|
if (described.kind === "custom_play" && shadowed) {
|
|
189
189
|
console.error(
|
|
190
|
-
`Running your org play "${base}". It has the same name as a Deepline ${shadowed.described.kind.replace("_", " ")}; run that one with: deepline run ${
|
|
190
|
+
`Running your org play "${base}". It has the same name as a Deepline ${shadowed.described.kind.replace("_", " ")}; run that one with: deepline run ${_chunkS2YKIWCDjs.DEEPLINE_NAMESPACE}${base}`
|
|
191
191
|
);
|
|
192
192
|
}
|
|
193
193
|
const { runner } = described;
|
|
@@ -220,7 +220,7 @@ async function runAnything(name, options) {
|
|
|
220
220
|
if (runner.via === "play") {
|
|
221
221
|
return runPlay(runner.reference, { ...play, revision });
|
|
222
222
|
}
|
|
223
|
-
const { executeToolForReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
223
|
+
const { executeToolForReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-7UY7GERW.js")));
|
|
224
224
|
return executeToolForReceipt({
|
|
225
225
|
toolId: runner.toolId,
|
|
226
226
|
params: input,
|
|
@@ -234,12 +234,13 @@ function dryRun(described, input, output) {
|
|
|
234
234
|
const missing = described.inputs.filter((field) => field.required && !(field.name in input)).map((field) => field.name);
|
|
235
235
|
const known = new Set(described.inputs.map((field) => field.name));
|
|
236
236
|
const unknown = known.size ? Object.keys(input).filter((key) => !known.has(key)) : [];
|
|
237
|
-
|
|
237
|
+
_chunkXQUVLYOLjs.writeExecutionOutput.call(void 0,
|
|
238
238
|
{
|
|
239
239
|
id: null,
|
|
240
240
|
status: "dry_run",
|
|
241
241
|
ran: false,
|
|
242
242
|
...described.cost ? { price: described.cost } : {},
|
|
243
|
+
...described.credentialSource ? { credentialSource: described.credentialSource } : {},
|
|
243
244
|
...missing.length ? { error: { message: `The input is missing: ${missing.join(", ")}.` } } : {},
|
|
244
245
|
warnings: unknown.length ? [`The contract has no input named: ${unknown.join(", ")}.`] : [],
|
|
245
246
|
next: {
|
|
@@ -251,20 +252,20 @@ function dryRun(described, input, output) {
|
|
|
251
252
|
return missing.length ? 2 : 0;
|
|
252
253
|
}
|
|
253
254
|
async function runPlay(reference, play) {
|
|
254
|
-
const { handlePlayRun, writePlayRunReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
255
|
+
const { handlePlayRun, writePlayRunReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-S5MZ2GRA.js")));
|
|
255
256
|
const { output, options, revision } = play;
|
|
256
257
|
if (options.dryRun) {
|
|
257
|
-
const dryRunOptions =
|
|
258
|
+
const dryRunOptions = _chunkDQEHBAHLjs.resolvePlayRunCliOptions.call(void 0, reference, {
|
|
258
259
|
input: JSON.stringify(play.input),
|
|
259
260
|
dryRun: true,
|
|
260
261
|
json: output.receiptJson === true
|
|
261
262
|
});
|
|
262
263
|
if (output.receiptOut === void 0) return handlePlayRun(dryRunOptions);
|
|
263
|
-
const writeDryRunError = (error) =>
|
|
264
|
+
const writeDryRunError = (error) => _chunkXQUVLYOLjs.writeExecutionOutput.call(void 0,
|
|
264
265
|
{
|
|
265
266
|
id: null,
|
|
266
267
|
status: "failed",
|
|
267
|
-
error:
|
|
268
|
+
error: _chunkNNWEQDZRjs.errorToJsonPayload.call(void 0, error).error,
|
|
268
269
|
ran: false
|
|
269
270
|
},
|
|
270
271
|
output
|
|
@@ -272,7 +273,7 @@ async function runPlay(reference, play) {
|
|
|
272
273
|
try {
|
|
273
274
|
return await handlePlayRun(dryRunOptions, {
|
|
274
275
|
writeDryRunError,
|
|
275
|
-
writeDryRunPlan: (plan) =>
|
|
276
|
+
writeDryRunPlan: (plan) => _chunkXQUVLYOLjs.writeExecutionOutput.call(void 0,
|
|
276
277
|
{
|
|
277
278
|
id: null,
|
|
278
279
|
status: "dry_run",
|
|
@@ -283,19 +284,19 @@ async function runPlay(reference, play) {
|
|
|
283
284
|
)
|
|
284
285
|
});
|
|
285
286
|
} catch (error) {
|
|
286
|
-
if (error instanceof
|
|
287
|
+
if (error instanceof _chunkXQUVLYOLjs.ExecutionOutputError) throw error;
|
|
287
288
|
writeDryRunError(error);
|
|
288
289
|
return 1;
|
|
289
290
|
}
|
|
290
291
|
}
|
|
291
292
|
let id = null;
|
|
292
293
|
let written = false;
|
|
293
|
-
const progress =
|
|
294
|
-
if (!play.noWait) progress.setLogWriter(
|
|
294
|
+
const progress = _chunkZADJC22Ujs.createCliProgress.call(void 0, true);
|
|
295
|
+
if (!play.noWait) progress.setLogWriter(_chunkXQUVLYOLjs.openLogDestination.call(void 0, output));
|
|
295
296
|
progress.setQuiet(process.stderr.isTTY !== true);
|
|
296
297
|
try {
|
|
297
298
|
const code = await handlePlayRun(
|
|
298
|
-
|
|
299
|
+
_chunkDQEHBAHLjs.resolvePlayRunCliOptions.call(void 0, reference, {
|
|
299
300
|
input: JSON.stringify(play.input),
|
|
300
301
|
// The receipt is the only thing on stdout.
|
|
301
302
|
json: true,
|
|
@@ -322,7 +323,7 @@ async function runPlay(reference, play) {
|
|
|
322
323
|
},
|
|
323
324
|
writeStarted: (runId, status, page) => {
|
|
324
325
|
written = true;
|
|
325
|
-
|
|
326
|
+
_chunkXQUVLYOLjs.writeExecutionOutput.call(void 0,
|
|
326
327
|
{
|
|
327
328
|
id: runId,
|
|
328
329
|
status,
|
|
@@ -338,7 +339,7 @@ async function runPlay(reference, play) {
|
|
|
338
339
|
}
|
|
339
340
|
);
|
|
340
341
|
if (!written) {
|
|
341
|
-
|
|
342
|
+
_chunkXQUVLYOLjs.writeExecutionOutput.call(void 0,
|
|
342
343
|
{
|
|
343
344
|
id,
|
|
344
345
|
status: "failed",
|
|
@@ -350,11 +351,11 @@ async function runPlay(reference, play) {
|
|
|
350
351
|
return code;
|
|
351
352
|
} catch (error) {
|
|
352
353
|
if (written) throw error;
|
|
353
|
-
|
|
354
|
+
_chunkXQUVLYOLjs.writeExecutionOutput.call(void 0,
|
|
354
355
|
{
|
|
355
356
|
id,
|
|
356
357
|
status: "failed",
|
|
357
|
-
error:
|
|
358
|
+
error: _chunkNNWEQDZRjs.errorToJsonPayload.call(void 0, error).error,
|
|
358
359
|
...id ? { next: { status: `deepline runs get ${id}` } } : {}
|
|
359
360
|
},
|
|
360
361
|
output
|
|
@@ -383,7 +384,7 @@ function registerRunCommand(program) {
|
|
|
383
384
|
try {
|
|
384
385
|
process.exitCode = await runAnything(name, options);
|
|
385
386
|
} catch (error) {
|
|
386
|
-
if (options.receiptOut === void 0 || !(error instanceof
|
|
387
|
+
if (options.receiptOut === void 0 || !(error instanceof _chunkXQUVLYOLjs.ExecutionOutputError)) {
|
|
387
388
|
throw error;
|
|
388
389
|
}
|
|
389
390
|
process.exitCode = 1;
|
|
@@ -1,57 +1,57 @@
|
|
|
1
1
|
import {
|
|
2
2
|
looksLikeFilePath,
|
|
3
3
|
resolvePlayRunCliOptions
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-O7AWGIDD.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findNamed,
|
|
7
7
|
nothingNamed
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-IERWFFDB.mjs";
|
|
9
9
|
import {
|
|
10
10
|
jsonFileText
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-7HOG3JZE.mjs";
|
|
12
12
|
import {
|
|
13
13
|
ExecutionOutputError,
|
|
14
14
|
openLogDestination,
|
|
15
15
|
preflightExecutionOutput,
|
|
16
16
|
writeExecutionOutput
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-U4VCAECC.mjs";
|
|
18
|
+
import "./chunk-C6YXUGX2.mjs";
|
|
19
|
+
import "./chunk-BK4Z62CF.mjs";
|
|
20
20
|
import "./chunk-5AEDYVB6.mjs";
|
|
21
21
|
import {
|
|
22
22
|
DEEPLINE_NAMESPACE
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-KLBIHDZB.mjs";
|
|
24
|
+
import "./chunk-QXQBTTRD.mjs";
|
|
25
|
+
import "./chunk-SECFDB27.mjs";
|
|
26
26
|
import "./chunk-STXDSVQZ.mjs";
|
|
27
27
|
import "./chunk-MF7PCM6C.mjs";
|
|
28
28
|
import "./chunk-FR2ILQ4G.mjs";
|
|
29
29
|
import "./chunk-FIVKWNMT.mjs";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-EI7KTESB.mjs";
|
|
31
31
|
import "./chunk-2GEYN3H4.mjs";
|
|
32
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-SQBSK74D.mjs";
|
|
33
33
|
import "./chunk-FZHMNK6F.mjs";
|
|
34
34
|
import "./chunk-5TYLSS4Q.mjs";
|
|
35
35
|
import "./chunk-PSX3WHIH.mjs";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
40
|
-
import "./chunk-
|
|
41
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-5BPJW6X5.mjs";
|
|
37
|
+
import "./chunk-MEDA3STC.mjs";
|
|
38
|
+
import "./chunk-FCJJPEKN.mjs";
|
|
39
|
+
import "./chunk-HLMF53HZ.mjs";
|
|
40
|
+
import "./chunk-BAXLPQTM.mjs";
|
|
41
|
+
import "./chunk-7ORX33JX.mjs";
|
|
42
42
|
import {
|
|
43
43
|
createCliProgress
|
|
44
|
-
} from "./chunk-
|
|
44
|
+
} from "./chunk-3P4QZIJ5.mjs";
|
|
45
45
|
import {
|
|
46
46
|
errorToJsonPayload
|
|
47
|
-
} from "./chunk-
|
|
48
|
-
import "./chunk-
|
|
49
|
-
import "./chunk-
|
|
47
|
+
} from "./chunk-3ZBPXNSW.mjs";
|
|
48
|
+
import "./chunk-X5RXG6VS.mjs";
|
|
49
|
+
import "./chunk-IG3CXIJY.mjs";
|
|
50
50
|
import "./chunk-ASB47RXJ.mjs";
|
|
51
51
|
import "./chunk-DLIRSHV6.mjs";
|
|
52
52
|
import "./chunk-Z3A2S3QM.mjs";
|
|
53
53
|
import "./chunk-2MGZAI54.mjs";
|
|
54
|
-
import "./chunk-
|
|
54
|
+
import "./chunk-GIZIWNL5.mjs";
|
|
55
55
|
import "./chunk-WZYKRD7T.mjs";
|
|
56
56
|
import "./chunk-5JPKRDFC.mjs";
|
|
57
57
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -121,7 +121,7 @@ async function runAnything(name, options) {
|
|
|
121
121
|
throw new Error("--max-credits takes a number of credits above 0.");
|
|
122
122
|
}
|
|
123
123
|
if (options.timeout !== void 0 && options.timeout !== "0") {
|
|
124
|
-
const { parseToolExecuteTimeout } = await import("./tools-
|
|
124
|
+
const { parseToolExecuteTimeout } = await import("./tools-KPTOWKD4.mjs");
|
|
125
125
|
timeoutMs = parseToolExecuteTimeout(options.timeout);
|
|
126
126
|
}
|
|
127
127
|
} catch (error) {
|
|
@@ -142,7 +142,7 @@ async function runAnything(name, options) {
|
|
|
142
142
|
if (name !== void 0) {
|
|
143
143
|
return refuse("Use a name or -e, not both.", output);
|
|
144
144
|
}
|
|
145
|
-
const { writeInlinePlay } = await import("./play-
|
|
145
|
+
const { writeInlinePlay } = await import("./play-DTTDTISL.mjs");
|
|
146
146
|
let file;
|
|
147
147
|
try {
|
|
148
148
|
file = writeInlinePlay(options.eval);
|
|
@@ -220,7 +220,7 @@ async function runAnything(name, options) {
|
|
|
220
220
|
if (runner.via === "play") {
|
|
221
221
|
return runPlay(runner.reference, { ...play, revision });
|
|
222
222
|
}
|
|
223
|
-
const { executeToolForReceipt } = await import("./tools-
|
|
223
|
+
const { executeToolForReceipt } = await import("./tools-KPTOWKD4.mjs");
|
|
224
224
|
return executeToolForReceipt({
|
|
225
225
|
toolId: runner.toolId,
|
|
226
226
|
params: input,
|
|
@@ -240,6 +240,7 @@ function dryRun(described, input, output) {
|
|
|
240
240
|
status: "dry_run",
|
|
241
241
|
ran: false,
|
|
242
242
|
...described.cost ? { price: described.cost } : {},
|
|
243
|
+
...described.credentialSource ? { credentialSource: described.credentialSource } : {},
|
|
243
244
|
...missing.length ? { error: { message: `The input is missing: ${missing.join(", ")}.` } } : {},
|
|
244
245
|
warnings: unknown.length ? [`The contract has no input named: ${unknown.join(", ")}.`] : [],
|
|
245
246
|
next: {
|
|
@@ -251,7 +252,7 @@ function dryRun(described, input, output) {
|
|
|
251
252
|
return missing.length ? 2 : 0;
|
|
252
253
|
}
|
|
253
254
|
async function runPlay(reference, play) {
|
|
254
|
-
const { handlePlayRun, writePlayRunReceipt } = await import("./play-
|
|
255
|
+
const { handlePlayRun, writePlayRunReceipt } = await import("./play-DTTDTISL.mjs");
|
|
255
256
|
const { output, options, revision } = play;
|
|
256
257
|
if (options.dryRun) {
|
|
257
258
|
const dryRunOptions = resolvePlayRunCliOptions(reference, {
|
|
@@ -5,21 +5,21 @@ import {
|
|
|
5
5
|
pointAtDescribe,
|
|
6
6
|
registerDeprecatedSearchCommand,
|
|
7
7
|
registerSearchCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-BK4Z62CF.mjs";
|
|
9
9
|
import "./chunk-5AEDYVB6.mjs";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-EI7KTESB.mjs";
|
|
11
|
+
import "./chunk-SQBSK74D.mjs";
|
|
12
12
|
import "./chunk-FZHMNK6F.mjs";
|
|
13
13
|
import "./chunk-5TYLSS4Q.mjs";
|
|
14
14
|
import "./chunk-PSX3WHIH.mjs";
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-3ZBPXNSW.mjs";
|
|
16
|
+
import "./chunk-X5RXG6VS.mjs";
|
|
17
|
+
import "./chunk-IG3CXIJY.mjs";
|
|
18
18
|
import "./chunk-ASB47RXJ.mjs";
|
|
19
19
|
import "./chunk-DLIRSHV6.mjs";
|
|
20
20
|
import "./chunk-Z3A2S3QM.mjs";
|
|
21
21
|
import "./chunk-2MGZAI54.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-GIZIWNL5.mjs";
|
|
23
23
|
import "./chunk-WZYKRD7T.mjs";
|
|
24
24
|
import "./chunk-KRD6H754.mjs";
|
|
25
25
|
export {
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkGDBNH57Zjs = require('./chunk-GDBNH57Z.js');
|
|
9
|
+
require('./chunk-D3BCSAN7.js');
|
|
10
|
+
require('./chunk-XFVJ3JNA.js');
|
|
11
|
+
require('./chunk-WJUAVMQC.js');
|
|
12
|
+
require('./chunk-4WAM6TLD.js');
|
|
13
|
+
require('./chunk-MJTVX4QK.js');
|
|
14
|
+
require('./chunk-PMH4GLMD.js');
|
|
15
|
+
require('./chunk-NNWEQDZR.js');
|
|
16
|
+
require('./chunk-2ZCFAUCV.js');
|
|
17
|
+
require('./chunk-6VSUP4WN.js');
|
|
18
|
+
require('./chunk-6VLFQZK6.js');
|
|
19
|
+
require('./chunk-XNYIZMNQ.js');
|
|
20
|
+
require('./chunk-LFQJW4S2.js');
|
|
21
|
+
require('./chunk-CFJFUVX2.js');
|
|
22
|
+
require('./chunk-MBOPKQJF.js');
|
|
23
|
+
require('./chunk-OG64RBAC.js');
|
|
24
|
+
require('./chunk-COGTRVWW.js');
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
exports.SEARCH_TYPES = _chunkGDBNH57Zjs.SEARCH_TYPES; exports.appendCsv = _chunkGDBNH57Zjs.appendCsv; exports.parseTypes = _chunkGDBNH57Zjs.parseTypes; exports.pointAtDescribe = _chunkGDBNH57Zjs.pointAtDescribe; exports.registerDeprecatedSearchCommand = _chunkGDBNH57Zjs.registerDeprecatedSearchCommand; exports.registerSearchCommand = _chunkGDBNH57Zjs.registerSearchCommand;
|
|
@@ -6,19 +6,19 @@ var _chunkC5IA2OYEjs = require('./chunk-C5IA2OYE.js');
|
|
|
6
6
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkMOZDEYQCjs = require('./chunk-MOZDEYQC.js');
|
|
10
10
|
require('./chunk-BVXIGOBZ.js');
|
|
11
11
|
require('./chunk-PMH4GLMD.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
require('./chunk-
|
|
16
|
-
require('./chunk-
|
|
14
|
+
var _chunkNNWEQDZRjs = require('./chunk-NNWEQDZR.js');
|
|
15
|
+
require('./chunk-2ZCFAUCV.js');
|
|
16
|
+
require('./chunk-6VSUP4WN.js');
|
|
17
17
|
require('./chunk-6VLFQZK6.js');
|
|
18
18
|
require('./chunk-XNYIZMNQ.js');
|
|
19
19
|
require('./chunk-LFQJW4S2.js');
|
|
20
20
|
require('./chunk-CFJFUVX2.js');
|
|
21
|
-
require('./chunk-
|
|
21
|
+
require('./chunk-MBOPKQJF.js');
|
|
22
22
|
require('./chunk-OG64RBAC.js');
|
|
23
23
|
require('./chunk-COGTRVWW.js');
|
|
24
24
|
|
|
@@ -127,7 +127,7 @@ var OPTIONAL_COLUMNS = [
|
|
|
127
127
|
];
|
|
128
128
|
function renderSearchResults(result, summaryWidth = _chunkD3BCSAN7js.DEFAULT_SUMMARY_WIDTH) {
|
|
129
129
|
if (result.results.length === 0)
|
|
130
|
-
return
|
|
130
|
+
return _chunkNNWEQDZRjs.renderCommandEnvelopeText.call(void 0, result);
|
|
131
131
|
const rows = result.results.map((item) => searchRow(item, summaryWidth));
|
|
132
132
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
133
133
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -158,7 +158,7 @@ function renderSearchResults(result, summaryWidth = _chunkD3BCSAN7js.DEFAULT_SUM
|
|
|
158
158
|
actions: _optionalChain([render, 'optionalAccess', _17 => _17.actions])
|
|
159
159
|
};
|
|
160
160
|
const followUps = _optionalChain([remaining, 'access', _18 => _18.sections, 'optionalAccess', _19 => _19.length]) || _optionalChain([remaining, 'access', _20 => _20.actions, 'optionalAccess', _21 => _21.length]) ? `
|
|
161
|
-
${
|
|
161
|
+
${_chunkNNWEQDZRjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
162
162
|
const exact = _optionalChain([result, 'access', _22 => _22.exactLookup, 'optionalAccess', _23 => _23.toolId]);
|
|
163
163
|
const matched = exact && result.results.find((item) => item.id === exact);
|
|
164
164
|
const contract = matched ? [
|
|
@@ -166,7 +166,7 @@ ${_chunkHGQT6EGKjs.renderCommandEnvelopeText.call(void 0, { render: remaining })
|
|
|
166
166
|
...(_nullishCoalesce(_optionalChain([matched, 'access', _26 => _26.toolUsage, 'optionalAccess', _27 => _27.requiredInputs]), () => ( []))).map(
|
|
167
167
|
({ name, meaning }) => ` ${name}${meaning ? ` \u2014 ${meaning}` : ""}`
|
|
168
168
|
),
|
|
169
|
-
...matched.auth ?
|
|
169
|
+
...matched.auth ? _chunkMOZDEYQCjs.discoveryAuthLines.call(void 0, matched.auth) : [],
|
|
170
170
|
...matched.describeCommand ? [matched.describeCommand] : [],
|
|
171
171
|
..._optionalChain([matched, 'access', _28 => _28.toolUsage, 'optionalAccess', _29 => _29.example]) ? [matched.toolUsage.example.cli] : []
|
|
172
172
|
] : [];
|