deepline 0.3.484 → 0.3.485
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 +91 -30
- package/dist/bundling-sources/sdk/src/compat.ts +13 -0
- package/dist/bundling-sources/sdk/src/plays/client-core.ts +4 -1
- package/dist/bundling-sources/sdk/src/plays/run-request.ts +143 -9
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +31 -4
- package/dist/bundling-sources/sdk/src/tool-calls.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +7 -1
- package/dist/bundling-sources/shared_libs/play-data-plane/sheet-column-storage.ts +32 -3
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +126 -41
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +231 -25
- package/dist/bundling-sources/shared_libs/play-runtime/daytona-runtime-config.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-machines.ts +130 -19
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/fly-registry.ts +105 -0
- package/dist/bundling-sources/shared_libs/play-runtime/execute-server-timing.ts +4 -2
- package/dist/bundling-sources/shared_libs/play-runtime/governor/app-runtime-rate-state-backend.ts +194 -56
- package/dist/bundling-sources/shared_libs/play-runtime/log-provenance.ts +11 -6
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/job.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/ports.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-runs/sandbox-cleanup/postgres-adapter.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +30 -0
- package/dist/bundling-sources/shared_libs/play-runtime/resource-governor.ts +195 -2
- package/dist/bundling-sources/shared_libs/play-runtime/run-failure.ts +20 -1
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger-projection-contract.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +102 -23
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/progress-sidecar.ts +9 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-control-transport.ts +25 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +133 -82
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +58 -16
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-sandbox-absence.ts +171 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-session-execution.ts +69 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +100 -40
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/types.ts +8 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +67 -9
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +5 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +6 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-errors.ts +14 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-sheet-row-writer.ts +87 -31
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/contract.ts +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/index.ts +19 -0
- package/dist/bundling-sources/shared_libs/play-runtime/sandbox-runs/runner-backend-adapter.ts +14 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +204 -6
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +39 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/play-run-recovery.ts +12 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +26 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-scope.ts +44 -15
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-rate-state.ts +60 -11
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +649 -38
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +6 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +17 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-sandbox-capacity.ts +25 -33
- package/dist/bundling-sources/shared_libs/play-runtime/suspension.ts +12 -0
- package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +21 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +1 -1
- package/dist/bundling-sources/shared_libs/plays/source-authoring-edition.ts +1 -1
- package/dist/cli/auth-ABZBH55L.js +43 -0
- package/dist/cli/{auth-EBFOTF7X.mjs → auth-OWMUENCU.mjs} +5 -5
- package/dist/cli/{billing-G2G3EF3I.js → billing-2FMNQGOX.js} +80 -80
- package/dist/cli/{billing-2ZOIMW5V.mjs → billing-JX4H3VFF.mjs} +7 -7
- package/dist/cli/{chunk-M4PG7FGC.js → chunk-2ILND7XX.js} +2 -2
- package/dist/cli/{chunk-WXRM3UC6.mjs → chunk-2ZEQ43B7.mjs} +3 -3
- package/dist/cli/{chunk-PU52JXKA.mjs → chunk-3DBW6C7M.mjs} +13 -4
- package/dist/cli/{chunk-4OVHIWE7.mjs → chunk-3DYU3JQN.mjs} +2 -2
- package/dist/cli/{chunk-QIDDTIVZ.js → chunk-3OF7NSGR.js} +322 -294
- package/dist/cli/{chunk-YWC5AN26.mjs → chunk-3Z24NKW7.mjs} +62 -34
- package/dist/cli/{chunk-RLLEH2SP.js → chunk-5DCQWQCP.js} +26 -26
- package/dist/cli/{chunk-DEXSQGXB.mjs → chunk-62PJ6PK7.mjs} +5 -5
- package/dist/cli/{chunk-6NPWXE32.mjs → chunk-676NZ7K4.mjs} +1 -1
- package/dist/cli/{chunk-FRD5WFT4.js → chunk-775AZTO7.js} +323 -247
- package/dist/cli/{chunk-4OEOM6GP.mjs → chunk-ACTUAZYP.mjs} +5 -5
- package/dist/cli/{chunk-ZOKM7DVA.js → chunk-AFADYKFE.js} +8 -8
- package/dist/cli/{chunk-GVAENVIG.js → chunk-AUQQVDAB.js} +110 -21
- package/dist/cli/{chunk-U7IJAGWB.js → chunk-BSKPQB2P.js} +7 -7
- package/dist/cli/chunk-C6QWRSMQ.js +42 -0
- package/dist/cli/{chunk-AK7UKQ5R.js → chunk-CSBMKHTV.js} +5 -5
- package/dist/cli/{chunk-YHA3EV3I.mjs → chunk-CW6TAQBF.mjs} +15 -4
- package/dist/cli/{chunk-UT4YMA2N.js → chunk-DMNVM34J.js} +5 -4
- package/dist/cli/{chunk-XZXIWPT3.mjs → chunk-E73JXJA3.mjs} +1 -1
- package/dist/cli/{chunk-5KNRQWHE.js → chunk-EC2CVPN5.js} +3 -3
- package/dist/cli/{chunk-IXWQOVNW.js → chunk-ECIXZNSW.js} +87 -76
- package/dist/cli/{chunk-LTZXLYKE.mjs → chunk-FJY6K3BG.mjs} +93 -17
- package/dist/cli/{chunk-TRLDJNVE.mjs → chunk-G5PI3RNT.mjs} +1 -1
- package/dist/cli/{chunk-WYUCDLVR.mjs → chunk-GHHJWCMD.mjs} +2 -1
- package/dist/cli/{chunk-FQK7BULS.js → chunk-HKGXGGIV.js} +1 -1
- package/dist/cli/{chunk-2AWYJXBX.js → chunk-IHMYIHF4.js} +5 -5
- package/dist/cli/{chunk-SD7QWZTV.mjs → chunk-INW22YP7.mjs} +1 -1
- package/dist/cli/{chunk-OWUZKXE7.mjs → chunk-J7EENGKJ.mjs} +1 -1
- package/dist/cli/{chunk-TIRSKEZH.mjs → chunk-JD6HKNKD.mjs} +1 -1
- package/dist/cli/{chunk-OHKKDPA5.js → chunk-JQXUWYWX.js} +13 -13
- package/dist/cli/{chunk-EACX7QXO.mjs → chunk-KZTNNLIL.mjs} +2 -2
- package/dist/cli/{chunk-7K5CWKKZ.mjs → chunk-L352NOE3.mjs} +2 -2
- package/dist/cli/{chunk-KGOC6HGI.js → chunk-L7IQ3DFH.js} +53 -53
- package/dist/cli/{chunk-4IOY2SCQ.js → chunk-LOX3BISD.js} +4 -4
- package/dist/cli/{chunk-6GRZEYSG.js → chunk-NKPTM7SK.js} +7 -7
- package/dist/cli/{chunk-VEVGM6B5.js → chunk-NLRTFJGH.js} +14 -14
- package/dist/cli/{chunk-UKM74PAA.js → chunk-NRNWPWBW.js} +37 -37
- package/dist/cli/{chunk-HNRELVCS.mjs → chunk-ONONSV2Q.mjs} +96 -7
- package/dist/cli/{chunk-CYWBAV5H.js → chunk-OW4OTEFF.js} +16 -16
- package/dist/cli/{chunk-5K5CAND4.mjs → chunk-RZE5I2XJ.mjs} +4 -4
- package/dist/cli/{chunk-3XQIVEAT.js → chunk-S3WQJ5VG.js} +3 -3
- package/dist/cli/{chunk-4SFC2XUF.mjs → chunk-SR6S4EYG.mjs} +5 -5
- package/dist/cli/{chunk-UWOY74RU.js → chunk-T4G2T5DS.js} +21 -21
- package/dist/cli/{chunk-TN2GW57M.mjs → chunk-TMCC7ORQ.mjs} +1 -1
- package/dist/cli/{chunk-HEI3BWIV.mjs → chunk-TSCUWWTM.mjs} +1 -1
- package/dist/cli/{chunk-DBJ62RAO.js → chunk-TVW6USSG.js} +3 -3
- package/dist/cli/{chunk-NW4QJE54.js → chunk-U6WEGDD3.js} +2 -2
- package/dist/cli/{chunk-V7JCMBLU.mjs → chunk-UPHXGZCE.mjs} +4 -4
- package/dist/cli/{chunk-C62NI2X6.js → chunk-UQ3LQ6IF.js} +5 -5
- package/dist/cli/{chunk-5GOG5ZGC.mjs → chunk-VZYTLWOM.mjs} +2 -2
- package/dist/cli/{chunk-AF7MOUZP.mjs → chunk-W33OL4F2.mjs} +2 -2
- package/dist/cli/{chunk-ZM2YPJQJ.js → chunk-XK5DMLZE.js} +5 -1
- package/dist/cli/{chunk-LJ5747UC.mjs → chunk-XRDXNAAY.mjs} +5 -1
- package/dist/cli/{chunk-YGN77QA5.mjs → chunk-YDA3PMKK.mjs} +3 -3
- package/dist/cli/{csv-S3CHUKI6.js → csv-HFEQPGNY.js} +13 -13
- package/dist/cli/{csv-NLWVWD3H.mjs → csv-OHF3Y5KB.mjs} +4 -4
- package/dist/cli/{db-OGRPAEEM.mjs → db-M456OUXD.mjs} +7 -7
- package/dist/cli/{db-WBSKMMOH.js → db-VLQKCYQS.js} +28 -28
- package/dist/cli/describe-CP35DZ5Z.js +49 -0
- package/dist/cli/{describe-FAD3Z7LN.mjs → describe-M6VXFYVL.mjs} +21 -21
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-LYCL344R.mjs → executions-4FGRBPJF.mjs} +7 -7
- package/dist/cli/{executions-SOAZHCY4.js → executions-GKINJZI6.js} +9 -9
- package/dist/cli/{feedback-AVF6V7SV.mjs → feedback-D2WMGK3V.mjs} +4 -4
- package/dist/cli/{feedback-OROUPUNJ.js → feedback-ZH5K7WV7.js} +8 -8
- package/dist/cli/git-IDALMZDN.js +25 -0
- package/dist/cli/{git-J5N5M57H.mjs → git-OCIJ5ME4.mjs} +5 -5
- package/dist/cli/index.js +142 -139
- package/dist/cli/index.mjs +45 -42
- package/dist/cli/{legacy-noops-QAQMZMEG.js → legacy-noops-QNIVP7LO.js} +8 -8
- package/dist/cli/{legacy-noops-ENRRM7BL.mjs → legacy-noops-V6Q2X34P.mjs} +5 -5
- package/dist/cli/{monitors-CKQ65WRL.mjs → monitors-2USHTG5G.mjs} +8 -8
- package/dist/cli/{monitors-SFMQ5LFR.js → monitors-5DNK7W2K.js} +92 -92
- package/dist/cli/{org-3UNTDLT2.js → org-RPGM5AN4.js} +73 -73
- package/dist/cli/{org-K4UIEU5P.mjs → org-TL2YPYSE.mjs} +7 -7
- package/dist/cli/{pages-NKZTGB4C.js → pages-PNUKPFWV.js} +18 -18
- package/dist/cli/{pages-6GPGBIAH.mjs → pages-XDEW6EE3.mjs} +7 -7
- package/dist/cli/{play-BDEADESI.js → play-F5LHRKV5.js} +858 -632
- package/dist/cli/{play-62BEE7IX.mjs → play-WINNQ4HZ.mjs} +372 -146
- package/dist/cli/{providers-SXGP44GH.js → providers-BD4IS5U5.js} +10 -10
- package/dist/cli/{providers-X3CUWMFP.mjs → providers-PXGL3FRE.mjs} +7 -7
- package/dist/cli/{quickstart-XQ4426M4.js → quickstart-7LVF6HZF.js} +6 -6
- package/dist/cli/{quickstart-7LN22BKX.mjs → quickstart-XTH3UQWZ.mjs} +4 -4
- package/dist/cli/{run-XXSN3B5A.mjs → run-MBMUENR7.mjs} +26 -26
- package/dist/cli/{run-PBJ4ZJ4W.js → run-NH2BAWPA.js} +41 -41
- package/dist/cli/{search-M75VMADD.mjs → search-BMRWBV66.mjs} +8 -8
- package/dist/cli/search-R3MQJQMT.js +32 -0
- package/dist/cli/{search-output-F6HCFYEI.js → search-output-5NNT337U.js} +22 -16
- package/dist/cli/{search-output-NUQAKWDM.mjs → search-output-QKKRD4MF.mjs} +14 -8
- package/dist/cli/{secrets-J2H6V33R.mjs → secrets-AWEXBTJV.mjs} +7 -7
- package/dist/cli/{secrets-LRYY4QPE.js → secrets-KQSTOREN.js} +16 -16
- package/dist/cli/{sessions-YPF62CZE.js → sessions-DSPLZYCJ.js} +6 -6
- package/dist/cli/{sessions-IMT336UV.mjs → sessions-RO25Q67X.mjs} +5 -5
- package/dist/cli/{settings-35YYC5WA.js → settings-7JXIKNKI.js} +79 -79
- package/dist/cli/{settings-PDWVQIGH.mjs → settings-JMGXGK4Z.mjs} +12 -12
- package/dist/cli/{setup-UR7GOR7H.js → setup-5QFAQQRW.js} +47 -47
- package/dist/cli/{setup-DG5DISSE.mjs → setup-ZQZ47FHB.mjs} +9 -9
- package/dist/cli/skills-EDZXY7DV.js +33 -0
- package/dist/cli/{skills-U6NJD5J7.mjs → skills-W3H2DL56.mjs} +7 -7
- package/dist/cli/{tools-2HGEOELR.mjs → tools-2BZCVNBS.mjs} +19 -19
- package/dist/cli/tools-2EY2ETCZ.js +56 -0
- package/dist/cli/{update-FRAYBAHK.mjs → update-GAWYMGAW.mjs} +9 -9
- package/dist/cli/update-UKDQKNBY.js +33 -0
- package/dist/cli/{workflow-DDKVTF36.mjs → workflow-M6LLHQ2I.mjs} +8 -8
- package/dist/cli/{workflow-JKKLOMBX.js → workflow-ZPTDFPKW.js} +18 -18
- package/dist/{client-DJ3r8VQJ.d.mts → client-BkbDHRIg.d.mts} +1 -1
- package/dist/{client-JPSNljtj.d.ts → client-D3hVHXjK.d.ts} +1 -1
- package/dist/{client-core-3SJlNsKU.d.mts → client-core-BZoSMKcY.d.mts} +30 -15
- package/dist/{client-core-rCoQ5Xz3.d.ts → client-core-DUdVqO_m.d.ts} +30 -15
- package/dist/{compiler-manifest-gkO9ZkVg.d.mts → compiler-manifest-BFTwq1HI.d.mts} +1 -1
- package/dist/{compiler-manifest-gkO9ZkVg.d.ts → compiler-manifest-BFTwq1HI.d.ts} +1 -1
- package/dist/{errors-Cc92LKH-.d.ts → errors-c3pMsylw.d.ts} +1 -1
- package/dist/{errors-CeCCOKSA.d.mts → errors-w31ybrQM.d.mts} +1 -1
- package/dist/{index-DJQKdV76.d.ts → index-CQ-15-QL.d.ts} +1 -1
- package/dist/{index-DsqWJL3Q.d.mts → index-DvNtxucX.d.mts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +10 -10
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +117 -116
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +2 -2
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- package/dist/plays/run-request.js +12 -2
- package/dist/plays/run-request.mjs +11 -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 +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +6 -6
- package/dist/server.mjs +4 -4
- package/package.json +1 -1
- package/dist/cli/auth-L5CSV3UO.js +0 -43
- package/dist/cli/chunk-KA2LNIUP.js +0 -33
- package/dist/cli/describe-UIAYCHWW.js +0 -49
- package/dist/cli/git-ATMWC27D.js +0 -25
- package/dist/cli/search-IGHLRLBD.js +0 -32
- package/dist/cli/skills-4U5WC4MJ.js +0 -33
- package/dist/cli/tools-PYJTQVVS.js +0 -56
- package/dist/cli/update-344OTRFM.js +0 -33
|
@@ -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 _chunkIHMYIHF4js = require('./chunk-IHMYIHF4.js');
|
|
4
|
+
require('./chunk-775AZTO7.js');
|
|
5
5
|
require('./chunk-E4CABWXL.js');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-AUQQVDAB.js');
|
|
7
7
|
require('./chunk-NMU3VR5U.js');
|
|
8
8
|
require('./chunk-XDVT3GOM.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
12
|
+
var _chunkBSKPQB2Pjs = require('./chunk-BSKPQB2P.js');
|
|
13
|
+
require('./chunk-S3WQJ5VG.js');
|
|
14
|
+
require('./chunk-DMNVM34J.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-HKGXGGIV.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, _chunkIHMYIHF4js.DeeplineClient)();
|
|
25
25
|
const changed = options.changed === true;
|
|
26
|
-
const emitJson = options.json === true ||
|
|
26
|
+
const emitJson = options.json === true || _chunkBSKPQB2Pjs.shouldEmitJson.call(void 0, );
|
|
27
27
|
const providers = await client.listProviders({ changed });
|
|
28
28
|
const render = {
|
|
29
29
|
sections: [
|
|
@@ -42,7 +42,7 @@ async function listProviders(options = {}) {
|
|
|
42
42
|
}
|
|
43
43
|
]
|
|
44
44
|
};
|
|
45
|
-
|
|
45
|
+
_chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
|
|
46
46
|
{
|
|
47
47
|
providers,
|
|
48
48
|
count: providers.length,
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-3DYU3JQN.mjs";
|
|
4
|
+
import "./chunk-FJY6K3BG.mjs";
|
|
5
5
|
import "./chunk-L2VKAASU.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-ONONSV2Q.mjs";
|
|
7
7
|
import "./chunk-S3A4IXBQ.mjs";
|
|
8
8
|
import "./chunk-UBKA33KY.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope,
|
|
11
11
|
shouldEmitJson
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-L352NOE3.mjs";
|
|
13
|
+
import "./chunk-G5PI3RNT.mjs";
|
|
14
|
+
import "./chunk-GHHJWCMD.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-TSCUWWTM.mjs";
|
|
19
19
|
import "./chunk-WZYKRD7T.mjs";
|
|
20
20
|
import "./chunk-KRD6H754.mjs";
|
|
21
21
|
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
4
|
+
var _chunkBSKPQB2Pjs = require('./chunk-BSKPQB2P.js');
|
|
5
|
+
require('./chunk-S3WQJ5VG.js');
|
|
6
|
+
require('./chunk-DMNVM34J.js');
|
|
7
7
|
require('./chunk-ALJJRZNJ.js');
|
|
8
8
|
require('./chunk-XNYIZMNQ.js');
|
|
9
9
|
require('./chunk-DIAWYWT5.js');
|
|
10
|
-
require('./chunk-
|
|
10
|
+
require('./chunk-HKGXGGIV.js');
|
|
11
11
|
require('./chunk-OG64RBAC.js');
|
|
12
12
|
|
|
13
13
|
|
|
@@ -17,12 +17,12 @@ require('./chunk-COGTRVWW.js');
|
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/quickstart.ts
|
|
19
19
|
async function handleQuickstart(options) {
|
|
20
|
-
const jsonOutput =
|
|
20
|
+
const jsonOutput = _chunkBSKPQB2Pjs.shouldEmitJson.call(void 0, options.json === true);
|
|
21
21
|
const gettingStarted = {
|
|
22
22
|
skill: _chunk6V7KVRR5js.DEEPLINE_GTM_SKILL,
|
|
23
23
|
examples: _chunk6V7KVRR5js.DEEPLINE_GTM_STARTER_PROMPTS
|
|
24
24
|
};
|
|
25
|
-
|
|
25
|
+
_chunkBSKPQB2Pjs.printCommandEnvelope.call(void 0,
|
|
26
26
|
{
|
|
27
27
|
ok: true,
|
|
28
28
|
status: "deprecated",
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
printCommandEnvelope,
|
|
3
3
|
shouldEmitJson
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-L352NOE3.mjs";
|
|
5
|
+
import "./chunk-G5PI3RNT.mjs";
|
|
6
|
+
import "./chunk-GHHJWCMD.mjs";
|
|
7
7
|
import "./chunk-4QF2K7TM.mjs";
|
|
8
8
|
import "./chunk-DLIRSHV6.mjs";
|
|
9
9
|
import "./chunk-HBL4PM5Q.mjs";
|
|
10
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-TSCUWWTM.mjs";
|
|
11
11
|
import "./chunk-WZYKRD7T.mjs";
|
|
12
12
|
import {
|
|
13
13
|
DEEPLINE_GTM_SKILL,
|
|
@@ -1,52 +1,52 @@
|
|
|
1
1
|
import {
|
|
2
2
|
looksLikeFilePath,
|
|
3
3
|
resolvePlayRunCliOptions
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-YDA3PMKK.mjs";
|
|
5
5
|
import {
|
|
6
6
|
findNamed,
|
|
7
7
|
nothingNamed
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-ACTUAZYP.mjs";
|
|
9
|
+
import "./chunk-3Z24NKW7.mjs";
|
|
10
10
|
import {
|
|
11
11
|
openLogDestination,
|
|
12
12
|
preflightExecutionOutput,
|
|
13
13
|
writeExecutionOutput
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-JD6HKNKD.mjs";
|
|
15
|
+
import "./chunk-RZE5I2XJ.mjs";
|
|
16
16
|
import "./chunk-5AEDYVB6.mjs";
|
|
17
17
|
import {
|
|
18
18
|
DEEPLINE_NAMESPACE
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-J7EENGKJ.mjs";
|
|
20
|
+
import "./chunk-INW22YP7.mjs";
|
|
21
21
|
import "./chunk-JVHOS3K3.mjs";
|
|
22
22
|
import "./chunk-OVDNJAJN.mjs";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-XRDXNAAY.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-3DYU3JQN.mjs";
|
|
28
28
|
import "./chunk-3RGWTKK3.mjs";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-FJY6K3BG.mjs";
|
|
30
30
|
import "./chunk-L2VKAASU.mjs";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-ONONSV2Q.mjs";
|
|
32
32
|
import "./chunk-S3A4IXBQ.mjs";
|
|
33
33
|
import "./chunk-UBKA33KY.mjs";
|
|
34
|
-
import "./chunk-
|
|
35
|
-
import "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
34
|
+
import "./chunk-62PJ6PK7.mjs";
|
|
35
|
+
import "./chunk-676NZ7K4.mjs";
|
|
36
|
+
import "./chunk-SR6S4EYG.mjs";
|
|
37
|
+
import "./chunk-E73JXJA3.mjs";
|
|
38
|
+
import "./chunk-UPHXGZCE.mjs";
|
|
39
|
+
import "./chunk-CW6TAQBF.mjs";
|
|
40
40
|
import {
|
|
41
41
|
createCliProgress
|
|
42
|
-
} from "./chunk-
|
|
43
|
-
import "./chunk-
|
|
44
|
-
import "./chunk-
|
|
45
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-TMCC7ORQ.mjs";
|
|
43
|
+
import "./chunk-L352NOE3.mjs";
|
|
44
|
+
import "./chunk-G5PI3RNT.mjs";
|
|
45
|
+
import "./chunk-GHHJWCMD.mjs";
|
|
46
46
|
import "./chunk-4QF2K7TM.mjs";
|
|
47
47
|
import "./chunk-DLIRSHV6.mjs";
|
|
48
48
|
import "./chunk-HBL4PM5Q.mjs";
|
|
49
|
-
import "./chunk-
|
|
49
|
+
import "./chunk-TSCUWWTM.mjs";
|
|
50
50
|
import "./chunk-WZYKRD7T.mjs";
|
|
51
51
|
import "./chunk-KRD6H754.mjs";
|
|
52
52
|
|
|
@@ -115,7 +115,7 @@ async function runAnything(name, options) {
|
|
|
115
115
|
throw new Error("--max-credits takes a number of credits above 0.");
|
|
116
116
|
}
|
|
117
117
|
if (options.timeout !== void 0 && options.timeout !== "0") {
|
|
118
|
-
const { parseToolExecuteTimeout } = await import("./tools-
|
|
118
|
+
const { parseToolExecuteTimeout } = await import("./tools-2BZCVNBS.mjs");
|
|
119
119
|
timeoutMs = parseToolExecuteTimeout(options.timeout);
|
|
120
120
|
}
|
|
121
121
|
} catch (error) {
|
|
@@ -136,7 +136,7 @@ async function runAnything(name, options) {
|
|
|
136
136
|
if (name !== void 0) {
|
|
137
137
|
return refuse("Use a name or -e, not both.", output);
|
|
138
138
|
}
|
|
139
|
-
const { writeInlinePlay } = await import("./play-
|
|
139
|
+
const { writeInlinePlay } = await import("./play-WINNQ4HZ.mjs");
|
|
140
140
|
let file;
|
|
141
141
|
try {
|
|
142
142
|
file = writeInlinePlay(options.eval);
|
|
@@ -196,7 +196,7 @@ async function runAnything(name, options) {
|
|
|
196
196
|
if (runner.via === "play") {
|
|
197
197
|
return runPlay(runner.reference, { ...play, revision });
|
|
198
198
|
}
|
|
199
|
-
const { executeToolForReceipt } = await import("./tools-
|
|
199
|
+
const { executeToolForReceipt } = await import("./tools-2BZCVNBS.mjs");
|
|
200
200
|
return executeToolForReceipt({
|
|
201
201
|
toolId: runner.toolId,
|
|
202
202
|
params: input,
|
|
@@ -227,7 +227,7 @@ function dryRun(described, input, output) {
|
|
|
227
227
|
return missing.length ? 2 : 0;
|
|
228
228
|
}
|
|
229
229
|
async function runPlay(reference, play) {
|
|
230
|
-
const { handlePlayRun, writePlayRunReceipt } = await import("./play-
|
|
230
|
+
const { handlePlayRun, writePlayRunReceipt } = await import("./play-WINNQ4HZ.mjs");
|
|
231
231
|
const { output, options, revision } = play;
|
|
232
232
|
if (options.dryRun) {
|
|
233
233
|
return handlePlayRun(
|
|
@@ -1,52 +1,52 @@
|
|
|
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 _chunkNLRTFJGHjs = require('./chunk-NLRTFJGH.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
8
|
+
var _chunkJQXUWYWXjs = require('./chunk-JQXUWYWX.js');
|
|
9
|
+
require('./chunk-3OF7NSGR.js');
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
require('./chunk-
|
|
14
|
+
var _chunkTVW6USSGjs = require('./chunk-TVW6USSG.js');
|
|
15
|
+
require('./chunk-NKPTM7SK.js');
|
|
16
16
|
require('./chunk-D3BCSAN7.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
20
|
-
require('./chunk-
|
|
19
|
+
var _chunkCSBMKHTVjs = require('./chunk-CSBMKHTV.js');
|
|
20
|
+
require('./chunk-LOX3BISD.js');
|
|
21
21
|
require('./chunk-IAYSWZDJ.js');
|
|
22
22
|
require('./chunk-AID3OYVJ.js');
|
|
23
|
-
require('./chunk-
|
|
23
|
+
require('./chunk-XK5DMLZE.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-IHMYIHF4.js');
|
|
28
28
|
require('./chunk-NPZBE64X.js');
|
|
29
|
-
require('./chunk-
|
|
29
|
+
require('./chunk-775AZTO7.js');
|
|
30
30
|
require('./chunk-E4CABWXL.js');
|
|
31
|
-
require('./chunk-
|
|
31
|
+
require('./chunk-AUQQVDAB.js');
|
|
32
32
|
require('./chunk-NMU3VR5U.js');
|
|
33
33
|
require('./chunk-XDVT3GOM.js');
|
|
34
|
-
require('./chunk-
|
|
35
|
-
require('./chunk-
|
|
36
|
-
require('./chunk-
|
|
37
|
-
require('./chunk-
|
|
38
|
-
require('./chunk-
|
|
39
|
-
require('./chunk-
|
|
34
|
+
require('./chunk-T4G2T5DS.js');
|
|
35
|
+
require('./chunk-U6WEGDD3.js');
|
|
36
|
+
require('./chunk-OW4OTEFF.js');
|
|
37
|
+
require('./chunk-2ILND7XX.js');
|
|
38
|
+
require('./chunk-NRNWPWBW.js');
|
|
39
|
+
require('./chunk-ECIXZNSW.js');
|
|
40
40
|
|
|
41
41
|
|
|
42
|
-
var
|
|
43
|
-
require('./chunk-
|
|
44
|
-
require('./chunk-
|
|
45
|
-
require('./chunk-
|
|
42
|
+
var _chunkEC2CVPN5js = require('./chunk-EC2CVPN5.js');
|
|
43
|
+
require('./chunk-BSKPQB2P.js');
|
|
44
|
+
require('./chunk-S3WQJ5VG.js');
|
|
45
|
+
require('./chunk-DMNVM34J.js');
|
|
46
46
|
require('./chunk-ALJJRZNJ.js');
|
|
47
47
|
require('./chunk-XNYIZMNQ.js');
|
|
48
48
|
require('./chunk-DIAWYWT5.js');
|
|
49
|
-
require('./chunk-
|
|
49
|
+
require('./chunk-HKGXGGIV.js');
|
|
50
50
|
require('./chunk-OG64RBAC.js');
|
|
51
51
|
require('./chunk-COGTRVWW.js');
|
|
52
52
|
|
|
@@ -81,7 +81,7 @@ function readInput(options) {
|
|
|
81
81
|
return input;
|
|
82
82
|
}
|
|
83
83
|
function refuse(message, output) {
|
|
84
|
-
|
|
84
|
+
_chunkTVW6USSGjs.writeExecutionOutput.call(void 0,
|
|
85
85
|
{ id: null, status: "failed", error: { message }, ran: false },
|
|
86
86
|
output
|
|
87
87
|
);
|
|
@@ -97,7 +97,7 @@ async function runAnything(name, options) {
|
|
|
97
97
|
logsOut: options.logsOut,
|
|
98
98
|
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)])
|
|
99
99
|
};
|
|
100
|
-
if (!
|
|
100
|
+
if (!_chunkTVW6USSGjs.preflightExecutionOutput.call(void 0, output)) return 2;
|
|
101
101
|
let input;
|
|
102
102
|
let timeoutMs;
|
|
103
103
|
try {
|
|
@@ -115,7 +115,7 @@ async function runAnything(name, options) {
|
|
|
115
115
|
throw new Error("--max-credits takes a number of credits above 0.");
|
|
116
116
|
}
|
|
117
117
|
if (options.timeout !== void 0 && options.timeout !== "0") {
|
|
118
|
-
const { parseToolExecuteTimeout } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
118
|
+
const { parseToolExecuteTimeout } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-2EY2ETCZ.js")));
|
|
119
119
|
timeoutMs = parseToolExecuteTimeout(options.timeout);
|
|
120
120
|
}
|
|
121
121
|
} catch (error) {
|
|
@@ -136,7 +136,7 @@ async function runAnything(name, options) {
|
|
|
136
136
|
if (name !== void 0) {
|
|
137
137
|
return refuse("Use a name or -e, not both.", output);
|
|
138
138
|
}
|
|
139
|
-
const { writeInlinePlay } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
139
|
+
const { writeInlinePlay } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-F5LHRKV5.js")));
|
|
140
140
|
let file;
|
|
141
141
|
try {
|
|
142
142
|
file = writeInlinePlay(options.eval);
|
|
@@ -159,23 +159,23 @@ async function runAnything(name, options) {
|
|
|
159
159
|
output
|
|
160
160
|
);
|
|
161
161
|
}
|
|
162
|
-
if (
|
|
162
|
+
if (_chunkNLRTFJGHjs.looksLikeFilePath.call(void 0, name)) {
|
|
163
163
|
output.label = `${name} (play file)`;
|
|
164
164
|
return runPlay(name, play);
|
|
165
165
|
}
|
|
166
166
|
let { base, revision } = splitRevision(name);
|
|
167
|
-
let found = await
|
|
167
|
+
let found = await _chunkJQXUWYWXjs.findNamed.call(void 0, base, {});
|
|
168
168
|
if (!found.chosen && revision) {
|
|
169
|
-
found = await
|
|
169
|
+
found = await _chunkJQXUWYWXjs.findNamed.call(void 0, name, {});
|
|
170
170
|
if (found.chosen)
|
|
171
171
|
({ base, revision } = { base: name, revision: void 0 });
|
|
172
172
|
}
|
|
173
173
|
const { chosen, shadowed } = found;
|
|
174
|
-
if (!chosen) return refuse(
|
|
174
|
+
if (!chosen) return refuse(_chunkJQXUWYWXjs.nothingNamed.call(void 0, base), output);
|
|
175
175
|
const { described } = chosen;
|
|
176
176
|
if (described.kind === "custom_play" && shadowed) {
|
|
177
177
|
console.error(
|
|
178
|
-
`Running your workspace play "${base}". It has the same name as a Deepline ${shadowed.described.kind.replace("_", " ")}; run that one with: deepline run ${
|
|
178
|
+
`Running your workspace play "${base}". It has the same name as a Deepline ${shadowed.described.kind.replace("_", " ")}; run that one with: deepline run ${_chunkCSBMKHTVjs.DEEPLINE_NAMESPACE}${base}`
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
181
|
const { runner } = described;
|
|
@@ -196,7 +196,7 @@ async function runAnything(name, options) {
|
|
|
196
196
|
if (runner.via === "play") {
|
|
197
197
|
return runPlay(runner.reference, { ...play, revision });
|
|
198
198
|
}
|
|
199
|
-
const { executeToolForReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-
|
|
199
|
+
const { executeToolForReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-2EY2ETCZ.js")));
|
|
200
200
|
return executeToolForReceipt({
|
|
201
201
|
toolId: runner.toolId,
|
|
202
202
|
params: input,
|
|
@@ -210,7 +210,7 @@ function dryRun(described, input, output) {
|
|
|
210
210
|
const missing = described.inputs.filter((field) => field.required && !(field.name in input)).map((field) => field.name);
|
|
211
211
|
const known = new Set(described.inputs.map((field) => field.name));
|
|
212
212
|
const unknown = known.size ? Object.keys(input).filter((key) => !known.has(key)) : [];
|
|
213
|
-
|
|
213
|
+
_chunkTVW6USSGjs.writeExecutionOutput.call(void 0,
|
|
214
214
|
{
|
|
215
215
|
id: null,
|
|
216
216
|
status: "dry_run",
|
|
@@ -227,11 +227,11 @@ function dryRun(described, input, output) {
|
|
|
227
227
|
return missing.length ? 2 : 0;
|
|
228
228
|
}
|
|
229
229
|
async function runPlay(reference, play) {
|
|
230
|
-
const { handlePlayRun, writePlayRunReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-
|
|
230
|
+
const { handlePlayRun, writePlayRunReceipt } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-F5LHRKV5.js")));
|
|
231
231
|
const { output, options, revision } = play;
|
|
232
232
|
if (options.dryRun) {
|
|
233
233
|
return handlePlayRun(
|
|
234
|
-
|
|
234
|
+
_chunkNLRTFJGHjs.resolvePlayRunCliOptions.call(void 0, reference, {
|
|
235
235
|
input: JSON.stringify(play.input),
|
|
236
236
|
dryRun: true,
|
|
237
237
|
json: output.receiptJson === true
|
|
@@ -240,11 +240,11 @@ async function runPlay(reference, play) {
|
|
|
240
240
|
}
|
|
241
241
|
let id = null;
|
|
242
242
|
let written = false;
|
|
243
|
-
const progress =
|
|
244
|
-
if (!play.noWait) progress.setLogWriter(
|
|
243
|
+
const progress = _chunkEC2CVPN5js.createCliProgress.call(void 0, true);
|
|
244
|
+
if (!play.noWait) progress.setLogWriter(_chunkTVW6USSGjs.openLogDestination.call(void 0, output));
|
|
245
245
|
try {
|
|
246
246
|
const code = await handlePlayRun(
|
|
247
|
-
|
|
247
|
+
_chunkNLRTFJGHjs.resolvePlayRunCliOptions.call(void 0, reference, {
|
|
248
248
|
input: JSON.stringify(play.input),
|
|
249
249
|
// The receipt is the only thing on stdout.
|
|
250
250
|
json: true,
|
|
@@ -277,7 +277,7 @@ async function runPlay(reference, play) {
|
|
|
277
277
|
},
|
|
278
278
|
writeStarted: (runId, status) => {
|
|
279
279
|
written = true;
|
|
280
|
-
|
|
280
|
+
_chunkTVW6USSGjs.writeExecutionOutput.call(void 0,
|
|
281
281
|
{
|
|
282
282
|
id: runId,
|
|
283
283
|
status,
|
|
@@ -292,7 +292,7 @@ async function runPlay(reference, play) {
|
|
|
292
292
|
}
|
|
293
293
|
);
|
|
294
294
|
if (!written) {
|
|
295
|
-
|
|
295
|
+
_chunkTVW6USSGjs.writeExecutionOutput.call(void 0,
|
|
296
296
|
{
|
|
297
297
|
id,
|
|
298
298
|
status: "failed",
|
|
@@ -304,7 +304,7 @@ async function runPlay(reference, play) {
|
|
|
304
304
|
return code;
|
|
305
305
|
} catch (error) {
|
|
306
306
|
if (written) throw error;
|
|
307
|
-
|
|
307
|
+
_chunkTVW6USSGjs.writeExecutionOutput.call(void 0,
|
|
308
308
|
{
|
|
309
309
|
id,
|
|
310
310
|
status: "failed",
|
|
@@ -5,21 +5,21 @@ import {
|
|
|
5
5
|
pointAtDescribe,
|
|
6
6
|
registerDeprecatedSearchCommand,
|
|
7
7
|
registerSearchCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-RZE5I2XJ.mjs";
|
|
9
9
|
import "./chunk-5AEDYVB6.mjs";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-3DYU3JQN.mjs";
|
|
11
|
+
import "./chunk-FJY6K3BG.mjs";
|
|
12
12
|
import "./chunk-L2VKAASU.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-ONONSV2Q.mjs";
|
|
14
14
|
import "./chunk-S3A4IXBQ.mjs";
|
|
15
15
|
import "./chunk-UBKA33KY.mjs";
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-L352NOE3.mjs";
|
|
17
|
+
import "./chunk-G5PI3RNT.mjs";
|
|
18
|
+
import "./chunk-GHHJWCMD.mjs";
|
|
19
19
|
import "./chunk-4QF2K7TM.mjs";
|
|
20
20
|
import "./chunk-DLIRSHV6.mjs";
|
|
21
21
|
import "./chunk-HBL4PM5Q.mjs";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-TSCUWWTM.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 _chunkNKPTM7SKjs = require('./chunk-NKPTM7SK.js');
|
|
9
|
+
require('./chunk-D3BCSAN7.js');
|
|
10
|
+
require('./chunk-IHMYIHF4.js');
|
|
11
|
+
require('./chunk-775AZTO7.js');
|
|
12
|
+
require('./chunk-E4CABWXL.js');
|
|
13
|
+
require('./chunk-AUQQVDAB.js');
|
|
14
|
+
require('./chunk-NMU3VR5U.js');
|
|
15
|
+
require('./chunk-XDVT3GOM.js');
|
|
16
|
+
require('./chunk-BSKPQB2P.js');
|
|
17
|
+
require('./chunk-S3WQJ5VG.js');
|
|
18
|
+
require('./chunk-DMNVM34J.js');
|
|
19
|
+
require('./chunk-ALJJRZNJ.js');
|
|
20
|
+
require('./chunk-XNYIZMNQ.js');
|
|
21
|
+
require('./chunk-DIAWYWT5.js');
|
|
22
|
+
require('./chunk-HKGXGGIV.js');
|
|
23
|
+
require('./chunk-OG64RBAC.js');
|
|
24
|
+
require('./chunk-COGTRVWW.js');
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
exports.SEARCH_TYPES = _chunkNKPTM7SKjs.SEARCH_TYPES; exports.appendCsv = _chunkNKPTM7SKjs.appendCsv; exports.parseTypes = _chunkNKPTM7SKjs.parseTypes; exports.pointAtDescribe = _chunkNKPTM7SKjs.pointAtDescribe; exports.registerDeprecatedSearchCommand = _chunkNKPTM7SKjs.registerDeprecatedSearchCommand; exports.registerSearchCommand = _chunkNKPTM7SKjs.registerSearchCommand;
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkXK5DMLZEjs = require('./chunk-XK5DMLZE.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
10
|
-
require('./chunk-
|
|
11
|
-
require('./chunk-
|
|
9
|
+
var _chunkBSKPQB2Pjs = require('./chunk-BSKPQB2P.js');
|
|
10
|
+
require('./chunk-S3WQJ5VG.js');
|
|
11
|
+
require('./chunk-DMNVM34J.js');
|
|
12
12
|
require('./chunk-ALJJRZNJ.js');
|
|
13
13
|
require('./chunk-XNYIZMNQ.js');
|
|
14
14
|
require('./chunk-DIAWYWT5.js');
|
|
15
|
-
require('./chunk-
|
|
15
|
+
require('./chunk-HKGXGGIV.js');
|
|
16
16
|
require('./chunk-OG64RBAC.js');
|
|
17
17
|
|
|
18
18
|
|
|
@@ -5741,8 +5741,7 @@ function pricingDisplay(item, noteWidth) {
|
|
|
5741
5741
|
if (observedCost) {
|
|
5742
5742
|
return observedCost.status === "available" ? {
|
|
5743
5743
|
cost: `${observedCost.avgCredits}/${observedCost.unit} (observed)`,
|
|
5744
|
-
|
|
5745
|
-
notes: [`Cost: ${observedCost.displayText}`]
|
|
5744
|
+
notes: []
|
|
5746
5745
|
} : {
|
|
5747
5746
|
cost: observedCost.typical ? `${observedCost.typical.lowCredits}\u2013${observedCost.typical.highCredits}/${observedCost.typical.unit} (typical)` : "no data yet",
|
|
5748
5747
|
notes: [`Cost: ${observedCost.displayText}`]
|
|
@@ -5772,13 +5771,20 @@ function pricingDisplay(item, noteWidth) {
|
|
|
5772
5771
|
notes: ["Your provider quota still applies."]
|
|
5773
5772
|
};
|
|
5774
5773
|
}
|
|
5774
|
+
const observedAvg = pricing.observedMax;
|
|
5775
|
+
if (_optionalChain([observedAvg, 'optionalAccess', _2 => _2.avgCreditsPerCall]) && observedAvg.sampleCount) {
|
|
5776
|
+
return {
|
|
5777
|
+
cost: `variable, ${observedAvg.avgCreditsPerCall} avg`,
|
|
5778
|
+
notes: []
|
|
5779
|
+
};
|
|
5780
|
+
}
|
|
5775
5781
|
const display = _nullishCoalesce(pricing.displayText, () => ( ""));
|
|
5776
5782
|
const rate = display.match(
|
|
5777
5783
|
/^([\d.,]+) Deepline credits(?: \/ \$[\d.,]+)? per (call|result|page)( \(estimate\))?$/
|
|
5778
5784
|
);
|
|
5779
5785
|
if (rate)
|
|
5780
5786
|
return {
|
|
5781
|
-
cost: `${rate[1]}/${rate[2]}${_nullishCoalesce(rate[3], () => ( ""))}${pricing.summary || _optionalChain([pricing, 'access',
|
|
5787
|
+
cost: `${rate[1]}/${rate[2]}${_nullishCoalesce(rate[3], () => ( ""))}${pricing.summary || _optionalChain([pricing, 'access', _3 => _3.details, 'optionalAccess', _4 => _4.length]) ? "*" : ""}`,
|
|
5782
5788
|
notes: []
|
|
5783
5789
|
};
|
|
5784
5790
|
if (pricing.creditsPerUnit === 0 && /^Free\b/.test(display)) {
|
|
@@ -5798,7 +5804,7 @@ var RATE_WINDOW_UNITS = {
|
|
|
5798
5804
|
};
|
|
5799
5805
|
function rateLimitDisplay(item) {
|
|
5800
5806
|
const limits = (Array.isArray(item.rateLimits) ? item.rateLimits : []).filter(
|
|
5801
|
-
(limit) => typeof _optionalChain([limit, 'optionalAccess',
|
|
5807
|
+
(limit) => typeof _optionalChain([limit, 'optionalAccess', _5 => _5.requestsPerWindow]) === "number" && typeof _optionalChain([limit, 'optionalAccess', _6 => _6.windowMs]) === "number" && limit.windowMs > 0
|
|
5802
5808
|
);
|
|
5803
5809
|
const [tightest] = limits.sort(
|
|
5804
5810
|
(a, b) => a.requestsPerWindow / a.windowMs - b.requestsPerWindow / b.windowMs
|
|
@@ -5818,7 +5824,7 @@ function latencyDisplay(ms) {
|
|
|
5818
5824
|
}
|
|
5819
5825
|
function searchRow(item, summaryWidth) {
|
|
5820
5826
|
const { cost, notes } = pricingDisplay(item, summaryWidth);
|
|
5821
|
-
const observedMax = item.billingSource === "own_provider_credentials" ? "" :
|
|
5827
|
+
const observedMax = item.billingSource === "own_provider_credentials" || _optionalChain([item, 'access', _7 => _7.pricing, 'optionalAccess', _8 => _8.observedMax, 'optionalAccess', _9 => _9.avgCreditsPerCall]) ? "" : _chunkXK5DMLZEjs.observedMaxText.call(void 0, item.pricing);
|
|
5822
5828
|
if (observedMax)
|
|
5823
5829
|
notes.push(`${observedMax[0].toUpperCase()}${observedMax.slice(1)}.`);
|
|
5824
5830
|
if (item.credentialStatus === "requires_connection") {
|
|
@@ -5848,7 +5854,7 @@ var OPTIONAL_COLUMNS = [
|
|
|
5848
5854
|
];
|
|
5849
5855
|
function renderSearchResults(result, summaryWidth = _chunkD3BCSAN7js.DEFAULT_SUMMARY_WIDTH) {
|
|
5850
5856
|
if (result.results.length === 0)
|
|
5851
|
-
return
|
|
5857
|
+
return _chunkBSKPQB2Pjs.renderCommandEnvelopeText.call(void 0, result);
|
|
5852
5858
|
const rows = result.results.map((item) => searchRow(item, summaryWidth));
|
|
5853
5859
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
5854
5860
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -5867,13 +5873,13 @@ function renderSearchResults(result, summaryWidth = _chunkD3BCSAN7js.DEFAULT_SUM
|
|
|
5867
5873
|
{ header: "SUMMARY", value: (row) => row.summary }
|
|
5868
5874
|
];
|
|
5869
5875
|
const render = result.render;
|
|
5870
|
-
const title = _nullishCoalesce(_optionalChain([render, 'optionalAccess',
|
|
5876
|
+
const title = _nullishCoalesce(_optionalChain([render, 'optionalAccess', _10 => _10.sections, 'optionalAccess', _11 => _11[0], 'optionalAccess', _12 => _12.title]), () => ( `${_nullishCoalesce(result.total, () => ( rows.length))} matches \u2014 showing ${rows.length}`));
|
|
5871
5877
|
const remaining = {
|
|
5872
|
-
sections: _optionalChain([render, 'optionalAccess',
|
|
5873
|
-
actions: _optionalChain([render, 'optionalAccess',
|
|
5878
|
+
sections: _optionalChain([render, 'optionalAccess', _13 => _13.sections, 'optionalAccess', _14 => _14.slice, 'call', _15 => _15(1)]),
|
|
5879
|
+
actions: _optionalChain([render, 'optionalAccess', _16 => _16.actions])
|
|
5874
5880
|
};
|
|
5875
|
-
const followUps = _optionalChain([remaining, 'access',
|
|
5876
|
-
${
|
|
5881
|
+
const followUps = _optionalChain([remaining, 'access', _17 => _17.sections, 'optionalAccess', _18 => _18.length]) || _optionalChain([remaining, 'access', _19 => _19.actions, 'optionalAccess', _20 => _20.length]) ? `
|
|
5882
|
+
${_chunkBSKPQB2Pjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
5877
5883
|
const notes = rows.flatMap(
|
|
5878
5884
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
5879
5885
|
);
|