deepline 0.3.562 → 0.3.564
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/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/backends/modal.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-backends/early-sandbox.ts +50 -7
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/early-sandbox-lane.ts +44 -1
- package/dist/bundling-sources/shared_libs/plays/extension-bridge.ts +8 -0
- package/dist/cli/auth-645UXOAZ.js +44 -0
- package/dist/cli/{auth-OFHWBJ2W.mjs → auth-PXZ7JZUT.mjs} +5 -5
- package/dist/cli/{billing-PPOC7TAY.mjs → billing-AMYFMDZL.mjs} +8 -8
- package/dist/cli/{billing-BORJ3ZHJ.js → billing-OY2ZN5XJ.js} +99 -99
- package/dist/cli/{chunk-GWJ4EOW2.mjs → chunk-2ISK6CUL.mjs} +11 -11
- package/dist/cli/{chunk-LK4LR4K7.mjs → chunk-2PMHEUED.mjs} +3 -3
- package/dist/cli/{chunk-R5PPP3JU.js → chunk-2SKEXMFV.js} +5 -5
- package/dist/cli/{chunk-5COJEZSB.js → chunk-4JQ6MHE7.js} +4 -4
- package/dist/cli/{chunk-RKB536LB.mjs → chunk-4NNNJLAZ.mjs} +2 -2
- package/dist/cli/{chunk-EVZDU7CF.js → chunk-4SV43Z64.js} +3 -3
- package/dist/cli/{chunk-UC2ATYB3.mjs → chunk-56P2BEVI.mjs} +2 -2
- package/dist/cli/{chunk-3OJLUVOS.mjs → chunk-655PNNU7.mjs} +1 -1
- package/dist/cli/{chunk-KJDS2X5S.mjs → chunk-7DU4VODD.mjs} +2 -2
- package/dist/cli/{chunk-GAN6UYEN.js → chunk-7NSHH3NB.js} +5 -5
- package/dist/cli/{chunk-P6XJRHLF.js → chunk-BRQVKZWJ.js} +7 -7
- package/dist/cli/{chunk-GAMCJW6E.mjs → chunk-CXN574UU.mjs} +1 -1
- package/dist/cli/{chunk-UZ4ELBHM.mjs → chunk-DHZOC2QX.mjs} +2 -2
- package/dist/cli/{chunk-WDKU7NOR.mjs → chunk-DTTMFSNG.mjs} +1 -1
- package/dist/cli/{chunk-EHUUHKWY.mjs → chunk-DYTTZHYX.mjs} +5 -5
- package/dist/cli/{chunk-RYWWBTDB.js → chunk-GWTFA5GD.js} +3 -3
- package/dist/cli/{chunk-SQFWIUNP.mjs → chunk-HEWVHSNN.mjs} +4 -4
- package/dist/cli/{chunk-3BV2OD25.js → chunk-HGGIWRA5.js} +48 -48
- package/dist/cli/{chunk-6BGEW3KU.js → chunk-HPXN5QZZ.js} +20 -20
- package/dist/cli/{chunk-7IHSJ3RD.js → chunk-HXZSXPT2.js} +53 -53
- package/dist/cli/{chunk-GH5R65SB.js → chunk-I2GVGCMM.js} +12 -12
- package/dist/cli/{chunk-Z2FC6UQQ.js → chunk-I4XWKMGR.js} +15 -15
- package/dist/cli/{chunk-RFB52LP5.js → chunk-IW3N7ARM.js} +8 -8
- package/dist/cli/{chunk-7DRCIDPW.mjs → chunk-JVSHMUGE.mjs} +3 -3
- package/dist/cli/{chunk-YB6N6WKX.js → chunk-KBGP4CS5.js} +10 -10
- package/dist/cli/{chunk-IQJQB7J6.js → chunk-KR76WIOX.js} +1 -1
- package/dist/cli/{chunk-5YQVEV7I.mjs → chunk-MY45K7SA.mjs} +5 -5
- package/dist/cli/{chunk-5VXK34DQ.mjs → chunk-OCLHNDVN.mjs} +5 -5
- package/dist/cli/{chunk-ZQLEEOZR.mjs → chunk-QHBYLHOG.mjs} +2 -2
- package/dist/cli/{chunk-5XS5BTMC.mjs → chunk-QQTZ6KG4.mjs} +4 -4
- package/dist/cli/{chunk-7HFWEQ6Y.js → chunk-R5555CB5.js} +2 -2
- package/dist/cli/{chunk-LJXFCEP2.js → chunk-RBTOZO5M.js} +41 -41
- package/dist/cli/{chunk-LXL7OZOG.mjs → chunk-RK5EKJAT.mjs} +1 -1
- package/dist/cli/{chunk-YT4WIYFT.js → chunk-RKG2E2JF.js} +9 -9
- package/dist/cli/{chunk-QC3NTBF7.mjs → chunk-RW6PFYT5.mjs} +5 -5
- package/dist/cli/{chunk-WFVL6A7I.mjs → chunk-TK6YKQ45.mjs} +1 -1
- package/dist/cli/{chunk-L4KUAJFR.mjs → chunk-TVF7XVPN.mjs} +1 -1
- package/dist/cli/{chunk-YAXYFPBF.mjs → chunk-UWX4TTJU.mjs} +2 -2
- package/dist/cli/{chunk-CIEMDAJE.js → chunk-V2GHSOQB.js} +100 -100
- package/dist/cli/{chunk-YX47WHVT.js → chunk-V2SNCH5X.js} +6 -6
- package/dist/cli/{chunk-5NGS4RLF.js → chunk-WDXXHTIF.js} +23 -23
- package/dist/cli/{chunk-J5P7VGV5.js → chunk-WSEMXB7X.js} +20 -20
- package/dist/cli/{chunk-USA6QRDO.mjs → chunk-WXB7PU3O.mjs} +1 -1
- package/dist/cli/{chunk-AAIYXQRJ.mjs → chunk-XP6ALUAZ.mjs} +2 -2
- package/dist/cli/{chunk-QWB4VW4T.js → chunk-XVYU3J2J.js} +13 -13
- package/dist/cli/{chunk-4O47WP3B.js → chunk-XWDCKDUP.js} +26 -26
- package/dist/cli/{chunk-AASSDBQ3.js → chunk-Y2FZJRRM.js} +2 -2
- package/dist/cli/{chunk-5KMZR36E.mjs → chunk-YIDXJD5L.mjs} +1 -1
- package/dist/cli/{chunk-PDHLHEUL.js → chunk-YMQOTCLU.js} +2 -2
- package/dist/cli/{chunk-J7XEUV5W.mjs → chunk-ZJ23RI3B.mjs} +2 -2
- package/dist/cli/{chunk-XHZFA67G.mjs → chunk-ZOITMXVO.mjs} +1 -1
- package/dist/cli/{chunk-UVZQR7I6.js → chunk-ZZW5A4HZ.js} +5 -5
- package/dist/cli/{concurrent-runs-help-IRM4PNIE.mjs → concurrent-runs-help-5GPKNDAY.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-QKZXIMSW.js +22 -0
- package/dist/cli/{csv-6T4CONXY.mjs → csv-ARPN6J6K.mjs} +4 -4
- package/dist/cli/{csv-UEFHJV5P.js → csv-X3FHV56H.js} +13 -13
- package/dist/cli/{db-P6SN3JUE.mjs → db-2HWSS3MA.mjs} +6 -6
- package/dist/cli/{db-PNDYQRRC.js → db-WINZJRWC.js} +27 -27
- package/dist/cli/{describe-U2ZIQ4JH.mjs → describe-333JCD22.mjs} +18 -18
- package/dist/cli/describe-6TJYCPFQ.js +50 -0
- package/dist/cli/{executions-WELIUVIV.mjs → executions-JYYXIRE6.mjs} +6 -6
- package/dist/cli/{executions-7AOZES2Z.js → executions-UHZHVQLO.js} +8 -8
- package/dist/cli/{feedback-XTTK5GLD.js → feedback-6G4SDI7M.js} +14 -14
- package/dist/cli/{feedback-66WWUWIR.mjs → feedback-KNGQ4VMG.mjs} +6 -6
- package/dist/cli/{git-S23WMQAB.mjs → git-DREIWOYN.mjs} +5 -5
- package/dist/cli/git-TQNP4MAD.js +26 -0
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{integrations-DEHG2ILN.mjs → integrations-UY3T3ZHA.mjs} +7 -7
- package/dist/cli/{integrations-MPKN5JRT.js → integrations-V6EO6JAM.js} +20 -20
- package/dist/cli/{legacy-noops-IKVIOTDJ.js → legacy-noops-7LZ2HNLB.js} +9 -9
- package/dist/cli/{legacy-noops-7TU2COQH.mjs → legacy-noops-FSL5Y4TO.mjs} +6 -6
- package/dist/cli/{mcp-5ZFZKBX2.js → mcp-TAVIRUQC.js} +24 -24
- package/dist/cli/{mcp-BGUKF2AA.mjs → mcp-WDJV3OCV.mjs} +4 -4
- package/dist/cli/{monitors-EUSWYOUL.js → monitors-HGT2RVR5.js} +100 -100
- package/dist/cli/{monitors-2QZUTM7K.mjs → monitors-L5FSJSVD.mjs} +7 -7
- package/dist/cli/{org-W4S2QIOX.js → org-4LNYSIEM.js} +121 -121
- package/dist/cli/{org-FDA5EGQC.mjs → org-J5DJCLTU.mjs} +6 -6
- package/dist/cli/{outcomes-WF34PZAX.js → outcomes-4QO264GU.js} +14 -14
- package/dist/cli/{outcomes-KZ7SM5TM.mjs → outcomes-5DZ5EZ5Q.mjs} +6 -6
- package/dist/cli/{play-XYJBKWRX.js → play-FZY7NZAM.js} +324 -324
- package/dist/cli/{play-XHHJYBBZ.mjs → play-SETNQCBB.mjs} +19 -19
- package/dist/cli/{providers-SCT2LUCO.js → providers-754HLYAW.js} +9 -9
- package/dist/cli/{providers-WHPZMDA6.mjs → providers-PIS6IQVA.mjs} +6 -6
- package/dist/cli/{quickstart-IXLB34QZ.js → quickstart-2TIUCHQF.js} +6 -6
- package/dist/cli/{quickstart-L45XFREM.mjs → quickstart-5P4NYWZK.mjs} +4 -4
- package/dist/cli/{run-EZCUNFI7.js → run-OQNK7G3I.js} +44 -44
- package/dist/cli/{run-SAWTV6NP.mjs → run-WAN4VZMS.mjs} +23 -23
- package/dist/cli/{search-GW2P4KNN.mjs → search-PTX7IMBB.mjs} +7 -7
- package/dist/cli/search-VXKJDQA5.js +32 -0
- package/dist/cli/{search-output-WRDJJFBW.js → search-output-AXVUC3TF.js} +6 -6
- package/dist/cli/{search-output-ASU6D6XX.mjs → search-output-N44NPUN6.mjs} +4 -4
- package/dist/cli/{secrets-AAV7JKPF.js → secrets-32WRPZB2.js} +15 -15
- package/dist/cli/{secrets-N5EAETGP.mjs → secrets-ZODIPUMI.mjs} +6 -6
- package/dist/cli/{sessions-WYISBB4D.mjs → sessions-JRIS3JMT.mjs} +6 -6
- package/dist/cli/sessions-MW3SUF7R.js +23 -0
- package/dist/cli/{settings-X7BTX2N3.mjs → settings-OI3OHCD5.mjs} +12 -12
- package/dist/cli/{settings-WOIN3AIB.js → settings-YIZUG6T3.js} +85 -85
- package/dist/cli/{setup-APLGF5BY.mjs → setup-4QQ33WUA.mjs} +9 -9
- package/dist/cli/{setup-J3RS6UKU.js → setup-AF3I4UPE.js} +49 -49
- package/dist/cli/skills-ECMGSQM4.js +37 -0
- package/dist/cli/{skills-UGPVOIYQ.mjs → skills-EITRSX56.mjs} +7 -7
- package/dist/cli/{tools-6WNR75VQ.mjs → tools-CMOLGIDR.mjs} +17 -17
- package/dist/cli/tools-QTTCIEQM.js +57 -0
- package/dist/cli/update-N3YQGALD.js +37 -0
- package/dist/cli/{update-XG2EJRAG.mjs → update-PGEARBAI.mjs} +9 -9
- package/dist/cli/{views-LUNVYDBY.mjs → views-2H77STII.mjs} +6 -6
- package/dist/cli/{views-FSB6OV5N.js → views-KFLXOZ5N.js} +21 -21
- package/dist/cli/{workflow-RWTUI4GA.js → workflow-HCEMVZAZ.js} +17 -17
- package/dist/cli/{workflow-TEJ7J2EQ.mjs → workflow-XWMAYWVX.mjs} +7 -7
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +112 -112
- 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.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-FM3JO6FN.js +0 -44
- package/dist/cli/concurrent-runs-help-RGKC4GDM.js +0 -22
- package/dist/cli/describe-DDP4Q7SK.js +0 -50
- package/dist/cli/git-53OSBVPB.js +0 -26
- package/dist/cli/search-S5KQIDCG.js +0 -32
- package/dist/cli/sessions-H33DKDTF.js +0 -23
- package/dist/cli/skills-7PT2KDQN.js +0 -37
- package/dist/cli/tools-Q2PVYNUE.js +0 -57
- package/dist/cli/update-C64JFIMU.js +0 -37
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkWSEMXB7Xjs = require('./chunk-WSEMXB7X.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -22,14 +22,14 @@ var _chunkJ5P7VGV5js = require('./chunk-J5P7VGV5.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunk4SV43Z64js = require('./chunk-4SV43Z64.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunk4JQ6MHE7js = require('./chunk-4JQ6MHE7.js');
|
|
33
33
|
|
|
34
34
|
|
|
35
35
|
var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.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 _chunk4SV43Z64js.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 = _chunk4SV43Z64js.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 `${_chunk4SV43Z64js.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
87
87
|
}
|
|
88
88
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
89
|
-
return `${
|
|
89
|
+
return `${_chunk4SV43Z64js.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 _chunk4JQ6MHE7js.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[_chunk4SV43Z64js.HOST_URL_ENV] ? { [_chunk4SV43Z64js.HOST_URL_ENV]: values[_chunk4SV43Z64js.HOST_URL_ENV] } : {},
|
|
199
|
+
...values[_chunk4SV43Z64js.API_KEY_ENV] ? { [_chunk4SV43Z64js.API_KEY_ENV]: values[_chunk4SV43Z64js.API_KEY_ENV] } : {},
|
|
200
|
+
...values[_chunk4SV43Z64js.ACTIVE_ORG_ID_ENV] ? { [_chunk4SV43Z64js.ACTIVE_ORG_ID_ENV]: values[_chunk4SV43Z64js.ACTIVE_ORG_ID_ENV] } : {},
|
|
201
|
+
...Object.prototype.hasOwnProperty.call(values, _chunk4SV43Z64js.ACTIVE_ORG_NAME_ENV) ? { [_chunk4SV43Z64js.ACTIVE_ORG_NAME_ENV]: values[_chunk4SV43Z64js.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, _chunk4SV43Z64js.FEATURES_ENV) ? { [_chunk4SV43Z64js.FEATURES_ENV]: values[_chunk4SV43Z64js.FEATURES_ENV] } : {}
|
|
204
204
|
};
|
|
205
205
|
if (scope === "folder") {
|
|
206
|
-
|
|
206
|
+
_chunk4SV43Z64js.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
207
207
|
} else {
|
|
208
|
-
|
|
208
|
+
_chunk4SV43Z64js.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
|
+
[_chunk4SV43Z64js.ACTIVE_ORG_ID_ENV]: orgId,
|
|
217
|
+
[_chunk4SV43Z64js.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
218
|
+
..._chunk4SV43Z64js.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/${_chunk4JQ6MHE7js.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": _chunk4JQ6MHE7js.detectAgentRuntime.call(void 0, ),
|
|
228
|
+
"X-Deepline-CLI-Version": _chunk4JQ6MHE7js.SDK_VERSION,
|
|
229
|
+
"X-Deepline-SDK-Version": _chunk4JQ6MHE7js.SDK_VERSION,
|
|
230
|
+
"X-Deepline-API-Contract": _chunk4JQ6MHE7js.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 = _chunk4JQ6MHE7js.networkCauseCode.call(void 0, failure);
|
|
270
270
|
throw Object.assign(
|
|
271
271
|
new (0, _chunkLFQJW4S2js.DeeplineError)(
|
|
272
|
-
|
|
272
|
+
_chunk4JQ6MHE7js.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" ? _chunk4SV43Z64js.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunk4SV43Z64js.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 = _chunk4SV43Z64js.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
|
+
[_chunk4SV43Z64js.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" && _chunk4JQ6MHE7js.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 && _chunkWSEMXB7Xjs.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
|
+
[_chunk4SV43Z64js.HOST_URL_ENV]: baseUrl,
|
|
558
|
+
[_chunk4SV43Z64js.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 = _chunk4SV43Z64js.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" ? _chunk4SV43Z64js.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk4SV43Z64js.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
|
+
[_chunk4SV43Z64js.HOST_URL_ENV]: baseUrl,
|
|
668
|
+
[_chunk4SV43Z64js.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 = _chunk4SV43Z64js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
699
|
+
const apiKey = _chunk4SV43Z64js.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 = _chunk4SV43Z64js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
723
723
|
const reveal = args.includes("--reveal");
|
|
724
|
-
const jsonOutput =
|
|
724
|
+
const jsonOutput = _chunkWSEMXB7Xjs.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" ? _chunk4SV43Z64js.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunk4SV43Z64js.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunk4SV43Z64js.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
|
+
_chunkWSEMXB7Xjs.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
|
+
_chunkWSEMXB7Xjs.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
|
+
_chunkWSEMXB7Xjs.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, () => ( (_chunk4SV43Z64js.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
|
+
[_chunk4SV43Z64js.HOST_URL_ENV]: baseUrl,
|
|
891
|
+
[_chunk4SV43Z64js.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 = _chunk4SV43Z64js.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" || _chunk4SV43Z64js.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
905
|
+
saveEnvValues(_chunk4SV43Z64js.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
906
906
|
}
|
|
907
|
-
|
|
907
|
+
_chunkWSEMXB7Xjs.printCommandEnvelope.call(void 0,
|
|
908
908
|
{
|
|
909
909
|
...payload,
|
|
910
|
-
...
|
|
911
|
-
command_context:
|
|
910
|
+
..._chunk4JQ6MHE7js.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
911
|
+
command_context: _chunk4SV43Z64js.resolveCliCommandContext.call(void 0,
|
|
912
912
|
{ baseUrl, apiKey },
|
|
913
913
|
resolvedAuthScope
|
|
914
914
|
)
|
|
@@ -1,16 +1,16 @@
|
|
|
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 _chunk7NSHH3NBjs = require('./chunk-7NSHH3NB.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkWSEMXB7Xjs = require('./chunk-WSEMXB7X.js');
|
|
7
7
|
|
|
8
8
|
// src/cli/commands/integration-commands.ts
|
|
9
9
|
var _commander = require('commander');
|
|
10
10
|
var _fs = require('fs');
|
|
11
11
|
var _path = require('path');
|
|
12
12
|
function printIntegrationResult(value, json, lines, nextCursor) {
|
|
13
|
-
|
|
13
|
+
_chunkWSEMXB7Xjs.printCommandEnvelope.call(void 0,
|
|
14
14
|
{},
|
|
15
15
|
{
|
|
16
16
|
json: json || void 0,
|
|
@@ -26,7 +26,7 @@ function registerIntegrationBalanceCommand(parent, hidden = false) {
|
|
|
26
26
|
return parent.command("balance <provider>", { hidden }).description(
|
|
27
27
|
"Read a fresh balance using this org\u2019s own provider connection (LeadMagic)."
|
|
28
28
|
).option("--json", "Print the balance and observation timestamp as JSON").action(async (provider, options) => {
|
|
29
|
-
const balance = await new (0,
|
|
29
|
+
const balance = await new (0, _chunk7NSHH3NBjs.DeeplineClient)().getIntegrationBalance(
|
|
30
30
|
provider
|
|
31
31
|
);
|
|
32
32
|
printIntegrationResult(balance, options.json, [
|
|
@@ -40,7 +40,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
|
|
|
40
40
|
"List teammates\u2019 personal connections for this provider"
|
|
41
41
|
).option("--cursor <cursor>", "Read the next page of members").action(
|
|
42
42
|
async (options) => {
|
|
43
|
-
const client = new (0,
|
|
43
|
+
const client = new (0, _chunk7NSHH3NBjs.DeeplineClient)();
|
|
44
44
|
if (name === "list" && options.cursor && !options.members)
|
|
45
45
|
throw new Error(
|
|
46
46
|
"Use --cursor with --members to continue a member page."
|
|
@@ -82,7 +82,7 @@ function registerWorkspaceConnectionListCommand(parent, name = "workspace-connec
|
|
|
82
82
|
}
|
|
83
83
|
function registerLegacyHubSpotMembersCommand(parent, hidden = false) {
|
|
84
84
|
return parent.command("hubspot-members", { hidden }).description("List personal HubSpot connection status for org members.").option("--cursor <cursor>", "Read the next roster page").option("--json", "Print the roster page as JSON").action(async (options) => {
|
|
85
|
-
const page = await new (0,
|
|
85
|
+
const page = await new (0, _chunk7NSHH3NBjs.DeeplineClient)().listPersonalHubSpotMembers(
|
|
86
86
|
options.cursor
|
|
87
87
|
);
|
|
88
88
|
const rows = page.members.map((member) => {
|
|
@@ -108,7 +108,7 @@ function registerLegacyWorkspaceConnectionCommand(parent, hidden = false) {
|
|
|
108
108
|
);
|
|
109
109
|
if (options.autoName && (action !== "connect" || options.name !== void 0))
|
|
110
110
|
throw new Error("Use --auto-name with connect and omit --name.");
|
|
111
|
-
const client = new (0,
|
|
111
|
+
const client = new (0, _chunk7NSHH3NBjs.DeeplineClient)();
|
|
112
112
|
const { connections } = action === "connect" ? { connections: [] } : options.name ? await client.listWorkspaceConnectionInventory(provider) : await client.listWorkspaceIntegrationConnections();
|
|
113
113
|
const row = connections.find(
|
|
114
114
|
(connection) => connection.provider === provider && (!("type" in connection) || connection.type === "oauth") && (options.name === void 0 || "name" in connection && connection.name === options.name)
|
|
@@ -141,7 +141,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
|
|
|
141
141
|
"Print the proposed change without contacting Google or saving it"
|
|
142
142
|
).option("--json", "Print the result as JSON").action(
|
|
143
143
|
async (action, options) => {
|
|
144
|
-
const client = new (0,
|
|
144
|
+
const client = new (0, _chunk7NSHH3NBjs.DeeplineClient)();
|
|
145
145
|
if (action === "list") {
|
|
146
146
|
const inventory = await client.listCalendarAvailabilityConnections();
|
|
147
147
|
const approvals = _optionalChain([inventory, 'access', _3 => _3.approvals, 'optionalAccess', _4 => _4.length]) ? inventory.approvals.map(
|
|
@@ -291,7 +291,7 @@ function registerLegacyCalendarDelegationCommand(parent, hidden = false) {
|
|
|
291
291
|
}
|
|
292
292
|
function registerLegacyAvailabilityCalendarsCommand(parent, hidden = false) {
|
|
293
293
|
return parent.command("availability-calendars", { hidden }).description("Calendar discovery compatibility command for the pilot.").option("--cursor <cursor>", "Legacy calendar page cursor").option("--json", "Print the response as JSON").action(async (options) => {
|
|
294
|
-
const page = await new (0,
|
|
294
|
+
const page = await new (0, _chunk7NSHH3NBjs.DeeplineClient)().listAvailabilityCalendars(
|
|
295
295
|
options.cursor
|
|
296
296
|
);
|
|
297
297
|
printIntegrationResult(page, options.json, [
|
|
@@ -335,7 +335,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
335
335
|
printSetupPlan({ provider, action: "connect_link" }, options.json);
|
|
336
336
|
return;
|
|
337
337
|
}
|
|
338
|
-
const link = await new (0,
|
|
338
|
+
const link = await new (0, _chunk7NSHH3NBjs.DeeplineClient)().getIntegrationConnectLink(
|
|
339
339
|
provider
|
|
340
340
|
);
|
|
341
341
|
printIntegrationResult(link, options.json, [link.connect_url]);
|
|
@@ -362,7 +362,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
362
362
|
);
|
|
363
363
|
return;
|
|
364
364
|
}
|
|
365
|
-
const result2 = await new (0,
|
|
365
|
+
const result2 = await new (0, _chunk7NSHH3NBjs.DeeplineClient)().startIntegrationOAuth(
|
|
366
366
|
provider,
|
|
367
367
|
{
|
|
368
368
|
...options.preset !== void 0 ? { preset: options.preset } : {},
|
|
@@ -412,7 +412,7 @@ function registerIntegrationConnectCommand(parent, defaultLink = false, hidden =
|
|
|
412
412
|
"--credentials-file must contain a nonempty JSON object of string credential values."
|
|
413
413
|
);
|
|
414
414
|
}
|
|
415
|
-
const result = await new (0,
|
|
415
|
+
const result = await new (0, _chunk7NSHH3NBjs.DeeplineClient)().setIntegrationCredentials(
|
|
416
416
|
provider,
|
|
417
417
|
credentials,
|
|
418
418
|
{ expectedConnectionId: options.expectedConnectionId }
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkV2GHSOQBjs = require('./chunk-V2GHSOQB.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkBRQVKZWJjs = require('./chunk-BRQVKZWJ.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -14,16 +14,16 @@ var _chunk6ASDTHENjs = require('./chunk-6ASDTHEN.js');
|
|
|
14
14
|
var _chunkLHPYCJNLjs = require('./chunk-LHPYCJNL.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunk7NSHH3NBjs = require('./chunk-7NSHH3NB.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
var
|
|
22
|
+
var _chunkWSEMXB7Xjs = require('./chunk-WSEMXB7X.js');
|
|
23
23
|
|
|
24
24
|
|
|
25
25
|
|
|
26
|
-
var
|
|
26
|
+
var _chunk4SV43Z64js = require('./chunk-4SV43Z64.js');
|
|
27
27
|
|
|
28
28
|
// src/cli/commands/describe.ts
|
|
29
29
|
var _fs = require('fs');
|
|
@@ -32,14 +32,14 @@ var _path = require('path');
|
|
|
32
32
|
// src/cli/doc-read-reporting.ts
|
|
33
33
|
var REPORT_TIMEOUT_MS = 1e3;
|
|
34
34
|
async function reportDocRead(docId) {
|
|
35
|
-
if (
|
|
35
|
+
if (_chunkWSEMXB7Xjs.isFailureReportingDisabled.call(void 0, )) return;
|
|
36
36
|
try {
|
|
37
|
-
const baseUrl =
|
|
38
|
-
const apiKey =
|
|
37
|
+
const baseUrl = _chunk4SV43Z64js.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
38
|
+
const apiKey = _chunk4SV43Z64js.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
39
39
|
if (!apiKey) return;
|
|
40
40
|
await fetch(new URL("/api/v2/telemetry/doc-read", baseUrl), {
|
|
41
41
|
method: "POST",
|
|
42
|
-
headers:
|
|
42
|
+
headers: _chunkWSEMXB7Xjs.failureReportHeaders.call(void 0, apiKey),
|
|
43
43
|
body: JSON.stringify({ doc_id: docId }),
|
|
44
44
|
signal: AbortSignal.timeout(REPORT_TIMEOUT_MS)
|
|
45
45
|
});
|
|
@@ -52,16 +52,16 @@ function nothingNamed(name) {
|
|
|
52
52
|
return `Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`;
|
|
53
53
|
}
|
|
54
54
|
function findNamed2(name, options) {
|
|
55
|
-
return _chunk6ASDTHENjs.findNamed.call(void 0, name, options, _chunk6ASDTHENjs.describeLookupsFor.call(void 0, new (0,
|
|
55
|
+
return _chunk6ASDTHENjs.findNamed.call(void 0, name, options, _chunk6ASDTHENjs.describeLookupsFor.call(void 0, new (0, _chunk7NSHH3NBjs.DeeplineClient)()));
|
|
56
56
|
}
|
|
57
57
|
async function describeAnything(name, options, onMissing) {
|
|
58
|
-
const client = new (0,
|
|
58
|
+
const client = new (0, _chunk7NSHH3NBjs.DeeplineClient)();
|
|
59
59
|
const lookups = _chunk6ASDTHENjs.describeLookupsFor.call(void 0, client);
|
|
60
60
|
const outcome = await _chunk6ASDTHENjs.describeName.call(void 0, name, options, {
|
|
61
61
|
...lookups,
|
|
62
62
|
// `tools describe` has already fetched the tool for its compatibility check.
|
|
63
63
|
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
64
|
-
seedStarterScript:
|
|
64
|
+
seedStarterScript: _chunkV2GHSOQBjs.seedToolListScript
|
|
65
65
|
});
|
|
66
66
|
if (outcome.status === "missing") {
|
|
67
67
|
if (onMissing) return onMissing();
|
|
@@ -90,18 +90,18 @@ function deliver(envelope, lines, { json, out }) {
|
|
|
90
90
|
` : text;
|
|
91
91
|
_fs.writeFileSync.call(void 0, path, content);
|
|
92
92
|
const bytes = Buffer.byteLength(content);
|
|
93
|
-
|
|
93
|
+
_chunkWSEMXB7Xjs.printCommandEnvelope.call(void 0,
|
|
94
94
|
{ path, bytes },
|
|
95
95
|
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
96
96
|
` }
|
|
97
97
|
);
|
|
98
98
|
return 0;
|
|
99
99
|
}
|
|
100
|
-
|
|
100
|
+
_chunkWSEMXB7Xjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
101
101
|
return 0;
|
|
102
102
|
}
|
|
103
103
|
function registerDescribeCommand(program) {
|
|
104
|
-
|
|
104
|
+
_chunkBRQVKZWJjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
105
105
|
"Describe anything search returns: a tool, monitor type, or play."
|
|
106
106
|
).addHelpText(
|
|
107
107
|
"after",
|
|
@@ -37,7 +37,7 @@ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunk4JQ6MHE7js = require('./chunk-4JQ6MHE7.js');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
|
|
@@ -844,7 +844,7 @@ var ToolCalls = class {
|
|
|
844
844
|
idempotencyKey,
|
|
845
845
|
onResponse: (response2) => {
|
|
846
846
|
lastResponse = null;
|
|
847
|
-
atomicToolsSupported = response2.headers.get(
|
|
847
|
+
atomicToolsSupported = response2.headers.get(_chunk4JQ6MHE7js.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
848
848
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
849
849
|
if (_optionalChain([options, 'optionalAccess', _38 => _38.onServerTiming])) {
|
|
850
850
|
try {
|
|
@@ -1231,15 +1231,15 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1231
1231
|
}
|
|
1232
1232
|
const receivers = _optionalChain([env, 'access', _63 => _63.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _64 => _64.trim, 'call', _65 => _65()]);
|
|
1233
1233
|
return {
|
|
1234
|
-
[
|
|
1235
|
-
...receivers ? { [
|
|
1234
|
+
[_chunk4JQ6MHE7js.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1235
|
+
...receivers ? { [_chunk4JQ6MHE7js.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1236
1236
|
};
|
|
1237
1237
|
}
|
|
1238
1238
|
function playRunStartHeaders(runtime, env) {
|
|
1239
1239
|
const headers = runtimeSelectionHeaders(runtime, env);
|
|
1240
1240
|
const experimentSwitches = _optionalChain([env, 'access', _66 => _66.DEEPLINE_EXPERIMENT_SWITCHES, 'optionalAccess', _67 => _67.trim, 'call', _68 => _68()]);
|
|
1241
1241
|
if (!experimentSwitches) return headers;
|
|
1242
|
-
return { ...headers, [
|
|
1242
|
+
return { ...headers, [_chunk4JQ6MHE7js.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
|
|
1243
1243
|
}
|
|
1244
1244
|
function normalizeTestPolicyOverrides(value, source) {
|
|
1245
1245
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -1309,7 +1309,7 @@ var PlayClient = class {
|
|
|
1309
1309
|
return _chunkMJTVX4QKjs.startPlayRun.call(void 0,
|
|
1310
1310
|
this.http,
|
|
1311
1311
|
resolved.request,
|
|
1312
|
-
_optionalChain([options, 'optionalAccess', _76 => _76.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1312
|
+
_optionalChain([options, 'optionalAccess', _76 => _76.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunk4JQ6MHE7js.SDK_API_MAJOR) } : headers,
|
|
1313
1313
|
options
|
|
1314
1314
|
);
|
|
1315
1315
|
}
|
|
@@ -3427,7 +3427,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3427
3427
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3428
3428
|
);
|
|
3429
3429
|
}
|
|
3430
|
-
return { [
|
|
3430
|
+
return { [_chunk4JQ6MHE7js.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3431
3431
|
}
|
|
3432
3432
|
function sleep(ms) {
|
|
3433
3433
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -4363,7 +4363,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4363
4363
|
);
|
|
4364
4364
|
const headers = _optionalChain([options, 'optionalAccess', _200 => _200.cliAdmission]) ? {
|
|
4365
4365
|
...runtimeHeaders,
|
|
4366
|
-
"X-Deepline-API-Major": String(
|
|
4366
|
+
"X-Deepline-API-Major": String(_chunk4JQ6MHE7js.SDK_API_MAJOR)
|
|
4367
4367
|
} : runtimeHeaders;
|
|
4368
4368
|
const http = this.http;
|
|
4369
4369
|
let submitted = false;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rejectRestrictedFeedback
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YIDXJD5L.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getAuthedHttpClient,
|
|
6
6
|
printCommandEnvelope
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4NNNJLAZ.mjs";
|
|
8
8
|
import {
|
|
9
9
|
agentSessionIdFromEnvironment,
|
|
10
10
|
claudeProjectsRoots,
|
|
11
11
|
coworkTranscriptFromEnvironment
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-TVF7XVPN.mjs";
|
|
13
13
|
|
|
14
14
|
// src/cli/commands/sessions.ts
|
|
15
15
|
import {
|