deepline 0.3.348 → 0.3.350

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 (100) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-budget-state.ts +30 -6
  3. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +3 -1
  4. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +38 -13
  5. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +114 -25
  6. package/dist/bundling-sources/shared_libs/product-notifications/billing-sales.ts +1 -1
  7. package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +1 -1
  8. package/dist/bundling-sources/shared_libs/product-notifications/events.ts +5 -1
  9. package/dist/cli/{auth-ME53BGXD.mjs → auth-7X3G2MCE.mjs} +4 -4
  10. package/dist/cli/auth-CYXUWRLU.js +31 -0
  11. package/dist/cli/{billing-EMRJAWNG.js → billing-2J4WREAL.js} +73 -73
  12. package/dist/cli/{billing-466LUN65.mjs → billing-DOVYL5TT.mjs} +4 -4
  13. package/dist/cli/{chunk-EWYHXSV4.js → chunk-2COBRUUH.js} +6 -6
  14. package/dist/cli/{chunk-5UWZ52IW.mjs → chunk-2KLYUZI7.mjs} +2 -2
  15. package/dist/cli/{chunk-BAJXRIRP.mjs → chunk-2NI75UNO.mjs} +2 -2
  16. package/dist/cli/{chunk-UCVFMPAO.mjs → chunk-2Z6HV7BK.mjs} +2 -2
  17. package/dist/cli/{chunk-5IYFQJHX.js → chunk-36MFVS4Q.js} +9 -9
  18. package/dist/cli/{chunk-5AZNXX2S.mjs → chunk-4ODBHH6X.mjs} +1 -1
  19. package/dist/cli/{chunk-CA7RR4UD.mjs → chunk-5ZFDADDM.mjs} +3 -3
  20. package/dist/cli/{chunk-4JJN7BDI.js → chunk-AWJ2A2CP.js} +48 -48
  21. package/dist/cli/{chunk-L645OZEB.mjs → chunk-CYCJBDW6.mjs} +6 -6
  22. package/dist/cli/{chunk-5HLM2PGK.js → chunk-FUQQ3U62.js} +8 -8
  23. package/dist/cli/{chunk-CEC3BXRV.mjs → chunk-FYZFB2CS.mjs} +1 -1
  24. package/dist/cli/{chunk-PQZURAHR.js → chunk-GMOMXQR6.js} +1 -1
  25. package/dist/cli/{chunk-VWSEZMCR.mjs → chunk-H4MOKDCV.mjs} +1 -1
  26. package/dist/cli/{chunk-SIE7MILM.js → chunk-IHMNFNL3.js} +225 -225
  27. package/dist/cli/{chunk-XVWOERRO.mjs → chunk-LDILBDLL.mjs} +4 -4
  28. package/dist/cli/{chunk-NX4WJO5P.js → chunk-LE7DZZVE.js} +26 -26
  29. package/dist/cli/{chunk-6NM2IY4B.js → chunk-NWN23EZM.js} +8 -8
  30. package/dist/cli/{chunk-2G7KMDDI.mjs → chunk-NZMVPYBQ.mjs} +1 -1
  31. package/dist/cli/{chunk-2JRKH263.js → chunk-QMMMMGAB.js} +15 -15
  32. package/dist/cli/{chunk-Q37KLZXK.mjs → chunk-TFGKO7XG.mjs} +5 -5
  33. package/dist/cli/{chunk-U5U2DJ3A.js → chunk-UKOXXA75.js} +60 -60
  34. package/dist/cli/{chunk-35PLGSH6.mjs → chunk-VC7D7OXL.mjs} +1 -1
  35. package/dist/cli/{chunk-MM6X5ADB.mjs → chunk-WWJOE6JQ.mjs} +2 -2
  36. package/dist/cli/{chunk-KGKPHGDT.js → chunk-YCBWMF2O.js} +2 -2
  37. package/dist/cli/{chunk-IICCYB57.js → chunk-Z5RG3AOP.js} +45 -45
  38. package/dist/cli/{chunk-GVJPI7MB.js → chunk-ZIUELPGR.js} +4 -4
  39. package/dist/cli/client-R4VF7KSK.js +20 -0
  40. package/dist/cli/{client-K3EFOESB.mjs → client-YM7EV7JZ.mjs} +3 -3
  41. package/dist/cli/{csv-4UFHUMIR.js → csv-3CE5IY4L.js} +12 -12
  42. package/dist/cli/{csv-ZFH725GM.mjs → csv-IERAXUNG.mjs} +3 -3
  43. package/dist/cli/{db-KTJSJ6LJ.mjs → db-M2ONKJRD.mjs} +4 -4
  44. package/dist/cli/{db-EJHH7IBM.js → db-VYSLD53P.js} +29 -29
  45. package/dist/cli/{describe-ZQXDXWKZ.js → describe-2XFXS2SX.js} +15 -15
  46. package/dist/cli/{describe-2GXTRRSJ.mjs → describe-W6FCAXZR.mjs} +8 -8
  47. package/dist/cli/{executions-ZFEW2R3V.mjs → executions-OUP6IVMO.mjs} +4 -4
  48. package/dist/cli/{executions-FEBZXTAI.js → executions-P7EK3RC7.js} +6 -6
  49. package/dist/cli/{feedback-BYMYIBHU.mjs → feedback-Q5QTIZSG.mjs} +3 -3
  50. package/dist/cli/{feedback-F3LKI327.js → feedback-UHG2PISO.js} +7 -7
  51. package/dist/cli/{git-A3V2AKGA.mjs → git-DMG3Z36A.mjs} +4 -4
  52. package/dist/cli/git-IQRVNMQL.js +23 -0
  53. package/dist/cli/index.js +79 -79
  54. package/dist/cli/index.mjs +31 -31
  55. package/dist/cli/{legacy-noops-IMOMP5NH.mjs → legacy-noops-ARAPGQUN.mjs} +4 -4
  56. package/dist/cli/{legacy-noops-TYXWVLSD.js → legacy-noops-DZJRLQUN.js} +7 -7
  57. package/dist/cli/{monitors-PJWHKJAG.mjs → monitors-7GSSQILT.mjs} +4 -4
  58. package/dist/cli/{monitors-BG2EP4M2.js → monitors-B7HLL45A.js} +85 -85
  59. package/dist/cli/{org-CVCRHGQF.mjs → org-UR72VY3A.mjs} +4 -4
  60. package/dist/cli/{org-NM7EROYH.js → org-VIY2LH6L.js} +60 -60
  61. package/dist/cli/{play-ESB6ZDMP.mjs → play-ATTKGZLK.mjs} +7 -7
  62. package/dist/cli/play-FT7EUE2Y.js +153 -0
  63. package/dist/cli/{providers-EXITLSJG.js → providers-RDOEU4FO.js} +7 -7
  64. package/dist/cli/{providers-BPDX7QBF.mjs → providers-ZBZED4TK.mjs} +4 -4
  65. package/dist/cli/{quickstart-P5HLSTZB.mjs → quickstart-JT5FW7EB.mjs} +3 -3
  66. package/dist/cli/{quickstart-55MBPFRI.js → quickstart-Y2GPRMC7.js} +5 -5
  67. package/dist/cli/{search-UJ3KOFZV.mjs → search-73OTM3ZZ.mjs} +5 -5
  68. package/dist/cli/search-LHD6BP42.js +26 -0
  69. package/dist/cli/{secrets-XJCZM2M2.mjs → secrets-AHDWUIVL.mjs} +4 -4
  70. package/dist/cli/{secrets-TLV2Q4Z5.js → secrets-EEXG43XS.js} +13 -13
  71. package/dist/cli/{sessions-4XMG3DEE.mjs → sessions-LDZMTST4.mjs} +4 -4
  72. package/dist/cli/{sessions-DJWLUVXM.js → sessions-SHSSRPN5.js} +5 -5
  73. package/dist/cli/{settings-KBNCPN3E.js → settings-FMM4KYDS.js} +74 -74
  74. package/dist/cli/{settings-3ZGLOANJ.mjs → settings-JBCSG3JV.mjs} +7 -7
  75. package/dist/cli/{setup-R3UV4ZXN.mjs → setup-4M6GZEV6.mjs} +6 -6
  76. package/dist/cli/{setup-WZZXC7H5.js → setup-VF3WHT2K.js} +41 -41
  77. package/dist/cli/{skills-44RXNHZH.mjs → skills-5GSHPGQR.mjs} +4 -4
  78. package/dist/cli/skills-RKY6BV2Y.js +28 -0
  79. package/dist/cli/{tools-NLUPNYR3.mjs → tools-7G6TW3MO.mjs} +6 -6
  80. package/dist/cli/tools-RSVWPCZT.js +40 -0
  81. package/dist/cli/{update-57GQJRXF.mjs → update-NY2LA7HX.mjs} +6 -6
  82. package/dist/cli/update-ZD7UN6FA.js +28 -0
  83. package/dist/cli/{workflow-ARCLSKBC.mjs → workflow-JPNJ5D2W.mjs} +5 -5
  84. package/dist/cli/{workflow-XI7LZRTQ.js → workflow-TZ4UU3MV.js} +15 -15
  85. package/dist/index.js +6 -6
  86. package/dist/index.mjs +3 -3
  87. package/dist/install-integrity.json +74 -74
  88. package/dist/release.d.mts +1 -1
  89. package/dist/release.d.ts +1 -1
  90. package/dist/release.js +2 -2
  91. package/dist/release.mjs +1 -1
  92. package/package.json +1 -1
  93. package/dist/cli/auth-YHS2NN4I.js +0 -31
  94. package/dist/cli/client-F47WSZBF.js +0 -20
  95. package/dist/cli/git-PWHYGNBR.js +0 -23
  96. package/dist/cli/play-MYWKV6MH.js +0 -153
  97. package/dist/cli/search-2JFDCWWK.js +0 -26
  98. package/dist/cli/skills-52WTBX7A.js +0 -28
  99. package/dist/cli/tools-4ESTBMSN.js +0 -40
  100. package/dist/cli/update-V2FZCYNP.js +0 -28
@@ -15,7 +15,7 @@ var _chunkLA46MMTLjs = require('./chunk-LA46MMTL.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkGVJPI7MBjs = require('./chunk-GVJPI7MB.js');
18
+ var _chunkZIUELPGRjs = require('./chunk-ZIUELPGR.js');
19
19
 
20
20
 
21
21
 
@@ -167,7 +167,7 @@ async function queryCustomerDatabase(http, input) {
167
167
  if (error instanceof _chunk7P5AA3SNjs.DeeplineError && (_optionalChain([error, 'access', _2 => _2.code, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("NETWORK_")]) || // Older API readers return PostgreSQL errors as HTTP 400, including
168
168
  // lost connections and explicitly unknown transaction resolution.
169
169
  /^08[A-Z0-9]{3}$/.test(_nullishCoalesce(error.code, () => ( ""))) || ["57P01", "57P02", "57P03"].includes(_nullishCoalesce(error.code, () => ( ""))) || error.statusCode === 408 || (_nullishCoalesce(error.statusCode, () => ( 0))) >= 500)) {
170
- throw new (0, _chunkGVJPI7MBjs.CustomerDbQueryOutcomeUnknownError)(
170
+ throw new (0, _chunkZIUELPGRjs.CustomerDbQueryOutcomeUnknownError)(
171
171
  error,
172
172
  plan.request.body.operation_key
173
173
  );
@@ -175,7 +175,7 @@ async function queryCustomerDatabase(http, input) {
175
175
  throw error;
176
176
  }
177
177
  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) {
178
- throw new (0, _chunkGVJPI7MBjs.CustomerDbQueryOutcomeUnknownError)(
178
+ throw new (0, _chunkZIUELPGRjs.CustomerDbQueryOutcomeUnknownError)(
179
179
  new (0, _chunk7P5AA3SNjs.DeeplineError)(
180
180
  "The SQL response did not contain a valid result.",
181
181
  200,
@@ -186,7 +186,7 @@ async function queryCustomerDatabase(http, input) {
186
186
  }
187
187
  const operation = result.operation;
188
188
  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))) {
189
- throw new (0, _chunkGVJPI7MBjs.CustomerDbQueryOutcomeUnknownError)(
189
+ throw new (0, _chunkZIUELPGRjs.CustomerDbQueryOutcomeUnknownError)(
190
190
  new (0, _chunk7P5AA3SNjs.DeeplineError)(
191
191
  "The server did not confirm the original atomic SQL operation.",
192
192
  200,
@@ -2910,8 +2910,8 @@ function runtimeSelectionHeaders(runtime) {
2910
2910
  }
2911
2911
  const receivers = _optionalChain([process, 'access', _104 => _104.env, 'access', _105 => _105.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _106 => _106.trim, 'call', _107 => _107()]);
2912
2912
  return {
2913
- [_chunkGVJPI7MBjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2914
- ...receivers ? { [_chunkGVJPI7MBjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2913
+ [_chunkZIUELPGRjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2914
+ ...receivers ? { [_chunkZIUELPGRjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2915
2915
  };
2916
2916
  }
2917
2917
  function isolatedCiRuntimeEventReadHeaders() {
@@ -2927,7 +2927,7 @@ function isolatedCiRuntimeEventReadHeaders() {
2927
2927
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
2928
2928
  );
2929
2929
  }
2930
- return { [_chunkGVJPI7MBjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2930
+ return { [_chunkZIUELPGRjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2931
2931
  }
2932
2932
  function normalizeTestPolicyOverrides(value, source) {
2933
2933
  if (value && typeof value === "object" && !Array.isArray(value)) {
@@ -3217,8 +3217,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
3217
3217
  * @throws {@link ConfigError} if no API key can be resolved from any source.
3218
3218
  */
3219
3219
  constructor(options) {
3220
- this.config = _chunkGVJPI7MBjs.resolveConfig.call(void 0, options);
3221
- this.http = new (0, _chunkGVJPI7MBjs.HttpClient)(this.config);
3220
+ this.config = _chunkZIUELPGRjs.resolveConfig.call(void 0, options);
3221
+ this.http = new (0, _chunkZIUELPGRjs.HttpClient)(this.config);
3222
3222
  this.toolCalls = new ToolCalls(
3223
3223
  this.http,
3224
3224
  this.config.timeout,
@@ -3,7 +3,7 @@ import {
3
3
  detectAgentRuntime,
4
4
  resolveCliCommandContext,
5
5
  resolveConfig
6
- } from "./chunk-VWSEZMCR.mjs";
6
+ } from "./chunk-H4MOKDCV.mjs";
7
7
  import {
8
8
  DeeplineError
9
9
  } from "./chunk-NXGCO4JB.mjs";
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  DeeplineClient
3
- } from "./chunk-35PLGSH6.mjs";
3
+ } from "./chunk-VC7D7OXL.mjs";
4
4
  import {
5
5
  printCommandEnvelope,
6
6
  renderCommandEnvelopeText
7
- } from "./chunk-5AZNXX2S.mjs";
7
+ } from "./chunk-4ODBHH6X.mjs";
8
8
  import {
9
9
  resolveConfig,
10
10
  sdkCliStateDirPath
11
- } from "./chunk-VWSEZMCR.mjs";
11
+ } from "./chunk-H4MOKDCV.mjs";
12
12
 
13
13
  // src/cli/commands/search.ts
14
14
  import { Option } from "commander";
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkEWYHXSV4js = require('./chunk-EWYHXSV4.js');
5
+ var _chunk2COBRUUHjs = require('./chunk-2COBRUUH.js');
6
6
 
7
7
 
8
8
 
@@ -25,7 +25,7 @@ var _chunkEWYHXSV4js = require('./chunk-EWYHXSV4.js');
25
25
 
26
26
 
27
27
 
28
- var _chunkGVJPI7MBjs = require('./chunk-GVJPI7MB.js');
28
+ var _chunkZIUELPGRjs = require('./chunk-ZIUELPGR.js');
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
 
@@ -52,7 +52,7 @@ function statusBannerLine(value) {
52
52
  return `Service notice: ${banner.message}`;
53
53
  }
54
54
  function envFilePath(baseUrl) {
55
- return _chunkGVJPI7MBjs.hostEnvFilePath.call(void 0, baseUrl);
55
+ return _chunkZIUELPGRjs.hostEnvFilePath.call(void 0, baseUrl);
56
56
  }
57
57
  function normalizeAuthScope(value) {
58
58
  if (!value || value === "global") return "global";
@@ -65,7 +65,7 @@ function parseAuthScope(args) {
65
65
  }
66
66
  function pendingClaimPath(baseUrl, scope) {
67
67
  if (scope === "folder") {
68
- const target = _chunkGVJPI7MBjs.resolveProjectPinTarget.call(void 0, );
68
+ const target = _chunkZIUELPGRjs.resolveProjectPinTarget.call(void 0, );
69
69
  if (!target.ok) {
70
70
  throw new Error(
71
71
  `Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
@@ -75,10 +75,10 @@ function pendingClaimPath(baseUrl, scope) {
75
75
  }
76
76
  return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
77
77
  }
78
- return `${_chunkGVJPI7MBjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
78
+ return `${_chunkZIUELPGRjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
79
79
  }
80
80
  function legacyPendingClaimTokenPath(baseUrl) {
81
- return `${_chunkGVJPI7MBjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
81
+ return `${_chunkZIUELPGRjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
82
82
  }
83
83
  function savePendingClaim(baseUrl, claim) {
84
84
  const filePath = pendingClaimPath(baseUrl, claim.scope);
@@ -180,21 +180,21 @@ function parseRegisterWaitMode(args) {
180
180
  function shouldWaitForRegisterClaim(mode) {
181
181
  if (mode === "yes") return true;
182
182
  if (mode === "no") return false;
183
- return _chunkGVJPI7MBjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
183
+ return _chunkZIUELPGRjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
184
184
  }
185
185
  function saveEnvValues(values, baseUrl, scope) {
186
186
  const filtered = {
187
- ...values[_chunkGVJPI7MBjs.HOST_URL_ENV] ? { [_chunkGVJPI7MBjs.HOST_URL_ENV]: values[_chunkGVJPI7MBjs.HOST_URL_ENV] } : {},
188
- ...values[_chunkGVJPI7MBjs.API_KEY_ENV] ? { [_chunkGVJPI7MBjs.API_KEY_ENV]: values[_chunkGVJPI7MBjs.API_KEY_ENV] } : {},
189
- ...values[_chunkGVJPI7MBjs.ACTIVE_ORG_ID_ENV] ? { [_chunkGVJPI7MBjs.ACTIVE_ORG_ID_ENV]: values[_chunkGVJPI7MBjs.ACTIVE_ORG_ID_ENV] } : {},
190
- ...Object.prototype.hasOwnProperty.call(values, _chunkGVJPI7MBjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkGVJPI7MBjs.ACTIVE_ORG_NAME_ENV]: values[_chunkGVJPI7MBjs.ACTIVE_ORG_NAME_ENV] } : {},
187
+ ...values[_chunkZIUELPGRjs.HOST_URL_ENV] ? { [_chunkZIUELPGRjs.HOST_URL_ENV]: values[_chunkZIUELPGRjs.HOST_URL_ENV] } : {},
188
+ ...values[_chunkZIUELPGRjs.API_KEY_ENV] ? { [_chunkZIUELPGRjs.API_KEY_ENV]: values[_chunkZIUELPGRjs.API_KEY_ENV] } : {},
189
+ ...values[_chunkZIUELPGRjs.ACTIVE_ORG_ID_ENV] ? { [_chunkZIUELPGRjs.ACTIVE_ORG_ID_ENV]: values[_chunkZIUELPGRjs.ACTIVE_ORG_ID_ENV] } : {},
190
+ ...Object.prototype.hasOwnProperty.call(values, _chunkZIUELPGRjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkZIUELPGRjs.ACTIVE_ORG_NAME_ENV]: values[_chunkZIUELPGRjs.ACTIVE_ORG_NAME_ENV] } : {},
191
191
  // An explicit empty list must reach the store: it clears a stale line.
192
- ...Object.prototype.hasOwnProperty.call(values, _chunkGVJPI7MBjs.FEATURES_ENV) ? { [_chunkGVJPI7MBjs.FEATURES_ENV]: values[_chunkGVJPI7MBjs.FEATURES_ENV] } : {}
192
+ ...Object.prototype.hasOwnProperty.call(values, _chunkZIUELPGRjs.FEATURES_ENV) ? { [_chunkZIUELPGRjs.FEATURES_ENV]: values[_chunkZIUELPGRjs.FEATURES_ENV] } : {}
193
193
  };
194
194
  if (scope === "folder") {
195
- _chunkGVJPI7MBjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
195
+ _chunkZIUELPGRjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
196
196
  } else {
197
- _chunkGVJPI7MBjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
197
+ _chunkZIUELPGRjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
198
198
  }
199
199
  }
200
200
  function activeOrgEnvValues(data) {
@@ -202,21 +202,21 @@ function activeOrgEnvValues(data) {
202
202
  if (!orgId) return {};
203
203
  const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
204
204
  return {
205
- [_chunkGVJPI7MBjs.ACTIVE_ORG_ID_ENV]: orgId,
206
- [_chunkGVJPI7MBjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
- ..._chunkGVJPI7MBjs.featureEnvValues.call(void 0, data)
205
+ [_chunkZIUELPGRjs.ACTIVE_ORG_ID_ENV]: orgId,
206
+ [_chunkZIUELPGRjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
+ ..._chunkZIUELPGRjs.featureEnvValues.call(void 0, data)
208
208
  };
209
209
  }
210
210
  async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
211
211
  const headers = {
212
212
  "Content-Type": "application/json",
213
- "User-Agent": `deepline-ts-sdk/${_chunkGVJPI7MBjs.SDK_VERSION}`,
213
+ "User-Agent": `deepline-ts-sdk/${_chunkZIUELPGRjs.SDK_VERSION}`,
214
214
  "X-Deepline-Client-Family": "sdk",
215
215
  "X-Deepline-CLI-Family": "sdk",
216
- "X-Deepline-Agent-Runtime": _chunkGVJPI7MBjs.detectAgentRuntime.call(void 0, ),
217
- "X-Deepline-CLI-Version": _chunkGVJPI7MBjs.SDK_VERSION,
218
- "X-Deepline-SDK-Version": _chunkGVJPI7MBjs.SDK_VERSION,
219
- "X-Deepline-API-Contract": _chunkGVJPI7MBjs.SDK_API_CONTRACT
216
+ "X-Deepline-Agent-Runtime": _chunkZIUELPGRjs.detectAgentRuntime.call(void 0, ),
217
+ "X-Deepline-CLI-Version": _chunkZIUELPGRjs.SDK_VERSION,
218
+ "X-Deepline-SDK-Version": _chunkZIUELPGRjs.SDK_VERSION,
219
+ "X-Deepline-API-Contract": _chunkZIUELPGRjs.SDK_API_CONTRACT
220
220
  };
221
221
  if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
222
222
  const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
@@ -254,7 +254,7 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
254
254
  throw lastError instanceof Error ? lastError : new Error(String(lastError));
255
255
  }
256
256
  async function reportSetupCompleted(input) {
257
- const apiKey = input.authScope === "folder" ? _chunkGVJPI7MBjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkGVJPI7MBjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
257
+ const apiKey = input.authScope === "folder" ? _chunkZIUELPGRjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkZIUELPGRjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
258
258
  if (!apiKey) return;
259
259
  try {
260
260
  await httpJson(
@@ -351,7 +351,7 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
351
351
  }
352
352
  }
353
353
  async function handleRegister(args) {
354
- const baseUrl = _chunkGVJPI7MBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
354
+ const baseUrl = _chunkZIUELPGRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
355
355
  let orgName = "";
356
356
  let orgId = "";
357
357
  let agentName = "";
@@ -406,19 +406,19 @@ async function handleRegister(args) {
406
406
  });
407
407
  saveEnvValues(
408
408
  {
409
- [_chunkGVJPI7MBjs.HOST_URL_ENV]: baseUrl
409
+ [_chunkZIUELPGRjs.HOST_URL_ENV]: baseUrl
410
410
  },
411
411
  baseUrl,
412
412
  authScope
413
413
  );
414
414
  }
415
415
  if (claimUrl) {
416
- const shouldOpen = waitMode !== "no" && _chunkGVJPI7MBjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
416
+ const shouldOpen = waitMode !== "no" && _chunkZIUELPGRjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
417
417
  console.log(
418
418
  shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
419
419
  );
420
420
  console.log(` ${claimUrl}`);
421
- if (shouldOpen) _chunkEWYHXSV4js.openInBrowser.call(void 0, claimUrl);
421
+ if (shouldOpen) _chunk2COBRUUHjs.openInBrowser.call(void 0, claimUrl);
422
422
  }
423
423
  if (data.cli_message) {
424
424
  console.log(String(data.cli_message));
@@ -461,8 +461,8 @@ async function handleRegister(args) {
461
461
  if (apiKey) {
462
462
  saveEnvValues(
463
463
  {
464
- [_chunkGVJPI7MBjs.HOST_URL_ENV]: baseUrl,
465
- [_chunkGVJPI7MBjs.API_KEY_ENV]: apiKey,
464
+ [_chunkZIUELPGRjs.HOST_URL_ENV]: baseUrl,
465
+ [_chunkZIUELPGRjs.API_KEY_ENV]: apiKey,
466
466
  ...activeOrgEnvValues(statusData)
467
467
  },
468
468
  baseUrl,
@@ -484,7 +484,7 @@ async function handleRegister(args) {
484
484
  }
485
485
  }
486
486
  async function handleWait(args) {
487
- const baseUrl = _chunkGVJPI7MBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
487
+ const baseUrl = _chunkZIUELPGRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
488
488
  let timeoutSeconds = 300;
489
489
  let requestedScope;
490
490
  if (args.includes("--auth-scope")) {
@@ -508,7 +508,7 @@ async function handleWait(args) {
508
508
  const authScope = resumed.scope;
509
509
  const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _11 => _11.claimToken]), () => ( ""));
510
510
  if (!pendingClaim) {
511
- const scopedApiKey = authScope === "folder" ? _chunkGVJPI7MBjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkGVJPI7MBjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
511
+ const scopedApiKey = authScope === "folder" ? _chunkZIUELPGRjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkZIUELPGRjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
512
512
  if (scopedApiKey) {
513
513
  console.log("Already connected.");
514
514
  return EXIT_OK;
@@ -551,8 +551,8 @@ async function handleWait(args) {
551
551
  if (apiKey) {
552
552
  saveEnvValues(
553
553
  {
554
- [_chunkGVJPI7MBjs.HOST_URL_ENV]: baseUrl,
555
- [_chunkGVJPI7MBjs.API_KEY_ENV]: apiKey,
554
+ [_chunkZIUELPGRjs.HOST_URL_ENV]: baseUrl,
555
+ [_chunkZIUELPGRjs.API_KEY_ENV]: apiKey,
556
556
  ...activeOrgEnvValues(data)
557
557
  },
558
558
  baseUrl,
@@ -576,9 +576,9 @@ async function handleWait(args) {
576
576
  return EXIT_AUTH;
577
577
  }
578
578
  async function handleStatus(args) {
579
- const baseUrl = _chunkGVJPI7MBjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
579
+ const baseUrl = _chunkZIUELPGRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
580
580
  const reveal = args.includes("--reveal");
581
- const jsonOutput = _chunkEWYHXSV4js.argsWantJson.call(void 0, args);
581
+ const jsonOutput = _chunk2COBRUUHjs.argsWantJson.call(void 0, args);
582
582
  const hasExplicitAuthScope = args.includes("--auth-scope");
583
583
  let authScope = null;
584
584
  if (hasExplicitAuthScope) {
@@ -618,14 +618,14 @@ async function handleStatus(args) {
618
618
  };
619
619
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
620
620
  }
621
- const apiKey = authScope === "folder" ? _chunkGVJPI7MBjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkGVJPI7MBjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkGVJPI7MBjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
621
+ const apiKey = authScope === "folder" ? _chunkZIUELPGRjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkZIUELPGRjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkZIUELPGRjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
622
622
  if (!apiKey) {
623
623
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
624
624
  baseUrl,
625
625
  _nullishCoalesce(authScope, () => ( void 0))
626
626
  );
627
627
  if (pendingClaim) {
628
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
628
+ _chunk2COBRUUHjs.printCommandEnvelope.call(void 0,
629
629
  {
630
630
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
631
631
  status: "pending",
@@ -646,7 +646,7 @@ async function handleStatus(args) {
646
646
  );
647
647
  return EXIT_OK;
648
648
  }
649
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
649
+ _chunk2COBRUUHjs.printCommandEnvelope.call(void 0,
650
650
  {
651
651
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
652
652
  status: "not connected",
@@ -679,7 +679,7 @@ async function handleStatus(args) {
679
679
  }
680
680
  );
681
681
  if (status === 401 || status === 403) {
682
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
682
+ _chunk2COBRUUHjs.printCommandEnvelope.call(void 0,
683
683
  {
684
684
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
685
685
  status: "unauthorized",
@@ -706,7 +706,7 @@ async function handleStatus(args) {
706
706
  console.error(`Auth status error (status ${status}).`);
707
707
  return EXIT_SERVER;
708
708
  }
709
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkGVJPI7MBjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
709
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkZIUELPGRjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
710
710
  clearSatisfiedPendingClaim(
711
711
  baseUrl,
712
712
  resolvedAuthScope,
@@ -734,28 +734,28 @@ async function handleStatus(args) {
734
734
  if (apiKeyResp) {
735
735
  saveEnvValues(
736
736
  {
737
- [_chunkGVJPI7MBjs.HOST_URL_ENV]: baseUrl,
738
- [_chunkGVJPI7MBjs.API_KEY_ENV]: apiKeyResp,
737
+ [_chunkZIUELPGRjs.HOST_URL_ENV]: baseUrl,
738
+ [_chunkZIUELPGRjs.API_KEY_ENV]: apiKeyResp,
739
739
  ...activeOrgEnvValues(data)
740
740
  },
741
741
  baseUrl,
742
742
  resolvedAuthScope
743
743
  );
744
744
  if (resolvedAuthScope === "folder") {
745
- const target = _chunkGVJPI7MBjs.resolveProjectPinTarget.call(void 0, );
745
+ const target = _chunkZIUELPGRjs.resolveProjectPinTarget.call(void 0, );
746
746
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
747
747
  } else {
748
748
  savedApiKeyPath = envFilePath(baseUrl);
749
749
  }
750
750
  }
751
- } else if (resolvedAuthScope === "folder" || _chunkGVJPI7MBjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
752
- saveEnvValues(_chunkGVJPI7MBjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
751
+ } else if (resolvedAuthScope === "folder" || _chunkZIUELPGRjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
752
+ saveEnvValues(_chunkZIUELPGRjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
753
753
  }
754
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
754
+ _chunk2COBRUUHjs.printCommandEnvelope.call(void 0,
755
755
  {
756
756
  ...payload,
757
- ..._chunkGVJPI7MBjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
758
- command_context: _chunkGVJPI7MBjs.resolveCliCommandContext.call(void 0,
757
+ ..._chunkZIUELPGRjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
758
+ command_context: _chunkZIUELPGRjs.resolveCliCommandContext.call(void 0,
759
759
  { baseUrl, apiKey },
760
760
  resolvedAuthScope
761
761
  )
@@ -11,11 +11,11 @@ import {
11
11
  } from "./chunk-EDWJY6T4.mjs";
12
12
  import {
13
13
  registerDeprecatedSearchCommand
14
- } from "./chunk-CA7RR4UD.mjs";
14
+ } from "./chunk-5ZFDADDM.mjs";
15
15
  import {
16
16
  handleDeploymentGet,
17
17
  handleDeploymentsList
18
- } from "./chunk-MM6X5ADB.mjs";
18
+ } from "./chunk-WWJOE6JQ.mjs";
19
19
  import {
20
20
  PLAY_BOOTSTRAP_COMPANY_PROVIDER_CATEGORY,
21
21
  PLAY_BOOTSTRAP_OUTPUT_FIELD_BY_FINDER,
@@ -40,7 +40,7 @@ import {
40
40
  normalizeRunEventOperationRequest,
41
41
  parseLogLevel,
42
42
  playInputExampleArgs
43
- } from "./chunk-35PLGSH6.mjs";
43
+ } from "./chunk-VC7D7OXL.mjs";
44
44
  import {
45
45
  CSV_DATA_INPUT_KEY,
46
46
  buildNamedPlayRunRequest,
@@ -73,10 +73,10 @@ import {
73
73
  printJsonError,
74
74
  renderCommandEnvelopeText,
75
75
  shouldEmitJson
76
- } from "./chunk-5AZNXX2S.mjs";
76
+ } from "./chunk-4ODBHH6X.mjs";
77
77
  import {
78
78
  fetchWithDeploymentProtection
79
- } from "./chunk-VWSEZMCR.mjs";
79
+ } from "./chunk-H4MOKDCV.mjs";
80
80
  import {
81
81
  PLAY_DEFAULT_EXPORT,
82
82
  extractDefinedPlayName,
@@ -18160,7 +18160,7 @@ Examples:
18160
18160
  process.exitCode = await ownView();
18161
18161
  return;
18162
18162
  }
18163
- const { describeAnything } = await import("./describe-2GXTRRSJ.mjs");
18163
+ const { describeAnything } = await import("./describe-W6FCAXZR.mjs");
18164
18164
  process.exitCode = await describeAnything(
18165
18165
  name,
18166
18166
  {
@@ -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 _chunkEWYHXSV4js = require('./chunk-EWYHXSV4.js');
4
+ var _chunk2COBRUUHjs = require('./chunk-2COBRUUH.js');
5
5
 
6
6
 
7
- var _chunkGVJPI7MBjs = require('./chunk-GVJPI7MB.js');
7
+ var _chunkZIUELPGRjs = require('./chunk-ZIUELPGR.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 = _chunkGVJPI7MBjs.agentSessionIdFromEnvironment.call(void 0, );
142
+ const sessionId = _chunkZIUELPGRjs.agentSessionIdFromEnvironment.call(void 0, );
143
143
  const cwd = process.cwd();
144
144
  return _nullishCoalesce(_nullishCoalesce(_nullishCoalesce(newestFirst.find((candidate) => candidate.sessionId === sessionId), () => ( newestFirst.find(
145
145
  (candidate) => sessionStartedInDirectory(candidate, cwd)
@@ -448,7 +448,7 @@ function buildSessionUploadContent(raw) {
448
448
  return { encodedContent: encoded, needsChunking: true };
449
449
  }
450
450
  async function uploadPayload(path, payload) {
451
- const { http } = _chunkEWYHXSV4js.getAuthedHttpClient.call(void 0, );
451
+ const { http } = _chunk2COBRUUHjs.getAuthedHttpClient.call(void 0, );
452
452
  return await http.post(path, payload);
453
453
  }
454
454
  async function uploadChunkedSessions(sessions, options) {
@@ -481,7 +481,7 @@ async function uploadChunkedSessions(sessions, options) {
481
481
  ...options.rating ? { rating: options.rating } : {}
482
482
  });
483
483
  const sessionIds = sessions.map((session) => session.sessionId);
484
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
484
+ _chunk2COBRUUHjs.printCommandEnvelope.call(void 0,
485
485
  {
486
486
  ...response,
487
487
  ok: true,
@@ -513,7 +513,7 @@ async function handleSessionsSend(options) {
513
513
  filename: _path.basename.call(void 0, filePath),
514
514
  ...rating ? { rating } : {}
515
515
  });
516
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
516
+ _chunk2COBRUUHjs.printCommandEnvelope.call(void 0,
517
517
  {
518
518
  ...response2,
519
519
  ok: true,
@@ -563,7 +563,7 @@ async function handleSessionsSend(options) {
563
563
  ...rating ? { rating } : {}
564
564
  });
565
565
  const sessionIds = built.map((session) => session.sessionId);
566
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
566
+ _chunk2COBRUUHjs.printCommandEnvelope.call(void 0,
567
567
  {
568
568
  ...response,
569
569
  ok: true,
@@ -671,7 +671,7 @@ ${refreshMeta}
671
671
  </body>
672
672
  </html>`;
673
673
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
674
- _chunkEWYHXSV4js.printCommandEnvelope.call(void 0,
674
+ _chunk2COBRUUHjs.printCommandEnvelope.call(void 0,
675
675
  {
676
676
  ok: true,
677
677
  file: outputPath,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-BAJXRIRP.mjs";
3
+ } from "./chunk-2NI75UNO.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -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.348",
52
+ version: "0.3.350",
53
53
  updateSummary: "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.",
54
54
  packageCapabilities: {
55
55
  updatePreferences: 1
@@ -4,7 +4,7 @@ import {
4
4
  } from "./chunk-DLIRSHV6.mjs";
5
5
  import {
6
6
  SDK_RELEASE
7
- } from "./chunk-2G7KMDDI.mjs";
7
+ } from "./chunk-NZMVPYBQ.mjs";
8
8
  import {
9
9
  DeeplineError,
10
10
  TOOL_EXECUTION_ERROR_SCHEMA_VERSION,