deepline 0.3.501 → 0.3.503
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 +26 -0
- package/dist/bundling-sources/sdk/src/index.ts +1 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/sdk/src/types.ts +9 -0
- package/dist/bundling-sources/shared_libs/monitors/starter-templates.ts +0 -8
- package/dist/bundling-sources/shared_libs/observability/dlq.ts +174 -0
- package/dist/bundling-sources/shared_libs/observability/queue-health.ts +9 -0
- package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +20 -2
- package/dist/bundling-sources/shared_libs/play-runtime/activity-observation.ts +20 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +62 -2
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +667 -62
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +55 -0
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-fly-rollback-alignment.ts +29 -14
- package/dist/bundling-sources/shared_libs/play-runtime/durable-receipt-execution.ts +20 -2
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +46 -0
- package/dist/bundling-sources/shared_libs/play-runtime/execution-gateway-invocation-fence.ts +80 -4
- package/dist/bundling-sources/shared_libs/play-runtime/fixture-egress-fetch.ts +95 -0
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +292 -45
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/play-http-request.ts +7 -3
- package/dist/bundling-sources/shared_libs/play-runtime/play-runtime-semantics.ts +31 -1
- package/dist/bundling-sources/shared_libs/play-runtime/post-code-recovery-policy.ts +231 -0
- package/dist/bundling-sources/shared_libs/play-runtime/prebuilt-result-quality.ts +264 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-ending-event.ts +55 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-ledger.ts +126 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +70 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +2 -9
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +51 -19
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/local-process.ts +9 -4
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/runtime-sandbox-reconciliation.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-actions.ts +12 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-oidc.ts +30 -8
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-incident-drills.ts +42 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-operation-contract.ts +7 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-receipt-store-adapter.ts +26 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +13 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +53 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +631 -19
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-inventory.ts +719 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +206 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/latest-cache-result.ts +83 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +1453 -160
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/receipt-gateway.ts +61 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +29 -8
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-queue-health.ts +27 -2
- package/dist/bundling-sources/shared_libs/play-runtime/test-runtime-seams.ts +45 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +129 -14
- package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +2 -0
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +10 -1
- package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +2 -0
- package/dist/cli/{auth-6ECHXOI4.mjs → auth-IC4WLSE3.mjs} +5 -5
- package/dist/cli/auth-ZCMSXZO4.js +43 -0
- package/dist/cli/{billing-75NZYRXA.mjs → billing-2VOV64SD.mjs} +6 -6
- package/dist/cli/{billing-QRR7O6BD.js → billing-LWQOII22.js} +79 -79
- package/dist/cli/{chunk-N2TJJNCW.js → chunk-2626LTU3.js} +291 -273
- package/dist/cli/{chunk-VL72UKNW.js → chunk-26RSSTCF.js} +26 -26
- package/dist/cli/{chunk-HDKXSHGA.js → chunk-2K2QBLYO.js} +53 -53
- package/dist/cli/{chunk-463ZOO2L.js → chunk-33JUK73X.js} +7 -7
- package/dist/cli/{chunk-KTOAJP4N.js → chunk-3CXHK4TW.js} +10 -10
- package/dist/cli/{chunk-YPTZJ7LO.js → chunk-4IIYSBEP.js} +70 -13
- package/dist/cli/{chunk-VTDAJZIJ.mjs → chunk-5GI6NKOE.mjs} +20 -1
- package/dist/cli/{chunk-TFFJ2PRN.mjs → chunk-5M5WSFRZ.mjs} +70 -13
- package/dist/cli/{chunk-5S7MLAI7.mjs → chunk-6XTE6C3W.mjs} +41 -23
- package/dist/cli/{chunk-7L6QNHUL.mjs → chunk-7HEDCIR3.mjs} +1 -1
- package/dist/cli/{chunk-C5R3UH5V.mjs → chunk-7MJYZ33I.mjs} +2 -6
- package/dist/cli/{chunk-TOE7LHEA.js → chunk-A2C6ONWA.js} +6 -6
- package/dist/cli/{chunk-QQ3JJYE2.js → chunk-AARF4SOW.js} +17 -13
- package/dist/cli/{chunk-APAHMCGR.js → chunk-B3X4YWQ6.js} +53 -53
- package/dist/cli/{chunk-J74N375S.mjs → chunk-BI2Q45SY.mjs} +4 -4
- package/dist/cli/{chunk-GBICEYUA.js → chunk-BN5VKY4X.js} +141 -20
- package/dist/cli/{chunk-UR7JOSLT.js → chunk-C5RQTTLP.js} +26 -7
- package/dist/cli/{chunk-ZUOKIBLJ.mjs → chunk-D27HP3HS.mjs} +2 -2
- package/dist/cli/{chunk-UJRN6YP6.mjs → chunk-DPI5OYVU.mjs} +10 -6
- package/dist/cli/{chunk-MSLXAVVK.mjs → chunk-EDMV4JT5.mjs} +2 -2
- package/dist/cli/{chunk-ZUQHQGC5.mjs → chunk-EQ3WMKFY.mjs} +5 -5
- package/dist/cli/{chunk-5X4AUFYW.js → chunk-F73PD2XD.js} +7 -7
- package/dist/cli/{chunk-O3DDVP7Z.mjs → chunk-FHJ54BHH.mjs} +2 -2
- package/dist/cli/{chunk-SV2TEZ2M.js → chunk-FIUTDSJX.js} +5 -4
- package/dist/cli/{chunk-W6JTHVPF.js → chunk-FVDTERO2.js} +21 -21
- package/dist/cli/{chunk-CJJ7JBM2.js → chunk-FZHOWPSN.js} +23 -21
- package/dist/cli/{chunk-WJUDAHIQ.mjs → chunk-GIHNEYBG.mjs} +1 -1
- package/dist/cli/{chunk-V5NHEYU7.mjs → chunk-GLZBFBJS.mjs} +5 -5
- package/dist/cli/{chunk-VVEMPC2I.js → chunk-HRTDCXHI.js} +2 -2
- package/dist/cli/{chunk-BOFCF4L7.js → chunk-HS63YBT5.js} +3 -3
- package/dist/cli/{chunk-4OXHLTCP.js → chunk-IIP46RVC.js} +1 -1
- package/dist/cli/{chunk-SAW3FBCA.mjs → chunk-ITJ7NB2D.mjs} +6 -0
- package/dist/cli/{chunk-NA3J3F2Z.mjs → chunk-J6RBOLK7.mjs} +1 -1
- package/dist/cli/{chunk-PXIF74UJ.mjs → chunk-JJVN7OIX.mjs} +4 -4
- package/dist/cli/{chunk-T7E3XEPG.mjs → chunk-JPDD4Y53.mjs} +10 -8
- package/dist/cli/{chunk-OKOXB3LY.mjs → chunk-K7NFFQFU.mjs} +2 -2
- package/dist/cli/{chunk-66XDYH5T.mjs → chunk-KGLVATEB.mjs} +2 -2
- package/dist/cli/{chunk-EHVFBD36.mjs → chunk-KPBBT6OS.mjs} +2 -1
- package/dist/cli/{chunk-MADTHS56.mjs → chunk-L3TZV625.mjs} +1 -1
- package/dist/cli/{chunk-FS7XYDOF.js → chunk-MJQOG4TZ.js} +16 -16
- package/dist/cli/{chunk-JO5FFSR7.js → chunk-NTLBZUHD.js} +6 -0
- package/dist/cli/{chunk-EKZQ5LQO.js → chunk-PVA3MWCO.js} +3 -3
- package/dist/cli/{chunk-PNF2ZU4R.js → chunk-QIEYEY6Z.js} +8 -8
- package/dist/cli/{chunk-KSHAFYYG.mjs → chunk-R2VZVHJP.mjs} +127 -6
- package/dist/cli/{chunk-XEBFJ2PH.js → chunk-RVOBFO7C.js} +41 -41
- package/dist/cli/{chunk-RU5ROUFO.js → chunk-TCQYWZFS.js} +5 -5
- package/dist/cli/{chunk-I42EOZKQ.js → chunk-TMQUMILM.js} +19 -23
- package/dist/cli/{chunk-EOO7OSS4.mjs → chunk-URZNSJE2.mjs} +4 -4
- package/dist/cli/{chunk-Z6AUOV7D.mjs → chunk-VC5B462T.mjs} +2 -2
- package/dist/cli/{chunk-EKF4DKUA.js → chunk-WHP3FJ7T.js} +5 -5
- package/dist/cli/{chunk-VD2374K7.mjs → chunk-WS274KID.mjs} +1 -1
- package/dist/cli/{chunk-T4U245E4.mjs → chunk-XYZZZLN6.mjs} +2 -2
- package/dist/cli/{chunk-J6SVNKRP.js → chunk-YXGPMTAK.js} +2 -2
- package/dist/cli/{chunk-RFV7PPLS.mjs → chunk-ZEQPCEV4.mjs} +3 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-RZJ4SOIL.mjs → csv-2TXOI3UE.mjs} +4 -4
- package/dist/cli/{csv-JXX2LXK5.js → csv-NEWCNOSZ.js} +13 -13
- package/dist/cli/{db-T2KJNONM.js → db-J3IJS4OG.js} +27 -27
- package/dist/cli/{db-MUTT2NWI.mjs → db-PX7EQEIG.mjs} +6 -6
- package/dist/cli/{describe-K3UMAAVO.mjs → describe-GQHGTZSL.mjs} +20 -21
- package/dist/cli/describe-LE7EZCL4.js +49 -0
- package/dist/cli/describe-core.d.mts +8 -4
- package/dist/cli/describe-core.d.ts +8 -4
- package/dist/cli/describe-core.js +4 -5
- package/dist/cli/describe-core.mjs +3 -4
- package/dist/cli/{executions-PHS4R2OX.mjs → executions-FFKK24RY.mjs} +6 -6
- package/dist/cli/{executions-7HSLDRHR.js → executions-RO3TJUXL.js} +8 -8
- package/dist/cli/{feedback-BJZRM637.js → feedback-XRR4HIS6.js} +8 -8
- package/dist/cli/{feedback-RWMDCIDF.mjs → feedback-ZTO56SRL.mjs} +4 -4
- package/dist/cli/git-26AH4XIO.js +25 -0
- package/dist/cli/{git-YW6VHYZG.mjs → git-FIPBVFYZ.mjs} +5 -5
- package/dist/cli/index.js +142 -142
- package/dist/cli/index.mjs +42 -42
- package/dist/cli/{legacy-noops-5UBSUPGG.mjs → legacy-noops-AMD2NWHF.mjs} +5 -5
- package/dist/cli/{legacy-noops-2WUV2XD7.js → legacy-noops-MTBBGM27.js} +8 -8
- package/dist/cli/{monitors-HWOQO3OK.mjs → monitors-24LDKDJX.mjs} +7 -7
- package/dist/cli/{monitors-YZZRKSTG.js → monitors-42PIGLBF.js} +95 -95
- package/dist/cli/{org-NCXT6RB4.mjs → org-4B7SCFRL.mjs} +6 -6
- package/dist/cli/{org-JY7HLHBA.js → org-GQMCA3MN.js} +72 -72
- package/dist/cli/{pages-QJO53QAT.mjs → pages-PD5EGL2R.mjs} +6 -6
- package/dist/cli/{pages-6ZOHXL6X.js → pages-RL2M62GJ.js} +18 -18
- package/dist/cli/{play-SQRS7JN3.mjs → play-5V54VTUR.mjs} +132 -26
- package/dist/cli/{play-TAYGSR35.js → play-FST6ZAHW.js} +447 -341
- package/dist/cli/{providers-4Q5LOIQ5.js → providers-HBUUPN7J.js} +9 -9
- package/dist/cli/{providers-3IR3N5DT.mjs → providers-N5YVCKPL.mjs} +6 -6
- package/dist/cli/{quickstart-ITNUZENY.js → quickstart-4QIQNSHG.js} +6 -6
- package/dist/cli/{quickstart-KCZCYO6B.mjs → quickstart-NJDDVTQR.mjs} +4 -4
- package/dist/cli/{run-YQ57LMKN.js → run-FGOKCG4J.js} +44 -45
- package/dist/cli/{run-JCWRWDSK.mjs → run-JHI5MTHD.mjs} +25 -26
- package/dist/cli/search-CTKSEVSO.js +32 -0
- package/dist/cli/{search-FUM27HQP.mjs → search-EWIZBIY2.mjs} +7 -7
- package/dist/cli/{search-output-EWEYT34M.mjs → search-output-NAK3MWBH.mjs} +53 -75
- package/dist/cli/{search-output-XAMWKRJH.js → search-output-TMQTRC2W.js} +58 -80
- package/dist/cli/{secrets-2IRRRZBL.js → secrets-5TSUEOJB.js} +15 -15
- package/dist/cli/{secrets-YTI4IAKR.mjs → secrets-ONQVW5SR.mjs} +6 -6
- package/dist/cli/{sessions-EFS4KUPF.mjs → sessions-B7F5O3ZR.mjs} +5 -5
- package/dist/cli/{sessions-HWTRDXBQ.js → sessions-BSGE5EET.js} +6 -6
- package/dist/cli/{settings-FRVEIOKR.js → settings-47LARBRU.js} +78 -78
- package/dist/cli/{settings-NTOO42DY.mjs → settings-SGGFQV5R.mjs} +11 -11
- package/dist/cli/{setup-PAVQPALX.mjs → setup-ATGNXQUK.mjs} +9 -9
- package/dist/cli/{setup-6ZIOAE2V.js → setup-BNFZFXO6.js} +49 -49
- package/dist/cli/skills-6RD25MVM.js +36 -0
- package/dist/cli/{skills-3O3XTPUM.mjs → skills-CIMBRM5R.mjs} +7 -7
- package/dist/cli/{tools-7QSB65UL.mjs → tools-DTDXAULX.mjs} +18 -19
- package/dist/cli/tools-TDZH4XHS.js +56 -0
- package/dist/cli/{update-T6CYS5ZT.mjs → update-EOIJBJCO.mjs} +9 -9
- package/dist/cli/update-Y32VT4VL.js +34 -0
- package/dist/cli/{workflow-OMSXZ73T.mjs → workflow-IWXUJPWY.mjs} +7 -7
- package/dist/cli/{workflow-4KMJBMGX.js → workflow-V5VKPICQ.js} +17 -17
- package/dist/{client-Bn8FwKGO.d.ts → client-CIwenMFS.d.ts} +1 -1
- package/dist/{client-CfNRmjLK.d.mts → client-DYAfJpaN.d.mts} +1 -1
- package/dist/{client-core-B91EV0WS.d.ts → client-core-CRjtyMAI.d.ts} +25 -2
- package/dist/{client-core-BG8Cgrmk.d.mts → client-core-DlzP8vEs.d.mts} +25 -2
- package/dist/{compiler-manifest-DlXDyndN.d.ts → compiler-manifest-DaJrA2KV.d.mts} +1 -1
- package/dist/{compiler-manifest-DlXDyndN.d.mts → compiler-manifest-DaJrA2KV.d.ts} +1 -1
- package/dist/{errors-BtriA2ld.d.mts → errors-BKnSYueU.d.mts} +1 -1
- package/dist/{errors-DmcLykM7.d.ts → errors-KLga4bLr.d.ts} +1 -1
- package/dist/{index-DI0sR_fX.d.mts → index-C-8AFpWy.d.mts} +1 -1
- package/dist/{index--Jw-slHY.d.ts → index-C5nAZ-VS.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +124 -118
- 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 +8 -1
- 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/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 +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-VP7PMXKQ.js +0 -43
- package/dist/cli/chunk-XK5DMLZE.js +0 -111
- package/dist/cli/chunk-XRDXNAAY.mjs +0 -111
- package/dist/cli/describe-SEXUJLE4.js +0 -50
- package/dist/cli/git-VNS7UQWN.js +0 -25
- package/dist/cli/search-I425FRTK.js +0 -32
- package/dist/cli/skills-6ZNMO2PR.js +0 -36
- package/dist/cli/tools-DPV2JES6.js +0 -57
- package/dist/cli/update-Q5GUDEAW.js +0 -34
|
@@ -2,11 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _chunkXK5DMLZEjs = require('./chunk-XK5DMLZE.js');
|
|
5
|
+
var _chunkNTLBZUHDjs = require('./chunk-NTLBZUHD.js');
|
|
10
6
|
|
|
11
7
|
|
|
12
8
|
var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
|
|
@@ -18,6 +14,116 @@ var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
|
|
|
18
14
|
|
|
19
15
|
var _chunkBLMB4N63js = require('./chunk-BLMB4N63.js');
|
|
20
16
|
|
|
17
|
+
// src/cli/tool-description.ts
|
|
18
|
+
function observedMaxText(pricing) {
|
|
19
|
+
const max = recordValue(recordValue(pricing).observedMax);
|
|
20
|
+
if (typeof max.creditsPerCall !== "number" || max.creditsPerCall <= 0)
|
|
21
|
+
return "";
|
|
22
|
+
const avg = typeof max.avgCreditsPerCall === "number" && typeof max.sampleCount === "number" ? `${max.avgCreditsPerCall} avg, ` : "";
|
|
23
|
+
const calls = avg && typeof max.sampleCount === "number" ? `${max.sampleCount} observed, ` : "";
|
|
24
|
+
return `observed ${avg}${max.creditsPerCall} max credits/call (${calls}last ${String(max.windowDays)} days)`;
|
|
25
|
+
}
|
|
26
|
+
var Capability = class _Capability {
|
|
27
|
+
#catalogEntry;
|
|
28
|
+
constructor(catalogEntry) {
|
|
29
|
+
this.#catalogEntry = catalogEntry;
|
|
30
|
+
}
|
|
31
|
+
static fromCatalogEntry(catalogEntry) {
|
|
32
|
+
return new _Capability(catalogEntry);
|
|
33
|
+
}
|
|
34
|
+
describe() {
|
|
35
|
+
return CapabilityDescription.fromCatalogEntry(this.#catalogEntry);
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
var CapabilityDescription = class _CapabilityDescription {
|
|
39
|
+
#catalogEntry;
|
|
40
|
+
constructor(catalogEntry) {
|
|
41
|
+
this.#catalogEntry = catalogEntry;
|
|
42
|
+
}
|
|
43
|
+
static fromCatalogEntry(catalogEntry) {
|
|
44
|
+
return new _CapabilityDescription(catalogEntry);
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The customer price already resolved by the catalog. This intentionally
|
|
48
|
+
* omits provider-price fields, even when a catalog Adapter carried them.
|
|
49
|
+
*/
|
|
50
|
+
customerCost() {
|
|
51
|
+
const legacyCost = recordValue(this.#catalogEntry.cost);
|
|
52
|
+
const pricing = recordValue(this.#catalogEntry.pricing);
|
|
53
|
+
const unit = stringValue(pricing.unit);
|
|
54
|
+
const legacyPricingModel = stringValue(
|
|
55
|
+
_nullishCoalesce(legacyCost.pricingModel, () => ( legacyCost.pricing_model))
|
|
56
|
+
);
|
|
57
|
+
const pricingModel = unit === "call" ? "fixed" : unit === "result" || unit === "page" ? `per_${unit}` : unit === "usage" ? "provider_usage" : legacyPricingModel;
|
|
58
|
+
const canonicalCredits = pricingNumber(
|
|
59
|
+
pricing,
|
|
60
|
+
"creditsPerUnit",
|
|
61
|
+
"credits_per_unit",
|
|
62
|
+
_nullishCoalesce(this.#catalogEntry.deeplineCreditsPerPricingUnit, () => ( this.#catalogEntry.deepline_credits_per_pricing_unit))
|
|
63
|
+
);
|
|
64
|
+
const canonicalUsd = pricingNumber(
|
|
65
|
+
pricing,
|
|
66
|
+
"usdPerUnit",
|
|
67
|
+
"usd_per_unit",
|
|
68
|
+
_nullishCoalesce(this.#catalogEntry.deeplineUsdPerPricingUnit, () => ( this.#catalogEntry.deepline_usd_per_pricing_unit))
|
|
69
|
+
);
|
|
70
|
+
const billingSource = stringValue(
|
|
71
|
+
_nullishCoalesce(this.#catalogEntry.billingSource, () => ( this.#catalogEntry.billing_source))
|
|
72
|
+
);
|
|
73
|
+
const billingSourceLabel = stringValue(
|
|
74
|
+
_nullishCoalesce(this.#catalogEntry.billingSourceLabel, () => ( this.#catalogEntry.billing_source_label))
|
|
75
|
+
);
|
|
76
|
+
const isFree = billingSource === "free";
|
|
77
|
+
const displayText = stringValue(
|
|
78
|
+
_nullishCoalesce(pricing.displayText, () => ( pricing.display_text))
|
|
79
|
+
);
|
|
80
|
+
const summary = stringValue(pricing.summary);
|
|
81
|
+
const showManagedPricing = !isFree && billingSource !== "own_provider_credentials";
|
|
82
|
+
const details = !isFree && Array.isArray(pricing.details) ? pricing.details.filter(
|
|
83
|
+
(value) => typeof value === "string"
|
|
84
|
+
) : [];
|
|
85
|
+
return {
|
|
86
|
+
pricingModel: pricingModel || null,
|
|
87
|
+
unit: unit || null,
|
|
88
|
+
displayText: isFree ? "Free" : displayText,
|
|
89
|
+
summary: isFree ? null : summary,
|
|
90
|
+
billingMode: stringValue(
|
|
91
|
+
_nullishCoalesce(legacyCost.billingMode, () => ( legacyCost.billing_mode))
|
|
92
|
+
),
|
|
93
|
+
billingSource,
|
|
94
|
+
billingSourceLabel,
|
|
95
|
+
deeplineCreditsPerPricingUnit: isFree ? 0 : canonicalCredits,
|
|
96
|
+
deeplineUsdPerPricingUnit: isFree ? 0 : canonicalUsd,
|
|
97
|
+
...pricing.estimatedRange && showManagedPricing ? {
|
|
98
|
+
estimatedRange: pricing.estimatedRange
|
|
99
|
+
} : {},
|
|
100
|
+
...pricing.observedReference && showManagedPricing ? {
|
|
101
|
+
observedReference: pricing.observedReference
|
|
102
|
+
} : {},
|
|
103
|
+
...details.length || showManagedPricing && (pricing.estimatedRange || pricing.observedReference) ? { details } : {},
|
|
104
|
+
...pricing.observedMax && showManagedPricing ? {
|
|
105
|
+
observedMax: pricing.observedMax
|
|
106
|
+
} : {}
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
function recordValue(value) {
|
|
111
|
+
return value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
112
|
+
}
|
|
113
|
+
function stringValue(value) {
|
|
114
|
+
return typeof value === "string" && value.trim() ? value : null;
|
|
115
|
+
}
|
|
116
|
+
function numberValue(value) {
|
|
117
|
+
return typeof value === "number" && Number.isFinite(value) ? value : null;
|
|
118
|
+
}
|
|
119
|
+
function pricingNumber(pricing, canonicalKey, aliasKey, legacyValue) {
|
|
120
|
+
for (const key of [canonicalKey, aliasKey]) {
|
|
121
|
+
if (Object.prototype.hasOwnProperty.call(pricing, key))
|
|
122
|
+
return numberValue(pricing[key]);
|
|
123
|
+
}
|
|
124
|
+
return numberValue(legacyValue);
|
|
125
|
+
}
|
|
126
|
+
|
|
21
127
|
// src/cli/described-tool.ts
|
|
22
128
|
function isPlayLikeTool(tool) {
|
|
23
129
|
const record = tool;
|
|
@@ -74,7 +180,7 @@ function toolContractJsonForDescribe(tool, requestedToolId, authoringContractEdi
|
|
|
74
180
|
const extractedValues = extractionContractEntries(
|
|
75
181
|
arrayField(toolExecutionResult, "extractedValues", "extracted_values")
|
|
76
182
|
);
|
|
77
|
-
const pricing =
|
|
183
|
+
const pricing = Capability.fromCatalogEntry(tool).describe().customerCost();
|
|
78
184
|
const executionMetadataRecord = recordField(
|
|
79
185
|
tool,
|
|
80
186
|
"executionMetadata",
|
|
@@ -174,7 +280,7 @@ function extractorValueType(name) {
|
|
|
174
280
|
}
|
|
175
281
|
const named = NAMED_VALUE_SHAPES[definition.valueKind];
|
|
176
282
|
if (!named) return { type: "string" };
|
|
177
|
-
const { type, fields } =
|
|
283
|
+
const { type, fields } = _chunkNTLBZUHDjs.schemaField.call(void 0, name, named.schema, true);
|
|
178
284
|
return { type, ...fields ? { fields } : {}, shape: named.shape };
|
|
179
285
|
}
|
|
180
286
|
function jsonSchemaOf(wrapper) {
|
|
@@ -211,7 +317,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
211
317
|
description,
|
|
212
318
|
cost: stringField(recordField(tool, "pricing"), "displayText") || void 0,
|
|
213
319
|
guidance: [],
|
|
214
|
-
inputs:
|
|
320
|
+
inputs: _chunkNTLBZUHDjs.schemaFields.call(void 0,
|
|
215
321
|
recordField(tool, "payload_schema", "payloadSchema")
|
|
216
322
|
),
|
|
217
323
|
outputs: [],
|
|
@@ -248,7 +354,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
248
354
|
(path) => path.replace(/^toolResponse\.raw\./, "")
|
|
249
355
|
);
|
|
250
356
|
const node = roots.flatMap((root) => paths.map((path) => schemaNodeAt(root, path))).find(isRecord);
|
|
251
|
-
const { fields, ...typed } =
|
|
357
|
+
const { fields, ...typed } = _chunkNTLBZUHDjs.schemaField.call(void 0, name, node, true);
|
|
252
358
|
const valueType = stringField(_nullishCoalesce(details.get(name), () => ( {})), "valueType");
|
|
253
359
|
const deepline = kind === "extractedValues" ? extractorValueType(name) : void 0;
|
|
254
360
|
const known = typed.type !== "unknown" ? void 0 : kind === "extractedLists" ? { type: "object[]" } : deepline;
|
|
@@ -289,16 +395,25 @@ function describedTool(tool, requestedToolId) {
|
|
|
289
395
|
};
|
|
290
396
|
});
|
|
291
397
|
const playReference = isPlayLikeTool(tool) ? playReferenceForTool(tool) : null;
|
|
398
|
+
const { byok } = tool;
|
|
399
|
+
const credentialStatus = stringField(
|
|
400
|
+
tool,
|
|
401
|
+
"credentialStatus",
|
|
402
|
+
"credential_status"
|
|
403
|
+
);
|
|
404
|
+
const provider = stringField(tool, "provider");
|
|
405
|
+
const connectCommand = credentialStatus === "requires_connection" && (!byok || byok.setupUrl) && /^[a-z0-9][a-z0-9_-]*$/.test(provider) ? `deepline tools connect ${provider} --link --json` : void 0;
|
|
292
406
|
return {
|
|
293
407
|
kind: "tool",
|
|
294
408
|
id: String(contract.toolId),
|
|
409
|
+
...provider ? { provider } : {},
|
|
295
410
|
displayName,
|
|
296
411
|
description,
|
|
297
412
|
cost: [
|
|
298
413
|
stringField(cost, "displayText"),
|
|
299
414
|
// "Free (free)" says the same thing twice.
|
|
300
415
|
billing.toLowerCase() === stringField(cost, "displayText").toLowerCase() ? "" : billing && `(${billing})`,
|
|
301
|
-
|
|
416
|
+
observedMaxText(cost) && `\u2014 ${observedMaxText(cost)}`
|
|
302
417
|
].filter(Boolean).join(" ") || void 0,
|
|
303
418
|
guidance: [
|
|
304
419
|
...contract.deprecated === true ? [`Deprecated. ${stringField(deprecation, "message")}`.trim()] : [],
|
|
@@ -308,13 +423,17 @@ function describedTool(tool, requestedToolId) {
|
|
|
308
423
|
],
|
|
309
424
|
rateLimit: withPlanRateLimit(
|
|
310
425
|
recordField(recordField(tool, "pricing"), "benefit").requestsPerMinute,
|
|
311
|
-
|
|
426
|
+
_chunkNTLBZUHDjs.rateLimitSummary.call(void 0,
|
|
312
427
|
recordField(contract, "executionMetadata").configuredRateLimits
|
|
313
428
|
)
|
|
314
429
|
),
|
|
315
|
-
|
|
430
|
+
..._optionalChain([byok, 'optionalAccess', _4 => _4.required]) === true ? { byok } : {},
|
|
431
|
+
...typeof tool.connected === "boolean" ? { connected: tool.connected } : {},
|
|
432
|
+
...credentialStatus ? { credentialStatus } : {},
|
|
433
|
+
...connectCommand ? { connectCommand } : {},
|
|
434
|
+
inputs: _chunkNTLBZUHDjs.schemaFields.call(void 0, inputSchema),
|
|
316
435
|
outputs: [...lists, ...values].map(({ field }) => field),
|
|
317
|
-
rawResponse:
|
|
436
|
+
rawResponse: _chunkNTLBZUHDjs.schemaFields.call(void 0, outputSchema),
|
|
318
437
|
runner: playReference ? { via: "play", reference: playReference } : { via: "tool", toolId: String(contract.toolId), inputSchema }
|
|
319
438
|
};
|
|
320
439
|
}
|
|
@@ -389,13 +508,13 @@ function toolMetadataJsonForDescribe(tool, requestedToolId, seedStarterScript) {
|
|
|
389
508
|
deepline_usd_per_credit: _snakeDeeplineUsdPerCredit,
|
|
390
509
|
deepline_pricing_summary: _snakeDeeplinePricingSummary,
|
|
391
510
|
deepline_pricing_details: _snakeDeeplinePricingDetails,
|
|
392
|
-
//
|
|
511
|
+
// The shared description adds BYOK when the tool needs its own credentials.
|
|
393
512
|
byok: _byok,
|
|
394
513
|
...publicTool
|
|
395
514
|
} = tool;
|
|
396
515
|
const outputSchemaRecord = recordField(tool, "outputSchema", "output_schema");
|
|
397
516
|
return {
|
|
398
|
-
cost:
|
|
517
|
+
cost: Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
399
518
|
...publicTool,
|
|
400
519
|
toolId,
|
|
401
520
|
provider: tool.provider,
|
|
@@ -480,9 +599,9 @@ function toolInputFieldsForDisplay(inputSchema) {
|
|
|
480
599
|
);
|
|
481
600
|
return fields.map((field) => {
|
|
482
601
|
const jsonSchemaField = typeof field.name === "string" ? jsonSchemaFields.get(field.name) : void 0;
|
|
483
|
-
const minItems = typeof field.minItems === "number" ? field.minItems : _optionalChain([jsonSchemaField, 'optionalAccess',
|
|
484
|
-
const maxItems = typeof field.maxItems === "number" ? field.maxItems : _optionalChain([jsonSchemaField, 'optionalAccess',
|
|
485
|
-
const items = isRecord(field.items) ? field.items : _optionalChain([jsonSchemaField, 'optionalAccess',
|
|
602
|
+
const minItems = typeof field.minItems === "number" ? field.minItems : _optionalChain([jsonSchemaField, 'optionalAccess', _5 => _5.minItems]);
|
|
603
|
+
const maxItems = typeof field.maxItems === "number" ? field.maxItems : _optionalChain([jsonSchemaField, 'optionalAccess', _6 => _6.maxItems]);
|
|
604
|
+
const items = isRecord(field.items) ? field.items : _optionalChain([jsonSchemaField, 'optionalAccess', _7 => _7.items]);
|
|
486
605
|
return {
|
|
487
606
|
...field,
|
|
488
607
|
...isRecord(items) ? { items } : {},
|
|
@@ -720,7 +839,7 @@ function formatModelDescription(description) {
|
|
|
720
839
|
function appendNamespace(lines, namespace) {
|
|
721
840
|
lines.push(`- ${namespace.provider} (${namespace.sourceSymbol})`);
|
|
722
841
|
for (const field of namespace.fields) {
|
|
723
|
-
const values = _optionalChain([field, 'access',
|
|
842
|
+
const values = _optionalChain([field, 'access', _8 => _8.enumValues, 'optionalAccess', _9 => _9.length]) ? ` (${field.enumValues.map((value) => JSON.stringify(value)).join(" | ")})` : "";
|
|
724
843
|
lines.push(
|
|
725
844
|
` - ${field.name}: ${field.type}${values} - ${field.description}`
|
|
726
845
|
);
|
|
@@ -762,4 +881,6 @@ function arrayField2(value, key) {
|
|
|
762
881
|
|
|
763
882
|
|
|
764
883
|
|
|
765
|
-
|
|
884
|
+
|
|
885
|
+
|
|
886
|
+
exports.observedMaxText = observedMaxText; exports.Capability = Capability; exports.isPlayLikeTool = isPlayLikeTool; exports.isMonitorTypeTool = isMonitorTypeTool; exports.playReferenceForTool = playReferenceForTool; exports.playSearchCommandForToolId = playSearchCommandForToolId; exports.playRunCommandForTool = playRunCommandForTool; exports.toolContractJsonForDescribe = toolContractJsonForDescribe; exports.publicToolSchemas = publicToolSchemas; exports.describedTool = describedTool; exports.samplePayloadForInputFields = samplePayloadForInputFields; exports.playResultExpression = playResultExpression; exports.toolMetadataJsonForDescribe = toolMetadataJsonForDescribe; exports.toolInputFieldsForDisplay = toolInputFieldsForDisplay; exports.toolOutputFieldsForDisplay = toolOutputFieldsForDisplay; exports.recursiveToolInputFieldsForDisplay = recursiveToolInputFieldsForDisplay; exports.isRecord = isRecord; exports.stringField = stringField; exports.arrayField = arrayField; exports.recordField = recordField; exports.formatModelDescription = formatModelDescription;
|
|
@@ -31,7 +31,7 @@ var _chunkNMU3VR5Ujs = require('./chunk-NMU3VR5U.js');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunkFIUTDSJXjs = require('./chunk-FIUTDSJX.js');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -652,7 +652,7 @@ var ToolCalls = class {
|
|
|
652
652
|
idempotencyKey,
|
|
653
653
|
onResponse: (response2) => {
|
|
654
654
|
lastResponse = null;
|
|
655
|
-
atomicToolsSupported = response2.headers.get(
|
|
655
|
+
atomicToolsSupported = response2.headers.get(_chunkFIUTDSJXjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
656
656
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
657
657
|
if (_optionalChain([options, 'optionalAccess', _30 => _30.onServerTiming])) {
|
|
658
658
|
try {
|
|
@@ -1107,8 +1107,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1107
1107
|
}
|
|
1108
1108
|
const receivers = _optionalChain([env, 'access', _55 => _55.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _56 => _56.trim, 'call', _57 => _57()]);
|
|
1109
1109
|
return {
|
|
1110
|
-
[
|
|
1111
|
-
...receivers ? { [
|
|
1110
|
+
[_chunkFIUTDSJXjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1111
|
+
...receivers ? { [_chunkFIUTDSJXjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1112
1112
|
};
|
|
1113
1113
|
}
|
|
1114
1114
|
function normalizeTestPolicyOverrides(value, source) {
|
|
@@ -1179,7 +1179,7 @@ var PlayClient = class {
|
|
|
1179
1179
|
return _chunkRNSHCJMEjs.startPlayRun.call(void 0,
|
|
1180
1180
|
this.http,
|
|
1181
1181
|
resolved.request,
|
|
1182
|
-
_optionalChain([options, 'optionalAccess', _65 => _65.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1182
|
+
_optionalChain([options, 'optionalAccess', _65 => _65.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkFIUTDSJXjs.SDK_API_MAJOR) } : headers,
|
|
1183
1183
|
options
|
|
1184
1184
|
);
|
|
1185
1185
|
}
|
|
@@ -3260,7 +3260,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3260
3260
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3261
3261
|
);
|
|
3262
3262
|
}
|
|
3263
|
-
return { [
|
|
3263
|
+
return { [_chunkFIUTDSJXjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3264
3264
|
}
|
|
3265
3265
|
function sleep(ms) {
|
|
3266
3266
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -3535,6 +3535,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3535
3535
|
searchEvents: (options) => this.searchRunEvents(options),
|
|
3536
3536
|
input: (runId) => this.getRunInput(runId),
|
|
3537
3537
|
rerun: (runId, options) => this.rerun(runId, options),
|
|
3538
|
+
resume: (runId) => this.resumeRun(runId),
|
|
3538
3539
|
exportDatasetRows: (input) => this.getPlaySheetRows(input),
|
|
3539
3540
|
rowHistory: (input) => this.getPlayRunRowHistory(input),
|
|
3540
3541
|
stop: (runId, options) => this.stopRun(runId, options),
|
|
@@ -4071,7 +4072,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4071
4072
|
);
|
|
4072
4073
|
const headers = _optionalChain([options, 'optionalAccess', _184 => _184.cliAdmission]) ? {
|
|
4073
4074
|
...runtimeHeaders,
|
|
4074
|
-
"X-Deepline-API-Major": String(
|
|
4075
|
+
"X-Deepline-API-Major": String(_chunkFIUTDSJXjs.SDK_API_MAJOR)
|
|
4075
4076
|
} : runtimeHeaders;
|
|
4076
4077
|
const http = this.http;
|
|
4077
4078
|
let submitted = false;
|
|
@@ -4975,6 +4976,19 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4975
4976
|
{ "Idempotency-Key": idempotencyKey || globalThis.crypto.randomUUID() }
|
|
4976
4977
|
);
|
|
4977
4978
|
}
|
|
4979
|
+
/**
|
|
4980
|
+
* Continue a failed or cancelled run as the same run. Completed calls are
|
|
4981
|
+
* reused; only work the run had not finished runs. A run can be resumed for
|
|
4982
|
+
* 14 days after it stops. Refusals (still active, last attempt still
|
|
4983
|
+
* finishing, sandbox cleanup pending, window expired) throw a
|
|
4984
|
+
* {@link DeeplineError} with the server's code.
|
|
4985
|
+
*/
|
|
4986
|
+
async resumeRun(runId) {
|
|
4987
|
+
return this.http.post(
|
|
4988
|
+
`/api/v2/runs/${encodeURIComponent(runId)}/resume`,
|
|
4989
|
+
{}
|
|
4990
|
+
);
|
|
4991
|
+
}
|
|
4978
4992
|
/**
|
|
4979
4993
|
* Read a run's retained text tail (default 200), full retained stream (`all`), or terminal failure window (`failed`, at most 20). These are existing reads; sampling and retention loss cannot be recovered. See [run logs and events](run-events.md) for structured search and payload retrieval.
|
|
4980
4994
|
*
|
|
@@ -5446,6 +5460,11 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
5446
5460
|
async getNotificationSettings() {
|
|
5447
5461
|
return this.http.get("/api/v2/settings/notifications");
|
|
5448
5462
|
}
|
|
5463
|
+
/** Get the dashboard link where a workspace owner or admin can connect a provider. */
|
|
5464
|
+
async getIntegrationConnectLink(provider) {
|
|
5465
|
+
const params = new URLSearchParams({ provider });
|
|
5466
|
+
return this.http.get(`/api/v2/integrations/connect?${params}`);
|
|
5467
|
+
}
|
|
5449
5468
|
/** Save provider-owned credential fields without starting an OAuth browser flow. */
|
|
5450
5469
|
async setIntegrationCredentials(provider, credentials) {
|
|
5451
5470
|
return this.http.post("/api/v2/integrations/connect", {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5GI6NKOE.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-L3TZV625.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-F6QV42MC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5GI6NKOE.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-N4TR6QRI.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KGLVATEB.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -458,7 +458,9 @@ var PLAY_RUN_RESERVED_BOOLEAN_FLAGS = /* @__PURE__ */ new Set([
|
|
|
458
458
|
"--debug",
|
|
459
459
|
"--full",
|
|
460
460
|
"--force",
|
|
461
|
+
"--from-start",
|
|
461
462
|
"--force-tool-refresh",
|
|
463
|
+
"--refresh-cache",
|
|
462
464
|
"--open",
|
|
463
465
|
"--debug-map-latency"
|
|
464
466
|
]);
|
|
@@ -593,8 +595,8 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
593
595
|
const dryRun = args.includes("--dry-run");
|
|
594
596
|
let jsonOutput = dryRun ? argsWantJson(args) : watch ? args.includes("--json") : argsWantJson(args);
|
|
595
597
|
const fullJson = args.includes("--full");
|
|
596
|
-
const force = args.includes("--force");
|
|
597
|
-
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
598
|
+
const force = args.includes("--force") || args.includes("--from-start");
|
|
599
|
+
const forceToolRefresh = args.includes("--force-tool-refresh") || args.includes("--refresh-cache");
|
|
598
600
|
const open = args.includes("--open");
|
|
599
601
|
const debugMapLatency = args.includes("--debug-map-latency");
|
|
600
602
|
let logLevel = "info";
|
|
@@ -1017,8 +1019,10 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
1017
1019
|
fullJson,
|
|
1018
1020
|
jsonFields,
|
|
1019
1021
|
waitTimeoutMs,
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
+
// The new names are aliases: an explicit legacy value still wins, exactly
|
|
1023
|
+
// as before, and an unset option inherits the base run's choice.
|
|
1024
|
+
force: options.force ?? (options.fromStart || void 0) ?? base.force,
|
|
1025
|
+
forceToolRefresh: options.forceToolRefresh ?? (options.refreshCache || void 0) ?? base.forceToolRefresh,
|
|
1022
1026
|
maxConcurrentExternalCalls: externalCalls,
|
|
1023
1027
|
maxConcurrentRows: rows,
|
|
1024
1028
|
maxCredits,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5GI6NKOE.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-L3TZV625.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -4,20 +4,20 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GLZBFBJS.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BI2Q45SY.mjs";
|
|
11
11
|
import {
|
|
12
12
|
addJsonNotice,
|
|
13
13
|
isJsonOutputMode
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-KGLVATEB.mjs";
|
|
15
15
|
import {
|
|
16
16
|
resolveApiKeyForBaseUrl
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-L3TZV625.mjs";
|
|
18
18
|
import {
|
|
19
19
|
SDK_VERSION
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-KPBBT6OS.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/compatibility-catalog.ts
|
|
23
23
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkHS63YBT5js = require('./chunk-HS63YBT5.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkFIUTDSJXjs = require('./chunk-FIUTDSJX.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
@@ -293,8 +293,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
293
293
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
294
294
|
var defaultBrowserCommandRunner = childProcess;
|
|
295
295
|
function getAuthedHttpClient() {
|
|
296
|
-
const config =
|
|
297
|
-
return { config, http: new (0,
|
|
296
|
+
const config = _chunkHS63YBT5js.resolveConfig.call(void 0, );
|
|
297
|
+
return { config, http: new (0, _chunkHS63YBT5js.HttpClient)(config) };
|
|
298
298
|
}
|
|
299
299
|
function stableOsUserId() {
|
|
300
300
|
try {
|
|
@@ -634,7 +634,7 @@ function collectLocalEnvInfo() {
|
|
|
634
634
|
os: `${process.platform} ${process.arch}`,
|
|
635
635
|
node_version: process.version,
|
|
636
636
|
home_dir: homeDir,
|
|
637
|
-
agent_runtime:
|
|
637
|
+
agent_runtime: _chunkFIUTDSJXjs.detectAgentRuntime.call(void 0, )
|
|
638
638
|
};
|
|
639
639
|
const env = process.env;
|
|
640
640
|
const optional = {
|
|
@@ -881,9 +881,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
881
881
|
}
|
|
882
882
|
function withAgentCommandContext(value) {
|
|
883
883
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
884
|
-
return
|
|
884
|
+
return _chunkFIUTDSJXjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
885
885
|
...valueRecord,
|
|
886
|
-
command_context:
|
|
886
|
+
command_context: _chunkHS63YBT5js.resolveCliCommandContext.call(void 0, )
|
|
887
887
|
} : value;
|
|
888
888
|
}
|
|
889
889
|
function printJson(value, fields) {
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
SCHEMA_LINE_LIMIT,
|
|
3
3
|
fieldBlockLines,
|
|
4
4
|
schemaFields
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ITJ7NB2D.mjs";
|
|
6
6
|
import {
|
|
7
7
|
csvSafeJsonString,
|
|
8
8
|
csvStringFromRows,
|
|
9
9
|
markJsonOutputHandled,
|
|
10
10
|
writeRawStderr
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-KGLVATEB.mjs";
|
|
12
12
|
|
|
13
13
|
// src/cli/describe-options.ts
|
|
14
14
|
function addDescribeOptions(command, options = {}) {
|
|
@@ -16,12 +16,12 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
16
16
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
var
|
|
19
|
+
var _chunkIIP46RVCjs = require('./chunk-IIP46RVC.js');
|
|
20
20
|
|
|
21
21
|
// src/version.ts
|
|
22
|
-
var SDK_VERSION =
|
|
23
|
-
var SDK_API_MAJOR =
|
|
24
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
22
|
+
var SDK_VERSION = _chunkIIP46RVCjs.SDK_RELEASE.version;
|
|
23
|
+
var SDK_API_MAJOR = _chunkIIP46RVCjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
24
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkIIP46RVCjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
25
25
|
|
|
26
26
|
// src/agent-runtime.ts
|
|
27
27
|
var _os = require('os');
|
|
@@ -130,6 +130,7 @@ var _crypto = require('crypto');
|
|
|
130
130
|
var PLAY_RUNTIME_TEST_FAULT_HEADER = "x-deepline-test-fault";
|
|
131
131
|
var MAX_RUNTIME_TEST_POLICY_MS = 10 * 6e4;
|
|
132
132
|
var MAX_RUNNER_HEARTBEAT_SILENCE_MS = 10 * 6e4;
|
|
133
|
+
var FENCE_COMMIT_ABANDON_MAX_MS = 10 * 6e4;
|
|
133
134
|
|
|
134
135
|
// ../integration-contracts/execute-retry-contract.ts
|
|
135
136
|
var EXECUTE_RETRY_POLICY_HEADER = "x-deepline-execute-retry-policy";
|