deepline 0.3.506 → 0.3.508
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 +27 -6
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/monitors/deactivation-reasons.ts +38 -1
- package/dist/bundling-sources/shared_libs/monitors/fleets/verdict.ts +4 -2
- package/dist/bundling-sources/shared_libs/monitors/package.json +4 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-admission-codes.ts +11 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-batch-operation.ts +2 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-errors.ts +15 -0
- package/dist/bundling-sources/shared_libs/monitors/provider-monitor-state.ts +24 -4
- package/dist/bundling-sources/shared_libs/monitors/provider-resource-failure.ts +405 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-work-manual.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +6 -1
- package/dist/bundling-sources/shared_libs/play-runtime/tool-http-errors.ts +3 -1
- package/dist/cli/{auth-ZHFONT2D.mjs → auth-2URIN52G.mjs} +5 -5
- package/dist/cli/auth-LFU77QDI.js +43 -0
- package/dist/cli/{billing-B2YEMNHE.mjs → billing-IW23GSR5.mjs} +6 -6
- package/dist/cli/{billing-3Z7N4WTL.js → billing-R2HY2ZVJ.js} +79 -79
- package/dist/cli/{chunk-TS4KFQKS.mjs → chunk-2LY42EZJ.mjs} +1 -1
- package/dist/cli/{chunk-ND4WPLTE.mjs → chunk-2PYFXXYA.mjs} +2 -2
- package/dist/cli/{chunk-N7G36GXB.js → chunk-2YOM5J3G.js} +26 -26
- package/dist/cli/{chunk-SUJIVF6L.js → chunk-3BZ74K27.js} +16 -16
- package/dist/cli/{chunk-Z7EHY2MF.mjs → chunk-3C6VBHNW.mjs} +2 -2
- package/dist/cli/{chunk-FFGQR5J3.mjs → chunk-3XBI4KZM.mjs} +2 -2
- package/dist/cli/{chunk-OHNMJ5XQ.js → chunk-3ZNPIJX6.js} +41 -41
- package/dist/cli/{chunk-6RYVIZRP.mjs → chunk-4DAR2GYV.mjs} +2 -2
- package/dist/cli/{chunk-E554XCJI.js → chunk-63BGKU3A.js} +96 -96
- package/dist/cli/{chunk-OUGJUM5X.mjs → chunk-63MCLOR2.mjs} +6 -6
- package/dist/cli/{chunk-FWSEGIT6.js → chunk-74UO7THC.js} +4 -4
- package/dist/cli/{chunk-ZZDTWVCQ.js → chunk-7PELFO3C.js} +21 -21
- package/dist/cli/{chunk-3F676QXJ.js → chunk-AYNO4VFW.js} +11 -11
- package/dist/cli/{chunk-D7OCORZ7.mjs → chunk-C6TP4DR3.mjs} +1 -1
- package/dist/cli/{chunk-F7IQQYKV.js → chunk-D73YB5NQ.js} +2 -2
- package/dist/cli/{chunk-QAY5AS2H.mjs → chunk-DWV7KM6H.mjs} +10 -10
- package/dist/cli/{chunk-2CFTDVEP.mjs → chunk-DZ7JCRAL.mjs} +2 -2
- package/dist/cli/{chunk-2OY5DXTC.js → chunk-ESVK4Z7S.js} +1 -1
- package/dist/cli/{chunk-YVOS5KSG.mjs → chunk-FRT5MFLF.mjs} +1 -1
- package/dist/cli/{chunk-PRIHD5XS.js → chunk-FXKKFM7J.js} +9 -9
- package/dist/cli/{chunk-GJNIC2CO.mjs → chunk-GRGZKXLL.mjs} +5 -5
- package/dist/cli/{chunk-CHGRURBN.mjs → chunk-IF242BIJ.mjs} +5 -5
- package/dist/cli/{chunk-HINTYT5H.js → chunk-IZZ7FFWP.js} +44 -44
- package/dist/cli/{chunk-MHRR47VQ.js → chunk-J3LJ37WD.js} +3 -3
- package/dist/cli/{chunk-O4DZG4VA.mjs → chunk-JEB6BNIU.mjs} +2 -2
- package/dist/cli/{chunk-AD2WJUZA.js → chunk-JRHMPZJX.js} +7 -7
- package/dist/cli/{chunk-75NAFY36.js → chunk-JUYW6TSU.js} +7 -7
- package/dist/cli/{chunk-2IXXB7OA.mjs → chunk-JXYVBF5L.mjs} +5 -5
- package/dist/cli/{chunk-QP333GFE.js → chunk-JYNHHO3J.js} +6 -6
- package/dist/cli/{chunk-3BFZEHBH.mjs → chunk-K4RME7AV.mjs} +1 -1
- package/dist/cli/{chunk-OPBXKB57.mjs → chunk-KSQO32L5.mjs} +1 -1
- package/dist/cli/{chunk-LRSRJJPD.js → chunk-M37I4A2Z.js} +16 -16
- package/dist/cli/{chunk-YJKKOSXS.js → chunk-N5HRBS4K.js} +3 -3
- package/dist/cli/{chunk-TEMORCEE.mjs → chunk-NC2FIUPX.mjs} +1 -1
- package/dist/cli/{chunk-YWZEBPXK.mjs → chunk-OWH7SSBO.mjs} +2 -2
- package/dist/cli/{chunk-GRESJ3H3.js → chunk-P7GOQTUN.js} +14 -14
- package/dist/cli/{chunk-ONBXTEFQ.mjs → chunk-Q4I5YKN4.mjs} +1 -1
- package/dist/cli/{chunk-BQBPVUFJ.mjs → chunk-QBZECLNG.mjs} +3 -3
- package/dist/cli/{chunk-ZM5BJ5MP.js → chunk-R4S2AK3Q.js} +53 -53
- package/dist/cli/{chunk-XUY7WQ2R.mjs → chunk-RNZQ7RDW.mjs} +2 -2
- package/dist/cli/{chunk-F53SGS3C.js → chunk-RUD77W2Y.js} +5 -5
- package/dist/cli/{chunk-OD6TASBP.js → chunk-RWXHMG6F.js} +8 -8
- package/dist/cli/{chunk-DB54ROPH.js → chunk-TVADI7K5.js} +5 -5
- package/dist/cli/{chunk-YEX6RPUO.mjs → chunk-UDH3YMBI.mjs} +1 -1
- package/dist/cli/{chunk-BJ5OX62J.mjs → chunk-VXNL4HLE.mjs} +5 -5
- package/dist/cli/{chunk-EN7GXLFX.mjs → chunk-XSOLA2ED.mjs} +4 -4
- package/dist/cli/{chunk-5ARG7J7A.js → chunk-ZL2ME3UT.js} +6 -6
- package/dist/cli/{chunk-26DJ4BDY.js → chunk-ZLIAUR2E.js} +2 -2
- package/dist/cli/{csv-ARHQ54HA.mjs → csv-CMJSMC2I.mjs} +4 -4
- package/dist/cli/{csv-7K7LK63Y.js → csv-DPDO6BU6.js} +13 -13
- package/dist/cli/{db-V4Z2I6DY.js → db-PPPKNTT5.js} +27 -27
- package/dist/cli/{db-JBX24NJY.mjs → db-SL3EFN6V.mjs} +6 -6
- package/dist/cli/describe-JKZ67X3E.js +50 -0
- package/dist/cli/{describe-RBDSGSZ7.mjs → describe-XLN33FJX.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-XEZKV5QU.js → executions-6YDTV2J6.js} +8 -8
- package/dist/cli/{executions-BAZEU63W.mjs → executions-O6Z5B5NY.mjs} +6 -6
- package/dist/cli/{feedback-LOERESRU.js → feedback-BZ434BN4.js} +8 -8
- package/dist/cli/{feedback-YDSWBHCO.mjs → feedback-DP7LPWAD.mjs} +4 -4
- package/dist/cli/{git-4Z3W2CQU.mjs → git-MI7E5WGL.mjs} +5 -5
- package/dist/cli/git-U5N6CTML.js +25 -0
- package/dist/cli/index.js +138 -138
- package/dist/cli/index.mjs +41 -41
- package/dist/cli/{legacy-noops-4QIQPVE5.js → legacy-noops-65WNPQVZ.js} +8 -8
- package/dist/cli/{legacy-noops-E4HH7S5O.mjs → legacy-noops-6VYXF2MG.mjs} +5 -5
- package/dist/cli/{monitors-QBHDSDA7.js → monitors-BYUCTVSC.js} +127 -112
- package/dist/cli/{monitors-FPDW5DDM.mjs → monitors-Y7I5ZVCN.mjs} +34 -19
- package/dist/cli/{org-JO4GGSAH.js → org-F2ASWTFY.js} +72 -72
- package/dist/cli/{org-UCDHIHAD.mjs → org-IW3YD6JZ.mjs} +6 -6
- package/dist/cli/{pages-6V52IZXY.mjs → pages-H2CXNIDB.mjs} +6 -6
- package/dist/cli/{pages-FJAAXAWO.js → pages-X6HLRQNV.js} +18 -18
- package/dist/cli/{play-F3AENS6W.js → play-H2EM7DTI.js} +317 -317
- package/dist/cli/{play-MF4DWROJ.mjs → play-LLEEDXRX.mjs} +18 -18
- package/dist/cli/{providers-XXOQLPX7.js → providers-6R2SPOEV.js} +9 -9
- package/dist/cli/{providers-NJJLTECA.mjs → providers-BZR5JONN.mjs} +6 -6
- package/dist/cli/{quickstart-Z5MSMI7S.mjs → quickstart-KVES7R6D.mjs} +4 -4
- package/dist/cli/{quickstart-JCE3XGQG.js → quickstart-PW7ONQUH.js} +6 -6
- package/dist/cli/{run-X2DNIW3F.js → run-HVUQROBE.js} +41 -41
- package/dist/cli/{run-56UGPIRL.mjs → run-RDI3Q6GO.mjs} +23 -23
- package/dist/cli/{search-SZYI4NBB.mjs → search-3TJ24CUF.mjs} +8 -8
- package/dist/cli/search-NKEEGLY6.js +33 -0
- package/dist/cli/{search-output-7UNT6EMP.js → search-output-JHT553SL.js} +6 -6
- package/dist/cli/{search-output-T35QNZUF.mjs → search-output-Y57OBQXX.mjs} +4 -4
- package/dist/cli/{secrets-Q36VC35L.mjs → secrets-OZK7GRD5.mjs} +6 -6
- package/dist/cli/{secrets-JMUAVIVC.js → secrets-U5JHWAXU.js} +15 -15
- package/dist/cli/{sessions-HG6I3HMY.mjs → sessions-D6DSEQ2T.mjs} +5 -5
- package/dist/cli/{sessions-SUXU7OM7.js → sessions-PNMYAJNB.js} +6 -6
- package/dist/cli/{settings-UIELQ5CV.js → settings-DLPEHYGS.js} +82 -82
- package/dist/cli/{settings-Z76XW4KF.mjs → settings-ITLSLT2R.mjs} +12 -12
- package/dist/cli/{setup-OXNYAOQ4.mjs → setup-XTYLF2CF.mjs} +10 -10
- package/dist/cli/{setup-2L7H5P2O.js → setup-Y5ZYEC6U.js} +50 -50
- package/dist/cli/{skills-XSNLXJGI.mjs → skills-C4WCAVII.mjs} +8 -8
- package/dist/cli/skills-K6FVG3BX.js +37 -0
- package/dist/cli/tools-LSALTN7I.js +57 -0
- package/dist/cli/{tools-SUSFAYFH.mjs → tools-ZESAPVOW.mjs} +17 -17
- package/dist/cli/{update-ENSTG3QO.mjs → update-4PCKVDCS.mjs} +10 -10
- package/dist/cli/update-P5KGNFNL.js +35 -0
- package/dist/cli/{workflow-Z33QE6VT.mjs → workflow-42CL4TVR.mjs} +7 -7
- package/dist/cli/{workflow-FMBZNY4F.js → workflow-XXKXMPTI.js} +17 -17
- package/dist/{client-Cx0420fs.d.ts → client-BlwD-G4v.d.ts} +1 -1
- package/dist/{client-BDbouy3Y.d.mts → client-DMpsMNH9.d.mts} +1 -1
- package/dist/{client-core-CwiVaMZ5.d.mts → client-core-CITtRTbB.d.mts} +27 -8
- package/dist/{client-core-B4hq0-m2.d.ts → client-core-DwBLuEkm.d.ts} +27 -8
- 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 +106 -104
- 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-MMHG2OFE.js +0 -43
- package/dist/cli/describe-AYXVS6DZ.js +0 -50
- package/dist/cli/git-T6WKO7EA.js +0 -25
- package/dist/cli/search-B753RTKC.js +0 -33
- package/dist/cli/skills-DEVXYGYH.js +0 -37
- package/dist/cli/tools-SCGHABDL.js +0 -57
- package/dist/cli/update-BSIILGO3.js +0 -35
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./chunk-EXMLR72R.mjs";
|
|
2
2
|
import {
|
|
3
3
|
DeeplineClient
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-OWH7SSBO.mjs";
|
|
5
|
+
import "./chunk-Q4I5YKN4.mjs";
|
|
6
6
|
import "./chunk-L2VKAASU.mjs";
|
|
7
7
|
import "./chunk-N4TR6QRI.mjs";
|
|
8
8
|
import "./chunk-S3A4IXBQ.mjs";
|
|
@@ -17,15 +17,15 @@ import {
|
|
|
17
17
|
} from "./chunk-MI6ZP7XI.mjs";
|
|
18
18
|
import {
|
|
19
19
|
createCliProgress
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-NC2FIUPX.mjs";
|
|
21
21
|
import {
|
|
22
22
|
errorToJsonPayload,
|
|
23
23
|
printCommandEnvelope,
|
|
24
24
|
printJson,
|
|
25
25
|
shouldEmitJson
|
|
26
|
-
} from "./chunk-
|
|
27
|
-
import "./chunk-
|
|
28
|
-
import "./chunk-
|
|
26
|
+
} from "./chunk-DZ7JCRAL.mjs";
|
|
27
|
+
import "./chunk-FRT5MFLF.mjs";
|
|
28
|
+
import "./chunk-2LY42EZJ.mjs";
|
|
29
29
|
import {
|
|
30
30
|
AuthError
|
|
31
31
|
} from "./chunk-4QF2K7TM.mjs";
|
|
@@ -33,7 +33,7 @@ import "./chunk-DLIRSHV6.mjs";
|
|
|
33
33
|
import {
|
|
34
34
|
DeeplineError
|
|
35
35
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-KSQO32L5.mjs";
|
|
37
37
|
import "./chunk-WZYKRD7T.mjs";
|
|
38
38
|
import "./chunk-KRD6H754.mjs";
|
|
39
39
|
|
|
@@ -206,8 +206,13 @@ var MONITOR_STATES = /* @__PURE__ */ new Set([
|
|
|
206
206
|
"active",
|
|
207
207
|
"provisioning",
|
|
208
208
|
"billing_suspended",
|
|
209
|
+
"errored",
|
|
209
210
|
"disabled"
|
|
210
211
|
]);
|
|
212
|
+
function monitorFailureMessage(record) {
|
|
213
|
+
const failure = asRecord(record.failure);
|
|
214
|
+
return failure ? asString(failure.message) : void 0;
|
|
215
|
+
}
|
|
211
216
|
function customerMonitorState(value) {
|
|
212
217
|
if (typeof value === "string" && MONITOR_STATES.has(value)) {
|
|
213
218
|
return value;
|
|
@@ -640,6 +645,10 @@ function renderDeployedListText(payload, requestedStatus, filterKind = "status")
|
|
|
640
645
|
lines.push(
|
|
641
646
|
` ${key}${state ? ` ${state}` : ""}${tool ? ` ${tool}` : ""}${name ? ` (${name})` : ""}`
|
|
642
647
|
);
|
|
648
|
+
const failureMessage = monitorFailureMessage(entry);
|
|
649
|
+
if (state === "errored" && failureMessage) {
|
|
650
|
+
lines.push(` error: ${failureMessage}`);
|
|
651
|
+
}
|
|
643
652
|
if (outputTable || monitorType || webhookState || executionType || boundPlays !== void 0) {
|
|
644
653
|
lines.push(
|
|
645
654
|
` ${[
|
|
@@ -704,7 +713,7 @@ async function handleMonitorsList(options) {
|
|
|
704
713
|
const state = options.state ? monitorStateFilter(options.state) : void 0;
|
|
705
714
|
if (options.state !== void 0 && !state) {
|
|
706
715
|
throw new MonitorsUsageError(
|
|
707
|
-
`--state must be active, provisioning, billing_suspended, disabled, or all; received ${options.state}.`
|
|
716
|
+
`--state must be active, provisioning, billing_suspended, errored, disabled, or all; received ${options.state}.`
|
|
708
717
|
);
|
|
709
718
|
}
|
|
710
719
|
if (options.compact) {
|
|
@@ -734,6 +743,7 @@ var LEDGER_STATUS_LABELS = {
|
|
|
734
743
|
paused_credits: "Paused \xB7 out of credits",
|
|
735
744
|
paused_cap: "Paused \xB7 spending cap",
|
|
736
745
|
paused_billing: "Paused \xB7 billing issue",
|
|
746
|
+
errored: "Errored \xB7 update or remove",
|
|
737
747
|
stopped: "Stopped"
|
|
738
748
|
};
|
|
739
749
|
function ledgerPlayLabel(play) {
|
|
@@ -2378,6 +2388,7 @@ function renderMonitorGet(payload) {
|
|
|
2378
2388
|
`Tool: ${tool}`,
|
|
2379
2389
|
...monitorType ? [`Type: ${monitorType}`] : [],
|
|
2380
2390
|
...state ? [`Status: ${state}`] : [],
|
|
2391
|
+
...state === "errored" && monitorFailureMessage(payload) ? [`Error: ${monitorFailureMessage(payload)}`] : [],
|
|
2381
2392
|
...hasLastReceivedEvent ? [`Latest inbound event: ${lastReceivedEvent ?? "never"}`] : [],
|
|
2382
2393
|
...pricingLine ? [`Pricing: ${pricingLine}`] : [],
|
|
2383
2394
|
...nextRenewalAt ? [`Next renewal: ${nextRenewalAt}`] : []
|
|
@@ -3209,12 +3220,15 @@ Examples:
|
|
|
3209
3220
|
"after",
|
|
3210
3221
|
`
|
|
3211
3222
|
Notes:
|
|
3212
|
-
Read-only. A monitor has one of
|
|
3213
|
-
billing_suspended, or disabled. provisioning means the create was
|
|
3214
|
-
but the provider has not confirmed the monitor yet; it delivers no
|
|
3215
|
-
does not bill until it becomes active.
|
|
3216
|
-
|
|
3217
|
-
|
|
3223
|
+
Read-only. A monitor has one of five customer states: active, provisioning,
|
|
3224
|
+
billing_suspended, errored, or disabled. provisioning means the create was
|
|
3225
|
+
recorded but the provider has not confirmed the monitor yet; it delivers no
|
|
3226
|
+
events and does not bill until it becomes active. errored means the provider
|
|
3227
|
+
stopped the monitor after it was created (for example its LinkedIn URL no
|
|
3228
|
+
longer resolves); its failure.message says what to do. Fix it by updating the
|
|
3229
|
+
monitor's payload, which creates a fresh monitor, or delete it. Resubmitting
|
|
3230
|
+
the same payload leaves it errored. Cleanup and retries are reported by
|
|
3231
|
+
Monitor Jobs; provider disagreement is reported separately by audit/health. The output echoes the canonical state filter that was applied.
|
|
3218
3232
|
The legacy --status flag remains accepted for installed clients. The response reports
|
|
3219
3233
|
total (the true registry count, not the page size), returned, has_more, and
|
|
3220
3234
|
next_cursor. When has_more is true, page with --cursor <next_cursor> until it
|
|
@@ -3235,7 +3249,7 @@ Examples:
|
|
|
3235
3249
|
`
|
|
3236
3250
|
).option(
|
|
3237
3251
|
"--state <state>",
|
|
3238
|
-
"Filter by customer state: active (default), provisioning, billing_suspended, disabled, or all"
|
|
3252
|
+
"Filter by customer state: active (default), provisioning, billing_suspended, errored, disabled, or all"
|
|
3239
3253
|
).option(
|
|
3240
3254
|
"--status <status>",
|
|
3241
3255
|
"Deprecated compatibility filter; use --state (active, provisioning, billing_suspended, disabled, or all)"
|
|
@@ -3267,8 +3281,9 @@ Notes:
|
|
|
3267
3281
|
one monitor with every Play it can trigger and that monitor's latest run.
|
|
3268
3282
|
|
|
3269
3283
|
Statuses: active, setting_up, paused_credits, paused_cap, paused_billing,
|
|
3270
|
-
stopped. Every status except stopped is shown by default; repeat
|
|
3271
|
-
choose.
|
|
3284
|
+
errored, stopped. Every status except stopped is shown by default; repeat
|
|
3285
|
+
--state to choose. errored means the provider stopped the monitor; update
|
|
3286
|
+
its payload or remove it. A Play is listed when a finding can trigger it: "some findings" means
|
|
3272
3287
|
its own where filter decides per finding, and it is omitted only when a
|
|
3273
3288
|
_dl_monitor_id filter excludes this monitor. Failing Plays (their latest
|
|
3274
3289
|
completed monitor-triggered run failed) are listed first.
|
|
@@ -3300,7 +3315,7 @@ Examples:
|
|
|
3300
3315
|
"Search name, key, subject, signal and deploy filters"
|
|
3301
3316
|
).option(
|
|
3302
3317
|
"--state <state>",
|
|
3303
|
-
"Include a status (repeatable): active, setting_up, paused_credits, paused_cap, paused_billing, stopped",
|
|
3318
|
+
"Include a status (repeatable): active, setting_up, paused_credits, paused_cap, paused_billing, errored, stopped",
|
|
3304
3319
|
collect
|
|
3305
3320
|
).option(
|
|
3306
3321
|
"--signal <key>",
|
|
@@ -3891,7 +3906,7 @@ Example:
|
|
|
3891
3906
|
const deployed = withJsonOption(
|
|
3892
3907
|
monitors.command("deployed", { hidden: true }).description("Alias of `monitors list` (plus get/update/delete aliases).").option(
|
|
3893
3908
|
"--state <state>",
|
|
3894
|
-
"Filter by customer state: active (default), provisioning, billing_suspended, disabled, or all"
|
|
3909
|
+
"Filter by customer state: active (default), provisioning, billing_suspended, errored, disabled, or all"
|
|
3895
3910
|
).option(
|
|
3896
3911
|
"--status <status>",
|
|
3897
3912
|
"Deprecated compatibility filter; use --state (active, provisioning, billing_suspended, disabled, or all)"
|
|
@@ -1,14 +1,14 @@
|
|
|
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
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var _chunkTVADI7K5js = require('./chunk-TVADI7K5.js');
|
|
4
|
+
require('./chunk-JRHMPZJX.js');
|
|
5
5
|
require('./chunk-E4CABWXL.js');
|
|
6
6
|
require('./chunk-RNSHCJME.js');
|
|
7
7
|
require('./chunk-NMU3VR5U.js');
|
|
8
8
|
require('./chunk-WSGXBROE.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkJUYW6TSUjs = require('./chunk-JUYW6TSU.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
@@ -28,14 +28,14 @@ var _chunk75NAFY36js = require('./chunk-75NAFY36.js');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunkJ3LJ37WDjs = require('./chunk-J3LJ37WD.js');
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunk74UO7THCjs = require('./chunk-74UO7THC.js');
|
|
35
35
|
require('./chunk-ALJJRZNJ.js');
|
|
36
36
|
require('./chunk-XNYIZMNQ.js');
|
|
37
37
|
require('./chunk-DIAWYWT5.js');
|
|
38
|
-
require('./chunk-
|
|
38
|
+
require('./chunk-ESVK4Z7S.js');
|
|
39
39
|
require('./chunk-OG64RBAC.js');
|
|
40
40
|
require('./chunk-COGTRVWW.js');
|
|
41
41
|
|
|
@@ -51,7 +51,7 @@ var _fs = require('fs');
|
|
|
51
51
|
var _path = require('path');
|
|
52
52
|
function pendingOrgCreatePath(baseUrl, accountId, sourceOrgId, name) {
|
|
53
53
|
const intent = _crypto.createHash.call(void 0, "sha256").update(accountId).update("\0").update(sourceOrgId).update("\0").update(name).digest("hex");
|
|
54
|
-
return _path.join.call(void 0,
|
|
54
|
+
return _path.join.call(void 0, _chunkJ3LJ37WDjs.sdkCliStateDirPath.call(void 0, baseUrl), `pending-org-create-${intent}.json`);
|
|
55
55
|
}
|
|
56
56
|
function readPendingOrgCreate(path, accountId, sourceOrgId, name) {
|
|
57
57
|
let value;
|
|
@@ -70,7 +70,7 @@ function readPendingOrgCreate(path, accountId, sourceOrgId, name) {
|
|
|
70
70
|
return value;
|
|
71
71
|
}
|
|
72
72
|
function loadOrCreatePendingOrgCreate(input) {
|
|
73
|
-
const stateDir =
|
|
73
|
+
const stateDir = _chunkJ3LJ37WDjs.sdkCliStateDirPath.call(void 0, input.baseUrl);
|
|
74
74
|
const path = pendingOrgCreatePath(
|
|
75
75
|
input.baseUrl,
|
|
76
76
|
input.accountId,
|
|
@@ -155,11 +155,11 @@ function processEnvValue(name) {
|
|
|
155
155
|
}
|
|
156
156
|
function organizationAuthValues(input) {
|
|
157
157
|
return {
|
|
158
|
-
[
|
|
159
|
-
[
|
|
160
|
-
[
|
|
161
|
-
[
|
|
162
|
-
...
|
|
158
|
+
[_chunkJ3LJ37WDjs.HOST_URL_ENV]: input.baseUrl,
|
|
159
|
+
[_chunkJ3LJ37WDjs.API_KEY_ENV]: input.apiKey,
|
|
160
|
+
[_chunkJ3LJ37WDjs.ACTIVE_ORG_ID_ENV]: input.orgId,
|
|
161
|
+
[_chunkJ3LJ37WDjs.ACTIVE_ORG_NAME_ENV]: input.orgName,
|
|
162
|
+
..._chunkJ3LJ37WDjs.featureEnvValues.call(void 0, input)
|
|
163
163
|
};
|
|
164
164
|
}
|
|
165
165
|
function organizationCommandContext(input) {
|
|
@@ -173,14 +173,14 @@ function organizationCommandContext(input) {
|
|
|
173
173
|
};
|
|
174
174
|
}
|
|
175
175
|
function agentCommandContext(commandContext) {
|
|
176
|
-
return
|
|
176
|
+
return _chunk74UO7THCjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? { command_context: commandContext } : {};
|
|
177
177
|
}
|
|
178
178
|
function resolveOrgSwitchAuthTarget(scope, config) {
|
|
179
|
-
const activeProject =
|
|
179
|
+
const activeProject = _chunkJ3LJ37WDjs.getResolvedProjectAuthSource.call(void 0,
|
|
180
180
|
config.baseUrl,
|
|
181
181
|
config.apiKey
|
|
182
182
|
);
|
|
183
|
-
const folderTarget =
|
|
183
|
+
const folderTarget = _chunkJ3LJ37WDjs.resolveProjectPinTarget.call(void 0, );
|
|
184
184
|
const globalOverrideWarning = activeProject && scope === "global" ? [
|
|
185
185
|
`Folder auth in ${activeProject.filePath} overrides global auth for commands run here.`
|
|
186
186
|
] : [];
|
|
@@ -252,10 +252,10 @@ function resolveOrgSwitchAuthTarget(scope, config) {
|
|
|
252
252
|
};
|
|
253
253
|
}
|
|
254
254
|
async function handleOrgList(options) {
|
|
255
|
-
const config =
|
|
256
|
-
const http = new (0,
|
|
255
|
+
const config = _chunkJ3LJ37WDjs.resolveConfig.call(void 0, );
|
|
256
|
+
const http = new (0, _chunkJ3LJ37WDjs.HttpClient)(config);
|
|
257
257
|
const payload = await fetchOrganizations(http, config.apiKey);
|
|
258
|
-
|
|
258
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
259
259
|
{
|
|
260
260
|
...payload,
|
|
261
261
|
render: {
|
|
@@ -271,22 +271,22 @@ async function handleOrgList(options) {
|
|
|
271
271
|
);
|
|
272
272
|
}
|
|
273
273
|
async function handleOrgStatus(options) {
|
|
274
|
-
const config =
|
|
275
|
-
const http = new (0,
|
|
274
|
+
const config = _chunkJ3LJ37WDjs.resolveConfig.call(void 0, );
|
|
275
|
+
const http = new (0, _chunkJ3LJ37WDjs.HttpClient)(config);
|
|
276
276
|
const payload = await fetchOrganizations(http, config.apiKey);
|
|
277
277
|
const current = _nullishCoalesce(_nullishCoalesce(payload.organizations.find((org) => org.is_current), () => ( payload.organizations.find(
|
|
278
278
|
(org) => org.org_id === payload.current_org_id
|
|
279
279
|
))), () => ( null));
|
|
280
|
-
const projectCandidate =
|
|
281
|
-
const activeProject =
|
|
280
|
+
const projectCandidate = _chunkJ3LJ37WDjs.getActiveProjectAuthSource.call(void 0, );
|
|
281
|
+
const activeProject = _chunkJ3LJ37WDjs.getResolvedProjectAuthSource.call(void 0,
|
|
282
282
|
config.baseUrl,
|
|
283
283
|
config.apiKey
|
|
284
284
|
);
|
|
285
|
-
const folderTarget =
|
|
286
|
-
const provenance =
|
|
287
|
-
const hostPath =
|
|
288
|
-
const envApiKey = processEnvValue(
|
|
289
|
-
const envHostUrl = processEnvValue(
|
|
285
|
+
const folderTarget = _chunkJ3LJ37WDjs.resolveProjectPinTarget.call(void 0, );
|
|
286
|
+
const provenance = _chunkJ3LJ37WDjs.resolveCliAuthProvenance.call(void 0, config);
|
|
287
|
+
const hostPath = _chunkJ3LJ37WDjs.hostEnvFilePath.call(void 0, config.baseUrl);
|
|
288
|
+
const envApiKey = processEnvValue(_chunkJ3LJ37WDjs.API_KEY_ENV);
|
|
289
|
+
const envHostUrl = processEnvValue(_chunkJ3LJ37WDjs.HOST_URL_ENV);
|
|
290
290
|
const authSource = envApiKey ? {
|
|
291
291
|
scope: "env",
|
|
292
292
|
source: "process",
|
|
@@ -327,17 +327,17 @@ async function handleOrgStatus(options) {
|
|
|
327
327
|
if (authSource.path) {
|
|
328
328
|
lines.push(`Auth file: ${authSource.path}`);
|
|
329
329
|
} else {
|
|
330
|
-
lines.push(`Auth source: ${
|
|
330
|
+
lines.push(`Auth source: ${_chunkJ3LJ37WDjs.API_KEY_ENV} process environment`);
|
|
331
331
|
}
|
|
332
332
|
if (envApiKey) {
|
|
333
|
-
lines.push(`${
|
|
333
|
+
lines.push(`${_chunkJ3LJ37WDjs.API_KEY_ENV} overrides saved auth for this process.`);
|
|
334
334
|
} else if (activeProject) {
|
|
335
335
|
lines.push("Global auth is overridden in this folder.");
|
|
336
336
|
} else if (provenance.scope === "global" && provenance.project.state === "project") {
|
|
337
337
|
lines.push("Cloud mutations are blocked until this project is pinned.");
|
|
338
338
|
lines.push("Pin it: deepline org set --auth-scope folder");
|
|
339
339
|
}
|
|
340
|
-
|
|
340
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
341
341
|
{
|
|
342
342
|
ok: true,
|
|
343
343
|
host: config.baseUrl,
|
|
@@ -371,25 +371,25 @@ async function handleOrgStatus(options) {
|
|
|
371
371
|
}
|
|
372
372
|
async function handleOrgSwitch(selection, options) {
|
|
373
373
|
const authScope = normalizeAuthScope(options.authScope);
|
|
374
|
-
const config =
|
|
375
|
-
const provenance =
|
|
374
|
+
const config = _chunkJ3LJ37WDjs.resolveConfig.call(void 0, );
|
|
375
|
+
const provenance = _chunkJ3LJ37WDjs.resolveCliAuthProvenance.call(void 0, config);
|
|
376
376
|
if (!selection && !options.orgId && authScope === "folder" && provenance.scope === "global" && provenance.project.state === "project") {
|
|
377
|
-
const commandContext =
|
|
377
|
+
const commandContext = _chunkJ3LJ37WDjs.resolveCliCommandContext.call(void 0, config);
|
|
378
378
|
const activeOrganization = commandContext.active_organization;
|
|
379
|
-
const pinnedFeatures =
|
|
380
|
-
const project_env_paths2 =
|
|
379
|
+
const pinnedFeatures = _chunkJ3LJ37WDjs.storedHostFeatures.call(void 0, config.baseUrl);
|
|
380
|
+
const project_env_paths2 = _chunkJ3LJ37WDjs.saveProjectDeeplineEnvValues.call(void 0,
|
|
381
381
|
{
|
|
382
|
-
[
|
|
383
|
-
[
|
|
382
|
+
[_chunkJ3LJ37WDjs.HOST_URL_ENV]: config.baseUrl,
|
|
383
|
+
[_chunkJ3LJ37WDjs.API_KEY_ENV]: config.apiKey,
|
|
384
384
|
...activeOrganization ? {
|
|
385
|
-
[
|
|
386
|
-
[
|
|
385
|
+
[_chunkJ3LJ37WDjs.ACTIVE_ORG_ID_ENV]: activeOrganization.org_id,
|
|
386
|
+
[_chunkJ3LJ37WDjs.ACTIVE_ORG_NAME_ENV]: _nullishCoalesce(activeOrganization.org_name, () => ( ""))
|
|
387
387
|
} : {},
|
|
388
|
-
...pinnedFeatures !== void 0 ? { [
|
|
388
|
+
...pinnedFeatures !== void 0 ? { [_chunkJ3LJ37WDjs.FEATURES_ENV]: pinnedFeatures } : {}
|
|
389
389
|
},
|
|
390
390
|
provenance.project.dir
|
|
391
391
|
);
|
|
392
|
-
|
|
392
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
ok: true,
|
|
395
395
|
unchanged: true,
|
|
@@ -401,7 +401,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
401
401
|
orgId: activeOrganization.org_id,
|
|
402
402
|
orgName: activeOrganization.org_name,
|
|
403
403
|
authScope: "folder"
|
|
404
|
-
}) :
|
|
404
|
+
}) : _chunkJ3LJ37WDjs.resolveCliCommandContext.call(void 0, config, "folder")
|
|
405
405
|
),
|
|
406
406
|
project_env_paths: project_env_paths2,
|
|
407
407
|
next: { status: "deepline org status" },
|
|
@@ -422,10 +422,10 @@ async function handleOrgSwitch(selection, options) {
|
|
|
422
422
|
);
|
|
423
423
|
return;
|
|
424
424
|
}
|
|
425
|
-
const http = new (0,
|
|
425
|
+
const http = new (0, _chunkJ3LJ37WDjs.HttpClient)(config);
|
|
426
426
|
const payload = await fetchOrganizations(http, config.apiKey);
|
|
427
427
|
if (!selection && !options.orgId) {
|
|
428
|
-
|
|
428
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
429
429
|
{
|
|
430
430
|
...payload,
|
|
431
431
|
next: { set: "deepline org set <number>" },
|
|
@@ -476,9 +476,9 @@ async function handleOrgSwitch(selection, options) {
|
|
|
476
476
|
features
|
|
477
477
|
});
|
|
478
478
|
if (authTarget.kind === "folder") {
|
|
479
|
-
project_env_paths2 =
|
|
479
|
+
project_env_paths2 = _chunkJ3LJ37WDjs.saveProjectDeeplineEnvValues.call(void 0, authValues2);
|
|
480
480
|
} else {
|
|
481
|
-
|
|
481
|
+
_chunkJ3LJ37WDjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues2);
|
|
482
482
|
}
|
|
483
483
|
const renderLines2 = [`Already on ${target.name}.`];
|
|
484
484
|
for (const projectPath of project_env_paths2) {
|
|
@@ -486,7 +486,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
486
486
|
}
|
|
487
487
|
if (authTarget.kind === "global") {
|
|
488
488
|
renderLines2.push(
|
|
489
|
-
`Saved global auth in ${
|
|
489
|
+
`Saved global auth in ${_chunkJ3LJ37WDjs.hostEnvFilePath.call(void 0, config.baseUrl)}`
|
|
490
490
|
);
|
|
491
491
|
}
|
|
492
492
|
renderLines2.push(
|
|
@@ -502,7 +502,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
502
502
|
...options.deprecatedSwitch ? ["org switch is deprecated; use org set."] : [],
|
|
503
503
|
...authTarget.warnings
|
|
504
504
|
];
|
|
505
|
-
|
|
505
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
506
506
|
{
|
|
507
507
|
ok: true,
|
|
508
508
|
unchanged: true,
|
|
@@ -518,7 +518,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
518
518
|
authScope: authTarget.effective_scope
|
|
519
519
|
})
|
|
520
520
|
),
|
|
521
|
-
host_env_path: authTarget.kind === "global" ?
|
|
521
|
+
host_env_path: authTarget.kind === "global" ? _chunkJ3LJ37WDjs.hostEnvFilePath.call(void 0, config.baseUrl) : null,
|
|
522
522
|
project_env_paths: project_env_paths2,
|
|
523
523
|
deprecated_command: options.deprecatedSwitch ? "org switch" : null,
|
|
524
524
|
replacement_command: options.deprecatedSwitch ? "deepline org set" : null,
|
|
@@ -544,9 +544,9 @@ async function handleOrgSwitch(selection, options) {
|
|
|
544
544
|
features: switched.features
|
|
545
545
|
});
|
|
546
546
|
if (authTarget.kind === "folder") {
|
|
547
|
-
project_env_paths =
|
|
547
|
+
project_env_paths = _chunkJ3LJ37WDjs.saveProjectDeeplineEnvValues.call(void 0, authValues);
|
|
548
548
|
} else {
|
|
549
|
-
|
|
549
|
+
_chunkJ3LJ37WDjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
|
|
550
550
|
}
|
|
551
551
|
const { api_key: _apiKey, ...publicSwitched } = switched;
|
|
552
552
|
const renderLines = [`Switched to ${switched.org_name}.`];
|
|
@@ -555,7 +555,7 @@ async function handleOrgSwitch(selection, options) {
|
|
|
555
555
|
renderLines.push(`Saved folder auth in ${projectPath}`);
|
|
556
556
|
}
|
|
557
557
|
} else {
|
|
558
|
-
renderLines.push(`Saved global auth in ${
|
|
558
|
+
renderLines.push(`Saved global auth in ${_chunkJ3LJ37WDjs.hostEnvFilePath.call(void 0, config.baseUrl)}`);
|
|
559
559
|
}
|
|
560
560
|
renderLines.push(
|
|
561
561
|
`Scope: ${authTarget.requested_scope} -> ${authTarget.effective_scope} (${authTarget.reason})`
|
|
@@ -570,10 +570,10 @@ async function handleOrgSwitch(selection, options) {
|
|
|
570
570
|
...options.deprecatedSwitch ? ["org switch is deprecated; use org set."] : [],
|
|
571
571
|
...authTarget.warnings
|
|
572
572
|
];
|
|
573
|
-
|
|
573
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
574
574
|
{
|
|
575
575
|
ok: true,
|
|
576
|
-
host_env_path: authTarget.kind === "global" ?
|
|
576
|
+
host_env_path: authTarget.kind === "global" ? _chunkJ3LJ37WDjs.hostEnvFilePath.call(void 0, config.baseUrl) : null,
|
|
577
577
|
project_env_paths,
|
|
578
578
|
...publicSwitched,
|
|
579
579
|
api_key_saved: true,
|
|
@@ -604,12 +604,12 @@ async function handleOrgSwitch(selection, options) {
|
|
|
604
604
|
);
|
|
605
605
|
}
|
|
606
606
|
async function handleOrgCreate(name, options) {
|
|
607
|
-
const config =
|
|
607
|
+
const config = _chunkJ3LJ37WDjs.resolveConfig.call(void 0, );
|
|
608
608
|
const normalizedName = name.trim();
|
|
609
609
|
if (!normalizedName) {
|
|
610
610
|
throw new Error("Workspace name is required.");
|
|
611
611
|
}
|
|
612
|
-
const http = new (0,
|
|
612
|
+
const http = new (0, _chunkJ3LJ37WDjs.HttpClient)(config);
|
|
613
613
|
const identity = await fetchWorkspaceCreationIdentity(http, config.apiKey);
|
|
614
614
|
let created;
|
|
615
615
|
let workspaceApiKey;
|
|
@@ -635,7 +635,7 @@ async function handleOrgCreate(name, options) {
|
|
|
635
635
|
sourceOrgId: identity.orgId,
|
|
636
636
|
name: normalizedName
|
|
637
637
|
});
|
|
638
|
-
const workspace = await new (0,
|
|
638
|
+
const workspace = await new (0, _chunkTVADI7K5js.DeeplineClient)({
|
|
639
639
|
apiKey: config.apiKey,
|
|
640
640
|
baseUrl: config.baseUrl
|
|
641
641
|
}).workspaces.create({
|
|
@@ -658,16 +658,16 @@ async function handleOrgCreate(name, options) {
|
|
|
658
658
|
orgName: created.org_name,
|
|
659
659
|
features: workspaceFeatures
|
|
660
660
|
});
|
|
661
|
-
|
|
661
|
+
_chunkJ3LJ37WDjs.saveHostEnvValues.call(void 0, config.baseUrl, authValues);
|
|
662
662
|
if (pendingIntentPath) _fs.unlinkSync.call(void 0, pendingIntentPath);
|
|
663
|
-
|
|
663
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
664
664
|
{
|
|
665
665
|
ok: true,
|
|
666
666
|
...created,
|
|
667
667
|
initial_credits: typeof created.initial_credits === "number" ? created.initial_credits : 0,
|
|
668
668
|
api_key_saved: true,
|
|
669
669
|
switched: true,
|
|
670
|
-
host_env_path:
|
|
670
|
+
host_env_path: _chunkJ3LJ37WDjs.hostEnvFilePath.call(void 0, config.baseUrl),
|
|
671
671
|
...agentCommandContext(
|
|
672
672
|
organizationCommandContext({
|
|
673
673
|
orgId: created.org_id,
|
|
@@ -682,7 +682,7 @@ async function handleOrgCreate(name, options) {
|
|
|
682
682
|
lines: [
|
|
683
683
|
`Created organization: ${created.org_name}.`,
|
|
684
684
|
`Switched to ${created.org_name}.`,
|
|
685
|
-
`Saved host auth in ${
|
|
685
|
+
`Saved host auth in ${_chunkJ3LJ37WDjs.hostEnvFilePath.call(void 0, config.baseUrl)}`
|
|
686
686
|
]
|
|
687
687
|
}
|
|
688
688
|
]
|
|
@@ -734,8 +734,8 @@ Examples:
|
|
|
734
734
|
);
|
|
735
735
|
const members = org.command("members").description("List workspace members and manage their grants.");
|
|
736
736
|
members.command("list").description("List one page of memberships and effective grants.").option("--cursor <cursor>", "Continue from the previous page").option("--json", "Output JSON").action(async (options) => {
|
|
737
|
-
const result = await new (0,
|
|
738
|
-
|
|
737
|
+
const result = await new (0, _chunkTVADI7K5js.DeeplineClient)().workspaces.members(options);
|
|
738
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
739
739
|
{
|
|
740
740
|
...result,
|
|
741
741
|
render: {
|
|
@@ -756,11 +756,11 @@ Examples:
|
|
|
756
756
|
"Replace a member\u2019s grants (read, run, admin). Requires admin."
|
|
757
757
|
).option("--json", "Output JSON").action(
|
|
758
758
|
async (memberId, grants, options) => {
|
|
759
|
-
const result = await new (0,
|
|
759
|
+
const result = await new (0, _chunkTVADI7K5js.DeeplineClient)().workspaces.setMemberGrants(
|
|
760
760
|
memberId,
|
|
761
761
|
grants
|
|
762
762
|
);
|
|
763
|
-
|
|
763
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
764
764
|
{
|
|
765
765
|
...result,
|
|
766
766
|
render: {
|
|
@@ -778,7 +778,7 @@ Examples:
|
|
|
778
778
|
);
|
|
779
779
|
const sso = org.command("sso").description("Manage Enterprise workspace SSO.");
|
|
780
780
|
const ssoPath = "/api/v2/auth/workspace/sso";
|
|
781
|
-
const printSso = (payload, json) =>
|
|
781
|
+
const printSso = (payload, json) => _chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
782
782
|
{
|
|
783
783
|
...payload,
|
|
784
784
|
render: {
|
|
@@ -802,7 +802,7 @@ Examples:
|
|
|
802
802
|
},
|
|
803
803
|
{ json }
|
|
804
804
|
);
|
|
805
|
-
const ssoHttp = () => new (0,
|
|
805
|
+
const ssoHttp = () => new (0, _chunkJ3LJ37WDjs.HttpClient)(_chunkJ3LJ37WDjs.resolveConfig.call(void 0, ));
|
|
806
806
|
sso.command("status").description("Show this workspace's SSO connection and plan eligibility.").option("--json", "Emit JSON output").action(async (options) => {
|
|
807
807
|
printSso(await ssoHttp().get(ssoPath), options.json);
|
|
808
808
|
});
|
|
@@ -833,8 +833,8 @@ Examples:
|
|
|
833
833
|
"Identity provider metadata XML file"
|
|
834
834
|
).option("--json", "Emit JSON output").action(
|
|
835
835
|
async (options) => {
|
|
836
|
-
const config =
|
|
837
|
-
const http = new (0,
|
|
836
|
+
const config = _chunkJ3LJ37WDjs.resolveConfig.call(void 0, );
|
|
837
|
+
const http = new (0, _chunkJ3LJ37WDjs.HttpClient)(config);
|
|
838
838
|
const identity = await fetchWorkspaceCreationIdentity(
|
|
839
839
|
http,
|
|
840
840
|
config.apiKey
|
|
@@ -898,13 +898,13 @@ Examples:
|
|
|
898
898
|
if (chosen.length > 1) {
|
|
899
899
|
throw new Error("Pass one of a logo URL, --domain, or --remove.");
|
|
900
900
|
}
|
|
901
|
-
const http = new (0,
|
|
901
|
+
const http = new (0, _chunkJ3LJ37WDjs.HttpClient)(_chunkJ3LJ37WDjs.resolveConfig.call(void 0, ));
|
|
902
902
|
const path = "/api/v2/auth/workspace/logo";
|
|
903
903
|
const payload = chosen.length === 0 ? await http.get(path) : await http.patch(
|
|
904
904
|
path,
|
|
905
905
|
options.domain ? { domain: options.domain } : { logo: _nullishCoalesce(url, () => ( null)) }
|
|
906
906
|
);
|
|
907
|
-
|
|
907
|
+
_chunkJUYW6TSUjs.printCommandEnvelope.call(void 0,
|
|
908
908
|
{
|
|
909
909
|
...payload,
|
|
910
910
|
render: {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-OWH7SSBO.mjs";
|
|
4
|
+
import "./chunk-Q4I5YKN4.mjs";
|
|
5
5
|
import "./chunk-L2VKAASU.mjs";
|
|
6
6
|
import "./chunk-N4TR6QRI.mjs";
|
|
7
7
|
import "./chunk-S3A4IXBQ.mjs";
|
|
8
8
|
import "./chunk-BMCRTI6Z.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DZ7JCRAL.mjs";
|
|
12
12
|
import {
|
|
13
13
|
ACTIVE_ORG_ID_ENV,
|
|
14
14
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -28,14 +28,14 @@ import {
|
|
|
28
28
|
saveProjectDeeplineEnvValues,
|
|
29
29
|
sdkCliStateDirPath,
|
|
30
30
|
storedHostFeatures
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-FRT5MFLF.mjs";
|
|
32
32
|
import {
|
|
33
33
|
detectAgentRuntime
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-2LY42EZJ.mjs";
|
|
35
35
|
import "./chunk-4QF2K7TM.mjs";
|
|
36
36
|
import "./chunk-DLIRSHV6.mjs";
|
|
37
37
|
import "./chunk-HBL4PM5Q.mjs";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-KSQO32L5.mjs";
|
|
39
39
|
import "./chunk-WZYKRD7T.mjs";
|
|
40
40
|
import "./chunk-KRD6H754.mjs";
|
|
41
41
|
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-OWH7SSBO.mjs";
|
|
4
|
+
import "./chunk-Q4I5YKN4.mjs";
|
|
5
5
|
import "./chunk-L2VKAASU.mjs";
|
|
6
6
|
import "./chunk-N4TR6QRI.mjs";
|
|
7
7
|
import "./chunk-S3A4IXBQ.mjs";
|
|
8
8
|
import "./chunk-BMCRTI6Z.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-DZ7JCRAL.mjs";
|
|
12
12
|
import {
|
|
13
13
|
cliFeatureEnabled
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-FRT5MFLF.mjs";
|
|
15
|
+
import "./chunk-2LY42EZJ.mjs";
|
|
16
16
|
import "./chunk-4QF2K7TM.mjs";
|
|
17
17
|
import "./chunk-DLIRSHV6.mjs";
|
|
18
18
|
import "./chunk-HBL4PM5Q.mjs";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-KSQO32L5.mjs";
|
|
20
20
|
import "./chunk-WZYKRD7T.mjs";
|
|
21
21
|
import "./chunk-KRD6H754.mjs";
|
|
22
22
|
|