deepline 0.3.521 → 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.
Files changed (170) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +118 -0
  2. package/dist/bundling-sources/sdk/src/index.ts +3 -0
  3. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  4. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +47 -18
  5. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +1 -0
  6. package/dist/bundling-sources/shared_libs/play-runtime/db-session-renewal.ts +209 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +24 -7
  8. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/runtime-tool-hooks.ts +5 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-modal-fallback.ts +1 -0
  10. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona.ts +38 -5
  11. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +92 -10
  12. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +96 -25
  13. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +29 -0
  14. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd.ts +139 -17
  15. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/durable-run-sql.ts +26 -3
  16. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +145 -5
  17. package/dist/bundling-sources/shared_libs/play-runtime/tool-cache-policy.ts +190 -10
  18. package/dist/bundling-sources/shared_libs/play-runtime/tool-execute-retry-policy.ts +85 -5
  19. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +21 -11
  20. package/dist/cli/{artifacts-TYPU37IU.mjs → artifacts-RBHR2DG4.mjs} +6 -6
  21. package/dist/cli/{artifacts-JGH464N2.js → artifacts-RZTS2JHZ.js} +18 -18
  22. package/dist/cli/auth-DPWYFQR5.js +43 -0
  23. package/dist/cli/{auth-XPQT6NUB.mjs → auth-ENQUQS56.mjs} +5 -5
  24. package/dist/cli/{billing-47AMHOMP.mjs → billing-6A27ULCX.mjs} +7 -7
  25. package/dist/cli/{billing-6D4KXBFJ.js → billing-6HONTJOY.js} +82 -82
  26. package/dist/cli/{chunk-DY6634MN.js → chunk-2BRDHM4S.js} +9 -9
  27. package/dist/cli/{chunk-LGU2NIOT.js → chunk-326WVSWS.js} +108 -96
  28. package/dist/cli/{chunk-UAZKOH3J.js → chunk-36LQQL5C.js} +5 -5
  29. package/dist/cli/{chunk-VYY5V4M5.js → chunk-4NWY7JBB.js} +11 -11
  30. package/dist/cli/{chunk-2DQPB5HT.mjs → chunk-4V63IJCL.mjs} +5 -5
  31. package/dist/cli/{chunk-4MONKWYE.mjs → chunk-5WFQXAD4.mjs} +5 -5
  32. package/dist/cli/{chunk-A6USUS4L.mjs → chunk-6DBRBWHC.mjs} +2 -2
  33. package/dist/cli/{chunk-4I7I5CGB.mjs → chunk-6OZ2WSHD.mjs} +1 -1
  34. package/dist/cli/{chunk-MD43YAL6.js → chunk-7GNKAACY.js} +6 -6
  35. package/dist/cli/{chunk-7IYDCHTG.mjs → chunk-7M5FRSFP.mjs} +2 -2
  36. package/dist/cli/{chunk-HHBJJYKL.mjs → chunk-DNXP3D5H.mjs} +5 -5
  37. package/dist/cli/{chunk-4DB6JV7X.mjs → chunk-F3WRLFFM.mjs} +2 -2
  38. package/dist/cli/{chunk-AMVKLEPH.js → chunk-FBMOBNJY.js} +2 -2
  39. package/dist/cli/{chunk-EZNZDOAG.mjs → chunk-H7275EZU.mjs} +5 -5
  40. package/dist/cli/{chunk-CBBCUYIN.mjs → chunk-HSVGP4CI.mjs} +2 -2
  41. package/dist/cli/{chunk-FTZX4QZN.js → chunk-HUC5SGJQ.js} +2 -2
  42. package/dist/cli/{chunk-4MN65FRF.js → chunk-HUIFUE4L.js} +53 -53
  43. package/dist/cli/{chunk-5T7QKHQL.mjs → chunk-I62LJ7NU.mjs} +1 -1
  44. package/dist/cli/{chunk-EW3EAEWZ.js → chunk-IEVXYHGJ.js} +5 -5
  45. package/dist/cli/{chunk-E4ZS2B2J.mjs → chunk-JCTTXLAZ.mjs} +1 -1
  46. package/dist/cli/{chunk-LNBMEFOI.mjs → chunk-JGZQBDYG.mjs} +4 -4
  47. package/dist/cli/{chunk-GNYSODBR.js → chunk-JMMNCJ7Z.js} +1 -1
  48. package/dist/cli/{chunk-7AUXX6M5.mjs → chunk-JVEFMOY2.mjs} +1 -1
  49. package/dist/cli/{chunk-3Q7HEEH2.js → chunk-K326BEVR.js} +10 -10
  50. package/dist/cli/{chunk-TBIWR7M2.mjs → chunk-KILRUAXF.mjs} +1 -1
  51. package/dist/cli/{chunk-6UHYXNCP.mjs → chunk-LZL6V5M5.mjs} +2 -2
  52. package/dist/cli/{chunk-EILHJRPW.js → chunk-MCXPJYBN.js} +3 -3
  53. package/dist/cli/{chunk-VE6FHVXZ.mjs → chunk-MHTRYBXY.mjs} +78 -1
  54. package/dist/cli/{chunk-VSH3AE5E.js → chunk-MT3WG3KR.js} +16 -16
  55. package/dist/cli/{chunk-PUKWFJXW.js → chunk-MZROKQV3.js} +44 -44
  56. package/dist/cli/{chunk-QGTWGHYD.js → chunk-N5MLEXZ7.js} +50 -8
  57. package/dist/cli/{chunk-ZO2XJVFH.mjs → chunk-NWTMQGPP.mjs} +6 -6
  58. package/dist/cli/{chunk-6V2RI3AL.mjs → chunk-PCORO245.mjs} +2 -2
  59. package/dist/cli/{chunk-MRU4N33M.js → chunk-PESMXAUG.js} +6 -6
  60. package/dist/cli/{chunk-4GGXAYKI.mjs → chunk-QMBL5ZIQ.mjs} +3 -3
  61. package/dist/cli/{chunk-A2B5AAU3.mjs → chunk-QOO5W5XS.mjs} +22 -10
  62. package/dist/cli/{chunk-HRWVEIAX.mjs → chunk-QSAC3IVI.mjs} +1 -1
  63. package/dist/cli/{chunk-HYR34KFA.js → chunk-QYXIODWH.js} +78 -1
  64. package/dist/cli/{chunk-Y7IR4LBU.mjs → chunk-RKREB7MU.mjs} +3 -3
  65. package/dist/cli/{chunk-JFQJNYTB.js → chunk-RQN4PHRE.js} +16 -16
  66. package/dist/cli/{chunk-6DCBTJZP.js → chunk-S4YKRH3W.js} +3 -3
  67. package/dist/cli/{chunk-ULW2KBKL.js → chunk-SBGKKOCC.js} +26 -26
  68. package/dist/cli/{chunk-DQURY3WH.mjs → chunk-SXTVJIGB.mjs} +1 -1
  69. package/dist/cli/{chunk-7LRALARF.mjs → chunk-U6DLLV3S.mjs} +1 -1
  70. package/dist/cli/{chunk-NNDAVVBG.mjs → chunk-UH3EAFFN.mjs} +2 -2
  71. package/dist/cli/{chunk-HSFLMTED.js → chunk-UQN4VTZL.js} +4 -4
  72. package/dist/cli/{chunk-HD3KYCDC.js → chunk-V46J3UTM.js} +7 -7
  73. package/dist/cli/{chunk-WL6WPW6X.js → chunk-WGVJA4I5.js} +14 -14
  74. package/dist/cli/{chunk-FQJFONFT.mjs → chunk-WVQOXYTQ.mjs} +44 -2
  75. package/dist/cli/{chunk-Y23TOHNV.js → chunk-XVXEARHC.js} +41 -41
  76. package/dist/cli/{chunk-6N72GHAV.js → chunk-XYL26236.js} +2 -2
  77. package/dist/cli/{chunk-YROP3H6T.js → chunk-ZWN4RXC2.js} +22 -22
  78. package/dist/cli/command-docs.js +2 -2
  79. package/dist/cli/command-docs.mjs +1 -1
  80. package/dist/cli/{csv-5TM2OSYP.js → csv-UBACJK75.js} +13 -13
  81. package/dist/cli/{csv-PM3WDXDF.mjs → csv-YFJ2JLUP.mjs} +4 -4
  82. package/dist/cli/{db-3LJ32FZM.js → db-2ZPA2LZ7.js} +27 -27
  83. package/dist/cli/{db-5P72NPRL.mjs → db-NKGYTAQO.mjs} +6 -6
  84. package/dist/cli/{describe-ZLCMBGHG.mjs → describe-GX7DRKWZ.mjs} +18 -18
  85. package/dist/cli/describe-WQZF7MEG.js +50 -0
  86. package/dist/cli/describe-core.d.mts +3 -3
  87. package/dist/cli/describe-core.d.ts +3 -3
  88. package/dist/cli/{executions-JMFL6AV7.mjs → executions-HTHQ7KKD.mjs} +6 -6
  89. package/dist/cli/{executions-4AJ5TQVY.js → executions-NXMRGPIL.js} +8 -8
  90. package/dist/cli/{feedback-I2BLXMGH.js → feedback-TGVQACRO.js} +10 -10
  91. package/dist/cli/{feedback-DKMG2QB7.mjs → feedback-USP4T34P.mjs} +5 -5
  92. package/dist/cli/{git-ARG223MY.mjs → git-KUONEHCD.mjs} +5 -5
  93. package/dist/cli/git-X3SCQREB.js +25 -0
  94. package/dist/cli/index.js +145 -145
  95. package/dist/cli/index.mjs +44 -44
  96. package/dist/cli/{legacy-noops-N7SVA7PL.js → legacy-noops-2JY3CQ24.js} +9 -9
  97. package/dist/cli/{legacy-noops-24LOAOZN.mjs → legacy-noops-B2GMHU42.mjs} +6 -6
  98. package/dist/cli/{monitors-RYQFWM2T.mjs → monitors-2OVBZJ6Z.mjs} +7 -7
  99. package/dist/cli/{monitors-XNCYLOJM.js → monitors-XI6I52AX.js} +100 -100
  100. package/dist/cli/{org-I33TKZXF.js → org-5TUQ2H6Y.js} +235 -72
  101. package/dist/cli/{org-ORIH56E5.mjs → org-BNJW764Y.mjs} +169 -6
  102. package/dist/cli/{pages-ME43HSBL.mjs → pages-QC3TQIPW.mjs} +6 -6
  103. package/dist/cli/{pages-2UXXGIMF.js → pages-UXCLX53Y.js} +18 -18
  104. package/dist/cli/{play-XEKNY46M.mjs → play-45PPG5SZ.mjs} +18 -18
  105. package/dist/cli/{play-F4QOFU37.js → play-KRWMZ7FG.js} +317 -317
  106. package/dist/cli/{providers-XKU44G74.mjs → providers-JDT35MRL.mjs} +6 -6
  107. package/dist/cli/{providers-E7DPCBNX.js → providers-RBUJ72Y3.js} +9 -9
  108. package/dist/cli/{quickstart-J7NVEXV5.mjs → quickstart-GD2SWGAC.mjs} +4 -4
  109. package/dist/cli/{quickstart-ICLF2F6A.js → quickstart-JZ4Q3HFT.js} +6 -6
  110. package/dist/cli/{run-HJMHUQBN.js → run-JEAHA367.js} +41 -41
  111. package/dist/cli/{run-MQ5ZONGL.mjs → run-KIZ3HBI2.mjs} +23 -23
  112. package/dist/cli/{search-GGRC77CV.mjs → search-5UFNXHFK.mjs} +8 -8
  113. package/dist/cli/search-6JULJMD7.js +33 -0
  114. package/dist/cli/{search-output-NY4GDBRU.mjs → search-output-HAXPKQO6.mjs} +4 -4
  115. package/dist/cli/{search-output-MXZTZI2P.js → search-output-W3RDSVLE.js} +6 -6
  116. package/dist/cli/{secrets-FA37G4Q2.mjs → secrets-JAWT66B2.mjs} +6 -6
  117. package/dist/cli/{secrets-PFESG72B.js → secrets-PC7C2Q32.js} +15 -15
  118. package/dist/cli/{sessions-BLLXPETU.mjs → sessions-325V7G35.mjs} +6 -6
  119. package/dist/cli/sessions-WFUCOJHZ.js +18 -0
  120. package/dist/cli/{settings-U26S7MPH.mjs → settings-FKHTA65P.mjs} +13 -13
  121. package/dist/cli/{settings-32VPG4Z2.js → settings-RGU6Y2QR.js} +86 -86
  122. package/dist/cli/{setup-4AXBCX7C.mjs → setup-43GOYTFC.mjs} +10 -10
  123. package/dist/cli/{setup-R6NSENH7.js → setup-ZMZ7HU2I.js} +50 -50
  124. package/dist/cli/skills-3XTQ6FFM.js +37 -0
  125. package/dist/cli/{skills-JUH7AVUL.mjs → skills-Q2VAHSXM.mjs} +8 -8
  126. package/dist/cli/{tools-FOYLU3FH.mjs → tools-BUH7ZWDS.mjs} +17 -17
  127. package/dist/cli/tools-UK2R4YXQ.js +57 -0
  128. package/dist/cli/{update-FUVX22VM.mjs → update-JFALWOHD.mjs} +10 -10
  129. package/dist/cli/update-LNKPHS54.js +35 -0
  130. package/dist/cli/{workflow-QLT22BLT.mjs → workflow-ISJKLY6X.mjs} +7 -7
  131. package/dist/cli/{workflow-JACZW4GJ.js → workflow-YELST32A.js} +17 -17
  132. package/dist/{client-DA71-2_u.d.mts → client-C2N7MofG.d.mts} +1 -1
  133. package/dist/{client-B-2Am2y6.d.ts → client-C7lTRJjw.d.ts} +1 -1
  134. package/dist/{client-core-BXbds1cb.d.mts → client-core-BTkDSKGn.d.mts} +79 -2
  135. package/dist/{client-core-C0IzDKMJ.d.ts → client-core-hmhBi7Ib.d.ts} +79 -2
  136. package/dist/{compiler-manifest-B4mIIbw7.d.ts → compiler-manifest-DsxsQP-T.d.mts} +14 -7
  137. package/dist/{compiler-manifest-B4mIIbw7.d.mts → compiler-manifest-DsxsQP-T.d.ts} +14 -7
  138. package/dist/{errors-Gj9i5Rkd.d.ts → errors-Bk5h1D-C.d.ts} +1 -1
  139. package/dist/{errors-C2F4qzAq.d.mts → errors-qdJUVQ3g.d.mts} +1 -1
  140. package/dist/{index-5JZBufdF.d.mts → index-PaupwX1B.d.mts} +1 -1
  141. package/dist/{index-BXtSj8bv.d.ts → index-bL66eHYz.d.ts} +1 -1
  142. package/dist/index.d.mts +7 -7
  143. package/dist/index.d.ts +7 -7
  144. package/dist/index.js +9 -9
  145. package/dist/index.mjs +6 -6
  146. package/dist/install-integrity.json +117 -116
  147. package/dist/plays/bundle-play-file.d.mts +3 -3
  148. package/dist/plays/bundle-play-file.d.ts +3 -3
  149. package/dist/plays/bundle-play-file.mjs +7 -5
  150. package/dist/plays/play-description.d.mts +2 -2
  151. package/dist/plays/play-description.d.ts +2 -2
  152. package/dist/plays/run-request.d.mts +2 -2
  153. package/dist/plays/run-request.d.ts +2 -2
  154. package/dist/release.d.mts +1 -1
  155. package/dist/release.d.ts +1 -1
  156. package/dist/release.js +2 -2
  157. package/dist/release.mjs +1 -1
  158. package/dist/server.d.mts +4 -4
  159. package/dist/server.d.ts +4 -4
  160. package/dist/server.js +5 -5
  161. package/dist/server.mjs +3 -3
  162. package/package.json +1 -1
  163. package/dist/cli/auth-JWR3VSNT.js +0 -43
  164. package/dist/cli/describe-GRS3IRSX.js +0 -50
  165. package/dist/cli/git-2LNT43A2.js +0 -25
  166. package/dist/cli/search-V6IBJ4TX.js +0 -33
  167. package/dist/cli/sessions-DNFTQOQH.js +0 -18
  168. package/dist/cli/skills-G4ZE3OS5.js +0 -37
  169. package/dist/cli/tools-27LHZFJD.js +0 -57
  170. package/dist/cli/update-KNZ7N242.js +0 -35
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-7IYDCHTG.mjs";
4
- import "./chunk-FQJFONFT.mjs";
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-A6USUS4L.mjs";
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-DQURY3WH.mjs";
31
+ } from "./chunk-SXTVJIGB.mjs";
32
32
  import {
33
33
  detectAgentRuntime
34
- } from "./chunk-E4ZS2B2J.mjs";
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-7AUXX6M5.mjs";
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-7IYDCHTG.mjs";
4
- import "./chunk-FQJFONFT.mjs";
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-A6USUS4L.mjs";
11
+ } from "./chunk-6DBRBWHC.mjs";
12
12
  import {
13
13
  cliFeatureEnabled
14
- } from "./chunk-DQURY3WH.mjs";
15
- import "./chunk-E4ZS2B2J.mjs";
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-7AUXX6M5.mjs";
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 _chunkUAZKOH3Jjs = require('./chunk-UAZKOH3J.js');
4
- require('./chunk-QGTWGHYD.js');
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 _chunkHD3KYCDCjs = require('./chunk-HD3KYCDC.js');
11
+ var _chunkV46J3UTMjs = require('./chunk-V46J3UTM.js');
12
12
 
13
13
 
14
- var _chunkEILHJRPWjs = require('./chunk-EILHJRPW.js');
15
- require('./chunk-HSFLMTED.js');
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-GNYSODBR.js');
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
- _chunkHD3KYCDCjs.printCommandEnvelope.call(void 0,
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: !_chunkEILHJRPWjs.cliFeatureEnabled.call(void 0, HOSTED_PAGES_FEATURE) }).description(
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, _chunkUAZKOH3Jjs.DeeplineClient)().writePage(name, {
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, _chunkUAZKOH3Jjs.DeeplineClient)().listPages({
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, _chunkUAZKOH3Jjs.DeeplineClient)().getPage(name);
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, _chunkUAZKOH3Jjs.DeeplineClient)().setPageAllowedOrigins(
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, _chunkUAZKOH3Jjs.DeeplineClient)().setPageVisibility(name, true);
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, _chunkUAZKOH3Jjs.DeeplineClient)().setPageVisibility(name, false);
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, _chunkUAZKOH3Jjs.DeeplineClient)().deletePage(name);
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, _chunkUAZKOH3Jjs.DeeplineClient)().createPageLink(name, {
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, _chunkUAZKOH3Jjs.DeeplineClient)().listPageLinks(name);
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, _chunkUAZKOH3Jjs.DeeplineClient)().revokePageLink(name, linkId);
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-6V2RI3AL.mjs";
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-TBIWR7M2.mjs";
21
+ } from "./chunk-KILRUAXF.mjs";
22
22
  import {
23
23
  registerDeprecatedSearchCommand
24
- } from "./chunk-4MONKWYE.mjs";
24
+ } from "./chunk-5WFQXAD4.mjs";
25
25
  import "./chunk-5AEDYVB6.mjs";
26
26
  import {
27
27
  handleDeploymentGet,
28
28
  handleDeploymentsList
29
- } from "./chunk-CBBCUYIN.mjs";
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-NNDAVVBG.mjs";
54
+ } from "./chunk-UH3EAFFN.mjs";
55
55
  import {
56
56
  DeeplineClient
57
- } from "./chunk-7IYDCHTG.mjs";
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-FQJFONFT.mjs";
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-4DB6JV7X.mjs";
94
+ } from "./chunk-F3WRLFFM.mjs";
95
95
  import {
96
96
  isCliTraceEnabled,
97
97
  recordCliTrace,
98
98
  resolveCliMaintenancePolicy,
99
99
  traceCliSpan
100
- } from "./chunk-5T7QKHQL.mjs";
101
- import "./chunk-2DQPB5HT.mjs";
100
+ } from "./chunk-I62LJ7NU.mjs";
101
+ import "./chunk-4V63IJCL.mjs";
102
102
  import {
103
103
  createCliProgress,
104
104
  getActiveCliProgress
105
- } from "./chunk-HRWVEIAX.mjs";
106
- import "./chunk-6UHYXNCP.mjs";
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-A6USUS4L.mjs";
127
- import "./chunk-DQURY3WH.mjs";
126
+ } from "./chunk-6DBRBWHC.mjs";
127
+ import "./chunk-SXTVJIGB.mjs";
128
128
  import {
129
129
  fetchWithDeploymentProtection
130
- } from "./chunk-E4ZS2B2J.mjs";
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-7AUXX6M5.mjs";
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-ZLCMBGHG.mjs");
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-FOYLU3FH.mjs");
16918
+ const { getToolExecutionReceipt } = await import("./tools-BUH7ZWDS.mjs");
16919
16919
  process.exitCode = await getToolExecutionReceipt(runId, {
16920
16920
  receiptJson: options.json !== void 0
16921
16921
  });