deepline 0.3.301 → 0.3.303

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 (106) hide show
  1. package/dist/bundling-sources/sdk/src/release.ts +1 -1
  2. package/dist/bundling-sources/sdk/src/runs/watch-polling.ts +1 -1
  3. package/dist/bundling-sources/shared_libs/play-runtime/live-state-contract.ts +2 -0
  4. package/dist/bundling-sources/shared_libs/play-runtime/play-runs/projection/gateway-adapter.ts +2 -4
  5. package/dist/bundling-sources/shared_libs/play-runtime/run-snapshot-stream.ts +13 -0
  6. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-lifecycle.ts +16 -5
  7. package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/daytona-start-admission.ts +7 -1
  8. package/dist/bundling-sources/shared_libs/play-runtime/runtime-capacity-policy.ts +6 -4
  9. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +2 -2
  10. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +229 -98
  11. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/run-ledger-outbox-recovery.ts +2 -4
  12. package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +82 -0
  13. package/dist/bundling-sources/shared_libs/plays/tool-response-contract.ts +25 -0
  14. package/dist/cli/{auth-DCN4DA2T.mjs → auth-337SVWQD.mjs} +4 -4
  15. package/dist/cli/auth-4ME3NANJ.js +31 -0
  16. package/dist/cli/{billing-OGWOCZOZ.js → billing-CVQURTWQ.js} +71 -71
  17. package/dist/cli/{billing-VLZNKJ4N.mjs → billing-SVGYQSJI.mjs} +5 -5
  18. package/dist/cli/{chunk-V7J7U63X.js → chunk-4D5YQETI.js} +6 -6
  19. package/dist/cli/{chunk-OILZKWKC.mjs → chunk-4LRG6AJZ.mjs} +2 -2
  20. package/dist/cli/{chunk-JCS5TPNY.mjs → chunk-4NIQA6S7.mjs} +1 -1
  21. package/dist/cli/{chunk-AKWMFS7H.js → chunk-5NEXN4MZ.js} +2 -2
  22. package/dist/cli/{chunk-PXJAS6X2.mjs → chunk-BVJSAJKV.mjs} +1 -1
  23. package/dist/cli/{chunk-SBUIMF2B.mjs → chunk-DH6LEJWD.mjs} +3 -3
  24. package/dist/cli/{chunk-YFRWD6LM.js → chunk-EAIGGEV5.js} +6 -6
  25. package/dist/cli/{chunk-6JIXIMC5.js → chunk-GQUI3NYN.js} +57 -57
  26. package/dist/cli/{chunk-FAQGAPKK.js → chunk-HIXYNASX.js} +4 -4
  27. package/dist/cli/{chunk-GILGPI67.mjs → chunk-IVT2CZPM.mjs} +10 -3
  28. package/dist/cli/{chunk-QDFEF4PI.js → chunk-JGEFX6FQ.js} +6 -6
  29. package/dist/cli/{chunk-AXHRD6ME.mjs → chunk-JWUOPLAR.mjs} +1 -1
  30. package/dist/cli/{chunk-57J4GHJG.mjs → chunk-LGGR7CGZ.mjs} +4 -4
  31. package/dist/cli/{chunk-YBYPHZ4I.mjs → chunk-MTICVDNY.mjs} +1 -1
  32. package/dist/cli/{chunk-M6KBDWGI.js → chunk-NFWFUCGM.js} +19 -12
  33. package/dist/cli/{chunk-TAPI3QLV.js → chunk-OOQ4IRP4.js} +1 -1
  34. package/dist/cli/{chunk-7JA3CLD2.js → chunk-P2KELOST.js} +48 -48
  35. package/dist/cli/{chunk-SHQNCP2G.mjs → chunk-PUKK7SZX.mjs} +1 -1
  36. package/dist/cli/{chunk-ZNC3KU5O.js → chunk-RY6WID7C.js} +26 -26
  37. package/dist/cli/{chunk-GONRLVV3.js → chunk-W7INSYJS.js} +9 -9
  38. package/dist/cli/{chunk-7VBN7TU5.js → chunk-WJGRIDWQ.js} +15 -15
  39. package/dist/cli/{chunk-RQKAKIVL.mjs → chunk-XKW6HTWO.mjs} +1 -1
  40. package/dist/cli/{chunk-D7WKHLLF.mjs → chunk-XXQYOQWO.mjs} +2 -2
  41. package/dist/cli/{chunk-6S2UJUVD.mjs → chunk-YZLPXH7G.mjs} +2 -2
  42. package/dist/cli/{client-F7LPXBQS.mjs → client-AMSHGQFH.mjs} +4 -4
  43. package/dist/cli/client-WN33QCMV.js +20 -0
  44. package/dist/cli/{csv-DTGOY553.js → csv-B2OKPMNX.js} +12 -12
  45. package/dist/cli/{csv-PFAL3PLE.mjs → csv-F4RPWI4E.mjs} +3 -3
  46. package/dist/cli/{db-B7JTWZQB.js → db-AJYYK5HH.js} +21 -21
  47. package/dist/cli/{db-24PTJ6J5.mjs → db-QP4WNVSS.mjs} +5 -5
  48. package/dist/cli/{executions-3CPX35CQ.js → executions-4LHEJCCY.js} +7 -7
  49. package/dist/cli/{executions-53BGMOYB.mjs → executions-NY7HYAEH.mjs} +5 -5
  50. package/dist/cli/{feedback-4JPCFN6F.js → feedback-CXXJJARR.js} +6 -6
  51. package/dist/cli/{feedback-GA6FF4UP.mjs → feedback-SJYHLVYY.mjs} +3 -3
  52. package/dist/cli/{git-VXB6ZLJ3.mjs → git-DUODO3NL.mjs} +4 -4
  53. package/dist/cli/git-K7YPSXLC.js +23 -0
  54. package/dist/cli/index.d.mts +1 -6
  55. package/dist/cli/index.d.ts +1 -6
  56. package/dist/cli/index.js +100 -87
  57. package/dist/cli/index.mjs +54 -41
  58. package/dist/cli/{legacy-noops-ANYHW7ER.js → legacy-noops-3UYJVVNW.js} +7 -7
  59. package/dist/cli/{legacy-noops-7J5WN4M6.mjs → legacy-noops-IUDXZFYO.mjs} +4 -4
  60. package/dist/cli/{monitors-EAV6KHOK.js → monitors-IEEVACOD.js} +86 -86
  61. package/dist/cli/{monitors-DXETJ5NX.mjs → monitors-PDWE6BGA.mjs} +5 -5
  62. package/dist/cli/{org-3IVIYYVM.js → org-NUFEZRY7.js} +61 -61
  63. package/dist/cli/{org-B57DDLLC.mjs → org-VSPO2YF3.mjs} +5 -5
  64. package/dist/cli/{play-FXABI2NH.mjs → play-KMHPJVWH.mjs} +21 -19
  65. package/dist/cli/{play-LNYRYGOT.js → play-MXYK2BRE.js} +229 -227
  66. package/dist/cli/{providers-LMZBXPLP.mjs → providers-7ENB4EYV.mjs} +5 -5
  67. package/dist/cli/{providers-SWHCMHUN.js → providers-YE5YRIML.js} +8 -8
  68. package/dist/cli/{proxy-env-M4ZHXHRL.mjs → proxy-env-NWUIGWS3.mjs} +34 -17
  69. package/dist/cli/{proxy-env-EBANZHPV.js → proxy-env-ZV2WZFAT.js} +37 -20
  70. package/dist/cli/{quickstart-PHGLWVGA.mjs → quickstart-GFOOHX2U.mjs} +3 -3
  71. package/dist/cli/{quickstart-YYKEMF5A.js → quickstart-KXCU2MZ2.js} +5 -5
  72. package/dist/cli/{search-PHSXMXSV.mjs → search-KESXCJDL.mjs} +6 -6
  73. package/dist/cli/search-R426JJQW.js +18 -0
  74. package/dist/cli/{secrets-CWWMAPBB.js → secrets-BRB5SIXG.js} +14 -14
  75. package/dist/cli/{secrets-ZRVJ6GWI.mjs → secrets-HDR522GC.mjs} +5 -5
  76. package/dist/cli/{sessions-3HSV7W2M.js → sessions-IK3OSQC6.js} +5 -5
  77. package/dist/cli/{sessions-IXMB2B5R.mjs → sessions-VOOSWVLS.mjs} +4 -4
  78. package/dist/cli/{settings-XEM64DRR.mjs → settings-BZKDIHTX.mjs} +8 -8
  79. package/dist/cli/{settings-PGYWTWJ7.js → settings-OPGEFGXL.js} +75 -75
  80. package/dist/cli/{setup-MCXGMDIV.mjs → setup-RVPS7AJJ.mjs} +6 -6
  81. package/dist/cli/{setup-EOTIXFLU.js → setup-TP2VWSCU.js} +41 -41
  82. package/dist/cli/{skills-4HXO76M7.mjs → skills-7BDD2F4V.mjs} +4 -4
  83. package/dist/cli/skills-TK2CIWVS.js +28 -0
  84. package/dist/cli/{tools-FMOJUYVW.js → tools-46ILS57M.js} +51 -51
  85. package/dist/cli/{tools-P3OULQFZ.mjs → tools-XLGGDBM3.mjs} +6 -6
  86. package/dist/cli/{update-2QXPDAIV.mjs → update-2JEM7WUF.mjs} +6 -6
  87. package/dist/cli/update-3JOCQWNF.js +28 -0
  88. package/dist/cli/{workflow-VAJ3GV2W.mjs → workflow-SSTGMXOQ.mjs} +6 -6
  89. package/dist/cli/{workflow-P2YQPB7Y.js → workflow-ZKGPY7T4.js} +16 -16
  90. package/dist/index.js +7 -7
  91. package/dist/index.mjs +4 -4
  92. package/dist/install-integrity.json +74 -74
  93. package/dist/plays/bundle-play-file.mjs +2 -2
  94. package/dist/release.d.mts +1 -1
  95. package/dist/release.d.ts +1 -1
  96. package/dist/release.js +2 -2
  97. package/dist/release.mjs +1 -1
  98. package/package.json +1 -1
  99. package/dist/cli/auth-G2CKLPSX.js +0 -31
  100. package/dist/cli/client-WTE3IK53.js +0 -20
  101. package/dist/cli/git-YTJCZVEL.js +0 -23
  102. package/dist/cli/search-CEBKSGXX.js +0 -18
  103. package/dist/cli/skills-3IXQN3KZ.js +0 -28
  104. package/dist/cli/update-H6I7437Q.js +0 -28
  105. /package/dist/cli/{chunk-GVUJJJ5G.mjs → chunk-6IKARAYD.mjs} +0 -0
  106. /package/dist/cli/{chunk-6A3TJUWC.js → chunk-S6R3OX7B.js} +0 -0
package/dist/cli/index.js CHANGED
@@ -9,8 +9,8 @@ var _chunkAYHLUHE5js = require('./chunk-AYHLUHE5.js');
9
9
 
10
10
 
11
11
 
12
- var _chunk7VBN7TU5js = require('./chunk-7VBN7TU5.js');
13
- require('./chunk-AKWMFS7H.js');
12
+ var _chunkWJGRIDWQjs = require('./chunk-WJGRIDWQ.js');
13
+ require('./chunk-5NEXN4MZ.js');
14
14
 
15
15
 
16
16
 
@@ -23,7 +23,7 @@ require('./chunk-AKWMFS7H.js');
23
23
 
24
24
 
25
25
 
26
- var _chunk6JIXIMC5js = require('./chunk-6JIXIMC5.js');
26
+ var _chunkGQUI3NYNjs = require('./chunk-GQUI3NYN.js');
27
27
 
28
28
 
29
29
  var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
@@ -33,7 +33,7 @@ var _chunkWJYPBHTEjs = require('./chunk-WJYPBHTE.js');
33
33
 
34
34
 
35
35
 
36
- var _chunkYFRWD6LMjs = require('./chunk-YFRWD6LM.js');
36
+ var _chunkEAIGGEV5js = require('./chunk-EAIGGEV5.js');
37
37
 
38
38
 
39
39
 
@@ -41,9 +41,9 @@ var _chunkYFRWD6LMjs = require('./chunk-YFRWD6LM.js');
41
41
 
42
42
 
43
43
 
44
- var _chunkFAQGAPKKjs = require('./chunk-FAQGAPKK.js');
44
+ var _chunkHIXYNASXjs = require('./chunk-HIXYNASX.js');
45
45
  require('./chunk-XNYIZMNQ.js');
46
- require('./chunk-TAPI3QLV.js');
46
+ require('./chunk-OOQ4IRP4.js');
47
47
  require('./chunk-7P5AA3SN.js');
48
48
  require('./chunk-OG64RBAC.js');
49
49
  require('./chunk-COGTRVWW.js');
@@ -58,44 +58,44 @@ var _commander = require('commander');
58
58
  var COMMAND_GROUPS = [
59
59
  {
60
60
  names: ["auth"],
61
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-G2CKLPSX.js")))).registerAuthCommands
61
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./auth-4ME3NANJ.js")))).registerAuthCommands
62
62
  },
63
63
  {
64
64
  names: ["providers"],
65
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-SWHCMHUN.js")))).registerProviderCommands
65
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./providers-YE5YRIML.js")))).registerProviderCommands
66
66
  },
67
67
  {
68
68
  names: ["search"],
69
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-CEBKSGXX.js")))).registerSearchCommand
69
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./search-R426JJQW.js")))).registerSearchCommand
70
70
  },
71
71
  {
72
72
  names: ["tools"],
73
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-FMOJUYVW.js")))).registerToolsCommands
73
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./tools-46ILS57M.js")))).registerToolsCommands
74
74
  },
75
75
  {
76
76
  names: ["executions"],
77
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-3CPX35CQ.js")))).registerExecutionsCommands
77
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./executions-4LHEJCCY.js")))).registerExecutionsCommands
78
78
  },
79
79
  {
80
80
  names: ["plays", "runs"],
81
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-LNYRYGOT.js")))).registerPlayCommands
81
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./play-MXYK2BRE.js")))).registerPlayCommands
82
82
  },
83
83
  {
84
84
  names: ["sessions"],
85
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-3HSV7W2M.js")))).registerSessionsCommands
85
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./sessions-IK3OSQC6.js")))).registerSessionsCommands
86
86
  },
87
87
  {
88
88
  names: ["workflows"],
89
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-P2YQPB7Y.js")))).registerWorkflowCommands
89
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./workflow-ZKGPY7T4.js")))).registerWorkflowCommands
90
90
  },
91
91
  {
92
92
  names: ["secrets"],
93
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-CWWMAPBB.js")))).registerSecretsCommands
93
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./secrets-BRB5SIXG.js")))).registerSecretsCommands
94
94
  },
95
95
  {
96
96
  names: ["settings", "notifications"],
97
97
  load: async () => {
98
- const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-PGYWTWJ7.js")));
98
+ const commands = await Promise.resolve().then(() => _interopRequireWildcard(require("./settings-OPGEFGXL.js")));
99
99
  return (p) => {
100
100
  commands.registerSettingsCommands(p);
101
101
  commands.registerNotificationCommands(p);
@@ -104,51 +104,51 @@ var COMMAND_GROUPS = [
104
104
  },
105
105
  {
106
106
  names: ["billing"],
107
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-OGWOCZOZ.js")))).registerBillingCommands
107
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./billing-CVQURTWQ.js")))).registerBillingCommands
108
108
  },
109
109
  {
110
110
  names: ["monitors"],
111
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-EAV6KHOK.js")))).registerMonitorsCommands
111
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./monitors-IEEVACOD.js")))).registerMonitorsCommands
112
112
  },
113
113
  {
114
114
  names: ["org"],
115
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-3IVIYYVM.js")))).registerOrgCommands
115
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./org-NUFEZRY7.js")))).registerOrgCommands
116
116
  },
117
117
  {
118
118
  names: ["git", "projects", "deployments"],
119
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-YTJCZVEL.js")))).registerGitCommands
119
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./git-K7YPSXLC.js")))).registerGitCommands
120
120
  },
121
121
  {
122
122
  names: ["csv"],
123
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-DTGOY553.js")))).registerCsvCommands
123
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./csv-B2OKPMNX.js")))).registerCsvCommands
124
124
  },
125
125
  {
126
126
  names: ["db"],
127
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-B7JTWZQB.js")))).registerDbCommands
127
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./db-AJYYK5HH.js")))).registerDbCommands
128
128
  },
129
129
  {
130
130
  names: ["feedback"],
131
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-4JPCFN6F.js")))).registerFeedbackCommands
131
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./feedback-CXXJJARR.js")))).registerFeedbackCommands
132
132
  },
133
133
  {
134
134
  names: ["enrich", "session", "backend"],
135
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-ANYHW7ER.js")))).registerDeprecatedCommands
135
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./legacy-noops-3UYJVVNW.js")))).registerDeprecatedCommands
136
136
  },
137
137
  {
138
138
  names: ["update"],
139
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-H6I7437Q.js")))).registerUpdateCommand
139
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./update-3JOCQWNF.js")))).registerUpdateCommand
140
140
  },
141
141
  {
142
142
  names: ["skills", "skills-auto-sync"],
143
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-3IXQN3KZ.js")))).registerSkillsCommand
143
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./skills-TK2CIWVS.js")))).registerSkillsCommand
144
144
  },
145
145
  {
146
146
  names: ["setup", "doctor"],
147
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-EOTIXFLU.js")))).registerSetupCommands
147
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./setup-TP2VWSCU.js")))).registerSetupCommands
148
148
  },
149
149
  {
150
150
  names: ["quickstart"],
151
- load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-YYKEMF5A.js")))).registerQuickstartCommands
151
+ load: async () => (await Promise.resolve().then(() => _interopRequireWildcard(require("./quickstart-KXCU2MZ2.js")))).registerQuickstartCommands
152
152
  }
153
153
  ];
154
154
  async function registerDeeplineCommandGroups(program, requestedCommand) {
@@ -175,7 +175,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
175
175
  async function reportAutoUpdateEvent(input) {
176
176
  let apiKey = "";
177
177
  try {
178
- apiKey = _chunkFAQGAPKKjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
178
+ apiKey = _chunkHIXYNASXjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
179
179
  } catch (e2) {
180
180
  return;
181
181
  }
@@ -191,15 +191,15 @@ async function reportAutoUpdateEvent(input) {
191
191
  headers: {
192
192
  Authorization: `Bearer ${apiKey}`,
193
193
  "Content-Type": "application/json",
194
- "User-Agent": `deepline-ts-sdk/${_chunkFAQGAPKKjs.SDK_VERSION}`,
194
+ "User-Agent": `deepline-ts-sdk/${_chunkHIXYNASXjs.SDK_VERSION}`,
195
195
  "X-Deepline-Client-Family": "sdk",
196
196
  "X-Deepline-CLI-Family": "sdk",
197
- "X-Deepline-CLI-Version": _chunkFAQGAPKKjs.SDK_VERSION,
198
- "X-Deepline-SDK-Version": _chunkFAQGAPKKjs.SDK_VERSION
197
+ "X-Deepline-CLI-Version": _chunkHIXYNASXjs.SDK_VERSION,
198
+ "X-Deepline-SDK-Version": _chunkHIXYNASXjs.SDK_VERSION
199
199
  },
200
200
  body: JSON.stringify({
201
201
  event: input.event,
202
- current_version: _optionalChain([input, 'access', _ => _.response, 'access', _2 => _2.current, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]) || _chunkFAQGAPKKjs.SDK_VERSION,
202
+ current_version: _optionalChain([input, 'access', _ => _.response, 'access', _2 => _2.current, 'optionalAccess', _3 => _3.trim, 'call', _4 => _4()]) || _chunkHIXYNASXjs.SDK_VERSION,
203
203
  target_version: input.response.latest,
204
204
  reason: _optionalChain([input, 'access', _5 => _5.response, 'access', _6 => _6.auto_update, 'optionalAccess', _7 => _7.reason]),
205
205
  command: _nullishCoalesce(input.response.command, () => ( null)),
@@ -218,7 +218,7 @@ function envTruthy(name) {
218
218
  return value === "1" || value === "true" || value === "yes";
219
219
  }
220
220
  function shouldSkipSelfUpdate() {
221
- return process.argv.includes("--json") || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunk7VBN7TU5js.shouldRunCliAutoUpdate.call(void 0, ) || _chunk6JIXIMC5js.isCiEnvironment.call(void 0, );
221
+ return process.argv.includes("--json") || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkWJGRIDWQjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkGQUI3NYNjs.isCiEnvironment.call(void 0, );
222
222
  }
223
223
  function parseSemver(version) {
224
224
  const trimmed = _optionalChain([version, 'optionalAccess', _14 => _14.trim, 'call', _15 => _15()]);
@@ -248,7 +248,7 @@ function compareSemver(left, right) {
248
248
  }
249
249
  function isDowngradeAutoUpdateResponse(response) {
250
250
  const target = _optionalChain([response, 'optionalAccess', _16 => _16.latest, 'optionalAccess', _17 => _17.trim, 'call', _18 => _18()]);
251
- const current = _optionalChain([response, 'optionalAccess', _19 => _19.current, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]) || _chunkFAQGAPKKjs.SDK_VERSION;
251
+ const current = _optionalChain([response, 'optionalAccess', _19 => _19.current, 'optionalAccess', _20 => _20.trim, 'call', _21 => _21()]) || _chunkHIXYNASXjs.SDK_VERSION;
252
252
  if (!target) return false;
253
253
  return compareSemver(target, current) < 0;
254
254
  }
@@ -287,7 +287,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl) {
287
287
  }
288
288
  if (isDowngradeAutoUpdateResponse(response)) {
289
289
  const target = response.latest;
290
- const current = _optionalChain([response, 'access', _24 => _24.current, 'optionalAccess', _25 => _25.trim, 'call', _26 => _26()]) || _chunkFAQGAPKKjs.SDK_VERSION;
290
+ const current = _optionalChain([response, 'access', _24 => _24.current, 'optionalAccess', _25 => _25.trim, 'call', _26 => _26()]) || _chunkHIXYNASXjs.SDK_VERSION;
291
291
  process.stderr.write(
292
292
  `Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
293
293
  `
@@ -295,12 +295,12 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl) {
295
295
  return false;
296
296
  }
297
297
  const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
298
- const plan = _chunk7VBN7TU5js.resolveUpdatePlan.call(void 0, {
298
+ const plan = _chunkWJGRIDWQjs.resolveUpdatePlan.call(void 0, {
299
299
  packageSpec,
300
300
  requireVerifiedNpmOwnership: true,
301
301
  npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
302
302
  });
303
- if (!_chunk7VBN7TU5js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
303
+ if (!_chunkWJGRIDWQjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
304
304
  return false;
305
305
  }
306
306
  const label = autoUpdate.reason === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : autoUpdate.reason === "deprecated" ? "is deprecated and will update automatically" : autoUpdate.required ? "requires an update" : "has an update available and will update automatically";
@@ -314,7 +314,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl) {
314
314
  event: "started",
315
315
  installKind: plan.kind
316
316
  });
317
- const updateResult = await _chunk7VBN7TU5js.runAutomaticUpdatePlan.call(void 0, plan);
317
+ const updateResult = await _chunkWJGRIDWQjs.runAutomaticUpdatePlan.call(void 0, plan);
318
318
  if (updateResult.status === "skipped_previous_failure") {
319
319
  void reportAutoUpdateEvent({
320
320
  baseUrl,
@@ -451,7 +451,7 @@ async function runPlayRunnerHealthCheck() {
451
451
  });
452
452
  let exitCode = 1;
453
453
  try {
454
- const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-LNYRYGOT.js")));
454
+ const { handlePlayRun } = await Promise.resolve().then(() => _interopRequireWildcard(require("./play-MXYK2BRE.js")));
455
455
  exitCode = await handlePlayRun([
456
456
  file,
457
457
  "--input",
@@ -491,7 +491,7 @@ function preflightErrorMessage(error) {
491
491
  return error instanceof Error ? error.message : String(error);
492
492
  }
493
493
  async function runPreflightCheck() {
494
- const baseUrl = _chunkFAQGAPKKjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
494
+ const baseUrl = _chunkHIXYNASXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
495
495
  const healthController = new AbortController();
496
496
  const healthTimeout = setTimeout(
497
497
  () => healthController.abort(),
@@ -506,9 +506,9 @@ async function runPreflightCheck() {
506
506
  version: pickString(payload, "version")
507
507
  };
508
508
  }).catch(() => ({ status: "unreachable", version: null })).finally(() => clearTimeout(healthTimeout));
509
- const apiKey = _chunkFAQGAPKKjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
510
- const http = apiKey ? new (0, _chunkFAQGAPKKjs.HttpClient)(
511
- _chunkFAQGAPKKjs.resolveConfig.call(void 0, {
509
+ const apiKey = _chunkHIXYNASXjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
510
+ const http = apiKey ? new (0, _chunkHIXYNASXjs.HttpClient)(
511
+ _chunkHIXYNASXjs.resolveConfig.call(void 0, {
512
512
  baseUrl,
513
513
  apiKey,
514
514
  timeout: PREFLIGHT_TIMEOUT_MS,
@@ -600,12 +600,12 @@ function printPreflightHuman(data) {
600
600
  }
601
601
  async function newerCliCommandHint(baseUrl, command) {
602
602
  if (!command.trim()) return null;
603
- const { response, error } = await _chunk6JIXIMC5js.checkSdkCompatibility.call(void 0, baseUrl, { command });
603
+ const { response, error } = await _chunkGQUI3NYNjs.checkSdkCompatibility.call(void 0, baseUrl, { command });
604
604
  if (error || !response) return null;
605
605
  const introduced = response.command_introduced_in;
606
606
  if (introduced) {
607
607
  return [
608
- `\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkFAQGAPKKjs.SDK_VERSION}.`,
608
+ `\`deepline ${introduced.command}\` was added in SDK CLI ${introduced.introduced_in}. This CLI is ${_chunkHIXYNASXjs.SDK_VERSION}.`,
609
609
  ` ${introduced.reason}`,
610
610
  ` Update with: ${response.update_command}`,
611
611
  " Agent skills are served by Deepline and refresh on their own, so a skill can describe a command this CLI does not have yet."
@@ -614,18 +614,18 @@ async function newerCliCommandHint(baseUrl, command) {
614
614
  if (!response.update_required) return null;
615
615
  return [
616
616
  response.message,
617
- ` Installed: ${_chunkFAQGAPKKjs.SDK_VERSION}. Run: ${response.update_command}`,
617
+ ` Installed: ${_chunkHIXYNASXjs.SDK_VERSION}. Run: ${response.update_command}`,
618
618
  " If an agent skill told you to run this, the skill is newer than this CLI."
619
619
  ].join("\n");
620
620
  }
621
- async function main() {
621
+ async function runMain(ensureTransport) {
622
622
  const mainStartedAt = Date.now();
623
623
  _chunkAYHLUHE5js.recordCliTrace.call(void 0, {
624
624
  phase: "cli.main_start",
625
625
  argv: process.argv.slice(2)
626
626
  });
627
627
  if (process.stdout.isTTY && !process.argv.includes("--json")) {
628
- for (const message of _chunk7VBN7TU5js.consumePendingCliUpdateMessages.call(void 0, )) {
628
+ for (const message of _chunkWJGRIDWQjs.consumePendingCliUpdateMessages.call(void 0, )) {
629
629
  process.stderr.write(`Deepline CLI update: ${message}
630
630
  `);
631
631
  }
@@ -638,7 +638,7 @@ async function main() {
638
638
  const program = new (0, _commander.Command)();
639
639
  program.name("deepline").description(
640
640
  "Deepline CLI \u2014 GTM enrichment tools, plays, and runs from your terminal."
641
- ).version(_chunkFAQGAPKKjs.SDK_VERSION, "-v, --version", "Show version").exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
641
+ ).version(_chunkHIXYNASXjs.SDK_VERSION, "-v, --version", "Show version").exitOverride().showHelpAfterError().showSuggestionAfterError(true).addHelpText(
642
642
  "beforeAll",
643
643
  "for agents: ensure you are using the /deepline-gtm skill\n"
644
644
  ).addHelpText(
@@ -677,29 +677,25 @@ Exit codes:
677
677
  );
678
678
  program.hook("preAction", async (_thisCommand, actionCommand) => {
679
679
  if (actionCommand.name() !== "version") {
680
- if (["HTTP_PROXY", "http_proxy", "HTTPS_PROXY", "https_proxy"].some(
681
- (name) => _optionalChain([process, 'access', _34 => _34.env, 'access', _35 => _35[name], 'optionalAccess', _36 => _36.trim, 'call', _37 => _37()])
682
- )) {
683
- await Promise.resolve().then(() => _interopRequireWildcard(require("./proxy-env-EBANZHPV.js")));
684
- }
680
+ await ensureTransport();
685
681
  }
686
- if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunk6JIXIMC5js.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
682
+ if (actionCommand.name() === "version" || actionCommand.name() === "update" || actionCommand.name() === "setup" || actionCommand.name() === "skills" || actionCommand.name() === _chunkGQUI3NYNjs.SKILLS_AUTO_SYNC_COMMAND || actionCommand.name() === "doctor" || isAutoUpdateSettingsInvocation() || isDeprecatedCommandInvocation()) {
687
683
  return;
688
684
  }
689
685
  const compatibilityCommand = compatibilityCommandPath(actionCommand) || actionCommand.name();
690
686
  if (printStartupPhase) {
691
- _optionalChain([progress, 'optionalAccess', _38 => _38.phase, 'call', _39 => _39("checking sdk compatibility")]);
687
+ _optionalChain([progress, 'optionalAccess', _34 => _34.phase, 'call', _35 => _35("checking sdk compatibility")]);
692
688
  }
693
- const baseUrl = _chunkFAQGAPKKjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
694
- _chunk6JIXIMC5js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
689
+ const baseUrl = _chunkHIXYNASXjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
690
+ _chunkGQUI3NYNjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
695
691
  const shouldDeferSkillsSync = shouldDeferSkillsSyncForCommand();
696
- const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkFAQGAPKKjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
697
- const trusted = _chunk6JIXIMC5js.readTrustedCleanCompatibility.call(void 0,
692
+ const skillsVersion = shouldDeferSkillsSync ? void 0 : _chunkHIXYNASXjs.readSdkSkillsLocalVersion.call(void 0, baseUrl);
693
+ const trusted = _chunkGQUI3NYNjs.readTrustedCleanCompatibility.call(void 0,
698
694
  baseUrl,
699
695
  compatibilityCommand,
700
696
  skillsVersion
701
697
  );
702
- const fastDeadline = trusted === null && _chunk6JIXIMC5js.readFreshCleanCompatibility.call(void 0,
698
+ const fastDeadline = trusted === null && _chunkGQUI3NYNjs.readFreshCleanCompatibility.call(void 0,
703
699
  baseUrl,
704
700
  compatibilityCommand,
705
701
  skillsVersion
@@ -723,10 +719,10 @@ Exit codes:
723
719
  skillsVersion: _nullishCoalesce(skillsVersion, () => ( null)),
724
720
  fastDeadline
725
721
  },
726
- () => _chunk6JIXIMC5js.checkSdkCompatibility.call(void 0, baseUrl, {
722
+ () => _chunkGQUI3NYNjs.checkSdkCompatibility.call(void 0, baseUrl, {
727
723
  command: compatibilityCommand,
728
724
  skillsVersion,
729
- ...fastDeadline ? { timeoutMs: _chunk6JIXIMC5js.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
725
+ ...fastDeadline ? { timeoutMs: _chunkGQUI3NYNjs.SDK_COMPATIBILITY_FAST_DEADLINE_MS } : {}
730
726
  })
731
727
  );
732
728
  if (compatibility.error) {
@@ -739,18 +735,18 @@ Exit codes:
739
735
  if (relaunched) {
740
736
  return;
741
737
  }
742
- _chunk6JIXIMC5js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
738
+ _chunkGQUI3NYNjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
743
739
  quietAdvisory: process.argv.includes("--json")
744
740
  });
745
741
  if (printStartupPhase) {
746
- _optionalChain([progress, 'optionalAccess', _40 => _40.phase, 'call', _41 => _41("checking sdk skills")]);
742
+ _optionalChain([progress, 'optionalAccess', _36 => _36.phase, 'call', _37 => _37("checking sdk skills")]);
747
743
  }
748
744
  if (!shouldDeferSkillsSync) {
749
745
  const skillsUpdate = compatibility.response && Object.prototype.hasOwnProperty.call(compatibility.response, "skills") ? _nullishCoalesce(compatibility.response.skills, () => ( null)) : void 0;
750
746
  await _chunkAYHLUHE5js.traceCliSpan.call(void 0,
751
747
  "cli.sdk_skills_sync",
752
748
  { baseUrl },
753
- () => _chunk6JIXIMC5js.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
749
+ () => _chunkGQUI3NYNjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
754
750
  update: skillsUpdate,
755
751
  mode: "detached"
756
752
  })
@@ -775,8 +771,8 @@ Examples:
775
771
  `
776
772
  ).action(async (options) => {
777
773
  const data = await runPreflightCheck();
778
- if (_chunkYFRWD6LMjs.shouldEmitJson.call(void 0, options.json)) {
779
- _chunkYFRWD6LMjs.printJson.call(void 0, data);
774
+ if (_chunkEAIGGEV5js.shouldEmitJson.call(void 0, options.json)) {
775
+ _chunkEAIGGEV5js.printJson.call(void 0, data);
780
776
  } else {
781
777
  printPreflightHuman(data);
782
778
  }
@@ -801,13 +797,13 @@ Examples:
801
797
  try {
802
798
  if (options.playRunner) {
803
799
  const data2 = await runPlayRunnerHealthCheck();
804
- _chunkYFRWD6LMjs.printJson.call(void 0, data2);
800
+ _chunkEAIGGEV5js.printJson.call(void 0, data2);
805
801
  return;
806
802
  }
807
- const { DeeplineClient } = await Promise.resolve().then(() => _interopRequireWildcard(require("./client-WTE3IK53.js")));
803
+ const { DeeplineClient } = await Promise.resolve().then(() => _interopRequireWildcard(require("./client-WN33QCMV.js")));
808
804
  const client = new DeeplineClient();
809
805
  const data = await client.health();
810
- _chunkYFRWD6LMjs.printJson.call(void 0, data);
806
+ _chunkEAIGGEV5js.printJson.call(void 0, data);
811
807
  } catch (error) {
812
808
  throw new Error(
813
809
  `Cannot reach Deepline API: ${error instanceof Error ? error.message : String(error)}`
@@ -828,15 +824,15 @@ Examples:
828
824
  `
829
825
  ).option("--json", "Emit JSON output").action((options) => {
830
826
  if (options.json) {
831
- _chunkYFRWD6LMjs.printCompactJson.call(void 0, { version: _chunkFAQGAPKKjs.SDK_VERSION });
827
+ _chunkEAIGGEV5js.printCompactJson.call(void 0, { version: _chunkHIXYNASXjs.SDK_VERSION });
832
828
  return;
833
829
  }
834
- process.stdout.write(`deepline ${_chunkFAQGAPKKjs.SDK_VERSION}
830
+ process.stdout.write(`deepline ${_chunkHIXYNASXjs.SDK_VERSION}
835
831
  `);
836
832
  });
837
833
  if (process.argv.slice(2).length === 0) {
838
834
  if (!process.stdout.isTTY) {
839
- _chunkYFRWD6LMjs.printJson.call(void 0, {
835
+ _chunkEAIGGEV5js.printJson.call(void 0, {
840
836
  ok: false,
841
837
  exitCode: 2,
842
838
  code: "MISSING_COMMAND",
@@ -860,12 +856,8 @@ Examples:
860
856
  const requestedTopLevelCommand = _nullishCoalesce(process.argv.slice(2)[0], () => ( ""));
861
857
  if (!topLevelCommandKnown(program, requestedTopLevelCommand)) {
862
858
  console.error(`error: unknown command '${requestedTopLevelCommand}'`);
863
- const baseUrl = _chunkFAQGAPKKjs.autoDetectBaseUrl.call(void 0, );
864
- if (["HTTP_PROXY", "http_proxy", "HTTPS_PROXY", "https_proxy"].some(
865
- (name) => _optionalChain([process, 'access', _42 => _42.env, 'access', _43 => _43[name], 'optionalAccess', _44 => _44.trim, 'call', _45 => _45()])
866
- )) {
867
- await Promise.resolve().then(() => _interopRequireWildcard(require("./proxy-env-EBANZHPV.js")));
868
- }
859
+ const baseUrl = _chunkHIXYNASXjs.autoDetectBaseUrl.call(void 0, );
860
+ await ensureTransport();
869
861
  const versionHint = await newerCliCommandHint(
870
862
  baseUrl,
871
863
  requestedTopLevelCommand
@@ -885,7 +877,7 @@ Examples:
885
877
  ms: Date.now() - mainStartedAt,
886
878
  ok: true
887
879
  });
888
- await _chunk6JIXIMC5js.maybeReportSdkCliFailure.call(void 0, {
880
+ await _chunkGQUI3NYNjs.maybeReportSdkCliFailure.call(void 0, {
889
881
  argv: process.argv.slice(2),
890
882
  startedAtMs: mainStartedAt,
891
883
  exitCode: typeof process.exitCode === "number" ? process.exitCode : null
@@ -898,7 +890,7 @@ Examples:
898
890
  ok: false,
899
891
  error: error instanceof Error ? error.message : String(error)
900
892
  });
901
- _optionalChain([progress, 'optionalAccess', _46 => _46.fail, 'call', _47 => _47()]);
893
+ _optionalChain([progress, 'optionalAccess', _38 => _38.fail, 'call', _39 => _39()]);
902
894
  const wantsJson = process.argv.includes("--json");
903
895
  if (commanderError) {
904
896
  if (commanderError.code === "commander.unknownCommand") {
@@ -906,18 +898,18 @@ Examples:
906
898
  process.exitCode = commanderError.code === "commander.unknownCommand" && !wantsJson ? 2 : _nullishCoalesce(commanderError.exitCode, () => ( 1));
907
899
  return;
908
900
  } else if (wantsJson) {
909
- _chunkYFRWD6LMjs.printJsonError.call(void 0, error);
901
+ _chunkEAIGGEV5js.printJsonError.call(void 0, error);
910
902
  } else if (error instanceof Error) {
911
903
  console.error(`Error: ${error.message}`);
912
- const providerConcurrency = _chunkYFRWD6LMjs.formatProviderConcurrencyDiagnostic.call(void 0, error);
904
+ const providerConcurrency = _chunkEAIGGEV5js.formatProviderConcurrencyDiagnostic.call(void 0, error);
913
905
  if (providerConcurrency) console.error(providerConcurrency);
914
906
  } else {
915
907
  console.error(`Error: ${String(error)}`);
916
908
  }
917
909
  const explicitExitCode = error && typeof error === "object" && typeof error.exitCode === "number" ? error.exitCode : void 0;
918
- const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunk6JIXIMC5js.resolveSdkCliFailureExitCode.call(void 0, error)));
910
+ const failureExitCode = _nullishCoalesce(explicitExitCode, () => ( _chunkGQUI3NYNjs.resolveSdkCliFailureExitCode.call(void 0, error)));
919
911
  process.exitCode = failureExitCode;
920
- await _chunk6JIXIMC5js.maybeReportSdkCliFailure.call(void 0, {
912
+ await _chunkGQUI3NYNjs.maybeReportSdkCliFailure.call(void 0, {
921
913
  argv: process.argv.slice(2),
922
914
  startedAtMs: mainStartedAt,
923
915
  exitCode: failureExitCode,
@@ -926,6 +918,27 @@ Examples:
926
918
  }
927
919
  process.exitCode = _nullishCoalesce(process.exitCode, () => ( 0));
928
920
  }
921
+ async function main() {
922
+ let disposeTransport;
923
+ const ensureTransport = async () => {
924
+ if (disposeTransport) return;
925
+ const hasProxy = [
926
+ "HTTP_PROXY",
927
+ "http_proxy",
928
+ "HTTPS_PROXY",
929
+ "https_proxy"
930
+ ].some((name) => _optionalChain([process, 'access', _40 => _40.env, 'access', _41 => _41[name], 'optionalAccess', _42 => _42.trim, 'call', _43 => _43()]));
931
+ if (!process.versions.bun || hasProxy) {
932
+ const { configureCliTransport } = await Promise.resolve().then(() => _interopRequireWildcard(require("./proxy-env-ZV2WZFAT.js")));
933
+ disposeTransport = configureCliTransport();
934
+ }
935
+ };
936
+ try {
937
+ await runMain(ensureTransport);
938
+ } finally {
939
+ await _optionalChain([disposeTransport, 'optionalCall', _44 => _44()]);
940
+ }
941
+ }
929
942
  var DEV_CLI_AWAIT_MAIN = Symbol.for("@deepline/sdk/dev-cli-await-main");
930
943
  if (globalThis[DEV_CLI_AWAIT_MAIN] !== true) {
931
944
  void main();