deepline 0.3.543 → 0.3.544

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 (154) hide show
  1. package/dist/bundling-sources/sdk/src/client-core.ts +6 -0
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/integration-contracts/monitor-fleet-contract.ts +3 -1
  4. package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +108 -1
  5. package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +29 -0
  6. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +2 -1
  7. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +3 -0
  8. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +3 -0
  9. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +1 -1
  10. package/dist/cli/auth-ENBXAKQS.js +43 -0
  11. package/dist/cli/{auth-ITAELTOA.mjs → auth-IMWJAHPU.mjs} +5 -5
  12. package/dist/cli/{billing-33XVFDUJ.js → billing-Y55PR2PV.js} +92 -92
  13. package/dist/cli/{billing-WZ7RVZW4.mjs → billing-YQMW3QJI.mjs} +8 -8
  14. package/dist/cli/{chunk-F6VSQ5LN.js → chunk-22OBDYHP.js} +12 -12
  15. package/dist/cli/{chunk-23D224GI.js → chunk-3I26HMJ7.js} +9 -9
  16. package/dist/cli/{chunk-274WKLSY.mjs → chunk-3JDA23NN.mjs} +2 -2
  17. package/dist/cli/{chunk-TBCNL2T5.js → chunk-3KGMM4KS.js} +1 -1
  18. package/dist/cli/{chunk-HKJ26NRN.mjs → chunk-456RRXAP.mjs} +5 -5
  19. package/dist/cli/{chunk-2KTGZKRE.js → chunk-4PKHFW56.js} +15 -15
  20. package/dist/cli/{chunk-XFPVFWZR.mjs → chunk-57G4NYOL.mjs} +1 -1
  21. package/dist/cli/{chunk-XBM3KABD.mjs → chunk-5PR4VLLL.mjs} +2 -2
  22. package/dist/cli/{chunk-NLENABRU.js → chunk-7GNZEOTH.js} +6 -6
  23. package/dist/cli/{chunk-C35NLLSA.js → chunk-7HMMTSDA.js} +5 -5
  24. package/dist/cli/{chunk-NR3O56FT.mjs → chunk-BEQ7RQLT.mjs} +5 -5
  25. package/dist/cli/{chunk-BGAUADV4.js → chunk-C4P2KLWT.js} +41 -41
  26. package/dist/cli/{chunk-MCBUWK5K.js → chunk-COJHT2KF.js} +22 -22
  27. package/dist/cli/{chunk-3JZXU5OB.js → chunk-DF2X7GJG.js} +5 -5
  28. package/dist/cli/{chunk-DH43ECTN.mjs → chunk-DVDWAC2M.mjs} +2 -2
  29. package/dist/cli/{chunk-2NCJQEZH.js → chunk-DYDHLBSK.js} +53 -53
  30. package/dist/cli/{chunk-GRCFX2EG.js → chunk-G26VJCNT.js} +4 -4
  31. package/dist/cli/{chunk-J2F6F5GL.js → chunk-GQHRGBHV.js} +5 -5
  32. package/dist/cli/{chunk-4SKDSSPU.mjs → chunk-GV45TTI6.mjs} +2 -2
  33. package/dist/cli/{chunk-W2OPPSAZ.mjs → chunk-H4SAHB3Q.mjs} +3 -3
  34. package/dist/cli/{chunk-52YK3EII.mjs → chunk-HAQRF6DJ.mjs} +2 -2
  35. package/dist/cli/{chunk-SYOPHFKB.mjs → chunk-HBSWATOU.mjs} +5 -5
  36. package/dist/cli/{chunk-FNW2SGPD.mjs → chunk-HVJQF5BI.mjs} +2 -2
  37. package/dist/cli/{chunk-R57UCXQG.mjs → chunk-HXM2JUGD.mjs} +1 -1
  38. package/dist/cli/{chunk-STXG2LFC.js → chunk-IFIJ4DBJ.js} +2 -2
  39. package/dist/cli/{chunk-5MN3BKNB.js → chunk-JBWOE6AP.js} +16 -16
  40. package/dist/cli/{chunk-2LNTKICO.js → chunk-JWVG7ZPX.js} +3 -3
  41. package/dist/cli/{chunk-O2KLWUNI.js → chunk-KE6CSCUF.js} +44 -44
  42. package/dist/cli/{chunk-OELJKQOL.mjs → chunk-LPUBBUKX.mjs} +2 -2
  43. package/dist/cli/{chunk-XSN6BAZT.mjs → chunk-LQ6RRYXN.mjs} +5 -5
  44. package/dist/cli/{chunk-5VIPTLRX.mjs → chunk-LW274RO7.mjs} +1 -1
  45. package/dist/cli/{chunk-QFRMVI4S.js → chunk-ON56ISO6.js} +3 -3
  46. package/dist/cli/{chunk-46BEBZ3M.js → chunk-PDJ4UDCO.js} +29 -28
  47. package/dist/cli/{chunk-ZRT2PNYY.mjs → chunk-PFGOCUH3.mjs} +1 -1
  48. package/dist/cli/{chunk-NHKP2NSU.js → chunk-PKRW76XG.js} +2 -2
  49. package/dist/cli/{chunk-6SJZMMD5.mjs → chunk-PMW5YP72.mjs} +11 -11
  50. package/dist/cli/{chunk-D6YAU3CF.mjs → chunk-Q7ZOWNKR.mjs} +2 -1
  51. package/dist/cli/{chunk-SZNJENGT.mjs → chunk-REEOMNCO.mjs} +3 -3
  52. package/dist/cli/{chunk-YJYKZ2U3.js → chunk-RG34YBDE.js} +2 -2
  53. package/dist/cli/{chunk-ZSPBJB7I.mjs → chunk-RJPDCSTD.mjs} +4 -4
  54. package/dist/cli/{chunk-YE3T73BV.js → chunk-RUFR4PUO.js} +10 -10
  55. package/dist/cli/{chunk-AACKPOGA.mjs → chunk-SK3HPU2J.mjs} +1 -1
  56. package/dist/cli/{chunk-OAFKUHN5.mjs → chunk-SKS53WM6.mjs} +4 -4
  57. package/dist/cli/{chunk-EHUG6EUT.js → chunk-UHIAQPVA.js} +26 -26
  58. package/dist/cli/{chunk-DUGTPVT7.js → chunk-UNMNGRPB.js} +7 -7
  59. package/dist/cli/{chunk-DI3GL3T6.js → chunk-W7X4KH45.js} +99 -99
  60. package/dist/cli/{chunk-7AUQTNLB.mjs → chunk-WBSGPLH5.mjs} +2 -2
  61. package/dist/cli/{chunk-SU4K4SUU.mjs → chunk-WUEORIOY.mjs} +1 -1
  62. package/dist/cli/{chunk-VSJEOSYL.mjs → chunk-YIRVKMON.mjs} +1 -1
  63. package/dist/cli/{chunk-UJ6GOV7K.js → chunk-Z44YTSTA.js} +13 -13
  64. package/dist/cli/{chunk-JXG7HWBA.mjs → chunk-ZHY4T5M6.mjs} +1 -1
  65. package/dist/cli/{chunk-PX7XAVUC.js → chunk-ZY6FL4O4.js} +19 -19
  66. package/dist/cli/{concurrent-runs-help-Z6ODNL4E.mjs → concurrent-runs-help-KBWPKSTP.mjs} +6 -6
  67. package/dist/cli/concurrent-runs-help-TOMLCMV7.js +21 -0
  68. package/dist/cli/{csv-5QW2HPHT.mjs → csv-M5EBEMZH.mjs} +4 -4
  69. package/dist/cli/{csv-SSOFTXHU.js → csv-XGGDZTQI.js} +13 -13
  70. package/dist/cli/{db-4LK5AJNO.js → db-CVPR54XK.js} +27 -27
  71. package/dist/cli/{db-K2JMR6EM.mjs → db-M6FJ6J6E.mjs} +6 -6
  72. package/dist/cli/describe-RUODIS6M.js +50 -0
  73. package/dist/cli/{describe-AXHQZHTT.mjs → describe-X6QA2U3C.mjs} +18 -18
  74. package/dist/cli/describe-core.d.mts +2 -2
  75. package/dist/cli/describe-core.d.ts +2 -2
  76. package/dist/cli/{executions-FY2XTX2W.mjs → executions-EHTS2XJX.mjs} +6 -6
  77. package/dist/cli/{executions-AATJQQAQ.js → executions-VJEEWN22.js} +8 -8
  78. package/dist/cli/{feedback-MKBPRGS6.mjs → feedback-76VGY4GP.mjs} +6 -6
  79. package/dist/cli/{feedback-QPVJER75.js → feedback-DQPUCUXO.js} +14 -14
  80. package/dist/cli/{git-AGRFZR3K.mjs → git-IY6DKKLR.mjs} +5 -5
  81. package/dist/cli/git-RLHTSYRY.js +25 -0
  82. package/dist/cli/index.js +142 -142
  83. package/dist/cli/index.mjs +44 -44
  84. package/dist/cli/{integrations-OUQ6U33M.mjs → integrations-242LE3TQ.mjs} +7 -7
  85. package/dist/cli/{integrations-R6OUFZXI.js → integrations-CQSTIKFY.js} +15 -15
  86. package/dist/cli/{legacy-noops-DVL2RRKL.mjs → legacy-noops-SWTSTMRY.mjs} +6 -6
  87. package/dist/cli/{legacy-noops-H7INM2QN.js → legacy-noops-U72DO6ZF.js} +9 -9
  88. package/dist/cli/{mcp-2Z2YVOLK.mjs → mcp-JJH6JR52.mjs} +4 -4
  89. package/dist/cli/{mcp-33F7D7WI.js → mcp-L473BKLJ.js} +24 -24
  90. package/dist/cli/{monitors-KDUJHAKJ.js → monitors-3TF2DOFD.js} +117 -102
  91. package/dist/cli/{monitors-NZD2WIKK.mjs → monitors-VSYHUBKC.mjs} +24 -9
  92. package/dist/cli/{org-EJW45RUA.mjs → org-S5VIKU2E.mjs} +6 -6
  93. package/dist/cli/{org-4PQGHLEB.js → org-YKVI2ZTI.js} +88 -88
  94. package/dist/cli/{play-3CM5RT5J.mjs → play-C7T5A3QM.mjs} +17 -17
  95. package/dist/cli/{play-MLHMQL4G.js → play-DOWEG45Y.js} +317 -317
  96. package/dist/cli/{providers-BHYBJI4R.mjs → providers-BMVVX3VD.mjs} +6 -6
  97. package/dist/cli/{providers-YBJG7277.js → providers-TAZPPFTB.js} +9 -9
  98. package/dist/cli/{quickstart-LL3MR562.mjs → quickstart-A3WKMKTW.mjs} +4 -4
  99. package/dist/cli/{quickstart-O7L2NNGJ.js → quickstart-HD6FQXGR.js} +6 -6
  100. package/dist/cli/{run-HJ2AR6CM.js → run-BVVV2UX7.js} +43 -43
  101. package/dist/cli/{run-OK545H5Q.mjs → run-FV7TWNOC.mjs} +23 -23
  102. package/dist/cli/{search-Z5ZKMRTX.mjs → search-MGK6WIKS.mjs} +7 -7
  103. package/dist/cli/search-VJFCWUZN.js +32 -0
  104. package/dist/cli/{search-output-SVW4DETG.js → search-output-6Y7KEPIE.js} +6 -6
  105. package/dist/cli/{search-output-Q5VHNUWG.mjs → search-output-GM7LDZKE.mjs} +4 -4
  106. package/dist/cli/{secrets-QIKIEFWB.mjs → secrets-4RFAR7YI.mjs} +6 -6
  107. package/dist/cli/{secrets-ENQWMCB5.js → secrets-SISXIXSZ.js} +15 -15
  108. package/dist/cli/{sessions-AETO22RF.mjs → sessions-CE3OMEG7.mjs} +6 -6
  109. package/dist/cli/sessions-OWWZJZXH.js +22 -0
  110. package/dist/cli/{settings-OFLIFTMZ.js → settings-4HPM3K4A.js} +85 -85
  111. package/dist/cli/{settings-G5RGRPFV.mjs → settings-E22IDSX2.mjs} +12 -12
  112. package/dist/cli/{setup-QW7Y62XD.js → setup-BDRSNLKX.js} +49 -49
  113. package/dist/cli/{setup-G4N3X6KG.mjs → setup-BK65MDZ6.mjs} +9 -9
  114. package/dist/cli/{skills-QRFQGHNA.mjs → skills-FI2GZMR4.mjs} +7 -7
  115. package/dist/cli/skills-ZLBFUAFR.js +36 -0
  116. package/dist/cli/tools-3K72VE33.js +57 -0
  117. package/dist/cli/{tools-52BH7UTF.mjs → tools-HMMWYUNW.mjs} +17 -17
  118. package/dist/cli/update-QZV6DH5V.js +34 -0
  119. package/dist/cli/{update-SDGZLAGL.mjs → update-WDKBSXV5.mjs} +9 -9
  120. package/dist/cli/{views-5QKAWYPI.js → views-775AUDWQ.js} +21 -21
  121. package/dist/cli/{views-3BIJFJMQ.mjs → views-JYIJCO23.mjs} +6 -6
  122. package/dist/cli/{workflow-G67RPWVY.js → workflow-4H6KQRFQ.js} +17 -17
  123. package/dist/cli/{workflow-QAK773FR.mjs → workflow-FKKHE3IU.mjs} +7 -7
  124. package/dist/{client-bd4QQIXo.d.mts → client-ANT3pyoa.d.mts} +1 -1
  125. package/dist/{client-D1ga52xq.d.ts → client-DD_FyJVd.d.ts} +1 -1
  126. package/dist/{client-core-CqfWNf2Q.d.mts → client-core-Dg9tKhdB.d.mts} +5 -0
  127. package/dist/{client-core-B6eMVx8h.d.ts → client-core-QHmo73k1.d.ts} +5 -0
  128. package/dist/index.d.mts +3 -3
  129. package/dist/index.d.ts +3 -3
  130. package/dist/index.js +9 -9
  131. package/dist/index.mjs +6 -6
  132. package/dist/install-integrity.json +114 -114
  133. package/dist/plays/play-description.d.mts +1 -1
  134. package/dist/plays/play-description.d.ts +1 -1
  135. package/dist/plays/run-request.d.mts +1 -1
  136. package/dist/plays/run-request.d.ts +1 -1
  137. package/dist/release.d.mts +1 -1
  138. package/dist/release.d.ts +1 -1
  139. package/dist/release.js +2 -2
  140. package/dist/release.mjs +1 -1
  141. package/dist/server.d.mts +2 -2
  142. package/dist/server.d.ts +2 -2
  143. package/dist/server.js +5 -5
  144. package/dist/server.mjs +3 -3
  145. package/package.json +1 -1
  146. package/dist/cli/auth-S6B5WUU5.js +0 -43
  147. package/dist/cli/concurrent-runs-help-E4OYD3DS.js +0 -21
  148. package/dist/cli/describe-AC6PLEFP.js +0 -50
  149. package/dist/cli/git-RUYFQEJX.js +0 -25
  150. package/dist/cli/search-UUNS6BCC.js +0 -32
  151. package/dist/cli/sessions-FNSUDERA.js +0 -22
  152. package/dist/cli/skills-3IXIY2IV.js +0 -36
  153. package/dist/cli/tools-MYBUMPKH.js +0 -57
  154. package/dist/cli/update-GT7574UU.js +0 -34
@@ -2,7 +2,7 @@ import {
2
2
  addDescribeOptions,
3
3
  recordApiResponse,
4
4
  writeExecutionOutput
5
- } from "./chunk-XFPVFWZR.mjs";
5
+ } from "./chunk-57G4NYOL.mjs";
6
6
  import {
7
7
  registerIntegrationBalanceCommand,
8
8
  registerIntegrationConnectCommand,
@@ -11,11 +11,11 @@ import {
11
11
  registerLegacyHubSpotMembersCommand,
12
12
  registerLegacyWorkspaceConnectionCommand,
13
13
  registerWorkspaceConnectionListCommand
14
- } from "./chunk-7AUQTNLB.mjs";
14
+ } from "./chunk-WBSGPLH5.mjs";
15
15
  import {
16
16
  recentSearchRef,
17
17
  registerDeprecatedSearchCommand
18
- } from "./chunk-OAFKUHN5.mjs";
18
+ } from "./chunk-SKS53WM6.mjs";
19
19
  import {
20
20
  Capability,
21
21
  arrayField,
@@ -55,10 +55,10 @@ import {
55
55
  } from "./chunk-FIVKWNMT.mjs";
56
56
  import {
57
57
  DeeplineClient
58
- } from "./chunk-4SKDSSPU.mjs";
58
+ } from "./chunk-GV45TTI6.mjs";
59
59
  import {
60
60
  validateExecutionIdempotencyKey
61
- } from "./chunk-D6YAU3CF.mjs";
61
+ } from "./chunk-Q7ZOWNKR.mjs";
62
62
  import {
63
63
  stableStringify
64
64
  } from "./chunk-UBKA33KY.mjs";
@@ -68,18 +68,18 @@ import {
68
68
  maybeAutoUpdateAndRelaunch,
69
69
  registerCompatibilityCatalog,
70
70
  runToolExecuteStage
71
- } from "./chunk-XSN6BAZT.mjs";
71
+ } from "./chunk-LQ6RRYXN.mjs";
72
72
  import {
73
73
  isCliTraceEnabled,
74
74
  recordCliTrace,
75
75
  resolveCliMaintenancePolicy
76
- } from "./chunk-5VIPTLRX.mjs";
76
+ } from "./chunk-LW274RO7.mjs";
77
77
  import {
78
78
  checkSdkCompatibility,
79
79
  enforceSdkCompatibilityResponse,
80
80
  flushDeferredSkillsSyncNotices,
81
81
  syncSdkSkillsIfNeeded
82
- } from "./chunk-NR3O56FT.mjs";
82
+ } from "./chunk-BEQ7RQLT.mjs";
83
83
  import {
84
84
  errorToJsonPayload,
85
85
  printCommandEnvelope,
@@ -88,12 +88,12 @@ import {
88
88
  printJsonError,
89
89
  renderCommandEnvelopeText,
90
90
  shouldEmitJson
91
- } from "./chunk-DH43ECTN.mjs";
91
+ } from "./chunk-DVDWAC2M.mjs";
92
92
  import {
93
93
  readSdkSkillsLocalVersion,
94
94
  resolveConfig,
95
95
  sdkCliStateDirPath
96
- } from "./chunk-R57UCXQG.mjs";
96
+ } from "./chunk-HXM2JUGD.mjs";
97
97
  import {
98
98
  DeeplineError
99
99
  } from "./chunk-JL2OTMSG.mjs";
@@ -977,7 +977,7 @@ Examples:
977
977
  process.exitCode = await narrowView();
978
978
  return;
979
979
  }
980
- const { describeAnything } = await import("./describe-AXHQZHTT.mjs");
980
+ const { describeAnything } = await import("./describe-X6QA2U3C.mjs");
981
981
  process.exitCode = await describeAnything(
982
982
  toolId,
983
983
  {
@@ -36,7 +36,7 @@ import {
36
36
  RETAINED_PIPELINE_RECEIVERS_HEADER,
37
37
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
38
38
  SDK_API_MAJOR
39
- } from "./chunk-JXG7HWBA.mjs";
39
+ } from "./chunk-ZHY4T5M6.mjs";
40
40
  import {
41
41
  CustomerDbQueryOutcomeUnknownError
42
42
  } from "./chunk-CQBIO6HW.mjs";
@@ -7333,6 +7333,7 @@ var DeeplineClient = class _DeeplineClient {
7333
7333
  const body = {
7334
7334
  ...typeof definitionOrId === "string" ? {} : { definition: definitionOrId },
7335
7335
  ...options?.dryRun ? { dry_run: true } : {},
7336
+ ...options?.adoptExisting ? { adopt_existing: true } : {},
7336
7337
  ...options?.expectedGeneration !== void 0 ? { expected_generation: options.expectedGeneration } : {}
7337
7338
  };
7338
7339
  return this.http.request(
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  rejectRestrictedFeedback
3
- } from "./chunk-SU4K4SUU.mjs";
3
+ } from "./chunk-WUEORIOY.mjs";
4
4
  import {
5
5
  getAuthedHttpClient,
6
6
  printCommandEnvelope
7
- } from "./chunk-DH43ECTN.mjs";
7
+ } from "./chunk-DVDWAC2M.mjs";
8
8
  import {
9
9
  agentSessionIdFromEnvironment,
10
10
  claudeProjectsRoots,
11
11
  coworkTranscriptFromEnvironment
12
- } from "./chunk-JXG7HWBA.mjs";
12
+ } from "./chunk-ZHY4T5M6.mjs";
13
13
 
14
14
  // src/cli/commands/sessions.ts
15
15
  import {
@@ -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; }
2
2
 
3
- var _chunkPX7XAVUCjs = require('./chunk-PX7XAVUC.js');
3
+ var _chunkZY6FL4O4js = require('./chunk-ZY6FL4O4.js');
4
4
 
5
5
  // src/cli/feedback-preferences.ts
6
6
 
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
57
57
  const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
58
58
  const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
59
59
  if (options.json) {
60
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
60
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
61
61
  { ok: false, code, exitCode: 2, message },
62
62
  { json: true }
63
63
  );
@@ -11,20 +11,20 @@ import {
11
11
  skillsInstallLeasePath,
12
12
  skillsSourceUrl,
13
13
  syncSdkSkillsIfNeeded
14
- } from "./chunk-NR3O56FT.mjs";
14
+ } from "./chunk-BEQ7RQLT.mjs";
15
15
  import {
16
16
  printCommandEnvelope
17
- } from "./chunk-DH43ECTN.mjs";
17
+ } from "./chunk-DVDWAC2M.mjs";
18
18
  import {
19
19
  autoDetectBaseUrl,
20
20
  ensureProjectPrivatePathsIgnored,
21
21
  resolveProjectPinTarget,
22
22
  sdkCliStateDirPath
23
- } from "./chunk-R57UCXQG.mjs";
23
+ } from "./chunk-HXM2JUGD.mjs";
24
24
  import {
25
25
  SDK_VERSION,
26
26
  detectAgentRuntime
27
- } from "./chunk-JXG7HWBA.mjs";
27
+ } from "./chunk-ZHY4T5M6.mjs";
28
28
  import {
29
29
  DEEPLINE_GTM_GLOBAL_SKILL_ROOTS
30
30
  } from "./chunk-5JPKRDFC.mjs";
@@ -3,16 +3,16 @@
3
3
  var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
4
4
 
5
5
 
6
- var _chunk3JZXU5OBjs = require('./chunk-3JZXU5OB.js');
6
+ var _chunkDF2X7GJGjs = require('./chunk-DF2X7GJG.js');
7
7
 
8
8
 
9
9
 
10
10
 
11
- var _chunkPX7XAVUCjs = require('./chunk-PX7XAVUC.js');
11
+ var _chunkZY6FL4O4js = require('./chunk-ZY6FL4O4.js');
12
12
 
13
13
 
14
14
 
15
- var _chunkQFRMVI4Sjs = require('./chunk-QFRMVI4S.js');
15
+ var _chunkON56ISO6js = require('./chunk-ON56ISO6.js');
16
16
 
17
17
  // src/cli/commands/search.ts
18
18
  var _commander = require('commander');
@@ -22,7 +22,7 @@ var _fs = require('fs');
22
22
  var _path = require('path');
23
23
  var SEARCH_REF_TTL_MS = 15 * 6e4;
24
24
  function lastSearchPath() {
25
- return _path.join.call(void 0, _chunkQFRMVI4Sjs.sdkCliStateDirPath.call(void 0, _chunkQFRMVI4Sjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
25
+ return _path.join.call(void 0, _chunkON56ISO6js.sdkCliStateDirPath.call(void 0, _chunkON56ISO6js.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
26
26
  }
27
27
  function rememberSearchRef(searchRef) {
28
28
  writeSearchRefs({ searchRef });
@@ -132,9 +132,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
132
132
  console.error("--summary-width must be an integer of at least 2.");
133
133
  return 1;
134
134
  }
135
- const client = new (0, _chunk3JZXU5OBjs.DeeplineClient)();
135
+ const client = new (0, _chunkDF2X7GJGjs.DeeplineClient)();
136
136
  const json = options.json === true;
137
- const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-SVW4DETG.js")));
137
+ const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-6Y7KEPIE.js")));
138
138
  const searches = [];
139
139
  const chunks = [];
140
140
  const refs = /* @__PURE__ */ new Map();
@@ -157,7 +157,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
157
157
  const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
158
158
  if (!multiple) {
159
159
  if (searchRef) rememberSearchRef(searchRef);
160
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0, result, { json, text });
160
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0, result, { json, text });
161
161
  return 0;
162
162
  }
163
163
  searches.push({ ...result, query });
@@ -171,8 +171,8 @@ ${text}`);
171
171
  }
172
172
  } catch (error) {
173
173
  if (!multiple) throw error;
174
- const payload = _chunkPX7XAVUCjs.errorToJsonPayload.call(void 0, error);
175
- const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkPX7XAVUCjs.resolveSdkCliFailureExitCode.call(void 0, error)));
174
+ const payload = _chunkZY6FL4O4js.errorToJsonPayload.call(void 0, error);
175
+ const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkZY6FL4O4js.resolveSdkCliFailureExitCode.call(void 0, error)));
176
176
  searches.push({ ...payload, query, exitCode: queryExitCode });
177
177
  if (!json) {
178
178
  console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
@@ -184,7 +184,7 @@ Search failed.
184
184
  }
185
185
  }
186
186
  rememberSearchRefsByTool(refs);
187
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
187
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
188
188
  { searches },
189
189
  {
190
190
  json,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-NR3O56FT.mjs";
3
+ } from "./chunk-BEQ7RQLT.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -3,16 +3,16 @@ import {
3
3
  } from "./chunk-5AEDYVB6.mjs";
4
4
  import {
5
5
  DeeplineClient
6
- } from "./chunk-4SKDSSPU.mjs";
6
+ } from "./chunk-GV45TTI6.mjs";
7
7
  import {
8
8
  errorToJsonPayload,
9
9
  printCommandEnvelope,
10
10
  resolveSdkCliFailureExitCode
11
- } from "./chunk-DH43ECTN.mjs";
11
+ } from "./chunk-DVDWAC2M.mjs";
12
12
  import {
13
13
  resolveConfig,
14
14
  sdkCliStateDirPath
15
- } from "./chunk-R57UCXQG.mjs";
15
+ } from "./chunk-HXM2JUGD.mjs";
16
16
 
17
17
  // src/cli/commands/search.ts
18
18
  import { Option } from "commander";
@@ -134,7 +134,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
134
134
  }
135
135
  const client = new DeeplineClient();
136
136
  const json = options.json === true;
137
- const renderer = json ? void 0 : await import("./search-output-Q5VHNUWG.mjs");
137
+ const renderer = json ? void 0 : await import("./search-output-GM7LDZKE.mjs");
138
138
  const searches = [];
139
139
  const chunks = [];
140
140
  const refs = /* @__PURE__ */ new Map();
@@ -2,10 +2,10 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkPX7XAVUCjs = require('./chunk-PX7XAVUC.js');
5
+ var _chunkZY6FL4O4js = require('./chunk-ZY6FL4O4.js');
6
6
 
7
7
 
8
- var _chunkQFRMVI4Sjs = require('./chunk-QFRMVI4S.js');
8
+ var _chunkON56ISO6js = require('./chunk-ON56ISO6.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 } = _chunkPX7XAVUCjs.getAuthedHttpClient.call(void 0, );
35
+ const { http } = _chunkZY6FL4O4js.getAuthedHttpClient.call(void 0, );
36
36
  const payload = await http.get(
37
37
  `/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
38
38
  );
39
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
39
+ _chunkZY6FL4O4js.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 } = _chunkPX7XAVUCjs.getAuthedHttpClient.call(void 0, );
76
+ const { http } = _chunkZY6FL4O4js.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
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
139
+ _chunkZY6FL4O4js.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 } = _chunkPX7XAVUCjs.getAuthedHttpClient.call(void 0, );
150
+ const { http } = _chunkZY6FL4O4js.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
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
153
+ _chunkZY6FL4O4js.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 } = _chunkPX7XAVUCjs.getAuthedHttpClient.call(void 0, );
174
+ const { http } = _chunkZY6FL4O4js.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 } = _chunkPX7XAVUCjs.getAuthedHttpClient.call(void 0, );
191
+ const { http } = _chunkZY6FL4O4js.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
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
200
+ _chunkZY6FL4O4js.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 } = _chunkPX7XAVUCjs.getAuthedHttpClient.call(void 0, );
223
+ const { http } = _chunkZY6FL4O4js.getAuthedHttpClient.call(void 0, );
224
224
  const payload = await http.get(
225
225
  `/api/v2/play-projects/${encodeURIComponent(id)}`
226
226
  );
227
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
227
+ _chunkZY6FL4O4js.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 } = _chunkPX7XAVUCjs.getAuthedHttpClient.call(void 0, );
243
+ const { http } = _chunkZY6FL4O4js.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
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
254
+ _chunkZY6FL4O4js.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 } = _chunkPX7XAVUCjs.getAuthedHttpClient.call(void 0, );
267
+ const { http } = _chunkZY6FL4O4js.getAuthedHttpClient.call(void 0, );
268
268
  await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
269
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
269
+ _chunkZY6FL4O4js.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 = _chunkQFRMVI4Sjs.resolveBaseUrlOnly.call(void 0, );
289
+ const baseUrl = _chunkON56ISO6js.resolveBaseUrlOnly.call(void 0, );
290
290
  const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
291
- const opened = _chunkPX7XAVUCjs.openInBrowser.call(void 0, connectUrl);
292
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
291
+ const opened = _chunkZY6FL4O4js.openInBrowser.call(void 0, connectUrl);
292
+ _chunkZY6FL4O4js.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 } = _chunkPX7XAVUCjs.getAuthedHttpClient.call(void 0, );
314
+ const { http } = _chunkZY6FL4O4js.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
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
322
+ _chunkZY6FL4O4js.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 } = _chunkPX7XAVUCjs.getAuthedHttpClient.call(void 0, );
366
+ const { http } = _chunkZY6FL4O4js.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
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
371
+ _chunkZY6FL4O4js.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 } = _chunkPX7XAVUCjs.getAuthedHttpClient.call(void 0, );
390
+ const { http } = _chunkZY6FL4O4js.getAuthedHttpClient.call(void 0, );
391
391
  const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
392
- _chunkPX7XAVUCjs.printCommandEnvelope.call(void 0,
392
+ _chunkZY6FL4O4js.printCommandEnvelope.call(void 0,
393
393
  {
394
394
  cancelled: payload.cancelled,
395
395
  deployment: payload.deployment,
@@ -9,7 +9,7 @@ var _chunkXYIECA7Mjs = require('./chunk-XYIECA7M.js');
9
9
 
10
10
 
11
11
 
12
- var _chunkPX7XAVUCjs = require('./chunk-PX7XAVUC.js');
12
+ var _chunkZY6FL4O4js = require('./chunk-ZY6FL4O4.js');
13
13
 
14
14
  // src/cli/describe-options.ts
15
15
  function addDescribeOptions(command, options = {}) {
@@ -250,7 +250,7 @@ function projectRunDatasetCell(value) {
250
250
  const logicalValue = parseSerializedDatasetValue(value);
251
251
  if (logicalValue === null || logicalValue === void 0) return logicalValue;
252
252
  if (typeof logicalValue === "object") {
253
- return _chunkPX7XAVUCjs.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
253
+ return _chunkZY6FL4O4js.csvSafeJsonString.call(void 0, canonicalDatasetJson(logicalValue));
254
254
  }
255
255
  return logicalValue;
256
256
  }
@@ -642,7 +642,7 @@ function csvText(rows, columns = []) {
642
642
  rows: rows.map((row) => record(row) ? row : { value: row }),
643
643
  columns
644
644
  });
645
- return _chunkPX7XAVUCjs.csvStringFromRows.call(void 0, projection.rows, projection.columns);
645
+ return _chunkZY6FL4O4js.csvStringFromRows.call(void 0, projection.rows, projection.columns);
646
646
  }
647
647
  function writeExecutionOutput(result, options, { skipReceiptFile = false } = {}) {
648
648
  let temp;
@@ -769,7 +769,7 @@ function writeExecutionOutput(result, options, { skipReceiptFile = false } = {})
769
769
  };
770
770
  if (options.receiptOut && !skipReceiptFile) {
771
771
  persist(options.receiptOut, jsonText(receipt));
772
- _chunkPX7XAVUCjs.markJsonOutputHandled.call(void 0, );
772
+ _chunkZY6FL4O4js.markJsonOutputHandled.call(void 0, );
773
773
  } else {
774
774
  printReceipt(receipt, options, {
775
775
  data: hasData ? result.data : void 0,
@@ -937,7 +937,7 @@ function receiptText(receipt, options, extra) {
937
937
  problems.push(
938
938
  `Error: ${record(error) && typeof error.message === "string" ? error.message : JSON.stringify(error)}`
939
939
  );
940
- const diagnostic = _chunkPX7XAVUCjs.formatCliFailureDiagnostic.call(void 0, error);
940
+ const diagnostic = _chunkZY6FL4O4js.formatCliFailureDiagnostic.call(void 0, error);
941
941
  if (diagnostic) problems.push(...diagnostic.split("\n"));
942
942
  if (record(error) && typeof error.recoveryFile === "string") {
943
943
  problems.push(
@@ -1030,8 +1030,8 @@ function printReceipt(receipt, options, extra) {
1030
1030
  const text = options.receiptJson ? `${JSON.stringify(receipt, null, 2)}
1031
1031
  ` : receiptText(receipt, options, extra);
1032
1032
  if (options.receiptOut !== void 0) {
1033
- _chunkPX7XAVUCjs.writeRawStderr.call(void 0, text);
1034
- _chunkPX7XAVUCjs.markJsonOutputHandled.call(void 0, );
1033
+ _chunkZY6FL4O4js.writeRawStderr.call(void 0, text);
1034
+ _chunkZY6FL4O4js.markJsonOutputHandled.call(void 0, );
1035
1035
  } else {
1036
1036
  (dataOnStdout(options) ? process.stderr : process.stdout).write(text);
1037
1037
  }