deepline 0.3.396 → 0.3.398

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 (118) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +2 -2
  3. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +50 -26
  4. package/dist/cli/auth-3GA2ASQF.js +40 -0
  5. package/dist/cli/{auth-3LTD62VL.mjs → auth-7ZBPAAZU.mjs} +5 -4
  6. package/dist/cli/{billing-DP7ZAJBO.mjs → billing-QTWEEL27.mjs} +5 -4
  7. package/dist/cli/{billing-PA5OXEM5.js → billing-WHP3YMNQ.js} +76 -75
  8. package/dist/cli/{chunk-I4T4XAA2.mjs → chunk-2QC2T7E3.mjs} +4 -4
  9. package/dist/cli/{chunk-3T4MCB5R.mjs → chunk-52HHMLRM.mjs} +89 -969
  10. package/dist/cli/{chunk-ME6XRFLY.js → chunk-6CBU7W56.js} +15 -15
  11. package/dist/cli/{chunk-LOGGNW4H.mjs → chunk-6DVXLWPB.mjs} +2 -2
  12. package/dist/cli/{chunk-AUYXWELC.mjs → chunk-6HXULNTW.mjs} +2 -2
  13. package/dist/cli/chunk-7DRPTGCK.js +930 -0
  14. package/dist/cli/{chunk-TLQ3FZOC.mjs → chunk-ATDUVJCW.mjs} +3 -3
  15. package/dist/cli/{chunk-23GAA3YO.mjs → chunk-AWQNG55D.mjs} +1 -1
  16. package/dist/cli/{chunk-NSOTASOP.js → chunk-BQR6UN3C.js} +1 -83
  17. package/dist/cli/{chunk-XKZXO7D3.mjs → chunk-CH6EFAJ3.mjs} +1 -1
  18. package/dist/cli/{chunk-KAEZNPUM.js → chunk-CTZJLQ7A.js} +13 -115
  19. package/dist/cli/{chunk-AVHLATII.js → chunk-FDAMQFQ7.js} +50 -50
  20. package/dist/cli/chunk-FIVKWNMT.mjs +210 -0
  21. package/dist/cli/{chunk-7Z66NHUC.js → chunk-G6BP55EP.js} +26 -26
  22. package/dist/cli/{chunk-GNN4MY5X.js → chunk-HFDBZXMV.js} +1 -1
  23. package/dist/cli/{describe-6O2ENKTP.mjs → chunk-HFYQBC2D.mjs} +22 -160
  24. package/dist/cli/chunk-HGFFYVXN.js +210 -0
  25. package/dist/cli/{chunk-5WNJF2T3.mjs → chunk-IHG7UAHD.mjs} +1 -83
  26. package/dist/cli/{chunk-QHGPA362.mjs → chunk-IJU5YQSF.mjs} +6 -108
  27. package/dist/cli/{chunk-772W2SAU.js → chunk-J4WYPANC.js} +8 -8
  28. package/dist/cli/{chunk-V7UP2F4U.js → chunk-JU3PF7WM.js} +21 -121
  29. package/dist/cli/{chunk-MR6XCBQJ.mjs → chunk-LCRQKI7D.mjs} +4 -2
  30. package/dist/cli/chunk-LJ5747UC.mjs +107 -0
  31. package/dist/cli/{chunk-LWERJUKN.js → chunk-NA4T3B62.js} +7 -215
  32. package/dist/cli/{chunk-WQJJNIMQ.js → chunk-NUBIAJI2.js} +11 -9
  33. package/dist/cli/chunk-OSDXE27V.mjs +88 -0
  34. package/dist/cli/{chunk-RMTASUAK.js → chunk-OU2RZYVS.js} +65 -65
  35. package/dist/cli/{chunk-JCN4DHF7.mjs → chunk-OVUFHUMG.mjs} +2 -2
  36. package/dist/cli/chunk-Q2E4E4FJ.js +112 -0
  37. package/dist/cli/{chunk-2VOLOWYZ.js → chunk-Q3FNSWJG.js} +293 -1173
  38. package/dist/cli/{chunk-NHB5YUCS.mjs → chunk-QP2TRM7M.mjs} +1 -1
  39. package/dist/cli/{describe-EFWNECHI.js → chunk-RFG3MRAC.js} +37 -175
  40. package/dist/cli/{chunk-RTO5QZWT.js → chunk-S22ZQZMU.js} +6 -6
  41. package/dist/cli/{chunk-H5KLUGY7.mjs → chunk-TXZVVBQZ.mjs} +1 -209
  42. package/dist/cli/{chunk-DC6LTULT.js → chunk-U46S43LV.js} +2 -2
  43. package/dist/cli/chunk-YHPYUZZX.mjs +112 -0
  44. package/dist/cli/chunk-YHZUZO3U.mjs +930 -0
  45. package/dist/cli/chunk-ZAAKSJAS.js +88 -0
  46. package/dist/cli/{chunk-VE3U3SQC.mjs → chunk-ZJ7HLJRF.mjs} +7 -107
  47. package/dist/cli/chunk-ZM2YPJQJ.js +107 -0
  48. package/dist/cli/{csv-TF576S77.js → csv-NM25BBX7.js} +13 -12
  49. package/dist/cli/{csv-RLRR74RQ.mjs → csv-TSBHKVNU.mjs} +4 -3
  50. package/dist/cli/{db-FDBJUTFO.js → db-GBDNQJF3.js} +30 -29
  51. package/dist/cli/{db-XORGNBIC.mjs → db-JQN6SYLK.mjs} +5 -4
  52. package/dist/cli/describe-ETTGW5LT.mjs +164 -0
  53. package/dist/cli/describe-NVLINP5A.js +164 -0
  54. package/dist/cli/describe-core.d.mts +100 -0
  55. package/dist/cli/describe-core.d.ts +100 -0
  56. package/dist/cli/describe-core.js +18 -0
  57. package/dist/cli/describe-core.mjs +18 -0
  58. package/dist/cli/{executions-YPP7WR77.mjs → executions-6S4KIVEY.mjs} +5 -4
  59. package/dist/cli/{executions-SFYAXPF4.js → executions-IH5JUPIT.js} +7 -6
  60. package/dist/cli/{feedback-5UZFYMGB.js → feedback-ER375ZCB.js} +8 -7
  61. package/dist/cli/{feedback-RBGA5ARU.mjs → feedback-PGOZLNXU.mjs} +4 -3
  62. package/dist/cli/{git-IRSAJEK2.mjs → git-7SBFCM52.mjs} +5 -4
  63. package/dist/cli/git-W6DBPLZO.js +24 -0
  64. package/dist/cli/index.js +93 -91
  65. package/dist/cli/index.mjs +35 -33
  66. package/dist/cli/{legacy-noops-CVAOQY2F.js → legacy-noops-IOEF2SB7.js} +8 -7
  67. package/dist/cli/{legacy-noops-NA7N6ZOU.mjs → legacy-noops-Q4UQIOQN.mjs} +5 -4
  68. package/dist/cli/{monitors-4OMRXCXP.js → monitors-NZ2J4YGD.js} +86 -85
  69. package/dist/cli/{monitors-ILZ2XHYG.mjs → monitors-RZYBFY3Z.mjs} +5 -4
  70. package/dist/cli/{org-YGNJDD2X.js → org-ERUOT4B2.js} +65 -64
  71. package/dist/cli/{org-QDDXAE3J.mjs → org-JLSEM6GG.mjs} +5 -4
  72. package/dist/cli/{play-L535H26U.js → play-7TUO7YNG.js} +251 -247
  73. package/dist/cli/{play-VT6OHB2D.mjs → play-Z73VC7YR.mjs} +19 -15
  74. package/dist/cli/{providers-KG4W5MPK.mjs → providers-7HIII2PW.mjs} +5 -4
  75. package/dist/cli/{providers-GPZ6PQAL.js → providers-ABKBK2C7.js} +8 -7
  76. package/dist/cli/{quickstart-UI27S5LO.js → quickstart-JBG5RTFZ.js} +6 -5
  77. package/dist/cli/{quickstart-2JDGTXIG.mjs → quickstart-QQAOCPCZ.mjs} +4 -3
  78. package/dist/cli/{search-PW3RAUX7.mjs → search-MT2Q64WC.mjs} +7 -5
  79. package/dist/cli/search-QMQBC6SV.js +30 -0
  80. package/dist/cli/{secrets-WFAXOUZE.js → secrets-MEW6LLU5.js} +14 -13
  81. package/dist/cli/{secrets-HNOMK5A2.mjs → secrets-ZFJPIT6B.mjs} +5 -4
  82. package/dist/cli/{sessions-XLX3E5UO.mjs → sessions-F2KVVZ2Z.mjs} +5 -4
  83. package/dist/cli/sessions-TBPU4S6M.js +16 -0
  84. package/dist/cli/{settings-GADAG2UK.js → settings-6VDZ6G5V.js} +75 -74
  85. package/dist/cli/{settings-YNZ4YKCH.mjs → settings-LUDDM7HO.mjs} +8 -7
  86. package/dist/cli/{setup-R5YO7GT6.js → setup-IP2KTFYO.js} +42 -41
  87. package/dist/cli/{setup-PSEHIUXO.mjs → setup-MCEY473G.mjs} +7 -6
  88. package/dist/cli/skills-EVIIEX6N.js +29 -0
  89. package/dist/cli/{skills-LTQBP6CZ.mjs → skills-KMJ3CY4O.mjs} +5 -4
  90. package/dist/cli/tools-KNLHQ3L6.js +39 -0
  91. package/dist/cli/{tools-UAXDWU63.mjs → tools-WY3PLUA7.mjs} +13 -8
  92. package/dist/cli/update-LVADY5YE.js +29 -0
  93. package/dist/cli/{update-SMNIBIMS.mjs → update-XBV52OFM.mjs} +7 -6
  94. package/dist/cli/{workflow-IKGMBGF6.mjs → workflow-5N5HMYDY.mjs} +6 -5
  95. package/dist/cli/{workflow-AOQVZHMD.js → workflow-CO7XWS4D.js} +16 -15
  96. package/dist/{client-DiGl8ska.d.mts → client-D0j-_aaa.d.mts} +1 -1
  97. package/dist/{client-Bgis7F6-.d.ts → client-DflfVyj6.d.ts} +1 -1
  98. package/dist/index.d.mts +2 -2
  99. package/dist/index.d.ts +2 -2
  100. package/dist/index.js +14 -10
  101. package/dist/index.mjs +19 -15
  102. package/dist/install-integrity.json +92 -76
  103. package/dist/plays/play-description.d.mts +1 -1
  104. package/dist/plays/play-description.d.ts +1 -1
  105. package/dist/plays/run-request.d.mts +1 -1
  106. package/dist/plays/run-request.d.ts +1 -1
  107. package/dist/release.d.mts +1 -1
  108. package/dist/release.d.ts +1 -1
  109. package/dist/release.js +2 -2
  110. package/dist/release.mjs +1 -1
  111. package/package.json +6 -1
  112. package/dist/cli/auth-562JPKOM.js +0 -39
  113. package/dist/cli/git-5LDY5ZID.js +0 -23
  114. package/dist/cli/search-MGWROZ33.js +0 -28
  115. package/dist/cli/sessions-366KROUA.js +0 -15
  116. package/dist/cli/skills-JF2LPEGM.js +0 -28
  117. package/dist/cli/tools-CP2PEFRN.js +0 -34
  118. package/dist/cli/update-HZHZOU6C.js +0 -28
@@ -24,8 +24,10 @@ var _chunkKXMNM4AQjs = require('./chunk-KXMNM4AQ.js');
24
24
 
25
25
 
26
26
 
27
+ var _chunkJU3PF7WMjs = require('./chunk-JU3PF7WM.js');
27
28
 
28
- var _chunkV7UP2F4Ujs = require('./chunk-V7UP2F4U.js');
29
+
30
+ var _chunkQ2E4E4FJjs = require('./chunk-Q2E4E4FJ.js');
29
31
 
30
32
 
31
33
 
@@ -138,7 +140,7 @@ async function queryCustomerDatabase(http, input) {
138
140
  if (error instanceof _chunk7P5AA3SNjs.DeeplineError && (_optionalChain([error, 'access', _ => _.code, 'optionalAccess', _2 => _2.startsWith, 'call', _3 => _3("NETWORK_")]) || // Older API readers return PostgreSQL errors as HTTP 400, including
139
141
  // lost connections and explicitly unknown transaction resolution.
140
142
  /^08[A-Z0-9]{3}$/.test(_nullishCoalesce(error.code, () => ( ""))) || ["57P01", "57P02", "57P03"].includes(_nullishCoalesce(error.code, () => ( ""))) || error.statusCode === 408 || (_nullishCoalesce(error.statusCode, () => ( 0))) >= 500)) {
141
- throw new (0, _chunkV7UP2F4Ujs.CustomerDbQueryOutcomeUnknownError)(
143
+ throw new (0, _chunkQ2E4E4FJjs.CustomerDbQueryOutcomeUnknownError)(
142
144
  error,
143
145
  plan.request.body.operation_key
144
146
  );
@@ -146,7 +148,7 @@ async function queryCustomerDatabase(http, input) {
146
148
  throw error;
147
149
  }
148
150
  if (!result || typeof result !== "object" || Array.isArray(result) || typeof result.command !== "string" || !Array.isArray(result.columns) || !Array.isArray(result.rows) || typeof result.truncated !== "boolean" || result.row_count !== null && (!Number.isSafeInteger(result.row_count) || result.row_count < 0) || !Number.isSafeInteger(result.row_count_returned) || result.row_count_returned < 0) {
149
- throw new (0, _chunkV7UP2F4Ujs.CustomerDbQueryOutcomeUnknownError)(
151
+ throw new (0, _chunkQ2E4E4FJjs.CustomerDbQueryOutcomeUnknownError)(
150
152
  new (0, _chunk7P5AA3SNjs.DeeplineError)(
151
153
  "The SQL response did not contain a valid result.",
152
154
  200,
@@ -157,7 +159,7 @@ async function queryCustomerDatabase(http, input) {
157
159
  }
158
160
  const operation = result.operation;
159
161
  if (input.operationKey !== void 0 && (!operation || operation.operation_key !== input.operationKey || !Number.isSafeInteger(operation.completed_at_ms) || operation.completed_at_ms < 0 || !["executed", "operation_recovery"].includes(operation.source))) {
160
- throw new (0, _chunkV7UP2F4Ujs.CustomerDbQueryOutcomeUnknownError)(
162
+ throw new (0, _chunkQ2E4E4FJjs.CustomerDbQueryOutcomeUnknownError)(
161
163
  new (0, _chunk7P5AA3SNjs.DeeplineError)(
162
164
  "The server did not confirm the original atomic SQL operation.",
163
165
  200,
@@ -2887,8 +2889,8 @@ function runtimeSelectionHeaders(runtime, env) {
2887
2889
  }
2888
2890
  const receivers = _optionalChain([env, 'access', _97 => _97.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _98 => _98.trim, 'call', _99 => _99()]);
2889
2891
  return {
2890
- [_chunkV7UP2F4Ujs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2891
- ...receivers ? { [_chunkV7UP2F4Ujs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2892
+ [_chunkJU3PF7WMjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2893
+ ...receivers ? { [_chunkJU3PF7WMjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2892
2894
  };
2893
2895
  }
2894
2896
  function isolatedCiRuntimeEventReadHeaders(env) {
@@ -2904,7 +2906,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
2904
2906
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
2905
2907
  );
2906
2908
  }
2907
- return { [_chunkV7UP2F4Ujs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2909
+ return { [_chunkJU3PF7WMjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2908
2910
  }
2909
2911
  function normalizeTestPolicyOverrides(value, source) {
2910
2912
  if (value && typeof value === "object" && !Array.isArray(value)) {
@@ -3195,9 +3197,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
3195
3197
  * @throws {@link ConfigError} if no API key can be resolved from any source.
3196
3198
  */
3197
3199
  constructor(options) {
3198
- this.config = _chunkV7UP2F4Ujs.resolveConfig.call(void 0, options);
3200
+ this.config = _chunkJU3PF7WMjs.resolveConfig.call(void 0, options);
3199
3201
  this.environment = _nullishCoalesce(this.config.environment, () => ( process.env));
3200
- this.http = new (0, _chunkV7UP2F4Ujs.HttpClient)(this.config);
3202
+ this.http = new (0, _chunkJU3PF7WMjs.HttpClient)(this.config);
3201
3203
  this.toolCalls = new ToolCalls(
3202
3204
  this.http,
3203
3205
  this.config.timeout,
@@ -0,0 +1,88 @@
1
+ import {
2
+ SCHEMA_LINE_LIMIT
3
+ } from "./chunk-IHG7UAHD.mjs";
4
+
5
+ // src/cli/describe-options.ts
6
+ function addDescribeOptions(command, options = {}) {
7
+ command.option(
8
+ "--prebuilt",
9
+ "Show the Deepline tool or play, not a play your workspace created under the same name"
10
+ ).option("--tool", "Same as --prebuilt").option(
11
+ "--verbose",
12
+ "Show secondary fields, and fill in every input and read every output in the examples"
13
+ ).option(
14
+ "--cli-example",
15
+ "Show only the CLI example, and explain how it takes inputs and returns outputs"
16
+ ).option(
17
+ "--play-example",
18
+ "Show only the in-play example, and explain how it takes inputs and returns outputs"
19
+ ).option("--no-example", "Hide the run examples").option(
20
+ "--full-schema",
21
+ `Print every field: a long schema unfolded (over ${SCHEMA_LINE_LIMIT} lines), list rows, and a tool's raw response`
22
+ ).option(
23
+ "--fields <names>",
24
+ "Show only these fields, comma-separated, plus every required input"
25
+ ).option(
26
+ "--feature <name[=value]>",
27
+ "Describe one feature of a tool, such as a model: --feature model=openai/gpt-5.6-luna. A tool lists its features."
28
+ ).option(
29
+ "-o, --out <path>",
30
+ "Save the output to this file instead of printing it"
31
+ );
32
+ if (options.schemaOnly !== false) {
33
+ command.option(
34
+ "--schema-only",
35
+ "Print only the schema, with every field, and nothing else"
36
+ );
37
+ }
38
+ if (options.json !== false) {
39
+ command.option(
40
+ "--json",
41
+ "Print JSON instead of text; with --schema-only, only the input and output JSON Schemas"
42
+ );
43
+ }
44
+ return command;
45
+ }
46
+
47
+ // src/cli/execution-observation.ts
48
+ import { writeFileSync, renameSync } from "fs";
49
+ function writeObservation(observation) {
50
+ const path = process.env.DEEPLINE_EXECUTION_OBSERVATION_PATH;
51
+ const invocationId = process.env.DEEPLINE_EXECUTION_OBSERVATION_ID;
52
+ if (!path || !invocationId) return;
53
+ const pending = `${path}.pending`;
54
+ writeFileSync(
55
+ pending,
56
+ JSON.stringify({
57
+ schema_version: 1,
58
+ invocation_id: invocationId,
59
+ ...observation
60
+ }),
61
+ { mode: 384 }
62
+ );
63
+ renameSync(pending, path);
64
+ }
65
+ function recordApiResponse(observation) {
66
+ writeObservation({
67
+ kind: "api_response",
68
+ received_at_ms: observation.receivedAtMs,
69
+ state: observation.state,
70
+ http_status: observation.httpStatus
71
+ });
72
+ }
73
+ function recordPlayTermination(run) {
74
+ if (typeof run.id !== "string" || !["completed", "failed", "cancelled", "canceled"].includes(
75
+ String(run.status)
76
+ ) || typeof run.finishedAt !== "number" || !Number.isSafeInteger(run.finishedAt) || run.finishedAt <= 0)
77
+ return;
78
+ writeObservation({
79
+ kind: "play_terminal",
80
+ run: { id: run.id, status: run.status, finishedAt: run.finishedAt }
81
+ });
82
+ }
83
+
84
+ export {
85
+ addDescribeOptions,
86
+ recordApiResponse,
87
+ recordPlayTermination
88
+ };
@@ -3,7 +3,7 @@
3
3
  var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
4
4
 
5
5
 
6
- var _chunkRTO5QZWTjs = require('./chunk-RTO5QZWT.js');
6
+ var _chunkS22ZQZMUjs = require('./chunk-S22ZQZMU.js');
7
7
 
8
8
 
9
9
 
@@ -22,13 +22,13 @@ var _chunkRTO5QZWTjs = require('./chunk-RTO5QZWT.js');
22
22
 
23
23
 
24
24
 
25
- var _chunkV7UP2F4Ujs = require('./chunk-V7UP2F4U.js');
25
+ var _chunkJU3PF7WMjs = require('./chunk-JU3PF7WM.js');
26
26
 
27
27
 
28
28
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
29
29
 
30
30
 
31
- var _chunkGNN4MY5Xjs = require('./chunk-GNN4MY5X.js');
31
+ var _chunkHFDBZXMVjs = require('./chunk-HFDBZXMV.js');
32
32
 
33
33
  // src/cli/commands/skills.ts
34
34
  var _child_process = require('child_process');
@@ -126,7 +126,7 @@ function skillsSourceUrl(baseUrl) {
126
126
  function buildSkillsAddArgs(baseUrl, skillName, options = {}) {
127
127
  const skillNames = Array.isArray(skillName) ? skillName : [skillName];
128
128
  const [firstSkillName, ...extraSkillNames] = skillNames;
129
- const agents = _nullishCoalesce(options.agents, () => ( _chunkV7UP2F4Ujs.DEFAULT_SKILL_AGENTS));
129
+ const agents = _nullishCoalesce(options.agents, () => ( _chunkJU3PF7WMjs.DEFAULT_SKILL_AGENTS));
130
130
  const values = {
131
131
  skills_index_url: skillsIndexUrl(baseUrl),
132
132
  skills_source_url: skillsSourceUrl(baseUrl),
@@ -202,7 +202,7 @@ function shouldSkipCompatibilityCheck() {
202
202
  return value === "1" || value === "true" || value === "yes";
203
203
  }
204
204
  function sdkCompatibilityCachePath(baseUrl, homeDir = _os.homedir.call(void 0, )) {
205
- return _path.join.call(void 0, _chunkV7UP2F4Ujs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
205
+ return _path.join.call(void 0, _chunkJU3PF7WMjs.sdkCliStateDirPath.call(void 0, baseUrl, homeDir), "compat-cache.json");
206
206
  }
207
207
  function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
208
208
  return _path.join.call(void 0, homeDir, ".cache", "deepline", "sdk-compat-cache.json");
@@ -210,9 +210,9 @@ function legacySdkCompatibilityCachePath(homeDir = _os.homedir.call(void 0, )) {
210
210
  function compatibilityCacheKey(baseUrl, command, skillsVersion) {
211
211
  return JSON.stringify({
212
212
  baseUrl: baseUrl.replace(/\/$/, ""),
213
- version: _chunkV7UP2F4Ujs.SDK_VERSION,
214
- apiContract: _chunkV7UP2F4Ujs.SDK_API_CONTRACT,
215
- apiMajor: _chunkV7UP2F4Ujs.SDK_API_MAJOR,
213
+ version: _chunkJU3PF7WMjs.SDK_VERSION,
214
+ apiContract: _chunkJU3PF7WMjs.SDK_API_CONTRACT,
215
+ apiMajor: _chunkJU3PF7WMjs.SDK_API_MAJOR,
216
216
  command: _optionalChain([command, 'optionalAccess', _7 => _7.trim, 'call', _8 => _8()]) || null,
217
217
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null))
218
218
  });
@@ -220,8 +220,8 @@ function compatibilityCacheKey(baseUrl, command, skillsVersion) {
220
220
  function legacyCompatibilityCacheKey(baseUrl, command) {
221
221
  return JSON.stringify({
222
222
  baseUrl: baseUrl.replace(/\/$/, ""),
223
- version: _chunkV7UP2F4Ujs.SDK_VERSION,
224
- apiContract: _chunkV7UP2F4Ujs.SDK_API_CONTRACT,
223
+ version: _chunkJU3PF7WMjs.SDK_VERSION,
224
+ apiContract: _chunkJU3PF7WMjs.SDK_API_CONTRACT,
225
225
  command: _optionalChain([command, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]) || null
226
226
  });
227
227
  }
@@ -314,7 +314,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
314
314
  );
315
315
  try {
316
316
  const url = new URL("/api/v2/sdk/compat", baseUrl);
317
- url.searchParams.set("version", _chunkV7UP2F4Ujs.SDK_VERSION);
317
+ url.searchParams.set("version", _chunkJU3PF7WMjs.SDK_VERSION);
318
318
  if (_optionalChain([options, 'access', _19 => _19.command, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()])) {
319
319
  url.searchParams.set("command", options.command.trim());
320
320
  }
@@ -322,7 +322,7 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
322
322
  url.searchParams.set("skills_version", _nullishCoalesce(options.skillsVersion, () => ( "")));
323
323
  url.searchParams.set(
324
324
  "skills_cli_capability",
325
- String(_chunkGNN4MY5Xjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
325
+ String(_chunkHFDBZXMVjs.SDK_RELEASE.packageCapabilities.skillsGuidance)
326
326
  );
327
327
  }
328
328
  if (options.catalog) {
@@ -331,13 +331,13 @@ async function checkSdkCompatibility(baseUrl, options = {}) {
331
331
  const response = await fetch(url, {
332
332
  method: "GET",
333
333
  headers: {
334
- ..._chunkV7UP2F4Ujs.deploymentProtectionHeaders.call(void 0, ),
335
- "User-Agent": `deepline-ts-sdk/${_chunkV7UP2F4Ujs.SDK_VERSION}`,
336
- "X-Deepline-SDK-Version": _chunkV7UP2F4Ujs.SDK_VERSION,
337
- "X-Deepline-API-Major": String(_chunkV7UP2F4Ujs.SDK_API_MAJOR),
338
- "X-Deepline-API-Contract": _chunkV7UP2F4Ujs.SDK_API_CONTRACT,
334
+ ..._chunkJU3PF7WMjs.deploymentProtectionHeaders.call(void 0, ),
335
+ "User-Agent": `deepline-ts-sdk/${_chunkJU3PF7WMjs.SDK_VERSION}`,
336
+ "X-Deepline-SDK-Version": _chunkJU3PF7WMjs.SDK_VERSION,
337
+ "X-Deepline-API-Major": String(_chunkJU3PF7WMjs.SDK_API_MAJOR),
338
+ "X-Deepline-API-Contract": _chunkJU3PF7WMjs.SDK_API_CONTRACT,
339
339
  "X-Deepline-CLI-Update-Preferences": "1",
340
- ...options.catalog ? { Authorization: `Bearer ${_chunkV7UP2F4Ujs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {}
340
+ ...options.catalog ? { Authorization: `Bearer ${_chunkJU3PF7WMjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl)}` } : {}
341
341
  },
342
342
  signal: controller.signal
343
343
  });
@@ -590,7 +590,7 @@ function buildEnvironmentContext() {
590
590
  node_version: process.version,
591
591
  runtime: "Node.js",
592
592
  hostname: _os.hostname.call(void 0, ),
593
- agent_runtime: _chunkV7UP2F4Ujs.detectAgentRuntime.call(void 0, )
593
+ agent_runtime: _chunkJU3PF7WMjs.detectAgentRuntime.call(void 0, )
594
594
  };
595
595
  for (const key of ["CLAUDE_CODE_REMOTE", "DEEPLINE_PLUGIN_MODE"]) {
596
596
  const normalized = _optionalChain([process, 'access', _32 => _32.env, 'access', _33 => _33[key], 'optionalAccess', _34 => _34.trim, 'call', _35 => _35()]);
@@ -612,15 +612,15 @@ function buildEnvironmentContext() {
612
612
  }
613
613
  function failureReportHeaders(apiKey) {
614
614
  return {
615
- ..._chunkV7UP2F4Ujs.deploymentProtectionHeaders.call(void 0, ),
615
+ ..._chunkJU3PF7WMjs.deploymentProtectionHeaders.call(void 0, ),
616
616
  Authorization: `Bearer ${apiKey}`,
617
617
  "Content-Type": "application/json",
618
- "User-Agent": `deepline-ts-sdk/${_chunkV7UP2F4Ujs.SDK_VERSION}`,
618
+ "User-Agent": `deepline-ts-sdk/${_chunkJU3PF7WMjs.SDK_VERSION}`,
619
619
  "X-Deepline-Client-Family": "sdk",
620
620
  "X-Deepline-CLI-Family": "sdk",
621
- "X-Deepline-Agent-Runtime": _chunkV7UP2F4Ujs.detectAgentRuntime.call(void 0, ),
622
- "X-Deepline-CLI-Version": _chunkV7UP2F4Ujs.SDK_VERSION,
623
- "X-Deepline-SDK-Version": _chunkV7UP2F4Ujs.SDK_VERSION
621
+ "X-Deepline-Agent-Runtime": _chunkJU3PF7WMjs.detectAgentRuntime.call(void 0, ),
622
+ "X-Deepline-CLI-Version": _chunkJU3PF7WMjs.SDK_VERSION,
623
+ "X-Deepline-SDK-Version": _chunkJU3PF7WMjs.SDK_VERSION
624
624
  };
625
625
  }
626
626
  async function postFailureReport(input) {
@@ -648,7 +648,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
648
648
  if (isFailureReportingDisabled()) return false;
649
649
  let apiKey = "";
650
650
  try {
651
- apiKey = _chunkV7UP2F4Ujs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
651
+ apiKey = _chunkJU3PF7WMjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
652
652
  } catch (e7) {
653
653
  return false;
654
654
  }
@@ -675,7 +675,7 @@ async function maybeReportAutomaticSkillsSyncFailure(input) {
675
675
  failure_code: failureCode2,
676
676
  failure_stage: failureStage,
677
677
  error_body: "Automatic Deepline skills installation failed.",
678
- cli_version: _chunkV7UP2F4Ujs.SDK_VERSION,
678
+ cli_version: _chunkJU3PF7WMjs.SDK_VERSION,
679
679
  context: {
680
680
  environment: buildEnvironmentContext(),
681
681
  skills_sync: {
@@ -795,7 +795,7 @@ function buildFailureReport(input) {
795
795
  failure_kind: failureKind,
796
796
  failure_code: code,
797
797
  failure_stage: input.error === void 0 ? "command_exit" : "cli_main",
798
- cli_version: _chunkV7UP2F4Ujs.SDK_VERSION,
798
+ cli_version: _chunkJU3PF7WMjs.SDK_VERSION,
799
799
  context: {
800
800
  base_url: redactFailureText(input.baseUrl, 400),
801
801
  command_summary: sanitizeCommand(input.argv),
@@ -815,8 +815,8 @@ async function maybeReportSdkCliFailure(input) {
815
815
  if (isServerLoggedPlayRunStartFailure(input)) return false;
816
816
  const exitCode = resolvedExitCode(input);
817
817
  if (!shouldReport({ exitCode, error: input.error })) return false;
818
- const baseUrl = _chunkV7UP2F4Ujs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
819
- const apiKey = _chunkV7UP2F4Ujs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
818
+ const baseUrl = _chunkJU3PF7WMjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
819
+ const apiKey = _chunkJU3PF7WMjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
820
820
  if (!apiKey) return false;
821
821
  return postFailureReport({
822
822
  baseUrl,
@@ -837,25 +837,25 @@ var CHECK_TIMEOUT_MS2 = 3e3;
837
837
  var INSTALLER_PROBE_TIMEOUT_MS = 1e3;
838
838
  var PUBLISHED_VERIFICATION_RETRY_MS = 5 * 6e4;
839
839
  function shouldSkipSkillsSync() {
840
- if (_chunkV7UP2F4Ujs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
840
+ if (_chunkJU3PF7WMjs.detectAgentRuntime.call(void 0, ) === "claude_cowork" || isCiEnvironment()) {
841
841
  return true;
842
842
  }
843
843
  const value = _optionalChain([process, 'access', _56 => _56.env, 'access', _57 => _57.DEEPLINE_SKIP_SKILLS_SYNC, 'optionalAccess', _58 => _58.trim, 'call', _59 => _59(), 'access', _60 => _60.toLowerCase, 'call', _61 => _61()]);
844
844
  return value === "1" || value === "true" || value === "yes" || value === "on";
845
845
  }
846
846
  function unavailableSkillsNoticePath(baseUrl) {
847
- return _path.join.call(void 0, _chunkV7UP2F4Ujs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
847
+ return _path.join.call(void 0, _chunkJU3PF7WMjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-sync-unavailable-version");
848
848
  }
849
849
  var SKILLS_SYNC_IN_PROGRESS_TTL_MS = 10 * 60 * 1e3;
850
850
  var SKILLS_SYNC_IN_PROGRESS_PID_CAP_MS = 6 * 60 * 60 * 1e3;
851
- var agentLeaseSegment = _chunkV7UP2F4Ujs.skillsAgentPathSegment;
851
+ var agentLeaseSegment = _chunkJU3PF7WMjs.skillsAgentPathSegment;
852
852
  function sortedLeaseAgents(agents) {
853
- const expanded = agents.includes("*") ? [...agents, ..._chunkV7UP2F4Ujs.KNOWN_SKILL_AGENTS] : agents;
853
+ const expanded = agents.includes("*") ? [...agents, ..._chunkJU3PF7WMjs.KNOWN_SKILL_AGENTS] : agents;
854
854
  return [...new Set(expanded)].sort((a, b) => a.localeCompare(b));
855
855
  }
856
856
  function inProgressSkillsSyncPath(baseUrl, agent) {
857
857
  return _path.join.call(void 0,
858
- _chunkV7UP2F4Ujs.sdkCliStateDirPath.call(void 0, baseUrl),
858
+ _chunkJU3PF7WMjs.sdkCliStateDirPath.call(void 0, baseUrl),
859
859
  `skills-sync-in-progress-${agentLeaseSegment(agent)}`
860
860
  );
861
861
  }
@@ -1014,7 +1014,7 @@ var SkillsStateUnavailableError = class extends Error {
1014
1014
  constructor(baseUrl, error) {
1015
1015
  const detail = error instanceof Error ? error.message : String(error);
1016
1016
  super(
1017
- `Could not save skills state in ${_chunkV7UP2F4Ujs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1017
+ `Could not save skills state in ${_chunkJU3PF7WMjs.sdkCliStateDirPath.call(void 0, baseUrl)}: ${detail}`
1018
1018
  );
1019
1019
  this.name = "SkillsStateUnavailableError";
1020
1020
  }
@@ -1099,7 +1099,7 @@ function skillsInstallLeasePath(baseUrl, agents) {
1099
1099
  }
1100
1100
  function deferredSkillsNoticePath(baseUrl, agents) {
1101
1101
  return _path.join.call(void 0,
1102
- _chunkV7UP2F4Ujs.sdkCliStateDirPath.call(void 0, baseUrl),
1102
+ _chunkJU3PF7WMjs.sdkCliStateDirPath.call(void 0, baseUrl),
1103
1103
  `skills-sync-notice-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}`
1104
1104
  );
1105
1105
  }
@@ -1133,8 +1133,8 @@ function flushDeferredSkillsNotices(baseUrl, agents) {
1133
1133
  if (text.trim()) writeSdkSkillsStatusLine(text.trimEnd());
1134
1134
  }
1135
1135
  function flushDeferredSkillsSyncNotices(baseUrl) {
1136
- if (shouldSkipSkillsSync() || _chunkV7UP2F4Ujs.hasActivePluginSkills.call(void 0, )) return;
1137
- const agents = _chunkV7UP2F4Ujs.resolveAutoSyncSkillAgents.call(void 0, );
1136
+ if (shouldSkipSkillsSync() || _chunkJU3PF7WMjs.hasActivePluginSkills.call(void 0, )) return;
1137
+ const agents = _chunkJU3PF7WMjs.resolveAutoSyncSkillAgents.call(void 0, );
1138
1138
  if (agents.length === 0) return;
1139
1139
  flushDeferredSkillsNotices(baseUrl, agents);
1140
1140
  }
@@ -1150,7 +1150,7 @@ function spawnDetachedSkillsSyncChild(argv, onSpawnError) {
1150
1150
  }
1151
1151
  function failedSkillsSyncPath(baseUrl, agents) {
1152
1152
  return _path.join.call(void 0,
1153
- _chunkV7UP2F4Ujs.sdkCliStateDirPath.call(void 0, baseUrl),
1153
+ _chunkJU3PF7WMjs.sdkCliStateDirPath.call(void 0, baseUrl),
1154
1154
  `skills-sync-failed-${sortedLeaseAgents(agents).map(agentLeaseSegment).join("-")}-version`
1155
1155
  );
1156
1156
  }
@@ -1179,7 +1179,7 @@ function writeUnavailableSkillsNotice(baseUrl, remoteVersion, skillNames, reason
1179
1179
  if (hasMarkedSkillsSyncVersion(path, remoteVersion)) return;
1180
1180
  writeMarkedSkillsSyncVersion(path, remoteVersion);
1181
1181
  const probes = reason === "no-installer" ? _nullishCoalesce(knownProbes, () => ( probeInstallers())) : null;
1182
- const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkV7UP2F4Ujs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1182
+ const manualCommand = _optionalChain([probes, 'optionalAccess', _65 => _65.npx]) === "missing" && probes.bunx !== "missing" ? `bunx ${buildBunxSkillsInstallArgs(baseUrl, skillNames, _chunkJU3PF7WMjs.DEFAULT_SKILL_AGENTS).map(shellQuote).join(" ")}` : `npx ${buildSkillsInstallArgs(baseUrl, skillNames).join(" ")}`;
1183
1183
  const explanation = reason === "unsupported-agent" ? "the detected agent has no automatic skills sync target. Automatic sync was skipped." : _optionalChain([probes, 'optionalAccess', _66 => _66.bunx]) === "missing" && probes.npx === "missing" ? "neither `bunx` nor `npx` was found on PATH. Make one available." : `installer version check failed for ${Object.entries(_nullishCoalesce(probes, () => ( {}))).filter(([, result]) => result === "failed").map(([command]) => `\`${command}\``).join(" and ")}. Check those commands with --version.`;
1184
1184
  notice(
1185
1185
  `Deepline agent skills are out of date, but ${explanation} To install manually, run:
@@ -1267,7 +1267,7 @@ function buildSdkSkillNames(v1SkillNames2) {
1267
1267
  return sortedUniqueSkillNames(v1SkillNames2);
1268
1268
  }
1269
1269
  function isDefaultAgentSet(agents) {
1270
- return agents.length === _chunkV7UP2F4Ujs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkV7UP2F4Ujs.DEFAULT_SKILL_AGENTS[index]);
1270
+ return agents.length === _chunkJU3PF7WMjs.DEFAULT_SKILL_AGENTS.length && agents.every((agent, index) => agent === _chunkJU3PF7WMjs.DEFAULT_SKILL_AGENTS[index]);
1271
1271
  }
1272
1272
  function safeSkillFilePath(value) {
1273
1273
  if (typeof value !== "string" || !value) return false;
@@ -1424,10 +1424,10 @@ async function fetchSkillsUpdate(baseUrl, localVersion) {
1424
1424
  method: "POST",
1425
1425
  headers: { "Content-Type": "application/json" },
1426
1426
  body: JSON.stringify({
1427
- sdk_cli: { version: _chunkV7UP2F4Ujs.SDK_VERSION },
1427
+ sdk_cli: { version: _chunkJU3PF7WMjs.SDK_VERSION },
1428
1428
  skills: {
1429
1429
  version: localVersion,
1430
- capability: _chunkGNN4MY5Xjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1430
+ capability: _chunkHFDBZXMVjs.SDK_RELEASE.packageCapabilities.skillsGuidance
1431
1431
  }
1432
1432
  }),
1433
1433
  signal: controller.signal
@@ -1466,7 +1466,7 @@ function probeInstallers(timeoutMs) {
1466
1466
  }
1467
1467
  function noInstallerProbePath(baseUrl) {
1468
1468
  return _path.join.call(void 0,
1469
- _chunkV7UP2F4Ujs.sdkCliStateDirPath.call(void 0, baseUrl),
1469
+ _chunkJU3PF7WMjs.sdkCliStateDirPath.call(void 0, baseUrl),
1470
1470
  "skills-sync-no-installer-unknown.json"
1471
1471
  );
1472
1472
  }
@@ -1545,7 +1545,7 @@ function temporarySkillsSyncSkipCommand() {
1545
1545
  function resolveSkillsInstallSpawn(install, platform2 = process.platform) {
1546
1546
  return resolveShellSpawn(install.command, install.args, platform2);
1547
1547
  }
1548
- function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkV7UP2F4Ujs.DEFAULT_SKILL_AGENTS, knownProbes) {
1548
+ function resolveSkillsInstallCommands(baseUrl, skillNames = DEFAULT_SDK_SKILL_NAMES, agents = _chunkJU3PF7WMjs.DEFAULT_SKILL_AGENTS, knownProbes) {
1549
1549
  const commands = [];
1550
1550
  const probes = _nullishCoalesce(knownProbes, () => ( probeInstallers()));
1551
1551
  if (probes.bunx === "available") {
@@ -1697,11 +1697,11 @@ function writeSdkSkillsStatusLine(line) {
1697
1697
  }
1698
1698
  async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1699
1699
  if (shouldSkipSkillsSync()) return;
1700
- const usingPluginSkills = _chunkV7UP2F4Ujs.hasActivePluginSkills.call(void 0, );
1700
+ const usingPluginSkills = _chunkJU3PF7WMjs.hasActivePluginSkills.call(void 0, );
1701
1701
  if (usingPluginSkills) {
1702
1702
  return;
1703
1703
  }
1704
- const agents = _chunkV7UP2F4Ujs.resolveAutoSyncSkillAgents.call(void 0, );
1704
+ const agents = _chunkJU3PF7WMjs.resolveAutoSyncSkillAgents.call(void 0, );
1705
1705
  if (options.mode === "detached" && agents.length > 0) {
1706
1706
  flushDeferredSkillsNotices(baseUrl, agents);
1707
1707
  }
@@ -1729,7 +1729,7 @@ async function syncSdkSkillsIfNeeded(baseUrl, options = {}) {
1729
1729
  return;
1730
1730
  }
1731
1731
  try {
1732
- const localVersion = _chunkV7UP2F4Ujs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1732
+ const localVersion = _chunkJU3PF7WMjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
1733
1733
  const update = options.update === void 0 ? claimedVersion ? { needsUpdate: true, remoteVersion: claimedVersion } : await fetchSkillsUpdate(baseUrl, localVersion) : options.update ? {
1734
1734
  needsUpdate: options.update.needs_update,
1735
1735
  remoteVersion: options.update.remote.version
@@ -1895,7 +1895,7 @@ async function runInlineSkillsSync(baseUrl, remoteVersion, agents, notices) {
1895
1895
  }
1896
1896
  }
1897
1897
  runLegacySkillsCleanup(agents);
1898
- if (!_chunkV7UP2F4Ujs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1898
+ if (!_chunkJU3PF7WMjs.writeSdkSkillsLocalVersion.call(void 0, baseUrl, update.remoteVersion, agents)) {
1899
1899
  notice(
1900
1900
  "Deepline agent skills installed, but the local skills version could not be recorded. A later command will retry the refresh."
1901
1901
  );
@@ -1954,7 +1954,7 @@ function inferActiveSkillsScope(entrypoint = _nullishCoalesce(process.argv[1], (
1954
1954
  return /[\\/]\.deepline[\\/]runtime[\\/]/.test(entrypoint) ? "local" : "global";
1955
1955
  }
1956
1956
  function resolveLocalRoot() {
1957
- const target = _chunkV7UP2F4Ujs.resolveProjectPinTarget.call(void 0, );
1957
+ const target = _chunkJU3PF7WMjs.resolveProjectPinTarget.call(void 0, );
1958
1958
  if (!target.ok) {
1959
1959
  throw new Error(
1960
1960
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -1965,7 +1965,7 @@ function resolveLocalRoot() {
1965
1965
  return target.dir;
1966
1966
  }
1967
1967
  function detectSkillsAgents(input) {
1968
- const runtime = _nullishCoalesce(input.runtime, () => ( _chunkV7UP2F4Ujs.detectAgentRuntime.call(void 0, )));
1968
+ const runtime = _nullishCoalesce(input.runtime, () => ( _chunkJU3PF7WMjs.detectAgentRuntime.call(void 0, )));
1969
1969
  const knownAgent = RUNTIME_TO_SKILLS_AGENT[runtime];
1970
1970
  if (knownAgent) return [knownAgent];
1971
1971
  const roots = [
@@ -1980,7 +1980,7 @@ function detectSkillsAgents(input) {
1980
1980
  return detected.length > 0 ? detected : ["*"];
1981
1981
  }
1982
1982
  function skillsStatePathForScope(baseUrl, scope, root) {
1983
- return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkV7UP2F4Ujs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
1983
+ return scope === "local" && root ? _path.join.call(void 0, root, ".deepline", "setup", "skills.json") : _path.join.call(void 0, _chunkJU3PF7WMjs.sdkCliStateDirPath.call(void 0, baseUrl), "skills-install.json");
1984
1984
  }
1985
1985
  function buildSkillsPlan(input) {
1986
1986
  const scopeArgs = input.scope === "global" ? ["--global"] : [];
@@ -2102,7 +2102,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2102
2102
  scope = normalizeScope(options.scope);
2103
2103
  root = scope === "local" ? resolveLocalRoot() : null;
2104
2104
  } catch (error) {
2105
- _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
2105
+ _chunkS22ZQZMUjs.printCommandEnvelope.call(void 0,
2106
2106
  {
2107
2107
  ok: false,
2108
2108
  status: "failed",
@@ -2114,22 +2114,22 @@ async function runSkillsCommand(options, dependencies = {}) {
2114
2114
  );
2115
2115
  return 2;
2116
2116
  }
2117
- const baseUrl = _chunkV7UP2F4Ujs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
2117
+ const baseUrl = _chunkJU3PF7WMjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
2118
2118
  const catalog = {
2119
2119
  skillNames: [...DEFAULT_SDK_SKILL_NAMES],
2120
- version: _chunkV7UP2F4Ujs.SDK_VERSION
2120
+ version: _chunkJU3PF7WMjs.SDK_VERSION
2121
2121
  };
2122
2122
  const agents = options.agent ? [options.agent] : detectSkillsAgents({ scope, root });
2123
2123
  const plan = buildSkillsPlan({ baseUrl, scope, root, agents, ...catalog });
2124
2124
  if (options.dryRun) {
2125
- _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
2125
+ _chunkS22ZQZMUjs.printCommandEnvelope.call(void 0,
2126
2126
  { ok: true, status: "planned", dryRun: true, ...plan },
2127
2127
  { json: options.json }
2128
2128
  );
2129
2129
  return 0;
2130
2130
  }
2131
2131
  if (isSkillsPlanCurrent(plan, readSkillsInstallState(plan.statePath)) && !hasFailedAutomaticSkillsSync(baseUrl, agents)) {
2132
- _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
2132
+ _chunkS22ZQZMUjs.printCommandEnvelope.call(void 0,
2133
2133
  {
2134
2134
  ok: true,
2135
2135
  status: "current",
@@ -2164,7 +2164,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2164
2164
  .../* @__PURE__ */ new Set([...plan.skillNames, ...LEGACY_SKILL_NAMES_TO_REMOVE])
2165
2165
  ];
2166
2166
  const agentRoots = workspaceSkillRootsForAgents(plan.agents);
2167
- _chunkV7UP2F4Ujs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
2167
+ _chunkJU3PF7WMjs.ensureProjectPrivatePathsIgnored.call(void 0, root, [
2168
2168
  ".deepline/",
2169
2169
  ...agentRoots.flatMap(
2170
2170
  (agentRoot) => managedNames.map((name) => `${agentRoot}/skills/${name}/`)
@@ -2182,7 +2182,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2182
2182
  } };
2183
2183
  } catch (error) {
2184
2184
  if (!(error instanceof SkillsStateUnavailableError)) throw error;
2185
- _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
2185
+ _chunkS22ZQZMUjs.printCommandEnvelope.call(void 0,
2186
2186
  {
2187
2187
  ok: false,
2188
2188
  status: "failed",
@@ -2198,7 +2198,7 @@ async function runSkillsCommand(options, dependencies = {}) {
2198
2198
  return 5;
2199
2199
  }
2200
2200
  if (!lease) {
2201
- _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
2201
+ _chunkS22ZQZMUjs.printCommandEnvelope.call(void 0,
2202
2202
  {
2203
2203
  ok: false,
2204
2204
  status: "failed",
@@ -2244,7 +2244,7 @@ async function runSkillsInstallWithLease(input) {
2244
2244
  throw new Error("Could not install the current Deepline skills.");
2245
2245
  }
2246
2246
  } catch (error) {
2247
- _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
2247
+ _chunkS22ZQZMUjs.printCommandEnvelope.call(void 0,
2248
2248
  {
2249
2249
  ok: false,
2250
2250
  status: "failed",
@@ -2283,7 +2283,7 @@ async function runSkillsInstallWithLease(input) {
2283
2283
  {
2284
2284
  schemaVersion: 1,
2285
2285
  installedAt: (/* @__PURE__ */ new Date()).toISOString(),
2286
- cliVersion: _chunkV7UP2F4Ujs.SDK_VERSION,
2286
+ cliVersion: _chunkJU3PF7WMjs.SDK_VERSION,
2287
2287
  scope,
2288
2288
  agents,
2289
2289
  skillsVersion: plan.version,
@@ -2298,7 +2298,7 @@ async function runSkillsInstallWithLease(input) {
2298
2298
  if (scope === "global") {
2299
2299
  clearFailedAutomaticSkillsSync(baseUrl, agents);
2300
2300
  }
2301
- _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
2301
+ _chunkS22ZQZMUjs.printCommandEnvelope.call(void 0,
2302
2302
  {
2303
2303
  ok: true,
2304
2304
  status: "complete",
@@ -2347,7 +2347,7 @@ Examples:
2347
2347
  ).action(async (options) => {
2348
2348
  const claim = _optionalChain([options, 'access', _88 => _88.claim, 'optionalAccess', _89 => _89.trim, 'call', _90 => _90()]);
2349
2349
  if (!claim) {
2350
- _chunkRTO5QZWTjs.printCommandEnvelope.call(void 0,
2350
+ _chunkS22ZQZMUjs.printCommandEnvelope.call(void 0,
2351
2351
  {
2352
2352
  ok: false,
2353
2353
  status: "failed",
@@ -2360,7 +2360,7 @@ Examples:
2360
2360
  process.exitCode = 2;
2361
2361
  return;
2362
2362
  }
2363
- await syncSdkSkillsIfNeeded(_chunkV7UP2F4Ujs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
2363
+ await syncSdkSkillsIfNeeded(_chunkJU3PF7WMjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, ""), {
2364
2364
  mode: "inline",
2365
2365
  notices: "defer",
2366
2366
  claim
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-XKZXO7D3.mjs";
5
+ } from "./chunk-CH6EFAJ3.mjs";
6
6
  import {
7
7
  ACTIVE_ORG_ID_ENV,
8
8
  ACTIVE_ORG_NAME_ENV,
@@ -25,7 +25,7 @@ import {
25
25
  saveHostEnvValues,
26
26
  saveProjectDeeplineEnvValues,
27
27
  storedHostApiKey
28
- } from "./chunk-VE3U3SQC.mjs";
28
+ } from "./chunk-ZJ7HLJRF.mjs";
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
  import {