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
package/dist/cli/index.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
usesInlinePlayAdmission
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-VHRYJACF.mjs";
|
|
5
5
|
import {
|
|
6
6
|
feedbackSendRestriction
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AIF7ZHCF.mjs";
|
|
8
8
|
import {
|
|
9
9
|
beginToolExecuteCommand,
|
|
10
10
|
compatibilityCatalog,
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
maybeAutoUpdateAndRelaunch,
|
|
14
14
|
runDeferredAutoUpdate,
|
|
15
15
|
runToolExecuteStage
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FUTXULX5.mjs";
|
|
17
17
|
import {
|
|
18
18
|
isCliTraceEnabled,
|
|
19
19
|
parseCliMaintenancePolicy,
|
|
20
20
|
recordCliTrace,
|
|
21
21
|
resolveCliMaintenancePolicy,
|
|
22
22
|
traceCliSpan
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-CSXMBYEW.mjs";
|
|
24
|
+
import "./chunk-KDPGBC5U.mjs";
|
|
25
|
+
import "./chunk-MEBKPVHE.mjs";
|
|
26
|
+
import "./chunk-3PNU3FEI.mjs";
|
|
27
27
|
import {
|
|
28
28
|
SDK_COMPATIBILITY_FAST_DEADLINE_MS,
|
|
29
29
|
SKILLS_AUTO_SYNC_COMMAND,
|
|
@@ -35,15 +35,15 @@ import {
|
|
|
35
35
|
readFreshCleanCompatibility,
|
|
36
36
|
readTrustedCleanCompatibility,
|
|
37
37
|
syncSdkSkillsIfNeeded
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-FPKKYS7V.mjs";
|
|
39
39
|
import {
|
|
40
40
|
createCliProgress
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-BILFWD6F.mjs";
|
|
42
42
|
import {
|
|
43
43
|
commandDocKey,
|
|
44
44
|
helpDetailFromArgv,
|
|
45
45
|
renderCommandExplanation
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-KOMEYB7H.mjs";
|
|
47
47
|
import "./chunk-2RIKOPIM.mjs";
|
|
48
48
|
import "./chunk-LRZGS6RZ.mjs";
|
|
49
49
|
import "./chunk-7I4B6V2S.mjs";
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
sanitizeCommand,
|
|
66
66
|
shouldEmitJson,
|
|
67
67
|
takeSilentJsonFailureMessage
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-LAQNXNVR.mjs";
|
|
69
69
|
import {
|
|
70
70
|
HttpClient,
|
|
71
71
|
autoDetectBaseUrl,
|
|
@@ -73,19 +73,19 @@ import {
|
|
|
73
73
|
resolveApiKeyForBaseUrl,
|
|
74
74
|
resolveBaseUrlOnly,
|
|
75
75
|
resolveConfig
|
|
76
|
-
} from "./chunk-
|
|
76
|
+
} from "./chunk-AD47OWTE.mjs";
|
|
77
77
|
import {
|
|
78
78
|
SDK_VERSION,
|
|
79
79
|
agentSessionIdFromEnvironment,
|
|
80
80
|
connectionFailureMessage
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-AGDRIXF2.mjs";
|
|
82
82
|
import {
|
|
83
83
|
AuthError
|
|
84
84
|
} from "./chunk-ASB47RXJ.mjs";
|
|
85
85
|
import "./chunk-DLIRSHV6.mjs";
|
|
86
86
|
import "./chunk-Z3A2S3QM.mjs";
|
|
87
87
|
import "./chunk-2MGZAI54.mjs";
|
|
88
|
-
import "./chunk-
|
|
88
|
+
import "./chunk-P7Q27COZ.mjs";
|
|
89
89
|
import "./chunk-WZYKRD7T.mjs";
|
|
90
90
|
import "./chunk-5JPKRDFC.mjs";
|
|
91
91
|
import "./chunk-KRD6H754.mjs";
|
|
@@ -166,68 +166,68 @@ import { Command as Command2 } from "commander";
|
|
|
166
166
|
var COMMAND_GROUPS = [
|
|
167
167
|
{
|
|
168
168
|
names: ["auth"],
|
|
169
|
-
load: async () => (await import("./auth-
|
|
169
|
+
load: async () => (await import("./auth-HSFDBHVB.mjs")).registerAuthCommands
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
172
|
names: ["providers"],
|
|
173
|
-
load: async () => (await import("./providers-
|
|
173
|
+
load: async () => (await import("./providers-WJBBSM76.mjs")).registerProviderCommands
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
176
|
names: ["integrations"],
|
|
177
|
-
load: async () => (await import("./integrations-
|
|
177
|
+
load: async () => (await import("./integrations-LS73NWU7.mjs")).registerIntegrationsCommands
|
|
178
178
|
},
|
|
179
179
|
{
|
|
180
180
|
names: ["search"],
|
|
181
|
-
load: async () => (await import("./search-
|
|
181
|
+
load: async () => (await import("./search-MJAL37NP.mjs")).registerSearchCommand
|
|
182
182
|
},
|
|
183
183
|
{
|
|
184
184
|
names: ["describe"],
|
|
185
|
-
load: async () => (await import("./describe-
|
|
185
|
+
load: async () => (await import("./describe-P5N56GPA.mjs")).registerDescribeCommand
|
|
186
186
|
},
|
|
187
187
|
{
|
|
188
188
|
names: ["run"],
|
|
189
|
-
load: async () => (await import("./run-
|
|
189
|
+
load: async () => (await import("./run-TSOLGWTK.mjs")).registerRunCommand
|
|
190
190
|
},
|
|
191
191
|
{
|
|
192
192
|
names: ["tools"],
|
|
193
|
-
load: async () => (await import("./tools-
|
|
193
|
+
load: async () => (await import("./tools-MITGT2JM.mjs")).registerToolsCommands
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
196
|
names: ["executions"],
|
|
197
|
-
load: async () => (await import("./executions-
|
|
197
|
+
load: async () => (await import("./executions-EGEQZV5V.mjs")).registerExecutionsCommands
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
200
|
names: ["plays", "runs"],
|
|
201
|
-
load: async () => (await import("./play-
|
|
201
|
+
load: async () => (await import("./play-YQS3OI2Q.mjs")).registerPlayCommands
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
names: ["sessions"],
|
|
205
|
-
load: async () => (await import("./sessions-
|
|
205
|
+
load: async () => (await import("./sessions-S2O24LRW.mjs")).registerSessionsCommands
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
names: ["workflows"],
|
|
209
|
-
load: async () => (await import("./workflow-
|
|
209
|
+
load: async () => (await import("./workflow-GBXWHYDL.mjs")).registerWorkflowCommands
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
212
|
names: ["outcomes"],
|
|
213
|
-
load: async () => (await import("./outcomes-
|
|
213
|
+
load: async () => (await import("./outcomes-AE6ZPY6O.mjs")).registerOutcomesCommands
|
|
214
214
|
},
|
|
215
215
|
{
|
|
216
216
|
names: ["views"],
|
|
217
|
-
load: async () => (await import("./views-
|
|
217
|
+
load: async () => (await import("./views-7ZMS2B55.mjs")).registerViewsCommands
|
|
218
218
|
},
|
|
219
219
|
{
|
|
220
220
|
names: ["secrets"],
|
|
221
|
-
load: async () => (await import("./secrets-
|
|
221
|
+
load: async () => (await import("./secrets-4KYGVJJJ.mjs")).registerSecretsCommands
|
|
222
222
|
},
|
|
223
223
|
{
|
|
224
224
|
names: ["mcp"],
|
|
225
|
-
load: async () => (await import("./mcp-
|
|
225
|
+
load: async () => (await import("./mcp-4IHB3LCG.mjs")).registerMcpCommands
|
|
226
226
|
},
|
|
227
227
|
{
|
|
228
228
|
names: ["settings", "notifications"],
|
|
229
229
|
load: async () => {
|
|
230
|
-
const commands = await import("./settings-
|
|
230
|
+
const commands = await import("./settings-NSZNSX67.mjs");
|
|
231
231
|
return (p) => {
|
|
232
232
|
commands.registerSettingsCommands(p);
|
|
233
233
|
commands.registerNotificationCommands(p);
|
|
@@ -236,51 +236,51 @@ var COMMAND_GROUPS = [
|
|
|
236
236
|
},
|
|
237
237
|
{
|
|
238
238
|
names: ["billing"],
|
|
239
|
-
load: async () => (await import("./billing-
|
|
239
|
+
load: async () => (await import("./billing-6T7HH6DE.mjs")).registerBillingCommands
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
242
|
names: ["monitors"],
|
|
243
|
-
load: async () => (await import("./monitors-
|
|
243
|
+
load: async () => (await import("./monitors-K46XW6QH.mjs")).registerMonitorsCommands
|
|
244
244
|
},
|
|
245
245
|
{
|
|
246
246
|
names: ["org"],
|
|
247
|
-
load: async () => (await import("./org-
|
|
247
|
+
load: async () => (await import("./org-H3GYWKFC.mjs")).registerOrgCommands
|
|
248
248
|
},
|
|
249
249
|
{
|
|
250
250
|
names: ["git", "projects", "deployments"],
|
|
251
|
-
load: async () => (await import("./git-
|
|
251
|
+
load: async () => (await import("./git-4CQQWLZP.mjs")).registerGitCommands
|
|
252
252
|
},
|
|
253
253
|
{
|
|
254
254
|
names: ["csv"],
|
|
255
|
-
load: async () => (await import("./csv-
|
|
255
|
+
load: async () => (await import("./csv-KAZRKSLV.mjs")).registerCsvCommands
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
258
|
names: ["db"],
|
|
259
|
-
load: async () => (await import("./db-
|
|
259
|
+
load: async () => (await import("./db-XQQAVLWO.mjs")).registerDbCommands
|
|
260
260
|
},
|
|
261
261
|
{
|
|
262
262
|
names: ["feedback"],
|
|
263
|
-
load: async () => (await import("./feedback-
|
|
263
|
+
load: async () => (await import("./feedback-IWUJAF6O.mjs")).registerFeedbackCommands
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
266
|
names: ["enrich", "session", "backend"],
|
|
267
|
-
load: async () => (await import("./legacy-noops-
|
|
267
|
+
load: async () => (await import("./legacy-noops-V45TJGK3.mjs")).registerDeprecatedCommands
|
|
268
268
|
},
|
|
269
269
|
{
|
|
270
270
|
names: ["update"],
|
|
271
|
-
load: async () => (await import("./update-
|
|
271
|
+
load: async () => (await import("./update-YXASQQWE.mjs")).registerUpdateCommand
|
|
272
272
|
},
|
|
273
273
|
{
|
|
274
274
|
names: ["skills", "skills-auto-sync"],
|
|
275
|
-
load: async () => (await import("./skills-
|
|
275
|
+
load: async () => (await import("./skills-JMSX77S3.mjs")).registerSkillsCommand
|
|
276
276
|
},
|
|
277
277
|
{
|
|
278
278
|
names: ["setup", "doctor"],
|
|
279
|
-
load: async () => (await import("./setup-
|
|
279
|
+
load: async () => (await import("./setup-3VTTPHKI.mjs")).registerSetupCommands
|
|
280
280
|
},
|
|
281
281
|
{
|
|
282
282
|
names: ["quickstart"],
|
|
283
|
-
load: async () => (await import("./quickstart-
|
|
283
|
+
load: async () => (await import("./quickstart-TYMROAQG.mjs")).registerQuickstartCommands
|
|
284
284
|
}
|
|
285
285
|
];
|
|
286
286
|
async function registerDeeplineCommandGroups(program, requestedCommand) {
|
|
@@ -648,7 +648,7 @@ async function runPlayRunnerHealthCheck() {
|
|
|
648
648
|
});
|
|
649
649
|
let exitCode = 1;
|
|
650
650
|
try {
|
|
651
|
-
const { handlePlayRun } = await import("./play-
|
|
651
|
+
const { handlePlayRun } = await import("./play-YQS3OI2Q.mjs");
|
|
652
652
|
exitCode = await handlePlayRun([
|
|
653
653
|
file,
|
|
654
654
|
"--input",
|
|
@@ -1123,7 +1123,7 @@ Examples:
|
|
|
1123
1123
|
return;
|
|
1124
1124
|
}
|
|
1125
1125
|
try {
|
|
1126
|
-
const { httpJson, readStatusBanner, statusBannerLine } = await import("./auth-
|
|
1126
|
+
const { httpJson, readStatusBanner, statusBannerLine } = await import("./auth-HSFDBHVB.mjs");
|
|
1127
1127
|
const baseUrl = resolveBaseUrlOnly();
|
|
1128
1128
|
const [{ status, data }, banner] = await Promise.all([
|
|
1129
1129
|
httpJson("GET", `${baseUrl}/api/v2/health`, null),
|
|
@@ -1211,13 +1211,13 @@ Examples:
|
|
|
1211
1211
|
const helpArgs = process.argv.slice(2);
|
|
1212
1212
|
const helpPositionals = helpArgs.filter((arg) => !arg.startsWith("-"));
|
|
1213
1213
|
if (helpPositionals.length === 0 ? helpArgs.includes("--help") || helpArgs.includes("-h") : helpPositionals.length === 1 && helpPositionals[0] === "help") {
|
|
1214
|
-
const { authStatusLine } = await import("./auth-
|
|
1214
|
+
const { authStatusLine } = await import("./auth-HSFDBHVB.mjs");
|
|
1215
1215
|
rootHelpStatus = `Version: ${SDK_VERSION}
|
|
1216
1216
|
${await authStatusLine()}
|
|
1217
1217
|
`;
|
|
1218
1218
|
}
|
|
1219
1219
|
if ((helpArgs.includes("--help") || helpArgs.includes("-h")) && helpPositionals.length >= 2) {
|
|
1220
|
-
const { CONCURRENT_RUNS_HELP_COMMANDS, concurrentRunsHelpStatus: read } = await import("./concurrent-runs-help-
|
|
1220
|
+
const { CONCURRENT_RUNS_HELP_COMMANDS, concurrentRunsHelpStatus: read } = await import("./concurrent-runs-help-TNMN4C74.mjs");
|
|
1221
1221
|
if (CONCURRENT_RUNS_HELP_COMMANDS.has(helpPositionals.slice(0, 2).join(" "))) {
|
|
1222
1222
|
await ensureTransport();
|
|
1223
1223
|
concurrentRunsHelpStatus = await read();
|
|
@@ -0,0 +1,284 @@
|
|
|
1
|
+
import {
|
|
2
|
+
formatTextTable
|
|
3
|
+
} from "./chunk-MI5Q5FOD.mjs";
|
|
4
|
+
import {
|
|
5
|
+
printIntegrationResult,
|
|
6
|
+
registerIntegrationBalanceCommand,
|
|
7
|
+
registerIntegrationConnectCommand,
|
|
8
|
+
registerWorkspaceConnectionListCommand
|
|
9
|
+
} from "./chunk-TYKMBPNE.mjs";
|
|
10
|
+
import {
|
|
11
|
+
DeeplineClient
|
|
12
|
+
} from "./chunk-PLXQIHRM.mjs";
|
|
13
|
+
import {
|
|
14
|
+
AD_ACCOUNT_DISCOVERY_PROVIDERS,
|
|
15
|
+
planAdAccountDiscovery
|
|
16
|
+
} from "./chunk-SR7IUISM.mjs";
|
|
17
|
+
import "./chunk-FZHMNK6F.mjs";
|
|
18
|
+
import "./chunk-5TYLSS4Q.mjs";
|
|
19
|
+
import "./chunk-PSX3WHIH.mjs";
|
|
20
|
+
import "./chunk-LAQNXNVR.mjs";
|
|
21
|
+
import "./chunk-AD47OWTE.mjs";
|
|
22
|
+
import "./chunk-AGDRIXF2.mjs";
|
|
23
|
+
import {
|
|
24
|
+
AuthError
|
|
25
|
+
} from "./chunk-ASB47RXJ.mjs";
|
|
26
|
+
import "./chunk-DLIRSHV6.mjs";
|
|
27
|
+
import {
|
|
28
|
+
DeeplineError
|
|
29
|
+
} from "./chunk-Z3A2S3QM.mjs";
|
|
30
|
+
import "./chunk-2MGZAI54.mjs";
|
|
31
|
+
import "./chunk-P7Q27COZ.mjs";
|
|
32
|
+
import "./chunk-WZYKRD7T.mjs";
|
|
33
|
+
import "./chunk-KRD6H754.mjs";
|
|
34
|
+
|
|
35
|
+
// src/cli/commands/integrations.ts
|
|
36
|
+
import { Argument } from "commander";
|
|
37
|
+
|
|
38
|
+
// src/cli/commands/connector-sync.ts
|
|
39
|
+
function summaryLine(summary) {
|
|
40
|
+
const synced = summary.last_success_at ? ` \xB7 last synced ${summary.last_success_at}` : "";
|
|
41
|
+
return `${summary.provider}: ${summary.label}${synced} (${summary.state})`;
|
|
42
|
+
}
|
|
43
|
+
function printChange(result, json) {
|
|
44
|
+
printIntegrationResult(result, json, [
|
|
45
|
+
...Object.entries(result.change).filter(([key]) => key !== "provider").map(([key, value]) => `${key}: ${String(value)}`),
|
|
46
|
+
result.status ? summaryLine(result.status) : `Change applied; the resulting sync state could not be read (${result.status_error ?? "unknown error"}). Run deepline integrations sync status.`
|
|
47
|
+
]);
|
|
48
|
+
}
|
|
49
|
+
function connectorSyncExitCode(error) {
|
|
50
|
+
if (error instanceof AuthError) return 3;
|
|
51
|
+
if (!(error instanceof DeeplineError)) return 5;
|
|
52
|
+
const status = error.statusCode;
|
|
53
|
+
if (status === 400) return 2;
|
|
54
|
+
if (status === 401 || status === 403) return 3;
|
|
55
|
+
if (status === 404) return 4;
|
|
56
|
+
if (status === 409 || status === 422) return 7;
|
|
57
|
+
return 5;
|
|
58
|
+
}
|
|
59
|
+
function withExitCode(action) {
|
|
60
|
+
return async (...args) => {
|
|
61
|
+
try {
|
|
62
|
+
await action(...args);
|
|
63
|
+
} catch (error) {
|
|
64
|
+
if (error && typeof error === "object")
|
|
65
|
+
Object.assign(error, { exitCode: connectorSyncExitCode(error) });
|
|
66
|
+
throw error;
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
function registerConnectorSyncCommands(integrations) {
|
|
71
|
+
const sync = integrations.command("sync").description(
|
|
72
|
+
"Show and control CRM syncs into the Customer DB (HubSpot, Salesforce, Attio)."
|
|
73
|
+
);
|
|
74
|
+
sync.command("status [provider]").description(
|
|
75
|
+
"Show each CRM sync\u2019s state, or one provider\u2019s, as the Integrations list shows it."
|
|
76
|
+
).option("--json", "Print the sync state as JSON").action(
|
|
77
|
+
withExitCode(
|
|
78
|
+
async (provider, options) => {
|
|
79
|
+
const client = new DeeplineClient().integrations.sync;
|
|
80
|
+
if (provider) {
|
|
81
|
+
const summary = await client.get(provider);
|
|
82
|
+
printIntegrationResult(summary, options.json, [
|
|
83
|
+
summaryLine(summary),
|
|
84
|
+
`Connector: ${summary.connector_status ?? "unknown"}`,
|
|
85
|
+
`Objects: deepline integrations sync objects ${provider}`
|
|
86
|
+
]);
|
|
87
|
+
return;
|
|
88
|
+
}
|
|
89
|
+
const statuses = await client.status();
|
|
90
|
+
printIntegrationResult(statuses, options.json, [
|
|
91
|
+
formatTextTable(statuses.providers, [
|
|
92
|
+
{ header: "PROVIDER", value: (row) => row.provider },
|
|
93
|
+
{ header: "STATE", value: (row) => row.state },
|
|
94
|
+
{ header: "STATUS", value: (row) => row.label },
|
|
95
|
+
{
|
|
96
|
+
header: "LAST SYNCED",
|
|
97
|
+
value: (row) => row.last_success_at ?? "-"
|
|
98
|
+
}
|
|
99
|
+
]),
|
|
100
|
+
...statuses.customer_db === "active" ? [] : ["Customer DB unavailable: syncs cannot run."]
|
|
101
|
+
]);
|
|
102
|
+
}
|
|
103
|
+
)
|
|
104
|
+
);
|
|
105
|
+
sync.command("objects <provider>").description(
|
|
106
|
+
"List one provider\u2019s synced objects and each one\u2019s health, as the sync page does."
|
|
107
|
+
).option("--json", "Print the state and every object as JSON").action(
|
|
108
|
+
withExitCode(async (provider, options) => {
|
|
109
|
+
const detail = await new DeeplineClient().integrations.sync.objects(
|
|
110
|
+
provider
|
|
111
|
+
);
|
|
112
|
+
printIntegrationResult(detail, options.json, [
|
|
113
|
+
summaryLine(detail.summary),
|
|
114
|
+
...detail.objects.length ? [
|
|
115
|
+
formatTextTable(detail.objects, [
|
|
116
|
+
{ header: "OBJECT", value: (row) => row.object_type },
|
|
117
|
+
{ header: "STATUS", value: (row) => row.status },
|
|
118
|
+
{ header: "HEALTH", value: (row) => row.health },
|
|
119
|
+
{
|
|
120
|
+
header: "LAST SUCCESS",
|
|
121
|
+
value: (row) => row.last_success_at ?? "-"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
header: "NEXT RUN",
|
|
125
|
+
value: (row) => row.next_run_at ?? "-"
|
|
126
|
+
}
|
|
127
|
+
])
|
|
128
|
+
] : [
|
|
129
|
+
detail.customer_db === "active" ? "No synced objects." : "Customer DB unavailable: objects are not shown."
|
|
130
|
+
]
|
|
131
|
+
]);
|
|
132
|
+
})
|
|
133
|
+
);
|
|
134
|
+
for (const [name, enabled] of [
|
|
135
|
+
["on", true],
|
|
136
|
+
["off", false]
|
|
137
|
+
]) {
|
|
138
|
+
sync.command(`${name} <provider>`).description(
|
|
139
|
+
enabled ? "Turn a provider\u2019s sync on; the first time, it sets up its objects." : "Turn a provider\u2019s sync off; synced data stays in the Customer DB."
|
|
140
|
+
).option("--json", "Print the change and the resulting state as JSON").action(
|
|
141
|
+
withExitCode(async (provider, options) => {
|
|
142
|
+
printChange(
|
|
143
|
+
await new DeeplineClient().integrations.sync.set(provider, enabled),
|
|
144
|
+
options.json
|
|
145
|
+
);
|
|
146
|
+
})
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
for (const name of ["pause", "resume"]) {
|
|
150
|
+
sync.command(`${name} <provider> <objects...>`).description(
|
|
151
|
+
name === "pause" ? "Pause syncing the named objects, e.g. tickets; the rest keep syncing." : "Resume syncing the named paused objects."
|
|
152
|
+
).option("--json", "Print the change and the resulting state as JSON").action(
|
|
153
|
+
withExitCode(
|
|
154
|
+
async (provider, objects, options) => {
|
|
155
|
+
printChange(
|
|
156
|
+
await new DeeplineClient().integrations.sync[name](
|
|
157
|
+
provider,
|
|
158
|
+
objects
|
|
159
|
+
),
|
|
160
|
+
options.json
|
|
161
|
+
);
|
|
162
|
+
}
|
|
163
|
+
)
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
sync.command("run <provider> [objects...]").description(
|
|
167
|
+
"Sync now: every synced object (paused ones run once), or only the named ones. The sync must be on."
|
|
168
|
+
).option("--json", "Print the change and the resulting state as JSON").action(
|
|
169
|
+
withExitCode(
|
|
170
|
+
async (provider, objects, options) => {
|
|
171
|
+
printChange(
|
|
172
|
+
await new DeeplineClient().integrations.sync.run(
|
|
173
|
+
provider,
|
|
174
|
+
objects ?? []
|
|
175
|
+
),
|
|
176
|
+
options.json
|
|
177
|
+
);
|
|
178
|
+
}
|
|
179
|
+
)
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
// src/cli/commands/integrations.ts
|
|
184
|
+
function printChangeResult(result, json) {
|
|
185
|
+
const text = "action" in result ? Object.entries(result).map(([key, value]) => `${key}: ${String(value)}`).join("\n") : "url" in result && result.url ? result.url : `Org authorization ${result.status ?? "updated"}.`;
|
|
186
|
+
printIntegrationResult(result, json, [text]);
|
|
187
|
+
if ("status" in result && result.status === "validation_failed")
|
|
188
|
+
process.exitCode = 7;
|
|
189
|
+
}
|
|
190
|
+
function registerIntegrationsCommands(program) {
|
|
191
|
+
const integrations = program.command("integrations").description("Connect providers and manage named org authorizations.");
|
|
192
|
+
registerWorkspaceConnectionListCommand(integrations, "list");
|
|
193
|
+
registerIntegrationBalanceCommand(integrations);
|
|
194
|
+
registerIntegrationConnectCommand(integrations, true);
|
|
195
|
+
registerConnectorSyncCommands(integrations);
|
|
196
|
+
integrations.command("discover-ad-accounts").description("Discover and save Google Ads or LinkedIn ad accounts.").addArgument(
|
|
197
|
+
new Argument("<provider>", "Connected ads provider").choices([
|
|
198
|
+
...AD_ACCOUNT_DISCOVERY_PROVIDERS
|
|
199
|
+
])
|
|
200
|
+
).option("--dry-run", "Print the request without contacting the provider").option("--json", "Print the discovery result as JSON").action(
|
|
201
|
+
async (provider, options) => {
|
|
202
|
+
if (options.dryRun) {
|
|
203
|
+
const request = planAdAccountDiscovery(provider);
|
|
204
|
+
printIntegrationResult(request, options.json, [
|
|
205
|
+
`Would discover and save accounts in the selected workspace using ${request.method} ${request.path}.`
|
|
206
|
+
]);
|
|
207
|
+
return;
|
|
208
|
+
}
|
|
209
|
+
const result = await new DeeplineClient().integrations.discoverAdAccounts(provider);
|
|
210
|
+
printIntegrationResult(result, options.json, [
|
|
211
|
+
result.accounts.length ? `Ad accounts in the selected workspace (${result.accounts.length})` : "No accessible ad accounts found.",
|
|
212
|
+
...result.accounts.map((account) => {
|
|
213
|
+
const name = "descriptiveName" in account ? account.descriptiveName : account.name;
|
|
214
|
+
return [
|
|
215
|
+
name && name !== account.accountId ? name : void 0,
|
|
216
|
+
account.accountId,
|
|
217
|
+
account.enabled ? "enabled" : "disabled",
|
|
218
|
+
"manager" in account && account.manager ? "manager" : void 0,
|
|
219
|
+
account.accountId === result.default_account_id ? "default" : void 0
|
|
220
|
+
].filter(Boolean).join(" ");
|
|
221
|
+
})
|
|
222
|
+
]);
|
|
223
|
+
}
|
|
224
|
+
);
|
|
225
|
+
integrations.command("get <name>").description("Show a named org authorization, including granted scopes.").option("--provider <provider>", "Disambiguate the provider for this name").option("--json", "Print the authorization record as JSON").action(async (name, options) => {
|
|
226
|
+
const row = await new DeeplineClient().integrations.get(name, options);
|
|
227
|
+
printIntegrationResult(row, options.json, [
|
|
228
|
+
`${row.name} ${row.provider} ${row.status}`,
|
|
229
|
+
row.label,
|
|
230
|
+
...(row.scopes ?? []).map((scope) => `Scope: ${scope}`)
|
|
231
|
+
]);
|
|
232
|
+
});
|
|
233
|
+
for (const action of ["reconnect", "disconnect", "delete"]) {
|
|
234
|
+
const command = integrations.command(`${action} <name>`).description(
|
|
235
|
+
`${action[0].toUpperCase()}${action.slice(1)} a named org authorization.`
|
|
236
|
+
).option(
|
|
237
|
+
"--provider <provider>",
|
|
238
|
+
"Disambiguate the provider for this name"
|
|
239
|
+
).option(
|
|
240
|
+
"--dry-run",
|
|
241
|
+
"Read current state and print the change without saving or contacting the provider"
|
|
242
|
+
).option("--json", "Print the result as JSON");
|
|
243
|
+
if (action === "reconnect")
|
|
244
|
+
command.option(
|
|
245
|
+
"--verification-email <email>",
|
|
246
|
+
"Work email used to verify a Google Workspace approval"
|
|
247
|
+
);
|
|
248
|
+
if (action === "reconnect")
|
|
249
|
+
command.option(
|
|
250
|
+
"--booking",
|
|
251
|
+
"Verify Calendar availability and event booking permissions"
|
|
252
|
+
);
|
|
253
|
+
if (action === "reconnect")
|
|
254
|
+
command.option("--list-calendars", "Verify calendar listing permission");
|
|
255
|
+
command.action(async (name, options) => {
|
|
256
|
+
const result = await new DeeplineClient().integrations[action](
|
|
257
|
+
name,
|
|
258
|
+
options
|
|
259
|
+
);
|
|
260
|
+
printChangeResult(result, options.json);
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
integrations.command("verify <domain>").description("Verify and enable a Google Workspace Calendar approval.").requiredOption(
|
|
264
|
+
"--verification-email <email>",
|
|
265
|
+
"Work email in the approved domain"
|
|
266
|
+
).option(
|
|
267
|
+
"--dry-run",
|
|
268
|
+
"Read current state and print the change without saving or contacting Google"
|
|
269
|
+
).option("--json", "Print the verification result as JSON").option(
|
|
270
|
+
"--booking",
|
|
271
|
+
"Verify Calendar availability and event booking permissions"
|
|
272
|
+
).option("--list-calendars", "Verify calendar listing permission").action(
|
|
273
|
+
async (domain, options) => {
|
|
274
|
+
const result = await new DeeplineClient().integrations.verify(
|
|
275
|
+
domain,
|
|
276
|
+
options
|
|
277
|
+
);
|
|
278
|
+
printChangeResult(result, options.json);
|
|
279
|
+
}
|
|
280
|
+
);
|
|
281
|
+
}
|
|
282
|
+
export {
|
|
283
|
+
registerIntegrationsCommands
|
|
284
|
+
};
|