deepline 0.3.376 → 0.3.378

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 (108) hide show
  1. package/dist/bundling-sources/sdk/src/plays/run-request.ts +3 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/sdk/src/types.ts +5 -0
  4. package/dist/cli/auth-GC4ZJ6HO.js +39 -0
  5. package/dist/cli/{auth-MLCDUTJY.mjs → auth-Z4TP4SLF.mjs} +10 -6
  6. package/dist/cli/{billing-IONI4V7P.js → billing-2LO7C4OI.js} +74 -74
  7. package/dist/cli/{billing-OUGNDBL4.mjs → billing-JR4QD4UG.mjs} +5 -5
  8. package/dist/cli/{chunk-V7ZREPSD.mjs → chunk-2TEN5IOR.mjs} +4 -4
  9. package/dist/cli/{chunk-L6OSOKS6.mjs → chunk-3H2Q377V.mjs} +27 -10
  10. package/dist/cli/{chunk-GMRWUGXB.mjs → chunk-3OPJYNS2.mjs} +3 -3
  11. package/dist/cli/{chunk-KHZ6WEVF.js → chunk-4DAUDGO2.js} +26 -26
  12. package/dist/cli/{chunk-H7SLESX6.mjs → chunk-4YJHPJKQ.mjs} +2 -2
  13. package/dist/cli/{chunk-34KUUN3Z.js → chunk-A7VUVXW6.js} +65 -54
  14. package/dist/cli/{chunk-ETUV6RRK.js → chunk-AIRU4XTZ.js} +25 -25
  15. package/dist/cli/{chunk-ZXFGA2VK.js → chunk-BUHZUAEB.js} +8 -8
  16. package/dist/cli/{chunk-SPZNLE2D.mjs → chunk-C47TYIAO.mjs} +2 -2
  17. package/dist/cli/{chunk-UABI2T3Z.mjs → chunk-DNORWBSX.mjs} +2 -2
  18. package/dist/cli/{chunk-VL5ERG22.mjs → chunk-EEXP6W4X.mjs} +2 -2
  19. package/dist/cli/{chunk-VNBAOWN3.mjs → chunk-F2RPSYZC.mjs} +6 -6
  20. package/dist/cli/{chunk-Y5W5IIA4.js → chunk-F7MGUP72.js} +57 -57
  21. package/dist/cli/{chunk-6EYTKUDI.js → chunk-FH3WJOCD.js} +2 -2
  22. package/dist/cli/{chunk-7LX2G2PU.mjs → chunk-FJ3JEYFJ.mjs} +1 -1
  23. package/dist/cli/{chunk-FWF24ULX.mjs → chunk-HVDBGPDP.mjs} +5 -4
  24. package/dist/cli/{chunk-4WINCNNH.js → chunk-HXENYWVS.js} +5 -4
  25. package/dist/cli/{chunk-QSH5CHRI.js → chunk-ISVKLCGQ.js} +6 -6
  26. package/dist/cli/{chunk-5HJHTZI6.mjs → chunk-JORLGBPA.mjs} +1 -1
  27. package/dist/cli/{chunk-MHRDXS7J.mjs → chunk-KTZFOS57.mjs} +1 -1
  28. package/dist/cli/{chunk-7ZZSGV4A.js → chunk-LHBPC7PZ.js} +1 -1
  29. package/dist/cli/{chunk-HDB4GAWY.mjs → chunk-M5HYHFIV.mjs} +1 -1
  30. package/dist/cli/{chunk-47X6MQ7J.js → chunk-NGYNHAAC.js} +60 -60
  31. package/dist/cli/{chunk-LA46MMTL.js → chunk-PAIMOGCM.js} +1 -0
  32. package/dist/cli/{chunk-CBVIJSHF.mjs → chunk-Q6EOHNRH.mjs} +1 -0
  33. package/dist/cli/{chunk-5HDB7XXT.js → chunk-UCDAF3TI.js} +271 -254
  34. package/dist/cli/{chunk-YXQ7SRL3.mjs → chunk-V4TN5MXK.mjs} +15 -4
  35. package/dist/cli/{chunk-UE2UHYT3.mjs → chunk-VB6KECLU.mjs} +57 -6
  36. package/dist/cli/{chunk-4V2Q3JO6.js → chunk-WHEDPNPN.js} +15 -15
  37. package/dist/cli/{chunk-Y4MXBE3V.js → chunk-YSX6SSGW.js} +8 -8
  38. package/dist/cli/{chunk-A6ZTYKYF.js → chunk-ZMVJSS6N.js} +63 -12
  39. package/dist/cli/{chunk-N6KIEYZV.js → chunk-ZNGZPKXT.js} +4 -4
  40. package/dist/cli/command-docs.js +2 -2
  41. package/dist/cli/command-docs.mjs +1 -1
  42. package/dist/cli/{csv-NITSP7QJ.mjs → csv-EQV4HK57.mjs} +3 -3
  43. package/dist/cli/{csv-LPC7BGZ2.js → csv-KEA6YLCU.js} +12 -12
  44. package/dist/cli/{db-WGD54UKM.js → db-BSD7XVVZ.js} +30 -30
  45. package/dist/cli/{db-JVDYEXNC.mjs → db-CXWVEYF5.mjs} +5 -5
  46. package/dist/cli/{describe-SVMLA6SN.mjs → describe-5PIG7QJH.mjs} +12 -10
  47. package/dist/cli/{describe-GA7LSJRY.js → describe-FG5JQWSB.js} +31 -29
  48. package/dist/cli/{executions-P47HEI4N.js → executions-HLJQEBSX.js} +7 -7
  49. package/dist/cli/{executions-CXBJDGMU.mjs → executions-IPUW4YTD.mjs} +5 -5
  50. package/dist/cli/{feedback-GWKWE5CU.js → feedback-6QQVVCSY.js} +7 -7
  51. package/dist/cli/{feedback-34OSXUQ2.mjs → feedback-P2IEMRL7.mjs} +3 -3
  52. package/dist/cli/git-24TVX47T.js +23 -0
  53. package/dist/cli/{git-YAROF6D3.mjs → git-JD6UFEWE.mjs} +4 -4
  54. package/dist/cli/index.js +108 -103
  55. package/dist/cli/index.mjs +58 -53
  56. package/dist/cli/{legacy-noops-MDZQL3QH.js → legacy-noops-JZAEUIHY.js} +7 -7
  57. package/dist/cli/{legacy-noops-2G55OKIU.mjs → legacy-noops-R6FG44MY.mjs} +4 -4
  58. package/dist/cli/{monitors-KUGKMABN.mjs → monitors-7YTG6MUN.mjs} +5 -5
  59. package/dist/cli/{monitors-X7QYWFSP.js → monitors-AEDYTXDI.js} +86 -86
  60. package/dist/cli/{org-6XL3IBT2.js → org-CXXZEKOE.js} +65 -65
  61. package/dist/cli/{org-CNBBAN4W.mjs → org-HFFNL6B2.mjs} +5 -5
  62. package/dist/cli/{play-33ZMPAR5.mjs → play-2LBL27HQ.mjs} +9 -9
  63. package/dist/cli/play-BTDMU7WD.js +155 -0
  64. package/dist/cli/{providers-5POAURDT.js → providers-FYPDMYJD.js} +8 -8
  65. package/dist/cli/{providers-3OSQNFPE.mjs → providers-TSQ4IKGL.mjs} +5 -5
  66. package/dist/cli/{quickstart-LQGPDJTS.js → quickstart-OLB32KQD.js} +5 -5
  67. package/dist/cli/{quickstart-QICTOOW6.mjs → quickstart-X4EK2VUO.mjs} +3 -3
  68. package/dist/cli/{search-HBIX4SF4.mjs → search-DC3MH3SK.mjs} +6 -6
  69. package/dist/cli/search-MHDPSHQG.js +26 -0
  70. package/dist/cli/{secrets-QKPBNQ3E.js → secrets-ND2ZJBTH.js} +14 -14
  71. package/dist/cli/{secrets-6MRGZPHT.mjs → secrets-YS5G7TKA.mjs} +5 -5
  72. package/dist/cli/{sessions-NODY2OW4.mjs → sessions-FJYWJT4E.mjs} +4 -4
  73. package/dist/cli/{sessions-NP7BLZD2.js → sessions-ZAWZ23R4.js} +5 -5
  74. package/dist/cli/{settings-JCEIOTNL.mjs → settings-2PBXGFTK.mjs} +8 -8
  75. package/dist/cli/{settings-42QHXUB2.js → settings-VGSUOAPQ.js} +75 -75
  76. package/dist/cli/{setup-3QR4RGMG.mjs → setup-5EGLDCAF.mjs} +6 -6
  77. package/dist/cli/{setup-5XXWP54Y.js → setup-SBBMRM7G.js} +41 -41
  78. package/dist/cli/{skills-U4OMXLNS.mjs → skills-HGC3BDBU.mjs} +4 -4
  79. package/dist/cli/skills-OSEKG6FD.js +28 -0
  80. package/dist/cli/tools-57UDLV2I.js +40 -0
  81. package/dist/cli/{tools-45OROEZQ.mjs → tools-UTLVTTWW.mjs} +8 -8
  82. package/dist/cli/update-5YD7PJFE.js +28 -0
  83. package/dist/cli/{update-2XCRMJ4R.mjs → update-IFOQMPAX.mjs} +6 -6
  84. package/dist/cli/{workflow-7X3GCOPY.mjs → workflow-JYUD2UHZ.mjs} +6 -6
  85. package/dist/cli/{workflow-47P4LQNC.js → workflow-PAM64TA4.js} +16 -16
  86. package/dist/{client-Cn-txrXv.d.mts → client-0avPvYBP.d.mts} +5 -0
  87. package/dist/{client-fPoIN-3V.d.ts → client-DEKvymBI.d.ts} +5 -0
  88. package/dist/index.d.mts +2 -2
  89. package/dist/index.d.ts +2 -2
  90. package/dist/index.js +7 -7
  91. package/dist/index.mjs +4 -4
  92. package/dist/install-integrity.json +80 -80
  93. package/dist/plays/run-request.d.mts +1 -1
  94. package/dist/plays/run-request.d.ts +1 -1
  95. package/dist/plays/run-request.js +2 -2
  96. package/dist/plays/run-request.mjs +1 -1
  97. package/dist/release.d.mts +1 -1
  98. package/dist/release.d.ts +1 -1
  99. package/dist/release.js +2 -2
  100. package/dist/release.mjs +1 -1
  101. package/package.json +1 -1
  102. package/dist/cli/auth-BTFXJQLT.js +0 -35
  103. package/dist/cli/git-MIPISCON.js +0 -23
  104. package/dist/cli/play-3CM3P2DS.js +0 -155
  105. package/dist/cli/search-A2YLJ4I5.js +0 -26
  106. package/dist/cli/skills-4JJEAA66.js +0 -28
  107. package/dist/cli/tools-FDCFSA7W.js +0 -40
  108. package/dist/cli/update-VYL4TXIE.js +0 -28
@@ -2,25 +2,25 @@ import {
2
2
  DeeplineClient,
3
3
  iterateCursorPages,
4
4
  requireBillingIdempotencyKey
5
- } from "./chunk-H7SLESX6.mjs";
5
+ } from "./chunk-4YJHPJKQ.mjs";
6
6
  import "./chunk-6IKARAYD.mjs";
7
- import "./chunk-CBVIJSHF.mjs";
7
+ import "./chunk-Q6EOHNRH.mjs";
8
8
  import {
9
9
  createTimestampedName,
10
10
  getAuthedHttpClient,
11
11
  openInBrowser,
12
12
  printCommandEnvelope,
13
13
  shouldEmitJson
14
- } from "./chunk-MHRDXS7J.mjs";
14
+ } from "./chunk-KTZFOS57.mjs";
15
15
  import {
16
16
  AuthError,
17
17
  ConfigError
18
- } from "./chunk-HDB4GAWY.mjs";
18
+ } from "./chunk-M5HYHFIV.mjs";
19
19
  import "./chunk-DLIRSHV6.mjs";
20
20
  import {
21
21
  DeeplineError
22
22
  } from "./chunk-NXGCO4JB.mjs";
23
- import "./chunk-7LX2G2PU.mjs";
23
+ import "./chunk-FJ3JEYFJ.mjs";
24
24
  import "./chunk-WZYKRD7T.mjs";
25
25
  import "./chunk-KRD6H754.mjs";
26
26
 
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-5HJHTZI6.mjs";
4
+ } from "./chunk-JORLGBPA.mjs";
5
5
  import {
6
6
  resolveShellSpawn,
7
7
  runSkillsCommand
8
- } from "./chunk-SPZNLE2D.mjs";
8
+ } from "./chunk-C47TYIAO.mjs";
9
9
  import {
10
10
  printCommandEnvelope
11
- } from "./chunk-MHRDXS7J.mjs";
11
+ } from "./chunk-KTZFOS57.mjs";
12
12
  import {
13
13
  autoDetectBaseUrl
14
- } from "./chunk-HDB4GAWY.mjs";
14
+ } from "./chunk-M5HYHFIV.mjs";
15
15
 
16
16
  // src/cli/commands/update.ts
17
17
  import { spawn, spawnSync } from "child_process";
@@ -2,7 +2,7 @@ import {
2
2
  addDescribeOptions,
3
3
  recordPlayTermination,
4
4
  schemaFields
5
- } from "./chunk-UE2UHYT3.mjs";
5
+ } from "./chunk-VB6KECLU.mjs";
6
6
  import {
7
7
  shellQuote
8
8
  } from "./chunk-OVDNJAJN.mjs";
@@ -19,11 +19,11 @@ import {
19
19
  } from "./chunk-EDWJY6T4.mjs";
20
20
  import {
21
21
  registerDeprecatedSearchCommand
22
- } from "./chunk-GMRWUGXB.mjs";
22
+ } from "./chunk-3OPJYNS2.mjs";
23
23
  import {
24
24
  handleDeploymentGet,
25
25
  handleDeploymentsList
26
- } from "./chunk-UABI2T3Z.mjs";
26
+ } from "./chunk-DNORWBSX.mjs";
27
27
  import {
28
28
  pinLocalPlayImports,
29
29
  planLocalPlayExecution
@@ -42,7 +42,7 @@ import {
42
42
  normalizeRunEventOperationRequest,
43
43
  parseLogLevel,
44
44
  playInputExampleArgs
45
- } from "./chunk-H7SLESX6.mjs";
45
+ } from "./chunk-4YJHPJKQ.mjs";
46
46
  import {
47
47
  CSV_DATA_INPUT_KEY,
48
48
  buildNamedPlayRunRequest,
@@ -52,7 +52,7 @@ import {
52
52
  setDottedInputValue,
53
53
  stageFileInputs,
54
54
  stagedFileContentType
55
- } from "./chunk-CBVIJSHF.mjs";
55
+ } from "./chunk-Q6EOHNRH.mjs";
56
56
  import {
57
57
  recordCliTrace,
58
58
  traceCliSpan
@@ -75,10 +75,10 @@ import {
75
75
  printJsonError,
76
76
  renderCommandEnvelopeText,
77
77
  shouldEmitJson
78
- } from "./chunk-MHRDXS7J.mjs";
78
+ } from "./chunk-KTZFOS57.mjs";
79
79
  import {
80
80
  fetchWithDeploymentProtection
81
- } from "./chunk-HDB4GAWY.mjs";
81
+ } from "./chunk-M5HYHFIV.mjs";
82
82
  import {
83
83
  DeeplineError
84
84
  } from "./chunk-NXGCO4JB.mjs";
@@ -7790,6 +7790,7 @@ function parsePlayRunOptions(args, initialInput = null) {
7790
7790
  forceToolRefresh,
7791
7791
  maxConcurrentExternalCalls,
7792
7792
  maxConcurrentRows,
7793
+ maxCredits: null,
7793
7794
  open: open2,
7794
7795
  profile,
7795
7796
  debugMapLatency,
@@ -7861,6 +7862,9 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
7861
7862
  if (externalCalls !== null) resolveMaxConcurrentExternalCalls(externalCalls);
7862
7863
  const rows = countOption(options.maxConcurrentRows, "--max-concurrent-rows") ?? base.maxConcurrentRows;
7863
7864
  if (rows !== null) resolveMaxConcurrentRows(rows);
7865
+ const maxCredits = options.maxCredits === void 0 ? null : Number(options.maxCredits);
7866
+ if (maxCredits !== null && !(maxCredits > 0 && isFinite(maxCredits)))
7867
+ throw new Error("--max-credits must be a number greater than 0.");
7864
7868
  const waitTimeoutMs = countOption(options.tailTimeoutMs, "--tail-timeout-ms") ?? base.waitTimeoutMs;
7865
7869
  let fixtureBehavior = base.fixtureBehavior;
7866
7870
  if (options.fixtureBehavior !== void 0) {
@@ -7922,6 +7926,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = []) {
7922
7926
  forceToolRefresh: options.forceToolRefresh ?? base.forceToolRefresh,
7923
7927
  maxConcurrentExternalCalls: externalCalls,
7924
7928
  maxConcurrentRows: rows,
7929
+ maxCredits,
7925
7930
  open: options.open ?? base.open,
7926
7931
  debugMapLatency
7927
7932
  };
@@ -11520,6 +11525,9 @@ function buildOrdinaryPlayRunCommand(options, resolvedRevisionId) {
11520
11525
  if (options.maxConcurrentRows !== null) {
11521
11526
  parts.push("--max-concurrent-rows", String(options.maxConcurrentRows));
11522
11527
  }
11528
+ if (options.maxCredits !== null) {
11529
+ parts.push("--max-credits", String(options.maxCredits));
11530
+ }
11523
11531
  const pinnedRevisionId = options.target.kind === "name" ? resolvedRevisionId ?? options.revisionId : null;
11524
11532
  if (pinnedRevisionId) {
11525
11533
  parts.push("--revision-id", shellQuote(pinnedRevisionId));
@@ -13198,6 +13206,7 @@ async function handleFileBackedRun(options, hooks) {
13198
13206
  ...options.forceToolRefresh ? { forceToolRefresh: true } : {},
13199
13207
  ...options.maxConcurrentExternalCalls !== null ? { maxConcurrentExternalCalls: options.maxConcurrentExternalCalls } : {},
13200
13208
  ...options.maxConcurrentRows !== null ? { maxConcurrentRows: options.maxConcurrentRows } : {},
13209
+ ...options.maxCredits !== null ? { maxCredits: options.maxCredits } : {},
13201
13210
  ...options.profile ? { profile: options.profile } : {},
13202
13211
  ...Object.keys(testPolicyOverrides).length > 0 ? { testPolicyOverrides } : {},
13203
13212
  ...integrationMode ? { integrationMode } : {},
@@ -13385,6 +13394,7 @@ async function handleNamedRun(options, hooks) {
13385
13394
  ...options.forceToolRefresh ? { forceToolRefresh: true } : {},
13386
13395
  ...options.maxConcurrentExternalCalls !== null ? { maxConcurrentExternalCalls: options.maxConcurrentExternalCalls } : {},
13387
13396
  ...options.maxConcurrentRows !== null ? { maxConcurrentRows: options.maxConcurrentRows } : {},
13397
+ ...options.maxCredits !== null ? { maxCredits: options.maxCredits } : {},
13388
13398
  ...options.profile ? { profile: options.profile } : {},
13389
13399
  ...Object.keys(testPolicyOverrides).length > 0 ? { testPolicyOverrides } : {},
13390
13400
  ...integrationMode ? { integrationMode } : {},
@@ -15362,7 +15372,11 @@ function describedPlay(play) {
15362
15372
  inputs: schemaFields(play.inputSchema),
15363
15373
  outputs: schemaFields(play.outputSchema),
15364
15374
  ...rowInputs.length ? { rowInputs } : {},
15365
- ...rowOutputs.length ? { rowOutputs } : {},
15375
+ ...typeof csv.inputField === "string" ? { csvInput: csv.inputField } : {},
15376
+ ...rowOutputs.length ? {
15377
+ rowOutputs,
15378
+ rowOutputsAddToSource: Object.keys(added).length > 0 || rowOutput.preservesSourceColumns === true
15379
+ } : {},
15366
15380
  runner: {
15367
15381
  via: "play",
15368
15382
  reference,
@@ -16157,6 +16171,8 @@ Notes:
16157
16171
  --max-concurrent-rows sets the run-wide default and ceiling for live map row
16158
16172
  resolvers. Accepted range: 1-${MAX_CONFIGURABLE_CONCURRENT_ROWS}. The runtime
16159
16173
  may lower it when source-row size exceeds the active-row memory budget.
16174
+ --max-credits replaces the play's billing.maxCreditsPerRun for this run.
16175
+ Tool calls that would exceed it are denied.
16160
16176
  This command starts cloud work and may spend Deepline credits through tool calls.
16161
16177
 
16162
16178
  Idempotent execution:
@@ -16198,6 +16214,7 @@ Examples:
16198
16214
  deepline plays run my.play.ts --input '{"domain":"stripe.com"}' --log-level debug
16199
16215
  deepline plays run my.play.ts --profile absurd
16200
16216
  deepline plays run my.play.ts --max-concurrent-external-calls 20
16217
+ deepline plays run my.play.ts --max-credits 50
16201
16218
  deepline plays run my.play.ts --input @input.json
16202
16219
  deepline plays run cto-search.play.ts --limit 5
16203
16220
  deepline runs export <run-id> --out output.csv
@@ -16253,7 +16270,7 @@ Examples:
16253
16270
  ).option(
16254
16271
  "--max-concurrent-rows <count>",
16255
16272
  `Run-wide dataset map row resolver ceiling (max ${MAX_CONFIGURABLE_CONCURRENT_ROWS})`
16256
- ).option("--open", "Open the play page in a browser after the run starts").option(
16273
+ ).option("--max-credits <credits>", "Deepline-credit cap for this run").option("--open", "Open the play page in a browser after the run starts").option(
16257
16274
  "--debug-map-latency",
16258
16275
  "Internal diagnostics: emit one aggregate latency profile per dataset map"
16259
16276
  ).option(
@@ -16494,7 +16511,7 @@ Examples:
16494
16511
  process.exitCode = await ownView();
16495
16512
  return;
16496
16513
  }
16497
- const { describeAnything } = await import("./describe-SVMLA6SN.mjs");
16514
+ const { describeAnything } = await import("./describe-5PIG7QJH.mjs");
16498
16515
  process.exitCode = await describeAnything(
16499
16516
  name,
16500
16517
  {
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-H7SLESX6.mjs";
3
+ } from "./chunk-4YJHPJKQ.mjs";
4
4
  import {
5
5
  printCommandEnvelope,
6
6
  renderCommandEnvelopeText
7
- } from "./chunk-MHRDXS7J.mjs";
7
+ } from "./chunk-KTZFOS57.mjs";
8
8
  import {
9
9
  resolveConfig,
10
10
  sdkCliStateDirPath
11
- } from "./chunk-HDB4GAWY.mjs";
11
+ } from "./chunk-M5HYHFIV.mjs";
12
12
 
13
13
  // src/cli/commands/search.ts
14
14
  import { Option } from "commander";
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkQSH5CHRIjs = require('./chunk-QSH5CHRI.js');
5
+ var _chunkISVKLCGQjs = require('./chunk-ISVKLCGQ.js');
6
6
 
7
7
 
8
- var _chunkN6KIEYZVjs = require('./chunk-N6KIEYZV.js');
8
+ var _chunkZNGZPKXTjs = require('./chunk-ZNGZPKXT.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 } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkISVKLCGQjs.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
39
+ _chunkISVKLCGQjs.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 } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkISVKLCGQjs.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
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
139
+ _chunkISVKLCGQjs.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 } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkISVKLCGQjs.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
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
153
+ _chunkISVKLCGQjs.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 } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkISVKLCGQjs.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 } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkISVKLCGQjs.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
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
200
+ _chunkISVKLCGQjs.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 } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkISVKLCGQjs.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
227
+ _chunkISVKLCGQjs.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 } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkISVKLCGQjs.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
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
254
+ _chunkISVKLCGQjs.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 } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkISVKLCGQjs.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
269
+ _chunkISVKLCGQjs.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 = _chunkN6KIEYZVjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkZNGZPKXTjs.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkQSH5CHRIjs.openInBrowser.call(void 0, connectUrl);
292
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkISVKLCGQjs.openInBrowser.call(void 0, connectUrl);
292
+ _chunkISVKLCGQjs.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 } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkISVKLCGQjs.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
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
322
+ _chunkISVKLCGQjs.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 } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkISVKLCGQjs.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
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
371
+ _chunkISVKLCGQjs.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 } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkISVKLCGQjs.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
392
+ _chunkISVKLCGQjs.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -13,7 +13,7 @@ import {
13
13
  mintStagedPlayFileUploads,
14
14
  stagePlayFiles,
15
15
  startPlayRun
16
- } from "./chunk-CBVIJSHF.mjs";
16
+ } from "./chunk-Q6EOHNRH.mjs";
17
17
  import {
18
18
  COORDINATOR_INTERNAL_TOKEN_HEADER,
19
19
  CustomerDbQueryOutcomeUnknownError,
@@ -21,7 +21,7 @@ import {
21
21
  RETAINED_PIPELINE_RECEIVERS_HEADER,
22
22
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
23
23
  resolveConfig
24
- } from "./chunk-HDB4GAWY.mjs";
24
+ } from "./chunk-M5HYHFIV.mjs";
25
25
  import {
26
26
  DeeplineError,
27
27
  TOOL_EXECUTION_ERROR_SCHEMA_HEADER,