deepline 0.3.501 → 0.3.502
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/deployment/vercel-fly-rollback-alignment.ts +29 -14
- package/dist/bundling-sources/shared_libs/play-runtime/prebuilt-result-quality.ts +264 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +32 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-oidc.ts +30 -8
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +22 -4
- package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +2 -0
- package/dist/cli/{auth-6ECHXOI4.mjs → auth-EFHLOVG4.mjs} +5 -5
- package/dist/cli/auth-VM3IKP5F.js +43 -0
- package/dist/cli/{billing-75NZYRXA.mjs → billing-Q5XKEYPP.mjs} +6 -6
- package/dist/cli/{billing-QRR7O6BD.js → billing-SKT2VE34.js} +79 -79
- package/dist/cli/{chunk-RFV7PPLS.mjs → chunk-2JS3H6H6.mjs} +3 -3
- package/dist/cli/{chunk-66XDYH5T.mjs → chunk-2MVIS2UI.mjs} +2 -2
- package/dist/cli/{chunk-XEBFJ2PH.js → chunk-2S2F6YSI.js} +41 -41
- package/dist/cli/{chunk-463ZOO2L.js → chunk-32YQBJON.js} +7 -7
- package/dist/cli/{chunk-EOO7OSS4.mjs → chunk-3KEZVGGV.mjs} +4 -4
- package/dist/cli/{chunk-EHVFBD36.mjs → chunk-3MJSWVQ2.mjs} +1 -1
- package/dist/cli/{chunk-5S7MLAI7.mjs → chunk-4CCMD7QM.mjs} +20 -19
- package/dist/cli/{chunk-T7E3XEPG.mjs → chunk-4WTC5SSN.mjs} +7 -7
- package/dist/cli/{chunk-NA3J3F2Z.mjs → chunk-54QXWK3C.mjs} +1 -1
- package/dist/cli/{chunk-V5NHEYU7.mjs → chunk-7ZYSXSJJ.mjs} +5 -5
- package/dist/cli/{chunk-J6SVNKRP.js → chunk-AJL2Q6IQ.js} +2 -2
- package/dist/cli/{chunk-QQ3JJYE2.js → chunk-DKAMCJIT.js} +9 -9
- package/dist/cli/{chunk-C5R3UH5V.mjs → chunk-DRBD4IYQ.mjs} +1 -1
- package/dist/cli/{chunk-VVEMPC2I.js → chunk-DYHTXGLX.js} +2 -2
- package/dist/cli/{chunk-SV2TEZ2M.js → chunk-EUWRKWT4.js} +4 -4
- package/dist/cli/{chunk-GBICEYUA.js → chunk-FVM4PS5Q.js} +116 -8
- package/dist/cli/{chunk-I42EOZKQ.js → chunk-FWDAEWCD.js} +5 -5
- package/dist/cli/{chunk-FS7XYDOF.js → chunk-GINKIZ7S.js} +16 -16
- package/dist/cli/{chunk-VTDAJZIJ.mjs → chunk-HIVRCTDR.mjs} +1 -1
- package/dist/cli/{chunk-OKOXB3LY.mjs → chunk-HMZF2CSP.mjs} +2 -2
- package/dist/cli/{chunk-EKF4DKUA.js → chunk-IL666WJE.js} +5 -5
- package/dist/cli/{chunk-HDKXSHGA.js → chunk-JFBJLNBI.js} +53 -53
- package/dist/cli/{chunk-KSHAFYYG.mjs → chunk-JFUXUSKB.mjs} +112 -4
- package/dist/cli/{chunk-TOE7LHEA.js → chunk-JL6H4H3G.js} +6 -6
- package/dist/cli/{chunk-BOFCF4L7.js → chunk-JLYDLK6X.js} +3 -3
- package/dist/cli/{chunk-O3DDVP7Z.mjs → chunk-L5CTJY74.mjs} +1 -1
- package/dist/cli/{chunk-4OXHLTCP.js → chunk-LA3UYRVZ.js} +1 -1
- package/dist/cli/{chunk-Z6AUOV7D.mjs → chunk-MP5QY4A2.mjs} +2 -2
- package/dist/cli/{chunk-ZUQHQGC5.mjs → chunk-MYUISF3P.mjs} +5 -5
- package/dist/cli/{chunk-WJUDAHIQ.mjs → chunk-NKLM4J4X.mjs} +1 -1
- package/dist/cli/{chunk-UJRN6YP6.mjs → chunk-NXVYLX3F.mjs} +2 -2
- package/dist/cli/{chunk-J74N375S.mjs → chunk-NZXB27TP.mjs} +4 -4
- package/dist/cli/{chunk-VL72UKNW.js → chunk-OEUMXKR5.js} +26 -26
- package/dist/cli/{chunk-7L6QNHUL.mjs → chunk-OFBLT2LQ.mjs} +1 -1
- package/dist/cli/{chunk-PNF2ZU4R.js → chunk-OVZOMSH2.js} +8 -8
- package/dist/cli/{chunk-CJJ7JBM2.js → chunk-Q3NM6ZL3.js} +19 -19
- package/dist/cli/{chunk-APAHMCGR.js → chunk-QNELA7SX.js} +53 -53
- package/dist/cli/{chunk-EKZQ5LQO.js → chunk-QOJBRCAS.js} +3 -3
- package/dist/cli/{chunk-MSLXAVVK.mjs → chunk-R5F7JXT4.mjs} +2 -2
- package/dist/cli/{chunk-N2TJJNCW.js → chunk-TAK3MVXY.js} +270 -269
- package/dist/cli/{chunk-UR7JOSLT.js → chunk-UOANF3DR.js} +7 -7
- package/dist/cli/{chunk-MADTHS56.mjs → chunk-W5CHE5Q2.mjs} +1 -1
- package/dist/cli/{chunk-W6JTHVPF.js → chunk-WKFAX2K7.js} +21 -21
- package/dist/cli/{chunk-KTOAJP4N.js → chunk-X5MGQ7UT.js} +6 -6
- package/dist/cli/{chunk-RU5ROUFO.js → chunk-XMKUJ44Z.js} +5 -5
- package/dist/cli/{chunk-5X4AUFYW.js → chunk-YDXEXVBV.js} +7 -7
- package/dist/cli/{chunk-PXIF74UJ.mjs → chunk-YL2CCF6T.mjs} +4 -4
- package/dist/cli/{chunk-ZUOKIBLJ.mjs → chunk-YWOQYYYS.mjs} +2 -2
- package/dist/cli/{chunk-T4U245E4.mjs → chunk-Z2H7OQ6E.mjs} +2 -2
- package/dist/cli/{chunk-VD2374K7.mjs → chunk-ZNB6GR3P.mjs} +1 -1
- package/dist/cli/{csv-RZJ4SOIL.mjs → csv-6AEPKKCO.mjs} +4 -4
- package/dist/cli/{csv-JXX2LXK5.js → csv-OXGSCV75.js} +13 -13
- package/dist/cli/{db-T2KJNONM.js → db-6NVHDUZY.js} +27 -27
- package/dist/cli/{db-MUTT2NWI.mjs → db-K3KRK4CZ.mjs} +6 -6
- package/dist/cli/describe-JOUAXXPE.js +49 -0
- package/dist/cli/{describe-K3UMAAVO.mjs → describe-P3ZJS7TQ.mjs} +19 -20
- package/dist/cli/describe-core.js +3 -4
- package/dist/cli/describe-core.mjs +2 -3
- package/dist/cli/{executions-7HSLDRHR.js → executions-2C2FFG52.js} +8 -8
- package/dist/cli/{executions-PHS4R2OX.mjs → executions-I7XW6WWK.mjs} +6 -6
- package/dist/cli/{feedback-BJZRM637.js → feedback-47B57A5Y.js} +8 -8
- package/dist/cli/{feedback-RWMDCIDF.mjs → feedback-RSTNBJAI.mjs} +4 -4
- package/dist/cli/{git-YW6VHYZG.mjs → git-3G5AFKBT.mjs} +5 -5
- package/dist/cli/git-OPKIC6JQ.js +25 -0
- package/dist/cli/index.js +137 -137
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-5UBSUPGG.mjs → legacy-noops-NQ262TKL.mjs} +5 -5
- package/dist/cli/{legacy-noops-2WUV2XD7.js → legacy-noops-P665PBG4.js} +8 -8
- package/dist/cli/{monitors-YZZRKSTG.js → monitors-IPWAD7LS.js} +95 -95
- package/dist/cli/{monitors-HWOQO3OK.mjs → monitors-KUPZODZS.mjs} +7 -7
- package/dist/cli/{org-JY7HLHBA.js → org-WFC3N672.js} +72 -72
- package/dist/cli/{org-NCXT6RB4.mjs → org-ZCQGEM3L.mjs} +6 -6
- package/dist/cli/{pages-6ZOHXL6X.js → pages-N5BNC67L.js} +18 -18
- package/dist/cli/{pages-QJO53QAT.mjs → pages-VE66IU7B.mjs} +6 -6
- package/dist/cli/{play-SQRS7JN3.mjs → play-EIMDIAJB.mjs} +17 -17
- package/dist/cli/{play-TAYGSR35.js → play-NKIRJSKX.js} +315 -315
- package/dist/cli/{providers-3IR3N5DT.mjs → providers-KDTJ63ED.mjs} +6 -6
- package/dist/cli/{providers-4Q5LOIQ5.js → providers-XU3AGY2F.js} +9 -9
- package/dist/cli/{quickstart-ITNUZENY.js → quickstart-OSCHOSXU.js} +6 -6
- package/dist/cli/{quickstart-KCZCYO6B.mjs → quickstart-TXFXUODF.mjs} +4 -4
- package/dist/cli/{run-YQ57LMKN.js → run-ET2KVTPK.js} +43 -44
- package/dist/cli/{run-JCWRWDSK.mjs → run-ODGML35U.mjs} +24 -25
- package/dist/cli/search-6U54Y3OK.js +32 -0
- package/dist/cli/{search-FUM27HQP.mjs → search-DK67K6PR.mjs} +7 -7
- package/dist/cli/{search-output-EWEYT34M.mjs → search-output-6SOKQTCW.mjs} +53 -75
- package/dist/cli/{search-output-XAMWKRJH.js → search-output-KXP4FA62.js} +58 -80
- package/dist/cli/{secrets-YTI4IAKR.mjs → secrets-C6SYTMU7.mjs} +6 -6
- package/dist/cli/{secrets-2IRRRZBL.js → secrets-WPS6NMNK.js} +15 -15
- package/dist/cli/{sessions-HWTRDXBQ.js → sessions-IP562J5Z.js} +6 -6
- package/dist/cli/{sessions-EFS4KUPF.mjs → sessions-PXVOH34X.mjs} +5 -5
- package/dist/cli/{settings-NTOO42DY.mjs → settings-FBUQGYVJ.mjs} +11 -11
- package/dist/cli/{settings-FRVEIOKR.js → settings-SUDUIVMY.js} +78 -78
- package/dist/cli/{setup-6ZIOAE2V.js → setup-I5H6IOEY.js} +49 -49
- package/dist/cli/{setup-PAVQPALX.mjs → setup-JSIMTR73.mjs} +9 -9
- package/dist/cli/{skills-3O3XTPUM.mjs → skills-FJQ3LX6N.mjs} +7 -7
- package/dist/cli/skills-VHININXC.js +36 -0
- package/dist/cli/{tools-7QSB65UL.mjs → tools-IGBK4BVE.mjs} +17 -18
- package/dist/cli/tools-XMBMHVKF.js +56 -0
- package/dist/cli/{update-T6CYS5ZT.mjs → update-7MTT6F5K.mjs} +9 -9
- package/dist/cli/update-H7JVW43I.js +34 -0
- package/dist/cli/{workflow-OMSXZ73T.mjs → workflow-PM2J2OU3.mjs} +7 -7
- package/dist/cli/{workflow-4KMJBMGX.js → workflow-UX3ZX6BQ.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +103 -104
- 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.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
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQNELA7SXjs = require('./chunk-QNELA7SX.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunkQNELA7SXjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -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 _chunkLA3UYRVZjs = require('./chunk-LA3UYRVZ.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 = _chunkLA3UYRVZjs.SDK_RELEASE.version;
|
|
23
|
+
var SDK_API_MAJOR = _chunkLA3UYRVZjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
24
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkLA3UYRVZjs.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');
|
|
@@ -5,10 +5,6 @@
|
|
|
5
5
|
var _chunkJO5FFSR7js = require('./chunk-JO5FFSR7.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
var _chunkXK5DMLZEjs = require('./chunk-XK5DMLZE.js');
|
|
10
|
-
|
|
11
|
-
|
|
12
8
|
var _chunkJ33TSWO5js = require('./chunk-J33TSWO5.js');
|
|
13
9
|
|
|
14
10
|
|
|
@@ -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",
|
|
@@ -298,7 +404,7 @@ function describedTool(tool, requestedToolId) {
|
|
|
298
404
|
stringField(cost, "displayText"),
|
|
299
405
|
// "Free (free)" says the same thing twice.
|
|
300
406
|
billing.toLowerCase() === stringField(cost, "displayText").toLowerCase() ? "" : billing && `(${billing})`,
|
|
301
|
-
|
|
407
|
+
observedMaxText(cost) && `\u2014 ${observedMaxText(cost)}`
|
|
302
408
|
].filter(Boolean).join(" ") || void 0,
|
|
303
409
|
guidance: [
|
|
304
410
|
...contract.deprecated === true ? [`Deprecated. ${stringField(deprecation, "message")}`.trim()] : [],
|
|
@@ -395,7 +501,7 @@ function toolMetadataJsonForDescribe(tool, requestedToolId, seedStarterScript) {
|
|
|
395
501
|
} = tool;
|
|
396
502
|
const outputSchemaRecord = recordField(tool, "outputSchema", "output_schema");
|
|
397
503
|
return {
|
|
398
|
-
cost:
|
|
504
|
+
cost: Capability.fromCatalogEntry(tool).describe().customerCost(),
|
|
399
505
|
...publicTool,
|
|
400
506
|
toolId,
|
|
401
507
|
provider: tool.provider,
|
|
@@ -762,4 +868,6 @@ function arrayField2(value, key) {
|
|
|
762
868
|
|
|
763
869
|
|
|
764
870
|
|
|
765
|
-
|
|
871
|
+
|
|
872
|
+
|
|
873
|
+
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;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkFVM4PS5Qjs = require('./chunk-FVM4PS5Q.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -31,7 +31,7 @@ var VIEWS = {
|
|
|
31
31
|
details: model,
|
|
32
32
|
lines: [
|
|
33
33
|
...unlisted,
|
|
34
|
-
...
|
|
34
|
+
..._chunkFVM4PS5Qjs.formatModelDescription.call(void 0, model).trimEnd().split("\n")
|
|
35
35
|
]
|
|
36
36
|
};
|
|
37
37
|
},
|
|
@@ -148,18 +148,18 @@ async function findNamed(reference, options, lookups) {
|
|
|
148
148
|
const features = toolFeatures(record);
|
|
149
149
|
return {
|
|
150
150
|
described: {
|
|
151
|
-
...
|
|
151
|
+
..._chunkFVM4PS5Qjs.describedTool.call(void 0, record, name),
|
|
152
152
|
// Shown when the tool runs only on your own credentials; otherwise
|
|
153
153
|
// it is a feature, described with --feature byok.
|
|
154
154
|
..._optionalChain([byok, 'optionalAccess', _3 => _3.required]) === true ? { byok } : {},
|
|
155
155
|
...features.length ? { features: features.map(({ view: _view, ...feature }) => feature) } : {}
|
|
156
156
|
},
|
|
157
|
-
record:
|
|
157
|
+
record: _chunkFVM4PS5Qjs.toolMetadataJsonForDescribe.call(void 0,
|
|
158
158
|
record,
|
|
159
159
|
name,
|
|
160
160
|
lookups.seedStarterScript
|
|
161
161
|
),
|
|
162
|
-
schemas:
|
|
162
|
+
schemas: _chunkFVM4PS5Qjs.publicToolSchemas.call(void 0, record),
|
|
163
163
|
feature: (featureName, value) => {
|
|
164
164
|
const feature = features.find(({ name: name2 }) => name2 === featureName);
|
|
165
165
|
return feature ? describeFeature(record, feature, value, {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkDYHTXGLXjs = require('./chunk-DYHTXGLX.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk2S2F6YSIjs = require('./chunk-2S2F6YSI.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkQNELA7SXjs = require('./chunk-QNELA7SX.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkYDXEXVBVjs = require('./chunk-YDXEXVBV.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkJLYDLK6Xjs = require('./chunk-JLYDLK6X.js');
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
var _child_process = require('child_process');
|
|
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
|
|
|
495
495
|
}
|
|
496
496
|
function resolveNpmGlobalPrefix(env) {
|
|
497
497
|
try {
|
|
498
|
-
const plan =
|
|
498
|
+
const plan = _chunkQNELA7SXjs.resolveShellSpawn.call(void 0,
|
|
499
499
|
"npm",
|
|
500
500
|
["prefix", "-g"],
|
|
501
501
|
process.platform,
|
|
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
557
557
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
558
558
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
559
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
560
|
-
const npmGlobalInstallFlags =
|
|
559
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkDYHTXGLXjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunkDYHTXGLXjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
561
561
|
const args = installPrefix ? [
|
|
562
562
|
"install",
|
|
563
563
|
"-g",
|
|
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
567
567
|
packageSpec
|
|
568
568
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
569
569
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
570
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
570
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkJLYDLK6Xjs.autoDetectBaseUrl.call(void 0, )
|
|
571
571
|
);
|
|
572
572
|
return {
|
|
573
573
|
kind: "npm-global",
|
|
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
816
816
|
function runCommand(command, args, env = process.env) {
|
|
817
817
|
return new Promise((resolveResult) => {
|
|
818
818
|
let output = "";
|
|
819
|
-
const plan =
|
|
819
|
+
const plan = _chunkQNELA7SXjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
820
820
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
821
821
|
stdio: ["inherit", "pipe", "pipe"],
|
|
822
822
|
shell: plan.shell,
|
|
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1199
1199
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1200
1200
|
}
|
|
1201
1201
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1202
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1202
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkJLYDLK6Xjs.autoDetectBaseUrl));
|
|
1203
1203
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1204
1204
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1205
1205
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1206
1206
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1207
1207
|
process.stdout.write = (() => true);
|
|
1208
1208
|
try {
|
|
1209
|
-
const exitCode = await
|
|
1209
|
+
const exitCode = await _chunk2S2F6YSIjs.runSkillsCommand.call(void 0, { json: true });
|
|
1210
1210
|
if (exitCode !== 0) {
|
|
1211
1211
|
throw new Error(
|
|
1212
1212
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1277
1277
|
]
|
|
1278
1278
|
};
|
|
1279
1279
|
if (options.json && !options.executeWithJson) {
|
|
1280
|
-
|
|
1280
|
+
_chunkYDXEXVBVjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunkYDXEXVBVjs.printCommandEnvelope.call(void 0,
|
|
1285
1285
|
{
|
|
1286
1286
|
...plan,
|
|
1287
1287
|
render: {
|
|
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1294
1294
|
return 0;
|
|
1295
1295
|
}
|
|
1296
1296
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1297
|
-
|
|
1297
|
+
_chunkYDXEXVBVjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1298
1298
|
return 0;
|
|
1299
1299
|
}
|
|
1300
1300
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills install
|
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
1326
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1327
|
+
_chunkYDXEXVBVjs.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZNB6GR3P.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NZXB27TP.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkUOANF3DRjs = require('./chunk-UOANF3DR.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkJLYDLK6Xjs = require('./chunk-JLYDLK6X.js');
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
|
|
|
137
137
|
|
|
138
138
|
// src/plays/client.ts
|
|
139
139
|
function createPlayClient(options) {
|
|
140
|
-
const config =
|
|
141
|
-
return new (0,
|
|
142
|
-
new (0,
|
|
140
|
+
const config = _chunkJLYDLK6Xjs.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunkUOANF3DRjs.PlayClient)(
|
|
142
|
+
new (0, _chunkJLYDLK6Xjs.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|