deepline 0.3.436 → 0.3.437

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 (122) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/context.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +4 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/execution-capabilities.ts +6 -0
  5. package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +4 -0
  6. package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +3 -0
  7. package/dist/bundling-sources/shared_libs/play-runtime/runtime-authority.ts +25 -0
  8. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +5 -1
  9. package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +9 -1
  10. package/dist/cli/auth-DN5GJY5Q.js +40 -0
  11. package/dist/cli/{auth-A6D2PZMU.mjs → auth-TSUA536O.mjs} +4 -4
  12. package/dist/cli/{billing-SWG3FF6U.mjs → billing-5TGADGMX.mjs} +4 -4
  13. package/dist/cli/{billing-ZPMWQR5V.js → billing-V3T2YPBR.js} +73 -73
  14. package/dist/cli/{chunk-MOGZ6YT6.mjs → chunk-5IJDDKD6.mjs} +1 -1
  15. package/dist/cli/{chunk-BLEASRDL.js → chunk-632AG45P.js} +2 -2
  16. package/dist/cli/{chunk-F5355JDY.js → chunk-6VB2BPUX.js} +50 -50
  17. package/dist/cli/{chunk-E4ED66S3.mjs → chunk-7QLXY6RP.mjs} +1 -1
  18. package/dist/cli/{chunk-CJVDOWEV.mjs → chunk-AFWYYSKY.mjs} +2 -2
  19. package/dist/cli/{chunk-TIVPPP2V.mjs → chunk-BFV62ZMO.mjs} +2 -2
  20. package/dist/cli/{chunk-2NLGISW4.js → chunk-BR63JXVC.js} +52 -52
  21. package/dist/cli/{chunk-JJRUH6ES.js → chunk-BZ3RMXER.js} +79 -79
  22. package/dist/cli/{chunk-YGOES3EB.js → chunk-D7NOGNG5.js} +6 -6
  23. package/dist/cli/{chunk-QNUTTJVP.mjs → chunk-G56WUJBT.mjs} +3 -3
  24. package/dist/cli/{chunk-ACB2MRKR.mjs → chunk-HS3A4Q6E.mjs} +3 -3
  25. package/dist/cli/{chunk-4ESXEDQQ.js → chunk-IPJ3DZ7I.js} +16 -16
  26. package/dist/cli/{chunk-MPU3T2DO.js → chunk-JHT2LCK3.js} +8 -8
  27. package/dist/cli/{chunk-IBF6ASRS.mjs → chunk-JIY4IN6O.mjs} +1 -1
  28. package/dist/cli/{chunk-VSDYVYRD.mjs → chunk-JJ7SVPMN.mjs} +1 -1
  29. package/dist/cli/{chunk-BV4LGD5S.js → chunk-JU67SR7M.js} +6 -6
  30. package/dist/cli/{chunk-BBWDU3D5.js → chunk-KAJK6XVI.js} +1 -1
  31. package/dist/cli/{chunk-TEDJQVSP.mjs → chunk-KAM3ZGK4.mjs} +1 -1
  32. package/dist/cli/{chunk-PH2FUNEJ.mjs → chunk-N5D4EMIY.mjs} +1 -1
  33. package/dist/cli/{chunk-CAAVZL2V.js → chunk-NEGUDVTQ.js} +26 -26
  34. package/dist/cli/{chunk-IL2YE7B7.mjs → chunk-OOXULCVG.mjs} +2 -2
  35. package/dist/cli/{chunk-A7CLG63J.mjs → chunk-PXUAU5Q6.mjs} +2 -2
  36. package/dist/cli/{chunk-776NKVHY.mjs → chunk-PZGRH4X7.mjs} +4 -4
  37. package/dist/cli/{chunk-RABL6ORN.js → chunk-Q5LCLAY5.js} +4 -4
  38. package/dist/cli/{chunk-VZ7XCNT7.mjs → chunk-QHDQIHME.mjs} +1 -1
  39. package/dist/cli/{chunk-NFMS5PCE.mjs → chunk-QOTWZX7F.mjs} +5 -5
  40. package/dist/cli/{chunk-PES2B6ZD.mjs → chunk-RG4ORMHV.mjs} +8 -8
  41. package/dist/cli/{chunk-U4CAMIW7.js → chunk-U5PCCQMO.js} +2 -2
  42. package/dist/cli/{chunk-T33O4YWA.mjs → chunk-UNX3UQFJ.mjs} +3 -3
  43. package/dist/cli/{chunk-5QWTEQPP.js → chunk-WXJAODJD.js} +1 -1
  44. package/dist/cli/{chunk-Q5P5GTCA.js → chunk-XGKH5EC7.js} +10 -10
  45. package/dist/cli/{chunk-V3QUJJ2M.js → chunk-YRK64KJY.js} +35 -35
  46. package/dist/cli/{chunk-BA4WWJNF.js → chunk-Z6TTBJHH.js} +8 -8
  47. package/dist/cli/{chunk-GF5O6EFC.js → chunk-ZOPU46KZ.js} +20 -20
  48. package/dist/cli/{csv-ASBYH3ND.mjs → csv-BWEZ5PWQ.mjs} +3 -3
  49. package/dist/cli/{csv-ZV5QP7YW.js → csv-WL7ZWIT5.js} +12 -12
  50. package/dist/cli/{db-VQVBDJON.js → db-DCTSMDWZ.js} +25 -25
  51. package/dist/cli/{db-7MMWKX2N.mjs → db-KAR7YCP4.mjs} +4 -4
  52. package/dist/cli/{describe-TMKTLNOP.js → describe-A7FCQTHV.js} +16 -16
  53. package/dist/cli/{describe-VZIT4HGO.mjs → describe-EMVTMHVJ.mjs} +12 -12
  54. package/dist/cli/describe-core.d.mts +2 -2
  55. package/dist/cli/describe-core.d.ts +2 -2
  56. package/dist/cli/{executions-M55YIVFY.mjs → executions-XR4PN6WX.mjs} +4 -4
  57. package/dist/cli/{executions-26CRGU65.js → executions-YSUL2TQR.js} +6 -6
  58. package/dist/cli/{feedback-RU3VIDKR.js → feedback-G5IU7E4Y.js} +7 -7
  59. package/dist/cli/{feedback-V3VZI6J7.mjs → feedback-PJSTAXH7.mjs} +3 -3
  60. package/dist/cli/git-QHEYASI4.js +24 -0
  61. package/dist/cli/{git-S5YY2MBP.mjs → git-TJ5Q2Z7A.mjs} +4 -4
  62. package/dist/cli/index.js +131 -131
  63. package/dist/cli/index.mjs +36 -36
  64. package/dist/cli/{legacy-noops-DVO5IRO7.js → legacy-noops-GS3DMVI5.js} +7 -7
  65. package/dist/cli/{legacy-noops-JSGP4FLB.mjs → legacy-noops-O6OLRAES.mjs} +4 -4
  66. package/dist/cli/{monitors-NDZM6GZ6.js → monitors-A4S5WBGO.js} +84 -84
  67. package/dist/cli/{monitors-C3RQ72HW.mjs → monitors-BPEMPIO4.mjs} +4 -4
  68. package/dist/cli/{org-KWH6A36G.mjs → org-OL3AIYSH.mjs} +4 -4
  69. package/dist/cli/{org-CK6RJGK5.js → org-VQCNY2WB.js} +66 -66
  70. package/dist/cli/{play-TODYTQ6X.mjs → play-7XS2VNKK.mjs} +11 -11
  71. package/dist/cli/{play-VHNU4ZRW.js → play-U6UJM67Q.js} +301 -301
  72. package/dist/cli/{providers-6XJSK4HT.js → providers-RLVGGWTW.js} +7 -7
  73. package/dist/cli/{providers-CIOW3U77.mjs → providers-S7Q4I65H.mjs} +4 -4
  74. package/dist/cli/{quickstart-PBACGVIU.mjs → quickstart-2XZPRIBJ.mjs} +3 -3
  75. package/dist/cli/{quickstart-RBZP2M5I.js → quickstart-BNSND2KM.js} +5 -5
  76. package/dist/cli/search-J6VQK6XY.js +30 -0
  77. package/dist/cli/{search-4UCRHYIY.mjs → search-UVIIPKWR.mjs} +5 -5
  78. package/dist/cli/{secrets-TCSWMJBW.mjs → secrets-DQUHORO5.mjs} +4 -4
  79. package/dist/cli/{secrets-6JVGCFV4.js → secrets-RKE6ZNTC.js} +13 -13
  80. package/dist/cli/{sessions-GDCONNJJ.js → sessions-4Y7G5432.js} +5 -5
  81. package/dist/cli/{sessions-SH6PGON6.mjs → sessions-W77NIN3J.mjs} +4 -4
  82. package/dist/cli/{settings-ZAKECLTD.js → settings-CTNYYHZP.js} +75 -75
  83. package/dist/cli/{settings-NSRYEMWL.mjs → settings-SL5QVPV3.mjs} +8 -8
  84. package/dist/cli/{setup-JQZ72TV2.js → setup-DP6PDQUN.js} +42 -42
  85. package/dist/cli/{setup-4HFA2PRF.mjs → setup-Y5UBJKVQ.mjs} +7 -7
  86. package/dist/cli/skills-G2Y3KXA3.js +29 -0
  87. package/dist/cli/{skills-FGGMKSLN.mjs → skills-LWLEGYDS.mjs} +5 -5
  88. package/dist/cli/tools-6SKR5PQ4.js +44 -0
  89. package/dist/cli/{tools-H7K7OD6P.mjs → tools-M2XZNF66.mjs} +12 -12
  90. package/dist/cli/update-AUB6RNSI.js +31 -0
  91. package/dist/cli/{update-SNZO56ST.mjs → update-EK2YNVKT.mjs} +7 -7
  92. package/dist/cli/{workflow-RGCX5NTR.js → workflow-BHDL5RHZ.js} +15 -15
  93. package/dist/cli/{workflow-PV3DQ2EH.mjs → workflow-YFZDZT4Z.mjs} +5 -5
  94. package/dist/{client-DIY1WpSW.d.mts → client-jgdWPXpp.d.mts} +1 -1
  95. package/dist/{client-CgmfMj_N.d.ts → client-uX4RCcOS.d.ts} +1 -1
  96. package/dist/{compiler-manifest-D0Gl9gLn.d.ts → compiler-manifest-CF2qngKr.d.mts} +7 -0
  97. package/dist/{compiler-manifest-D0Gl9gLn.d.mts → compiler-manifest-CF2qngKr.d.ts} +7 -0
  98. package/dist/{index-VyHDAshm.d.ts → index-Bq37k0sE.d.ts} +1 -1
  99. package/dist/{index-Bub1jys9.d.mts → index-DTI-iNw8.d.mts} +1 -1
  100. package/dist/index.d.mts +5 -5
  101. package/dist/index.d.ts +5 -5
  102. package/dist/index.js +6 -6
  103. package/dist/index.mjs +3 -3
  104. package/dist/install-integrity.json +86 -86
  105. package/dist/plays/bundle-play-file.d.mts +3 -3
  106. package/dist/plays/bundle-play-file.d.ts +3 -3
  107. package/dist/plays/bundle-play-file.mjs +1 -1
  108. package/dist/plays/play-description.d.mts +2 -2
  109. package/dist/plays/play-description.d.ts +2 -2
  110. package/dist/plays/run-request.d.mts +2 -2
  111. package/dist/plays/run-request.d.ts +2 -2
  112. package/dist/release.d.mts +1 -1
  113. package/dist/release.d.ts +1 -1
  114. package/dist/release.js +2 -2
  115. package/dist/release.mjs +1 -1
  116. package/package.json +1 -1
  117. package/dist/cli/auth-PPBH64C7.js +0 -40
  118. package/dist/cli/git-ODCVAT3E.js +0 -24
  119. package/dist/cli/search-LLXEBTKR.js +0 -30
  120. package/dist/cli/skills-KOJZ7MQM.js +0 -29
  121. package/dist/cli/tools-3EY3AN3M.js +0 -44
  122. package/dist/cli/update-SVXZAUIA.js +0 -31
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  isJsonOutputMode
3
- } from "./chunk-E4ED66S3.mjs";
3
+ } from "./chunk-7QLXY6RP.mjs";
4
4
  import {
5
5
  DEFAULT_SKILL_AGENTS,
6
6
  KNOWN_SKILL_AGENTS,
@@ -17,13 +17,13 @@ import {
17
17
  sdkCliStateDirPath,
18
18
  skillsAgentPathSegment,
19
19
  writeSdkSkillsLocalVersion
20
- } from "./chunk-IBF6ASRS.mjs";
20
+ } from "./chunk-JIY4IN6O.mjs";
21
21
  import {
22
22
  DeeplineError
23
23
  } from "./chunk-E4IXDAZI.mjs";
24
24
  import {
25
25
  SDK_RELEASE
26
- } from "./chunk-VZ7XCNT7.mjs";
26
+ } from "./chunk-QHDQIHME.mjs";
27
27
 
28
28
  // src/compat.ts
29
29
  import { randomUUID } from "crypto";
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
49
49
  // getters keep their established compatibility behavior.
50
50
  // 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
51
51
  // 0.3.90 is the first deliberately versioned SDK release for API v3.
52
- version: "0.3.436",
52
+ version: "0.3.437",
53
53
  updateSummary: {
54
54
  introducedIn: "0.3.90",
55
55
  summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
@@ -28,7 +28,7 @@ var _chunkKXMNM4AQjs = require('./chunk-KXMNM4AQ.js');
28
28
 
29
29
 
30
30
 
31
- var _chunkRABL6ORNjs = require('./chunk-RABL6ORN.js');
31
+ var _chunkQ5LCLAY5js = require('./chunk-Q5LCLAY5.js');
32
32
 
33
33
 
34
34
  var _chunkNPBJI7REjs = require('./chunk-NPBJI7RE.js');
@@ -647,7 +647,7 @@ var ToolCalls = class {
647
647
  idempotencyKey,
648
648
  onResponse: (response2) => {
649
649
  lastResponse = null;
650
- atomicToolsSupported = response2.headers.get(_chunkRABL6ORNjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
650
+ atomicToolsSupported = response2.headers.get(_chunkQ5LCLAY5js.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
651
651
  recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
652
652
  if (_optionalChain([options, 'optionalAccess', _29 => _29.onServerTiming])) {
653
653
  try {
@@ -997,8 +997,8 @@ function runtimeSelectionHeaders(runtime, env) {
997
997
  }
998
998
  const receivers = _optionalChain([env, 'access', _51 => _51.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _52 => _52.trim, 'call', _53 => _53()]);
999
999
  return {
1000
- [_chunkRABL6ORNjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1001
- ...receivers ? { [_chunkRABL6ORNjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1000
+ [_chunkQ5LCLAY5js.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1001
+ ...receivers ? { [_chunkQ5LCLAY5js.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1002
1002
  };
1003
1003
  }
1004
1004
  function normalizeTestPolicyOverrides(value, source) {
@@ -1069,7 +1069,7 @@ var PlayClient = class {
1069
1069
  return _chunk2H4EY7KHjs.startPlayRun.call(void 0,
1070
1070
  this.http,
1071
1071
  resolved.request,
1072
- _optionalChain([options, 'optionalAccess', _61 => _61.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkRABL6ORNjs.SDK_API_MAJOR) } : headers,
1072
+ _optionalChain([options, 'optionalAccess', _61 => _61.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkQ5LCLAY5js.SDK_API_MAJOR) } : headers,
1073
1073
  options
1074
1074
  );
1075
1075
  }
@@ -1135,9 +1135,9 @@ var PlayClient = class {
1135
1135
  }
1136
1136
  };
1137
1137
  function createPlayClient(options) {
1138
- const config = _chunkRABL6ORNjs.resolveConfig.call(void 0, options);
1138
+ const config = _chunkQ5LCLAY5js.resolveConfig.call(void 0, options);
1139
1139
  return new PlayClient(
1140
- new (0, _chunkRABL6ORNjs.HttpClient)(config),
1140
+ new (0, _chunkQ5LCLAY5js.HttpClient)(config),
1141
1141
  _nullishCoalesce(config.environment, () => ( process.env))
1142
1142
  );
1143
1143
  }
@@ -3151,7 +3151,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
3151
3151
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
3152
3152
  );
3153
3153
  }
3154
- return { [_chunkRABL6ORNjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3154
+ return { [_chunkQ5LCLAY5js.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3155
3155
  }
3156
3156
  function sleep(ms) {
3157
3157
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -3389,9 +3389,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
3389
3389
  * @throws {@link ConfigError} if no API key can be resolved from any source.
3390
3390
  */
3391
3391
  constructor(options) {
3392
- this.config = _chunkRABL6ORNjs.resolveConfig.call(void 0, options);
3392
+ this.config = _chunkQ5LCLAY5js.resolveConfig.call(void 0, options);
3393
3393
  this.environment = _nullishCoalesce(this.config.environment, () => ( process.env));
3394
- this.http = new (0, _chunkRABL6ORNjs.HttpClient)(this.config);
3394
+ this.http = new (0, _chunkQ5LCLAY5js.HttpClient)(this.config);
3395
3395
  this.playClient = new PlayClient(this.http, this.environment);
3396
3396
  this.toolCalls = new ToolCalls(
3397
3397
  this.http,
@@ -11,10 +11,10 @@
11
11
 
12
12
 
13
13
 
14
- var _chunk2NLGISW4js = require('./chunk-2NLGISW4.js');
14
+ var _chunkBR63JXVCjs = require('./chunk-BR63JXVC.js');
15
15
 
16
16
 
17
- var _chunkBV4LGD5Sjs = require('./chunk-BV4LGD5S.js');
17
+ var _chunkJU67SR7Mjs = require('./chunk-JU67SR7M.js');
18
18
 
19
19
 
20
20
 
@@ -22,7 +22,7 @@ var _chunkBV4LGD5Sjs = require('./chunk-BV4LGD5S.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkRABL6ORNjs = require('./chunk-RABL6ORN.js');
25
+ var _chunkQ5LCLAY5js = require('./chunk-Q5LCLAY5.js');
26
26
 
27
27
  // src/cli/commands/skills.ts
28
28
  var _child_process = require('child_process');
@@ -75,7 +75,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
75
75
  return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
76
76
  }
77
77
  function resolveLocalRoot() {
78
- const target = _chunkRABL6ORNjs.resolveProjectPinTarget.call(void 0, );
78
+ const target = _chunkQ5LCLAY5js.resolveProjectPinTarget.call(void 0, );
79
79
  if (!target.ok) {
80
80
  throw new Error(
81
81
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -86,7 +86,7 @@ function resolveLocalRoot() {
86
86
  return target.dir;
87
87
  }
88
88
  function detectSkillsAgents(input) {
89
- const runtime = _nullishCoalesce(input.runtime, () => ( _chunkRABL6ORNjs.detectAgentRuntime.call(void 0, )));
89
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunkQ5LCLAY5js.detectAgentRuntime.call(void 0, )));
90
90
  const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
91
91
  if (knownAgent) return [knownAgent];
92
92
  const roots = [
@@ -101,11 +101,11 @@ function detectSkillsAgents(input) {
101
101
  return detected.length > 0 ? detected : ["*"];
102
102
  }
103
103
  function skillsStatePathForScope(baseUrl, scope, root) {
104
- return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkRABL6ORNjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
104
+ return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkQ5LCLAY5js.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
105
105
  }
106
106
  function buildSkillsPlan(input) {
107
107
  const scopeArgs = input.scope === "global" ? ["--global"] : [];
108
- const legacyNames = [..._chunk2NLGISW4js.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
108
+ const legacyNames = [..._chunkBR63JXVCjs.LEGACY_SKILL_NAMES_TO_REMOVE].sort(
109
109
  (a, b) => a.localeCompare(b)
110
110
  );
111
111
  return {
@@ -119,7 +119,7 @@ function buildSkillsPlan(input) {
119
119
  args: [
120
120
  "exec",
121
121
  "--yes",
122
- `--package=${_chunk2NLGISW4js.SKILLS_NPX_PACKAGE}`,
122
+ `--package=${_chunkBR63JXVCjs.SKILLS_NPX_PACKAGE}`,
123
123
  "--",
124
124
  "skills",
125
125
  "remove",
@@ -135,11 +135,11 @@ function buildSkillsPlan(input) {
135
135
  args: [
136
136
  "exec",
137
137
  "--yes",
138
- `--package=${_chunk2NLGISW4js.SKILLS_NPX_PACKAGE}`,
138
+ `--package=${_chunkBR63JXVCjs.SKILLS_NPX_PACKAGE}`,
139
139
  "--",
140
140
  "skills",
141
141
  "add",
142
- _chunk2NLGISW4js.skillsSourceUrl.call(void 0, input.baseUrl),
142
+ _chunkBR63JXVCjs.skillsSourceUrl.call(void 0, input.baseUrl),
143
143
  "--agent",
144
144
  ...input.agents,
145
145
  ...scopeArgs,
@@ -176,7 +176,7 @@ function readSkillsInstallState(path) {
176
176
  }
177
177
  function runProcess(command, args, cwd) {
178
178
  return new Promise((resolve, reject) => {
179
- const plan = _chunk2NLGISW4js.resolveShellSpawn.call(void 0,
179
+ const plan = _chunkBR63JXVCjs.resolveShellSpawn.call(void 0,
180
180
  command,
181
181
  args,
182
182
  process.platform,
@@ -198,7 +198,7 @@ function runProcess(command, args, cwd) {
198
198
  child.kill("SIGTERM");
199
199
  reject(
200
200
  new Error(
201
- `${_chunk2NLGISW4js.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
201
+ `${_chunkBR63JXVCjs.SKILLS_NPX_PACKAGE} timed out after ${SKILLS_PROCESS_TIMEOUT_MS}ms.`
202
202
  )
203
203
  );
204
204
  }, SKILLS_PROCESS_TIMEOUT_MS);
@@ -209,7 +209,7 @@ function runProcess(command, args, cwd) {
209
209
  child.once("close", (code) => {
210
210
  clearTimeout(timeout);
211
211
  if (code && stderr.trim()) {
212
- process.stderr.write(`${_chunk2NLGISW4js.SKILLS_NPX_PACKAGE} exited ${code}.
212
+ process.stderr.write(`${_chunkBR63JXVCjs.SKILLS_NPX_PACKAGE} exited ${code}.
213
213
  `);
214
214
  }
215
215
  resolve(_nullishCoalesce(code, () => ( 1)));
@@ -223,7 +223,7 @@ async function runSkillsCommand(options, dependencies = {}) {
223
223
  scope = normalizeScope(options.scope);
224
224
  root = scope === "local" ? resolveLocalRoot() : null;
225
225
  } catch (error) {
226
- _chunkBV4LGD5Sjs.printCommandEnvelope.call(void 0,
226
+ _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0,
227
227
  {
228
228
  ok: false,
229
229
  status: "failed",
@@ -235,22 +235,22 @@ async function runSkillsCommand(options, dependencies = {}) {
235
235
  );
236
236
  return 2;
237
237
  }
238
- const baseUrl = _chunkRABL6ORNjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
238
+ const baseUrl = _chunkQ5LCLAY5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
239
239
  const catalog = {
240
- skillNames: [..._chunk2NLGISW4js.DEFAULT_SDK_SKILL_NAMES],
241
- version: _chunkRABL6ORNjs.SDK_VERSION
240
+ skillNames: [..._chunkBR63JXVCjs.DEFAULT_SDK_SKILL_NAMES],
241
+ version: _chunkQ5LCLAY5js.SDK_VERSION
242
242
  };
243
243
  const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
244
244
  const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
245
245
  if (options.dryRun) {
246
- _chunkBV4LGD5Sjs.printCommandEnvelope.call(void 0,
246
+ _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0,
247
247
  { ok: true, status: "planned", dryRun: true, ...plan },
248
248
  { json: options.json }
249
249
  );
250
250
  return 0;
251
251
  }
252
- if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunk2NLGISW4js.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
253
- _chunkBV4LGD5Sjs.printCommandEnvelope.call(void 0,
252
+ if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !_chunkBR63JXVCjs.hasFailedAutomaticSkillsSync.call(void 0, baseUrl, agents)) {
253
+ _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0,
254
254
  {
255
255
  ok: true,
256
256
  status: "current",
@@ -282,10 +282,10 @@ async function runSkillsCommand(options, dependencies = {}) {
282
282
  }
283
283
  if (scope === "local" && root) {
284
284
  const managedNames = [
285
- .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunk2NLGISW4js.LEGACY_SKILL_NAMES_TO_REMOVE])
285
+ .../* @__PURE__ */ new Set([...plan.skillNames, ..._chunkBR63JXVCjs.LEGACY_SKILL_NAMES_TO_REMOVE])
286
286
  ];
287
287
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
288
- _chunkRABL6ORNjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
288
+ _chunkQ5LCLAY5js.ensureProjectPrivatePathsIgnored.call(void 0, root, [
289
289
  ".deepline/",
290
290
  ...agentRoots.flatMap(
291
291
  (agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
@@ -294,7 +294,7 @@ async function runSkillsCommand(options, dependencies = {}) {
294
294
  }
295
295
  let lease;
296
296
  try {
297
- lease = scope === "global" ? await _chunk2NLGISW4js.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
297
+ lease = scope === "global" ? await _chunkBR63JXVCjs.acquireSkillsInstallLease.call(void 0, baseUrl, agents, plan.version, {
298
298
  waitMs: _nullishCoalesce(dependencies.installLeaseWaitMs, () => ( SKILLS_INSTALL_LEASE_WAIT_MS)),
299
299
  onWait: () => process.stderr.write(
300
300
  "Waiting for a background Deepline skills refresh to finish...\n"
@@ -302,8 +302,8 @@ async function runSkillsCommand(options, dependencies = {}) {
302
302
  }) : { release: () => {
303
303
  } };
304
304
  } catch (error) {
305
- if (!(error instanceof _chunk2NLGISW4js.SkillsStateUnavailableError)) throw error;
306
- _chunkBV4LGD5Sjs.printCommandEnvelope.call(void 0,
305
+ if (!(error instanceof _chunkBR63JXVCjs.SkillsStateUnavailableError)) throw error;
306
+ _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0,
307
307
  {
308
308
  ok: false,
309
309
  status: "failed",
@@ -319,7 +319,7 @@ async function runSkillsCommand(options, dependencies = {}) {
319
319
  return 5;
320
320
  }
321
321
  if (!lease) {
322
- _chunkBV4LGD5Sjs.printCommandEnvelope.call(void 0,
322
+ _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0,
323
323
  {
324
324
  ok: false,
325
325
  status: "failed",
@@ -328,7 +328,7 @@ async function runSkillsCommand(options, dependencies = {}) {
328
328
  scope,
329
329
  agents,
330
330
  message: "A background Deepline skills refresh is still running for these agents.",
331
- next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunk2NLGISW4js.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
331
+ next: `Retry in a moment: deepline skills --scope ${scope}. If no refresh is running, remove ${_chunkBR63JXVCjs.skillsInstallLeasePath.call(void 0, baseUrl, agents)}`
332
332
  },
333
333
  { json: options.json }
334
334
  );
@@ -365,7 +365,7 @@ async function runSkillsInstallWithLease(input) {
365
365
  throw new Error("Could not install the current Deepline skills.");
366
366
  }
367
367
  } catch (error) {
368
- _chunkBV4LGD5Sjs.printCommandEnvelope.call(void 0,
368
+ _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0,
369
369
  {
370
370
  ok: false,
371
371
  status: "failed",
@@ -404,7 +404,7 @@ async function runSkillsInstallWithLease(input) {
404
404
  {
405
405
  schemaVersion: 1,
406
406
  installedAt: (/* @__PURE__ */ new Date()).toISOString(),
407
- cliVersion: _chunkRABL6ORNjs.SDK_VERSION,
407
+ cliVersion: _chunkQ5LCLAY5js.SDK_VERSION,
408
408
  scope,
409
409
  agents,
410
410
  skillsVersion: plan.version,
@@ -417,9 +417,9 @@ async function runSkillsInstallWithLease(input) {
417
417
  "utf8"
418
418
  );
419
419
  if (scope === "global") {
420
- _chunk2NLGISW4js.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
420
+ _chunkBR63JXVCjs.clearFailedAutomaticSkillsSync.call(void 0, baseUrl, agents);
421
421
  }
422
- _chunkBV4LGD5Sjs.printCommandEnvelope.call(void 0,
422
+ _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0,
423
423
  {
424
424
  ok: true,
425
425
  status: "complete",
@@ -450,7 +450,7 @@ function registerSkillsCommand(program) {
450
450
  "after",
451
451
  `
452
452
  Notes:
453
- This command reinstalls current Deepline-managed skills using ${_chunk2NLGISW4js.SKILLS_NPX_PACKAGE},
453
+ This command reinstalls current Deepline-managed skills using ${_chunkBR63JXVCjs.SKILLS_NPX_PACKAGE},
454
454
  then removes legacy Deepline skill names. Local scope writes into the resolved
455
455
  persistent project.
456
456
 
@@ -462,13 +462,13 @@ Examples:
462
462
  ).action(async (options) => {
463
463
  process.exitCode = await runSkillsCommand(options);
464
464
  });
465
- program.command(_chunk2NLGISW4js.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
465
+ program.command(_chunkBR63JXVCjs.SKILLS_AUTO_SYNC_COMMAND, { hidden: true }).description("Refresh Deepline agent skills in the background.").option(
466
466
  "--claim <token>",
467
467
  "Owner token of the leases this child was started for."
468
468
  ).action(async (options) => {
469
469
  const claim = _optionalChain([options, 'access', _ => _.claim, 'optionalAccess', _2 => _2.trim, 'call', _3 => _3()]);
470
470
  if (!claim) {
471
- _chunkBV4LGD5Sjs.printCommandEnvelope.call(void 0,
471
+ _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0,
472
472
  {
473
473
  ok: false,
474
474
  status: "failed",
@@ -481,7 +481,7 @@ Examples:
481
481
  process.exitCode = 2;
482
482
  return;
483
483
  }
484
- await _chunk2NLGISW4js.syncSdkSkillsIfNeeded.call(void 0, _chunkRABL6ORNjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
484
+ await _chunkBR63JXVCjs.syncSdkSkillsIfNeeded.call(void 0, _chunkQ5LCLAY5js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
485
485
  mode: "inline",
486
486
  notices: "defer",
487
487
  claim
@@ -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(); } } 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
3
 
4
- var _chunkBV4LGD5Sjs = require('./chunk-BV4LGD5S.js');
4
+ var _chunkJU67SR7Mjs = require('./chunk-JU67SR7M.js');
5
5
 
6
6
 
7
- var _chunkRABL6ORNjs = require('./chunk-RABL6ORN.js');
7
+ var _chunkQ5LCLAY5js = require('./chunk-Q5LCLAY5.js');
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
 
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
139
139
  const newestFirst = listSessionFiles(agent).sort(
140
140
  (a, b) => b.mtimeMs - a.mtimeMs
141
141
  );
142
- const sessionId = _chunkRABL6ORNjs.agentSessionIdFromEnvironment.call(void 0,
142
+ const sessionId = _chunkQ5LCLAY5js.agentSessionIdFromEnvironment.call(void 0,
143
143
  process.env,
144
144
  agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
145
145
  );
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
451
451
  return { encodedContent: encoded, needsChunking: true };
452
452
  }
453
453
  async function uploadPayload(path, payload) {
454
- const { http } = _chunkBV4LGD5Sjs.getAuthedHttpClient.call(void 0, );
454
+ const { http } = _chunkJU67SR7Mjs.getAuthedHttpClient.call(void 0, );
455
455
  return await http.post(path, payload);
456
456
  }
457
457
  async function uploadChunkedSessions(sessions, options) {
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
484
484
  ...options.rating ? { rating: options.rating } : {}
485
485
  });
486
486
  const sessionIds = sessions.map((session) => session.sessionId);
487
- _chunkBV4LGD5Sjs.printCommandEnvelope.call(void 0,
487
+ _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0,
488
488
  {
489
489
  ...response,
490
490
  ok: true,
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
516
516
  filename: _path.basename.call(void 0, filePath),
517
517
  ...rating ? { rating } : {}
518
518
  });
519
- _chunkBV4LGD5Sjs.printCommandEnvelope.call(void 0,
519
+ _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0,
520
520
  {
521
521
  ...response2,
522
522
  ok: true,
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
566
566
  ...rating ? { rating } : {}
567
567
  });
568
568
  const sessionIds = built.map((session) => session.sessionId);
569
- _chunkBV4LGD5Sjs.printCommandEnvelope.call(void 0,
569
+ _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0,
570
570
  {
571
571
  ...response,
572
572
  ok: true,
@@ -674,7 +674,7 @@ ${refreshMeta}
674
674
  </body>
675
675
  </html>`;
676
676
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
677
- _chunkBV4LGD5Sjs.printCommandEnvelope.call(void 0,
677
+ _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0,
678
678
  {
679
679
  ok: true,
680
680
  file: outputPath,
@@ -4,18 +4,18 @@
4
4
 
5
5
 
6
6
 
7
- var _chunk4ESXEDQQjs = require('./chunk-4ESXEDQQ.js');
7
+ var _chunkIPJ3DZ7Ijs = require('./chunk-IPJ3DZ7I.js');
8
8
 
9
9
 
10
- var _chunk2NLGISW4js = require('./chunk-2NLGISW4.js');
10
+ var _chunkBR63JXVCjs = require('./chunk-BR63JXVC.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkBV4LGD5Sjs = require('./chunk-BV4LGD5S.js');
14
+ var _chunkJU67SR7Mjs = require('./chunk-JU67SR7M.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkRABL6ORNjs = require('./chunk-RABL6ORN.js');
18
+ var _chunkQ5LCLAY5js = require('./chunk-Q5LCLAY5.js');
19
19
 
20
20
  // src/cli/compatibility-catalog.ts
21
21
  var readers = /* @__PURE__ */ new WeakMap();
@@ -42,7 +42,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
42
42
  async function reportAutoUpdateEvent(input) {
43
43
  let apiKey = "";
44
44
  try {
45
- apiKey = _chunkRABL6ORNjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
45
+ apiKey = _chunkQ5LCLAY5js.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
46
46
  } catch (e2) {
47
47
  return;
48
48
  }
@@ -58,15 +58,15 @@ async function reportAutoUpdateEvent(input) {
58
58
  headers: {
59
59
  Authorization: `Bearer ${apiKey}`,
60
60
  "Content-Type": "application/json",
61
- "User-Agent": `deepline-ts-sdk/${_chunkRABL6ORNjs.SDK_VERSION}`,
61
+ "User-Agent": `deepline-ts-sdk/${_chunkQ5LCLAY5js.SDK_VERSION}`,
62
62
  "X-Deepline-Client-Family": "sdk",
63
63
  "X-Deepline-CLI-Family": "sdk",
64
- "X-Deepline-CLI-Version": _chunkRABL6ORNjs.SDK_VERSION,
65
- "X-Deepline-SDK-Version": _chunkRABL6ORNjs.SDK_VERSION
64
+ "X-Deepline-CLI-Version": _chunkQ5LCLAY5js.SDK_VERSION,
65
+ "X-Deepline-SDK-Version": _chunkQ5LCLAY5js.SDK_VERSION
66
66
  },
67
67
  body: JSON.stringify({
68
68
  event: input.event,
69
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkRABL6ORNjs.SDK_VERSION,
69
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkQ5LCLAY5js.SDK_VERSION,
70
70
  target_version: input.response.latest,
71
71
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
72
72
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -85,13 +85,13 @@ function envTruthy(name) {
85
85
  return value === "1" || value === "true" || value === "yes";
86
86
  }
87
87
  function shouldSkipSelfUpdate(policy) {
88
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunk4ESXEDQQjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunk2NLGISW4js.isCiEnvironment.call(void 0, );
88
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkIPJ3DZ7Ijs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkBR63JXVCjs.isCiEnvironment.call(void 0, );
89
89
  }
90
90
  function isDowngradeAutoUpdateResponse(response) {
91
91
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
92
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkRABL6ORNjs.SDK_VERSION;
92
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkQ5LCLAY5js.SDK_VERSION;
93
93
  if (!target) return false;
94
- return _chunk4ESXEDQQjs.compareUpdateVersions.call(void 0, target, current) < 0;
94
+ return _chunkIPJ3DZ7Ijs.compareUpdateVersions.call(void 0, target, current) < 0;
95
95
  }
96
96
  function relaunchCurrentCommand(plan, runtime = {}) {
97
97
  return new Promise((resolve) => {
@@ -144,7 +144,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
144
144
  }
145
145
  if (isDowngradeAutoUpdateResponse(response)) {
146
146
  const target = response.latest;
147
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkRABL6ORNjs.SDK_VERSION;
147
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkQ5LCLAY5js.SDK_VERSION;
148
148
  process.stderr.write(
149
149
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
150
150
  `
@@ -152,21 +152,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
152
152
  return false;
153
153
  }
154
154
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
155
- const plan = _chunk4ESXEDQQjs.resolveUpdatePlan.call(void 0, {
155
+ const plan = _chunkIPJ3DZ7Ijs.resolveUpdatePlan.call(void 0, {
156
156
  packageSpec,
157
157
  requireVerifiedNpmOwnership: true,
158
158
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
159
159
  });
160
- if (!_chunk4ESXEDQQjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
160
+ if (!_chunkIPJ3DZ7Ijs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
161
161
  return false;
162
162
  }
163
163
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
164
164
  deferredAutoUpdate = async () => {
165
165
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
166
166
  };
167
- if (_chunkBV4LGD5Sjs.isJsonOutputMode.call(void 0, )) {
167
+ if (_chunkJU67SR7Mjs.isJsonOutputMode.call(void 0, )) {
168
168
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
169
- _chunkBV4LGD5Sjs.addJsonNotice.call(void 0, {
169
+ _chunkJU67SR7Mjs.addJsonNotice.call(void 0, {
170
170
  code: "sdk_update_queued",
171
171
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
172
172
  });
@@ -179,7 +179,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
179
179
  return true;
180
180
  }
181
181
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
182
- if (!_chunk4ESXEDQQjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
182
+ if (!_chunkIPJ3DZ7Ijs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
183
183
  const autoUpdate = response.auto_update;
184
184
  const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
185
185
  process.stderr.write(
@@ -192,7 +192,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
192
192
  event: "started",
193
193
  installKind: plan.kind
194
194
  });
195
- const updateResult = await _chunk4ESXEDQQjs.runAutomaticUpdatePlan.call(void 0, plan);
195
+ const updateResult = await _chunkIPJ3DZ7Ijs.runAutomaticUpdatePlan.call(void 0, plan);
196
196
  if (updateResult.status === "skipped_previous_failure") {
197
197
  void reportAutoUpdateEvent({
198
198
  baseUrl,
@@ -243,7 +243,7 @@ var _crypto = require('crypto');
243
243
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
244
244
  var activeToolExecuteCommand = null;
245
245
  function progressLine(line) {
246
- if (!_chunkBV4LGD5Sjs.isJsonOutputMode.call(void 0, )) console.error(line);
246
+ if (!_chunkJU67SR7Mjs.isJsonOutputMode.call(void 0, )) console.error(line);
247
247
  }
248
248
  function beginToolExecuteCommand() {
249
249
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -4,12 +4,12 @@ import {
4
4
  printCommandEnvelope,
5
5
  printJson,
6
6
  readCsvRows
7
- } from "./chunk-E4ED66S3.mjs";
8
- import "./chunk-IBF6ASRS.mjs";
7
+ } from "./chunk-7QLXY6RP.mjs";
8
+ import "./chunk-JIY4IN6O.mjs";
9
9
  import "./chunk-MAMVGOSC.mjs";
10
10
  import "./chunk-DLIRSHV6.mjs";
11
11
  import "./chunk-E4IXDAZI.mjs";
12
- import "./chunk-VZ7XCNT7.mjs";
12
+ import "./chunk-QHDQIHME.mjs";
13
13
  import "./chunk-WZYKRD7T.mjs";
14
14
  import "./chunk-KRD6H754.mjs";
15
15
 
@@ -4,12 +4,12 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkBV4LGD5Sjs = require('./chunk-BV4LGD5S.js');
8
- require('./chunk-RABL6ORN.js');
7
+ var _chunkJU67SR7Mjs = require('./chunk-JU67SR7M.js');
8
+ require('./chunk-Q5LCLAY5.js');
9
9
  require('./chunk-NPBJI7RE.js');
10
10
  require('./chunk-XNYIZMNQ.js');
11
11
  require('./chunk-PPDBRJRW.js');
12
- require('./chunk-5QWTEQPP.js');
12
+ require('./chunk-WXJAODJD.js');
13
13
  require('./chunk-OG64RBAC.js');
14
14
  require('./chunk-COGTRVWW.js');
15
15
 
@@ -127,7 +127,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
127
127
  column.length,
128
128
  ...rows.map((row) => {
129
129
  const value = _nullishCoalesce(row[column], () => ( ""));
130
- return (verbose ? value : _chunkBV4LGD5Sjs.clip.call(void 0, value, 42)).length;
130
+ return (verbose ? value : _chunkJU67SR7Mjs.clip.call(void 0, value, 42)).length;
131
131
  })
132
132
  )
133
133
  ])
@@ -137,7 +137,7 @@ function renderTable(rows, totalRows, verbose, footer = `showing ${rows.length}
137
137
  const body = rows.map(
138
138
  (row) => columns.map((column) => {
139
139
  const raw = _nullishCoalesce(row[column], () => ( ""));
140
- const display = verbose ? raw : _chunkBV4LGD5Sjs.clip.call(void 0, raw, 42);
140
+ const display = verbose ? raw : _chunkJU67SR7Mjs.clip.call(void 0, raw, 42);
141
141
  return display.padEnd(widths[column]);
142
142
  }).join(" | ")
143
143
  );
@@ -157,7 +157,7 @@ async function handleCsvShow(path, options, command) {
157
157
  { exitCode: 2 }
158
158
  );
159
159
  }
160
- const allRows = _chunkBV4LGD5Sjs.readCsvRows.call(void 0, csvPath);
160
+ const allRows = _chunkJU67SR7Mjs.readCsvRows.call(void 0, csvPath);
161
161
  const [rowStart, rowEnd] = parseRowRange(options.rows);
162
162
  const rows = options.summary && options.rows === void 0 ? allRows : selectRows(allRows, rowStart, rowEnd);
163
163
  const { rows: selected, columns } = selectColumns(
@@ -170,7 +170,7 @@ async function handleCsvShow(path, options, command) {
170
170
  if (options.summary) {
171
171
  const summaries = summarizeColumns(selected, columns);
172
172
  if (format === "json") {
173
- _chunkBV4LGD5Sjs.printJson.call(void 0, {
173
+ _chunkJU67SR7Mjs.printJson.call(void 0, {
174
174
  rows: summaries,
175
175
  total_rows: selected.length,
176
176
  source_total_rows: allRows.length
@@ -179,7 +179,7 @@ async function handleCsvShow(path, options, command) {
179
179
  }
180
180
  const displayRows = summaryDisplayRows(summaries);
181
181
  if (format === "csv") {
182
- process.stdout.write(_chunkBV4LGD5Sjs.csvStringFromRows.call(void 0, displayRows));
182
+ process.stdout.write(_chunkJU67SR7Mjs.csvStringFromRows.call(void 0, displayRows));
183
183
  return;
184
184
  }
185
185
  process.stdout.write(
@@ -194,7 +194,7 @@ async function handleCsvShow(path, options, command) {
194
194
  return;
195
195
  }
196
196
  if (format === "json") {
197
- _chunkBV4LGD5Sjs.printJson.call(void 0, {
197
+ _chunkJU67SR7Mjs.printJson.call(void 0, {
198
198
  rows: selected.map((row, index) => ({ __row: rowStart + index, ...row }))
199
199
  });
200
200
  return;
@@ -437,7 +437,7 @@ async function handleCsvRenderStart(options) {
437
437
  if (log) {
438
438
  detail = `
439
439
  CSV render log:
440
- ${_chunkBV4LGD5Sjs.clip.call(void 0, log, 2e3)}`;
440
+ ${_chunkJU67SR7Mjs.clip.call(void 0, log, 2e3)}`;
441
441
  }
442
442
  } catch (e7) {
443
443
  }
@@ -488,7 +488,7 @@ async function handleCsvRenderStatus(options) {
488
488
  if (payload.pid) lines.push(`Render PID: ${payload.pid}`);
489
489
  if (payload.url) lines.push(`Render URL: ${payload.url}`);
490
490
  lines.push(`Render Health: ${payload.health_status}`);
491
- _chunkBV4LGD5Sjs.printCommandEnvelope.call(void 0, payload, {
491
+ _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0, payload, {
492
492
  json: options.json,
493
493
  text: `${lines.join("\n")}
494
494
  `
@@ -524,7 +524,7 @@ async function handleCsvRenderStop(options) {
524
524
  };
525
525
  const text = stopped.length > 0 ? `Stopped CSV render process(es): ${stopped.join(" ")}
526
526
  ` : "No running CSV render process found.\n";
527
- _chunkBV4LGD5Sjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
527
+ _chunkJU67SR7Mjs.printCommandEnvelope.call(void 0, payload, { json: options.json, text });
528
528
  }
529
529
  async function handleCsvRender(action, options) {
530
530
  const normalized = _nullishCoalesce(action, () => ( "start"));