deepline 0.3.522 → 0.3.523
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 +118 -0
- package/dist/bundling-sources/sdk/src/index.ts +3 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +47 -18
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/db-session-renewal.ts +209 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +16 -6
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +5 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +38 -5
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +92 -10
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +96 -25
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +29 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +139 -17
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +26 -3
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +145 -5
- package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +190 -10
- package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +85 -5
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +21 -11
- package/dist/cli/{artifacts-RY2MK74N.mjs → artifacts-RBHR2DG4.mjs} +6 -6
- package/dist/cli/{artifacts-GIZZH5VA.js → artifacts-RZTS2JHZ.js} +18 -18
- package/dist/cli/auth-DPWYFQR5.js +43 -0
- package/dist/cli/{auth-YIBY5IKT.mjs → auth-ENQUQS56.mjs} +5 -5
- package/dist/cli/{billing-G3IX3SNY.mjs → billing-6A27ULCX.mjs} +7 -7
- package/dist/cli/{billing-UDKL53GI.js → billing-6HONTJOY.js} +82 -82
- package/dist/cli/{chunk-4DFWDA2Q.js → chunk-2BRDHM4S.js} +9 -9
- package/dist/cli/{chunk-EJBW7Y6Z.js → chunk-326WVSWS.js} +108 -96
- package/dist/cli/{chunk-7JEN3FX4.js → chunk-36LQQL5C.js} +5 -5
- package/dist/cli/{chunk-GVKW3LCA.js → chunk-4NWY7JBB.js} +11 -11
- package/dist/cli/{chunk-RKE5YTHY.mjs → chunk-4V63IJCL.mjs} +5 -5
- package/dist/cli/{chunk-VFCVH2LV.mjs → chunk-5WFQXAD4.mjs} +5 -5
- package/dist/cli/{chunk-4TUMKJZX.mjs → chunk-6DBRBWHC.mjs} +2 -2
- package/dist/cli/{chunk-CFXERH7F.mjs → chunk-6OZ2WSHD.mjs} +1 -1
- package/dist/cli/{chunk-5H22VJPE.js → chunk-7GNKAACY.js} +6 -6
- package/dist/cli/{chunk-G65FJ5JX.mjs → chunk-7M5FRSFP.mjs} +2 -2
- package/dist/cli/{chunk-PDLRUZ42.mjs → chunk-DNXP3D5H.mjs} +5 -5
- package/dist/cli/{chunk-OAQIVJFY.mjs → chunk-F3WRLFFM.mjs} +2 -2
- package/dist/cli/{chunk-RI672VNY.js → chunk-FBMOBNJY.js} +2 -2
- package/dist/cli/{chunk-NDNG3MAT.mjs → chunk-H7275EZU.mjs} +5 -5
- package/dist/cli/{chunk-C6WGMODR.mjs → chunk-HSVGP4CI.mjs} +2 -2
- package/dist/cli/{chunk-DNJJ3ULJ.js → chunk-HUC5SGJQ.js} +2 -2
- package/dist/cli/{chunk-DARD7TJ7.js → chunk-HUIFUE4L.js} +53 -53
- package/dist/cli/{chunk-52MHE7B4.mjs → chunk-I62LJ7NU.mjs} +1 -1
- package/dist/cli/{chunk-BZY335JP.js → chunk-IEVXYHGJ.js} +5 -5
- package/dist/cli/{chunk-FQQAAR3Q.mjs → chunk-JCTTXLAZ.mjs} +1 -1
- package/dist/cli/{chunk-3KMGVOBM.mjs → chunk-JGZQBDYG.mjs} +4 -4
- package/dist/cli/{chunk-ZUAKRBZB.js → chunk-JMMNCJ7Z.js} +1 -1
- package/dist/cli/{chunk-UV6XCHOZ.mjs → chunk-JVEFMOY2.mjs} +1 -1
- package/dist/cli/{chunk-FNHUDCJE.js → chunk-K326BEVR.js} +10 -10
- package/dist/cli/{chunk-MD524MRB.mjs → chunk-KILRUAXF.mjs} +1 -1
- package/dist/cli/{chunk-XXY4E57R.mjs → chunk-LZL6V5M5.mjs} +2 -2
- package/dist/cli/{chunk-GMYDVW7Z.js → chunk-MCXPJYBN.js} +3 -3
- package/dist/cli/{chunk-VE6FHVXZ.mjs → chunk-MHTRYBXY.mjs} +78 -1
- package/dist/cli/{chunk-ISUUSSS4.js → chunk-MT3WG3KR.js} +16 -16
- package/dist/cli/{chunk-37SXIFIU.js → chunk-MZROKQV3.js} +44 -44
- package/dist/cli/{chunk-4MF44THR.js → chunk-N5MLEXZ7.js} +50 -8
- package/dist/cli/{chunk-XR6TN5DT.mjs → chunk-NWTMQGPP.mjs} +6 -6
- package/dist/cli/{chunk-Y3LDRCMB.mjs → chunk-PCORO245.mjs} +2 -2
- package/dist/cli/{chunk-534YYHIF.js → chunk-PESMXAUG.js} +6 -6
- package/dist/cli/{chunk-RDJTCW3I.mjs → chunk-QMBL5ZIQ.mjs} +3 -3
- package/dist/cli/{chunk-LFSOBW7E.mjs → chunk-QOO5W5XS.mjs} +22 -10
- package/dist/cli/{chunk-ZZ7U4YJS.mjs → chunk-QSAC3IVI.mjs} +1 -1
- package/dist/cli/{chunk-HYR34KFA.js → chunk-QYXIODWH.js} +78 -1
- package/dist/cli/{chunk-BONXEWYF.mjs → chunk-RKREB7MU.mjs} +3 -3
- package/dist/cli/{chunk-KMBF3N2Z.js → chunk-RQN4PHRE.js} +16 -16
- package/dist/cli/{chunk-XT25FX6T.js → chunk-S4YKRH3W.js} +3 -3
- package/dist/cli/{chunk-F5D623KO.js → chunk-SBGKKOCC.js} +26 -26
- package/dist/cli/{chunk-5477PEHL.mjs → chunk-SXTVJIGB.mjs} +1 -1
- package/dist/cli/{chunk-7J5PLHII.mjs → chunk-U6DLLV3S.mjs} +1 -1
- package/dist/cli/{chunk-ENWJFUWK.mjs → chunk-UH3EAFFN.mjs} +2 -2
- package/dist/cli/{chunk-DLDWAPA5.js → chunk-UQN4VTZL.js} +4 -4
- package/dist/cli/{chunk-DRDZBRXV.js → chunk-V46J3UTM.js} +7 -7
- package/dist/cli/{chunk-5BQPEHEP.js → chunk-WGVJA4I5.js} +14 -14
- package/dist/cli/{chunk-SFMCKB57.mjs → chunk-WVQOXYTQ.mjs} +44 -2
- package/dist/cli/{chunk-VIM6I7RC.js → chunk-XVXEARHC.js} +41 -41
- package/dist/cli/{chunk-6SJPZV5E.js → chunk-XYL26236.js} +2 -2
- package/dist/cli/{chunk-ZZLZCO6Y.js → chunk-ZWN4RXC2.js} +22 -22
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-3HIE4VCO.js → csv-UBACJK75.js} +13 -13
- package/dist/cli/{csv-PE35WGRO.mjs → csv-YFJ2JLUP.mjs} +4 -4
- package/dist/cli/{db-O2YRTTDO.js → db-2ZPA2LZ7.js} +27 -27
- package/dist/cli/{db-L7ZMMQKW.mjs → db-NKGYTAQO.mjs} +6 -6
- package/dist/cli/{describe-NI324Y2M.mjs → describe-GX7DRKWZ.mjs} +18 -18
- package/dist/cli/describe-WQZF7MEG.js +50 -0
- package/dist/cli/describe-core.d.mts +3 -3
- package/dist/cli/describe-core.d.ts +3 -3
- package/dist/cli/{executions-T6KU2OKK.mjs → executions-HTHQ7KKD.mjs} +6 -6
- package/dist/cli/{executions-VH4DKLFI.js → executions-NXMRGPIL.js} +8 -8
- package/dist/cli/{feedback-ZLC6G5OK.js → feedback-TGVQACRO.js} +10 -10
- package/dist/cli/{feedback-SCSJC3FX.mjs → feedback-USP4T34P.mjs} +5 -5
- package/dist/cli/{git-I4LVQCID.mjs → git-KUONEHCD.mjs} +5 -5
- package/dist/cli/git-X3SCQREB.js +25 -0
- package/dist/cli/index.js +145 -145
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{legacy-noops-UPFWEHPG.js → legacy-noops-2JY3CQ24.js} +9 -9
- package/dist/cli/{legacy-noops-44FQ2256.mjs → legacy-noops-B2GMHU42.mjs} +6 -6
- package/dist/cli/{monitors-LMSASWXE.mjs → monitors-2OVBZJ6Z.mjs} +7 -7
- package/dist/cli/{monitors-JN6IQGK6.js → monitors-XI6I52AX.js} +100 -100
- package/dist/cli/{org-F7O3ZU5O.js → org-5TUQ2H6Y.js} +235 -72
- package/dist/cli/{org-QYLVEE7A.mjs → org-BNJW764Y.mjs} +169 -6
- package/dist/cli/{pages-5XE4LBZN.mjs → pages-QC3TQIPW.mjs} +6 -6
- package/dist/cli/{pages-KEL3Y4L4.js → pages-UXCLX53Y.js} +18 -18
- package/dist/cli/{play-MWQG3G32.mjs → play-45PPG5SZ.mjs} +18 -18
- package/dist/cli/{play-OURHH6KV.js → play-KRWMZ7FG.js} +317 -317
- package/dist/cli/{providers-IQY7LUBB.mjs → providers-JDT35MRL.mjs} +6 -6
- package/dist/cli/{providers-ZCBWPE3C.js → providers-RBUJ72Y3.js} +9 -9
- package/dist/cli/{quickstart-L45NGRMI.mjs → quickstart-GD2SWGAC.mjs} +4 -4
- package/dist/cli/{quickstart-O53OXTN6.js → quickstart-JZ4Q3HFT.js} +6 -6
- package/dist/cli/{run-W745Z3Z5.js → run-JEAHA367.js} +41 -41
- package/dist/cli/{run-VCSIWLEU.mjs → run-KIZ3HBI2.mjs} +23 -23
- package/dist/cli/{search-THELKULN.mjs → search-5UFNXHFK.mjs} +8 -8
- package/dist/cli/search-6JULJMD7.js +33 -0
- package/dist/cli/{search-output-N7MJLYYD.mjs → search-output-HAXPKQO6.mjs} +4 -4
- package/dist/cli/{search-output-SJW7LEOM.js → search-output-W3RDSVLE.js} +6 -6
- package/dist/cli/{secrets-44ST3FJH.mjs → secrets-JAWT66B2.mjs} +6 -6
- package/dist/cli/{secrets-GDXPX3KB.js → secrets-PC7C2Q32.js} +15 -15
- package/dist/cli/{sessions-LYCBI77S.mjs → sessions-325V7G35.mjs} +6 -6
- package/dist/cli/sessions-WFUCOJHZ.js +18 -0
- package/dist/cli/{settings-GXPDMJFG.mjs → settings-FKHTA65P.mjs} +13 -13
- package/dist/cli/{settings-3WOFF642.js → settings-RGU6Y2QR.js} +86 -86
- package/dist/cli/{setup-YM6JEB64.mjs → setup-43GOYTFC.mjs} +10 -10
- package/dist/cli/{setup-YHLMBJP4.js → setup-ZMZ7HU2I.js} +50 -50
- package/dist/cli/skills-3XTQ6FFM.js +37 -0
- package/dist/cli/{skills-WX4XWEAT.mjs → skills-Q2VAHSXM.mjs} +8 -8
- package/dist/cli/{tools-K24VSQ7S.mjs → tools-BUH7ZWDS.mjs} +17 -17
- package/dist/cli/tools-UK2R4YXQ.js +57 -0
- package/dist/cli/{update-PSSCF5AT.mjs → update-JFALWOHD.mjs} +10 -10
- package/dist/cli/update-LNKPHS54.js +35 -0
- package/dist/cli/{workflow-DGOPYATO.mjs → workflow-ISJKLY6X.mjs} +7 -7
- package/dist/cli/{workflow-FPVI3NIA.js → workflow-YELST32A.js} +17 -17
- package/dist/{client-DA71-2_u.d.mts → client-C2N7MofG.d.mts} +1 -1
- package/dist/{client-B-2Am2y6.d.ts → client-C7lTRJjw.d.ts} +1 -1
- package/dist/{client-core-BXbds1cb.d.mts → client-core-BTkDSKGn.d.mts} +79 -2
- package/dist/{client-core-C0IzDKMJ.d.ts → client-core-hmhBi7Ib.d.ts} +79 -2
- package/dist/{compiler-manifest-B4mIIbw7.d.mts → compiler-manifest-DsxsQP-T.d.mts} +14 -7
- package/dist/{compiler-manifest-B4mIIbw7.d.ts → compiler-manifest-DsxsQP-T.d.ts} +14 -7
- package/dist/{errors-Gj9i5Rkd.d.ts → errors-Bk5h1D-C.d.ts} +1 -1
- package/dist/{errors-C2F4qzAq.d.mts → errors-qdJUVQ3g.d.mts} +1 -1
- package/dist/{index-5JZBufdF.d.mts → index-PaupwX1B.d.mts} +1 -1
- package/dist/{index-BXtSj8bv.d.ts → index-bL66eHYz.d.ts} +1 -1
- package/dist/index.d.mts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +117 -116
- package/dist/plays/bundle-play-file.d.mts +3 -3
- package/dist/plays/bundle-play-file.d.ts +3 -3
- package/dist/plays/bundle-play-file.mjs +7 -5
- package/dist/plays/play-description.d.mts +2 -2
- package/dist/plays/play-description.d.ts +2 -2
- package/dist/plays/run-request.d.mts +2 -2
- package/dist/plays/run-request.d.ts +2 -2
- 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 +4 -4
- package/dist/server.d.ts +4 -4
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-JSES2JOQ.js +0 -43
- package/dist/cli/describe-EB336DAO.js +0 -50
- package/dist/cli/git-23T7TXAH.js +0 -25
- package/dist/cli/search-R6K7ZAMU.js +0 -33
- package/dist/cli/sessions-2V5ZFOWL.js +0 -18
- package/dist/cli/skills-XNGADDO6.js +0 -37
- package/dist/cli/tools-ROUMCB7B.js +0 -57
- package/dist/cli/update-RXURGIRW.js +0 -35
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-7M5FRSFP.mjs";
|
|
4
|
+
import "./chunk-WVQOXYTQ.mjs";
|
|
5
5
|
import "./chunk-L2VKAASU.mjs";
|
|
6
6
|
import "./chunk-FKD3KL5Q.mjs";
|
|
7
7
|
import "./chunk-S3A4IXBQ.mjs";
|
|
8
8
|
import "./chunk-UBKA33KY.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6DBRBWHC.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-SXTVJIGB.mjs";
|
|
32
32
|
import {
|
|
33
33
|
detectAgentRuntime
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-JCTTXLAZ.mjs";
|
|
35
35
|
import "./chunk-QNHHZ63P.mjs";
|
|
36
36
|
import "./chunk-DLIRSHV6.mjs";
|
|
37
37
|
import "./chunk-ZPGGW27Q.mjs";
|
|
38
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-JVEFMOY2.mjs";
|
|
39
39
|
import "./chunk-WZYKRD7T.mjs";
|
|
40
40
|
import "./chunk-KRD6H754.mjs";
|
|
41
41
|
|
|
@@ -776,6 +776,169 @@ Examples:
|
|
|
776
776
|
);
|
|
777
777
|
}
|
|
778
778
|
);
|
|
779
|
+
const serviceAccounts = org.command("service-accounts").description(
|
|
780
|
+
"Manage service accounts: members that are not people and own API keys."
|
|
781
|
+
);
|
|
782
|
+
const renderServiceAccount = (account) => `${account.id} ${account.name} role=${account.role ?? "none"} keys=${account.activeKeyCount}`;
|
|
783
|
+
serviceAccounts.command("list").description("List service accounts and, for admins, their keys.").option("--json", "Output JSON").action(async (options) => {
|
|
784
|
+
const result = await new DeeplineClient().workspaces.serviceAccounts.list();
|
|
785
|
+
printCommandEnvelope(
|
|
786
|
+
{
|
|
787
|
+
...result,
|
|
788
|
+
render: {
|
|
789
|
+
sections: [
|
|
790
|
+
{
|
|
791
|
+
title: "Service accounts",
|
|
792
|
+
lines: result.serviceAccounts.flatMap((account) => [
|
|
793
|
+
renderServiceAccount(account),
|
|
794
|
+
...(account.keys ?? []).map(
|
|
795
|
+
(key) => ` key ${key.id} ${key.keyPrefix}\u2026${key.keyLast4}`
|
|
796
|
+
)
|
|
797
|
+
])
|
|
798
|
+
}
|
|
799
|
+
]
|
|
800
|
+
}
|
|
801
|
+
},
|
|
802
|
+
{ json: options.json }
|
|
803
|
+
);
|
|
804
|
+
});
|
|
805
|
+
serviceAccounts.command("create <name>").description("Create a service account. Requires admin.").requiredOption("--role <role>", "read, run, or member").option("--json", "Output JSON").action(async (name, options) => {
|
|
806
|
+
const result = await new DeeplineClient().workspaces.serviceAccounts.create({
|
|
807
|
+
name,
|
|
808
|
+
role: options.role
|
|
809
|
+
});
|
|
810
|
+
printCommandEnvelope(
|
|
811
|
+
{
|
|
812
|
+
...result,
|
|
813
|
+
render: {
|
|
814
|
+
sections: [
|
|
815
|
+
{
|
|
816
|
+
title: "Service account created",
|
|
817
|
+
lines: [renderServiceAccount(result.serviceAccount)]
|
|
818
|
+
}
|
|
819
|
+
]
|
|
820
|
+
},
|
|
821
|
+
next: {
|
|
822
|
+
createKey: `deepline org service-accounts keys create ${result.serviceAccount.id}`
|
|
823
|
+
}
|
|
824
|
+
},
|
|
825
|
+
{ json: options.json }
|
|
826
|
+
);
|
|
827
|
+
});
|
|
828
|
+
serviceAccounts.command("set-role <service-account-id> <role>").description("Change a service account\u2019s role. Requires admin.").option("--json", "Output JSON").action(
|
|
829
|
+
async (serviceAccountId, role, options) => {
|
|
830
|
+
const result = await new DeeplineClient().workspaces.serviceAccounts.setRole(
|
|
831
|
+
serviceAccountId,
|
|
832
|
+
role
|
|
833
|
+
);
|
|
834
|
+
printCommandEnvelope(
|
|
835
|
+
{
|
|
836
|
+
...result,
|
|
837
|
+
render: {
|
|
838
|
+
sections: [
|
|
839
|
+
{
|
|
840
|
+
title: "Service account role",
|
|
841
|
+
lines: [renderServiceAccount(result.serviceAccount)]
|
|
842
|
+
}
|
|
843
|
+
]
|
|
844
|
+
}
|
|
845
|
+
},
|
|
846
|
+
{ json: options.json }
|
|
847
|
+
);
|
|
848
|
+
}
|
|
849
|
+
);
|
|
850
|
+
serviceAccounts.command("delete <service-account-id>").description(
|
|
851
|
+
"Delete a service account and revoke its keys. Requires admin."
|
|
852
|
+
).option("--json", "Output JSON").action(async (serviceAccountId, options) => {
|
|
853
|
+
const result = await new DeeplineClient().workspaces.serviceAccounts.delete(
|
|
854
|
+
serviceAccountId
|
|
855
|
+
);
|
|
856
|
+
printCommandEnvelope(
|
|
857
|
+
{
|
|
858
|
+
...result,
|
|
859
|
+
render: {
|
|
860
|
+
sections: [
|
|
861
|
+
{
|
|
862
|
+
title: "Service account deleted",
|
|
863
|
+
lines: [`${result.id} revoked keys=${result.revokedKeyCount}`]
|
|
864
|
+
}
|
|
865
|
+
]
|
|
866
|
+
}
|
|
867
|
+
},
|
|
868
|
+
{ json: options.json }
|
|
869
|
+
);
|
|
870
|
+
});
|
|
871
|
+
const serviceAccountKeys = serviceAccounts.command("keys").description(
|
|
872
|
+
"Create, rotate and revoke a service account\u2019s API key. A service account holds one active key."
|
|
873
|
+
);
|
|
874
|
+
serviceAccountKeys.command("create <service-account-id>").description(
|
|
875
|
+
"Create the API key for a service account that has none. Requires admin."
|
|
876
|
+
).option("--json", "Output JSON").action(async (serviceAccountId, options) => {
|
|
877
|
+
const result = await new DeeplineClient().workspaces.serviceAccounts.createKey(
|
|
878
|
+
serviceAccountId
|
|
879
|
+
);
|
|
880
|
+
printCommandEnvelope(
|
|
881
|
+
{
|
|
882
|
+
...result,
|
|
883
|
+
render: {
|
|
884
|
+
sections: [
|
|
885
|
+
{
|
|
886
|
+
title: "Service account key (shown once)",
|
|
887
|
+
lines: [result.apiKey, `id ${result.key.id}`]
|
|
888
|
+
}
|
|
889
|
+
]
|
|
890
|
+
}
|
|
891
|
+
},
|
|
892
|
+
{ json: options.json }
|
|
893
|
+
);
|
|
894
|
+
});
|
|
895
|
+
serviceAccountKeys.command("rotate <service-account-id>").description(
|
|
896
|
+
"Replace a service account\u2019s API key: the old key stops working and the new one is shown once. Requires admin."
|
|
897
|
+
).option("--json", "Output JSON").action(async (serviceAccountId, options) => {
|
|
898
|
+
const result = await new DeeplineClient().workspaces.serviceAccounts.rotateKey(
|
|
899
|
+
serviceAccountId
|
|
900
|
+
);
|
|
901
|
+
printCommandEnvelope(
|
|
902
|
+
{
|
|
903
|
+
...result,
|
|
904
|
+
render: {
|
|
905
|
+
sections: [
|
|
906
|
+
{
|
|
907
|
+
title: "Service account key rotated (shown once)",
|
|
908
|
+
lines: [
|
|
909
|
+
result.apiKey,
|
|
910
|
+
`id ${result.key.id}`,
|
|
911
|
+
`revoked ${result.revokedKeyIds.join(", ")}`
|
|
912
|
+
]
|
|
913
|
+
}
|
|
914
|
+
]
|
|
915
|
+
}
|
|
916
|
+
},
|
|
917
|
+
{ json: options.json }
|
|
918
|
+
);
|
|
919
|
+
});
|
|
920
|
+
serviceAccountKeys.command("revoke <service-account-id> <key-id>").description("Revoke a service account API key. Requires admin.").option("--json", "Output JSON").action(
|
|
921
|
+
async (serviceAccountId, keyId, options) => {
|
|
922
|
+
const result = await new DeeplineClient().workspaces.serviceAccounts.revokeKey(
|
|
923
|
+
serviceAccountId,
|
|
924
|
+
keyId
|
|
925
|
+
);
|
|
926
|
+
printCommandEnvelope(
|
|
927
|
+
{
|
|
928
|
+
...result,
|
|
929
|
+
render: {
|
|
930
|
+
sections: [
|
|
931
|
+
{
|
|
932
|
+
title: "Service account key revoked",
|
|
933
|
+
lines: [`${result.keyId} ${result.status}`]
|
|
934
|
+
}
|
|
935
|
+
]
|
|
936
|
+
}
|
|
937
|
+
},
|
|
938
|
+
{ json: options.json }
|
|
939
|
+
);
|
|
940
|
+
}
|
|
941
|
+
);
|
|
779
942
|
const sso = org.command("sso").description("Manage Enterprise workspace SSO.");
|
|
780
943
|
const ssoPath = "/api/v2/auth/workspace/sso";
|
|
781
944
|
const printSso = (payload, json) => printCommandEnvelope(
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-7M5FRSFP.mjs";
|
|
4
|
+
import "./chunk-WVQOXYTQ.mjs";
|
|
5
5
|
import "./chunk-L2VKAASU.mjs";
|
|
6
6
|
import "./chunk-FKD3KL5Q.mjs";
|
|
7
7
|
import "./chunk-S3A4IXBQ.mjs";
|
|
8
8
|
import "./chunk-UBKA33KY.mjs";
|
|
9
9
|
import {
|
|
10
10
|
printCommandEnvelope
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6DBRBWHC.mjs";
|
|
12
12
|
import {
|
|
13
13
|
cliFeatureEnabled
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-SXTVJIGB.mjs";
|
|
15
|
+
import "./chunk-JCTTXLAZ.mjs";
|
|
16
16
|
import "./chunk-QNHHZ63P.mjs";
|
|
17
17
|
import "./chunk-DLIRSHV6.mjs";
|
|
18
18
|
import "./chunk-ZPGGW27Q.mjs";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-JVEFMOY2.mjs";
|
|
20
20
|
import "./chunk-WZYKRD7T.mjs";
|
|
21
21
|
import "./chunk-KRD6H754.mjs";
|
|
22
22
|
|
|
@@ -1,22 +1,22 @@
|
|
|
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 _chunk36LQQL5Cjs = require('./chunk-36LQQL5C.js');
|
|
4
|
+
require('./chunk-N5MLEXZ7.js');
|
|
5
5
|
require('./chunk-E4CABWXL.js');
|
|
6
6
|
require('./chunk-2KHUFWTK.js');
|
|
7
7
|
require('./chunk-NMU3VR5U.js');
|
|
8
8
|
require('./chunk-XDVT3GOM.js');
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkV46J3UTMjs = require('./chunk-V46J3UTM.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
15
|
-
require('./chunk-
|
|
14
|
+
var _chunkMCXPJYBNjs = require('./chunk-MCXPJYBN.js');
|
|
15
|
+
require('./chunk-UQN4VTZL.js');
|
|
16
16
|
require('./chunk-T2N3B7IQ.js');
|
|
17
17
|
require('./chunk-XNYIZMNQ.js');
|
|
18
18
|
require('./chunk-SQWET4SL.js');
|
|
19
|
-
require('./chunk-
|
|
19
|
+
require('./chunk-JMMNCJ7Z.js');
|
|
20
20
|
require('./chunk-OG64RBAC.js');
|
|
21
21
|
require('./chunk-COGTRVWW.js');
|
|
22
22
|
|
|
@@ -73,7 +73,7 @@ function linkLine(link) {
|
|
|
73
73
|
return `${link.id} ${expiry}${link.label ? ` ${link.label}` : ""}`;
|
|
74
74
|
}
|
|
75
75
|
function print(command, json, data, lines) {
|
|
76
|
-
|
|
76
|
+
_chunkV46J3UTMjs.printCommandEnvelope.call(void 0,
|
|
77
77
|
{ command, ...data, render: { sections: [{ title: command, lines }] } },
|
|
78
78
|
{ json: Boolean(json), text: `${lines.join("\n")}
|
|
79
79
|
` }
|
|
@@ -89,7 +89,7 @@ async function run(action) {
|
|
|
89
89
|
}
|
|
90
90
|
var HOSTED_PAGES_FEATURE = "hosted-pages";
|
|
91
91
|
function registerPagesCommands(program) {
|
|
92
|
-
const pages = program.command("pages", { hidden: !
|
|
92
|
+
const pages = program.command("pages", { hidden: !_chunkMCXPJYBNjs.cliFeatureEnabled.call(void 0, HOSTED_PAGES_FEATURE) }).description(
|
|
93
93
|
"Publish documents at stable URLs on deepline.page and share them."
|
|
94
94
|
).addHelpText(
|
|
95
95
|
"after",
|
|
@@ -115,7 +115,7 @@ Examples:
|
|
|
115
115
|
throw new Error("Pass exactly one of --public or --private.");
|
|
116
116
|
}
|
|
117
117
|
const content = await _promises.readFile.call(void 0, options.file);
|
|
118
|
-
const result = await new (0,
|
|
118
|
+
const result = await new (0, _chunk36LQQL5Cjs.DeeplineClient)().writePage(name, {
|
|
119
119
|
public: Boolean(options.public),
|
|
120
120
|
contentBase64: content.toString("base64"),
|
|
121
121
|
contentType: _nullishCoalesce(options.contentType, () => ( inferPageContentType(options.file))),
|
|
@@ -138,7 +138,7 @@ Examples:
|
|
|
138
138
|
`
|
|
139
139
|
).action(
|
|
140
140
|
async (options) => run(async () => {
|
|
141
|
-
const result = await new (0,
|
|
141
|
+
const result = await new (0, _chunk36LQQL5Cjs.DeeplineClient)().listPages({
|
|
142
142
|
cursor: options.cursor,
|
|
143
143
|
limit: options.limit
|
|
144
144
|
});
|
|
@@ -152,7 +152,7 @@ Examples:
|
|
|
152
152
|
);
|
|
153
153
|
pages.command("get <name>").description("Show one page's details.").option("--json", "Emit raw JSON response").action(
|
|
154
154
|
async (name, options) => run(async () => {
|
|
155
|
-
const page = await new (0,
|
|
155
|
+
const page = await new (0, _chunk36LQQL5Cjs.DeeplineClient)().getPage(name);
|
|
156
156
|
print("pages get", options.json, page, pageLines(page));
|
|
157
157
|
})
|
|
158
158
|
);
|
|
@@ -160,7 +160,7 @@ Examples:
|
|
|
160
160
|
"Replace the HTTPS origins that can read a public page. Omit origins to clear the list."
|
|
161
161
|
).option("--json", "Emit raw JSON response").action(
|
|
162
162
|
async (name, origins, options) => run(async () => {
|
|
163
|
-
const result = await new (0,
|
|
163
|
+
const result = await new (0, _chunk36LQQL5Cjs.DeeplineClient)().setPageAllowedOrigins(
|
|
164
164
|
name,
|
|
165
165
|
origins
|
|
166
166
|
);
|
|
@@ -179,7 +179,7 @@ Notes:
|
|
|
179
179
|
`
|
|
180
180
|
).action(
|
|
181
181
|
async (name, options) => run(async () => {
|
|
182
|
-
const page = await new (0,
|
|
182
|
+
const page = await new (0, _chunk36LQQL5Cjs.DeeplineClient)().setPageVisibility(name, true);
|
|
183
183
|
print("pages set-public", options.json, page, [
|
|
184
184
|
`${page.name} is now visible to anyone with its URL.`,
|
|
185
185
|
page.url
|
|
@@ -194,7 +194,7 @@ Notes:
|
|
|
194
194
|
`
|
|
195
195
|
).action(
|
|
196
196
|
async (name, options) => run(async () => {
|
|
197
|
-
const page = await new (0,
|
|
197
|
+
const page = await new (0, _chunk36LQQL5Cjs.DeeplineClient)().setPageVisibility(name, false);
|
|
198
198
|
print("pages set-private", options.json, page, [
|
|
199
199
|
`${page.name} is now visible to workspace members only.`
|
|
200
200
|
]);
|
|
@@ -210,7 +210,7 @@ Notes:
|
|
|
210
210
|
`
|
|
211
211
|
).action(
|
|
212
212
|
async (name, options) => run(async () => {
|
|
213
|
-
const result = await new (0,
|
|
213
|
+
const result = await new (0, _chunk36LQQL5Cjs.DeeplineClient)().deletePage(name);
|
|
214
214
|
print("pages delete", options.json, result, [`Deleted ${name}.`]);
|
|
215
215
|
})
|
|
216
216
|
);
|
|
@@ -227,7 +227,7 @@ Examples:
|
|
|
227
227
|
if (Boolean(options.expiresIn) === Boolean(options.permanent)) {
|
|
228
228
|
throw new Error("Pass exactly one of --expires-in or --permanent.");
|
|
229
229
|
}
|
|
230
|
-
const link = await new (0,
|
|
230
|
+
const link = await new (0, _chunk36LQQL5Cjs.DeeplineClient)().createPageLink(name, {
|
|
231
231
|
expiresInSeconds: options.expiresIn ? parseExpiresIn(options.expiresIn) : void 0,
|
|
232
232
|
permanent: options.permanent ? true : void 0,
|
|
233
233
|
label: options.label
|
|
@@ -241,7 +241,7 @@ Examples:
|
|
|
241
241
|
);
|
|
242
242
|
links.command("list <name>").description("List a page's links. Their URLs cannot be shown again.").option("--json", "Emit raw JSON response").action(
|
|
243
243
|
async (name, options) => run(async () => {
|
|
244
|
-
const result = await new (0,
|
|
244
|
+
const result = await new (0, _chunk36LQQL5Cjs.DeeplineClient)().listPageLinks(name);
|
|
245
245
|
print(
|
|
246
246
|
"pages links list",
|
|
247
247
|
options.json,
|
|
@@ -252,7 +252,7 @@ Examples:
|
|
|
252
252
|
);
|
|
253
253
|
links.command("revoke <name> <link-id>").description("Stop a link working.").option("--json", "Emit raw JSON response").action(
|
|
254
254
|
async (name, linkId, options) => run(async () => {
|
|
255
|
-
const result = await new (0,
|
|
255
|
+
const result = await new (0, _chunk36LQQL5Cjs.DeeplineClient)().revokePageLink(name, linkId);
|
|
256
256
|
print("pages links revoke", options.json, result, [
|
|
257
257
|
`Revoked ${linkId}.`
|
|
258
258
|
]);
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
parsePlayRunHeaderFlag,
|
|
6
6
|
parsePlayRunOptions,
|
|
7
7
|
resolvePlayRunCliOptions
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PCORO245.mjs";
|
|
9
9
|
import {
|
|
10
10
|
ExecutionOutputError,
|
|
11
11
|
TABLE_EXPORT_ERROR_COLUMN,
|
|
@@ -18,15 +18,15 @@ import {
|
|
|
18
18
|
underscoreKeysLast,
|
|
19
19
|
writeExecutionOutput,
|
|
20
20
|
writeRunDatasetCsv
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-KILRUAXF.mjs";
|
|
22
22
|
import {
|
|
23
23
|
registerDeprecatedSearchCommand
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-5WFQXAD4.mjs";
|
|
25
25
|
import "./chunk-5AEDYVB6.mjs";
|
|
26
26
|
import {
|
|
27
27
|
handleDeploymentGet,
|
|
28
28
|
handleDeploymentsList
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-HSVGP4CI.mjs";
|
|
30
30
|
import {
|
|
31
31
|
buildPlayDashboardUrl,
|
|
32
32
|
buildPlayRunUrl
|
|
@@ -51,10 +51,10 @@ import {
|
|
|
51
51
|
import {
|
|
52
52
|
pinLocalPlayImports,
|
|
53
53
|
planLocalPlayExecution
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-UH3EAFFN.mjs";
|
|
55
55
|
import {
|
|
56
56
|
DeeplineClient
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-7M5FRSFP.mjs";
|
|
58
58
|
import {
|
|
59
59
|
RUN_EVENT_SEARCH_KIND_VALUES,
|
|
60
60
|
RunEventQueryInputError,
|
|
@@ -67,7 +67,7 @@ import {
|
|
|
67
67
|
normalizePlayStatus,
|
|
68
68
|
normalizeRunEventOperationRequest,
|
|
69
69
|
parseLogLevel
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-WVQOXYTQ.mjs";
|
|
71
71
|
import "./chunk-L2VKAASU.mjs";
|
|
72
72
|
import {
|
|
73
73
|
CSV_DATA_INPUT_KEY,
|
|
@@ -91,19 +91,19 @@ import "./chunk-UBKA33KY.mjs";
|
|
|
91
91
|
import {
|
|
92
92
|
checkPlayRunCompatibility,
|
|
93
93
|
usesCliPlayAdmission
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-F3WRLFFM.mjs";
|
|
95
95
|
import {
|
|
96
96
|
isCliTraceEnabled,
|
|
97
97
|
recordCliTrace,
|
|
98
98
|
resolveCliMaintenancePolicy,
|
|
99
99
|
traceCliSpan
|
|
100
|
-
} from "./chunk-
|
|
101
|
-
import "./chunk-
|
|
100
|
+
} from "./chunk-I62LJ7NU.mjs";
|
|
101
|
+
import "./chunk-4V63IJCL.mjs";
|
|
102
102
|
import {
|
|
103
103
|
createCliProgress,
|
|
104
104
|
getActiveCliProgress
|
|
105
|
-
} from "./chunk-
|
|
106
|
-
import "./chunk-
|
|
105
|
+
} from "./chunk-QSAC3IVI.mjs";
|
|
106
|
+
import "./chunk-LZL6V5M5.mjs";
|
|
107
107
|
import {
|
|
108
108
|
formatNonStandardSandboxRuntimeWarning
|
|
109
109
|
} from "./chunk-5LUF4LAR.mjs";
|
|
@@ -123,17 +123,17 @@ import {
|
|
|
123
123
|
printJsonError,
|
|
124
124
|
renderCommandEnvelopeText,
|
|
125
125
|
shouldEmitJson
|
|
126
|
-
} from "./chunk-
|
|
127
|
-
import "./chunk-
|
|
126
|
+
} from "./chunk-6DBRBWHC.mjs";
|
|
127
|
+
import "./chunk-SXTVJIGB.mjs";
|
|
128
128
|
import {
|
|
129
129
|
fetchWithDeploymentProtection
|
|
130
|
-
} from "./chunk-
|
|
130
|
+
} from "./chunk-JCTTXLAZ.mjs";
|
|
131
131
|
import "./chunk-QNHHZ63P.mjs";
|
|
132
132
|
import "./chunk-DLIRSHV6.mjs";
|
|
133
133
|
import {
|
|
134
134
|
DeeplineError
|
|
135
135
|
} from "./chunk-ZPGGW27Q.mjs";
|
|
136
|
-
import "./chunk-
|
|
136
|
+
import "./chunk-JVEFMOY2.mjs";
|
|
137
137
|
import "./chunk-WZYKRD7T.mjs";
|
|
138
138
|
import {
|
|
139
139
|
__commonJS,
|
|
@@ -16577,7 +16577,7 @@ Examples:
|
|
|
16577
16577
|
process.exitCode = await ownView();
|
|
16578
16578
|
return;
|
|
16579
16579
|
}
|
|
16580
|
-
const { describeAnything } = await import("./describe-
|
|
16580
|
+
const { describeAnything } = await import("./describe-GX7DRKWZ.mjs");
|
|
16581
16581
|
process.exitCode = await describeAnything(
|
|
16582
16582
|
name,
|
|
16583
16583
|
{
|
|
@@ -16915,7 +16915,7 @@ Examples:
|
|
|
16915
16915
|
new Option2("--log-failed", "Attach terminal-failure logs").hideHelp()
|
|
16916
16916
|
).action(async (runId, options) => {
|
|
16917
16917
|
if (TOOL_EXECUTION_ID.test(runId)) {
|
|
16918
|
-
const { getToolExecutionReceipt } = await import("./tools-
|
|
16918
|
+
const { getToolExecutionReceipt } = await import("./tools-BUH7ZWDS.mjs");
|
|
16919
16919
|
process.exitCode = await getToolExecutionReceipt(runId, {
|
|
16920
16920
|
receiptJson: options.json !== void 0
|
|
16921
16921
|
});
|