deepline 0.3.564 → 0.3.565
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 +51 -0
- package/dist/bundling-sources/sdk/src/connector-sync.ts +241 -0
- package/dist/bundling-sources/sdk/src/index.ts +10 -0
- package/dist/bundling-sources/sdk/src/integrations.ts +7 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/cli/auth-AN2KCWG2.js +44 -0
- package/dist/cli/{auth-PXZ7JZUT.mjs → auth-YKIUCQ2Q.mjs} +5 -5
- package/dist/cli/{billing-AMYFMDZL.mjs → billing-HK23QHAA.mjs} +9 -9
- package/dist/cli/{billing-OY2ZN5XJ.js → billing-NIGAUQJF.js} +102 -102
- package/dist/cli/{chunk-ZOITMXVO.mjs → chunk-2US3VJXX.mjs} +1 -1
- package/dist/cli/{chunk-ZJ23RI3B.mjs → chunk-4ENCU2BI.mjs} +2 -2
- package/dist/cli/{chunk-4JQ6MHE7.js → chunk-4VKDPTHF.js} +4 -4
- package/dist/cli/{chunk-KBGP4CS5.js → chunk-5HV2CNXA.js} +10 -10
- package/dist/cli/{chunk-WDXXHTIF.js → chunk-6HCJQ23O.js} +23 -23
- package/dist/cli/{chunk-OCLHNDVN.mjs → chunk-A3EI3A3Q.mjs} +5 -5
- package/dist/cli/{chunk-RK5EKJAT.mjs → chunk-AAOXS3XM.mjs} +152 -2
- package/dist/cli/{chunk-56P2BEVI.mjs → chunk-AH2CBDQJ.mjs} +2 -2
- package/dist/cli/{chunk-DHZOC2QX.mjs → chunk-B2FQZ7P4.mjs} +2 -2
- package/dist/cli/{chunk-GWTFA5GD.js → chunk-B4FBMREO.js} +3 -3
- package/dist/cli/{chunk-YIDXJD5L.mjs → chunk-BCEXSQPK.mjs} +1 -1
- package/dist/cli/{chunk-R5555CB5.js → chunk-BDNVUPDX.js} +2 -2
- package/dist/cli/{search-output-AXVUC3TF.js → chunk-C5IA2OYE.js} +2 -199
- package/dist/cli/{chunk-XVYU3J2J.js → chunk-E73BRM5N.js} +13 -13
- package/dist/cli/{chunk-V2GHSOQB.js → chunk-EPQIA32E.js} +100 -100
- package/dist/cli/{chunk-QQTZ6KG4.mjs → chunk-EXOC3TLA.mjs} +4 -4
- package/dist/cli/{chunk-MY45K7SA.mjs → chunk-F4ZLUDKW.mjs} +5 -5
- package/dist/cli/{chunk-YMQOTCLU.js → chunk-FEWBYUUF.js} +2 -2
- package/dist/cli/{chunk-2SKEXMFV.js → chunk-FWH6QYTE.js} +5 -5
- package/dist/cli/{chunk-IW3N7ARM.js → chunk-FXRSHBRP.js} +159 -9
- package/dist/cli/{chunk-4SV43Z64.js → chunk-GE62FFN6.js} +3 -3
- package/dist/cli/{chunk-2ISK6CUL.mjs → chunk-GTX2RMQG.mjs} +11 -11
- package/dist/cli/{chunk-RBTOZO5M.js → chunk-H3NH5RJ6.js} +41 -41
- package/dist/cli/{chunk-TK6YKQ45.mjs → chunk-H4LHB6ES.mjs} +1 -1
- package/dist/cli/{chunk-UWX4TTJU.mjs → chunk-IFZA4IGI.mjs} +2 -2
- package/dist/cli/{chunk-XWDCKDUP.js → chunk-IKA37N6Y.js} +26 -26
- package/dist/cli/{chunk-WSEMXB7X.js → chunk-J5QAOURJ.js} +20 -20
- package/dist/cli/{chunk-4NNNJLAZ.mjs → chunk-JLXLCD6F.mjs} +2 -2
- package/dist/cli/{chunk-CXN574UU.mjs → chunk-K6RPKBD7.mjs} +1 -1
- package/dist/cli/{chunk-VACBPVIR.mjs → chunk-KOMEYB7H.mjs} +104 -0
- package/dist/cli/{chunk-655PNNU7.mjs → chunk-LHL6VWJE.mjs} +1 -1
- package/dist/cli/{chunk-TVF7XVPN.mjs → chunk-LKVWMLWI.mjs} +1 -1
- package/dist/cli/{chunk-QHBYLHOG.mjs → chunk-LOV5JGWO.mjs} +2 -2
- package/dist/cli/{search-output-N44NPUN6.mjs → chunk-MI5Q5FOD.mjs} +1 -198
- package/dist/cli/{chunk-7NSHH3NB.js → chunk-NH3LVGVR.js} +5 -5
- package/dist/cli/{chunk-DTTMFSNG.mjs → chunk-NOSGGCJ3.mjs} +1 -1
- package/dist/cli/{chunk-5CNHEUGJ.js → chunk-OEVCKW2M.js} +104 -0
- package/dist/cli/{chunk-HPXN5QZZ.js → chunk-OIDETCX2.js} +20 -20
- package/dist/cli/{chunk-Y2FZJRRM.js → chunk-P6BVT2OW.js} +2 -2
- package/dist/cli/{chunk-I4XWKMGR.js → chunk-PQEWFVJ3.js} +15 -15
- package/dist/cli/{chunk-DYTTZHYX.mjs → chunk-RULYYQB4.mjs} +5 -5
- package/dist/cli/{chunk-7DU4VODD.mjs → chunk-SEWLXJHM.mjs} +2 -2
- package/dist/cli/{chunk-RKG2E2JF.js → chunk-SL3IRGAW.js} +9 -9
- package/dist/cli/{chunk-I2GVGCMM.js → chunk-TCJZQRX6.js} +12 -12
- package/dist/cli/{chunk-WXB7PU3O.mjs → chunk-U7F4ODVQ.mjs} +1 -1
- package/dist/cli/{chunk-JVSHMUGE.mjs → chunk-UTQ6LQWG.mjs} +3 -3
- package/dist/cli/{chunk-KR76WIOX.js → chunk-UWMK5DLS.js} +1 -1
- package/dist/cli/{chunk-HEWVHSNN.mjs → chunk-V2TC2ARE.mjs} +4 -4
- package/dist/cli/{chunk-BRQVKZWJ.js → chunk-WPVJV23H.js} +7 -7
- package/dist/cli/{chunk-V2SNCH5X.js → chunk-XNOUOO6G.js} +6 -6
- package/dist/cli/{chunk-RW6PFYT5.mjs → chunk-YD5BBYS2.mjs} +5 -5
- package/dist/cli/{chunk-2PMHEUED.mjs → chunk-YGVLCJNY.mjs} +3 -3
- package/dist/cli/{chunk-XP6ALUAZ.mjs → chunk-YIKEVZUQ.mjs} +2 -2
- package/dist/cli/{chunk-HGGIWRA5.js → chunk-ZEKRYFMN.js} +48 -48
- package/dist/cli/{chunk-ZZW5A4HZ.js → chunk-ZIKVPGYC.js} +5 -5
- package/dist/cli/{chunk-HXZSXPT2.js → chunk-ZTHMJ4SK.js} +53 -53
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/concurrent-runs-help-SKAAESKY.js +22 -0
- package/dist/cli/{concurrent-runs-help-5GPKNDAY.mjs → concurrent-runs-help-WD2EUKO7.mjs} +6 -6
- package/dist/cli/{csv-ARPN6J6K.mjs → csv-RM3FOTS5.mjs} +4 -4
- package/dist/cli/{csv-X3FHV56H.js → csv-UI63ZOMD.js} +13 -13
- package/dist/cli/{db-2HWSS3MA.mjs → db-RIJBJCT7.mjs} +6 -6
- package/dist/cli/{db-WINZJRWC.js → db-V5SWE3WN.js} +27 -27
- package/dist/cli/{describe-333JCD22.mjs → describe-HZC4GOLO.mjs} +18 -18
- package/dist/cli/describe-RRWLYUQS.js +50 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-UHZHVQLO.js → executions-2Q23JJSI.js} +8 -8
- package/dist/cli/{executions-JYYXIRE6.mjs → executions-XRH267DY.mjs} +6 -6
- package/dist/cli/{feedback-6G4SDI7M.js → feedback-BEHH4KGB.js} +14 -14
- package/dist/cli/{feedback-KNGQ4VMG.mjs → feedback-Y5MWMTQ2.mjs} +6 -6
- package/dist/cli/{git-DREIWOYN.mjs → git-644DZQKA.mjs} +5 -5
- package/dist/cli/git-OEHB7UQH.js +26 -0
- package/dist/cli/index.js +147 -147
- package/dist/cli/index.mjs +46 -46
- package/dist/cli/integrations-ILXWYGTO.js +284 -0
- package/dist/cli/integrations-PMXZ7V6Y.mjs +284 -0
- package/dist/cli/{legacy-noops-7LZ2HNLB.js → legacy-noops-USLUHQWW.js} +9 -9
- package/dist/cli/{legacy-noops-FSL5Y4TO.mjs → legacy-noops-YUG2HVGQ.mjs} +6 -6
- package/dist/cli/{mcp-TAVIRUQC.js → mcp-DFLBEEWG.js} +24 -24
- package/dist/cli/{mcp-WDJV3OCV.mjs → mcp-X63UPZS7.mjs} +4 -4
- package/dist/cli/{monitors-HGT2RVR5.js → monitors-POG6YUZ4.js} +100 -100
- package/dist/cli/{monitors-L5FSJSVD.mjs → monitors-QGI7QH4K.mjs} +7 -7
- package/dist/cli/{org-4LNYSIEM.js → org-E3NIDN32.js} +121 -121
- package/dist/cli/{org-J5DJCLTU.mjs → org-VAJL4BCS.mjs} +6 -6
- package/dist/cli/{outcomes-5DZ5EZ5Q.mjs → outcomes-FOE35FHM.mjs} +6 -6
- package/dist/cli/{outcomes-4QO264GU.js → outcomes-SCQFFBXS.js} +14 -14
- package/dist/cli/{play-SETNQCBB.mjs → play-7N4Z2LEH.mjs} +19 -19
- package/dist/cli/{play-FZY7NZAM.js → play-BGK7PDXO.js} +324 -324
- package/dist/cli/{providers-PIS6IQVA.mjs → providers-KDI3B22S.mjs} +6 -6
- package/dist/cli/{providers-754HLYAW.js → providers-OK2ES375.js} +9 -9
- package/dist/cli/{quickstart-2TIUCHQF.js → quickstart-HOHFIFVW.js} +6 -6
- package/dist/cli/{quickstart-5P4NYWZK.mjs → quickstart-LHJF7YCP.mjs} +4 -4
- package/dist/cli/{run-WAN4VZMS.mjs → run-BQIDPU5J.mjs} +23 -23
- package/dist/cli/{run-OQNK7G3I.js → run-K45RGJP4.js} +44 -44
- package/dist/cli/{search-PTX7IMBB.mjs → search-PD3OAWO3.mjs} +7 -7
- package/dist/cli/search-QCFLRPCX.js +32 -0
- package/dist/cli/search-output-FVT2FPUN.mjs +205 -0
- package/dist/cli/search-output-P2JVWNCK.js +205 -0
- package/dist/cli/{secrets-ZODIPUMI.mjs → secrets-4MCBJUGL.mjs} +6 -6
- package/dist/cli/{secrets-32WRPZB2.js → secrets-LDCXYN33.js} +15 -15
- package/dist/cli/{sessions-JRIS3JMT.mjs → sessions-36VI33IL.mjs} +6 -6
- package/dist/cli/sessions-WTQ6QNAU.js +23 -0
- package/dist/cli/{settings-YIZUG6T3.js → settings-3J4FUQPF.js} +85 -85
- package/dist/cli/{settings-OI3OHCD5.mjs → settings-D6L7S4ZC.mjs} +12 -12
- package/dist/cli/{setup-AF3I4UPE.js → setup-L6VH3OR4.js} +49 -49
- package/dist/cli/{setup-4QQ33WUA.mjs → setup-PBQ773AV.mjs} +9 -9
- package/dist/cli/skills-PENWR7KI.js +37 -0
- package/dist/cli/{skills-EITRSX56.mjs → skills-ZRTREJY2.mjs} +7 -7
- package/dist/cli/{tools-CMOLGIDR.mjs → tools-OAHCQUQB.mjs} +17 -17
- package/dist/cli/tools-TIN7MRLX.js +57 -0
- package/dist/cli/update-4TIZS6WV.js +37 -0
- package/dist/cli/{update-PGEARBAI.mjs → update-ZM4LSW5L.mjs} +9 -9
- package/dist/cli/{views-KFLXOZ5N.js → views-F4MEME43.js} +21 -21
- package/dist/cli/{views-2H77STII.mjs → views-W6PVUSE3.mjs} +6 -6
- package/dist/cli/{workflow-HCEMVZAZ.js → workflow-37V7F5I4.js} +17 -17
- package/dist/cli/{workflow-XWMAYWVX.mjs → workflow-7E2QYAIY.mjs} +7 -7
- package/dist/{client-CnphYDTe.d.mts → client-B5cSKEi4.d.mts} +1 -1
- package/dist/{client-core-DQOTt3yV.d.mts → client-core-BP19BoBb.d.mts} +107 -2
- package/dist/{client-core-Yad6-K7-.d.ts → client-core-Deqov12F.d.ts} +107 -2
- package/dist/{client-BSxuaObS.d.ts → client-vUZGmXT9.d.ts} +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +121 -118
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-645UXOAZ.js +0 -44
- package/dist/cli/concurrent-runs-help-QKZXIMSW.js +0 -22
- package/dist/cli/describe-6TJYCPFQ.js +0 -50
- package/dist/cli/git-TQNP4MAD.js +0 -26
- package/dist/cli/integrations-UY3T3ZHA.mjs +0 -129
- package/dist/cli/integrations-V6EO6JAM.js +0 -129
- package/dist/cli/search-VXKJDQA5.js +0 -32
- package/dist/cli/sessions-MW3SUF7R.js +0 -23
- package/dist/cli/skills-ECMGSQM4.js +0 -37
- package/dist/cli/tools-QTTCIEQM.js +0 -57
- package/dist/cli/update-N3YQGALD.js +0 -37
|
@@ -1,23 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
|
-
|
|
3
|
-
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var _chunkLHPYCJNLjs = require('./chunk-LHPYCJNL.js');
|
|
7
|
-
require('./chunk-BVXIGOBZ.js');
|
|
8
|
-
require('./chunk-PMH4GLMD.js');
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var _chunkWSEMXB7Xjs = require('./chunk-WSEMXB7X.js');
|
|
12
|
-
require('./chunk-4SV43Z64.js');
|
|
13
|
-
require('./chunk-4JQ6MHE7.js');
|
|
14
|
-
require('./chunk-6VLFQZK6.js');
|
|
15
|
-
require('./chunk-XNYIZMNQ.js');
|
|
16
|
-
require('./chunk-LFQJW4S2.js');
|
|
17
|
-
require('./chunk-CFJFUVX2.js');
|
|
18
|
-
require('./chunk-KR76WIOX.js');
|
|
19
|
-
require('./chunk-OG64RBAC.js');
|
|
20
|
-
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
21
2
|
|
|
22
3
|
|
|
23
4
|
var _chunkCOGTRVWWjs = require('./chunk-COGTRVWW.js');
|
|
@@ -5733,184 +5714,6 @@ function formatTextTable(rows, columns) {
|
|
|
5733
5714
|
}).split("\n").map((line) => line.trimEnd()).join("\n").trimEnd();
|
|
5734
5715
|
}
|
|
5735
5716
|
|
|
5736
|
-
// src/cli/search-output.ts
|
|
5737
|
-
function clipSummary(value, width) {
|
|
5738
|
-
const characters = Array.from(value.replace(/\s+/gu, " ").trim());
|
|
5739
|
-
return characters.length <= width ? characters.join("") : `${characters.slice(0, width - 1).join("")}\u2026`;
|
|
5740
|
-
}
|
|
5741
|
-
function toolPrice(item) {
|
|
5742
|
-
const pricing = item.pricing;
|
|
5743
|
-
if (!pricing) return item.kind === "tool" ? "unknown" : "\u2014";
|
|
5744
|
-
if (item.billingSource === "own_provider_credentials") return "0 (byok)";
|
|
5745
|
-
if (_optionalChain([pricing, 'access', _2 => _2.benefit, 'optionalAccess', _3 => _3.status]) === "included")
|
|
5746
|
-
return typeof pricing.benefit.remaining === "number" ? `0 (${pricing.benefit.remaining.toLocaleString("en-US")} free left)*` : "0 (included)*";
|
|
5747
|
-
if (_optionalChain([pricing, 'access', _4 => _4.benefit, 'optionalAccess', _5 => _5.status]) === "unavailable")
|
|
5748
|
-
return "inclusion unavailable*";
|
|
5749
|
-
if (_optionalChain([pricing, 'access', _6 => _6.benefit, 'optionalAccess', _7 => _7.status]) === "exhausted" && typeof pricing.creditsPerUnit === "number")
|
|
5750
|
-
return `${pricing.creditsPerUnit}/${_nullishCoalesce(pricing.unit, () => ( "result"))}*`;
|
|
5751
|
-
const range = pricing.estimatedRange;
|
|
5752
|
-
if (range)
|
|
5753
|
-
return `${range.minCreditsPerUnit}\u2013${range.maxCreditsPerUnit}/${pricing.unit} (estimate)*`;
|
|
5754
|
-
const observed = pricing.observedReference;
|
|
5755
|
-
if (observed) return `${observed.creditsPerCall}/call (observed)*`;
|
|
5756
|
-
const observedAvg = pricing.observedMax;
|
|
5757
|
-
if (_optionalChain([observedAvg, 'optionalAccess', _8 => _8.avgCreditsPerCall]) && observedAvg.sampleCount)
|
|
5758
|
-
return `variable, ${observedAvg.avgCreditsPerCall} avg*`;
|
|
5759
|
-
const display = _nullishCoalesce(pricing.displayText, () => ( ""));
|
|
5760
|
-
const footnote = pricing.summary || _optionalChain([pricing, 'access', _9 => _9.details, 'optionalAccess', _10 => _10.length]) || pricing.observedMax ? "*" : "";
|
|
5761
|
-
const rate = display.match(
|
|
5762
|
-
/^([\d.,]+) Deepline credits(?: \/ \$[\d.,]+)? per (call|result|page|item|basic profile|full profile)( \(estimate\))?$/
|
|
5763
|
-
);
|
|
5764
|
-
if (rate) return `${rate[1]}/${rate[2]}${_nullishCoalesce(rate[3], () => ( ""))}${footnote}`;
|
|
5765
|
-
if (pricing.creditsPerUnit === 0 && /^Free\b/.test(display))
|
|
5766
|
-
return `0 (free)${footnote}`;
|
|
5767
|
-
if (!display || display === "Pricing unavailable.")
|
|
5768
|
-
return `unknown${footnote}`;
|
|
5769
|
-
return pricing.unit === "usage" ? "usage-based*" : "variable*";
|
|
5770
|
-
}
|
|
5771
|
-
var RATE_WINDOW_UNITS = {
|
|
5772
|
-
1e3: "s",
|
|
5773
|
-
6e4: "min",
|
|
5774
|
-
36e5: "hr"
|
|
5775
|
-
};
|
|
5776
|
-
function rateLimitDisplay(item) {
|
|
5777
|
-
const limits = (Array.isArray(item.rateLimits) ? item.rateLimits : []).filter(
|
|
5778
|
-
(limit) => typeof _optionalChain([limit, 'optionalAccess', _11 => _11.requestsPerWindow]) === "number" && typeof _optionalChain([limit, 'optionalAccess', _12 => _12.windowMs]) === "number" && limit.windowMs > 0
|
|
5779
|
-
);
|
|
5780
|
-
const [tightest] = limits.sort(
|
|
5781
|
-
(a, b) => a.requestsPerWindow / a.windowMs - b.requestsPerWindow / b.windowMs
|
|
5782
|
-
);
|
|
5783
|
-
return tightest ? `${tightest.requestsPerWindow}/${_nullishCoalesce(RATE_WINDOW_UNITS[tightest.windowMs], () => ( `${tightest.windowMs / 1e3}s`))}` : "\u2014";
|
|
5784
|
-
}
|
|
5785
|
-
function failureRateDisplay(rate) {
|
|
5786
|
-
if (typeof rate !== "number") return "\u2014";
|
|
5787
|
-
const percent = Math.round(rate * 100);
|
|
5788
|
-
return percent === 0 && rate > 0 ? "<1%" : `${percent}%`;
|
|
5789
|
-
}
|
|
5790
|
-
function latencyDisplay(ms) {
|
|
5791
|
-
if (typeof ms !== "number" || !Number.isFinite(ms)) return "\u2014";
|
|
5792
|
-
if (ms < 1e3) return `${Math.round(ms)}ms`;
|
|
5793
|
-
if (ms < 6e4) return `${(ms / 1e3).toFixed(ms < 1e4 ? 1 : 0)}s`;
|
|
5794
|
-
return `${(ms / 6e4).toFixed(1)}min`;
|
|
5795
|
-
}
|
|
5796
|
-
function searchRow(item, summaryWidth) {
|
|
5797
|
-
const observedCost = item.observedCost;
|
|
5798
|
-
const notes = [];
|
|
5799
|
-
let cost;
|
|
5800
|
-
if (!observedCost) {
|
|
5801
|
-
cost = toolPrice(item);
|
|
5802
|
-
} else if (observedCost.status === "available") {
|
|
5803
|
-
cost = `${observedCost.avgCredits}/${observedCost.unit} (observed)`;
|
|
5804
|
-
} else {
|
|
5805
|
-
cost = observedCost.typical ? `${observedCost.typical.lowCredits}\u2013${observedCost.typical.highCredits}/${observedCost.typical.unit} (typical)` : "no data yet";
|
|
5806
|
-
notes.push(`Cost: ${observedCost.displayText}`);
|
|
5807
|
-
}
|
|
5808
|
-
if (_optionalChain([item, 'access', _13 => _13.auth, 'optionalAccess', _14 => _14.connectionRequired]) && typeof item.connectionMessage === "string") {
|
|
5809
|
-
notes.push(item.connectionMessage);
|
|
5810
|
-
} else if (item.connected === false && item.credentialStatus === "managed") {
|
|
5811
|
-
notes.push("Temporarily unavailable.");
|
|
5812
|
-
}
|
|
5813
|
-
return {
|
|
5814
|
-
id: item.id,
|
|
5815
|
-
kind: item.kind,
|
|
5816
|
-
cost,
|
|
5817
|
-
rateLimit: rateLimitDisplay(item),
|
|
5818
|
-
// Production share of errored or rate-limited calls; absent when too few
|
|
5819
|
-
// calls or orgs used the tool to say.
|
|
5820
|
-
failureRate: failureRateDisplay(item.failureRate),
|
|
5821
|
-
// Production share of calls that returned a result; same floor.
|
|
5822
|
-
hitRate: failureRateDisplay(item.hitRate),
|
|
5823
|
-
// Production p95 latency of successful calls; absent for the same reason.
|
|
5824
|
-
p95: latencyDisplay(item.latencyP95Ms),
|
|
5825
|
-
summary: clipSummary(_nullishCoalesce(item.description, () => ( "")), summaryWidth),
|
|
5826
|
-
notes
|
|
5827
|
-
};
|
|
5828
|
-
}
|
|
5829
|
-
var SEARCH_KIND_COLUMN_ENABLED = false;
|
|
5830
|
-
var OPTIONAL_COLUMNS = [
|
|
5831
|
-
{ header: "RATE LIMIT", key: "rateLimit" },
|
|
5832
|
-
{ header: "FAILURES", key: "failureRate" },
|
|
5833
|
-
{ header: "HIT RATE", key: "hitRate" },
|
|
5834
|
-
{ header: "P95", key: "p95" }
|
|
5835
|
-
];
|
|
5836
|
-
function renderSearchResults(result, summaryWidth = _chunkD3BCSAN7js.DEFAULT_SUMMARY_WIDTH) {
|
|
5837
|
-
if (result.results.length === 0)
|
|
5838
|
-
return _chunkWSEMXB7Xjs.renderCommandEnvelopeText.call(void 0, result);
|
|
5839
|
-
const rows = result.results.map((item) => searchRow(item, summaryWidth));
|
|
5840
|
-
const kinds = new Set(rows.map((row) => row.kind));
|
|
5841
|
-
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
5842
|
-
const columns = [
|
|
5843
|
-
{ header: onlyTools ? "TOOL" : "ID", value: (row) => row.id },
|
|
5844
|
-
...SEARCH_KIND_COLUMN_ENABLED && !onlyTools ? [{ header: "KIND", value: (row) => row.kind }] : [],
|
|
5845
|
-
{ header: "CREDITS", value: (row) => row.cost, alignment: "right" },
|
|
5846
|
-
// Right-aligned figures that appear only when some row has one.
|
|
5847
|
-
...OPTIONAL_COLUMNS.filter(
|
|
5848
|
-
({ key }) => rows.some((row) => row[key] !== "\u2014")
|
|
5849
|
-
).map(({ header, key }) => ({
|
|
5850
|
-
header,
|
|
5851
|
-
value: (row) => row[key],
|
|
5852
|
-
alignment: "right"
|
|
5853
|
-
})),
|
|
5854
|
-
{ header: "SUMMARY", value: (row) => row.summary }
|
|
5855
|
-
];
|
|
5856
|
-
const render = result.render;
|
|
5857
|
-
const sections = _nullishCoalesce(_optionalChain([render, 'optionalAccess', _15 => _15.sections]), () => ( []));
|
|
5858
|
-
const resultIndex = sections.findIndex(
|
|
5859
|
-
({ title: title2 }) => title2 !== "ignored categories" && title2 !== "exact tool lookup"
|
|
5860
|
-
);
|
|
5861
|
-
const title = _nullishCoalesce(_optionalChain([sections, 'access', _16 => _16[resultIndex], 'optionalAccess', _17 => _17.title]), () => ( `${_nullishCoalesce(result.total, () => ( rows.length))} matches \u2014 showing ${rows.length}`));
|
|
5862
|
-
const remaining = {
|
|
5863
|
-
sections: sections.filter(
|
|
5864
|
-
({ title: title2 }, index) => index !== resultIndex && title2 !== "exact tool lookup"
|
|
5865
|
-
),
|
|
5866
|
-
actions: _optionalChain([render, 'optionalAccess', _18 => _18.actions])
|
|
5867
|
-
};
|
|
5868
|
-
const followUps = _optionalChain([remaining, 'access', _19 => _19.sections, 'optionalAccess', _20 => _20.length]) || _optionalChain([remaining, 'access', _21 => _21.actions, 'optionalAccess', _22 => _22.length]) ? `
|
|
5869
|
-
${_chunkWSEMXB7Xjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
5870
|
-
const exact = _optionalChain([result, 'access', _23 => _23.exactLookup, 'optionalAccess', _24 => _24.toolId]);
|
|
5871
|
-
const matched = exact && result.results.find((item) => item.id === exact);
|
|
5872
|
-
const contract = matched ? [
|
|
5873
|
-
..._optionalChain([matched, 'access', _25 => _25.toolUsage, 'optionalAccess', _26 => _26.effect]) ? [`Effect: ${matched.toolUsage.effect}`] : [],
|
|
5874
|
-
...(_nullishCoalesce(_optionalChain([matched, 'access', _27 => _27.toolUsage, 'optionalAccess', _28 => _28.requiredInputs]), () => ( []))).map(
|
|
5875
|
-
({ name, meaning }) => ` ${name}${meaning ? ` \u2014 ${meaning}` : ""}`
|
|
5876
|
-
),
|
|
5877
|
-
...matched.auth ? _chunkLHPYCJNLjs.discoveryAuthLines.call(void 0, matched.auth) : [],
|
|
5878
|
-
...matched.describeCommand ? [matched.describeCommand] : [],
|
|
5879
|
-
..._optionalChain([matched, 'access', _29 => _29.toolUsage, 'optionalAccess', _30 => _30.example]) ? [matched.toolUsage.example.cli] : []
|
|
5880
|
-
] : [];
|
|
5881
|
-
const missingConnections = /* @__PURE__ */ new Set();
|
|
5882
|
-
for (const item of result.results) {
|
|
5883
|
-
if (item.id === exact || _optionalChain([item, 'access', _31 => _31.auth, 'optionalAccess', _32 => _32.connectionRequired]) || item.credentialStatus !== "requires_connection")
|
|
5884
|
-
continue;
|
|
5885
|
-
const provider = typeof item.provider === "string" && item.provider.trim();
|
|
5886
|
-
missingConnections.add(provider || item.id);
|
|
5887
|
-
}
|
|
5888
|
-
const notes = [...missingConnections].map(
|
|
5889
|
-
(provider) => ` ${provider}: Not connected. Connect to use tools that require your credentials. See deepline describe <toolId> for setup.`
|
|
5890
|
-
);
|
|
5891
|
-
notes.push(
|
|
5892
|
-
...rows.flatMap((row) => row.notes.map((note) => ` ${row.id}: ${note}`))
|
|
5893
|
-
);
|
|
5894
|
-
const details = [
|
|
5895
|
-
...notes.length ? ["Notes", ...notes, ""] : [],
|
|
5896
|
-
rows.some((row) => row.cost.endsWith("*")) ? "* See deepline describe <toolId> for full pricing information." : "Full descriptions and pricing: deepline describe <toolId>."
|
|
5897
|
-
].join("\n");
|
|
5898
|
-
const exactContract = contract.length ? `
|
|
5899
|
-
|
|
5900
|
-
Exact match
|
|
5901
|
-
${contract.join("\n")}` : "";
|
|
5902
|
-
const exactMiss = _optionalChain([result, 'access', _33 => _33.exactLookup, 'optionalAccess', _34 => _34.status]) !== "found" ? _optionalChain([result, 'access', _35 => _35.exactLookup, 'optionalAccess', _36 => _36.message]) : void 0;
|
|
5903
|
-
return `${exactMiss ? `${exactMiss}
|
|
5904
|
-
|
|
5905
|
-
` : ""}${title}
|
|
5906
|
-
|
|
5907
|
-
${formatTextTable(rows, columns)}${exactContract}
|
|
5908
|
-
|
|
5909
|
-
${details}
|
|
5910
|
-
${followUps}`;
|
|
5911
|
-
}
|
|
5912
|
-
|
|
5913
|
-
|
|
5914
5717
|
|
|
5915
5718
|
|
|
5916
|
-
exports.
|
|
5719
|
+
exports.formatTextTable = formatTextTable;
|
|
@@ -1,15 +1,15 @@
|
|
|
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 _chunkFEWBYUUFjs = require('./chunk-FEWBYUUF.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkJ5QAOURJjs = require('./chunk-J5QAOURJ.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk4VKDPTHFjs = require('./chunk-4VKDPTHF.js');
|
|
13
13
|
|
|
14
14
|
// src/cli/commands/sessions.ts
|
|
15
15
|
|
|
@@ -55,7 +55,7 @@ function codexSessionsRoot() {
|
|
|
55
55
|
}
|
|
56
56
|
function listClaudeSessionFiles() {
|
|
57
57
|
const files = [];
|
|
58
|
-
for (const root of
|
|
58
|
+
for (const root of _chunk4VKDPTHFjs.claudeProjectsRoots.call(void 0, )) {
|
|
59
59
|
files.push(...listClaudeSessionFilesIn(root));
|
|
60
60
|
}
|
|
61
61
|
return files;
|
|
@@ -147,7 +147,7 @@ function currentSessionFile(agent) {
|
|
|
147
147
|
const newestFirst = listSessionFiles(agent).sort(
|
|
148
148
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
149
149
|
);
|
|
150
|
-
const sessionId =
|
|
150
|
+
const sessionId = _chunk4VKDPTHFjs.agentSessionIdFromEnvironment.call(void 0,
|
|
151
151
|
process.env,
|
|
152
152
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
153
153
|
);
|
|
@@ -156,7 +156,7 @@ function currentSessionFile(agent) {
|
|
|
156
156
|
(candidate) => candidate.sessionId === sessionId
|
|
157
157
|
);
|
|
158
158
|
if (named) return named;
|
|
159
|
-
const cowork = agent === "codex" ? null :
|
|
159
|
+
const cowork = agent === "codex" ? null : _chunk4VKDPTHFjs.coworkTranscriptFromEnvironment.call(void 0, );
|
|
160
160
|
const coworkStat = cowork ? statIfReadable(cowork.filePath) : null;
|
|
161
161
|
if (cowork && coworkStat) {
|
|
162
162
|
return { agent: "claude", ...cowork, mtimeMs: coworkStat.mtimeMs };
|
|
@@ -166,7 +166,7 @@ function currentSessionFile(agent) {
|
|
|
166
166
|
), () => ( newestFirst[0])), () => ( null));
|
|
167
167
|
}
|
|
168
168
|
function feedbackAgentSessionId(agentRuntime) {
|
|
169
|
-
return _nullishCoalesce(
|
|
169
|
+
return _nullishCoalesce(_chunk4VKDPTHFjs.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunk4VKDPTHFjs.coworkTranscriptFromEnvironment.call(void 0, ), 'optionalAccess', _17 => _17.sessionId]), () => ( null)) : null)));
|
|
170
170
|
}
|
|
171
171
|
function sessionStartedInDirectory(candidate, cwd) {
|
|
172
172
|
if (candidate.agent === "claude") {
|
|
@@ -215,7 +215,7 @@ function readCodexSessionId(filePath) {
|
|
|
215
215
|
return null;
|
|
216
216
|
}
|
|
217
217
|
function sessionSearchDescription(agent) {
|
|
218
|
-
const claude =
|
|
218
|
+
const claude = _chunk4VKDPTHFjs.claudeProjectsRoots.call(void 0, ).map((root) => _path.join.call(void 0, root, "*", "<session-id>.jsonl")).join(", ");
|
|
219
219
|
if (agent === "claude") return claude;
|
|
220
220
|
if (agent === "codex") return "~/.codex/sessions/**/*.jsonl";
|
|
221
221
|
return `${claude} or ~/.codex/sessions/**/*.jsonl`;
|
|
@@ -472,7 +472,7 @@ function buildSessionUploadContent(raw) {
|
|
|
472
472
|
return { encodedContent: encoded, needsChunking: true };
|
|
473
473
|
}
|
|
474
474
|
async function uploadPayload(path, payload) {
|
|
475
|
-
const { http } =
|
|
475
|
+
const { http } = _chunkJ5QAOURJjs.getAuthedHttpClient.call(void 0, );
|
|
476
476
|
return await http.post(path, payload);
|
|
477
477
|
}
|
|
478
478
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -550,7 +550,7 @@ async function uploadAgentSession(agentRuntime) {
|
|
|
550
550
|
return target.sessionId;
|
|
551
551
|
}
|
|
552
552
|
async function handleSessionsSend(options) {
|
|
553
|
-
if (
|
|
553
|
+
if (_chunkFEWBYUUFjs.rejectRestrictedFeedback.call(void 0, options)) return;
|
|
554
554
|
const rating = parseSessionRating(options.rating);
|
|
555
555
|
if (options.file) {
|
|
556
556
|
const filePath = _path.resolve.call(void 0, options.file);
|
|
@@ -562,7 +562,7 @@ async function handleSessionsSend(options) {
|
|
|
562
562
|
filename: _path.basename.call(void 0, filePath),
|
|
563
563
|
...rating ? { rating } : {}
|
|
564
564
|
});
|
|
565
|
-
|
|
565
|
+
_chunkJ5QAOURJjs.printCommandEnvelope.call(void 0,
|
|
566
566
|
{
|
|
567
567
|
...response2,
|
|
568
568
|
ok: true,
|
|
@@ -594,7 +594,7 @@ async function handleSessionsSend(options) {
|
|
|
594
594
|
labeled: Boolean(_optionalChain([options, 'access', _27 => _27.label, 'optionalAccess', _28 => _28.length]))
|
|
595
595
|
});
|
|
596
596
|
const sessionIds = built.map((session) => session.sessionId);
|
|
597
|
-
|
|
597
|
+
_chunkJ5QAOURJjs.printCommandEnvelope.call(void 0,
|
|
598
598
|
{
|
|
599
599
|
...response,
|
|
600
600
|
ok: true,
|
|
@@ -702,7 +702,7 @@ ${refreshMeta}
|
|
|
702
702
|
</body>
|
|
703
703
|
</html>`;
|
|
704
704
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
705
|
-
|
|
705
|
+
_chunkJ5QAOURJjs.printCommandEnvelope.call(void 0,
|
|
706
706
|
{
|
|
707
707
|
ok: true,
|
|
708
708
|
file: outputPath,
|