deepline 0.3.457 → 0.3.458

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 (112) hide show
  1. package/dist/bundling-sources/sdk/src/client.ts +0 -23
  2. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  3. package/dist/cli/auth-4CBIXFOR.js +40 -0
  4. package/dist/cli/{auth-MZG5NF5U.mjs → auth-APD43NYT.mjs} +4 -4
  5. package/dist/cli/{billing-DWKZIL66.mjs → billing-QW4K272E.mjs} +4 -4
  6. package/dist/cli/{billing-RG3LF5OU.js → billing-TI4YOWAJ.js} +73 -73
  7. package/dist/cli/{chunk-KKPKLLNB.js → chunk-2A63IJ2J.js} +6 -6
  8. package/dist/cli/{chunk-QGLFBQ43.mjs → chunk-4TWDW7PI.mjs} +5 -5
  9. package/dist/cli/{chunk-YVQVS7SF.mjs → chunk-5KO62ZXQ.mjs} +4 -4
  10. package/dist/cli/{chunk-KTAVYWYI.js → chunk-6FLTFNAY.js} +8 -8
  11. package/dist/cli/{chunk-W3IZ55XS.mjs → chunk-6UJJZWT2.mjs} +3 -3
  12. package/dist/cli/{chunk-JL5DCH37.js → chunk-7M6C4STX.js} +16 -16
  13. package/dist/cli/{chunk-7IIRZXCO.mjs → chunk-7MZQ64FI.mjs} +1 -1
  14. package/dist/cli/{chunk-US3SZ7VQ.js → chunk-AA2DMXBN.js} +50 -50
  15. package/dist/cli/{chunk-EHEBXARN.js → chunk-AJQUFGTJ.js} +1 -1
  16. package/dist/cli/{chunk-CTWD4ZHP.js → chunk-CF2GXP2O.js} +2 -2
  17. package/dist/cli/{chunk-TTBQOHG4.js → chunk-DHERSOIG.js} +4 -4
  18. package/dist/cli/{chunk-CHBYYJ7Q.mjs → chunk-ECS3KXM7.mjs} +1 -1
  19. package/dist/cli/{chunk-KVXBMYRY.js → chunk-ECVZUWRR.js} +2 -2
  20. package/dist/cli/{chunk-LVGCJZ5S.mjs → chunk-EMIR3EXE.mjs} +1 -12
  21. package/dist/cli/{chunk-MU4ZDVQK.mjs → chunk-EO7WQN5X.mjs} +8 -8
  22. package/dist/cli/{chunk-LHHJATXY.mjs → chunk-GFGBHE43.mjs} +2 -2
  23. package/dist/cli/{chunk-L7WE7Q63.mjs → chunk-HJ5WE6S5.mjs} +1 -1
  24. package/dist/cli/{chunk-5TIASNUT.js → chunk-JIDT3SCM.js} +20 -20
  25. package/dist/cli/{chunk-VLL6RRIA.js → chunk-K6IHE6R5.js} +8 -8
  26. package/dist/cli/{chunk-SFCNYJ4B.js → chunk-L27PA5GT.js} +10 -21
  27. package/dist/cli/{chunk-J2ZS4PEC.js → chunk-LJDJ5GPR.js} +51 -51
  28. package/dist/cli/{chunk-NMVLO3JM.mjs → chunk-LZUXLXL3.mjs} +3 -3
  29. package/dist/cli/{chunk-F64XBZ3A.mjs → chunk-MNEN3RYE.mjs} +2 -2
  30. package/dist/cli/{chunk-JCWEQQGE.js → chunk-NDODDIEC.js} +35 -35
  31. package/dist/cli/{chunk-AQFHU3DW.js → chunk-NMJ4D2WO.js} +0 -21
  32. package/dist/cli/{chunk-LKAITV2M.js → chunk-NXVHTBBS.js} +26 -26
  33. package/dist/cli/{chunk-E5BGIERY.mjs → chunk-OTN6GV74.mjs} +1 -1
  34. package/dist/cli/{chunk-77Z5BO7D.mjs → chunk-R2GLGLDR.mjs} +0 -21
  35. package/dist/cli/{chunk-CQHTN3RY.mjs → chunk-U5O5TZC2.mjs} +1 -1
  36. package/dist/cli/{chunk-EXOCQILY.mjs → chunk-V6BEYE35.mjs} +2 -2
  37. package/dist/cli/{chunk-X4XNGIPL.mjs → chunk-VYLWKTDQ.mjs} +3 -3
  38. package/dist/cli/{chunk-MWRPRDHW.js → chunk-W3OAT72T.js} +6 -6
  39. package/dist/cli/{chunk-JANCYPKP.mjs → chunk-X3ZRKA3V.mjs} +1 -1
  40. package/dist/cli/{chunk-7JW4WIWU.js → chunk-XBVZ35XJ.js} +81 -81
  41. package/dist/cli/{chunk-GLXYOSEL.js → chunk-XI6AZJPO.js} +3 -3
  42. package/dist/cli/{chunk-BD5A242C.mjs → chunk-ZLL345RP.mjs} +2 -2
  43. package/dist/cli/command-docs.js +2 -2
  44. package/dist/cli/command-docs.mjs +1 -1
  45. package/dist/cli/{csv-QSAAPCYE.js → csv-NIKB3RQX.js} +12 -12
  46. package/dist/cli/{csv-27M4PREP.mjs → csv-VOX5XXBB.mjs} +3 -3
  47. package/dist/cli/{db-H73PJID6.mjs → db-GETE5AIV.mjs} +4 -4
  48. package/dist/cli/{db-LYPTNAPX.js → db-ZH2NUZ3F.js} +25 -25
  49. package/dist/cli/{describe-KYLGQSMO.js → describe-JZ6QOTPY.js} +17 -17
  50. package/dist/cli/{describe-Y5BHLZLH.mjs → describe-LWGEU6IE.mjs} +13 -13
  51. package/dist/cli/describe-core.d.mts +1 -1
  52. package/dist/cli/describe-core.d.ts +1 -1
  53. package/dist/cli/{executions-DHGYCPFO.js → executions-CEVMJ4QY.js} +6 -6
  54. package/dist/cli/{executions-ZGQEWS2X.mjs → executions-DUMCTK4E.mjs} +4 -4
  55. package/dist/cli/{feedback-EBXU4ANA.mjs → feedback-UEYC3V3O.mjs} +3 -3
  56. package/dist/cli/{feedback-3YQPYCMT.js → feedback-VI4N44TJ.js} +7 -7
  57. package/dist/cli/{git-CFPU33DJ.mjs → git-BOMW65V5.mjs} +4 -4
  58. package/dist/cli/git-QISWQQM3.js +24 -0
  59. package/dist/cli/index.js +136 -136
  60. package/dist/cli/index.mjs +38 -38
  61. package/dist/cli/{legacy-noops-TFGIWA5C.mjs → legacy-noops-33X26VLN.mjs} +4 -4
  62. package/dist/cli/{legacy-noops-CDKZ7RYT.js → legacy-noops-SWPSUKTD.js} +7 -7
  63. package/dist/cli/{monitors-6ED5RJYG.mjs → monitors-465GCZ73.mjs} +5 -5
  64. package/dist/cli/{monitors-PCMAB7NP.js → monitors-6HMDLDKU.js} +89 -89
  65. package/dist/cli/{org-V4QYXLOL.mjs → org-CAAOHGTM.mjs} +4 -4
  66. package/dist/cli/{org-KAARC2XN.js → org-JFQ4QBHQ.js} +66 -66
  67. package/dist/cli/{play-OTTJ6S2G.mjs → play-NJP6HIQD.mjs} +11 -11
  68. package/dist/cli/{play-PPWCRYME.js → play-UKD4KR4K.js} +284 -284
  69. package/dist/cli/{providers-ULL5EJHY.mjs → providers-UVHTTSKV.mjs} +4 -46
  70. package/dist/cli/{providers-ICY74FM5.js → providers-YTRBZARB.js} +8 -50
  71. package/dist/cli/{quickstart-YOUCGJQP.js → quickstart-3GXVHJRL.js} +5 -5
  72. package/dist/cli/{quickstart-QLVS53TD.mjs → quickstart-CB3TQ5L2.mjs} +3 -3
  73. package/dist/cli/{search-AGYQR6YQ.mjs → search-NXA6526R.mjs} +5 -5
  74. package/dist/cli/search-YM4ATHTV.js +30 -0
  75. package/dist/cli/{secrets-OA3HHNHP.js → secrets-E3Y6YDKR.js} +13 -13
  76. package/dist/cli/{secrets-PJFO3RZW.mjs → secrets-JFJK2X2N.mjs} +4 -4
  77. package/dist/cli/{sessions-WNRZQEBL.mjs → sessions-HAZJLQQL.mjs} +4 -4
  78. package/dist/cli/{sessions-OYTROOOG.js → sessions-NKLP6TVY.js} +5 -5
  79. package/dist/cli/{settings-JIYDWBPM.mjs → settings-BSD4DW4O.mjs} +10 -10
  80. package/dist/cli/{settings-RXGOZAZI.js → settings-D4LEZOEW.js} +77 -77
  81. package/dist/cli/{setup-VXNSUQYT.js → setup-KMZ4EFDK.js} +43 -43
  82. package/dist/cli/{setup-YAYE7KQM.mjs → setup-QO64H6YO.mjs} +8 -8
  83. package/dist/cli/skills-T5VTI2LZ.js +30 -0
  84. package/dist/cli/{skills-XYDBLLRK.mjs → skills-YLAH2YNN.mjs} +6 -6
  85. package/dist/cli/{tools-TRDYMDPL.mjs → tools-KGQ76YQE.mjs} +13 -13
  86. package/dist/cli/tools-M574OF4H.js +45 -0
  87. package/dist/cli/{update-KH36JGLK.mjs → update-JXUSVBH7.mjs} +8 -8
  88. package/dist/cli/update-WNG5DNNO.js +32 -0
  89. package/dist/cli/{workflow-EYWCMD4D.mjs → workflow-NYWZWN5Z.mjs} +5 -5
  90. package/dist/cli/{workflow-CQZBGIQ2.js → workflow-YTXY76FN.js} +15 -15
  91. package/dist/{client-BX2EVlPo.d.mts → client-BbU5_j7n.d.mts} +0 -14
  92. package/dist/{client-CRz2laoR.d.ts → client-CYqG23K1.d.ts} +0 -14
  93. package/dist/index.d.mts +2 -2
  94. package/dist/index.d.ts +2 -2
  95. package/dist/index.js +6 -6
  96. package/dist/index.mjs +3 -3
  97. package/dist/install-integrity.json +84 -84
  98. package/dist/plays/play-description.d.mts +1 -1
  99. package/dist/plays/play-description.d.ts +1 -1
  100. package/dist/plays/run-request.d.mts +1 -1
  101. package/dist/plays/run-request.d.ts +1 -1
  102. package/dist/release.d.mts +1 -1
  103. package/dist/release.d.ts +1 -1
  104. package/dist/release.js +2 -2
  105. package/dist/release.mjs +1 -1
  106. package/package.json +1 -1
  107. package/dist/cli/auth-O3XJDECG.js +0 -40
  108. package/dist/cli/git-4ACVGA4W.js +0 -24
  109. package/dist/cli/search-XNU6FOOH.js +0 -30
  110. package/dist/cli/skills-5UCGZVCN.js +0 -30
  111. package/dist/cli/tools-UMSFNX5B.js +0 -45
  112. package/dist/cli/update-K5AOROYI.js +0 -32
@@ -1,6 +1,6 @@
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
- var _chunkJ2ZS4PECjs = require('./chunk-J2ZS4PEC.js');
3
+ var _chunkLJDJ5GPRjs = require('./chunk-LJDJ5GPR.js');
4
4
 
5
5
  // src/cli/npm-script-policy.ts
6
6
  var _child_process = require('child_process');
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
13
13
  }
14
14
  function readNpmVersion(env) {
15
15
  try {
16
- const plan = _chunkJ2ZS4PECjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
16
+ const plan = _chunkLJDJ5GPRjs.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
17
17
  const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
18
18
  encoding: "utf8",
19
19
  env,
@@ -28,7 +28,7 @@ import {
28
28
  RUNTIME_ENVIRONMENT_TOKEN_HEADER,
29
29
  SDK_API_MAJOR,
30
30
  resolveConfig
31
- } from "./chunk-CQHTN3RY.mjs";
31
+ } from "./chunk-U5O5TZC2.mjs";
32
32
  import {
33
33
  CustomerDbQueryOutcomeUnknownError
34
34
  } from "./chunk-4QF2K7TM.mjs";
@@ -5177,17 +5177,6 @@ var DeeplineClient = class _DeeplineClient {
5177
5177
  async getNotificationSettings() {
5178
5178
  return this.http.get("/api/v2/settings/notifications");
5179
5179
  }
5180
- /** Start provider OAuth; complete the returned URL in an authenticated browser. */
5181
- async connectIntegration(provider, scopes) {
5182
- return this.http.post("/api/v2/integrations/connect", {
5183
- provider,
5184
- ...scopes ? { scopes } : {}
5185
- });
5186
- }
5187
- /** Probe an OAuth connection, refreshing expired tokens through the normal lifecycle. */
5188
- async testIntegration(provider) {
5189
- return this.http.get(`/api/oauth/test/${encodeURIComponent(provider)}`);
5190
- }
5191
5180
  /** Save provider-owned credential fields without starting an OAuth browser flow. */
5192
5181
  async setIntegrationCredentials(provider, credentials) {
5193
5182
  return this.http.post("/api/v2/integrations/connect", {
@@ -5,7 +5,7 @@ import {
5
5
  import {
6
6
  recentSearchRef,
7
7
  registerDeprecatedSearchCommand
8
- } from "./chunk-NMVLO3JM.mjs";
8
+ } from "./chunk-LZUXLXL3.mjs";
9
9
  import {
10
10
  arrayField,
11
11
  formatModelDescription,
@@ -48,7 +48,7 @@ import {
48
48
  import {
49
49
  DeeplineClient,
50
50
  validateExecutionIdempotencyKey
51
- } from "./chunk-LVGCJZ5S.mjs";
51
+ } from "./chunk-EMIR3EXE.mjs";
52
52
  import {
53
53
  stableStringify
54
54
  } from "./chunk-UBKA33KY.mjs";
@@ -58,18 +58,18 @@ import {
58
58
  maybeAutoUpdateAndRelaunch,
59
59
  registerCompatibilityCatalog,
60
60
  runToolExecuteStage
61
- } from "./chunk-YVQVS7SF.mjs";
61
+ } from "./chunk-5KO62ZXQ.mjs";
62
62
  import {
63
63
  isCliTraceEnabled,
64
64
  recordCliTrace,
65
65
  resolveCliMaintenancePolicy
66
- } from "./chunk-L7WE7Q63.mjs";
66
+ } from "./chunk-HJ5WE6S5.mjs";
67
67
  import {
68
68
  checkSdkCompatibility,
69
69
  enforceSdkCompatibilityResponse,
70
70
  flushDeferredSkillsSyncNotices,
71
71
  syncSdkSkillsIfNeeded
72
- } from "./chunk-X4XNGIPL.mjs";
72
+ } from "./chunk-VYLWKTDQ.mjs";
73
73
  import {
74
74
  printCommandEnvelope,
75
75
  printCompactJson,
@@ -77,12 +77,12 @@ import {
77
77
  printJsonError,
78
78
  renderCommandEnvelopeText,
79
79
  shouldEmitJson
80
- } from "./chunk-7IIRZXCO.mjs";
80
+ } from "./chunk-7MZQ64FI.mjs";
81
81
  import {
82
82
  readSdkSkillsLocalVersion,
83
83
  resolveConfig,
84
84
  sdkCliStateDirPath
85
- } from "./chunk-CQHTN3RY.mjs";
85
+ } from "./chunk-U5O5TZC2.mjs";
86
86
  import {
87
87
  DeeplineError
88
88
  } from "./chunk-HBL4PM5Q.mjs";
@@ -971,7 +971,7 @@ Examples:
971
971
  process.exitCode = await narrowView();
972
972
  return;
973
973
  }
974
- const { describeAnything } = await import("./describe-Y5BHLZLH.mjs");
974
+ const { describeAnything } = await import("./describe-LWGEU6IE.mjs");
975
975
  process.exitCode = await describeAnything(
976
976
  toolId,
977
977
  {
@@ -2,7 +2,7 @@ import {
2
2
  argsWantJson,
3
3
  openInBrowser,
4
4
  printCommandEnvelope
5
- } from "./chunk-7IIRZXCO.mjs";
5
+ } from "./chunk-7MZQ64FI.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-CQHTN3RY.mjs";
28
+ } from "./chunk-U5O5TZC2.mjs";
29
29
 
30
30
  // src/cli/commands/auth.ts
31
31
  import {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  writeRawStderr
3
- } from "./chunk-7IIRZXCO.mjs";
3
+ } from "./chunk-7MZQ64FI.mjs";
4
4
 
5
5
  // src/cli/maintenance-policy.ts
6
6
  import { InvalidArgumentError } from "commander";
@@ -4,18 +4,18 @@
4
4
 
5
5
 
6
6
 
7
- var _chunkJL5DCH37js = require('./chunk-JL5DCH37.js');
7
+ var _chunk7M6C4STXjs = require('./chunk-7M6C4STX.js');
8
8
 
9
9
 
10
- var _chunkJ2ZS4PECjs = require('./chunk-J2ZS4PEC.js');
10
+ var _chunkLJDJ5GPRjs = require('./chunk-LJDJ5GPR.js');
11
11
 
12
12
 
13
13
 
14
- var _chunkKKPKLLNBjs = require('./chunk-KKPKLLNB.js');
14
+ var _chunk2A63IJ2Jjs = require('./chunk-2A63IJ2J.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkTTBQOHG4js = require('./chunk-TTBQOHG4.js');
18
+ var _chunkDHERSOIGjs = require('./chunk-DHERSOIG.js');
19
19
 
20
20
  // src/cli/compatibility-catalog.ts
21
21
  var readers = /* @__PURE__ */ new WeakMap();
@@ -42,7 +42,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
42
42
  async function reportAutoUpdateEvent(input) {
43
43
  let apiKey = "";
44
44
  try {
45
- apiKey = _chunkTTBQOHG4js.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
45
+ apiKey = _chunkDHERSOIGjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
46
46
  } catch (e2) {
47
47
  return;
48
48
  }
@@ -58,15 +58,15 @@ async function reportAutoUpdateEvent(input) {
58
58
  headers: {
59
59
  Authorization: `Bearer ${apiKey}`,
60
60
  "Content-Type": "application/json",
61
- "User-Agent": `deepline-ts-sdk/${_chunkTTBQOHG4js.SDK_VERSION}`,
61
+ "User-Agent": `deepline-ts-sdk/${_chunkDHERSOIGjs.SDK_VERSION}`,
62
62
  "X-Deepline-Client-Family": "sdk",
63
63
  "X-Deepline-CLI-Family": "sdk",
64
- "X-Deepline-CLI-Version": _chunkTTBQOHG4js.SDK_VERSION,
65
- "X-Deepline-SDK-Version": _chunkTTBQOHG4js.SDK_VERSION
64
+ "X-Deepline-CLI-Version": _chunkDHERSOIGjs.SDK_VERSION,
65
+ "X-Deepline-SDK-Version": _chunkDHERSOIGjs.SDK_VERSION
66
66
  },
67
67
  body: JSON.stringify({
68
68
  event: input.event,
69
- current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkTTBQOHG4js.SDK_VERSION,
69
+ current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkDHERSOIGjs.SDK_VERSION,
70
70
  target_version: input.response.latest,
71
71
  reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
72
72
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -85,13 +85,13 @@ function envTruthy(name) {
85
85
  return value === "1" || value === "true" || value === "yes";
86
86
  }
87
87
  function shouldSkipSelfUpdate(policy) {
88
- return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkJL5DCH37js.shouldRunCliAutoUpdate.call(void 0, ) || _chunkJ2ZS4PECjs.isCiEnvironment.call(void 0, );
88
+ return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunk7M6C4STXjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkLJDJ5GPRjs.isCiEnvironment.call(void 0, );
89
89
  }
90
90
  function isDowngradeAutoUpdateResponse(response) {
91
91
  const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
92
- const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkTTBQOHG4js.SDK_VERSION;
92
+ const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkDHERSOIGjs.SDK_VERSION;
93
93
  if (!target) return false;
94
- return _chunkJL5DCH37js.compareUpdateVersions.call(void 0, target, current) < 0;
94
+ return _chunk7M6C4STXjs.compareUpdateVersions.call(void 0, target, current) < 0;
95
95
  }
96
96
  function relaunchCurrentCommand(plan, runtime = {}) {
97
97
  return new Promise((resolve) => {
@@ -144,7 +144,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
144
144
  }
145
145
  if (isDowngradeAutoUpdateResponse(response)) {
146
146
  const target = response.latest;
147
- const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkTTBQOHG4js.SDK_VERSION;
147
+ const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkDHERSOIGjs.SDK_VERSION;
148
148
  process.stderr.write(
149
149
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
150
150
  `
@@ -152,21 +152,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
152
152
  return false;
153
153
  }
154
154
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
155
- const plan = _chunkJL5DCH37js.resolveUpdatePlan.call(void 0, {
155
+ const plan = _chunk7M6C4STXjs.resolveUpdatePlan.call(void 0, {
156
156
  packageSpec,
157
157
  requireVerifiedNpmOwnership: true,
158
158
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
159
159
  });
160
- if (!_chunkJL5DCH37js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
160
+ if (!_chunk7M6C4STXjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
161
161
  return false;
162
162
  }
163
163
  if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
164
164
  deferredAutoUpdate = async () => {
165
165
  await applyAutoUpdate(response, baseUrl, plan, "next_command");
166
166
  };
167
- if (_chunkKKPKLLNBjs.isJsonOutputMode.call(void 0, )) {
167
+ if (_chunk2A63IJ2Jjs.isJsonOutputMode.call(void 0, )) {
168
168
  const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
169
- _chunkKKPKLLNBjs.addJsonNotice.call(void 0, {
169
+ _chunk2A63IJ2Jjs.addJsonNotice.call(void 0, {
170
170
  code: "sdk_update_queued",
171
171
  message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
172
172
  });
@@ -179,7 +179,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
179
179
  return true;
180
180
  }
181
181
  async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
182
- if (!_chunkJL5DCH37js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
182
+ if (!_chunk7M6C4STXjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
183
183
  const autoUpdate = response.auto_update;
184
184
  const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
185
185
  process.stderr.write(
@@ -192,7 +192,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
192
192
  event: "started",
193
193
  installKind: plan.kind
194
194
  });
195
- const updateResult = await _chunkJL5DCH37js.runAutomaticUpdatePlan.call(void 0, plan);
195
+ const updateResult = await _chunk7M6C4STXjs.runAutomaticUpdatePlan.call(void 0, plan);
196
196
  if (updateResult.status === "skipped_previous_failure") {
197
197
  void reportAutoUpdateEvent({
198
198
  baseUrl,
@@ -243,7 +243,7 @@ var _crypto = require('crypto');
243
243
  var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
244
244
  var activeToolExecuteCommand = null;
245
245
  function progressLine(line) {
246
- if (!_chunkKKPKLLNBjs.isJsonOutputMode.call(void 0, )) console.error(line);
246
+ if (!_chunk2A63IJ2Jjs.isJsonOutputMode.call(void 0, )) console.error(line);
247
247
  }
248
248
  function beginToolExecuteCommand() {
249
249
  if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
@@ -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 _chunkKKPKLLNBjs = require('./chunk-KKPKLLNB.js');
4
+ var _chunk2A63IJ2Jjs = require('./chunk-2A63IJ2J.js');
5
5
 
6
6
 
7
- var _chunkTTBQOHG4js = require('./chunk-TTBQOHG4.js');
7
+ var _chunkDHERSOIGjs = require('./chunk-DHERSOIG.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 = _chunkTTBQOHG4js.agentSessionIdFromEnvironment.call(void 0,
142
+ const sessionId = _chunkDHERSOIGjs.agentSessionIdFromEnvironment.call(void 0,
143
143
  process.env,
144
144
  agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
145
145
  );
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
451
451
  return { encodedContent: encoded, needsChunking: true };
452
452
  }
453
453
  async function uploadPayload(path, payload) {
454
- const { http } = _chunkKKPKLLNBjs.getAuthedHttpClient.call(void 0, );
454
+ const { http } = _chunk2A63IJ2Jjs.getAuthedHttpClient.call(void 0, );
455
455
  return await http.post(path, payload);
456
456
  }
457
457
  async function uploadChunkedSessions(sessions, options) {
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
484
484
  ...options.rating ? { rating: options.rating } : {}
485
485
  });
486
486
  const sessionIds = sessions.map((session) => session.sessionId);
487
- _chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
487
+ _chunk2A63IJ2Jjs.printCommandEnvelope.call(void 0,
488
488
  {
489
489
  ...response,
490
490
  ok: true,
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
516
516
  filename: _path.basename.call(void 0, filePath),
517
517
  ...rating ? { rating } : {}
518
518
  });
519
- _chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
519
+ _chunk2A63IJ2Jjs.printCommandEnvelope.call(void 0,
520
520
  {
521
521
  ...response2,
522
522
  ok: true,
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
566
566
  ...rating ? { rating } : {}
567
567
  });
568
568
  const sessionIds = built.map((session) => session.sessionId);
569
- _chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
569
+ _chunk2A63IJ2Jjs.printCommandEnvelope.call(void 0,
570
570
  {
571
571
  ...response,
572
572
  ok: true,
@@ -674,7 +674,7 @@ ${refreshMeta}
674
674
  </body>
675
675
  </html>`;
676
676
  _fs.writeFileSync.call(void 0, outputPath, html, "utf8");
677
- _chunkKKPKLLNBjs.printCommandEnvelope.call(void 0,
677
+ _chunk2A63IJ2Jjs.printCommandEnvelope.call(void 0,
678
678
  {
679
679
  ok: true,
680
680
  file: outputPath,
@@ -28,7 +28,7 @@ var _chunkKXMNM4AQjs = require('./chunk-KXMNM4AQ.js');
28
28
 
29
29
 
30
30
 
31
- var _chunkTTBQOHG4js = require('./chunk-TTBQOHG4.js');
31
+ var _chunkDHERSOIGjs = require('./chunk-DHERSOIG.js');
32
32
 
33
33
 
34
34
  var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
@@ -649,7 +649,7 @@ var ToolCalls = class {
649
649
  idempotencyKey,
650
650
  onResponse: (response2) => {
651
651
  lastResponse = null;
652
- atomicToolsSupported = response2.headers.get(_chunkTTBQOHG4js.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
652
+ atomicToolsSupported = response2.headers.get(_chunkDHERSOIGjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
653
653
  recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
654
654
  if (_optionalChain([options, 'optionalAccess', _30 => _30.onServerTiming])) {
655
655
  try {
@@ -999,8 +999,8 @@ function runtimeSelectionHeaders(runtime, env) {
999
999
  }
1000
1000
  const receivers = _optionalChain([env, 'access', _52 => _52.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _53 => _53.trim, 'call', _54 => _54()]);
1001
1001
  return {
1002
- [_chunkTTBQOHG4js.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1003
- ...receivers ? { [_chunkTTBQOHG4js.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1002
+ [_chunkDHERSOIGjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
1003
+ ...receivers ? { [_chunkDHERSOIGjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
1004
1004
  };
1005
1005
  }
1006
1006
  function normalizeTestPolicyOverrides(value, source) {
@@ -1071,7 +1071,7 @@ var PlayClient = class {
1071
1071
  return _chunkJKVRBCZLjs.startPlayRun.call(void 0,
1072
1072
  this.http,
1073
1073
  resolved.request,
1074
- _optionalChain([options, 'optionalAccess', _62 => _62.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkTTBQOHG4js.SDK_API_MAJOR) } : headers,
1074
+ _optionalChain([options, 'optionalAccess', _62 => _62.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkDHERSOIGjs.SDK_API_MAJOR) } : headers,
1075
1075
  options
1076
1076
  );
1077
1077
  }
@@ -1137,9 +1137,9 @@ var PlayClient = class {
1137
1137
  }
1138
1138
  };
1139
1139
  function createPlayClient(options) {
1140
- const config = _chunkTTBQOHG4js.resolveConfig.call(void 0, options);
1140
+ const config = _chunkDHERSOIGjs.resolveConfig.call(void 0, options);
1141
1141
  return new PlayClient(
1142
- new (0, _chunkTTBQOHG4js.HttpClient)(config),
1142
+ new (0, _chunkDHERSOIGjs.HttpClient)(config),
1143
1143
  _nullishCoalesce(config.environment, () => ( process.env))
1144
1144
  );
1145
1145
  }
@@ -3153,7 +3153,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
3153
3153
  "RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
3154
3154
  );
3155
3155
  }
3156
- return { [_chunkTTBQOHG4js.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3156
+ return { [_chunkDHERSOIGjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
3157
3157
  }
3158
3158
  function sleep(ms) {
3159
3159
  return new Promise((resolve) => setTimeout(resolve, ms));
@@ -3391,9 +3391,9 @@ var DeeplineClient = (_class = class _DeeplineClient {
3391
3391
  * @throws {@link ConfigError} if no API key can be resolved from any source.
3392
3392
  */
3393
3393
  constructor(options) {
3394
- this.config = _chunkTTBQOHG4js.resolveConfig.call(void 0, options);
3394
+ this.config = _chunkDHERSOIGjs.resolveConfig.call(void 0, options);
3395
3395
  this.environment = _nullishCoalesce(this.config.environment, () => ( process.env));
3396
- this.http = new (0, _chunkTTBQOHG4js.HttpClient)(this.config);
3396
+ this.http = new (0, _chunkDHERSOIGjs.HttpClient)(this.config);
3397
3397
  this.playClient = new PlayClient(this.http, this.environment);
3398
3398
  this.toolCalls = new ToolCalls(
3399
3399
  this.http,
@@ -5177,17 +5177,6 @@ var DeeplineClient = (_class = class _DeeplineClient {
5177
5177
  async getNotificationSettings() {
5178
5178
  return this.http.get("/api/v2/settings/notifications");
5179
5179
  }
5180
- /** Start provider OAuth; complete the returned URL in an authenticated browser. */
5181
- async connectIntegration(provider, scopes) {
5182
- return this.http.post("/api/v2/integrations/connect", {
5183
- provider,
5184
- ...scopes ? { scopes } : {}
5185
- });
5186
- }
5187
- /** Probe an OAuth connection, refreshing expired tokens through the normal lifecycle. */
5188
- async testIntegration(provider) {
5189
- return this.http.get(`/api/oauth/test/${encodeURIComponent(provider)}`);
5190
- }
5191
5180
  /** Save provider-owned credential fields without starting an OAuth browser flow. */
5192
5181
  async setIntegrationCredentials(provider, credentials) {
5193
5182
  return this.http.post("/api/v2/integrations/connect", {