deepline 0.3.563 → 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/bundling-sources/shared_libs/plays/extension-bridge.ts +8 -0
- package/dist/cli/auth-AN2KCWG2.js +44 -0
- package/dist/cli/{auth-3YES4ACM.mjs → auth-YKIUCQ2Q.mjs} +5 -5
- package/dist/cli/{billing-NZ2NCOQS.mjs → billing-HK23QHAA.mjs} +9 -9
- package/dist/cli/{billing-L2GDKBXK.js → billing-NIGAUQJF.js} +102 -102
- package/dist/cli/{chunk-UMJWODG7.mjs → chunk-2US3VJXX.mjs} +1 -1
- package/dist/cli/{chunk-HST5XA3B.mjs → chunk-4ENCU2BI.mjs} +2 -2
- package/dist/cli/{chunk-T2RNEBV7.js → chunk-4VKDPTHF.js} +4 -4
- package/dist/cli/{chunk-TX5PQ7KP.js → chunk-5HV2CNXA.js} +10 -10
- package/dist/cli/{chunk-V4KKZGLT.js → chunk-6HCJQ23O.js} +23 -23
- package/dist/cli/{chunk-JVXHVEWX.mjs → chunk-A3EI3A3Q.mjs} +5 -5
- package/dist/cli/{chunk-YDXFVE4V.mjs → chunk-AAOXS3XM.mjs} +152 -2
- package/dist/cli/{chunk-L5QJRMFJ.mjs → chunk-AH2CBDQJ.mjs} +2 -2
- package/dist/cli/{chunk-NCGDBNNF.mjs → chunk-B2FQZ7P4.mjs} +2 -2
- package/dist/cli/{chunk-QGIHGITM.js → chunk-B4FBMREO.js} +3 -3
- package/dist/cli/{chunk-UUEVGLGO.mjs → chunk-BCEXSQPK.mjs} +1 -1
- package/dist/cli/{chunk-VYY6HNOC.js → chunk-BDNVUPDX.js} +2 -2
- package/dist/cli/{search-output-FRRT574G.js → chunk-C5IA2OYE.js} +2 -199
- package/dist/cli/{chunk-K77ANXGU.js → chunk-E73BRM5N.js} +13 -13
- package/dist/cli/{chunk-MGOCWY7J.js → chunk-EPQIA32E.js} +100 -100
- package/dist/cli/{chunk-XWGWVLQQ.mjs → chunk-EXOC3TLA.mjs} +4 -4
- package/dist/cli/{chunk-BP2XRVBA.mjs → chunk-F4ZLUDKW.mjs} +5 -5
- package/dist/cli/{chunk-QOLFZD6Q.js → chunk-FEWBYUUF.js} +2 -2
- package/dist/cli/{chunk-ERT4ZMZT.js → chunk-FWH6QYTE.js} +5 -5
- package/dist/cli/{chunk-LIO7CPM3.js → chunk-FXRSHBRP.js} +159 -9
- package/dist/cli/{chunk-DA24O3ZV.js → chunk-GE62FFN6.js} +3 -3
- package/dist/cli/{chunk-RP2LCS7G.mjs → chunk-GTX2RMQG.mjs} +11 -11
- package/dist/cli/{chunk-G5CY6KI2.js → chunk-H3NH5RJ6.js} +41 -41
- package/dist/cli/{chunk-AYNDNXBJ.mjs → chunk-H4LHB6ES.mjs} +1 -1
- package/dist/cli/{chunk-XTSQ3ZV5.mjs → chunk-IFZA4IGI.mjs} +2 -2
- package/dist/cli/{chunk-NTRTFEI4.js → chunk-IKA37N6Y.js} +26 -26
- package/dist/cli/{chunk-U77PK5R3.js → chunk-J5QAOURJ.js} +20 -20
- package/dist/cli/{chunk-GVRVZQBY.mjs → chunk-JLXLCD6F.mjs} +2 -2
- package/dist/cli/{chunk-O3NLECXL.mjs → chunk-K6RPKBD7.mjs} +1 -1
- package/dist/cli/{chunk-VACBPVIR.mjs → chunk-KOMEYB7H.mjs} +104 -0
- package/dist/cli/{chunk-2MAP42AM.mjs → chunk-LHL6VWJE.mjs} +1 -1
- package/dist/cli/{chunk-XDZZCRUG.mjs → chunk-LKVWMLWI.mjs} +1 -1
- package/dist/cli/{chunk-K5FNC4VL.mjs → chunk-LOV5JGWO.mjs} +2 -2
- package/dist/cli/{search-output-O7FYSGYQ.mjs → chunk-MI5Q5FOD.mjs} +1 -198
- package/dist/cli/{chunk-IICHFEFE.js → chunk-NH3LVGVR.js} +5 -5
- package/dist/cli/{chunk-ZX3UZCWC.mjs → chunk-NOSGGCJ3.mjs} +1 -1
- package/dist/cli/{chunk-5CNHEUGJ.js → chunk-OEVCKW2M.js} +104 -0
- package/dist/cli/{chunk-SJ2LY4V5.js → chunk-OIDETCX2.js} +20 -20
- package/dist/cli/{chunk-H3UIWEXF.js → chunk-P6BVT2OW.js} +2 -2
- package/dist/cli/{chunk-QGNITJYC.js → chunk-PQEWFVJ3.js} +15 -15
- package/dist/cli/{chunk-L5O7MWRZ.mjs → chunk-RULYYQB4.mjs} +5 -5
- package/dist/cli/{chunk-6LPMQPSQ.mjs → chunk-SEWLXJHM.mjs} +2 -2
- package/dist/cli/{chunk-2UW5A57I.js → chunk-SL3IRGAW.js} +9 -9
- package/dist/cli/{chunk-FCRBXLIJ.js → chunk-TCJZQRX6.js} +12 -12
- package/dist/cli/{chunk-POGS26GF.mjs → chunk-U7F4ODVQ.mjs} +1 -1
- package/dist/cli/{chunk-6UHRBEDV.mjs → chunk-UTQ6LQWG.mjs} +3 -3
- package/dist/cli/{chunk-NS56OQUQ.js → chunk-UWMK5DLS.js} +1 -1
- package/dist/cli/{chunk-6U7CIG3C.mjs → chunk-V2TC2ARE.mjs} +4 -4
- package/dist/cli/{chunk-OZC6SSOB.js → chunk-WPVJV23H.js} +7 -7
- package/dist/cli/{chunk-DVWFK676.js → chunk-XNOUOO6G.js} +6 -6
- package/dist/cli/{chunk-XY5DE4TK.mjs → chunk-YD5BBYS2.mjs} +5 -5
- package/dist/cli/{chunk-H2N324LF.mjs → chunk-YGVLCJNY.mjs} +3 -3
- package/dist/cli/{chunk-DFCBNTVQ.mjs → chunk-YIKEVZUQ.mjs} +2 -2
- package/dist/cli/{chunk-4MPLA5RD.js → chunk-ZEKRYFMN.js} +48 -48
- package/dist/cli/{chunk-CH7OVBBJ.js → chunk-ZIKVPGYC.js} +5 -5
- package/dist/cli/{chunk-4KHRPJOW.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-VEZX3RK4.mjs → concurrent-runs-help-WD2EUKO7.mjs} +6 -6
- package/dist/cli/{csv-RJBNLD23.mjs → csv-RM3FOTS5.mjs} +4 -4
- package/dist/cli/{csv-W5C4JCYL.js → csv-UI63ZOMD.js} +13 -13
- package/dist/cli/{db-VVGP2KCM.mjs → db-RIJBJCT7.mjs} +6 -6
- package/dist/cli/{db-GYCRUH4V.js → db-V5SWE3WN.js} +27 -27
- package/dist/cli/{describe-HZW272Y6.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-D37NX6CD.js → executions-2Q23JJSI.js} +8 -8
- package/dist/cli/{executions-N4ZA4ZD5.mjs → executions-XRH267DY.mjs} +6 -6
- package/dist/cli/{feedback-W6CY6UBA.js → feedback-BEHH4KGB.js} +14 -14
- package/dist/cli/{feedback-4PB4ACBV.mjs → feedback-Y5MWMTQ2.mjs} +6 -6
- package/dist/cli/{git-WHIEYIVM.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-PJNDUOWG.js → legacy-noops-USLUHQWW.js} +9 -9
- package/dist/cli/{legacy-noops-YYX2W2WX.mjs → legacy-noops-YUG2HVGQ.mjs} +6 -6
- package/dist/cli/{mcp-APKPI24N.js → mcp-DFLBEEWG.js} +24 -24
- package/dist/cli/{mcp-T32DPP4D.mjs → mcp-X63UPZS7.mjs} +4 -4
- package/dist/cli/{monitors-BY4DJFCF.js → monitors-POG6YUZ4.js} +100 -100
- package/dist/cli/{monitors-DTJD3IUI.mjs → monitors-QGI7QH4K.mjs} +7 -7
- package/dist/cli/{org-2GMHKAQK.js → org-E3NIDN32.js} +121 -121
- package/dist/cli/{org-GQYIJBKO.mjs → org-VAJL4BCS.mjs} +6 -6
- package/dist/cli/{outcomes-3ASEQLIF.mjs → outcomes-FOE35FHM.mjs} +6 -6
- package/dist/cli/{outcomes-4XY4F57P.js → outcomes-SCQFFBXS.js} +14 -14
- package/dist/cli/{play-EX7PB6CI.mjs → play-7N4Z2LEH.mjs} +19 -19
- package/dist/cli/{play-2LDJMIG2.js → play-BGK7PDXO.js} +324 -324
- package/dist/cli/{providers-GAERKWYW.mjs → providers-KDI3B22S.mjs} +6 -6
- package/dist/cli/{providers-IDIFP5PU.js → providers-OK2ES375.js} +9 -9
- package/dist/cli/{quickstart-7NL5YAJF.js → quickstart-HOHFIFVW.js} +6 -6
- package/dist/cli/{quickstart-E2GCIGR4.mjs → quickstart-LHJF7YCP.mjs} +4 -4
- package/dist/cli/{run-2EPOAEJ5.mjs → run-BQIDPU5J.mjs} +23 -23
- package/dist/cli/{run-3CEY5JF3.js → run-K45RGJP4.js} +44 -44
- package/dist/cli/{search-TYRKGVKB.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-5YL7RU2B.mjs → secrets-4MCBJUGL.mjs} +6 -6
- package/dist/cli/{secrets-5W2ZF2JB.js → secrets-LDCXYN33.js} +15 -15
- package/dist/cli/{sessions-VWENSY3G.mjs → sessions-36VI33IL.mjs} +6 -6
- package/dist/cli/sessions-WTQ6QNAU.js +23 -0
- package/dist/cli/{settings-JQOMJTOC.js → settings-3J4FUQPF.js} +85 -85
- package/dist/cli/{settings-W6FCYDJC.mjs → settings-D6L7S4ZC.mjs} +12 -12
- package/dist/cli/{setup-DJIVQUBT.js → setup-L6VH3OR4.js} +49 -49
- package/dist/cli/{setup-3JUQWZTS.mjs → setup-PBQ773AV.mjs} +9 -9
- package/dist/cli/skills-PENWR7KI.js +37 -0
- package/dist/cli/{skills-7JTWCFL3.mjs → skills-ZRTREJY2.mjs} +7 -7
- package/dist/cli/{tools-DRR3KDV2.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-KL43AZPW.mjs → update-ZM4LSW5L.mjs} +9 -9
- package/dist/cli/{views-HX4GM53H.js → views-F4MEME43.js} +21 -21
- package/dist/cli/{views-FFTXTJ7U.mjs → views-W6PVUSE3.mjs} +6 -6
- package/dist/cli/{workflow-R2K6CH2X.js → workflow-37V7F5I4.js} +17 -17
- package/dist/cli/{workflow-QO7BRZLM.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-UC22BJN2.js +0 -44
- package/dist/cli/concurrent-runs-help-NMNGH7QN.js +0 -22
- package/dist/cli/describe-HJ564FPP.js +0 -50
- package/dist/cli/git-LMRN2YR5.js +0 -26
- package/dist/cli/integrations-ASNRHKLO.mjs +0 -129
- package/dist/cli/integrations-HXY5DR6D.js +0 -129
- package/dist/cli/search-ILJXFKNF.js +0 -32
- package/dist/cli/sessions-YMXBFVB3.js +0 -23
- package/dist/cli/skills-T36PD3IA.js +0 -37
- package/dist/cli/tools-X53FZHIC.js +0 -57
- package/dist/cli/update-BISEE3LC.js +0 -37
|
@@ -3,16 +3,16 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-IFZA4IGI.mjs";
|
|
7
7
|
import {
|
|
8
8
|
errorToJsonPayload,
|
|
9
9
|
printCommandEnvelope,
|
|
10
10
|
resolveSdkCliFailureExitCode
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JLXLCD6F.mjs";
|
|
12
12
|
import {
|
|
13
13
|
resolveConfig,
|
|
14
14
|
sdkCliStateDirPath
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2US3VJXX.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-FVT2FPUN.mjs");
|
|
138
138
|
const searches = [];
|
|
139
139
|
const chunks = [];
|
|
140
140
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-K6RPKBD7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
maybeReportAutomaticSkillsSyncFailure
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JLXLCD6F.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-2US3VJXX.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-LKVWMLWI.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-H4LHB6ES.mjs";
|
|
35
35
|
|
|
36
36
|
// src/compat.ts
|
|
37
37
|
import { randomUUID } from "crypto";
|
|
@@ -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 _chunkJ5QAOURJjs = require('./chunk-J5QAOURJ.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
|
+
_chunkJ5QAOURJjs.printCommandEnvelope.call(void 0,
|
|
61
61
|
{ ok: false, code, exitCode: 2, message },
|
|
62
62
|
{ json: true }
|
|
63
63
|
);
|
|
@@ -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 _chunkFXRSHBRPjs = require('./chunk-FXRSHBRP.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkGE62FFN6js = require('./chunk-GE62FFN6.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 = _chunkGE62FFN6js.resolveConfig.call(void 0, options);
|
|
141
|
+
return new (0, _chunkFXRSHBRPjs.PlayClient)(
|
|
142
|
+
new (0, _chunkGE62FFN6js.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 _chunk4VKDPTHFjs = require('./chunk-4VKDPTHF.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(_chunk4VKDPTHFjs.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
|
+
[_chunk4VKDPTHFjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1354
|
+
...receivers ? { [_chunk4VKDPTHFjs.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, [_chunk4VKDPTHFjs.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(_chunk4VKDPTHFjs.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 { [_chunk4VKDPTHFjs.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(_chunk4VKDPTHFjs.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,7 +1,7 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk4VKDPTHFjs = require('./chunk-4VKDPTHF.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
|
|
@@ -771,7 +771,7 @@ function readSkillsVersionFile(path) {
|
|
|
771
771
|
}
|
|
772
772
|
}
|
|
773
773
|
function resolveAutoSyncSkillAgents() {
|
|
774
|
-
switch (
|
|
774
|
+
switch (_chunk4VKDPTHFjs.detectAgentRuntime.call(void 0, )) {
|
|
775
775
|
case "codex":
|
|
776
776
|
return ["codex"];
|
|
777
777
|
case "claude_code":
|
|
@@ -841,7 +841,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
|
|
|
841
841
|
}
|
|
842
842
|
|
|
843
843
|
// src/http.ts
|
|
844
|
-
var HttpClient2 = class extends
|
|
844
|
+
var HttpClient2 = class extends _chunk4VKDPTHFjs.HttpClient {
|
|
845
845
|
constructor(config) {
|
|
846
846
|
super(config, readSdkSkillsLocalVersion);
|
|
847
847
|
}
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse,
|
|
4
4
|
writeExecutionOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-LHL6VWJE.mjs";
|
|
6
6
|
import {
|
|
7
7
|
registerIntegrationBalanceCommand,
|
|
8
8
|
registerIntegrationConnectCommand,
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
registerLegacyHubSpotMembersCommand,
|
|
12
12
|
registerLegacyWorkspaceConnectionCommand,
|
|
13
13
|
registerWorkspaceConnectionListCommand
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-AH2CBDQJ.mjs";
|
|
15
15
|
import {
|
|
16
16
|
recentSearchRef,
|
|
17
17
|
registerDeprecatedSearchCommand
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-EXOC3TLA.mjs";
|
|
19
19
|
import {
|
|
20
20
|
Capability,
|
|
21
21
|
arrayField,
|
|
@@ -57,29 +57,29 @@ import {
|
|
|
57
57
|
} from "./chunk-FIVKWNMT.mjs";
|
|
58
58
|
import {
|
|
59
59
|
DeeplineClient
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-IFZA4IGI.mjs";
|
|
61
61
|
import {
|
|
62
62
|
validateExecutionIdempotencyKey
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-AAOXS3XM.mjs";
|
|
64
64
|
import {
|
|
65
65
|
beginToolExecuteCommand,
|
|
66
66
|
getToolExecuteInvocationId,
|
|
67
67
|
maybeAutoUpdateAndRelaunch,
|
|
68
68
|
registerCompatibilityCatalog,
|
|
69
69
|
runToolExecuteStage
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-RULYYQB4.mjs";
|
|
71
71
|
import {
|
|
72
72
|
isCliTraceEnabled,
|
|
73
73
|
recordCliTrace,
|
|
74
74
|
resolveCliMaintenancePolicy
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-NOSGGCJ3.mjs";
|
|
76
76
|
import {
|
|
77
77
|
checkSdkCompatibility,
|
|
78
78
|
enforceSdkCompatibilityResponse,
|
|
79
79
|
flushDeferredSkillsSyncNotices,
|
|
80
80
|
requireSdkCompatibility,
|
|
81
81
|
syncSdkSkillsIfNeeded
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-F4ZLUDKW.mjs";
|
|
83
83
|
import {
|
|
84
84
|
errorToJsonPayload,
|
|
85
85
|
printCommandEnvelope,
|
|
@@ -88,12 +88,12 @@ import {
|
|
|
88
88
|
printJsonError,
|
|
89
89
|
renderCommandEnvelopeText,
|
|
90
90
|
shouldEmitJson
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-JLXLCD6F.mjs";
|
|
92
92
|
import {
|
|
93
93
|
readSdkSkillsLocalVersion,
|
|
94
94
|
resolveConfig,
|
|
95
95
|
sdkCliStateDirPath
|
|
96
|
-
} from "./chunk-
|
|
96
|
+
} from "./chunk-2US3VJXX.mjs";
|
|
97
97
|
import {
|
|
98
98
|
DeeplineError
|
|
99
99
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
@@ -1052,7 +1052,7 @@ Examples:
|
|
|
1052
1052
|
process.exitCode = await narrowView();
|
|
1053
1053
|
return;
|
|
1054
1054
|
}
|
|
1055
|
-
const { describeAnything } = await import("./describe-
|
|
1055
|
+
const { describeAnything } = await import("./describe-HZC4GOLO.mjs");
|
|
1056
1056
|
process.exitCode = await describeAnything(
|
|
1057
1057
|
toolId,
|
|
1058
1058
|
{
|