deepline 0.3.464 → 0.3.465

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 (117) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +130 -57
  3. package/dist/cli/auth-W62UTNJZ.js +41 -0
  4. package/dist/cli/{auth-GMSI6QWR.mjs → auth-WZCX4MTH.mjs} +5 -5
  5. package/dist/cli/{billing-6G2RFLM7.mjs → billing-ATR3CLIW.mjs} +6 -6
  6. package/dist/cli/{billing-MGH36CNP.js → billing-DQUD3DBY.js} +77 -77
  7. package/dist/cli/{chunk-VYDOPASG.mjs → chunk-3K3EHT6E.mjs} +1 -1
  8. package/dist/cli/{chunk-WLIFUH6W.js → chunk-3XFNF6RR.js} +8 -8
  9. package/dist/cli/{chunk-4XNXFHG6.js → chunk-4URRABMM.js} +1 -1
  10. package/dist/cli/{chunk-GVJVBBGV.js → chunk-5VGMRONE.js} +3 -3
  11. package/dist/cli/{chunk-ACZLDP7L.js → chunk-6WKYRHGT.js} +3 -3
  12. package/dist/cli/{chunk-UM363DQF.mjs → chunk-6Y34LU6P.mjs} +2 -2
  13. package/dist/cli/{chunk-2RFTOESC.js → chunk-7R76B3WE.js} +5 -5
  14. package/dist/cli/{chunk-PPQL5F4P.mjs → chunk-7Y2MLWTM.mjs} +1 -1
  15. package/dist/cli/{chunk-UOAHDEAI.js → chunk-A3GML7WW.js} +9 -9
  16. package/dist/cli/{chunk-6KDOO7IM.mjs → chunk-B6GAIXVD.mjs} +4 -4
  17. package/dist/cli/{chunk-ZQERHPZA.js → chunk-BQNUJK53.js} +26 -26
  18. package/dist/cli/{chunk-K3BARC72.js → chunk-DDF74332.js} +2 -2
  19. package/dist/cli/{chunk-VZX4P5FT.js → chunk-DJD4KLIX.js} +93 -93
  20. package/dist/cli/{chunk-OA7IIOLW.mjs → chunk-E3EYQ2FQ.mjs} +4 -4
  21. package/dist/cli/{chunk-EQNJUG3N.js → chunk-E3PLLFE2.js} +53 -53
  22. package/dist/cli/{chunk-O4AOYLZE.mjs → chunk-EA2F4YVX.mjs} +2 -2
  23. package/dist/cli/{chunk-J327QVQV.mjs → chunk-EISIAWBD.mjs} +1 -1
  24. package/dist/cli/{chunk-HGUHBLX5.mjs → chunk-EVQBOVOJ.mjs} +3 -3
  25. package/dist/cli/{chunk-3MKRAI6R.mjs → chunk-FFTLJGZQ.mjs} +5 -5
  26. package/dist/cli/{chunk-O4ZMADW4.js → chunk-GBQSEOXE.js} +7 -7
  27. package/dist/cli/{chunk-44BEFU62.mjs → chunk-GNLCGR7R.mjs} +2 -2
  28. package/dist/cli/{chunk-VQHEMZ33.mjs → chunk-GW7RUNLW.mjs} +1 -1
  29. package/dist/cli/{chunk-XMDBN2K7.mjs → chunk-HS6CM7TF.mjs} +10 -10
  30. package/dist/cli/{chunk-CUZVOPPY.mjs → chunk-HXWZ52CW.mjs} +3 -3
  31. package/dist/cli/{chunk-K4DVRQTY.js → chunk-JN7AOVD4.js} +16 -16
  32. package/dist/cli/{chunk-RFOQRCMW.mjs → chunk-JQSPKPHT.mjs} +4 -4
  33. package/dist/cli/{chunk-X3XJ6ZSJ.js → chunk-LFTLH5BK.js} +2 -2
  34. package/dist/cli/{chunk-MQNBOSQP.mjs → chunk-N27BUJU3.mjs} +5 -5
  35. package/dist/cli/{chunk-3AIMFE3Z.js → chunk-N57JYG7J.js} +36 -36
  36. package/dist/cli/{chunk-6E2KNNTD.mjs → chunk-NIJYJI67.mjs} +2 -2
  37. package/dist/cli/{chunk-DO3FSI4C.mjs → chunk-OEU3ZNBZ.mjs} +1 -1
  38. package/dist/cli/{chunk-FVAB2JRO.js → chunk-OKI3HWFF.js} +8 -8
  39. package/dist/cli/{chunk-TU3M7UXJ.js → chunk-OQDN6JK6.js} +10 -10
  40. package/dist/cli/{chunk-FEWZT4RV.js → chunk-PIGMBDBZ.js} +21 -21
  41. package/dist/cli/{chunk-ZIMCLWEW.js → chunk-QPJ2BDFD.js} +5 -5
  42. package/dist/cli/{chunk-BMUDQMYE.js → chunk-RREWUPC3.js} +6 -6
  43. package/dist/cli/{chunk-TMVBBGSK.mjs → chunk-SBM5JVTK.mjs} +1 -1
  44. package/dist/cli/{chunk-E4QJKJH6.js → chunk-SOIXDMZK.js} +51 -51
  45. package/dist/cli/{chunk-6A7OH2PV.mjs → chunk-SSQXSMAT.mjs} +2 -2
  46. package/dist/cli/{chunk-5XIGEYYK.js → chunk-TJXGEK7P.js} +6 -6
  47. package/dist/cli/{chunk-M4QVY6RW.mjs → chunk-UMQT7QMB.mjs} +2 -2
  48. package/dist/cli/{chunk-ZAB6KCZW.js → chunk-W4J2EK5K.js} +3 -3
  49. package/dist/cli/{chunk-6COF5LIE.mjs → chunk-X6BQ4JAD.mjs} +2 -2
  50. package/dist/cli/{chunk-5CKIO7KA.mjs → chunk-XFAO5A5R.mjs} +1 -1
  51. package/dist/cli/{chunk-NI3QFUK7.js → chunk-XJ5W64AC.js} +4 -4
  52. package/dist/cli/{chunk-MP3O4ISC.mjs → chunk-YZZGFUQ4.mjs} +1 -1
  53. package/dist/cli/{csv-4ZVMBOCK.mjs → csv-AE7OLXCV.mjs} +4 -4
  54. package/dist/cli/{csv-W2JPV57R.js → csv-ZVFGYRB7.js} +13 -13
  55. package/dist/cli/{db-6YNFDHEW.js → db-JOD2MQ2T.js} +27 -27
  56. package/dist/cli/{db-TVK6BLRB.mjs → db-KTXMCLB5.mjs} +6 -6
  57. package/dist/cli/describe-2IKB4KIX.js +48 -0
  58. package/dist/cli/{describe-JFN4ECPO.mjs → describe-FENTKQFK.mjs} +17 -17
  59. package/dist/cli/{executions-2FK4FFKE.mjs → executions-FJCV5L37.mjs} +6 -6
  60. package/dist/cli/{executions-J4CAN7RB.js → executions-IT6TQ65Q.js} +8 -8
  61. package/dist/cli/{feedback-EYRRLA2P.mjs → feedback-LTTO73YD.mjs} +4 -4
  62. package/dist/cli/{feedback-NOO4OM4U.js → feedback-WGURC3BG.js} +8 -8
  63. package/dist/cli/git-UOIC2DJL.js +25 -0
  64. package/dist/cli/{git-D3Q4JKBC.mjs → git-ZYEDB2UG.mjs} +5 -5
  65. package/dist/cli/index.js +135 -135
  66. package/dist/cli/index.mjs +40 -40
  67. package/dist/cli/{legacy-noops-SUFJWBLZ.mjs → legacy-noops-EGQ4G4BT.mjs} +5 -5
  68. package/dist/cli/{legacy-noops-5ZGRKSN3.js → legacy-noops-JFXWEOZF.js} +8 -8
  69. package/dist/cli/{monitors-IRDIIR6J.mjs → monitors-IK6GWLCA.mjs} +7 -7
  70. package/dist/cli/{monitors-3QFJZA6Z.js → monitors-WKN2K6ZH.js} +91 -91
  71. package/dist/cli/{org-275OJJ7W.js → org-FE5VMAKF.js} +68 -68
  72. package/dist/cli/{org-2VA2FSMG.mjs → org-PD5YBUHR.mjs} +6 -6
  73. package/dist/cli/{pages-SPRBOZRA.js → pages-H3DKEVVI.js} +17 -17
  74. package/dist/cli/{pages-WCUEBFYU.mjs → pages-ZVKSOSZJ.mjs} +6 -6
  75. package/dist/cli/{play-NMHUWBET.js → play-2UL5OPGH.js} +304 -304
  76. package/dist/cli/{play-7UL5H6QU.mjs → play-RLIQY22H.mjs} +17 -17
  77. package/dist/cli/{providers-72LUJEAT.js → providers-2IMHQDBC.js} +9 -9
  78. package/dist/cli/{providers-WSCKV557.mjs → providers-M4AFFJF2.mjs} +6 -6
  79. package/dist/cli/{quickstart-XSUUAE2Y.js → quickstart-OE64DBKK.js} +6 -6
  80. package/dist/cli/{quickstart-K4LAKJKJ.mjs → quickstart-PS4QKNG2.mjs} +4 -4
  81. package/dist/cli/{run-R2MOXXHH.mjs → run-3TKR5CZU.mjs} +22 -22
  82. package/dist/cli/{run-MLV2CLW7.js → run-SWLGV2VS.js} +36 -36
  83. package/dist/cli/{search-WHJZNWKE.mjs → search-AMZ67RKO.mjs} +7 -7
  84. package/dist/cli/search-LXG7T6YZ.js +32 -0
  85. package/dist/cli/{secrets-YGVOFLI5.mjs → secrets-INBXKNFM.mjs} +6 -6
  86. package/dist/cli/{secrets-7PXFBOFY.js → secrets-ZTLJY7L2.js} +15 -15
  87. package/dist/cli/{sessions-ASXXZI42.js → sessions-3GKS45NP.js} +6 -6
  88. package/dist/cli/{sessions-G7I54W4L.mjs → sessions-ZVBTKQ7J.mjs} +5 -5
  89. package/dist/cli/{settings-RTEBMDPC.js → settings-7YG3UWJH.js} +78 -78
  90. package/dist/cli/{settings-4GFO6JYO.mjs → settings-AUPDZZ2U.mjs} +11 -11
  91. package/dist/cli/{setup-4RJGKSDC.mjs → setup-44QB72NU.mjs} +9 -9
  92. package/dist/cli/{setup-A6V2MJK7.js → setup-YGESCFTH.js} +44 -44
  93. package/dist/cli/{skills-432W6EGS.mjs → skills-N3AWWCWO.mjs} +7 -7
  94. package/dist/cli/skills-QALGBUFY.js +31 -0
  95. package/dist/cli/{tools-SABREK3C.mjs → tools-3SHNTJPU.mjs} +16 -16
  96. package/dist/cli/tools-PUQ3JBZ7.js +55 -0
  97. package/dist/cli/{update-F7NO5RDW.mjs → update-3TWB5EEV.mjs} +9 -9
  98. package/dist/cli/update-O7XSJMLX.js +33 -0
  99. package/dist/cli/{workflow-F4N7CFUX.mjs → workflow-SYP62XNN.mjs} +7 -7
  100. package/dist/cli/{workflow-TF6YDWTM.js → workflow-ULIZU7KI.js} +17 -17
  101. package/dist/index.js +9 -9
  102. package/dist/index.mjs +6 -6
  103. package/dist/install-integrity.json +96 -96
  104. package/dist/release.d.mts +1 -1
  105. package/dist/release.d.ts +1 -1
  106. package/dist/release.js +2 -2
  107. package/dist/release.mjs +1 -1
  108. package/dist/server.js +5 -5
  109. package/dist/server.mjs +3 -3
  110. package/package.json +1 -1
  111. package/dist/cli/auth-P4E7M3AV.js +0 -41
  112. package/dist/cli/describe-APW5TWBT.js +0 -48
  113. package/dist/cli/git-FPF6DT43.js +0 -25
  114. package/dist/cli/search-AYFUV6YV.js +0 -32
  115. package/dist/cli/skills-GOQECD7H.js +0 -31
  116. package/dist/cli/tools-JXYN7WOE.js +0 -55
  117. package/dist/cli/update-BSB4TJER.js +0 -33
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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; } var _class;
2
2
 
3
- var _chunkO4ZMADW4js = require('./chunk-O4ZMADW4.js');
3
+ var _chunkGBQSEOXEjs = require('./chunk-GBQSEOXE.js');
4
4
 
5
5
  // src/cli/progress.ts
6
6
  var _worker_threads = require('worker_threads');
@@ -17,7 +17,7 @@ var CliProgress = (_class = class {
17
17
 
18
18
  // --json output is one JSON document: progress never renders under it.
19
19
  constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);
20
- this.enabled = enabled && !_chunkO4ZMADW4js.isJsonOutputMode.call(void 0, );
20
+ this.enabled = enabled && !_chunkGBQSEOXEjs.isJsonOutputMode.call(void 0, );
21
21
  }
22
22
  setLogWriter(writer) {
23
23
  this.logWriter = writer;
@@ -49,7 +49,7 @@ var CliProgress = (_class = class {
49
49
  this.logWriter(line);
50
50
  return;
51
51
  }
52
- if (_chunkO4ZMADW4js.isJsonOutputMode.call(void 0, )) return;
52
+ if (_chunkGBQSEOXEjs.isJsonOutputMode.call(void 0, )) return;
53
53
  if (!this.enabled) {
54
54
  process.stderr.write(`${line}
55
55
  `);
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
3
  printCommandEnvelope
4
- } from "./chunk-6A7OH2PV.mjs";
4
+ } from "./chunk-SSQXSMAT.mjs";
5
5
  import {
6
6
  agentSessionIdFromEnvironment
7
- } from "./chunk-MP3O4ISC.mjs";
7
+ } from "./chunk-YZZGFUQ4.mjs";
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
  import {
@@ -1,10 +1,10 @@
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 _chunkBMUDQMYEjs = require('./chunk-BMUDQMYE.js');
3
+ var _chunkRREWUPC3js = require('./chunk-RREWUPC3.js');
4
4
 
5
5
 
6
6
 
7
- var _chunkGVJVBBGVjs = require('./chunk-GVJVBBGV.js');
7
+ var _chunk5VGMRONEjs = require('./chunk-5VGMRONE.js');
8
8
 
9
9
  // src/plays/local-play-execution.ts
10
10
  function importedNodes(graph) {
@@ -137,9 +137,9 @@ async function pinLocalPlayImports(client, graph) {
137
137
 
138
138
  // src/plays/client.ts
139
139
  function createPlayClient(options) {
140
- const config = _chunkGVJVBBGVjs.resolveConfig.call(void 0, options);
141
- return new (0, _chunkBMUDQMYEjs.PlayClient)(
142
- new (0, _chunkGVJVBBGVjs.HttpClient)(config),
140
+ const config = _chunk5VGMRONEjs.resolveConfig.call(void 0, options);
141
+ return new (0, _chunkRREWUPC3js.PlayClient)(
142
+ new (0, _chunk5VGMRONEjs.HttpClient)(config),
143
143
  _nullishCoalesce(config.environment, () => ( process.env))
144
144
  );
145
145
  }
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-6A7OH2PV.mjs";
3
+ } from "./chunk-SSQXSMAT.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";
@@ -3,7 +3,7 @@
3
3
  var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
4
4
 
5
5
 
6
- var _chunkBMUDQMYEjs = require('./chunk-BMUDQMYE.js');
6
+ var _chunkRREWUPC3js = require('./chunk-RREWUPC3.js');
7
7
 
8
8
 
9
9
  var _chunkJKVRBCZLjs = require('./chunk-JKVRBCZL.js');
@@ -11,7 +11,7 @@ var _chunkJKVRBCZLjs = require('./chunk-JKVRBCZL.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkO4ZMADW4js = require('./chunk-O4ZMADW4.js');
14
+ var _chunkGBQSEOXEjs = require('./chunk-GBQSEOXE.js');
15
15
 
16
16
 
17
17
  var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
@@ -579,7 +579,7 @@ function parseInputFlagValue(raw) {
579
579
  return raw;
580
580
  }
581
581
  function parsePlayRunOptions(args, initialInput = null) {
582
- const selection = _chunkO4ZMADW4js.parseJsonFields.call(void 0, args, "run");
582
+ const selection = _chunkGBQSEOXEjs.parseJsonFields.call(void 0, args, "run");
583
583
  args = selection.args;
584
584
  const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
585
585
  let filePath = null;
@@ -591,7 +591,7 @@ function parsePlayRunOptions(args, initialInput = null) {
591
591
  let revisionSelector = null;
592
592
  const watch = !args.includes("--no-wait");
593
593
  const dryRun = args.includes("--dry-run");
594
- let jsonOutput = dryRun ? _chunkO4ZMADW4js.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkO4ZMADW4js.argsWantJson.call(void 0, args);
594
+ let jsonOutput = dryRun ? _chunkGBQSEOXEjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkGBQSEOXEjs.argsWantJson.call(void 0, args);
595
595
  const fullJson = args.includes("--full");
596
596
  const force = args.includes("--force");
597
597
  const forceToolRefresh = args.includes("--force-tool-refresh");
@@ -654,7 +654,7 @@ function parsePlayRunOptions(args, initialInput = null) {
654
654
  "--log-level requires one of: debug, info, warn, error."
655
655
  );
656
656
  }
657
- const parsed = _chunkBMUDQMYEjs.parseLogLevel.call(void 0, value);
657
+ const parsed = _chunkRREWUPC3js.parseLogLevel.call(void 0, value);
658
658
  if (!parsed) {
659
659
  throw new Error(
660
660
  `Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
@@ -972,7 +972,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
972
972
  const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
973
973
  (arg) => arg === "--log-level" || arg.startsWith("--log-level=")
974
974
  );
975
- let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkBMUDQMYEjs.parseLogLevel.call(void 0, options.logLevel);
975
+ let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkRREWUPC3js.parseLogLevel.call(void 0, options.logLevel);
976
976
  if (!logLevel)
977
977
  throw new Error("--log-level requires one of: debug, info, warn, error.");
978
978
  const debugAlias = options.logs || options.debug === true || inputArgs.some(
@@ -986,13 +986,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
986
986
  if (debugAlias || debugMapLatency && logLevel === "info")
987
987
  logLevel = "debug";
988
988
  const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
989
- const jsonFields = options.json === void 0 ? base.jsonFields : _chunkO4ZMADW4js.parseJsonFields.call(void 0,
990
- [...fullJson ? ["--full"] : [], ..._chunkO4ZMADW4js.jsonFieldArgs.call(void 0, options.json)],
989
+ const jsonFields = options.json === void 0 ? base.jsonFields : _chunkGBQSEOXEjs.parseJsonFields.call(void 0,
990
+ [...fullJson ? ["--full"] : [], ..._chunkGBQSEOXEjs.jsonFieldArgs.call(void 0, options.json)],
991
991
  "run"
992
992
  ).fields;
993
993
  const watch = options.wait === false ? false : base.watch;
994
994
  const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
995
- const jsonOutput = dryRun || !watch ? explicitJson || _chunkO4ZMADW4js.argsWantJson.call(void 0, []) : explicitJson;
995
+ const jsonOutput = dryRun || !watch ? explicitJson || _chunkGBQSEOXEjs.argsWantJson.call(void 0, []) : explicitJson;
996
996
  const verboseLogs = Boolean(
997
997
  debugAlias || logLevel === "debug" || debugMapLatency
998
998
  );
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getActiveCliProgress
3
- } from "./chunk-DO3FSI4C.mjs";
3
+ } from "./chunk-OEU3ZNBZ.mjs";
4
4
  import {
5
5
  DEFAULT_SKILL_AGENTS,
6
6
  KNOWN_SKILL_AGENTS,
@@ -12,7 +12,7 @@ import {
12
12
  sdkCliStateDirPath,
13
13
  skillsAgentPathSegment,
14
14
  writeSdkSkillsLocalVersion
15
- } from "./chunk-5CKIO7KA.mjs";
15
+ } from "./chunk-XFAO5A5R.mjs";
16
16
  import {
17
17
  SDK_API_CONTRACT,
18
18
  SDK_API_MAJOR,
@@ -20,13 +20,13 @@ import {
20
20
  agentSessionIdFromEnvironment,
21
21
  deploymentProtectionHeaders,
22
22
  detectAgentRuntime
23
- } from "./chunk-MP3O4ISC.mjs";
23
+ } from "./chunk-YZZGFUQ4.mjs";
24
24
  import {
25
25
  DeeplineError
26
26
  } from "./chunk-HBL4PM5Q.mjs";
27
27
  import {
28
28
  SDK_RELEASE
29
- } from "./chunk-J327QVQV.mjs";
29
+ } from "./chunk-EISIAWBD.mjs";
30
30
 
31
31
  // src/compat.ts
32
32
  import { randomUUID } from "crypto";
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkO4ZMADW4js = require('./chunk-O4ZMADW4.js');
5
+ var _chunkGBQSEOXEjs = require('./chunk-GBQSEOXE.js');
6
6
 
7
7
 
8
- var _chunkGVJVBBGVjs = require('./chunk-GVJVBBGV.js');
8
+ var _chunk5VGMRONEjs = require('./chunk-5VGMRONE.js');
9
9
 
10
10
  // src/cli/commands/git.ts
11
11
  function shellQuote(value) {
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
32
32
  return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
33
33
  }
34
34
  async function handleList(options) {
35
- const { http } = _chunkO4ZMADW4js.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkGBQSEOXEjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
39
+ _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
40
40
  {
41
41
  projects: payload.projects,
42
42
  count: payload.projects.length,
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
73
73
  }
74
74
  }
75
75
  async function handleStatus(options) {
76
- const { http } = _chunkO4ZMADW4js.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkGBQSEOXEjs.getAuthedHttpClient.call(void 0, );
77
77
  const payload = await http.get("/api/v2/github/installation");
78
78
  const installation = payload.installation;
79
79
  const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
@@ -136,7 +136,7 @@ async function handleStatus(options) {
136
136
  )
137
137
  );
138
138
  }
139
- _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
139
+ _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
140
140
  {
141
141
  installation,
142
142
  installations: _nullishCoalesce(payload.installations, () => ( [])),
@@ -147,10 +147,10 @@ async function handleStatus(options) {
147
147
  );
148
148
  }
149
149
  async function handleRepos(options) {
150
- const { http } = _chunkO4ZMADW4js.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkGBQSEOXEjs.getAuthedHttpClient.call(void 0, );
151
151
  const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
152
152
  const payload = await http.get(`/api/v2/github/repos${query}`);
153
- _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
153
+ _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
154
154
  {
155
155
  installation: payload.installation,
156
156
  repositories: payload.repositories,
@@ -171,7 +171,7 @@ async function handleRepos(options) {
171
171
  }
172
172
  async function resolveRepoId(repo, installation) {
173
173
  if (/^\d+$/.test(repo)) return Number(repo);
174
- const { http } = _chunkO4ZMADW4js.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkGBQSEOXEjs.getAuthedHttpClient.call(void 0, );
175
175
  const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
176
176
  const payload = await http.get(
177
177
  `/api/v2/github/repos${query}`
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
188
188
  }
189
189
  async function handleLink(repo, options) {
190
190
  const repoId = await resolveRepoId(repo, options.installation);
191
- const { http } = _chunkO4ZMADW4js.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkGBQSEOXEjs.getAuthedHttpClient.call(void 0, );
192
192
  const payload = await http.post("/api/v2/play-projects", {
193
193
  repoId,
194
194
  ...options.installation !== void 0 ? { installationId: options.installation } : {},
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
197
197
  ...options.branch !== void 0 ? { productionBranch: options.branch } : {},
198
198
  ...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
199
199
  });
200
- _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
200
+ _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
201
201
  {
202
202
  project: payload.project,
203
203
  render: {
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
220
220
  );
221
221
  }
222
222
  async function handleGet(id, options) {
223
- const { http } = _chunkO4ZMADW4js.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkGBQSEOXEjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
227
+ _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
228
228
  {
229
229
  project: payload.project,
230
230
  render: {
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
240
240
  );
241
241
  }
242
242
  async function handleSet(id, options) {
243
- const { http } = _chunkO4ZMADW4js.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkGBQSEOXEjs.getAuthedHttpClient.call(void 0, );
244
244
  const payload = await http.patch(
245
245
  `/api/v2/play-projects/${encodeURIComponent(id)}`,
246
246
  {
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
251
251
  ...options.disabled !== void 0 ? { disabled: options.disabled } : {}
252
252
  }
253
253
  );
254
- _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
254
+ _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
255
255
  {
256
256
  project: payload.project,
257
257
  render: {
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
264
264
  );
265
265
  }
266
266
  async function handleUnlink(id, options) {
267
- const { http } = _chunkO4ZMADW4js.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkGBQSEOXEjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
269
+ _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
270
270
  {
271
271
  ok: true,
272
272
  id,
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
286
286
  );
287
287
  }
288
288
  async function handleConnect(options) {
289
- const baseUrl = _chunkGVJVBBGVjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunk5VGMRONEjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkO4ZMADW4js.openInBrowser.call(void 0, connectUrl);
292
- _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkGBQSEOXEjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
293
293
  {
294
294
  connectUrl,
295
295
  browser: opened,
@@ -311,7 +311,7 @@ async function handleConnect(options) {
311
311
  );
312
312
  }
313
313
  async function handleDeploymentsList(options) {
314
- const { http } = _chunkO4ZMADW4js.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkGBQSEOXEjs.getAuthedHttpClient.call(void 0, );
315
315
  const query = new URLSearchParams();
316
316
  if (options.repo) query.set("projectId", options.repo);
317
317
  if (options.limit) query.set("limit", options.limit);
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
319
319
  const payload = await http.get(
320
320
  `/api/v2/deployments${suffix}`
321
321
  );
322
- _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
322
+ _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
323
323
  {
324
324
  deployments: payload.deployments,
325
325
  count: payload.deployments.length,
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
363
363
  ]);
364
364
  }
365
365
  async function handleDeploymentGet(id, options) {
366
- const { http } = _chunkO4ZMADW4js.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkGBQSEOXEjs.getAuthedHttpClient.call(void 0, );
367
367
  const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
368
368
  const playLines = renderDeploymentPlayLines(payload.deployment.results);
369
369
  const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
370
370
  const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
371
- _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
371
+ _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
372
372
  {
373
373
  deployment: payload.deployment,
374
374
  project: payload.project,
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
387
387
  );
388
388
  }
389
389
  async function handleDeploymentCancel(id, options) {
390
- const { http } = _chunkO4ZMADW4js.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkGBQSEOXEjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkO4ZMADW4js.printCommandEnvelope.call(void 0,
392
+ _chunkGBQSEOXEjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -1,6 +1,6 @@
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 _chunkO4ZMADW4js = require('./chunk-O4ZMADW4.js');
3
+ var _chunkGBQSEOXEjs = require('./chunk-GBQSEOXE.js');
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  var _commander = require('commander');
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
33
33
  sinceStartMs: now - cliTraceStartedAt,
34
34
  ...event
35
35
  };
36
- _chunkO4ZMADW4js.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
36
+ _chunkGBQSEOXEjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
37
37
  `);
38
38
  }
39
39
  async function traceCliSpan(phase, fields, run) {