deepline 0.3.564 → 0.3.566
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/bundling-sources/shared_libs/monitors/action-actor.ts +5 -0
- package/dist/cli/{auth-PXZ7JZUT.mjs → auth-HSFDBHVB.mjs} +5 -5
- package/dist/cli/auth-RGFZEMFX.js +44 -0
- package/dist/cli/{billing-AMYFMDZL.mjs → billing-6T7HH6DE.mjs} +9 -9
- package/dist/cli/{billing-OY2ZN5XJ.js → billing-NG5W2PDU.js} +102 -102
- package/dist/cli/{chunk-HEWVHSNN.mjs → chunk-3PNU3FEI.mjs} +4 -4
- package/dist/cli/{chunk-4JQ6MHE7.js → chunk-5J6VEC75.js} +4 -4
- package/dist/cli/{chunk-I4XWKMGR.js → chunk-6F6DMBEJ.js} +15 -15
- package/dist/cli/{chunk-HGGIWRA5.js → chunk-7GLVIFDO.js} +48 -48
- package/dist/cli/{chunk-ZOITMXVO.mjs → chunk-AD47OWTE.mjs} +1 -1
- package/dist/cli/{chunk-TVF7XVPN.mjs → chunk-AGDRIXF2.mjs} +1 -1
- package/dist/cli/{chunk-Y2FZJRRM.js → chunk-AHELFBG5.js} +2 -2
- package/dist/cli/{chunk-YIDXJD5L.mjs → chunk-AIF7ZHCF.mjs} +1 -1
- package/dist/cli/{chunk-DHZOC2QX.mjs → chunk-ARUXRZR4.mjs} +2 -2
- package/dist/cli/{chunk-CXN574UU.mjs → chunk-BILFWD6F.mjs} +1 -1
- package/dist/cli/{search-output-AXVUC3TF.js → chunk-C5IA2OYE.js} +2 -199
- package/dist/cli/{chunk-2SKEXMFV.js → chunk-CQX5MWHH.js} +5 -5
- package/dist/cli/{chunk-DTTMFSNG.mjs → chunk-CSXMBYEW.mjs} +1 -1
- package/dist/cli/{chunk-IW3N7ARM.js → chunk-CXK6ZEOQ.js} +159 -9
- package/dist/cli/{chunk-655PNNU7.mjs → chunk-E44TMICV.mjs} +1 -1
- package/dist/cli/{chunk-GWTFA5GD.js → chunk-EIYQIY3C.js} +3 -3
- package/dist/cli/{chunk-MY45K7SA.mjs → chunk-FPKKYS7V.mjs} +5 -5
- package/dist/cli/{chunk-DYTTZHYX.mjs → chunk-FUTXULX5.mjs} +5 -5
- package/dist/cli/{chunk-WDXXHTIF.js → chunk-FXSDDRVX.js} +23 -23
- package/dist/cli/{chunk-KR76WIOX.js → chunk-GY7MY2IJ.js} +1 -1
- package/dist/cli/{chunk-RKG2E2JF.js → chunk-H6BQIQEJ.js} +9 -9
- package/dist/cli/{chunk-V2SNCH5X.js → chunk-ILTX6ZAH.js} +6 -6
- package/dist/cli/{chunk-I2GVGCMM.js → chunk-JSVNTY47.js} +12 -12
- package/dist/cli/{chunk-2ISK6CUL.mjs → chunk-K3DEHKV7.mjs} +11 -11
- package/dist/cli/{chunk-RBTOZO5M.js → chunk-K5QLALHC.js} +41 -41
- package/dist/cli/{chunk-JVSHMUGE.mjs → chunk-KCD4LM2D.mjs} +3 -3
- package/dist/cli/{chunk-OCLHNDVN.mjs → chunk-KDPGBC5U.mjs} +5 -5
- package/dist/cli/{chunk-XP6ALUAZ.mjs → chunk-KKC7U4UJ.mjs} +2 -2
- package/dist/cli/{chunk-VACBPVIR.mjs → chunk-KOMEYB7H.mjs} +104 -0
- package/dist/cli/{chunk-HPXN5QZZ.js → chunk-KXGUMGCU.js} +20 -20
- package/dist/cli/{chunk-BRQVKZWJ.js → chunk-L2P3672R.js} +7 -7
- package/dist/cli/{chunk-2PMHEUED.mjs → chunk-L5N4DSH4.mjs} +3 -3
- package/dist/cli/{chunk-4NNNJLAZ.mjs → chunk-LAQNXNVR.mjs} +2 -2
- package/dist/cli/{chunk-WXB7PU3O.mjs → chunk-MEBKPVHE.mjs} +1 -1
- package/dist/cli/{search-output-N44NPUN6.mjs → chunk-MI5Q5FOD.mjs} +1 -198
- package/dist/cli/{chunk-KBGP4CS5.js → chunk-MIS3V2C3.js} +10 -10
- package/dist/cli/{chunk-5CNHEUGJ.js → chunk-OEVCKW2M.js} +104 -0
- package/dist/cli/{chunk-7DU4VODD.mjs → chunk-OFEARTQO.mjs} +2 -2
- package/dist/cli/{chunk-XWDCKDUP.js → chunk-OL3WYX7L.js} +26 -26
- package/dist/cli/{chunk-TK6YKQ45.mjs → chunk-P7Q27COZ.mjs} +1 -1
- package/dist/cli/{chunk-UWX4TTJU.mjs → chunk-PLXQIHRM.mjs} +2 -2
- package/dist/cli/{chunk-V2GHSOQB.js → chunk-PRM3WYG7.js} +100 -100
- package/dist/cli/{chunk-QHBYLHOG.mjs → chunk-QBX4UJMY.mjs} +2 -2
- package/dist/cli/{chunk-RW6PFYT5.mjs → chunk-RIV2AZLY.mjs} +5 -5
- package/dist/cli/{chunk-YMQOTCLU.js → chunk-RUVYG5TT.js} +2 -2
- package/dist/cli/{chunk-RK5EKJAT.mjs → chunk-SR7IUISM.mjs} +152 -2
- package/dist/cli/{chunk-XVYU3J2J.js → chunk-T3RKLPPS.js} +13 -13
- package/dist/cli/{chunk-WSEMXB7X.js → chunk-TVGGBQFG.js} +20 -20
- package/dist/cli/{chunk-56P2BEVI.mjs → chunk-TYKMBPNE.mjs} +2 -2
- package/dist/cli/{chunk-R5555CB5.js → chunk-UF5MVM6L.js} +2 -2
- package/dist/cli/{chunk-ZJ23RI3B.mjs → chunk-VHRYJACF.mjs} +2 -2
- package/dist/cli/{chunk-7NSHH3NB.js → chunk-VRWMQUFO.js} +5 -5
- package/dist/cli/{chunk-QQTZ6KG4.mjs → chunk-YFP7YZUU.mjs} +4 -4
- package/dist/cli/{chunk-ZZW5A4HZ.js → chunk-YJEBAR3C.js} +5 -5
- package/dist/cli/{chunk-HXZSXPT2.js → chunk-Z5BLACQ3.js} +53 -53
- package/dist/cli/{chunk-4SV43Z64.js → chunk-ZYXQIOWE.js} +3 -3
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/concurrent-runs-help-3QVRXAZG.js +22 -0
- package/dist/cli/{concurrent-runs-help-5GPKNDAY.mjs → concurrent-runs-help-TNMN4C74.mjs} +6 -6
- package/dist/cli/{csv-X3FHV56H.js → csv-77H4JMDW.js} +13 -13
- package/dist/cli/{csv-ARPN6J6K.mjs → csv-KAZRKSLV.mjs} +4 -4
- package/dist/cli/{db-WINZJRWC.js → db-MM6R2466.js} +27 -27
- package/dist/cli/{db-2HWSS3MA.mjs → db-XQQAVLWO.mjs} +6 -6
- package/dist/cli/describe-H43UIBVP.js +50 -0
- package/dist/cli/{describe-333JCD22.mjs → describe-P5N56GPA.mjs} +18 -18
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-JYYXIRE6.mjs → executions-EGEQZV5V.mjs} +6 -6
- package/dist/cli/{executions-UHZHVQLO.js → executions-EGPCT2OK.js} +8 -8
- package/dist/cli/{feedback-6G4SDI7M.js → feedback-ALMW7OR5.js} +14 -14
- package/dist/cli/{feedback-KNGQ4VMG.mjs → feedback-IWUJAF6O.mjs} +6 -6
- package/dist/cli/{git-DREIWOYN.mjs → git-4CQQWLZP.mjs} +5 -5
- package/dist/cli/git-UYYH53Q6.js +26 -0
- package/dist/cli/index.js +147 -147
- package/dist/cli/index.mjs +46 -46
- package/dist/cli/integrations-LS73NWU7.mjs +284 -0
- package/dist/cli/integrations-Y7W5L7DW.js +284 -0
- package/dist/cli/{legacy-noops-FSL5Y4TO.mjs → legacy-noops-V45TJGK3.mjs} +6 -6
- package/dist/cli/{legacy-noops-7LZ2HNLB.js → legacy-noops-WXGSAZ6O.js} +9 -9
- package/dist/cli/{mcp-TAVIRUQC.js → mcp-3QRLMKFF.js} +24 -24
- package/dist/cli/{mcp-WDJV3OCV.mjs → mcp-4IHB3LCG.mjs} +4 -4
- package/dist/cli/{monitors-HGT2RVR5.js → monitors-4I2QDCOV.js} +100 -100
- package/dist/cli/{monitors-L5FSJSVD.mjs → monitors-K46XW6QH.mjs} +7 -7
- package/dist/cli/{org-4LNYSIEM.js → org-CBJY5DO5.js} +121 -121
- package/dist/cli/{org-J5DJCLTU.mjs → org-H3GYWKFC.mjs} +6 -6
- package/dist/cli/{outcomes-5DZ5EZ5Q.mjs → outcomes-AE6ZPY6O.mjs} +6 -6
- package/dist/cli/{outcomes-4QO264GU.js → outcomes-KHZ3S3SG.js} +14 -14
- package/dist/cli/{play-FZY7NZAM.js → play-SY2PCUMD.js} +324 -324
- package/dist/cli/{play-SETNQCBB.mjs → play-YQS3OI2Q.mjs} +19 -19
- package/dist/cli/{providers-754HLYAW.js → providers-IT2YALZM.js} +9 -9
- package/dist/cli/{providers-PIS6IQVA.mjs → providers-WJBBSM76.mjs} +6 -6
- package/dist/cli/{quickstart-5P4NYWZK.mjs → quickstart-TYMROAQG.mjs} +4 -4
- package/dist/cli/{quickstart-2TIUCHQF.js → quickstart-VMLHHXFD.js} +6 -6
- package/dist/cli/{run-OQNK7G3I.js → run-GQOWNUD2.js} +44 -44
- package/dist/cli/{run-WAN4VZMS.mjs → run-TSOLGWTK.mjs} +23 -23
- package/dist/cli/search-B23QXBNF.js +32 -0
- package/dist/cli/{search-PTX7IMBB.mjs → search-MJAL37NP.mjs} +7 -7
- package/dist/cli/search-output-AUVP4ZLR.js +205 -0
- package/dist/cli/search-output-IKVGU3MZ.mjs +205 -0
- package/dist/cli/{secrets-ZODIPUMI.mjs → secrets-4KYGVJJJ.mjs} +6 -6
- package/dist/cli/{secrets-32WRPZB2.js → secrets-NO6ZD2OZ.js} +15 -15
- package/dist/cli/sessions-DJLG57FC.js +23 -0
- package/dist/cli/{sessions-JRIS3JMT.mjs → sessions-S2O24LRW.mjs} +6 -6
- package/dist/cli/{settings-OI3OHCD5.mjs → settings-NSZNSX67.mjs} +12 -12
- package/dist/cli/{settings-YIZUG6T3.js → settings-O5BELZRA.js} +85 -85
- package/dist/cli/{setup-4QQ33WUA.mjs → setup-3VTTPHKI.mjs} +9 -9
- package/dist/cli/{setup-AF3I4UPE.js → setup-IGJKIVJ7.js} +49 -49
- package/dist/cli/skills-76W4VCHP.js +37 -0
- package/dist/cli/{skills-EITRSX56.mjs → skills-JMSX77S3.mjs} +7 -7
- package/dist/cli/{tools-CMOLGIDR.mjs → tools-MITGT2JM.mjs} +17 -17
- package/dist/cli/tools-OS32SFJD.js +57 -0
- package/dist/cli/update-UGLA7TLH.js +37 -0
- package/dist/cli/{update-PGEARBAI.mjs → update-YXASQQWE.mjs} +9 -9
- package/dist/cli/{views-2H77STII.mjs → views-7ZMS2B55.mjs} +6 -6
- package/dist/cli/{views-KFLXOZ5N.js → views-Y5CA3JWP.js} +21 -21
- package/dist/cli/{workflow-XWMAYWVX.mjs → workflow-GBXWHYDL.mjs} +7 -7
- package/dist/cli/{workflow-HCEMVZAZ.js → workflow-U7KXZLKI.js} +17 -17
- 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,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 _chunkCXK6ZEOQjs = require('./chunk-CXK6ZEOQ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkZYXQIOWEjs = require('./chunk-ZYXQIOWE.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 = _chunkZYXQIOWEjs.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunkCXK6ZEOQjs.PlayClient)(
|
|
142
|
+
new (0, _chunkZYXQIOWEjs.HttpClient)(config),
|
|
143
143
|
_nullishCoalesce(config.environment, () => ( process.env))
|
|
144
144
|
);
|
|
145
145
|
}
|
|
@@ -37,7 +37,7 @@ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunk5J6VEC75js = require('./chunk-5J6VEC75.js');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
|
|
@@ -48,6 +48,123 @@ var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
|
|
|
48
48
|
|
|
49
49
|
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
50
50
|
|
|
51
|
+
// src/connector-sync.ts
|
|
52
|
+
async function readObjects(client, provider) {
|
|
53
|
+
let page = await client.getConnectorSyncObjectsPage(provider);
|
|
54
|
+
const objects = [...page.objects];
|
|
55
|
+
while (page.next_cursor) {
|
|
56
|
+
const cursor = page.next_cursor;
|
|
57
|
+
page = await client.getConnectorSyncObjectsPage(provider, { cursor });
|
|
58
|
+
if (page.next_cursor !== null && page.next_cursor <= cursor)
|
|
59
|
+
throw new (0, _chunkLFQJW4S2js.DeeplineError)(
|
|
60
|
+
`The ${provider} object list did not advance past cursor ${cursor}.`,
|
|
61
|
+
502,
|
|
62
|
+
"CURSOR_NOT_ADVANCING"
|
|
63
|
+
);
|
|
64
|
+
objects.push(...page.objects);
|
|
65
|
+
}
|
|
66
|
+
return { customer_db: page.customer_db, summary: page.summary, objects };
|
|
67
|
+
}
|
|
68
|
+
async function readSummary(client, provider) {
|
|
69
|
+
const statuses = await client.getConnectorSyncStatuses();
|
|
70
|
+
const summary = statuses.providers.find((row) => row.provider === provider);
|
|
71
|
+
if (!summary)
|
|
72
|
+
throw new (0, _chunkLFQJW4S2js.DeeplineError)(
|
|
73
|
+
`${provider} has no managed sync. Run deepline integrations sync status.`,
|
|
74
|
+
404,
|
|
75
|
+
"NOT_FOUND"
|
|
76
|
+
);
|
|
77
|
+
return summary;
|
|
78
|
+
}
|
|
79
|
+
async function requireKnownObjects(client, provider, objectTypes) {
|
|
80
|
+
if (objectTypes.length === 0)
|
|
81
|
+
throw new (0, _chunkLFQJW4S2js.DeeplineError)(
|
|
82
|
+
"Name at least one object, for example contacts.",
|
|
83
|
+
400,
|
|
84
|
+
"INVALID_ARGUMENT"
|
|
85
|
+
);
|
|
86
|
+
const detail = await readObjects(client, provider);
|
|
87
|
+
if (detail.customer_db !== "active")
|
|
88
|
+
throw new (0, _chunkLFQJW4S2js.DeeplineError)(
|
|
89
|
+
"The Customer DB is unavailable, so its synced objects cannot be changed.",
|
|
90
|
+
409,
|
|
91
|
+
"CUSTOMER_DB_UNAVAILABLE"
|
|
92
|
+
);
|
|
93
|
+
const known = new Set(detail.objects.map((row) => row.object_type));
|
|
94
|
+
const unknown = objectTypes.filter((objectType) => !known.has(objectType));
|
|
95
|
+
if (unknown.length > 0)
|
|
96
|
+
throw new (0, _chunkLFQJW4S2js.DeeplineError)(
|
|
97
|
+
`${provider} does not sync ${unknown.join(", ")}. Synced objects: ${[...known].join(", ") || "none"}. Run deepline integrations sync objects ${provider}.`,
|
|
98
|
+
404,
|
|
99
|
+
"NOT_FOUND"
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
async function withResultingState(client, provider, change) {
|
|
103
|
+
try {
|
|
104
|
+
return { change, status: await readSummary(client, provider) };
|
|
105
|
+
} catch (error) {
|
|
106
|
+
return {
|
|
107
|
+
change,
|
|
108
|
+
status: null,
|
|
109
|
+
status_error: error instanceof Error ? error.message : String(error)
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
function createConnectorSyncNamespace(client) {
|
|
114
|
+
const action = async (provider, body) => withResultingState(
|
|
115
|
+
client,
|
|
116
|
+
provider,
|
|
117
|
+
await client.runConnectorSyncAction(provider, body)
|
|
118
|
+
);
|
|
119
|
+
return {
|
|
120
|
+
/** Every managed provider's sync state (from Convex only). */
|
|
121
|
+
status: () => client.getConnectorSyncStatuses(),
|
|
122
|
+
/** One provider's sync state (from Convex only). */
|
|
123
|
+
get: (provider) => readSummary(client, provider),
|
|
124
|
+
/** One provider's sync state and every synced object (Customer DB). */
|
|
125
|
+
objects: (provider) => readObjects(client, provider),
|
|
126
|
+
/** Turn a provider's sync on or off. */
|
|
127
|
+
set: async (provider, enabled) => withResultingState(
|
|
128
|
+
client,
|
|
129
|
+
provider,
|
|
130
|
+
await client.setConnectorSync(provider, enabled)
|
|
131
|
+
),
|
|
132
|
+
pause: async (provider, objectTypes) => {
|
|
133
|
+
await requireKnownObjects(client, provider, objectTypes);
|
|
134
|
+
return action(provider, {
|
|
135
|
+
action: "pause_all",
|
|
136
|
+
object_types: [...objectTypes]
|
|
137
|
+
});
|
|
138
|
+
},
|
|
139
|
+
resume: async (provider, objectTypes) => {
|
|
140
|
+
await requireKnownObjects(client, provider, objectTypes);
|
|
141
|
+
return action(provider, {
|
|
142
|
+
action: "resume_all",
|
|
143
|
+
object_types: [...objectTypes]
|
|
144
|
+
});
|
|
145
|
+
},
|
|
146
|
+
/**
|
|
147
|
+
* Queue a sync now for every synced object, or only the named ones. As on
|
|
148
|
+
* the sync page, a paused object runs once and stays paused.
|
|
149
|
+
*/
|
|
150
|
+
run: async (provider, objectTypes = []) => {
|
|
151
|
+
const summary = await readSummary(client, provider);
|
|
152
|
+
if (!summary.sync_enabled)
|
|
153
|
+
throw new (0, _chunkLFQJW4S2js.DeeplineError)(
|
|
154
|
+
`Sync is off for ${provider}. Turn it on with deepline integrations sync on ${provider}.`,
|
|
155
|
+
409,
|
|
156
|
+
"SYNC_OFF"
|
|
157
|
+
);
|
|
158
|
+
if (objectTypes.length > 0)
|
|
159
|
+
await requireKnownObjects(client, provider, objectTypes);
|
|
160
|
+
return action(provider, {
|
|
161
|
+
action: "run_all",
|
|
162
|
+
...objectTypes.length > 0 ? { object_types: [...objectTypes] } : {}
|
|
163
|
+
});
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
|
|
51
168
|
// src/integrations.ts
|
|
52
169
|
var CALENDAR_PROVIDER = "google_calendar_availability";
|
|
53
170
|
var AD_ACCOUNT_DISCOVERY_PROVIDERS = [
|
|
@@ -183,7 +300,9 @@ function createIntegrationsNamespace(client) {
|
|
|
183
300
|
disconnect: (name, options = {}) => changeConnection(client, "disconnect", name, options),
|
|
184
301
|
delete: (name, options = {}) => changeConnection(client, "delete", name, options),
|
|
185
302
|
verify: (domain, options) => verifyWorkspace(client, domain, options),
|
|
186
|
-
members: (provider, options = {}) => client.listManagedConnectionMembers(provider, options.cursor)
|
|
303
|
+
members: (provider, options = {}) => client.listManagedConnectionMembers(provider, options.cursor),
|
|
304
|
+
/** CRM connector sync into the Customer DB: state, on/off, objects. */
|
|
305
|
+
sync: createConnectorSyncNamespace(client)
|
|
187
306
|
};
|
|
188
307
|
}
|
|
189
308
|
|
|
@@ -844,7 +963,7 @@ var ToolCalls = class {
|
|
|
844
963
|
idempotencyKey,
|
|
845
964
|
onResponse: (response2) => {
|
|
846
965
|
lastResponse = null;
|
|
847
|
-
atomicToolsSupported = response2.headers.get(
|
|
966
|
+
atomicToolsSupported = response2.headers.get(_chunk5J6VEC75js.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
848
967
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
849
968
|
if (_optionalChain([options, 'optionalAccess', _38 => _38.onServerTiming])) {
|
|
850
969
|
try {
|
|
@@ -1231,15 +1350,15 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1231
1350
|
}
|
|
1232
1351
|
const receivers = _optionalChain([env, 'access', _63 => _63.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _64 => _64.trim, 'call', _65 => _65()]);
|
|
1233
1352
|
return {
|
|
1234
|
-
[
|
|
1235
|
-
...receivers ? { [
|
|
1353
|
+
[_chunk5J6VEC75js.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1354
|
+
...receivers ? { [_chunk5J6VEC75js.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1236
1355
|
};
|
|
1237
1356
|
}
|
|
1238
1357
|
function playRunStartHeaders(runtime, env) {
|
|
1239
1358
|
const headers = runtimeSelectionHeaders(runtime, env);
|
|
1240
1359
|
const experimentSwitches = _optionalChain([env, 'access', _66 => _66.DEEPLINE_EXPERIMENT_SWITCHES, 'optionalAccess', _67 => _67.trim, 'call', _68 => _68()]);
|
|
1241
1360
|
if (!experimentSwitches) return headers;
|
|
1242
|
-
return { ...headers, [
|
|
1361
|
+
return { ...headers, [_chunk5J6VEC75js.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
|
|
1243
1362
|
}
|
|
1244
1363
|
function normalizeTestPolicyOverrides(value, source) {
|
|
1245
1364
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -1309,7 +1428,7 @@ var PlayClient = class {
|
|
|
1309
1428
|
return _chunkMJTVX4QKjs.startPlayRun.call(void 0,
|
|
1310
1429
|
this.http,
|
|
1311
1430
|
resolved.request,
|
|
1312
|
-
_optionalChain([options, 'optionalAccess', _76 => _76.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1431
|
+
_optionalChain([options, 'optionalAccess', _76 => _76.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunk5J6VEC75js.SDK_API_MAJOR) } : headers,
|
|
1313
1432
|
options
|
|
1314
1433
|
);
|
|
1315
1434
|
}
|
|
@@ -3427,7 +3546,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3427
3546
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3428
3547
|
);
|
|
3429
3548
|
}
|
|
3430
|
-
return { [
|
|
3549
|
+
return { [_chunk5J6VEC75js.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3431
3550
|
}
|
|
3432
3551
|
function sleep(ms) {
|
|
3433
3552
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -4363,7 +4482,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4363
4482
|
);
|
|
4364
4483
|
const headers = _optionalChain([options, 'optionalAccess', _200 => _200.cliAdmission]) ? {
|
|
4365
4484
|
...runtimeHeaders,
|
|
4366
|
-
"X-Deepline-API-Major": String(
|
|
4485
|
+
"X-Deepline-API-Major": String(_chunk5J6VEC75js.SDK_API_MAJOR)
|
|
4367
4486
|
} : runtimeHeaders;
|
|
4368
4487
|
const http = this.http;
|
|
4369
4488
|
let submitted = false;
|
|
@@ -5784,6 +5903,37 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
5784
5903
|
const params = new URLSearchParams({ provider });
|
|
5785
5904
|
return this.http.get(`/api/v2/integrations/balance?${params}`);
|
|
5786
5905
|
}
|
|
5906
|
+
/** Every managed CRM provider's sync state, as the Integrations list shows it. */
|
|
5907
|
+
async getConnectorSyncStatuses() {
|
|
5908
|
+
return this.http.get("/api/v2/ingestion/sync-status");
|
|
5909
|
+
}
|
|
5910
|
+
/** One provider's sync state and a page of its synced objects. */
|
|
5911
|
+
async getConnectorSyncObjectsPage(provider, options = {}) {
|
|
5912
|
+
const params = new URLSearchParams();
|
|
5913
|
+
if (options.cursor) params.set("cursor", options.cursor);
|
|
5914
|
+
if (options.limit !== void 0) params.set("limit", String(options.limit));
|
|
5915
|
+
const path = `/api/v2/ingestion/providers/${encodeURIComponent(provider)}/sync`;
|
|
5916
|
+
const query = params.toString();
|
|
5917
|
+
return this.http.get(query ? `${path}?${query}` : path);
|
|
5918
|
+
}
|
|
5919
|
+
/** Turn a provider's managed sync on or off. */
|
|
5920
|
+
async setConnectorSync(provider, enabled) {
|
|
5921
|
+
return this.http.post(
|
|
5922
|
+
`/api/v2/ingestion/providers/${encodeURIComponent(provider)}/sync`,
|
|
5923
|
+
{ enabled },
|
|
5924
|
+
void 0,
|
|
5925
|
+
{ maxRetries: 0, exactUrlOnly: true }
|
|
5926
|
+
);
|
|
5927
|
+
}
|
|
5928
|
+
/** Pause, resume or run a provider's synced objects. */
|
|
5929
|
+
async runConnectorSyncAction(provider, body) {
|
|
5930
|
+
return this.http.post(
|
|
5931
|
+
`/api/v2/ingestion/providers/${encodeURIComponent(provider)}/actions`,
|
|
5932
|
+
body,
|
|
5933
|
+
void 0,
|
|
5934
|
+
{ maxRetries: 0, exactUrlOnly: true }
|
|
5935
|
+
);
|
|
5936
|
+
}
|
|
5787
5937
|
/** Discover and save the ad accounts accessible to the workspace connection. */
|
|
5788
5938
|
async discoverAdAccounts(provider) {
|
|
5789
5939
|
const { path, body } = planAdAccountDiscovery(provider);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkTVGGBQFGjs = require('./chunk-TVGGBQFG.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
var _worker_threads = require('worker_threads');
|
|
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
|
|
|
19
19
|
__init9() {this.quiet = false}
|
|
20
20
|
// --json output is one JSON document: progress never renders under it.
|
|
21
21
|
constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
|
|
22
|
-
this.enabled = enabled && !
|
|
22
|
+
this.enabled = enabled && !_chunkTVGGBQFGjs.isJsonOutputMode.call(void 0, );
|
|
23
23
|
}
|
|
24
24
|
setLogWriter(writer) {
|
|
25
25
|
this.logWriter = writer;
|
|
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
|
|
|
59
59
|
this.logWriter(line);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
62
|
+
if (_chunkTVGGBQFGjs.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BILFWD6F.mjs";
|
|
4
4
|
import {
|
|
5
5
|
maybeReportAutomaticSkillsSyncFailure
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LAQNXNVR.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_MAX_RETRIES,
|
|
9
9
|
DEFAULT_SKILL_AGENTS,
|
|
@@ -18,20 +18,20 @@ import {
|
|
|
18
18
|
sdkCliStateDirPath,
|
|
19
19
|
skillsAgentPathSegment,
|
|
20
20
|
writeSdkSkillsLocalVersion
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-AD47OWTE.mjs";
|
|
22
22
|
import {
|
|
23
23
|
SDK_API_CONTRACT,
|
|
24
24
|
SDK_API_MAJOR,
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
deploymentProtectionHeaders,
|
|
27
27
|
detectAgentRuntime
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-AGDRIXF2.mjs";
|
|
29
29
|
import {
|
|
30
30
|
DeeplineError
|
|
31
31
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
32
32
|
import {
|
|
33
33
|
SDK_RELEASE
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-P7Q27COZ.mjs";
|
|
35
35
|
|
|
36
36
|
// src/compat.ts
|
|
37
37
|
import { randomUUID } from "crypto";
|
|
@@ -4,22 +4,22 @@ import {
|
|
|
4
4
|
resolveUpdatePlan,
|
|
5
5
|
runAutomaticUpdatePlan,
|
|
6
6
|
shouldRunCliAutoUpdate
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-KDPGBC5U.mjs";
|
|
8
8
|
import {
|
|
9
9
|
isCiEnvironment,
|
|
10
10
|
resolveShellSpawn,
|
|
11
11
|
syncSdkSkillsIfNeeded
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-FPKKYS7V.mjs";
|
|
13
13
|
import {
|
|
14
14
|
addJsonNotice,
|
|
15
15
|
isJsonOutputMode
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-LAQNXNVR.mjs";
|
|
17
17
|
import {
|
|
18
18
|
resolveApiKeyForBaseUrl
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-AD47OWTE.mjs";
|
|
20
20
|
import {
|
|
21
21
|
SDK_VERSION
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-AGDRIXF2.mjs";
|
|
23
23
|
|
|
24
24
|
// src/cli/compatibility-catalog.ts
|
|
25
25
|
var readers = /* @__PURE__ */ new WeakMap();
|