deepline 0.3.514 → 0.3.515

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 (127) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +6 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +71 -1
  4. package/dist/cli/{artifacts-OZRO4LHT.js → artifacts-6ONZSASU.js} +18 -18
  5. package/dist/cli/{artifacts-GNFL5LY4.mjs → artifacts-C3262FEY.mjs} +6 -6
  6. package/dist/cli/{auth-53EDAX7Y.mjs → auth-BVCHIFKH.mjs} +5 -5
  7. package/dist/cli/auth-VYECQ6PI.js +43 -0
  8. package/dist/cli/{billing-B6V3FELL.js → billing-APS3ELBH.js} +79 -79
  9. package/dist/cli/{billing-ZMX2V5X3.mjs → billing-DUKPCJD5.mjs} +6 -6
  10. package/dist/cli/{chunk-H53YG6QG.mjs → chunk-2AVO64J2.mjs} +1 -1
  11. package/dist/cli/{chunk-ILITNKGM.mjs → chunk-2SG4MRCI.mjs} +6 -6
  12. package/dist/cli/{chunk-MJIS4XAZ.mjs → chunk-2T6ZOAXX.mjs} +4 -4
  13. package/dist/cli/{chunk-R5PJ6XZI.js → chunk-4FN4WVGL.js} +10 -10
  14. package/dist/cli/{chunk-WP3ULMRU.js → chunk-4H3XE5OX.js} +6 -6
  15. package/dist/cli/{chunk-LV2DGEJ3.js → chunk-5I2L6VMP.js} +7 -7
  16. package/dist/cli/{chunk-5LBXLQRW.js → chunk-5TOFI5GC.js} +7 -7
  17. package/dist/cli/{chunk-RVMV4MXO.mjs → chunk-5YFBVXFQ.mjs} +2 -2
  18. package/dist/cli/{chunk-6SSISVXD.mjs → chunk-62PFEEX3.mjs} +1 -1
  19. package/dist/cli/{chunk-H7L5MS5E.mjs → chunk-6FM7YDHA.mjs} +1 -1
  20. package/dist/cli/{chunk-7KD4IYLA.js → chunk-7TFAKDSD.js} +16 -16
  21. package/dist/cli/{chunk-EO52BKGA.mjs → chunk-AC3YRA3Y.mjs} +10 -10
  22. package/dist/cli/{chunk-T4NQ2ZOH.js → chunk-BSR56POG.js} +11 -11
  23. package/dist/cli/{chunk-TG4IMWAL.js → chunk-BX5N4YT4.js} +53 -53
  24. package/dist/cli/{chunk-53F6JDQ3.mjs → chunk-CB4ZU276.mjs} +2 -2
  25. package/dist/cli/{chunk-OQ4JV3IW.js → chunk-CZLYC62O.js} +1 -1
  26. package/dist/cli/{chunk-VLIDBQYL.js → chunk-DEGOD6EH.js} +3 -3
  27. package/dist/cli/{chunk-CUMA6DE2.js → chunk-DWASXQF6.js} +14 -14
  28. package/dist/cli/{chunk-6FYGFIXD.mjs → chunk-EA775NLJ.mjs} +2 -2
  29. package/dist/cli/{chunk-MQK5SY5N.js → chunk-F6OXFG5K.js} +16 -16
  30. package/dist/cli/{chunk-A253CMOI.js → chunk-FGKQ2MVA.js} +3 -3
  31. package/dist/cli/{chunk-RFN7OKT2.mjs → chunk-FHJTOHSE.mjs} +1 -1
  32. package/dist/cli/{chunk-DMBCJFGY.mjs → chunk-FVWUNN6J.mjs} +2 -2
  33. package/dist/cli/{chunk-JC3ABOZP.js → chunk-GESSUOYZ.js} +38 -23
  34. package/dist/cli/{chunk-G6PUQQJP.js → chunk-HSESQ4OG.js} +5 -5
  35. package/dist/cli/{chunk-55WBE4UK.js → chunk-JMPBBVRF.js} +26 -26
  36. package/dist/cli/{chunk-FPWOEK7G.js → chunk-JUCUJFBH.js} +2 -2
  37. package/dist/cli/{chunk-NXT52SIV.js → chunk-LVVWOMK6.js} +2 -2
  38. package/dist/cli/{chunk-EVTD3ELD.mjs → chunk-LXOMP5AZ.mjs} +5 -5
  39. package/dist/cli/{chunk-2RCZCWPO.js → chunk-M4DZLI3T.js} +6 -6
  40. package/dist/cli/{chunk-W3TN352L.mjs → chunk-MMZO25CN.mjs} +2 -2
  41. package/dist/cli/{chunk-753MZFDF.mjs → chunk-N43XH6VY.mjs} +3 -3
  42. package/dist/cli/{chunk-7MBI2OLW.mjs → chunk-NP6FLJ75.mjs} +1 -1
  43. package/dist/cli/{chunk-TZS4G7CS.js → chunk-NTWNM5IW.js} +2 -2
  44. package/dist/cli/{chunk-IZJGOMCW.mjs → chunk-ODJS43GU.mjs} +5 -5
  45. package/dist/cli/{chunk-DLYWOHO4.mjs → chunk-QPA3ZG56.mjs} +1 -1
  46. package/dist/cli/{chunk-76M3DL5G.mjs → chunk-R5RWDO75.mjs} +1 -1
  47. package/dist/cli/{chunk-7ZCXQDOQ.mjs → chunk-RK5V6MFG.mjs} +2 -2
  48. package/dist/cli/{chunk-QSFAUGFK.js → chunk-RPXW5XUC.js} +5 -5
  49. package/dist/cli/{chunk-Z5WO6IBV.mjs → chunk-T6XPF7AP.mjs} +21 -6
  50. package/dist/cli/{chunk-Y2RIMVEM.js → chunk-TRJLHTHI.js} +96 -96
  51. package/dist/cli/{chunk-BBDWIUJA.js → chunk-TTH5IEHD.js} +9 -9
  52. package/dist/cli/{chunk-G6A7CGFV.mjs → chunk-TX4OUEUU.mjs} +2 -2
  53. package/dist/cli/{chunk-54IH5U3I.mjs → chunk-TYUC56PS.mjs} +23 -12
  54. package/dist/cli/{chunk-MF7ZVWJK.js → chunk-UBY2MSP4.js} +41 -41
  55. package/dist/cli/{chunk-RMRZ4BC4.mjs → chunk-Z6PDSCJ3.mjs} +3 -3
  56. package/dist/cli/{chunk-RLVSWAWB.js → chunk-Z7YEZWP3.js} +62 -51
  57. package/dist/cli/{chunk-2CTTSNFE.js → chunk-ZEZAFOH3.js} +4 -4
  58. package/dist/cli/{chunk-DBBLPDXK.mjs → chunk-ZL4C3NPO.mjs} +1 -1
  59. package/dist/cli/{chunk-6OIRN4PC.mjs → chunk-ZMFR4BKH.mjs} +1 -1
  60. package/dist/cli/{csv-2BLYUV2G.js → csv-L63HLRNM.js} +13 -13
  61. package/dist/cli/{csv-ONKAMLL4.mjs → csv-NOYOCDAK.mjs} +4 -4
  62. package/dist/cli/{db-4GVSGAXL.mjs → db-637BNZ2B.mjs} +6 -6
  63. package/dist/cli/{db-YKT6LEQ3.js → db-UBQFFOTS.js} +27 -27
  64. package/dist/cli/describe-C7FBGVGM.js +50 -0
  65. package/dist/cli/{describe-PRT2WQMS.mjs → describe-KAUMYSRG.mjs} +18 -18
  66. package/dist/cli/{executions-7OSL25KJ.mjs → executions-NGPKKOLW.mjs} +6 -6
  67. package/dist/cli/{executions-VFCU5NGH.js → executions-RNOBWJ3P.js} +8 -8
  68. package/dist/cli/{feedback-ERTOLEC4.js → feedback-7BHVKCY5.js} +10 -10
  69. package/dist/cli/{feedback-RPZELEA5.mjs → feedback-NREYHFEJ.mjs} +5 -5
  70. package/dist/cli/{git-XKRQZ4A6.mjs → git-DSTDRP3J.mjs} +5 -5
  71. package/dist/cli/git-XTEKRVO3.js +25 -0
  72. package/dist/cli/index.js +141 -141
  73. package/dist/cli/index.mjs +43 -43
  74. package/dist/cli/{legacy-noops-MZCFS2FQ.mjs → legacy-noops-TC7WNDQS.mjs} +6 -6
  75. package/dist/cli/{legacy-noops-HG3M5HGZ.js → legacy-noops-VTNA7T4P.js} +9 -9
  76. package/dist/cli/{monitors-MESMMU5P.js → monitors-IC4NIUE5.js} +100 -100
  77. package/dist/cli/{monitors-GBO5XAEZ.mjs → monitors-YNQ6LYCY.mjs} +7 -7
  78. package/dist/cli/{org-EZPREEWH.js → org-B47C34FY.js} +72 -72
  79. package/dist/cli/{org-DJRNWIPO.mjs → org-MF2UEFK4.mjs} +6 -6
  80. package/dist/cli/{pages-36BHVOFL.mjs → pages-3EC54UPO.mjs} +6 -6
  81. package/dist/cli/{pages-ACI7VV6I.js → pages-A3JMHBHD.js} +18 -18
  82. package/dist/cli/{play-SUSVQHX5.mjs → play-BLFSS42Z.mjs} +18 -18
  83. package/dist/cli/{play-KCLLAGWR.js → play-LAEAIGU4.js} +317 -317
  84. package/dist/cli/{providers-MV2YW3J5.mjs → providers-PEXILFIA.mjs} +6 -6
  85. package/dist/cli/{providers-YFO3EFLK.js → providers-XNC5JF3F.js} +9 -9
  86. package/dist/cli/{quickstart-KMXU2T3Z.mjs → quickstart-E2PKFV2L.mjs} +4 -4
  87. package/dist/cli/{quickstart-MATFTZVQ.js → quickstart-XRU23BKT.js} +6 -6
  88. package/dist/cli/{run-YRYVGUCJ.mjs → run-5QI3H7HH.mjs} +23 -23
  89. package/dist/cli/{run-UW5FM64G.js → run-T7U6DRMZ.js} +41 -41
  90. package/dist/cli/search-A6HYC5XI.js +33 -0
  91. package/dist/cli/{search-WF3Q3I5X.mjs → search-WLXLC3Z3.mjs} +8 -8
  92. package/dist/cli/{search-output-BG743WAM.js → search-output-7WXW6WZQ.js} +6 -6
  93. package/dist/cli/{search-output-THOAHTCU.mjs → search-output-HGO5JVJO.mjs} +4 -4
  94. package/dist/cli/{secrets-EOGBWN44.js → secrets-TTGCKS7Z.js} +15 -15
  95. package/dist/cli/{secrets-LM7OTAUE.mjs → secrets-ZYDUC6NU.mjs} +6 -6
  96. package/dist/cli/{sessions-SP2JL27H.mjs → sessions-3KMK76O3.mjs} +6 -6
  97. package/dist/cli/sessions-5X4PTBB6.js +18 -0
  98. package/dist/cli/{settings-OWE3EEG7.js → settings-LF43ODWF.js} +86 -86
  99. package/dist/cli/{settings-JXTFX5G2.mjs → settings-YA3ZNWZA.mjs} +13 -13
  100. package/dist/cli/{setup-FG37SKMB.mjs → setup-26D6ZPSI.mjs} +10 -10
  101. package/dist/cli/{setup-Z5BEQKA7.js → setup-XBY4GXCA.js} +50 -50
  102. package/dist/cli/{skills-UGNCBZTJ.mjs → skills-LYPZTDUL.mjs} +8 -8
  103. package/dist/cli/skills-ZA7YZBQC.js +37 -0
  104. package/dist/cli/{tools-J3PKLQSL.mjs → tools-5JNLULNK.mjs} +17 -17
  105. package/dist/cli/tools-LBDNLH4V.js +57 -0
  106. package/dist/cli/update-CEH2LRAC.js +35 -0
  107. package/dist/cli/{update-GGZ2XTMZ.mjs → update-UIO6RHIB.mjs} +10 -10
  108. package/dist/cli/{workflow-C66BBXHH.mjs → workflow-H5UVEIGG.mjs} +7 -7
  109. package/dist/cli/{workflow-AUZCSCZP.js → workflow-UQ2S2X42.js} +17 -17
  110. package/dist/index.js +9 -9
  111. package/dist/index.mjs +6 -6
  112. package/dist/install-integrity.json +104 -104
  113. package/dist/release.d.mts +1 -1
  114. package/dist/release.d.ts +1 -1
  115. package/dist/release.js +2 -2
  116. package/dist/release.mjs +1 -1
  117. package/dist/server.js +5 -5
  118. package/dist/server.mjs +3 -3
  119. package/package.json +1 -1
  120. package/dist/cli/auth-SM5GLO45.js +0 -43
  121. package/dist/cli/describe-KPGQP4LH.js +0 -50
  122. package/dist/cli/git-U353JURQ.js +0 -25
  123. package/dist/cli/search-4ZQOFG7G.js +0 -33
  124. package/dist/cli/sessions-GDSJ72XI.js +0 -18
  125. package/dist/cli/skills-SIX5OTNX.js +0 -37
  126. package/dist/cli/tools-EZOV37MQ.js +0 -57
  127. package/dist/cli/update-ISU7YN34.js +0 -35
@@ -205,7 +205,7 @@ export const SDK_RELEASE = {
205
205
  // getters keep their established compatibility behavior.
206
206
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
207
207
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
208
- version: '0.3.514',
208
+ version: '0.3.515',
209
209
  updateSummary: {
210
210
  introducedIn: '0.3.90',
211
211
  summary:
@@ -13,8 +13,13 @@ export const DURABLE_RUNS_ROLLOUT = {
13
13
  /**
14
14
  * Admission stamps the `runScopedKeys` launch fact, so new runs derive
15
15
  * inline-child history, SQL and idempotency keys from the executing run.
16
+ *
17
+ * Each run keeps the fact it was admitted with: a run admitted while this
18
+ * was off keeps the composition-namespace keys for its whole life, and a
19
+ * run admitted while it was on keeps run-scoped keys after it is turned
20
+ * off. Turning it off only stops new runs from receiving the fact.
16
21
  */
17
- runScopedKeysAtAdmission: false,
22
+ runScopedKeysAtAdmission: true,
18
23
  /**
19
24
  * The worker defers a replay-safe run whose attempt ended in a post-code
20
25
  * platform failure instead of failing it.
@@ -48,6 +48,62 @@ export {
48
48
 
49
49
  const PG_SSL_FILE_PARAMS = ['sslcert', 'sslkey', 'sslrootcert'] as const;
50
50
 
51
+ /** Fixed PostgreSQL diagnostics only: never SQL, parameters or object names. */
52
+ export function runtimePostgresErrorDiagnostics(error: unknown): {
53
+ sqlState?: string;
54
+ postgresRoutine?: string;
55
+ postgresSeverity?: string;
56
+ postgresHint?: string;
57
+ } {
58
+ const field = (key: string): unknown => {
59
+ if (error === null || typeof error !== 'object') return undefined;
60
+ try {
61
+ return (error as Record<string, unknown>)[key];
62
+ } catch {
63
+ return undefined;
64
+ }
65
+ };
66
+ const code = field('code');
67
+ const routine = field('routine');
68
+ const severity = field('severity');
69
+ const hint = field('hint');
70
+ return {
71
+ ...(typeof code === 'string' &&
72
+ /^(?:[0-9]{2}|XX|HV|P0|F0)[0-9A-Z]{3}$/.test(code)
73
+ ? { sqlState: code }
74
+ : {}),
75
+ ...(typeof routine === 'string'
76
+ ? {
77
+ postgresRoutine: [
78
+ 'LockAcquire',
79
+ 'LockAcquireExtended',
80
+ 'ShmemAlloc',
81
+ 'ShmemInitStruct',
82
+ 'AllocSetAlloc',
83
+ 'MemoryContextAllocExtended',
84
+ 'ProcArrayAdd',
85
+ 'InitPostgres',
86
+ 'StartTransaction',
87
+ ].includes(routine)
88
+ ? routine
89
+ : '[redacted]',
90
+ }
91
+ : {}),
92
+ ...(typeof severity === 'string' &&
93
+ ['ERROR', 'FATAL', 'PANIC', 'WARNING', 'NOTICE'].includes(severity)
94
+ ? { postgresSeverity: severity }
95
+ : {}),
96
+ ...(typeof hint === 'string'
97
+ ? {
98
+ postgresHint:
99
+ hint === 'You might need to increase "max_locks_per_transaction".'
100
+ ? hint
101
+ : '[redacted]',
102
+ }
103
+ : {}),
104
+ };
105
+ }
106
+
51
107
  /**
52
108
  * PlanetScale and Neon Postgres URLs can use `sslrootcert=system` to mean "use
53
109
  * the host system CA bundle". `pg-connection-string` treats sslcert/sslkey/
@@ -1072,6 +1128,7 @@ export async function withRuntimeSchedulerClient<T>(
1072
1128
 
1073
1129
  let queryCount = 0;
1074
1130
  let queryMs = 0;
1131
+ let failedQueryIndex: number | undefined;
1075
1132
  try {
1076
1133
  if (process.env.VERCEL?.trim() && !entry.databasePoolAttached) {
1077
1134
  attachDatabasePool(entry.pool);
@@ -1082,7 +1139,7 @@ export async function withRuntimeSchedulerClient<T>(
1082
1139
  query: async (sql, params) => {
1083
1140
  throwIfSchedulerAborted(signal);
1084
1141
  const queryStartedAt = performance.now();
1085
- queryCount += 1;
1142
+ const queryIndex = ++queryCount;
1086
1143
  try {
1087
1144
  try {
1088
1145
  const queryResult = await poolClient.query(sql, params);
@@ -1095,6 +1152,7 @@ export async function withRuntimeSchedulerClient<T>(
1095
1152
  : queryResult.rows,
1096
1153
  };
1097
1154
  } catch (error) {
1155
+ failedQueryIndex = queryIndex;
1098
1156
  // node-postgres' query timeout and an AbortSignal reject the
1099
1157
  // promise, but the server may still be processing the SQL.
1100
1158
  // Never return that socket to the pool: doing so lets the
@@ -1154,6 +1212,18 @@ export async function withRuntimeSchedulerClient<T>(
1154
1212
  queryMs,
1155
1213
  totalMs: performance.now() - operationStartedAt,
1156
1214
  errorName: error instanceof Error ? error.name : 'UnknownError',
1215
+ ...runtimePostgresErrorDiagnostics(error),
1216
+ ...(failedQueryIndex !== undefined ? { failedQueryIndex } : {}),
1217
+ // Driver protocol identity only; a transaction pooler may proxy it.
1218
+ ...(Number.isSafeInteger(
1219
+ (poolClient as unknown as { processID?: number }).processID,
1220
+ )
1221
+ ? {
1222
+ driverProcessId: (
1223
+ poolClient as unknown as { processID: number }
1224
+ ).processID,
1225
+ }
1226
+ : {}),
1157
1227
  }),
1158
1228
  );
1159
1229
  }
@@ -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(); } }
2
2
 
3
- var _chunkG6PUQQJPjs = require('./chunk-G6PUQQJP.js');
4
- require('./chunk-5LBXLQRW.js');
3
+ var _chunkHSESQ4OGjs = require('./chunk-HSESQ4OG.js');
4
+ require('./chunk-5TOFI5GC.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 _chunkLV2DGEJ3js = require('./chunk-LV2DGEJ3.js');
11
+ var _chunk5I2L6VMPjs = require('./chunk-5I2L6VMP.js');
12
12
 
13
13
 
14
- var _chunkA253CMOIjs = require('./chunk-A253CMOI.js');
15
- require('./chunk-2CTTSNFE.js');
14
+ var _chunkFGKQ2MVAjs = require('./chunk-FGKQ2MVA.js');
15
+ require('./chunk-ZEZAFOH3.js');
16
16
  require('./chunk-ALJJRZNJ.js');
17
17
  require('./chunk-XNYIZMNQ.js');
18
18
  require('./chunk-DIAWYWT5.js');
19
- require('./chunk-OQ4JV3IW.js');
19
+ require('./chunk-CZLYC62O.js');
20
20
  require('./chunk-OG64RBAC.js');
21
21
  require('./chunk-COGTRVWW.js');
22
22
 
@@ -24,7 +24,7 @@ require('./chunk-COGTRVWW.js');
24
24
  var _promises = require('fs/promises');
25
25
  var ARTIFACTS_FEATURE = "artifacts";
26
26
  function print(command, json, data, lines) {
27
- _chunkLV2DGEJ3js.printCommandEnvelope.call(void 0,
27
+ _chunk5I2L6VMPjs.printCommandEnvelope.call(void 0,
28
28
  { command, ...data, render: { sections: [{ title: command, lines }] } },
29
29
  { json: Boolean(json), text: `${lines.join("\n")}
30
30
  ` }
@@ -56,7 +56,7 @@ function artifactLines(artifact) {
56
56
  ];
57
57
  }
58
58
  function registerArtifactsCommands(program) {
59
- const artifacts = program.command("artifacts", { hidden: !_chunkA253CMOIjs.cliFeatureEnabled.call(void 0, ARTIFACTS_FEATURE) }).description(
59
+ const artifacts = program.command("artifacts", { hidden: !_chunkFGKQ2MVAjs.cliFeatureEnabled.call(void 0, ARTIFACTS_FEATURE) }).description(
60
60
  "Show what a Play returns at a fixed URL on artifacts.deepline.com."
61
61
  ).addHelpText(
62
62
  "after",
@@ -69,7 +69,7 @@ Examples:
69
69
  );
70
70
  artifacts.command("list").description("List this workspace's artifacts.").option("--cursor <cursor>", "Continue from a previous page of results").option("--limit <n>", "Results per request, up to 100", Number).option("--json", "Emit raw JSON response").action(
71
71
  async (options) => run(async () => {
72
- const result = await new (0, _chunkG6PUQQJPjs.DeeplineClient)().listArtifacts({
72
+ const result = await new (0, _chunkHSESQ4OGjs.DeeplineClient)().listArtifacts({
73
73
  cursor: options.cursor,
74
74
  limit: options.limit
75
75
  });
@@ -84,7 +84,7 @@ Examples:
84
84
  );
85
85
  artifacts.command("get <id>").description("Show one artifact and what you may do with it.").option("--json", "Emit raw JSON response").action(
86
86
  async (id, options) => run(async () => {
87
- const artifact = await new (0, _chunkG6PUQQJPjs.DeeplineClient)().getArtifact(id);
87
+ const artifact = await new (0, _chunkHSESQ4OGjs.DeeplineClient)().getArtifact(id);
88
88
  print("artifacts get", options.json, artifact, [
89
89
  ...artifactLines(artifact),
90
90
  ` saved input ${JSON.stringify(artifact.input)}`
@@ -106,7 +106,7 @@ Examples:
106
106
  `
107
107
  ).action(
108
108
  async (options) => run(async () => {
109
- const artifact = await new (0, _chunkG6PUQQJPjs.DeeplineClient)().createArtifact({
109
+ const artifact = await new (0, _chunkHSESQ4OGjs.DeeplineClient)().createArtifact({
110
110
  name: options.name,
111
111
  play: options.play,
112
112
  ...options.input !== void 0 ? {
@@ -146,7 +146,7 @@ Examples:
146
146
  "Nothing to change. See: deepline artifacts edit --help"
147
147
  );
148
148
  }
149
- const artifact = await new (0, _chunkG6PUQQJPjs.DeeplineClient)().updateArtifact(id, fields);
149
+ const artifact = await new (0, _chunkHSESQ4OGjs.DeeplineClient)().updateArtifact(id, fields);
150
150
  print(
151
151
  "artifacts edit",
152
152
  options.json,
@@ -157,7 +157,7 @@ Examples:
157
157
  );
158
158
  artifacts.command("runs <id>").description("List runs of the artifact's Play, newest first.").option("--limit <n>", "Runs to list, up to 100", Number).option("--json", "Emit raw JSON response").action(
159
159
  async (id, options) => run(async () => {
160
- const result = await new (0, _chunkG6PUQQJPjs.DeeplineClient)().listArtifactRuns(id, {
160
+ const result = await new (0, _chunkHSESQ4OGjs.DeeplineClient)().listArtifactRuns(id, {
161
161
  limit: options.limit
162
162
  });
163
163
  print("artifacts runs", options.json, result, [
@@ -176,7 +176,7 @@ Examples:
176
176
  ).option("--json", "Emit raw JSON response").action(
177
177
  async (id, options) => run(async () => {
178
178
  const input = options.input !== void 0 ? await readJsonOption(options.input, "--input") : void 0;
179
- const started = await new (0, _chunkG6PUQQJPjs.DeeplineClient)().refreshArtifact(id, input);
179
+ const started = await new (0, _chunkHSESQ4OGjs.DeeplineClient)().refreshArtifact(id, input);
180
180
  print("artifacts refresh", options.json, started, [
181
181
  `Started run ${started.workflowId}.`,
182
182
  `Watch it: deepline runs get ${started.workflowId}`
@@ -188,7 +188,7 @@ Examples:
188
188
  if (access !== "workspace" && access !== "public") {
189
189
  throw new Error("Access is workspace or public.");
190
190
  }
191
- const artifact = await new (0, _chunkG6PUQQJPjs.DeeplineClient)().setArtifactAccess(
191
+ const artifact = await new (0, _chunkHSESQ4OGjs.DeeplineClient)().setArtifactAccess(
192
192
  id,
193
193
  access
194
194
  );
@@ -202,7 +202,7 @@ Examples:
202
202
  );
203
203
  artifacts.command("delete <id>").description("Delete an artifact. Its Play and runs are not touched.").option("--json", "Emit raw JSON response").action(
204
204
  async (id, options) => run(async () => {
205
- const result = await new (0, _chunkG6PUQQJPjs.DeeplineClient)().deleteArtifact(id);
205
+ const result = await new (0, _chunkHSESQ4OGjs.DeeplineClient)().deleteArtifact(id);
206
206
  print("artifacts delete", options.json, result, [
207
207
  `Deleted artifact ${id}.`
208
208
  ]);
@@ -213,7 +213,7 @@ Examples:
213
213
  );
214
214
  permissions.command("get", { isDefault: true }).description("Show the workspace's artifact rules and what you may do.").option("--json", "Emit raw JSON response").action(
215
215
  async (options) => run(async () => {
216
- const result = await new (0, _chunkG6PUQQJPjs.DeeplineClient)().getArtifactPermissions();
216
+ const result = await new (0, _chunkHSESQ4OGjs.DeeplineClient)().getArtifactPermissions();
217
217
  print("artifacts permissions", options.json, result, [
218
218
  ...Object.entries(result.rules).map(
219
219
  ([verb, level]) => `${verb}: ${level}`
@@ -251,7 +251,7 @@ Examples:
251
251
  "Pass at least one rule. See: deepline artifacts permissions set --help"
252
252
  );
253
253
  }
254
- const result = await new (0, _chunkG6PUQQJPjs.DeeplineClient)().setArtifactPermissions(rules);
254
+ const result = await new (0, _chunkHSESQ4OGjs.DeeplineClient)().setArtifactPermissions(rules);
255
255
  print(
256
256
  "artifacts permissions set",
257
257
  options.json,
@@ -1,22 +1,22 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-7ZCXQDOQ.mjs";
4
- import "./chunk-H7L5MS5E.mjs";
3
+ } from "./chunk-RK5V6MFG.mjs";
4
+ import "./chunk-6FM7YDHA.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-G6A7CGFV.mjs";
11
+ } from "./chunk-TX4OUEUU.mjs";
12
12
  import {
13
13
  cliFeatureEnabled
14
- } from "./chunk-6OIRN4PC.mjs";
15
- import "./chunk-6SSISVXD.mjs";
14
+ } from "./chunk-ZMFR4BKH.mjs";
15
+ import "./chunk-62PFEEX3.mjs";
16
16
  import "./chunk-4QF2K7TM.mjs";
17
17
  import "./chunk-DLIRSHV6.mjs";
18
18
  import "./chunk-HBL4PM5Q.mjs";
19
- import "./chunk-76M3DL5G.mjs";
19
+ import "./chunk-R5RWDO75.mjs";
20
20
  import "./chunk-WZYKRD7T.mjs";
21
21
  import "./chunk-KRD6H754.mjs";
22
22
 
@@ -14,14 +14,14 @@ import {
14
14
  reportSetupCompleted,
15
15
  resolvePendingAuthClaimForResume,
16
16
  statusBannerLine
17
- } from "./chunk-RMRZ4BC4.mjs";
18
- import "./chunk-G6A7CGFV.mjs";
19
- import "./chunk-6OIRN4PC.mjs";
20
- import "./chunk-6SSISVXD.mjs";
17
+ } from "./chunk-Z6PDSCJ3.mjs";
18
+ import "./chunk-TX4OUEUU.mjs";
19
+ import "./chunk-ZMFR4BKH.mjs";
20
+ import "./chunk-62PFEEX3.mjs";
21
21
  import "./chunk-4QF2K7TM.mjs";
22
22
  import "./chunk-DLIRSHV6.mjs";
23
23
  import "./chunk-HBL4PM5Q.mjs";
24
- import "./chunk-76M3DL5G.mjs";
24
+ import "./chunk-R5RWDO75.mjs";
25
25
  import "./chunk-WZYKRD7T.mjs";
26
26
  import "./chunk-KRD6H754.mjs";
27
27
  export {
@@ -0,0 +1,43 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+
4
+
5
+
6
+
7
+
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+ var _chunkBX5N4YT4js = require('./chunk-BX5N4YT4.js');
18
+ require('./chunk-5I2L6VMP.js');
19
+ require('./chunk-FGKQ2MVA.js');
20
+ require('./chunk-ZEZAFOH3.js');
21
+ require('./chunk-ALJJRZNJ.js');
22
+ require('./chunk-XNYIZMNQ.js');
23
+ require('./chunk-DIAWYWT5.js');
24
+ require('./chunk-CZLYC62O.js');
25
+ require('./chunk-OG64RBAC.js');
26
+ require('./chunk-COGTRVWW.js');
27
+
28
+
29
+
30
+
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+ exports.EXIT_WORKSPACE_MISMATCH = _chunkBX5N4YT4js.EXIT_WORKSPACE_MISMATCH; exports.authStatusLine = _chunkBX5N4YT4js.authStatusLine; exports.clearPendingClaim = _chunkBX5N4YT4js.clearPendingClaim; exports.clearSatisfiedPendingClaim = _chunkBX5N4YT4js.clearSatisfiedPendingClaim; exports.handleRegister = _chunkBX5N4YT4js.handleRegister; exports.handleStatus = _chunkBX5N4YT4js.handleStatus; exports.handleWait = _chunkBX5N4YT4js.handleWait; exports.httpJson = _chunkBX5N4YT4js.httpJson; exports.readPendingAuthClaim = _chunkBX5N4YT4js.readPendingAuthClaim; exports.readStatusBanner = _chunkBX5N4YT4js.readStatusBanner; exports.registerAuthCommands = _chunkBX5N4YT4js.registerAuthCommands; exports.reportApprovalLinkShown = _chunkBX5N4YT4js.reportApprovalLinkShown; exports.reportSetupCompleted = _chunkBX5N4YT4js.reportSetupCompleted; exports.resolvePendingAuthClaimForResume = _chunkBX5N4YT4js.resolvePendingAuthClaimForResume; exports.statusBannerLine = _chunkBX5N4YT4js.statusBannerLine;