deepline 0.3.403 → 0.3.404

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 (89) 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.ts +114 -50
  3. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +6 -2
  4. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +379 -133
  5. package/dist/cli/{auth-AHF355KV.mjs → auth-DVJWHHC3.mjs} +4 -4
  6. package/dist/cli/auth-UIC53AE2.js +40 -0
  7. package/dist/cli/{billing-LSZECOCV.mjs → billing-7UDFOLCT.mjs} +4 -4
  8. package/dist/cli/{billing-5L5X2OAC.js → billing-MHS6WS77.js} +73 -73
  9. package/dist/cli/{chunk-MJ4OWXFM.js → chunk-7CFSSEN3.js} +44 -44
  10. package/dist/cli/{chunk-QN55SQYI.mjs → chunk-ANL3NJV5.mjs} +5 -5
  11. package/dist/cli/{chunk-5SGQF4QF.js → chunk-AYUR2RZ6.js} +8 -8
  12. package/dist/cli/{chunk-57GMG2DV.js → chunk-B2BO6G7L.js} +26 -26
  13. package/dist/cli/{chunk-DJSPH5T2.js → chunk-CBMYUXAT.js} +6 -6
  14. package/dist/cli/{chunk-BYBRENKM.mjs → chunk-DSXMTZ64.mjs} +1 -1
  15. package/dist/cli/{chunk-CC3QT7Q5.mjs → chunk-EDSBH6W7.mjs} +2 -2
  16. package/dist/cli/{chunk-GJECLPJP.mjs → chunk-FF2H4YLR.mjs} +4 -4
  17. package/dist/cli/{chunk-V4PLPRWQ.js → chunk-GPWTKORH.js} +4 -4
  18. package/dist/cli/{chunk-RXVJYS76.mjs → chunk-JJZOGHEF.mjs} +1 -1
  19. package/dist/cli/{chunk-MQWZYCQJ.mjs → chunk-KTWTQPYM.mjs} +2 -2
  20. package/dist/cli/{chunk-SGPGIC3M.js → chunk-L3JGXPGB.js} +50 -50
  21. package/dist/cli/{chunk-HPEIY4UR.mjs → chunk-M55M5LDV.mjs} +3 -3
  22. package/dist/cli/{chunk-JHNYOTWR.mjs → chunk-NRI4TJVF.mjs} +1 -1
  23. package/dist/cli/{chunk-4BWZA57I.js → chunk-ODKHUBU3.js} +6 -6
  24. package/dist/cli/{chunk-VNO3VAJT.mjs → chunk-OHGXSFDQ.mjs} +1 -1
  25. package/dist/cli/{chunk-VYDYDELF.js → chunk-OPGILU75.js} +65 -65
  26. package/dist/cli/{chunk-B4Y2CZKS.mjs → chunk-TFIB4VNU.mjs} +2 -2
  27. package/dist/cli/{chunk-77FZLY5L.js → chunk-URQAM7RR.js} +1 -1
  28. package/dist/cli/{chunk-JZ7TJL7G.js → chunk-V5DPHNTE.js} +2 -2
  29. package/dist/cli/{chunk-KTBMDDEQ.mjs → chunk-VPCIT5N6.mjs} +3 -3
  30. package/dist/cli/{chunk-FQL75GML.js → chunk-W3SACRLJ.js} +8 -8
  31. package/dist/cli/{chunk-C27DGNII.mjs → chunk-XKVJZ5JC.mjs} +1 -1
  32. package/dist/cli/{chunk-J3OZIYU4.js → chunk-Y5QWK7SS.js} +15 -15
  33. package/dist/cli/{csv-IO2BKRNX.js → csv-7BXOAC3V.js} +12 -12
  34. package/dist/cli/{csv-J6ZPUWE4.mjs → csv-TG7SSGXW.mjs} +3 -3
  35. package/dist/cli/{db-ZVRBVSPU.js → db-BQCWAL3D.js} +25 -25
  36. package/dist/cli/{db-QICV6JWY.mjs → db-GBVIPT7D.mjs} +4 -4
  37. package/dist/cli/{describe-WX6VWGH6.js → describe-3ROS6TC6.js} +10 -10
  38. package/dist/cli/{describe-YA35XS55.mjs → describe-6LP2CWEF.mjs} +6 -6
  39. package/dist/cli/{executions-X3PDLFKO.mjs → executions-4TJOBZOQ.mjs} +4 -4
  40. package/dist/cli/{executions-YQAUBJLS.js → executions-KCKC2KKP.js} +6 -6
  41. package/dist/cli/{feedback-M2WMOY5B.js → feedback-7T77UCIV.js} +7 -7
  42. package/dist/cli/{feedback-HSERSHDV.mjs → feedback-CGJNFV3G.mjs} +3 -3
  43. package/dist/cli/{git-3JMX455D.mjs → git-5E3HETBN.mjs} +4 -4
  44. package/dist/cli/git-DRUSBG74.js +24 -0
  45. package/dist/cli/index.js +89 -89
  46. package/dist/cli/index.mjs +32 -32
  47. package/dist/cli/{legacy-noops-OKC6VDD3.mjs → legacy-noops-4FGVQLLD.mjs} +4 -4
  48. package/dist/cli/{legacy-noops-EMUCJ5KW.js → legacy-noops-X5MCVE34.js} +7 -7
  49. package/dist/cli/{monitors-M6DU2JXC.js → monitors-OTAQWJH5.js} +84 -84
  50. package/dist/cli/{monitors-RH3FIA63.mjs → monitors-QRZEIITA.mjs} +4 -4
  51. package/dist/cli/{org-KK3C5J6E.mjs → org-A6KANSFR.mjs} +4 -4
  52. package/dist/cli/{org-BZDZO32O.js → org-B3JK2BND.js} +64 -64
  53. package/dist/cli/{play-QXBNDI6C.mjs → play-CN6DOFMT.mjs} +7 -7
  54. package/dist/cli/{play-ZKYHO2KC.js → play-HLDZVD47.js} +231 -231
  55. package/dist/cli/{providers-JRN5FNXI.mjs → providers-EVPLX6BG.mjs} +4 -4
  56. package/dist/cli/{providers-VCT7HFYW.js → providers-XGCTTZ7T.js} +7 -7
  57. package/dist/cli/{quickstart-Y33XAQDY.mjs → quickstart-HXORYMNO.mjs} +3 -3
  58. package/dist/cli/{quickstart-X2IC2U6U.js → quickstart-LTH2MZNQ.js} +5 -5
  59. package/dist/cli/search-MH6VAITK.js +30 -0
  60. package/dist/cli/{search-R443WBN7.mjs → search-S4JOGJMH.mjs} +5 -5
  61. package/dist/cli/{secrets-U6V4M7R3.js → secrets-JV3TPKE6.js} +13 -13
  62. package/dist/cli/{secrets-EUKR5NG2.mjs → secrets-VNHUBHLN.mjs} +4 -4
  63. package/dist/cli/{sessions-RZVHJSVB.mjs → sessions-CDBTN53U.mjs} +4 -4
  64. package/dist/cli/{sessions-IPKYJT4M.js → sessions-QYYFCXGY.js} +5 -5
  65. package/dist/cli/{settings-FKU7KJ24.mjs → settings-I6LQQCMK.mjs} +7 -7
  66. package/dist/cli/{settings-W4YFY5JJ.js → settings-YYZ2IHFU.js} +74 -74
  67. package/dist/cli/{setup-BEIN6536.js → setup-IZQI5RZA.js} +41 -41
  68. package/dist/cli/{setup-6WIECL4V.mjs → setup-X24RP6O7.mjs} +6 -6
  69. package/dist/cli/skills-U4MIVNPW.js +29 -0
  70. package/dist/cli/{skills-CV72BOP7.mjs → skills-UYIFSY2Y.mjs} +4 -4
  71. package/dist/cli/{tools-2ADAYBNB.js → tools-BLP2VRAN.js} +7 -7
  72. package/dist/cli/{tools-2SH4RIFD.mjs → tools-IR5JEQF6.mjs} +6 -6
  73. package/dist/cli/update-EIYE45GT.js +29 -0
  74. package/dist/cli/{update-YTR4JUPG.mjs → update-MXFLD3ZQ.mjs} +6 -6
  75. package/dist/cli/{workflow-446CNNRV.js → workflow-CZ6CXXOL.js} +15 -15
  76. package/dist/cli/{workflow-BBSL2QKK.mjs → workflow-QGY342J5.mjs} +5 -5
  77. package/dist/index.js +6 -6
  78. package/dist/index.mjs +3 -3
  79. package/dist/install-integrity.json +70 -70
  80. package/dist/release.d.mts +1 -1
  81. package/dist/release.d.ts +1 -1
  82. package/dist/release.js +2 -2
  83. package/dist/release.mjs +1 -1
  84. package/package.json +1 -1
  85. package/dist/cli/auth-O7A7JS2M.js +0 -40
  86. package/dist/cli/git-IUDHAE5O.js +0 -24
  87. package/dist/cli/search-7257KVSQ.js +0 -30
  88. package/dist/cli/skills-A7ATFQEL.js +0 -29
  89. package/dist/cli/update-AUYYCJUT.js +0 -29
@@ -24,7 +24,7 @@ var _chunkKXMNM4AQjs = require('./chunk-KXMNM4AQ.js');
24
24
 
25
25
 
26
26
 
27
- var _chunkV4PLPRWQjs = require('./chunk-V4PLPRWQ.js');
27
+ var _chunkGPWTKORHjs = require('./chunk-GPWTKORH.js');
28
28
 
29
29
 
30
30
  var _chunkQ2E4E4FJjs = require('./chunk-Q2E4E4FJ.js');
@@ -2889,8 +2889,8 @@ function runtimeSelectionHeaders(runtime, env) {
2889
2889
  }
2890
2890
  const receivers = _optionalChain([env, 'access', _97 => _97.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _98 => _98.trim, 'call', _99 => _99()]);
2891
2891
  return {
2892
- [_chunkV4PLPRWQjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2893
- ...receivers ? { [_chunkV4PLPRWQjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2892
+ [_chunkGPWTKORHjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
2893
+ ...receivers ? { [_chunkGPWTKORHjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
2894
2894
  };
2895
2895
  }
2896
2896
  function isolatedCiRuntimeEventReadHeaders(env) {
@@ -2906,7 +2906,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
2906
2906
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
2907
2907
  );
2908
2908
  }
2909
- return { [_chunkV4PLPRWQjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2909
+ return { [_chunkGPWTKORHjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
2910
2910
  }
2911
2911
  function normalizeTestPolicyOverrides(value, source) {
2912
2912
  if (value && typeof value === "object" && !Array.isArray(value)) {
@@ -3197,9 +3197,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
3197
3197
  * @throws {@link ConfigError} if no API key can be resolved from any source.
3198
3198
  */
3199
3199
  constructor(options) {
3200
- this.config = _chunkV4PLPRWQjs.resolveConfig.call(void 0, options);
3200
+ this.config = _chunkGPWTKORHjs.resolveConfig.call(void 0, options);
3201
3201
  this.environment = _nullishCoalesce(this.config.environment, () => ( process.env));
3202
- this.http = new (0, _chunkV4PLPRWQjs.HttpClient)(this.config);
3202
+ this.http = new (0, _chunkGPWTKORHjs.HttpClient)(this.config);
3203
3203
  this.toolCalls = new ToolCalls(
3204
3204
  this.http,
3205
3205
  this.config.timeout,
@@ -17,7 +17,7 @@ import {
17
17
  } from "./chunk-NXGCO4JB.mjs";
18
18
  import {
19
19
  SDK_RELEASE
20
- } from "./chunk-JHNYOTWR.mjs";
20
+ } from "./chunk-NRI4TJVF.mjs";
21
21
 
22
22
  // src/config.ts
23
23
  import {
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-VNO3VAJT.mjs";
5
+ } from "./chunk-OHGXSFDQ.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-BYBRENKM.mjs";
28
+ } from "./chunk-DSXMTZ64.mjs";
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
  import {
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  npmSupportsAllowScripts,
3
3
  readNpmVersion
4
- } from "./chunk-RXVJYS76.mjs";
4
+ } from "./chunk-JJZOGHEF.mjs";
5
5
  import {
6
6
  resolveShellSpawn,
7
7
  runSkillsCommand
8
- } from "./chunk-HPEIY4UR.mjs";
8
+ } from "./chunk-M55M5LDV.mjs";
9
9
  import {
10
10
  printCommandEnvelope
11
- } from "./chunk-VNO3VAJT.mjs";
11
+ } from "./chunk-OHGXSFDQ.mjs";
12
12
  import {
13
13
  autoDetectBaseUrl
14
- } from "./chunk-BYBRENKM.mjs";
14
+ } from "./chunk-DSXMTZ64.mjs";
15
15
 
16
16
  // src/cli/commands/update.ts
17
17
  import { spawn, spawnSync } from "child_process";
@@ -17,7 +17,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
17
17
  var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
18
18
 
19
19
 
20
- var _chunk77FZLY5Ljs = require('./chunk-77FZLY5L.js');
20
+ var _chunkURQAM7RRjs = require('./chunk-URQAM7RR.js');
21
21
 
22
22
  // src/config.ts
23
23
 
@@ -649,9 +649,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
649
649
  }
650
650
 
651
651
  // src/version.ts
652
- var SDK_VERSION = _chunk77FZLY5Ljs.SDK_RELEASE.version;
653
- var SDK_API_MAJOR = _chunk77FZLY5Ljs.SDK_RELEASE.contracts.api.currentMajor;
654
- var SDK_API_CONTRACT = _nullishCoalesce(_chunk77FZLY5Ljs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
652
+ var SDK_VERSION = _chunkURQAM7RRjs.SDK_RELEASE.version;
653
+ var SDK_API_MAJOR = _chunkURQAM7RRjs.SDK_RELEASE.contracts.api.currentMajor;
654
+ var SDK_API_CONTRACT = _nullishCoalesce(_chunkURQAM7RRjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
655
655
 
656
656
  // src/agent-runtime.ts
657
657
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  resolveShellSpawn
3
- } from "./chunk-HPEIY4UR.mjs";
3
+ } from "./chunk-M55M5LDV.mjs";
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  import { spawnSync } from "child_process";
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getAuthedHttpClient,
3
3
  printCommandEnvelope
4
- } from "./chunk-VNO3VAJT.mjs";
4
+ } from "./chunk-OHGXSFDQ.mjs";
5
5
  import {
6
6
  agentSessionIdFromEnvironment
7
- } from "./chunk-BYBRENKM.mjs";
7
+ } from "./chunk-DSXMTZ64.mjs";
8
8
 
9
9
  // src/cli/commands/sessions.ts
10
10
  import {
@@ -2,7 +2,7 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk4BWZA57Ijs = require('./chunk-4BWZA57I.js');
5
+ var _chunkODKHUBU3js = require('./chunk-ODKHUBU3.js');
6
6
 
7
7
 
8
8
 
@@ -25,7 +25,7 @@ var _chunk4BWZA57Ijs = require('./chunk-4BWZA57I.js');
25
25
 
26
26
 
27
27
 
28
- var _chunkV4PLPRWQjs = require('./chunk-V4PLPRWQ.js');
28
+ var _chunkGPWTKORHjs = require('./chunk-GPWTKORH.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 _chunkV4PLPRWQjs.hostEnvFilePath.call(void 0, baseUrl);
55
+ return _chunkGPWTKORHjs.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 = _chunkV4PLPRWQjs.resolveProjectPinTarget.call(void 0, );
68
+ const target = _chunkGPWTKORHjs.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 `${_chunkV4PLPRWQjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
78
+ return `${_chunkGPWTKORHjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
79
79
  }
80
80
  function legacyPendingClaimTokenPath(baseUrl) {
81
- return `${_chunkV4PLPRWQjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
81
+ return `${_chunkGPWTKORHjs.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 _chunkV4PLPRWQjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
183
+ return _chunkGPWTKORHjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
184
184
  }
185
185
  function saveEnvValues(values, baseUrl, scope) {
186
186
  const filtered = {
187
- ...values[_chunkV4PLPRWQjs.HOST_URL_ENV] ? { [_chunkV4PLPRWQjs.HOST_URL_ENV]: values[_chunkV4PLPRWQjs.HOST_URL_ENV] } : {},
188
- ...values[_chunkV4PLPRWQjs.API_KEY_ENV] ? { [_chunkV4PLPRWQjs.API_KEY_ENV]: values[_chunkV4PLPRWQjs.API_KEY_ENV] } : {},
189
- ...values[_chunkV4PLPRWQjs.ACTIVE_ORG_ID_ENV] ? { [_chunkV4PLPRWQjs.ACTIVE_ORG_ID_ENV]: values[_chunkV4PLPRWQjs.ACTIVE_ORG_ID_ENV] } : {},
190
- ...Object.prototype.hasOwnProperty.call(values, _chunkV4PLPRWQjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkV4PLPRWQjs.ACTIVE_ORG_NAME_ENV]: values[_chunkV4PLPRWQjs.ACTIVE_ORG_NAME_ENV] } : {},
187
+ ...values[_chunkGPWTKORHjs.HOST_URL_ENV] ? { [_chunkGPWTKORHjs.HOST_URL_ENV]: values[_chunkGPWTKORHjs.HOST_URL_ENV] } : {},
188
+ ...values[_chunkGPWTKORHjs.API_KEY_ENV] ? { [_chunkGPWTKORHjs.API_KEY_ENV]: values[_chunkGPWTKORHjs.API_KEY_ENV] } : {},
189
+ ...values[_chunkGPWTKORHjs.ACTIVE_ORG_ID_ENV] ? { [_chunkGPWTKORHjs.ACTIVE_ORG_ID_ENV]: values[_chunkGPWTKORHjs.ACTIVE_ORG_ID_ENV] } : {},
190
+ ...Object.prototype.hasOwnProperty.call(values, _chunkGPWTKORHjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkGPWTKORHjs.ACTIVE_ORG_NAME_ENV]: values[_chunkGPWTKORHjs.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, _chunkV4PLPRWQjs.FEATURES_ENV) ? { [_chunkV4PLPRWQjs.FEATURES_ENV]: values[_chunkV4PLPRWQjs.FEATURES_ENV] } : {}
192
+ ...Object.prototype.hasOwnProperty.call(values, _chunkGPWTKORHjs.FEATURES_ENV) ? { [_chunkGPWTKORHjs.FEATURES_ENV]: values[_chunkGPWTKORHjs.FEATURES_ENV] } : {}
193
193
  };
194
194
  if (scope === "folder") {
195
- _chunkV4PLPRWQjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
195
+ _chunkGPWTKORHjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
196
196
  } else {
197
- _chunkV4PLPRWQjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
197
+ _chunkGPWTKORHjs.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
- [_chunkV4PLPRWQjs.ACTIVE_ORG_ID_ENV]: orgId,
206
- [_chunkV4PLPRWQjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
- ..._chunkV4PLPRWQjs.featureEnvValues.call(void 0, data)
205
+ [_chunkGPWTKORHjs.ACTIVE_ORG_ID_ENV]: orgId,
206
+ [_chunkGPWTKORHjs.ACTIVE_ORG_NAME_ENV]: orgName,
207
+ ..._chunkGPWTKORHjs.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/${_chunkV4PLPRWQjs.SDK_VERSION}`,
213
+ "User-Agent": `deepline-ts-sdk/${_chunkGPWTKORHjs.SDK_VERSION}`,
214
214
  "X-Deepline-Client-Family": "sdk",
215
215
  "X-Deepline-CLI-Family": "sdk",
216
- "X-Deepline-Agent-Runtime": _chunkV4PLPRWQjs.detectAgentRuntime.call(void 0, ),
217
- "X-Deepline-CLI-Version": _chunkV4PLPRWQjs.SDK_VERSION,
218
- "X-Deepline-SDK-Version": _chunkV4PLPRWQjs.SDK_VERSION,
219
- "X-Deepline-API-Contract": _chunkV4PLPRWQjs.SDK_API_CONTRACT
216
+ "X-Deepline-Agent-Runtime": _chunkGPWTKORHjs.detectAgentRuntime.call(void 0, ),
217
+ "X-Deepline-CLI-Version": _chunkGPWTKORHjs.SDK_VERSION,
218
+ "X-Deepline-SDK-Version": _chunkGPWTKORHjs.SDK_VERSION,
219
+ "X-Deepline-API-Contract": _chunkGPWTKORHjs.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()]);
@@ -262,7 +262,7 @@ async function readStatusBanner(baseUrl) {
262
262
  return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
263
263
  }
264
264
  async function reportSetupCompleted(input) {
265
- const apiKey = input.authScope === "folder" ? _chunkV4PLPRWQjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkV4PLPRWQjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
265
+ const apiKey = input.authScope === "folder" ? _chunkGPWTKORHjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkGPWTKORHjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
266
266
  if (!apiKey) return;
267
267
  try {
268
268
  await httpJson(
@@ -359,7 +359,7 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
359
359
  }
360
360
  }
361
361
  async function handleRegister(args) {
362
- const baseUrl = _chunkV4PLPRWQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
362
+ const baseUrl = _chunkGPWTKORHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
363
363
  let orgName = "";
364
364
  let orgId = "";
365
365
  let agentName = "";
@@ -414,19 +414,19 @@ async function handleRegister(args) {
414
414
  });
415
415
  saveEnvValues(
416
416
  {
417
- [_chunkV4PLPRWQjs.HOST_URL_ENV]: baseUrl
417
+ [_chunkGPWTKORHjs.HOST_URL_ENV]: baseUrl
418
418
  },
419
419
  baseUrl,
420
420
  authScope
421
421
  );
422
422
  }
423
423
  if (claimUrl) {
424
- const shouldOpen = waitMode !== "no" && _chunkV4PLPRWQjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
424
+ const shouldOpen = waitMode !== "no" && _chunkGPWTKORHjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
425
425
  console.log(
426
426
  shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
427
427
  );
428
428
  console.log(` ${claimUrl}`);
429
- if (shouldOpen) _chunk4BWZA57Ijs.openInBrowser.call(void 0, claimUrl);
429
+ if (shouldOpen) _chunkODKHUBU3js.openInBrowser.call(void 0, claimUrl);
430
430
  }
431
431
  if (data.cli_message) {
432
432
  console.log(String(data.cli_message));
@@ -469,8 +469,8 @@ async function handleRegister(args) {
469
469
  if (apiKey) {
470
470
  saveEnvValues(
471
471
  {
472
- [_chunkV4PLPRWQjs.HOST_URL_ENV]: baseUrl,
473
- [_chunkV4PLPRWQjs.API_KEY_ENV]: apiKey,
472
+ [_chunkGPWTKORHjs.HOST_URL_ENV]: baseUrl,
473
+ [_chunkGPWTKORHjs.API_KEY_ENV]: apiKey,
474
474
  ...activeOrgEnvValues(statusData)
475
475
  },
476
476
  baseUrl,
@@ -492,7 +492,7 @@ async function handleRegister(args) {
492
492
  }
493
493
  }
494
494
  async function handleWait(args) {
495
- const baseUrl = _chunkV4PLPRWQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
495
+ const baseUrl = _chunkGPWTKORHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
496
496
  let timeoutSeconds = 300;
497
497
  let requestedScope;
498
498
  if (args.includes("--auth-scope")) {
@@ -516,7 +516,7 @@ async function handleWait(args) {
516
516
  const authScope = resumed.scope;
517
517
  const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _12 => _12.claimToken]), () => ( ""));
518
518
  if (!pendingClaim) {
519
- const scopedApiKey = authScope === "folder" ? _chunkV4PLPRWQjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkV4PLPRWQjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
519
+ const scopedApiKey = authScope === "folder" ? _chunkGPWTKORHjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkGPWTKORHjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
520
520
  if (scopedApiKey) {
521
521
  console.log("Already connected.");
522
522
  return EXIT_OK;
@@ -559,8 +559,8 @@ async function handleWait(args) {
559
559
  if (apiKey) {
560
560
  saveEnvValues(
561
561
  {
562
- [_chunkV4PLPRWQjs.HOST_URL_ENV]: baseUrl,
563
- [_chunkV4PLPRWQjs.API_KEY_ENV]: apiKey,
562
+ [_chunkGPWTKORHjs.HOST_URL_ENV]: baseUrl,
563
+ [_chunkGPWTKORHjs.API_KEY_ENV]: apiKey,
564
564
  ...activeOrgEnvValues(data)
565
565
  },
566
566
  baseUrl,
@@ -584,8 +584,8 @@ async function handleWait(args) {
584
584
  return EXIT_AUTH;
585
585
  }
586
586
  async function authStatusLine(timeoutMs = 3e3) {
587
- const baseUrl = _chunkV4PLPRWQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
588
- const apiKey = _chunkV4PLPRWQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
587
+ const baseUrl = _chunkGPWTKORHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
588
+ const apiKey = _chunkGPWTKORHjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
589
589
  if (!apiKey) return `Auth: not connected (${baseUrl})`;
590
590
  try {
591
591
  const { status, data } = await httpJson(
@@ -608,9 +608,9 @@ async function authStatusLine(timeoutMs = 3e3) {
608
608
  }
609
609
  }
610
610
  async function handleStatus(args) {
611
- const baseUrl = _chunkV4PLPRWQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
611
+ const baseUrl = _chunkGPWTKORHjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
612
612
  const reveal = args.includes("--reveal");
613
- const jsonOutput = _chunk4BWZA57Ijs.argsWantJson.call(void 0, args);
613
+ const jsonOutput = _chunkODKHUBU3js.argsWantJson.call(void 0, args);
614
614
  const hasExplicitAuthScope = args.includes("--auth-scope");
615
615
  let authScope = null;
616
616
  if (hasExplicitAuthScope) {
@@ -651,14 +651,14 @@ async function handleStatus(args) {
651
651
  };
652
652
  hostLines.push(`Host: ${baseUrl} (unreachable)`);
653
653
  }
654
- const apiKey = authScope === "folder" ? _chunkV4PLPRWQjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkV4PLPRWQjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkV4PLPRWQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
654
+ const apiKey = authScope === "folder" ? _chunkGPWTKORHjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkGPWTKORHjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkGPWTKORHjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
655
655
  if (!apiKey) {
656
656
  const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
657
657
  baseUrl,
658
658
  _nullishCoalesce(authScope, () => ( void 0))
659
659
  );
660
660
  if (pendingClaim) {
661
- _chunk4BWZA57Ijs.printCommandEnvelope.call(void 0,
661
+ _chunkODKHUBU3js.printCommandEnvelope.call(void 0,
662
662
  {
663
663
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
664
664
  status: "pending",
@@ -679,7 +679,7 @@ async function handleStatus(args) {
679
679
  );
680
680
  return EXIT_OK;
681
681
  }
682
- _chunk4BWZA57Ijs.printCommandEnvelope.call(void 0,
682
+ _chunkODKHUBU3js.printCommandEnvelope.call(void 0,
683
683
  {
684
684
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
685
685
  status: "not connected",
@@ -712,7 +712,7 @@ async function handleStatus(args) {
712
712
  }
713
713
  );
714
714
  if (status === 401 || status === 403) {
715
- _chunk4BWZA57Ijs.printCommandEnvelope.call(void 0,
715
+ _chunkODKHUBU3js.printCommandEnvelope.call(void 0,
716
716
  {
717
717
  ..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
718
718
  status: "unauthorized",
@@ -739,7 +739,7 @@ async function handleStatus(args) {
739
739
  console.error(`Auth status error (status ${status}).`);
740
740
  return EXIT_SERVER;
741
741
  }
742
- const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkV4PLPRWQjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
742
+ const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkGPWTKORHjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
743
743
  clearSatisfiedPendingClaim(
744
744
  baseUrl,
745
745
  resolvedAuthScope,
@@ -767,28 +767,28 @@ async function handleStatus(args) {
767
767
  if (apiKeyResp) {
768
768
  saveEnvValues(
769
769
  {
770
- [_chunkV4PLPRWQjs.HOST_URL_ENV]: baseUrl,
771
- [_chunkV4PLPRWQjs.API_KEY_ENV]: apiKeyResp,
770
+ [_chunkGPWTKORHjs.HOST_URL_ENV]: baseUrl,
771
+ [_chunkGPWTKORHjs.API_KEY_ENV]: apiKeyResp,
772
772
  ...activeOrgEnvValues(data)
773
773
  },
774
774
  baseUrl,
775
775
  resolvedAuthScope
776
776
  );
777
777
  if (resolvedAuthScope === "folder") {
778
- const target = _chunkV4PLPRWQjs.resolveProjectPinTarget.call(void 0, );
778
+ const target = _chunkGPWTKORHjs.resolveProjectPinTarget.call(void 0, );
779
779
  savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
780
780
  } else {
781
781
  savedApiKeyPath = envFilePath(baseUrl);
782
782
  }
783
783
  }
784
- } else if (resolvedAuthScope === "folder" || _chunkV4PLPRWQjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
785
- saveEnvValues(_chunkV4PLPRWQjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
784
+ } else if (resolvedAuthScope === "folder" || _chunkGPWTKORHjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
785
+ saveEnvValues(_chunkGPWTKORHjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
786
786
  }
787
- _chunk4BWZA57Ijs.printCommandEnvelope.call(void 0,
787
+ _chunkODKHUBU3js.printCommandEnvelope.call(void 0,
788
788
  {
789
789
  ...payload,
790
- ..._chunkV4PLPRWQjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
791
- command_context: _chunkV4PLPRWQjs.resolveCliCommandContext.call(void 0,
790
+ ..._chunkGPWTKORHjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
791
+ command_context: _chunkGPWTKORHjs.resolveCliCommandContext.call(void 0,
792
792
  { baseUrl, apiKey },
793
793
  resolvedAuthScope
794
794
  )
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-GAMFK2ZP.mjs";
4
4
  import {
5
5
  printCommandEnvelope
6
- } from "./chunk-VNO3VAJT.mjs";
6
+ } from "./chunk-OHGXSFDQ.mjs";
7
7
  import {
8
8
  DEFAULT_SKILL_AGENTS,
9
9
  KNOWN_SKILL_AGENTS,
@@ -22,13 +22,13 @@ import {
22
22
  sdkCliStateDirPath,
23
23
  skillsAgentPathSegment,
24
24
  writeSdkSkillsLocalVersion
25
- } from "./chunk-BYBRENKM.mjs";
25
+ } from "./chunk-DSXMTZ64.mjs";
26
26
  import {
27
27
  DeeplineError
28
28
  } from "./chunk-NXGCO4JB.mjs";
29
29
  import {
30
30
  SDK_RELEASE
31
- } from "./chunk-JHNYOTWR.mjs";
31
+ } from "./chunk-NRI4TJVF.mjs";
32
32
 
33
33
  // src/cli/commands/skills.ts
34
34
  import { spawn as spawn2 } 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.403",
52
+ version: "0.3.404",
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,
@@ -3,7 +3,7 @@
3
3
 
4
4
 
5
5
 
6
- var _chunkV4PLPRWQjs = require('./chunk-V4PLPRWQ.js');
6
+ var _chunkGPWTKORHjs = require('./chunk-GPWTKORH.js');
7
7
 
8
8
 
9
9
 
@@ -226,8 +226,8 @@ var BROWSER_OPEN_COOLDOWN_MS = 3e4;
226
226
  var SAME_URL_BROWSER_OPEN_COOLDOWN_MS = 5 * 6e4;
227
227
  var defaultBrowserCommandRunner = childProcess;
228
228
  function getAuthedHttpClient() {
229
- const config = _chunkV4PLPRWQjs.resolveConfig.call(void 0, );
230
- return { config, http: new (0, _chunkV4PLPRWQjs.HttpClient)(config) };
229
+ const config = _chunkGPWTKORHjs.resolveConfig.call(void 0, );
230
+ return { config, http: new (0, _chunkGPWTKORHjs.HttpClient)(config) };
231
231
  }
232
232
  function stableOsUserId() {
233
233
  try {
@@ -567,7 +567,7 @@ function collectLocalEnvInfo() {
567
567
  os: `${process.platform} ${process.arch}`,
568
568
  node_version: process.version,
569
569
  home_dir: homeDir,
570
- agent_runtime: _chunkV4PLPRWQjs.detectAgentRuntime.call(void 0, )
570
+ agent_runtime: _chunkGPWTKORHjs.detectAgentRuntime.call(void 0, )
571
571
  };
572
572
  const env = process.env;
573
573
  const optional = {
@@ -814,9 +814,9 @@ function markdownTableFromRows(rows, preferredColumns = []) {
814
814
  }
815
815
  function withAgentCommandContext(value) {
816
816
  const valueRecord = value !== null && typeof value === "object" && !Array.isArray(value) ? value : null;
817
- return _chunkV4PLPRWQjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
817
+ return _chunkGPWTKORHjs.detectAgentRuntime.call(void 0, ) !== "unknown" && valueRecord && !Object.prototype.hasOwnProperty.call(valueRecord, "command_context") ? {
818
818
  ...valueRecord,
819
- command_context: _chunkV4PLPRWQjs.resolveCliCommandContext.call(void 0, )
819
+ command_context: _chunkGPWTKORHjs.resolveCliCommandContext.call(void 0, )
820
820
  } : value;
821
821
  }
822
822
  function printJson(value, fields) {
@@ -3,7 +3,7 @@ import {
3
3
  detectAgentRuntime,
4
4
  resolveCliCommandContext,
5
5
  resolveConfig
6
- } from "./chunk-BYBRENKM.mjs";
6
+ } from "./chunk-DSXMTZ64.mjs";
7
7
  import {
8
8
  DeeplineError,
9
9
  serializeToolExecutionFailure