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,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SR7IUISM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AD47OWTE.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-K3DEHKV7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-E44TMICV.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
} from "./chunk-BM4GE67C.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PLXQIHRM.mjs";
|
|
18
18
|
import {
|
|
19
19
|
failureReportHeaders,
|
|
20
20
|
isFailureReportingDisabled,
|
|
21
21
|
printCommandEnvelope
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-LAQNXNVR.mjs";
|
|
23
23
|
import {
|
|
24
24
|
autoDetectBaseUrl,
|
|
25
25
|
resolveApiKeyForBaseUrl
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-AD47OWTE.mjs";
|
|
27
27
|
|
|
28
28
|
// src/cli/commands/describe.ts
|
|
29
29
|
import { writeFileSync } from "fs";
|
|
@@ -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; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkTVGGBQFGjs = require('./chunk-TVGGBQFG.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/feedback-preferences.ts
|
|
6
6
|
|
|
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
|
|
|
57
57
|
const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
|
|
58
58
|
const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
|
|
59
59
|
if (options.json) {
|
|
60
|
-
|
|
60
|
+
_chunkTVGGBQFGjs.printCommandEnvelope.call(void 0,
|
|
61
61
|
{ ok: false, code, exitCode: 2, message },
|
|
62
62
|
{ json: true }
|
|
63
63
|
);
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
RETAINED_PIPELINE_RECEIVERS_HEADER,
|
|
38
38
|
RUNTIME_ENVIRONMENT_TOKEN_HEADER,
|
|
39
39
|
SDK_API_MAJOR
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-AGDRIXF2.mjs";
|
|
41
41
|
import {
|
|
42
42
|
CustomerDbQueryOutcomeUnknownError
|
|
43
43
|
} from "./chunk-ASB47RXJ.mjs";
|
|
@@ -48,6 +48,123 @@ import {
|
|
|
48
48
|
ToolExecutionError
|
|
49
49
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
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 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 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 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 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 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 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
|
|
|
@@ -5784,6 +5903,37 @@ var DeeplineClient = 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,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 _chunkRUVYG5TTjs = require('./chunk-RUVYG5TT.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkTVGGBQFGjs = require('./chunk-TVGGBQFG.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
var
|
|
12
|
+
var _chunk5J6VEC75js = require('./chunk-5J6VEC75.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 _chunk5J6VEC75js.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 = _chunk5J6VEC75js.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 : _chunk5J6VEC75js.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(_chunk5J6VEC75js.agentSessionIdFromEnvironment.call(void 0, process.env, agentRuntime), () => ( (agentRuntime === "claude_cowork" || agentRuntime === "claude_code" ? _nullishCoalesce(_optionalChain([_chunk5J6VEC75js.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 = _chunk5J6VEC75js.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 } = _chunkTVGGBQFGjs.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 (_chunkRUVYG5TTjs.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
|
+
_chunkTVGGBQFGjs.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
|
+
_chunkTVGGBQFGjs.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
|
+
_chunkTVGGBQFGjs.printCommandEnvelope.call(void 0,
|
|
706
706
|
{
|
|
707
707
|
ok: true,
|
|
708
708
|
file: outputPath,
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkZYXQIOWEjs = require('./chunk-ZYXQIOWE.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunk5J6VEC75js = require('./chunk-5J6VEC75.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -331,7 +331,7 @@ function buildEnvironmentContext() {
|
|
|
331
331
|
node_version: process.version,
|
|
332
332
|
runtime: "Node.js",
|
|
333
333
|
hostname: _os.hostname.call(void 0, ),
|
|
334
|
-
agent_runtime:
|
|
334
|
+
agent_runtime: _chunk5J6VEC75js.detectAgentRuntime.call(void 0, )
|
|
335
335
|
};
|
|
336
336
|
for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
|
|
337
337
|
const normalized = _optionalChain([process, 'access', _6 => _6.env, 'access', _7 => _7[key], 'optionalAccess', _8 => _8.trim, 'call', _9 => _9()]);
|
|
@@ -352,18 +352,18 @@ function buildEnvironmentContext() {
|
|
|
352
352
|
return context;
|
|
353
353
|
}
|
|
354
354
|
function failureReportHeaders(apiKey) {
|
|
355
|
-
const agentSessionId =
|
|
355
|
+
const agentSessionId = _chunk5J6VEC75js.agentSessionIdFromEnvironment.call(void 0, );
|
|
356
356
|
return {
|
|
357
|
-
...
|
|
357
|
+
..._chunk5J6VEC75js.deploymentProtectionHeaders.call(void 0, ),
|
|
358
358
|
...agentSessionId ? { "X-Deepline-Agent-Session-Id": agentSessionId } : {},
|
|
359
359
|
Authorization: `Bearer ${apiKey}`,
|
|
360
360
|
"Content-Type": "application/json",
|
|
361
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
361
|
+
"User-Agent": `deepline-ts-sdk/${_chunk5J6VEC75js.SDK_VERSION}`,
|
|
362
362
|
"X-Deepline-Client-Family": "sdk",
|
|
363
363
|
"X-Deepline-CLI-Family": "sdk",
|
|
364
|
-
"X-Deepline-Agent-Runtime":
|
|
365
|
-
"X-Deepline-CLI-Version":
|
|
366
|
-
"X-Deepline-SDK-Version":
|
|
364
|
+
"X-Deepline-Agent-Runtime": _chunk5J6VEC75js.detectAgentRuntime.call(void 0, ),
|
|
365
|
+
"X-Deepline-CLI-Version": _chunk5J6VEC75js.SDK_VERSION,
|
|
366
|
+
"X-Deepline-SDK-Version": _chunk5J6VEC75js.SDK_VERSION
|
|
367
367
|
};
|
|
368
368
|
}
|
|
369
369
|
async function postFailureReport(input) {
|
|
@@ -391,7 +391,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
391
391
|
if (isFailureReportingDisabled()) return false;
|
|
392
392
|
let apiKey = "";
|
|
393
393
|
try {
|
|
394
|
-
apiKey =
|
|
394
|
+
apiKey = _chunkZYXQIOWEjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
395
395
|
} catch (e2) {
|
|
396
396
|
return false;
|
|
397
397
|
}
|
|
@@ -418,7 +418,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
|
|
|
418
418
|
failure_code: failureCode2,
|
|
419
419
|
failure_stage: failureStage,
|
|
420
420
|
error_body: "Automatic Deepline skills installation failed.",
|
|
421
|
-
cli_version:
|
|
421
|
+
cli_version: _chunk5J6VEC75js.SDK_VERSION,
|
|
422
422
|
context: {
|
|
423
423
|
environment: buildEnvironmentContext(),
|
|
424
424
|
skills_sync: {
|
|
@@ -538,7 +538,7 @@ function buildFailureReport(input) {
|
|
|
538
538
|
failure_kind: failureKind,
|
|
539
539
|
failure_code: code,
|
|
540
540
|
failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
|
|
541
|
-
cli_version:
|
|
541
|
+
cli_version: _chunk5J6VEC75js.SDK_VERSION,
|
|
542
542
|
context: {
|
|
543
543
|
base_url: redactFailureText(input.baseUrl, 400),
|
|
544
544
|
command_summary: sanitizeCommand(input.argv),
|
|
@@ -558,8 +558,8 @@ async function maybeReportSdkCliFailure(input) {
|
|
|
558
558
|
if (isServerLoggedPlayRunStartFailure(input)) return false;
|
|
559
559
|
const exitCode = resolvedExitCode(input);
|
|
560
560
|
if (!shouldReport({ exitCode, error: input.error })) return false;
|
|
561
|
-
const baseUrl =
|
|
562
|
-
const apiKey =
|
|
561
|
+
const baseUrl = _chunkZYXQIOWEjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
562
|
+
const apiKey = _chunkZYXQIOWEjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
563
563
|
if (!apiKey) return false;
|
|
564
564
|
return postFailureReport({
|
|
565
565
|
baseUrl,
|
|
@@ -914,8 +914,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
|
|
|
914
914
|
var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
|
|
915
915
|
var defaultBrowserCommandRunner = childProcess;
|
|
916
916
|
function getAuthedHttpClient() {
|
|
917
|
-
const config =
|
|
918
|
-
return { config, http: new (0,
|
|
917
|
+
const config = _chunkZYXQIOWEjs.resolveConfig.call(void 0, );
|
|
918
|
+
return { config, http: new (0, _chunkZYXQIOWEjs.HttpClient)(config) };
|
|
919
919
|
}
|
|
920
920
|
function stableOsUserId() {
|
|
921
921
|
try {
|
|
@@ -1256,7 +1256,7 @@ function collectLocalEnvInfo() {
|
|
|
1256
1256
|
os: `${process.platform} ${process.arch}`,
|
|
1257
1257
|
node_version: process.version,
|
|
1258
1258
|
home_dir: homeDir,
|
|
1259
|
-
agent_runtime:
|
|
1259
|
+
agent_runtime: _chunk5J6VEC75js.detectAgentRuntime.call(void 0, )
|
|
1260
1260
|
};
|
|
1261
1261
|
const env = process.env;
|
|
1262
1262
|
const optional = {
|
|
@@ -1503,9 +1503,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
|
|
|
1503
1503
|
}
|
|
1504
1504
|
function withAgentCommandContext(value) {
|
|
1505
1505
|
const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
|
|
1506
|
-
return
|
|
1506
|
+
return _chunk5J6VEC75js.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
|
|
1507
1507
|
...valueRecord,
|
|
1508
|
-
command_context:
|
|
1508
|
+
command_context: _chunkZYXQIOWEjs.resolveCliCommandContext.call(void 0, )
|
|
1509
1509
|
} : value;
|
|
1510
1510
|
}
|
|
1511
1511
|
function printJson(value, fields, options = {}) {
|
|
@@ -1677,7 +1677,7 @@ function errorToJsonPayload(error) {
|
|
|
1677
1677
|
...upstreamResponse ? { upstreamResponse } : {},
|
|
1678
1678
|
...Object.keys(details).length > 0 ? { details } : {}
|
|
1679
1679
|
};
|
|
1680
|
-
const retry = cliRetryGuidance(payloadError,
|
|
1680
|
+
const retry = cliRetryGuidance(payloadError, _chunk5J6VEC75js.readToolFailureHint.call(void 0, error));
|
|
1681
1681
|
return {
|
|
1682
1682
|
ok: false,
|
|
1683
1683
|
status: "failed",
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PLXQIHRM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-LAQNXNVR.mjs";
|
|
7
7
|
|
|
8
8
|
// src/cli/commands/integration-commands.ts
|
|
9
9
|
import { Option } from "commander";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkTVGGBQFGjs = require('./chunk-TVGGBQFG.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/maintenance-policy.ts
|
|
6
6
|
var _commander = require('commander');
|
|
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
|
|
|
33
33
|
sinceStartMs: now - cliTraceStartedAt,
|
|
34
34
|
...event
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_chunkTVGGBQFGjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-CSXMBYEW.mjs";
|
|
4
4
|
import {
|
|
5
5
|
enforceSdkCompatibilityResponse,
|
|
6
6
|
flushDeferredSkillsSyncNotices,
|
|
7
7
|
requireSdkCompatibility
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FPKKYS7V.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -1,16 +1,16 @@
|
|
|
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; }
|
|
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/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunkCXK6ZEOQjs.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
12
|
+
const config = _chunkZYXQIOWEjs.resolveConfig.call(void 0, options);
|
|
13
|
+
super(config, new (0, _chunkZYXQIOWEjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PLXQIHRM.mjs";
|
|
7
7
|
import {
|
|
8
8
|
errorToJsonPayload,
|
|
9
9
|
printCommandEnvelope,
|
|
10
10
|
resolveSdkCliFailureExitCode
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-LAQNXNVR.mjs";
|
|
12
12
|
import {
|
|
13
13
|
resolveConfig,
|
|
14
14
|
sdkCliStateDirPath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-AD47OWTE.mjs";
|
|
16
16
|
|
|
17
17
|
// src/cli/commands/search.ts
|
|
18
18
|
import { Option } from "commander";
|
|
@@ -134,7 +134,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
134
134
|
}
|
|
135
135
|
const client = new DeeplineClient();
|
|
136
136
|
const json = options.json === true;
|
|
137
|
-
const renderer = json ? void 0 : await import("./search-output-
|
|
137
|
+
const renderer = json ? void 0 : await import("./search-output-IKVGU3MZ.mjs");
|
|
138
138
|
const searches = [];
|
|
139
139
|
const chunks = [];
|
|
140
140
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -1,13 +1,13 @@
|
|
|
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; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkZ5BLACQ3js = require('./chunk-Z5BLACQ3.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
var _chunkH4ALLC2Xjs = require('./chunk-H4ALLC2X.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkZYXQIOWEjs = require('./chunk-ZYXQIOWE.js');
|
|
11
11
|
|
|
12
12
|
// src/cli/concurrent-runs-help.ts
|
|
13
13
|
var CONCURRENT_RUNS_HELP_COMMANDS = /* @__PURE__ */ new Set([
|
|
@@ -24,11 +24,11 @@ function concurrentRunsLine(payload) {
|
|
|
24
24
|
return plans ? `${here} Plan limits: ${plans}.` : here;
|
|
25
25
|
}
|
|
26
26
|
async function concurrentRunsHelpStatus(timeoutMs = 2e3) {
|
|
27
|
-
const baseUrl =
|
|
28
|
-
const apiKey =
|
|
27
|
+
const baseUrl = _chunkZYXQIOWEjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
28
|
+
const apiKey = _chunkZYXQIOWEjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
29
29
|
if (!apiKey) return "";
|
|
30
30
|
try {
|
|
31
|
-
const { status, data } = await
|
|
31
|
+
const { status, data } = await _chunkZ5BLACQ3js.httpJson.call(void 0,
|
|
32
32
|
"GET",
|
|
33
33
|
`${baseUrl}/api/v2/billing/entitlements`,
|
|
34
34
|
apiKey,
|