deepline 0.3.500 → 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/plays/client-core.ts +45 -7
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +20 -2
- package/dist/bundling-sources/shared_libs/play-data-plane/r2.ts +155 -0
- package/dist/bundling-sources/shared_libs/play-runtime/app-runtime-api.ts +7 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +2 -1
- 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-invocation-fence.ts +3 -1
- package/dist/bundling-sources/shared_libs/play-runtime/internal-bootstrap-token.ts +54 -1
- package/dist/bundling-sources/shared_libs/play-runtime/launch-identity.ts +12 -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 +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/run-identity.ts +56 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +53 -10
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-heartbeat.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-progress-push.ts +1 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-terminal-push.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-launch-transport.ts +9 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +31 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-payload-transport.ts +74 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-runtime-watchdog.ts +226 -2
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api-paths.ts +41 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +5 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-app-transport.ts +374 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-environment.ts +49 -9
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-oidc.ts +55 -11
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-profile.ts +12 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-sandbox-credential.ts +338 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-gateway-staging.ts +417 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backend.ts +15 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +184 -11
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-shared.ts +17 -3
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/gateway-progress-registry.ts +9 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-progress.ts +18 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +198 -20
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-attempt.ts +81 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-staging-journal.ts +708 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-gateway-staging-teardown.ts +160 -0
- package/dist/bundling-sources/shared_libs/play-runtime/workflow-executor-auth.ts +4 -0
- package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +2 -0
- package/dist/cli/{auth-WK3FDPRP.mjs → auth-EFHLOVG4.mjs} +5 -5
- package/dist/cli/auth-VM3IKP5F.js +43 -0
- package/dist/cli/{billing-O3LVKXE7.mjs → billing-Q5XKEYPP.mjs} +8 -8
- package/dist/cli/{billing-K7UHZUF4.js → billing-SKT2VE34.js} +81 -81
- package/dist/cli/{chunk-4CJWOLOS.mjs → chunk-2JS3H6H6.mjs} +3 -3
- package/dist/cli/{chunk-CIV5GJAE.mjs → chunk-2MVIS2UI.mjs} +2 -2
- package/dist/cli/{chunk-LNMY2T5S.js → chunk-2S2F6YSI.js} +41 -41
- package/dist/cli/{chunk-RAZ3TMOS.js → chunk-32YQBJON.js} +7 -7
- package/dist/cli/{chunk-JHNFUCVT.mjs → chunk-3KEZVGGV.mjs} +4 -4
- package/dist/cli/{chunk-5JXGYSXH.mjs → chunk-3MJSWVQ2.mjs} +1 -1
- package/dist/cli/{chunk-5TVY5OEH.mjs → chunk-4CCMD7QM.mjs} +21 -20
- package/dist/cli/{chunk-T4AGTOKQ.mjs → chunk-4WTC5SSN.mjs} +7 -7
- package/dist/cli/{chunk-XCBOOB73.mjs → chunk-54QXWK3C.mjs} +1 -1
- package/dist/cli/{chunk-5AC7NUQN.mjs → chunk-7ZYSXSJJ.mjs} +5 -5
- package/dist/cli/{chunk-PHGMC33I.js → chunk-AJL2Q6IQ.js} +2 -2
- package/dist/cli/{chunk-UBKA33KY.mjs → chunk-BMCRTI6Z.mjs} +22 -1
- package/dist/cli/{chunk-74VKLBJD.js → chunk-DKAMCJIT.js} +14 -14
- package/dist/cli/{chunk-C5R3UH5V.mjs → chunk-DRBD4IYQ.mjs} +1 -1
- package/dist/cli/{chunk-Z5LE7NXM.js → chunk-DYHTXGLX.js} +2 -2
- package/dist/cli/{chunk-TOGCDNMH.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-GOO4VI5M.js → chunk-GINKIZ7S.js} +16 -16
- package/dist/cli/{chunk-56QAHX2K.mjs → chunk-HIVRCTDR.mjs} +90 -30
- package/dist/cli/{chunk-XUOZYAP5.mjs → chunk-HMZF2CSP.mjs} +2 -2
- package/dist/cli/{chunk-5KAZGZG7.js → chunk-IL666WJE.js} +5 -5
- package/dist/cli/{chunk-G3NA4R7M.js → chunk-JFBJLNBI.js} +53 -53
- package/dist/cli/{chunk-KSHAFYYG.mjs → chunk-JFUXUSKB.mjs} +112 -4
- package/dist/cli/{chunk-RHE4YI4H.js → chunk-JL6H4H3G.js} +6 -6
- package/dist/cli/{chunk-K3BHKRMS.js → chunk-JLYDLK6X.js} +3 -3
- package/dist/cli/{chunk-QRKCCY4L.mjs → chunk-L5CTJY74.mjs} +1 -1
- package/dist/cli/{chunk-W64Y7GE7.js → chunk-LA3UYRVZ.js} +1 -1
- package/dist/cli/{chunk-HI2BFS5S.mjs → chunk-MP5QY4A2.mjs} +2 -2
- package/dist/cli/{chunk-V7MZYIA7.mjs → chunk-MYUISF3P.mjs} +5 -5
- package/dist/cli/{chunk-CS2AEAD6.mjs → chunk-N4TR6QRI.mjs} +1 -1
- package/dist/cli/{chunk-C7355NMU.mjs → chunk-NKLM4J4X.mjs} +1 -1
- package/dist/cli/{chunk-FJZUG633.mjs → chunk-NXVYLX3F.mjs} +3 -3
- package/dist/cli/{chunk-L7X6ADNM.mjs → chunk-NZXB27TP.mjs} +4 -4
- package/dist/cli/{chunk-VLCY4F6E.js → chunk-OEUMXKR5.js} +26 -26
- package/dist/cli/{chunk-SRS2D27G.mjs → chunk-OFBLT2LQ.mjs} +1 -1
- package/dist/cli/{chunk-SNPZ2QWL.js → chunk-OVZOMSH2.js} +8 -8
- package/dist/cli/{chunk-KEBNXJSK.js → chunk-Q3NM6ZL3.js} +19 -19
- package/dist/cli/{chunk-GBRI644Y.js → chunk-QNELA7SX.js} +53 -53
- package/dist/cli/{chunk-IX2DPYIV.js → chunk-QOJBRCAS.js} +3 -3
- package/dist/cli/{chunk-IZ6YWXIK.mjs → chunk-R5F7JXT4.mjs} +2 -2
- package/dist/cli/{chunk-EQR5O2D2.js → chunk-RNSHCJME.js} +3 -3
- package/dist/cli/{chunk-Q2FXZ4Z5.js → chunk-TAK3MVXY.js} +272 -271
- package/dist/cli/{chunk-BIE57V6K.js → chunk-UOANF3DR.js} +360 -300
- package/dist/cli/{chunk-CBZTKDXW.mjs → chunk-W5CHE5Q2.mjs} +1 -1
- package/dist/cli/{chunk-U5GFP26N.js → chunk-WKFAX2K7.js} +21 -21
- package/dist/cli/{chunk-XDVT3GOM.js → chunk-WSGXBROE.js} +22 -1
- package/dist/cli/{chunk-X7ODM2LK.js → chunk-X5MGQ7UT.js} +6 -6
- package/dist/cli/{chunk-REIKJREB.js → chunk-XMKUJ44Z.js} +5 -5
- package/dist/cli/{chunk-SNJNPRIV.js → chunk-YDXEXVBV.js} +7 -7
- package/dist/cli/{chunk-X5SO7RV5.mjs → chunk-YL2CCF6T.mjs} +4 -4
- package/dist/cli/{chunk-VPVEPGYS.mjs → chunk-YWOQYYYS.mjs} +2 -2
- package/dist/cli/{chunk-MAHLIWOF.mjs → chunk-Z2H7OQ6E.mjs} +2 -2
- package/dist/cli/{chunk-PGRPNRP6.mjs → chunk-ZNB6GR3P.mjs} +1 -1
- package/dist/cli/{csv-DEUOSTEB.mjs → csv-6AEPKKCO.mjs} +4 -4
- package/dist/cli/{csv-MWCWNIBJ.js → csv-OXGSCV75.js} +13 -13
- package/dist/cli/{db-Q6IRXTTG.js → db-6NVHDUZY.js} +29 -29
- package/dist/cli/{db-QM5R5BRY.mjs → db-K3KRK4CZ.mjs} +8 -8
- package/dist/cli/describe-JOUAXXPE.js +49 -0
- package/dist/cli/describe-P3ZJS7TQ.mjs +49 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/describe-core.js +3 -4
- package/dist/cli/describe-core.mjs +2 -3
- package/dist/cli/{executions-DCCDXSQI.js → executions-2C2FFG52.js} +10 -10
- package/dist/cli/{executions-SWBKFCY2.mjs → executions-I7XW6WWK.mjs} +8 -8
- package/dist/cli/{feedback-EU3EYF4V.js → feedback-47B57A5Y.js} +8 -8
- package/dist/cli/{feedback-Q27HN3SB.mjs → feedback-RSTNBJAI.mjs} +4 -4
- package/dist/cli/{git-SEQFTQ4N.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-XKH4VREG.mjs → legacy-noops-NQ262TKL.mjs} +5 -5
- package/dist/cli/{legacy-noops-LCQDEVA3.js → legacy-noops-P665PBG4.js} +8 -8
- package/dist/cli/{monitors-DJCID6X5.js → monitors-IPWAD7LS.js} +97 -97
- package/dist/cli/{monitors-4XWBV46I.mjs → monitors-KUPZODZS.mjs} +9 -9
- package/dist/cli/{org-BU4FG5PN.js → org-WFC3N672.js} +74 -74
- package/dist/cli/{org-PSBGXBRW.mjs → org-ZCQGEM3L.mjs} +8 -8
- package/dist/cli/{pages-3PHJYXYB.js → pages-N5BNC67L.js} +20 -20
- package/dist/cli/{pages-7QLXLJGQ.mjs → pages-VE66IU7B.mjs} +8 -8
- package/dist/cli/{play-4OLYXRCG.mjs → play-EIMDIAJB.mjs} +20 -20
- package/dist/cli/{play-S3CWPQKB.js → play-NKIRJSKX.js} +336 -336
- package/dist/cli/{providers-JT7C2QTC.mjs → providers-KDTJ63ED.mjs} +8 -8
- package/dist/cli/{providers-U4JUMLB2.js → providers-XU3AGY2F.js} +11 -11
- package/dist/cli/{quickstart-OUSMXLYZ.js → quickstart-OSCHOSXU.js} +6 -6
- package/dist/cli/{quickstart-DQF5CF2I.mjs → quickstart-TXFXUODF.mjs} +4 -4
- package/dist/cli/{run-6XXHLB4X.js → run-ET2KVTPK.js} +45 -46
- package/dist/cli/{run-RECNI77K.mjs → run-ODGML35U.mjs} +26 -27
- package/dist/cli/run-identity-HFYABUJS.js +31 -0
- package/dist/cli/{run-identity-MRNCEGV2.mjs → run-identity-MNRZS2N3.mjs} +9 -3
- package/dist/cli/search-6U54Y3OK.js +32 -0
- package/dist/cli/{search-JN7K3GC6.mjs → search-DK67K6PR.mjs} +9 -9
- package/dist/cli/{search-output-L6PC5SPM.mjs → search-output-6SOKQTCW.mjs} +53 -75
- package/dist/cli/{search-output-JGNYXDWZ.js → search-output-KXP4FA62.js} +58 -80
- package/dist/cli/{secrets-UOXZWHBY.mjs → secrets-C6SYTMU7.mjs} +8 -8
- package/dist/cli/{secrets-TX6PCZ77.js → secrets-WPS6NMNK.js} +17 -17
- package/dist/cli/{sessions-GCEIX4KB.js → sessions-IP562J5Z.js} +6 -6
- package/dist/cli/{sessions-DTE733EH.mjs → sessions-PXVOH34X.mjs} +5 -5
- package/dist/cli/{settings-ZGIMRCTC.mjs → settings-FBUQGYVJ.mjs} +13 -13
- package/dist/cli/{settings-UGXSDHR5.js → settings-SUDUIVMY.js} +80 -80
- package/dist/cli/{setup-JYB6Z376.js → setup-I5H6IOEY.js} +49 -49
- package/dist/cli/{setup-UT7AO53D.mjs → setup-JSIMTR73.mjs} +9 -9
- package/dist/cli/{skills-4QJCMN7J.mjs → skills-FJQ3LX6N.mjs} +7 -7
- package/dist/cli/skills-VHININXC.js +36 -0
- package/dist/cli/{tools-RGNXIAA6.mjs → tools-IGBK4BVE.mjs} +19 -20
- package/dist/cli/tools-XMBMHVKF.js +56 -0
- package/dist/cli/{update-Q62EVSXZ.mjs → update-7MTT6F5K.mjs} +9 -9
- package/dist/cli/update-H7JVW43I.js +34 -0
- package/dist/cli/{workflow-YNIOWM7J.mjs → workflow-PM2J2OU3.mjs} +9 -9
- package/dist/cli/{workflow-GENV47RD.js → workflow-UX3ZX6BQ.js} +19 -19
- package/dist/{client-Cj3UqrCZ.d.ts → client-Bn8FwKGO.d.ts} +1 -1
- package/dist/{client-DSCTVVRj.d.mts → client-CfNRmjLK.d.mts} +1 -1
- package/dist/{client-core-dI4KTuWS.d.ts → client-core-B91EV0WS.d.ts} +19 -0
- package/dist/{client-core-B-8DTIN1.d.mts → client-core-BG8Cgrmk.d.mts} +19 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +19 -19
- package/dist/index.mjs +8 -8
- package/dist/install-integrity.json +119 -114
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/plays/run-request.js +3 -3
- package/dist/plays/run-request.mjs +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 +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +7 -7
- package/dist/server.mjs +5 -5
- package/package.json +1 -1
- package/dist/cli/auth-H4PCVUN3.js +0 -43
- package/dist/cli/chunk-XK5DMLZE.js +0 -111
- package/dist/cli/chunk-XRDXNAAY.mjs +0 -111
- package/dist/cli/describe-BZ544347.js +0 -50
- package/dist/cli/describe-CQZ7TBOG.mjs +0 -50
- package/dist/cli/git-NW6BAXX2.js +0 -25
- package/dist/cli/run-identity-G257GQED.js +0 -25
- package/dist/cli/search-BIQ62ZBE.js +0 -32
- package/dist/cli/skills-53LCPB5R.js +0 -36
- package/dist/cli/tools-HKJK6UNJ.js +0 -57
- package/dist/cli/update-QMZSFTFZ.js +0 -34
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_SUMMARY_WIDTH
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
|
-
import {
|
|
5
|
-
observedMaxText
|
|
6
|
-
} from "./chunk-XRDXNAAY.mjs";
|
|
7
4
|
import {
|
|
8
5
|
renderCommandEnvelopeText
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-2MVIS2UI.mjs";
|
|
7
|
+
import "./chunk-W5CHE5Q2.mjs";
|
|
8
|
+
import "./chunk-3MJSWVQ2.mjs";
|
|
12
9
|
import "./chunk-4QF2K7TM.mjs";
|
|
13
10
|
import "./chunk-DLIRSHV6.mjs";
|
|
14
11
|
import "./chunk-HBL4PM5Q.mjs";
|
|
15
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-OFBLT2LQ.mjs";
|
|
16
13
|
import "./chunk-WZYKRD7T.mjs";
|
|
17
14
|
import {
|
|
18
15
|
__commonJS,
|
|
@@ -5735,67 +5732,35 @@ function clipSummary(value, width) {
|
|
|
5735
5732
|
const characters = Array.from(value.replace(/\s+/gu, " ").trim());
|
|
5736
5733
|
return characters.length <= width ? characters.join("") : `${characters.slice(0, width - 1).join("")}\u2026`;
|
|
5737
5734
|
}
|
|
5738
|
-
function
|
|
5735
|
+
function toolPrice(item) {
|
|
5739
5736
|
const pricing = item.pricing;
|
|
5740
|
-
|
|
5741
|
-
if (
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
};
|
|
5749
|
-
}
|
|
5750
|
-
if (!pricing)
|
|
5751
|
-
return { cost: item.kind === "tool" ? "unknown" : "\u2014", notes: [] };
|
|
5737
|
+
if (!pricing) return item.kind === "tool" ? "unknown" : "\u2014";
|
|
5738
|
+
if (item.billingSource === "own_provider_credentials") return "0 (byok)";
|
|
5739
|
+
if (pricing.benefit?.status === "included")
|
|
5740
|
+
return typeof pricing.benefit.remaining === "number" ? `0 (${pricing.benefit.remaining.toLocaleString("en-US")} free left)*` : "0 (included)*";
|
|
5741
|
+
if (pricing.benefit?.status === "unavailable")
|
|
5742
|
+
return "inclusion unavailable*";
|
|
5743
|
+
if (pricing.benefit?.status === "exhausted" && typeof pricing.creditsPerUnit === "number")
|
|
5744
|
+
return `${pricing.creditsPerUnit}/${pricing.unit ?? "result"}*`;
|
|
5752
5745
|
const range = pricing.estimatedRange;
|
|
5753
|
-
if (range
|
|
5754
|
-
return {
|
|
5755
|
-
cost: `${range.minCreditsPerUnit}\u2013${range.maxCreditsPerUnit}/${pricing.unit} (estimate)`,
|
|
5756
|
-
notes: [range.scope]
|
|
5757
|
-
};
|
|
5758
|
-
}
|
|
5746
|
+
if (range)
|
|
5747
|
+
return `${range.minCreditsPerUnit}\u2013${range.maxCreditsPerUnit}/${pricing.unit} (estimate)*`;
|
|
5759
5748
|
const observed = pricing.observedReference;
|
|
5760
|
-
if (observed) {
|
|
5761
|
-
return {
|
|
5762
|
-
cost: `${observed.creditsPerCall}/call (observed)`,
|
|
5763
|
-
notes: [
|
|
5764
|
-
`Observed reference: ${observed.sampleSize} call(s), ${observed.observedAt}; ${observed.inputMode} Not a quote.`
|
|
5765
|
-
]
|
|
5766
|
-
};
|
|
5767
|
-
}
|
|
5768
|
-
if (item.billingSource === "own_provider_credentials") {
|
|
5769
|
-
return {
|
|
5770
|
-
cost: "0 (own credentials)",
|
|
5771
|
-
notes: ["Your provider quota still applies."]
|
|
5772
|
-
};
|
|
5773
|
-
}
|
|
5749
|
+
if (observed) return `${observed.creditsPerCall}/call (observed)*`;
|
|
5774
5750
|
const observedAvg = pricing.observedMax;
|
|
5775
|
-
if (observedAvg?.avgCreditsPerCall && observedAvg.sampleCount)
|
|
5776
|
-
return {
|
|
5777
|
-
cost: `variable, ${observedAvg.avgCreditsPerCall} avg`,
|
|
5778
|
-
notes: []
|
|
5779
|
-
};
|
|
5780
|
-
}
|
|
5751
|
+
if (observedAvg?.avgCreditsPerCall && observedAvg.sampleCount)
|
|
5752
|
+
return `variable, ${observedAvg.avgCreditsPerCall} avg*`;
|
|
5781
5753
|
const display = pricing.displayText ?? "";
|
|
5754
|
+
const footnote = pricing.summary || pricing.details?.length || pricing.observedMax ? "*" : "";
|
|
5782
5755
|
const rate = display.match(
|
|
5783
|
-
/^([\d.,]+) Deepline credits(?: \/ \$[\d.,]+)? per (call|result|page)( \(estimate\))?$/
|
|
5756
|
+
/^([\d.,]+) Deepline credits(?: \/ \$[\d.,]+)? per (call|result|page|basic profile)( \(estimate\))?$/
|
|
5784
5757
|
);
|
|
5785
|
-
if (rate)
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
notes: []
|
|
5789
|
-
};
|
|
5790
|
-
if (pricing.creditsPerUnit === 0 && /^Free\b/.test(display)) {
|
|
5791
|
-
return { cost: "0 (free)", notes: [] };
|
|
5792
|
-
}
|
|
5758
|
+
if (rate) return `${rate[1]}/${rate[2]}${rate[3] ?? ""}${footnote}`;
|
|
5759
|
+
if (pricing.creditsPerUnit === 0 && /^Free\b/.test(display))
|
|
5760
|
+
return `0 (free)${footnote}`;
|
|
5793
5761
|
if (!display || display === "Pricing unavailable.")
|
|
5794
|
-
return {
|
|
5795
|
-
return
|
|
5796
|
-
cost: pricing.unit === "usage" ? "usage-based" : "variable",
|
|
5797
|
-
notes: display ? [clipSummary(display, noteWidth)] : []
|
|
5798
|
-
};
|
|
5762
|
+
return `unknown${footnote}`;
|
|
5763
|
+
return pricing.unit === "usage" ? "usage-based*" : "variable*";
|
|
5799
5764
|
}
|
|
5800
5765
|
var RATE_WINDOW_UNITS = {
|
|
5801
5766
|
1e3: "s",
|
|
@@ -5823,13 +5788,18 @@ function latencyDisplay(ms) {
|
|
|
5823
5788
|
return `${(ms / 6e4).toFixed(1)}min`;
|
|
5824
5789
|
}
|
|
5825
5790
|
function searchRow(item, summaryWidth) {
|
|
5826
|
-
const
|
|
5827
|
-
const
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5791
|
+
const observedCost = item.observedCost;
|
|
5792
|
+
const notes = [];
|
|
5793
|
+
let cost;
|
|
5794
|
+
if (!observedCost) {
|
|
5795
|
+
cost = toolPrice(item);
|
|
5796
|
+
} else if (observedCost.status === "available") {
|
|
5797
|
+
cost = `${observedCost.avgCredits}/${observedCost.unit} (observed)`;
|
|
5798
|
+
} else {
|
|
5799
|
+
cost = observedCost.typical ? `${observedCost.typical.lowCredits}\u2013${observedCost.typical.highCredits}/${observedCost.typical.unit} (typical)` : "no data yet";
|
|
5800
|
+
notes.push(`Cost: ${observedCost.displayText}`);
|
|
5801
|
+
}
|
|
5802
|
+
if (item.connected === false && item.credentialStatus === "managed") {
|
|
5833
5803
|
notes.push("Temporarily unavailable.");
|
|
5834
5804
|
}
|
|
5835
5805
|
return {
|
|
@@ -5876,22 +5846,30 @@ function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
|
5876
5846
|
{ header: "SUMMARY", value: (row) => row.summary }
|
|
5877
5847
|
];
|
|
5878
5848
|
const render = result.render;
|
|
5879
|
-
const
|
|
5849
|
+
const sections = render?.sections ?? [];
|
|
5850
|
+
const resultIndex = sections[0]?.title === "ignored categories" ? 1 : 0;
|
|
5851
|
+
const title = sections[resultIndex]?.title ?? `${result.total ?? rows.length} matches \u2014 showing ${rows.length}`;
|
|
5880
5852
|
const remaining = {
|
|
5881
|
-
sections:
|
|
5853
|
+
sections: sections.filter((_, index) => index !== resultIndex),
|
|
5882
5854
|
actions: render?.actions
|
|
5883
5855
|
};
|
|
5884
5856
|
const followUps = remaining.sections?.length || remaining.actions?.length ? `
|
|
5885
5857
|
${renderCommandEnvelopeText({ render: remaining })}` : "";
|
|
5886
|
-
const
|
|
5887
|
-
|
|
5858
|
+
const missingConnections = /* @__PURE__ */ new Set();
|
|
5859
|
+
for (const item of result.results) {
|
|
5860
|
+
if (item.credentialStatus !== "requires_connection") continue;
|
|
5861
|
+
const provider = typeof item.provider === "string" && item.provider.trim();
|
|
5862
|
+
missingConnections.add(provider || item.id);
|
|
5863
|
+
}
|
|
5864
|
+
const notes = [...missingConnections].map(
|
|
5865
|
+
(provider) => ` ${provider}: Not connected. Connect to use tools that require your credentials.`
|
|
5866
|
+
);
|
|
5867
|
+
notes.push(
|
|
5868
|
+
...rows.flatMap((row) => row.notes.map((note) => ` ${row.id}: ${note}`))
|
|
5888
5869
|
);
|
|
5889
5870
|
const details = [
|
|
5890
5871
|
...notes.length ? ["Notes", ...notes, ""] : [],
|
|
5891
|
-
|
|
5892
|
-
"* Additional pricing conditions apply; see full pricing before execution."
|
|
5893
|
-
] : [],
|
|
5894
|
-
"Full descriptions and pricing: deepline describe <toolId>."
|
|
5872
|
+
rows.some((row) => row.cost.endsWith("*")) ? "* See deepline describe <toolId> for full pricing information." : "Full descriptions and pricing: deepline describe <toolId>."
|
|
5895
5873
|
].join("\n");
|
|
5896
5874
|
return `${title}
|
|
5897
5875
|
|
|
@@ -3,16 +3,13 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
var _chunkSNJNPRIVjs = require('./chunk-SNJNPRIV.js');
|
|
10
|
-
require('./chunk-K3BHKRMS.js');
|
|
11
|
-
require('./chunk-TOGCDNMH.js');
|
|
6
|
+
var _chunkYDXEXVBVjs = require('./chunk-YDXEXVBV.js');
|
|
7
|
+
require('./chunk-JLYDLK6X.js');
|
|
8
|
+
require('./chunk-EUWRKWT4.js');
|
|
12
9
|
require('./chunk-ALJJRZNJ.js');
|
|
13
10
|
require('./chunk-XNYIZMNQ.js');
|
|
14
11
|
require('./chunk-DIAWYWT5.js');
|
|
15
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-LA3UYRVZ.js');
|
|
16
13
|
require('./chunk-OG64RBAC.js');
|
|
17
14
|
|
|
18
15
|
|
|
@@ -5735,67 +5732,35 @@ function clipSummary(value, width) {
|
|
|
5735
5732
|
const characters = Array.from(value.replace(/\s+/gu, " ").trim());
|
|
5736
5733
|
return characters.length <= width ? characters.join("") : `${characters.slice(0, width - 1).join("")}\u2026`;
|
|
5737
5734
|
}
|
|
5738
|
-
function
|
|
5735
|
+
function toolPrice(item) {
|
|
5739
5736
|
const pricing = item.pricing;
|
|
5740
|
-
|
|
5741
|
-
if (
|
|
5742
|
-
|
|
5743
|
-
|
|
5744
|
-
|
|
5745
|
-
|
|
5746
|
-
|
|
5747
|
-
|
|
5748
|
-
};
|
|
5749
|
-
}
|
|
5750
|
-
if (!pricing)
|
|
5751
|
-
return { cost: item.kind === "tool" ? "unknown" : "\u2014", notes: [] };
|
|
5737
|
+
if (!pricing) return item.kind === "tool" ? "unknown" : "\u2014";
|
|
5738
|
+
if (item.billingSource === "own_provider_credentials") return "0 (byok)";
|
|
5739
|
+
if (_optionalChain([pricing, 'access', _2 => _2.benefit, 'optionalAccess', _3 => _3.status]) === "included")
|
|
5740
|
+
return typeof pricing.benefit.remaining === "number" ? `0 (${pricing.benefit.remaining.toLocaleString("en-US")} free left)*` : "0 (included)*";
|
|
5741
|
+
if (_optionalChain([pricing, 'access', _4 => _4.benefit, 'optionalAccess', _5 => _5.status]) === "unavailable")
|
|
5742
|
+
return "inclusion unavailable*";
|
|
5743
|
+
if (_optionalChain([pricing, 'access', _6 => _6.benefit, 'optionalAccess', _7 => _7.status]) === "exhausted" && typeof pricing.creditsPerUnit === "number")
|
|
5744
|
+
return `${pricing.creditsPerUnit}/${_nullishCoalesce(pricing.unit, () => ( "result"))}*`;
|
|
5752
5745
|
const range = pricing.estimatedRange;
|
|
5753
|
-
if (range
|
|
5754
|
-
return {
|
|
5755
|
-
cost: `${range.minCreditsPerUnit}\u2013${range.maxCreditsPerUnit}/${pricing.unit} (estimate)`,
|
|
5756
|
-
notes: [range.scope]
|
|
5757
|
-
};
|
|
5758
|
-
}
|
|
5746
|
+
if (range)
|
|
5747
|
+
return `${range.minCreditsPerUnit}\u2013${range.maxCreditsPerUnit}/${pricing.unit} (estimate)*`;
|
|
5759
5748
|
const observed = pricing.observedReference;
|
|
5760
|
-
if (observed) {
|
|
5761
|
-
return {
|
|
5762
|
-
cost: `${observed.creditsPerCall}/call (observed)`,
|
|
5763
|
-
notes: [
|
|
5764
|
-
`Observed reference: ${observed.sampleSize} call(s), ${observed.observedAt}; ${observed.inputMode} Not a quote.`
|
|
5765
|
-
]
|
|
5766
|
-
};
|
|
5767
|
-
}
|
|
5768
|
-
if (item.billingSource === "own_provider_credentials") {
|
|
5769
|
-
return {
|
|
5770
|
-
cost: "0 (own credentials)",
|
|
5771
|
-
notes: ["Your provider quota still applies."]
|
|
5772
|
-
};
|
|
5773
|
-
}
|
|
5749
|
+
if (observed) return `${observed.creditsPerCall}/call (observed)*`;
|
|
5774
5750
|
const observedAvg = pricing.observedMax;
|
|
5775
|
-
if (_optionalChain([observedAvg, 'optionalAccess',
|
|
5776
|
-
return {
|
|
5777
|
-
cost: `variable, ${observedAvg.avgCreditsPerCall} avg`,
|
|
5778
|
-
notes: []
|
|
5779
|
-
};
|
|
5780
|
-
}
|
|
5751
|
+
if (_optionalChain([observedAvg, 'optionalAccess', _8 => _8.avgCreditsPerCall]) && observedAvg.sampleCount)
|
|
5752
|
+
return `variable, ${observedAvg.avgCreditsPerCall} avg*`;
|
|
5781
5753
|
const display = _nullishCoalesce(pricing.displayText, () => ( ""));
|
|
5754
|
+
const footnote = pricing.summary || _optionalChain([pricing, 'access', _9 => _9.details, 'optionalAccess', _10 => _10.length]) || pricing.observedMax ? "*" : "";
|
|
5782
5755
|
const rate = display.match(
|
|
5783
|
-
/^([\d.,]+) Deepline credits(?: \/ \$[\d.,]+)? per (call|result|page)( \(estimate\))?$/
|
|
5756
|
+
/^([\d.,]+) Deepline credits(?: \/ \$[\d.,]+)? per (call|result|page|basic profile)( \(estimate\))?$/
|
|
5784
5757
|
);
|
|
5785
|
-
if (rate)
|
|
5786
|
-
|
|
5787
|
-
|
|
5788
|
-
notes: []
|
|
5789
|
-
};
|
|
5790
|
-
if (pricing.creditsPerUnit === 0 && /^Free\b/.test(display)) {
|
|
5791
|
-
return { cost: "0 (free)", notes: [] };
|
|
5792
|
-
}
|
|
5758
|
+
if (rate) return `${rate[1]}/${rate[2]}${_nullishCoalesce(rate[3], () => ( ""))}${footnote}`;
|
|
5759
|
+
if (pricing.creditsPerUnit === 0 && /^Free\b/.test(display))
|
|
5760
|
+
return `0 (free)${footnote}`;
|
|
5793
5761
|
if (!display || display === "Pricing unavailable.")
|
|
5794
|
-
return {
|
|
5795
|
-
return
|
|
5796
|
-
cost: pricing.unit === "usage" ? "usage-based" : "variable",
|
|
5797
|
-
notes: display ? [clipSummary(display, noteWidth)] : []
|
|
5798
|
-
};
|
|
5762
|
+
return `unknown${footnote}`;
|
|
5763
|
+
return pricing.unit === "usage" ? "usage-based*" : "variable*";
|
|
5799
5764
|
}
|
|
5800
5765
|
var RATE_WINDOW_UNITS = {
|
|
5801
5766
|
1e3: "s",
|
|
@@ -5804,7 +5769,7 @@ var RATE_WINDOW_UNITS = {
|
|
|
5804
5769
|
};
|
|
5805
5770
|
function rateLimitDisplay(item) {
|
|
5806
5771
|
const limits = (Array.isArray(item.rateLimits) ? item.rateLimits : []).filter(
|
|
5807
|
-
(limit) => typeof _optionalChain([limit, 'optionalAccess',
|
|
5772
|
+
(limit) => typeof _optionalChain([limit, 'optionalAccess', _11 => _11.requestsPerWindow]) === "number" && typeof _optionalChain([limit, 'optionalAccess', _12 => _12.windowMs]) === "number" && limit.windowMs > 0
|
|
5808
5773
|
);
|
|
5809
5774
|
const [tightest] = limits.sort(
|
|
5810
5775
|
(a, b) => a.requestsPerWindow / a.windowMs - b.requestsPerWindow / b.windowMs
|
|
@@ -5823,13 +5788,18 @@ function latencyDisplay(ms) {
|
|
|
5823
5788
|
return `${(ms / 6e4).toFixed(1)}min`;
|
|
5824
5789
|
}
|
|
5825
5790
|
function searchRow(item, summaryWidth) {
|
|
5826
|
-
const
|
|
5827
|
-
const
|
|
5828
|
-
|
|
5829
|
-
|
|
5830
|
-
|
|
5831
|
-
|
|
5832
|
-
|
|
5791
|
+
const observedCost = item.observedCost;
|
|
5792
|
+
const notes = [];
|
|
5793
|
+
let cost;
|
|
5794
|
+
if (!observedCost) {
|
|
5795
|
+
cost = toolPrice(item);
|
|
5796
|
+
} else if (observedCost.status === "available") {
|
|
5797
|
+
cost = `${observedCost.avgCredits}/${observedCost.unit} (observed)`;
|
|
5798
|
+
} else {
|
|
5799
|
+
cost = observedCost.typical ? `${observedCost.typical.lowCredits}\u2013${observedCost.typical.highCredits}/${observedCost.typical.unit} (typical)` : "no data yet";
|
|
5800
|
+
notes.push(`Cost: ${observedCost.displayText}`);
|
|
5801
|
+
}
|
|
5802
|
+
if (item.connected === false && item.credentialStatus === "managed") {
|
|
5833
5803
|
notes.push("Temporarily unavailable.");
|
|
5834
5804
|
}
|
|
5835
5805
|
return {
|
|
@@ -5857,7 +5827,7 @@ var OPTIONAL_COLUMNS = [
|
|
|
5857
5827
|
];
|
|
5858
5828
|
function renderSearchResults(result, summaryWidth = _chunkD3BCSAN7js.DEFAULT_SUMMARY_WIDTH) {
|
|
5859
5829
|
if (result.results.length === 0)
|
|
5860
|
-
return
|
|
5830
|
+
return _chunkYDXEXVBVjs.renderCommandEnvelopeText.call(void 0, result);
|
|
5861
5831
|
const rows = result.results.map((item) => searchRow(item, summaryWidth));
|
|
5862
5832
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
5863
5833
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -5876,22 +5846,30 @@ function renderSearchResults(result, summaryWidth = _chunkD3BCSAN7js.DEFAULT_SUM
|
|
|
5876
5846
|
{ header: "SUMMARY", value: (row) => row.summary }
|
|
5877
5847
|
];
|
|
5878
5848
|
const render = result.render;
|
|
5879
|
-
const
|
|
5849
|
+
const sections = _nullishCoalesce(_optionalChain([render, 'optionalAccess', _13 => _13.sections]), () => ( []));
|
|
5850
|
+
const resultIndex = _optionalChain([sections, 'access', _14 => _14[0], 'optionalAccess', _15 => _15.title]) === "ignored categories" ? 1 : 0;
|
|
5851
|
+
const title = _nullishCoalesce(_optionalChain([sections, 'access', _16 => _16[resultIndex], 'optionalAccess', _17 => _17.title]), () => ( `${_nullishCoalesce(result.total, () => ( rows.length))} matches \u2014 showing ${rows.length}`));
|
|
5880
5852
|
const remaining = {
|
|
5881
|
-
sections:
|
|
5882
|
-
actions: _optionalChain([render, 'optionalAccess',
|
|
5853
|
+
sections: sections.filter((_, index) => index !== resultIndex),
|
|
5854
|
+
actions: _optionalChain([render, 'optionalAccess', _18 => _18.actions])
|
|
5883
5855
|
};
|
|
5884
|
-
const followUps = _optionalChain([remaining, 'access',
|
|
5885
|
-
${
|
|
5886
|
-
const
|
|
5887
|
-
|
|
5856
|
+
const followUps = _optionalChain([remaining, 'access', _19 => _19.sections, 'optionalAccess', _20 => _20.length]) || _optionalChain([remaining, 'access', _21 => _21.actions, 'optionalAccess', _22 => _22.length]) ? `
|
|
5857
|
+
${_chunkYDXEXVBVjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
5858
|
+
const missingConnections = /* @__PURE__ */ new Set();
|
|
5859
|
+
for (const item of result.results) {
|
|
5860
|
+
if (item.credentialStatus !== "requires_connection") continue;
|
|
5861
|
+
const provider = typeof item.provider === "string" && item.provider.trim();
|
|
5862
|
+
missingConnections.add(provider || item.id);
|
|
5863
|
+
}
|
|
5864
|
+
const notes = [...missingConnections].map(
|
|
5865
|
+
(provider) => ` ${provider}: Not connected. Connect to use tools that require your credentials.`
|
|
5866
|
+
);
|
|
5867
|
+
notes.push(
|
|
5868
|
+
...rows.flatMap((row) => row.notes.map((note) => ` ${row.id}: ${note}`))
|
|
5888
5869
|
);
|
|
5889
5870
|
const details = [
|
|
5890
5871
|
...notes.length ? ["Notes", ...notes, ""] : [],
|
|
5891
|
-
|
|
5892
|
-
"* Additional pricing conditions apply; see full pricing before execution."
|
|
5893
|
-
] : [],
|
|
5894
|
-
"Full descriptions and pricing: deepline describe <toolId>."
|
|
5872
|
+
rows.some((row) => row.cost.endsWith("*")) ? "* See deepline describe <toolId> for full pricing information." : "Full descriptions and pricing: deepline describe <toolId>."
|
|
5895
5873
|
].join("\n");
|
|
5896
5874
|
return `${title}
|
|
5897
5875
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-YWOQYYYS.mjs";
|
|
4
|
+
import "./chunk-HIVRCTDR.mjs";
|
|
5
5
|
import "./chunk-L2VKAASU.mjs";
|
|
6
|
-
import "./chunk-
|
|
6
|
+
import "./chunk-N4TR6QRI.mjs";
|
|
7
7
|
import "./chunk-S3A4IXBQ.mjs";
|
|
8
|
-
import "./chunk-
|
|
8
|
+
import "./chunk-BMCRTI6Z.mjs";
|
|
9
9
|
import {
|
|
10
10
|
getAuthedHttpClient,
|
|
11
11
|
printCommandEnvelope
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-2MVIS2UI.mjs";
|
|
13
|
+
import "./chunk-W5CHE5Q2.mjs";
|
|
14
|
+
import "./chunk-3MJSWVQ2.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-OFBLT2LQ.mjs";
|
|
19
19
|
import "./chunk-WZYKRD7T.mjs";
|
|
20
20
|
import "./chunk-KRD6H754.mjs";
|
|
21
21
|
|
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkXMKUJ44Zjs = require('./chunk-XMKUJ44Z.js');
|
|
4
|
+
require('./chunk-UOANF3DR.js');
|
|
5
5
|
require('./chunk-E4CABWXL.js');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-RNSHCJME.js');
|
|
7
7
|
require('./chunk-NMU3VR5U.js');
|
|
8
|
-
require('./chunk-
|
|
8
|
+
require('./chunk-WSGXBROE.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
13
|
-
require('./chunk-
|
|
14
|
-
require('./chunk-
|
|
12
|
+
var _chunkYDXEXVBVjs = require('./chunk-YDXEXVBV.js');
|
|
13
|
+
require('./chunk-JLYDLK6X.js');
|
|
14
|
+
require('./chunk-EUWRKWT4.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-LA3UYRVZ.js');
|
|
19
19
|
require('./chunk-OG64RBAC.js');
|
|
20
20
|
require('./chunk-COGTRVWW.js');
|
|
21
21
|
|
|
@@ -207,9 +207,9 @@ function preventShellHistoryLeak(forbidden) {
|
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
async function handleList(options) {
|
|
210
|
-
const client = new (0,
|
|
210
|
+
const client = new (0, _chunkXMKUJ44Zjs.DeeplineClient)();
|
|
211
211
|
const secrets = await client.listSecrets();
|
|
212
|
-
|
|
212
|
+
_chunkYDXEXVBVjs.printCommandEnvelope.call(void 0,
|
|
213
213
|
{
|
|
214
214
|
secrets,
|
|
215
215
|
count: secrets.length,
|
|
@@ -227,14 +227,14 @@ async function handleList(options) {
|
|
|
227
227
|
}
|
|
228
228
|
async function handleCheck(nameInput, options) {
|
|
229
229
|
const name = normalizeSecretName(nameInput);
|
|
230
|
-
const client = new (0,
|
|
230
|
+
const client = new (0, _chunkXMKUJ44Zjs.DeeplineClient)();
|
|
231
231
|
const playName = options.play === void 0 ? void 0 : normalizePlaySelector(options.play);
|
|
232
232
|
const check = playName !== void 0 ? await client.inspectSecret(name, { playName }) : null;
|
|
233
233
|
const secret = check ? check.secret : await client.checkSecret(name);
|
|
234
234
|
const ok = check ? check.ok : Boolean(secret);
|
|
235
235
|
const quotedPlay = `'${(_nullishCoalesce(options.play, () => ( "PLAY"))).replace(/'/g, `'"'"'`)}'`;
|
|
236
236
|
const scopeHint = check ? _optionalChain([secret, 'optionalAccess', _3 => _3.scope]) === "play" ? check.reason === "disabled" ? `The Play-scoped secret is disabled and no active org fallback is available. Restore it with: deepline secrets set ${name} --scope play --play ${quotedPlay}` : `The active Play-scoped secret takes precedence over the org secret.${ok ? "" : ` Restore it with: deepline secrets set ${name} --scope play --play ${quotedPlay}`}` : `No Play override.${ok ? " The org secret is available." : ` Set or rotate the org secret with: deepline secrets set ${name}`}` : `Metadata only. Verify effective scope and active version with: deepline secrets check ${name} --play <play-name>`;
|
|
237
|
-
|
|
237
|
+
_chunkYDXEXVBVjs.printCommandEnvelope.call(void 0,
|
|
238
238
|
{
|
|
239
239
|
ok,
|
|
240
240
|
name,
|
|
@@ -262,7 +262,7 @@ async function handleSet(nameInput, forbidden, options) {
|
|
|
262
262
|
const name = normalizeSecretName(nameInput);
|
|
263
263
|
const { scope, playName } = resolveSecretWriteScope(options);
|
|
264
264
|
const value = await readSecretValueFromOptions(options);
|
|
265
|
-
const { http } =
|
|
265
|
+
const { http } = _chunkYDXEXVBVjs.getAuthedHttpClient.call(void 0, );
|
|
266
266
|
const response = await http.post(
|
|
267
267
|
"/api/v2/secrets",
|
|
268
268
|
{
|
|
@@ -274,7 +274,7 @@ async function handleSet(nameInput, forbidden, options) {
|
|
|
274
274
|
}
|
|
275
275
|
);
|
|
276
276
|
const secret = response.secret;
|
|
277
|
-
|
|
277
|
+
_chunkYDXEXVBVjs.printCommandEnvelope.call(void 0,
|
|
278
278
|
{
|
|
279
279
|
ok: true,
|
|
280
280
|
secret,
|
|
@@ -302,7 +302,7 @@ async function handleNote(secretId, noteInput, options) {
|
|
|
302
302
|
}
|
|
303
303
|
const note = options.clear ? "" : noteInput;
|
|
304
304
|
if (options.dryRun) {
|
|
305
|
-
|
|
305
|
+
_chunkYDXEXVBVjs.printCommandEnvelope.call(void 0,
|
|
306
306
|
{
|
|
307
307
|
ok: true,
|
|
308
308
|
dryRun: true,
|
|
@@ -323,9 +323,9 @@ async function handleNote(secretId, noteInput, options) {
|
|
|
323
323
|
);
|
|
324
324
|
return;
|
|
325
325
|
}
|
|
326
|
-
const client = new (0,
|
|
326
|
+
const client = new (0, _chunkXMKUJ44Zjs.DeeplineClient)();
|
|
327
327
|
const secret = await client.updateSecretNote(secretId, note);
|
|
328
|
-
|
|
328
|
+
_chunkYDXEXVBVjs.printCommandEnvelope.call(void 0,
|
|
329
329
|
{
|
|
330
330
|
ok: true,
|
|
331
331
|
secret,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
5
|
-
require('./chunk-
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
4
|
+
var _chunkOVZOMSH2js = require('./chunk-OVZOMSH2.js');
|
|
5
|
+
require('./chunk-YDXEXVBV.js');
|
|
6
|
+
require('./chunk-JLYDLK6X.js');
|
|
7
|
+
require('./chunk-EUWRKWT4.js');
|
|
8
8
|
require('./chunk-ALJJRZNJ.js');
|
|
9
9
|
require('./chunk-XNYIZMNQ.js');
|
|
10
10
|
require('./chunk-DIAWYWT5.js');
|
|
11
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-LA3UYRVZ.js');
|
|
12
12
|
require('./chunk-OG64RBAC.js');
|
|
13
13
|
require('./chunk-COGTRVWW.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
exports.registerSessionSendRenderCommands =
|
|
17
|
+
exports.registerSessionSendRenderCommands = _chunkOVZOMSH2js.registerSessionSendRenderCommands; exports.registerSessionsCommands = _chunkOVZOMSH2js.registerSessionsCommands;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
registerSessionSendRenderCommands,
|
|
3
3
|
registerSessionsCommands
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
6
|
-
import "./chunk-
|
|
7
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-MP5QY4A2.mjs";
|
|
5
|
+
import "./chunk-2MVIS2UI.mjs";
|
|
6
|
+
import "./chunk-W5CHE5Q2.mjs";
|
|
7
|
+
import "./chunk-3MJSWVQ2.mjs";
|
|
8
8
|
import "./chunk-4QF2K7TM.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
10
|
import "./chunk-HBL4PM5Q.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-OFBLT2LQ.mjs";
|
|
12
12
|
import "./chunk-WZYKRD7T.mjs";
|
|
13
13
|
import "./chunk-KRD6H754.mjs";
|
|
14
14
|
export {
|
|
@@ -1,33 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YWOQYYYS.mjs";
|
|
4
4
|
import {
|
|
5
5
|
PRODUCT_NOTIFICATION_EVENT_CATALOG,
|
|
6
6
|
resolveLegacySlackNotification
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HIVRCTDR.mjs";
|
|
8
8
|
import "./chunk-L2VKAASU.mjs";
|
|
9
|
-
import "./chunk-
|
|
9
|
+
import "./chunk-N4TR6QRI.mjs";
|
|
10
10
|
import "./chunk-S3A4IXBQ.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-BMCRTI6Z.mjs";
|
|
12
12
|
import {
|
|
13
13
|
readCliUpdatePreferences,
|
|
14
14
|
runUpdateCommand,
|
|
15
15
|
setCliAutoUpdateEnabled
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
16
|
+
} from "./chunk-7ZYSXSJJ.mjs";
|
|
17
|
+
import "./chunk-54QXWK3C.mjs";
|
|
18
|
+
import "./chunk-YL2CCF6T.mjs";
|
|
19
|
+
import "./chunk-NZXB27TP.mjs";
|
|
20
|
+
import "./chunk-NKLM4J4X.mjs";
|
|
21
21
|
import {
|
|
22
22
|
openInBrowser,
|
|
23
23
|
printCommandEnvelope
|
|
24
|
-
} from "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
24
|
+
} from "./chunk-2MVIS2UI.mjs";
|
|
25
|
+
import "./chunk-W5CHE5Q2.mjs";
|
|
26
|
+
import "./chunk-3MJSWVQ2.mjs";
|
|
27
27
|
import "./chunk-4QF2K7TM.mjs";
|
|
28
28
|
import "./chunk-DLIRSHV6.mjs";
|
|
29
29
|
import "./chunk-HBL4PM5Q.mjs";
|
|
30
|
-
import "./chunk-
|
|
30
|
+
import "./chunk-OFBLT2LQ.mjs";
|
|
31
31
|
import "./chunk-WZYKRD7T.mjs";
|
|
32
32
|
import "./chunk-5JPKRDFC.mjs";
|
|
33
33
|
import "./chunk-KRD6H754.mjs";
|