deepline 0.3.543 → 0.3.545
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.
- package/dist/bundling-sources/sdk/src/client-core.ts +11 -0
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/integration-contracts/monitor-fleet-contract.ts +3 -1
- package/dist/bundling-sources/shared_libs/monitors/fleets/errors.ts +5 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/issues.ts +5 -1
- package/dist/bundling-sources/shared_libs/monitors/fleets/limits.ts +6 -0
- package/dist/bundling-sources/shared_libs/monitors/fleets/plan.ts +142 -3
- package/dist/bundling-sources/shared_libs/play-runtime/durable-summary-events.ts +29 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +2 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-runtime-worker.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +13 -1
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/runtime-event-search.ts +1 -1
- package/dist/cli/auth-455MB4K6.js +43 -0
- package/dist/cli/{auth-ITAELTOA.mjs → auth-VZAMAMFW.mjs} +5 -5
- package/dist/cli/{billing-33XVFDUJ.js → billing-ASZJDFH2.js} +92 -92
- package/dist/cli/{billing-WZ7RVZW4.mjs → billing-DADQUQEZ.mjs} +8 -8
- package/dist/cli/{chunk-NR3O56FT.mjs → chunk-2CBX43LP.mjs} +5 -5
- package/dist/cli/{chunk-F6VSQ5LN.js → chunk-2FF3O2Y2.js} +12 -12
- package/dist/cli/{chunk-52YK3EII.mjs → chunk-2HFSYH7V.mjs} +2 -2
- package/dist/cli/{chunk-EHUG6EUT.js → chunk-34UKDHRL.js} +26 -26
- package/dist/cli/{chunk-JXG7HWBA.mjs → chunk-3M2QH3KA.mjs} +1 -1
- package/dist/cli/{chunk-2NCJQEZH.js → chunk-3NG43NXB.js} +53 -53
- package/dist/cli/{chunk-4SKDSSPU.mjs → chunk-3TCHX7YK.mjs} +2 -2
- package/dist/cli/{chunk-5VIPTLRX.mjs → chunk-4NZ3OZNO.mjs} +1 -1
- package/dist/cli/{chunk-ZRT2PNYY.mjs → chunk-52C6W7FG.mjs} +1 -1
- package/dist/cli/{chunk-STXG2LFC.js → chunk-5YYWZ43J.js} +2 -2
- package/dist/cli/{chunk-274WKLSY.mjs → chunk-7JZ27AFH.mjs} +2 -2
- package/dist/cli/{chunk-R57UCXQG.mjs → chunk-7MFATEUC.mjs} +1 -1
- package/dist/cli/{chunk-MCBUWK5K.js → chunk-7MHBJU73.js} +22 -22
- package/dist/cli/{chunk-XFPVFWZR.mjs → chunk-7P72EGLK.mjs} +1 -1
- package/dist/cli/{chunk-TBCNL2T5.js → chunk-C6XYSTBW.js} +1 -1
- package/dist/cli/{chunk-QFRMVI4S.js → chunk-CJ7DBYEQ.js} +3 -3
- package/dist/cli/{chunk-YE3T73BV.js → chunk-CXETRZ3G.js} +10 -10
- package/dist/cli/{chunk-BGAUADV4.js → chunk-D3SXB2NX.js} +41 -41
- package/dist/cli/{chunk-UJ6GOV7K.js → chunk-DGKDCZGC.js} +13 -13
- package/dist/cli/{chunk-46BEBZ3M.js → chunk-DZTVDL2X.js} +29 -28
- package/dist/cli/{chunk-2KTGZKRE.js → chunk-EK5C2R7S.js} +15 -15
- package/dist/cli/{chunk-YJYKZ2U3.js → chunk-ERLW6RPA.js} +2 -2
- package/dist/cli/{chunk-VSJEOSYL.mjs → chunk-EWA3M54M.mjs} +1 -1
- package/dist/cli/{chunk-2LNTKICO.js → chunk-FB7UPZ6M.js} +3 -3
- package/dist/cli/{chunk-PX7XAVUC.js → chunk-G5TV6WLV.js} +19 -19
- package/dist/cli/{chunk-NHKP2NSU.js → chunk-GFRJU2KB.js} +2 -2
- package/dist/cli/{chunk-D6YAU3CF.mjs → chunk-GWDPNOA7.mjs} +2 -1
- package/dist/cli/{chunk-ZSPBJB7I.mjs → chunk-HLUNTJBO.mjs} +4 -4
- package/dist/cli/{chunk-OELJKQOL.mjs → chunk-HPX7LLAM.mjs} +2 -2
- package/dist/cli/{chunk-DI3GL3T6.js → chunk-HR5BT42R.js} +99 -99
- package/dist/cli/{chunk-3JZXU5OB.js → chunk-IYJO3RWR.js} +5 -5
- package/dist/cli/{chunk-DH43ECTN.mjs → chunk-JL5JU3LD.mjs} +2 -2
- package/dist/cli/{chunk-OAFKUHN5.mjs → chunk-KRW727W6.mjs} +4 -4
- package/dist/cli/{chunk-SYOPHFKB.mjs → chunk-KYO2FICL.mjs} +5 -5
- package/dist/cli/{chunk-FNW2SGPD.mjs → chunk-LTCEZWPZ.mjs} +2 -2
- package/dist/cli/{chunk-XBM3KABD.mjs → chunk-LWPFMYSO.mjs} +2 -2
- package/dist/cli/{chunk-NLENABRU.js → chunk-N4LADLCO.js} +6 -6
- package/dist/cli/{chunk-XSN6BAZT.mjs → chunk-NAN3A4IF.mjs} +5 -5
- package/dist/cli/{chunk-23D224GI.js → chunk-NCX2JH2F.js} +9 -9
- package/dist/cli/{chunk-DUGTPVT7.js → chunk-NZDZGK35.js} +7 -7
- package/dist/cli/{chunk-C35NLLSA.js → chunk-OGQYAJSO.js} +5 -5
- package/dist/cli/{chunk-J2F6F5GL.js → chunk-QI57XUGA.js} +5 -5
- package/dist/cli/{chunk-O2KLWUNI.js → chunk-QM7PHHYZ.js} +44 -44
- package/dist/cli/{chunk-5MN3BKNB.js → chunk-TQKHXMV3.js} +16 -16
- package/dist/cli/{chunk-SU4K4SUU.mjs → chunk-WP36UBRY.mjs} +1 -1
- package/dist/cli/{chunk-AACKPOGA.mjs → chunk-XBYQZEUE.mjs} +1 -1
- package/dist/cli/{chunk-7AUQTNLB.mjs → chunk-XGEUPU3L.mjs} +2 -2
- package/dist/cli/{chunk-HKJ26NRN.mjs → chunk-XMUPZINS.mjs} +5 -5
- package/dist/cli/{chunk-GRCFX2EG.js → chunk-YRQKRQDU.js} +4 -4
- package/dist/cli/{chunk-6SJZMMD5.mjs → chunk-YWTRCKGD.mjs} +11 -11
- package/dist/cli/{chunk-SZNJENGT.mjs → chunk-Z4Y4BLW7.mjs} +3 -3
- package/dist/cli/{chunk-W2OPPSAZ.mjs → chunk-Z7QM244Q.mjs} +3 -3
- package/dist/cli/concurrent-runs-help-GFWXOKF5.js +21 -0
- package/dist/cli/{concurrent-runs-help-Z6ODNL4E.mjs → concurrent-runs-help-YP7ALTDB.mjs} +6 -6
- package/dist/cli/{csv-SSOFTXHU.js → csv-67WT5EGR.js} +13 -13
- package/dist/cli/{csv-5QW2HPHT.mjs → csv-D5ITFSYI.mjs} +4 -4
- package/dist/cli/{db-4LK5AJNO.js → db-GZS76X7R.js} +27 -27
- package/dist/cli/{db-K2JMR6EM.mjs → db-SZYBRFYG.mjs} +6 -6
- package/dist/cli/{describe-AXHQZHTT.mjs → describe-YJ7ZLLLI.mjs} +18 -18
- package/dist/cli/describe-ZRGYAEBT.js +50 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-FY2XTX2W.mjs → executions-HMYGR32E.mjs} +6 -6
- package/dist/cli/{executions-AATJQQAQ.js → executions-O5USTYGL.js} +8 -8
- package/dist/cli/{feedback-QPVJER75.js → feedback-RHLFDCRS.js} +14 -14
- package/dist/cli/{feedback-MKBPRGS6.mjs → feedback-Z3NXWYUO.mjs} +6 -6
- package/dist/cli/{git-AGRFZR3K.mjs → git-CLFKXELB.mjs} +5 -5
- package/dist/cli/git-RC4XDATD.js +25 -0
- package/dist/cli/index.js +142 -142
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{integrations-OUQ6U33M.mjs → integrations-FOACOBQB.mjs} +7 -7
- package/dist/cli/{integrations-R6OUFZXI.js → integrations-TZ4QEQGV.js} +15 -15
- package/dist/cli/{legacy-noops-DVL2RRKL.mjs → legacy-noops-6F6Y3BV7.mjs} +6 -6
- package/dist/cli/{legacy-noops-H7INM2QN.js → legacy-noops-QRDOS33V.js} +9 -9
- package/dist/cli/{mcp-33F7D7WI.js → mcp-ETMMDDGB.js} +24 -24
- package/dist/cli/{mcp-2Z2YVOLK.mjs → mcp-UXRCWOZU.mjs} +4 -4
- package/dist/cli/{monitors-NZD2WIKK.mjs → monitors-6XEWR46R.mjs} +86 -13
- package/dist/cli/{monitors-KDUJHAKJ.js → monitors-DITT7QTV.js} +179 -106
- package/dist/cli/{org-4PQGHLEB.js → org-4DE37X3L.js} +88 -88
- package/dist/cli/{org-EJW45RUA.mjs → org-CVSSH73G.mjs} +6 -6
- package/dist/cli/{play-MLHMQL4G.js → play-RH6P45CI.js} +317 -317
- package/dist/cli/{play-3CM5RT5J.mjs → play-Y5NCHOKK.mjs} +17 -17
- package/dist/cli/{providers-YBJG7277.js → providers-DU42DLOL.js} +9 -9
- package/dist/cli/{providers-BHYBJI4R.mjs → providers-VHUHC4IZ.mjs} +6 -6
- package/dist/cli/{quickstart-LL3MR562.mjs → quickstart-HJY5YYE5.mjs} +4 -4
- package/dist/cli/{quickstart-O7L2NNGJ.js → quickstart-XJ43JLEC.js} +6 -6
- package/dist/cli/{run-OK545H5Q.mjs → run-JAIXHVH7.mjs} +23 -23
- package/dist/cli/{run-HJ2AR6CM.js → run-JXUS7QFI.js} +43 -43
- package/dist/cli/search-O5VVMXII.js +32 -0
- package/dist/cli/{search-Z5ZKMRTX.mjs → search-RDMNM2AX.mjs} +7 -7
- package/dist/cli/{search-output-SVW4DETG.js → search-output-RKAM2HBH.js} +6 -6
- package/dist/cli/{search-output-Q5VHNUWG.mjs → search-output-ZKTR3WTJ.mjs} +4 -4
- package/dist/cli/{secrets-ENQWMCB5.js → secrets-TKFVMAYX.js} +15 -15
- package/dist/cli/{secrets-QIKIEFWB.mjs → secrets-WSW3FTF6.mjs} +6 -6
- package/dist/cli/sessions-3PWFWCHO.js +22 -0
- package/dist/cli/{sessions-AETO22RF.mjs → sessions-724BK6VP.mjs} +6 -6
- package/dist/cli/{settings-OFLIFTMZ.js → settings-5LJZDAZU.js} +85 -85
- package/dist/cli/{settings-G5RGRPFV.mjs → settings-YRC7J75G.mjs} +12 -12
- package/dist/cli/{setup-QW7Y62XD.js → setup-2F3DBSOS.js} +49 -49
- package/dist/cli/{setup-G4N3X6KG.mjs → setup-STNPX5MK.mjs} +9 -9
- package/dist/cli/{skills-QRFQGHNA.mjs → skills-D5PK56FO.mjs} +7 -7
- package/dist/cli/skills-RFOMVXIT.js +36 -0
- package/dist/cli/tools-CAO6EVUW.js +57 -0
- package/dist/cli/{tools-52BH7UTF.mjs → tools-WOGWMBA3.mjs} +17 -17
- package/dist/cli/update-L4DQZY3G.js +34 -0
- package/dist/cli/{update-SDGZLAGL.mjs → update-PC6XSWMI.mjs} +9 -9
- package/dist/cli/{views-5QKAWYPI.js → views-HLCLAPWN.js} +21 -21
- package/dist/cli/{views-3BIJFJMQ.mjs → views-IIHT4RYQ.mjs} +6 -6
- package/dist/cli/{workflow-G67RPWVY.js → workflow-CCZ2A7DI.js} +17 -17
- package/dist/cli/{workflow-QAK773FR.mjs → workflow-HK4MZ7LK.mjs} +7 -7
- package/dist/{client-D1ga52xq.d.ts → client-BQ6yuSjM.d.ts} +1 -1
- package/dist/{client-bd4QQIXo.d.mts → client-DfdUc_MY.d.mts} +1 -1
- package/dist/{client-core-B6eMVx8h.d.ts → client-core-3GQ8WMuk.d.ts} +14 -0
- package/dist/{client-core-CqfWNf2Q.d.mts → client-core-ClsNRytk.d.mts} +14 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +114 -114
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-S6B5WUU5.js +0 -43
- package/dist/cli/concurrent-runs-help-E4OYD3DS.js +0 -21
- package/dist/cli/describe-AC6PLEFP.js +0 -50
- package/dist/cli/git-RUYFQEJX.js +0 -25
- package/dist/cli/search-UUNS6BCC.js +0 -32
- package/dist/cli/sessions-FNSUDERA.js +0 -22
- package/dist/cli/skills-3IXIY2IV.js +0 -36
- package/dist/cli/tools-MYBUMPKH.js +0 -57
- package/dist/cli/update-GT7574UU.js +0 -34
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkG5TV6WLVjs = require('./chunk-G5TV6WLV.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -22,14 +22,14 @@ var _chunkPX7XAVUCjs = require('./chunk-PX7XAVUC.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkCJ7DBYEQjs = require('./chunk-CJ7DBYEQ.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkYRQKRQDUjs = require('./chunk-YRQKRQDU.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunkBBTKAASQjs = require('./chunk-BBTKAASQ.js');
|
|
@@ -60,7 +60,7 @@ function statusBannerLine(value) {
|
|
|
60
60
|
return `Service notice: ${banner.message}`;
|
|
61
61
|
}
|
|
62
62
|
function envFilePath(baseUrl) {
|
|
63
|
-
return
|
|
63
|
+
return _chunkCJ7DBYEQjs.hostEnvFilePath.call(void 0, baseUrl);
|
|
64
64
|
}
|
|
65
65
|
function normalizeAuthScope(value) {
|
|
66
66
|
if (!value || value === "global") return "global";
|
|
@@ -73,7 +73,7 @@ function parseAuthScope(args) {
|
|
|
73
73
|
}
|
|
74
74
|
function pendingClaimPath(baseUrl, scope) {
|
|
75
75
|
if (scope === "folder") {
|
|
76
|
-
const target =
|
|
76
|
+
const target = _chunkCJ7DBYEQjs.resolveProjectPinTarget.call(void 0, );
|
|
77
77
|
if (!target.ok) {
|
|
78
78
|
throw new Error(
|
|
79
79
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -83,10 +83,10 @@ function pendingClaimPath(baseUrl, scope) {
|
|
|
83
83
|
}
|
|
84
84
|
return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
|
|
85
85
|
}
|
|
86
|
-
return `${
|
|
86
|
+
return `${_chunkCJ7DBYEQjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
87
87
|
}
|
|
88
88
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
89
|
-
return `${
|
|
89
|
+
return `${_chunkCJ7DBYEQjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
|
|
90
90
|
}
|
|
91
91
|
function savePendingClaim(baseUrl, claim) {
|
|
92
92
|
const filePath = pendingClaimPath(baseUrl, claim.scope);
|
|
@@ -191,21 +191,21 @@ function parseRegisterWaitMode(args) {
|
|
|
191
191
|
function shouldWaitForRegisterClaim(mode) {
|
|
192
192
|
if (mode === "yes") return true;
|
|
193
193
|
if (mode === "no") return false;
|
|
194
|
-
return
|
|
194
|
+
return _chunkYRQKRQDUjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
195
195
|
}
|
|
196
196
|
function saveEnvValues(values, baseUrl, scope) {
|
|
197
197
|
const filtered = {
|
|
198
|
-
...values[
|
|
199
|
-
...values[
|
|
200
|
-
...values[
|
|
201
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
198
|
+
...values[_chunkCJ7DBYEQjs.HOST_URL_ENV] ? { [_chunkCJ7DBYEQjs.HOST_URL_ENV]: values[_chunkCJ7DBYEQjs.HOST_URL_ENV] } : {},
|
|
199
|
+
...values[_chunkCJ7DBYEQjs.API_KEY_ENV] ? { [_chunkCJ7DBYEQjs.API_KEY_ENV]: values[_chunkCJ7DBYEQjs.API_KEY_ENV] } : {},
|
|
200
|
+
...values[_chunkCJ7DBYEQjs.ACTIVE_ORG_ID_ENV] ? { [_chunkCJ7DBYEQjs.ACTIVE_ORG_ID_ENV]: values[_chunkCJ7DBYEQjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
201
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkCJ7DBYEQjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkCJ7DBYEQjs.ACTIVE_ORG_NAME_ENV]: values[_chunkCJ7DBYEQjs.ACTIVE_ORG_NAME_ENV] } : {},
|
|
202
202
|
// An explicit empty list must reach the store: it clears a stale line.
|
|
203
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
203
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkCJ7DBYEQjs.FEATURES_ENV) ? { [_chunkCJ7DBYEQjs.FEATURES_ENV]: values[_chunkCJ7DBYEQjs.FEATURES_ENV] } : {}
|
|
204
204
|
};
|
|
205
205
|
if (scope === "folder") {
|
|
206
|
-
|
|
206
|
+
_chunkCJ7DBYEQjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
207
207
|
} else {
|
|
208
|
-
|
|
208
|
+
_chunkCJ7DBYEQjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
function activeOrgEnvValues(data) {
|
|
@@ -213,21 +213,21 @@ function activeOrgEnvValues(data) {
|
|
|
213
213
|
if (!orgId) return {};
|
|
214
214
|
const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
|
|
215
215
|
return {
|
|
216
|
-
[
|
|
217
|
-
[
|
|
218
|
-
...
|
|
216
|
+
[_chunkCJ7DBYEQjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
217
|
+
[_chunkCJ7DBYEQjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
218
|
+
..._chunkCJ7DBYEQjs.featureEnvValues.call(void 0, data)
|
|
219
219
|
};
|
|
220
220
|
}
|
|
221
221
|
async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
|
|
222
222
|
const headers = {
|
|
223
223
|
"Content-Type": "application/json",
|
|
224
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
224
|
+
"User-Agent": `deepline-ts-sdk/${_chunkYRQKRQDUjs.SDK_VERSION}`,
|
|
225
225
|
"X-Deepline-Client-Family": "sdk",
|
|
226
226
|
"X-Deepline-CLI-Family": "sdk",
|
|
227
|
-
"X-Deepline-Agent-Runtime":
|
|
228
|
-
"X-Deepline-CLI-Version":
|
|
229
|
-
"X-Deepline-SDK-Version":
|
|
230
|
-
"X-Deepline-API-Contract":
|
|
227
|
+
"X-Deepline-Agent-Runtime": _chunkYRQKRQDUjs.detectAgentRuntime.call(void 0, ),
|
|
228
|
+
"X-Deepline-CLI-Version": _chunkYRQKRQDUjs.SDK_VERSION,
|
|
229
|
+
"X-Deepline-SDK-Version": _chunkYRQKRQDUjs.SDK_VERSION,
|
|
230
|
+
"X-Deepline-API-Contract": _chunkYRQKRQDUjs.SDK_API_CONTRACT
|
|
231
231
|
};
|
|
232
232
|
if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
|
|
233
233
|
const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
|
|
@@ -266,10 +266,10 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
|
|
|
266
266
|
if (failure.name === "AbortError" || failure.name === "TimeoutError") {
|
|
267
267
|
throw failure;
|
|
268
268
|
}
|
|
269
|
-
const causeCode =
|
|
269
|
+
const causeCode = _chunkYRQKRQDUjs.networkCauseCode.call(void 0, failure);
|
|
270
270
|
throw Object.assign(
|
|
271
271
|
new (0, _chunkBBTKAASQjs.DeeplineError)(
|
|
272
|
-
|
|
272
|
+
_chunkYRQKRQDUjs.connectionFailureMessage.call(void 0, new URL(url).origin, failure),
|
|
273
273
|
void 0,
|
|
274
274
|
"NETWORK_ERROR",
|
|
275
275
|
causeCode ? { causeCode } : void 0
|
|
@@ -286,7 +286,7 @@ async function readStatusBanner(baseUrl) {
|
|
|
286
286
|
return _optionalChain([response, 'optionalAccess', _11 => _11.status]) === 200 ? _nullishCoalesce(response.data.banner, () => ( null)) : null;
|
|
287
287
|
}
|
|
288
288
|
async function reportSetupCompleted(input) {
|
|
289
|
-
const apiKey = input.authScope === "folder" ?
|
|
289
|
+
const apiKey = input.authScope === "folder" ? _chunkCJ7DBYEQjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkCJ7DBYEQjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
290
290
|
if (!apiKey) return;
|
|
291
291
|
try {
|
|
292
292
|
await httpJson(
|
|
@@ -415,7 +415,7 @@ function endClaimPollOnRefusal(status, data, baseUrl, authScope) {
|
|
|
415
415
|
return EXIT_SERVER;
|
|
416
416
|
}
|
|
417
417
|
async function handleRegister(args, options) {
|
|
418
|
-
const baseUrl =
|
|
418
|
+
const baseUrl = _chunkCJ7DBYEQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
419
419
|
let orgName = "";
|
|
420
420
|
let orgId = "";
|
|
421
421
|
let agentName = "";
|
|
@@ -486,14 +486,14 @@ async function handleRegister(args, options) {
|
|
|
486
486
|
savePendingClaim(baseUrl, pendingClaim);
|
|
487
487
|
saveEnvValues(
|
|
488
488
|
{
|
|
489
|
-
[
|
|
489
|
+
[_chunkCJ7DBYEQjs.HOST_URL_ENV]: baseUrl
|
|
490
490
|
},
|
|
491
491
|
baseUrl,
|
|
492
492
|
authScope
|
|
493
493
|
);
|
|
494
494
|
}
|
|
495
495
|
if (claimUrl && !_optionalChain([options, 'optionalAccess', _16 => _16.delegatedApproval])) {
|
|
496
|
-
const shouldOpen = waitMode !== "no" &&
|
|
496
|
+
const shouldOpen = waitMode !== "no" && _chunkYRQKRQDUjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
497
497
|
console.log(" Open this approval page in your browser:");
|
|
498
498
|
console.log(` ${claimUrl}`);
|
|
499
499
|
if (pendingClaim.device) {
|
|
@@ -501,7 +501,7 @@ async function handleRegister(args, options) {
|
|
|
501
501
|
` Click Approve if the page shows ${pendingClaim.device.userCode}.`
|
|
502
502
|
);
|
|
503
503
|
}
|
|
504
|
-
const opened = shouldOpen &&
|
|
504
|
+
const opened = shouldOpen && _chunkG5TV6WLVjs.openInBrowser.call(void 0, claimUrl) === "opened";
|
|
505
505
|
if (claimToken && pendingClaim.approvalLinkReporting) {
|
|
506
506
|
await reportApprovalLinkShown(
|
|
507
507
|
baseUrl,
|
|
@@ -554,8 +554,8 @@ async function handleRegister(args, options) {
|
|
|
554
554
|
if (apiKey) {
|
|
555
555
|
saveEnvValues(
|
|
556
556
|
{
|
|
557
|
-
[
|
|
558
|
-
[
|
|
557
|
+
[_chunkCJ7DBYEQjs.HOST_URL_ENV]: baseUrl,
|
|
558
|
+
[_chunkCJ7DBYEQjs.API_KEY_ENV]: apiKey,
|
|
559
559
|
...activeOrgEnvValues(statusData)
|
|
560
560
|
},
|
|
561
561
|
baseUrl,
|
|
@@ -577,7 +577,7 @@ async function handleRegister(args, options) {
|
|
|
577
577
|
}
|
|
578
578
|
}
|
|
579
579
|
async function handleWait(args, options) {
|
|
580
|
-
const baseUrl =
|
|
580
|
+
const baseUrl = _chunkCJ7DBYEQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
581
581
|
let timeoutSeconds = 300;
|
|
582
582
|
let requestedScope;
|
|
583
583
|
if (args.includes("--auth-scope")) {
|
|
@@ -601,7 +601,7 @@ async function handleWait(args, options) {
|
|
|
601
601
|
const authScope = resumed.scope;
|
|
602
602
|
const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _18 => _18.claimToken]), () => ( ""));
|
|
603
603
|
if (!pendingClaim) {
|
|
604
|
-
const scopedApiKey = authScope === "folder" ?
|
|
604
|
+
const scopedApiKey = authScope === "folder" ? _chunkCJ7DBYEQjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkCJ7DBYEQjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
605
605
|
if (scopedApiKey) {
|
|
606
606
|
if (!_optionalChain([options, 'optionalAccess', _19 => _19.quiet])) console.log("Already connected.");
|
|
607
607
|
return EXIT_OK;
|
|
@@ -664,8 +664,8 @@ async function handleWait(args, options) {
|
|
|
664
664
|
if (apiKey) {
|
|
665
665
|
saveEnvValues(
|
|
666
666
|
{
|
|
667
|
-
[
|
|
668
|
-
[
|
|
667
|
+
[_chunkCJ7DBYEQjs.HOST_URL_ENV]: baseUrl,
|
|
668
|
+
[_chunkCJ7DBYEQjs.API_KEY_ENV]: apiKey,
|
|
669
669
|
...activeOrgEnvValues(data)
|
|
670
670
|
},
|
|
671
671
|
baseUrl,
|
|
@@ -695,8 +695,8 @@ async function handleWait(args, options) {
|
|
|
695
695
|
return EXIT_AUTH;
|
|
696
696
|
}
|
|
697
697
|
async function authStatusLine(timeoutMs = 3e3) {
|
|
698
|
-
const baseUrl =
|
|
699
|
-
const apiKey =
|
|
698
|
+
const baseUrl = _chunkCJ7DBYEQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
699
|
+
const apiKey = _chunkCJ7DBYEQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
700
700
|
if (!apiKey) return `Auth: not connected (${baseUrl})`;
|
|
701
701
|
try {
|
|
702
702
|
const { status, data } = await httpJson(
|
|
@@ -719,9 +719,9 @@ async function authStatusLine(timeoutMs = 3e3) {
|
|
|
719
719
|
}
|
|
720
720
|
}
|
|
721
721
|
async function handleStatus(args) {
|
|
722
|
-
const baseUrl =
|
|
722
|
+
const baseUrl = _chunkCJ7DBYEQjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
723
723
|
const reveal = args.includes("--reveal");
|
|
724
|
-
const jsonOutput =
|
|
724
|
+
const jsonOutput = _chunkG5TV6WLVjs.argsWantJson.call(void 0, args);
|
|
725
725
|
const hasExplicitAuthScope = args.includes("--auth-scope");
|
|
726
726
|
let authScope = null;
|
|
727
727
|
if (hasExplicitAuthScope) {
|
|
@@ -762,14 +762,14 @@ async function handleStatus(args) {
|
|
|
762
762
|
};
|
|
763
763
|
hostLines.push(`Host: ${baseUrl} (unreachable)`);
|
|
764
764
|
}
|
|
765
|
-
const apiKey = authScope === "folder" ?
|
|
765
|
+
const apiKey = authScope === "folder" ? _chunkCJ7DBYEQjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkCJ7DBYEQjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkCJ7DBYEQjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
766
766
|
if (!apiKey) {
|
|
767
767
|
const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
|
|
768
768
|
baseUrl,
|
|
769
769
|
_nullishCoalesce(authScope, () => ( void 0))
|
|
770
770
|
);
|
|
771
771
|
if (pendingClaim) {
|
|
772
|
-
|
|
772
|
+
_chunkG5TV6WLVjs.printCommandEnvelope.call(void 0,
|
|
773
773
|
{
|
|
774
774
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
775
775
|
status: "pending",
|
|
@@ -799,7 +799,7 @@ async function handleStatus(args) {
|
|
|
799
799
|
);
|
|
800
800
|
return EXIT_OK;
|
|
801
801
|
}
|
|
802
|
-
|
|
802
|
+
_chunkG5TV6WLVjs.printCommandEnvelope.call(void 0,
|
|
803
803
|
{
|
|
804
804
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
805
805
|
status: "not connected",
|
|
@@ -832,7 +832,7 @@ async function handleStatus(args) {
|
|
|
832
832
|
}
|
|
833
833
|
);
|
|
834
834
|
if (status === 401 || status === 403) {
|
|
835
|
-
|
|
835
|
+
_chunkG5TV6WLVjs.printCommandEnvelope.call(void 0,
|
|
836
836
|
{
|
|
837
837
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
838
838
|
status: "unauthorized",
|
|
@@ -859,7 +859,7 @@ async function handleStatus(args) {
|
|
|
859
859
|
console.error(`Auth status error (status ${status}).`);
|
|
860
860
|
return EXIT_SERVER;
|
|
861
861
|
}
|
|
862
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
862
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkCJ7DBYEQjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
863
863
|
clearSatisfiedPendingClaim(
|
|
864
864
|
baseUrl,
|
|
865
865
|
resolvedAuthScope,
|
|
@@ -887,28 +887,28 @@ async function handleStatus(args) {
|
|
|
887
887
|
if (apiKeyResp) {
|
|
888
888
|
saveEnvValues(
|
|
889
889
|
{
|
|
890
|
-
[
|
|
891
|
-
[
|
|
890
|
+
[_chunkCJ7DBYEQjs.HOST_URL_ENV]: baseUrl,
|
|
891
|
+
[_chunkCJ7DBYEQjs.API_KEY_ENV]: apiKeyResp,
|
|
892
892
|
...activeOrgEnvValues(data)
|
|
893
893
|
},
|
|
894
894
|
baseUrl,
|
|
895
895
|
resolvedAuthScope
|
|
896
896
|
);
|
|
897
897
|
if (resolvedAuthScope === "folder") {
|
|
898
|
-
const target =
|
|
898
|
+
const target = _chunkCJ7DBYEQjs.resolveProjectPinTarget.call(void 0, );
|
|
899
899
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
900
900
|
} else {
|
|
901
901
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
905
|
-
saveEnvValues(
|
|
904
|
+
} else if (resolvedAuthScope === "folder" || _chunkCJ7DBYEQjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
905
|
+
saveEnvValues(_chunkCJ7DBYEQjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
906
906
|
}
|
|
907
|
-
|
|
907
|
+
_chunkG5TV6WLVjs.printCommandEnvelope.call(void 0,
|
|
908
908
|
{
|
|
909
909
|
...payload,
|
|
910
|
-
...
|
|
911
|
-
command_context:
|
|
910
|
+
..._chunkYRQKRQDUjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
911
|
+
command_context: _chunkCJ7DBYEQjs.resolveCliCommandContext.call(void 0,
|
|
912
912
|
{ baseUrl, apiKey },
|
|
913
913
|
resolvedAuthScope
|
|
914
914
|
)
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GWDPNOA7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7MFATEUC.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|
|
@@ -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.
|
|
52
|
+
version: "0.3.545",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "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."
|
|
@@ -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
|
|
3
|
+
var _chunkQM7PHHYZjs = require('./chunk-QM7PHHYZ.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 =
|
|
16
|
+
const plan = _chunkQM7PHHYZjs.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,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
PlayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GWDPNOA7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7MFATEUC.mjs";
|
|
8
8
|
|
|
9
9
|
// src/plays/local-play-execution.ts
|
|
10
10
|
function importedNodes(graph) {
|
|
@@ -4,21 +4,21 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkTQKHXMV3js = require('./chunk-TQKHXMV3.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkQM7PHHYZjs = require('./chunk-QM7PHHYZ.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkG5TV6WLVjs = require('./chunk-G5TV6WLV.js');
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
var
|
|
18
|
+
var _chunkCJ7DBYEQjs = require('./chunk-CJ7DBYEQ.js');
|
|
19
19
|
|
|
20
20
|
|
|
21
|
-
var
|
|
21
|
+
var _chunkYRQKRQDUjs = require('./chunk-YRQKRQDU.js');
|
|
22
22
|
|
|
23
23
|
// src/cli/compatibility-catalog.ts
|
|
24
24
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -45,7 +45,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
45
45
|
async function reportAutoUpdateEvent(input) {
|
|
46
46
|
let apiKey = "";
|
|
47
47
|
try {
|
|
48
|
-
apiKey =
|
|
48
|
+
apiKey = _chunkCJ7DBYEQjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
49
49
|
} catch (e2) {
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
@@ -61,15 +61,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
61
61
|
headers: {
|
|
62
62
|
Authorization: `Bearer ${apiKey}`,
|
|
63
63
|
"Content-Type": "application/json",
|
|
64
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
64
|
+
"User-Agent": `deepline-ts-sdk/${_chunkYRQKRQDUjs.SDK_VERSION}`,
|
|
65
65
|
"X-Deepline-Client-Family": "sdk",
|
|
66
66
|
"X-Deepline-CLI-Family": "sdk",
|
|
67
|
-
"X-Deepline-CLI-Version":
|
|
68
|
-
"X-Deepline-SDK-Version":
|
|
67
|
+
"X-Deepline-CLI-Version": _chunkYRQKRQDUjs.SDK_VERSION,
|
|
68
|
+
"X-Deepline-SDK-Version": _chunkYRQKRQDUjs.SDK_VERSION
|
|
69
69
|
},
|
|
70
70
|
body: JSON.stringify({
|
|
71
71
|
event: input.event,
|
|
72
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
72
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkYRQKRQDUjs.SDK_VERSION,
|
|
73
73
|
target_version: input.response.latest,
|
|
74
74
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
75
75
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -88,13 +88,13 @@ function envTruthy(name) {
|
|
|
88
88
|
return value === "1" || value === "true" || value === "yes";
|
|
89
89
|
}
|
|
90
90
|
function shouldSkipSelfUpdate(policy) {
|
|
91
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
91
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkTQKHXMV3js.shouldRunCliAutoUpdate.call(void 0, ) || _chunkQM7PHHYZjs.isCiEnvironment.call(void 0, );
|
|
92
92
|
}
|
|
93
93
|
function isDowngradeAutoUpdateResponse(response) {
|
|
94
94
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
95
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
95
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkYRQKRQDUjs.SDK_VERSION;
|
|
96
96
|
if (!target) return false;
|
|
97
|
-
return
|
|
97
|
+
return _chunkTQKHXMV3js.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
98
98
|
}
|
|
99
99
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
100
100
|
return new Promise((resolve) => {
|
|
@@ -147,7 +147,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
147
147
|
}
|
|
148
148
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
149
149
|
const target = response.latest;
|
|
150
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
150
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkYRQKRQDUjs.SDK_VERSION;
|
|
151
151
|
process.stderr.write(
|
|
152
152
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
153
153
|
`
|
|
@@ -155,21 +155,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
155
155
|
return false;
|
|
156
156
|
}
|
|
157
157
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
158
|
-
const plan =
|
|
158
|
+
const plan = _chunkTQKHXMV3js.resolveUpdatePlan.call(void 0, {
|
|
159
159
|
packageSpec,
|
|
160
160
|
requireVerifiedNpmOwnership: true,
|
|
161
161
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
162
162
|
});
|
|
163
|
-
if (!
|
|
163
|
+
if (!_chunkTQKHXMV3js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
164
164
|
return false;
|
|
165
165
|
}
|
|
166
166
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
167
167
|
deferredAutoUpdate = async () => {
|
|
168
168
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
169
169
|
};
|
|
170
|
-
if (
|
|
170
|
+
if (_chunkG5TV6WLVjs.isJsonOutputMode.call(void 0, )) {
|
|
171
171
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
172
|
-
|
|
172
|
+
_chunkG5TV6WLVjs.addJsonNotice.call(void 0, {
|
|
173
173
|
code: "sdk_update_queued",
|
|
174
174
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
175
175
|
});
|
|
@@ -182,7 +182,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
182
182
|
return true;
|
|
183
183
|
}
|
|
184
184
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
185
|
-
if (!
|
|
185
|
+
if (!_chunkTQKHXMV3js.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
186
186
|
const autoUpdate = response.auto_update;
|
|
187
187
|
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";
|
|
188
188
|
process.stderr.write(
|
|
@@ -195,7 +195,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
195
195
|
event: "started",
|
|
196
196
|
installKind: plan.kind
|
|
197
197
|
});
|
|
198
|
-
const updateResult = await
|
|
198
|
+
const updateResult = await _chunkTQKHXMV3js.runAutomaticUpdatePlan.call(void 0, plan);
|
|
199
199
|
if (updateResult.status === "skipped_previous_failure") {
|
|
200
200
|
void reportAutoUpdateEvent({
|
|
201
201
|
baseUrl,
|
|
@@ -233,7 +233,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
233
233
|
exitCode: 0
|
|
234
234
|
});
|
|
235
235
|
try {
|
|
236
|
-
await
|
|
236
|
+
await _chunkQM7PHHYZjs.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
237
237
|
mode: "detached",
|
|
238
238
|
update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
|
|
239
239
|
afterCliUpdate: {
|
|
@@ -260,7 +260,7 @@ var _crypto = require('crypto');
|
|
|
260
260
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
261
261
|
var activeToolExecuteCommand = null;
|
|
262
262
|
function progressLine(line) {
|
|
263
|
-
if (!
|
|
263
|
+
if (!_chunkG5TV6WLVjs.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
264
264
|
}
|
|
265
265
|
function beginToolExecuteCommand() {
|
|
266
266
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|
|
@@ -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.
|
|
52
|
+
version: "0.3.545",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "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."
|
|
@@ -1,7 +1,7 @@
|
|
|
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
|
|
4
|
+
var _chunkYRQKRQDUjs = require('./chunk-YRQKRQDU.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
var _chunk2GJZLIKWjs = require('./chunk-2GJZLIKW.js');
|
|
@@ -711,7 +711,7 @@ function readSkillsVersionFile(path) {
|
|
|
711
711
|
}
|
|
712
712
|
}
|
|
713
713
|
function resolveAutoSyncSkillAgents() {
|
|
714
|
-
switch (
|
|
714
|
+
switch (_chunkYRQKRQDUjs.detectAgentRuntime.call(void 0, )) {
|
|
715
715
|
case "codex":
|
|
716
716
|
return ["codex"];
|
|
717
717
|
case "claude_code":
|
|
@@ -781,7 +781,7 @@ function writeSdkSkillsLocalVersion(baseUrl, version, agents) {
|
|
|
781
781
|
}
|
|
782
782
|
|
|
783
783
|
// src/http.ts
|
|
784
|
-
var HttpClient2 = class extends
|
|
784
|
+
var HttpClient2 = class extends _chunkYRQKRQDUjs.HttpClient {
|
|
785
785
|
constructor(config) {
|
|
786
786
|
super(config, readSdkSkillsLocalVersion);
|
|
787
787
|
}
|
|
@@ -3,16 +3,16 @@
|
|
|
3
3
|
var _chunkD3BCSAN7js = require('./chunk-D3BCSAN7.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkIYJO3RWRjs = require('./chunk-IYJO3RWR.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
var
|
|
11
|
+
var _chunkG5TV6WLVjs = require('./chunk-G5TV6WLV.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
var
|
|
15
|
+
var _chunkCJ7DBYEQjs = require('./chunk-CJ7DBYEQ.js');
|
|
16
16
|
|
|
17
17
|
// src/cli/commands/search.ts
|
|
18
18
|
var _commander = require('commander');
|
|
@@ -22,7 +22,7 @@ var _fs = require('fs');
|
|
|
22
22
|
var _path = require('path');
|
|
23
23
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
24
24
|
function lastSearchPath() {
|
|
25
|
-
return _path.join.call(void 0,
|
|
25
|
+
return _path.join.call(void 0, _chunkCJ7DBYEQjs.sdkCliStateDirPath.call(void 0, _chunkCJ7DBYEQjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
26
26
|
}
|
|
27
27
|
function rememberSearchRef(searchRef) {
|
|
28
28
|
writeSearchRefs({ searchRef });
|
|
@@ -132,9 +132,9 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
132
132
|
console.error("--summary-width must be an integer of at least 2.");
|
|
133
133
|
return 1;
|
|
134
134
|
}
|
|
135
|
-
const client = new (0,
|
|
135
|
+
const client = new (0, _chunkIYJO3RWRjs.DeeplineClient)();
|
|
136
136
|
const json = options.json === true;
|
|
137
|
-
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-
|
|
137
|
+
const renderer = json ? void 0 : await Promise.resolve().then(() => _interopRequireWildcard(require("./search-output-RKAM2HBH.js")));
|
|
138
138
|
const searches = [];
|
|
139
139
|
const chunks = [];
|
|
140
140
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -157,7 +157,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
157
157
|
const text = _optionalChain([renderer, 'optionalAccess', _12 => _12.renderSearchResults, 'call', _13 => _13(result, summaryWidth)]);
|
|
158
158
|
if (!multiple) {
|
|
159
159
|
if (searchRef) rememberSearchRef(searchRef);
|
|
160
|
-
|
|
160
|
+
_chunkG5TV6WLVjs.printCommandEnvelope.call(void 0, result, { json, text });
|
|
161
161
|
return 0;
|
|
162
162
|
}
|
|
163
163
|
searches.push({ ...result, query });
|
|
@@ -171,8 +171,8 @@ ${text}`);
|
|
|
171
171
|
}
|
|
172
172
|
} catch (error) {
|
|
173
173
|
if (!multiple) throw error;
|
|
174
|
-
const payload =
|
|
175
|
-
const queryExitCode = _nullishCoalesce(payload.exitCode, () => (
|
|
174
|
+
const payload = _chunkG5TV6WLVjs.errorToJsonPayload.call(void 0, error);
|
|
175
|
+
const queryExitCode = _nullishCoalesce(payload.exitCode, () => ( _chunkG5TV6WLVjs.resolveSdkCliFailureExitCode.call(void 0, error)));
|
|
176
176
|
searches.push({ ...payload, query, exitCode: queryExitCode });
|
|
177
177
|
if (!json) {
|
|
178
178
|
console.error(`${JSON.stringify(query)}: ${payload.error.message}`);
|
|
@@ -184,7 +184,7 @@ Search failed.
|
|
|
184
184
|
}
|
|
185
185
|
}
|
|
186
186
|
rememberSearchRefsByTool(refs);
|
|
187
|
-
|
|
187
|
+
_chunkG5TV6WLVjs.printCommandEnvelope.call(void 0,
|
|
188
188
|
{ searches },
|
|
189
189
|
{
|
|
190
190
|
json,
|