deepline 0.3.363 → 0.3.365
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/context.ts +21 -0
- package/dist/bundling-sources/shared_libs/play-runtime/ctx-types.ts +2 -0
- package/dist/bundling-sources/shared_libs/play-runtime/durability-store.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/map-execution-frame.ts +39 -1
- package/dist/bundling-sources/shared_libs/play-runtime/map-row-outcome.ts +3 -0
- package/dist/bundling-sources/shared_libs/play-runtime/protocol.ts +1 -0
- package/dist/bundling-sources/shared_libs/play-runtime/row-failure-summary.ts +139 -0
- package/dist/bundling-sources/shared_libs/play-runtime/runner-app/index.ts +14 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +26 -2
- package/dist/cli/{auth-4X5IPPQY.mjs → auth-4S26H44S.mjs} +4 -4
- package/dist/cli/auth-AXY27RN4.js +33 -0
- package/dist/cli/{billing-PG5LC7A4.mjs → billing-IMSQT3SR.mjs} +4 -4
- package/dist/cli/{billing-A7CKW7AN.js → billing-JD3SGKJN.js} +73 -73
- package/dist/cli/{chunk-FIZHV5SW.js → chunk-4LQ3MCZU.js} +62 -60
- package/dist/cli/{chunk-6453ELCN.mjs → chunk-5OMKEQGL.mjs} +1 -1
- package/dist/cli/{chunk-HK5L26A2.mjs → chunk-6RX64O34.mjs} +1 -1
- package/dist/cli/{chunk-BCUUOP2S.mjs → chunk-6ZZX3NVM.mjs} +2 -2
- package/dist/cli/{chunk-QQOQ7FCJ.js → chunk-7MF27ZQA.js} +2 -2
- package/dist/cli/{chunk-JXIA7B4Q.mjs → chunk-7MS7JCBB.mjs} +4 -2
- package/dist/cli/{chunk-2VHSNTGJ.js → chunk-E66FPPCT.js} +15 -15
- package/dist/cli/{chunk-BTPEPEJR.js → chunk-FTP4HYWY.js} +1 -1
- package/dist/cli/{chunk-SDCD7OH4.js → chunk-HHZIOAWI.js} +224 -224
- package/dist/cli/{chunk-GC5J26KZ.js → chunk-HNZNRS6I.js} +9 -9
- package/dist/cli/{chunk-VID352NP.js → chunk-L7CUNWVR.js} +4 -4
- package/dist/cli/{chunk-XB7NSDSX.js → chunk-LYLMIZIK.js} +26 -26
- package/dist/cli/{chunk-NWHXW4M4.mjs → chunk-NDQBGF6U.mjs} +1 -1
- package/dist/cli/{chunk-3LL7F4VL.mjs → chunk-NFBQAQRE.mjs} +5 -5
- package/dist/cli/{chunk-MC5IFDUJ.mjs → chunk-QGVNIGCS.mjs} +1 -1
- package/dist/cli/{chunk-KNQ3PNZ7.js → chunk-QNJZROLE.js} +50 -50
- package/dist/cli/{chunk-IYRMVSNR.mjs → chunk-QTBWSCF4.mjs} +3 -3
- package/dist/cli/{chunk-AG7AXHHA.js → chunk-UIZZ6CC6.js} +8 -8
- package/dist/cli/{chunk-DJDA57VF.mjs → chunk-VHWW76SC.mjs} +6 -6
- package/dist/cli/{chunk-DZBDG6V7.js → chunk-VZRENGJ2.js} +8 -8
- package/dist/cli/{chunk-NVQLHOXI.mjs → chunk-WJ4IGJR4.mjs} +4 -4
- package/dist/cli/{chunk-VTKCTJWG.js → chunk-XA7MAC3G.js} +6 -6
- package/dist/cli/{chunk-OM3GDDKW.mjs → chunk-XH7A4IWD.mjs} +2 -2
- package/dist/cli/{chunk-6TSA3G3I.js → chunk-XPYEE2AU.js} +45 -45
- package/dist/cli/{chunk-TVMGRV4A.mjs → chunk-YKRINWA2.mjs} +1 -1
- package/dist/cli/{chunk-CLXZXGJD.mjs → chunk-YME4BTRK.mjs} +2 -2
- package/dist/cli/client-OBQBVVUE.js +20 -0
- package/dist/cli/{client-FCVDAPRF.mjs → client-TIT2YEEY.mjs} +3 -3
- package/dist/cli/{csv-5JHK77KT.mjs → csv-64W5LJIT.mjs} +3 -3
- package/dist/cli/{csv-6LOALPZU.js → csv-XYARLBKW.js} +12 -12
- package/dist/cli/{db-3MOAOVCW.js → db-52N7JAVE.js} +29 -29
- package/dist/cli/{db-MRTQDSJB.mjs → db-BGC5QKV6.mjs} +4 -4
- package/dist/cli/{describe-ZO2BH3V2.mjs → describe-3ZSRFCHD.mjs} +8 -8
- package/dist/cli/{describe-VOU44BDZ.js → describe-DPDNIXVH.js} +15 -15
- package/dist/cli/{executions-H7GY5KI3.js → executions-WVIUSOSA.js} +6 -6
- package/dist/cli/{executions-HOOTTSXV.mjs → executions-ZIMU47UG.mjs} +4 -4
- package/dist/cli/{feedback-4U7FFIS5.mjs → feedback-7Z2PUW4R.mjs} +3 -3
- package/dist/cli/{feedback-SH4V2B65.js → feedback-VS5A3KAR.js} +7 -7
- package/dist/cli/{git-QKEH2SFT.mjs → git-JTIF7PN4.mjs} +4 -4
- package/dist/cli/git-QJYLQED2.js +23 -0
- package/dist/cli/index.js +82 -82
- package/dist/cli/index.mjs +32 -32
- package/dist/cli/{legacy-noops-AWQ2T2C6.mjs → legacy-noops-7IR7H7N4.mjs} +4 -4
- package/dist/cli/{legacy-noops-UWXUHHDX.js → legacy-noops-B2WDO6FW.js} +7 -7
- package/dist/cli/{monitors-JEQ5YYLX.mjs → monitors-LWBSJ3OX.mjs} +4 -4
- package/dist/cli/{monitors-4MAKL2VN.js → monitors-OESDIJVL.js} +85 -85
- package/dist/cli/{org-C7N5OMSW.js → org-ENJDFLCZ.js} +157 -60
- package/dist/cli/{org-2C74R6WM.mjs → org-T7OXEG5L.mjs} +101 -4
- package/dist/cli/{play-LN7URHHN.mjs → play-FOB5OCJ3.mjs} +7 -7
- package/dist/cli/play-Z6SXXNP5.js +153 -0
- package/dist/cli/{providers-LVG7PESP.js → providers-3OGXEWHS.js} +7 -7
- package/dist/cli/{providers-2HOUYSJM.mjs → providers-TU3QNHIS.mjs} +4 -4
- package/dist/cli/{quickstart-56TVYIZW.js → quickstart-DM4UGC7C.js} +5 -5
- package/dist/cli/{quickstart-DYU6XFQF.mjs → quickstart-VSVPWMNU.mjs} +3 -3
- package/dist/cli/search-26IGFUMM.js +26 -0
- package/dist/cli/{search-HF7PKAGT.mjs → search-CBHKG7YA.mjs} +5 -5
- package/dist/cli/{secrets-SIILJU3C.mjs → secrets-6ZQF4M27.mjs} +4 -4
- package/dist/cli/{secrets-P5CWA6ZL.js → secrets-YTN4ZA4T.js} +13 -13
- package/dist/cli/{sessions-TC3IN56Y.mjs → sessions-BPRYFAWJ.mjs} +4 -4
- package/dist/cli/{sessions-QHWGNJ5R.js → sessions-ZO7IOGUF.js} +5 -5
- package/dist/cli/{settings-F6HEQVKL.js → settings-N65YB4QA.js} +74 -74
- package/dist/cli/{settings-HUII4D54.mjs → settings-WYCYXUM7.mjs} +7 -7
- package/dist/cli/{setup-EDQQAIZ3.mjs → setup-KLEY2DJT.mjs} +6 -6
- package/dist/cli/{setup-62IL6VFZ.js → setup-RW4BMAKA.js} +41 -41
- package/dist/cli/{skills-KY4MRCQP.mjs → skills-DFXLS3KI.mjs} +4 -4
- package/dist/cli/skills-XTGVE76M.js +28 -0
- package/dist/cli/tools-AK4XQBQJ.js +40 -0
- package/dist/cli/{tools-7K3KPDVB.mjs → tools-UDSCRFZN.mjs} +6 -6
- package/dist/cli/{update-T2BM6XEI.mjs → update-3MKDIO3Y.mjs} +6 -6
- package/dist/cli/update-NIIEFTPX.js +28 -0
- package/dist/cli/{workflow-ZSAF2S66.js → workflow-64Y2B5YZ.js} +15 -15
- package/dist/cli/{workflow-ONMVUYGO.mjs → workflow-XNYXVEVF.mjs} +5 -5
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +75 -74
- 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/package.json +1 -1
- package/dist/cli/auth-IIY7PILQ.js +0 -33
- package/dist/cli/client-FUDC2ULP.js +0 -20
- package/dist/cli/git-IW6D5HOP.js +0 -23
- package/dist/cli/play-J3W7VDAZ.js +0 -153
- package/dist/cli/search-YNNBIM73.js +0 -26
- package/dist/cli/skills-3PA4O6CP.js +0 -28
- package/dist/cli/tools-U6SM7MXM.js +0 -40
- package/dist/cli/update-7XMTB6YL.js +0 -28
|
@@ -21,7 +21,7 @@ var _chunkLA46MMTLjs = require('./chunk-LA46MMTL.js');
|
|
|
21
21
|
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunkL7CUNWVRjs = require('./chunk-L7CUNWVR.js');
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
@@ -167,7 +167,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
167
167
|
if (error instanceof _chunk7P5AA3SNjs.DeeplineError && (_optionalChain([error, 'access', _2 => _2.code, 'optionalAccess', _3 => _3.startsWith, 'call', _4 => _4("NETWORK_")]) || // Older API readers return PostgreSQL errors as HTTP 400, including
|
|
168
168
|
// lost connections and explicitly unknown transaction resolution.
|
|
169
169
|
/^08[A-Z0-9]{3}$/.test(_nullishCoalesce(error.code, () => ( ""))) || ["57P01", "57P02", "57P03"].includes(_nullishCoalesce(error.code, () => ( ""))) || error.statusCode === 408 || (_nullishCoalesce(error.statusCode, () => ( 0))) >= 500)) {
|
|
170
|
-
throw new (0,
|
|
170
|
+
throw new (0, _chunkL7CUNWVRjs.CustomerDbQueryOutcomeUnknownError)(
|
|
171
171
|
error,
|
|
172
172
|
plan.request.body.operation_key
|
|
173
173
|
);
|
|
@@ -175,7 +175,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
175
175
|
throw error;
|
|
176
176
|
}
|
|
177
177
|
if (!result || typeof result !== "object" || Array.isArray(result) || typeof result.command !== "string" || !Array.isArray(result.columns) || !Array.isArray(result.rows) || typeof result.truncated !== "boolean" || result.row_count !== null && (!Number.isSafeInteger(result.row_count) || result.row_count < 0) || !Number.isSafeInteger(result.row_count_returned) || result.row_count_returned < 0) {
|
|
178
|
-
throw new (0,
|
|
178
|
+
throw new (0, _chunkL7CUNWVRjs.CustomerDbQueryOutcomeUnknownError)(
|
|
179
179
|
new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
180
180
|
"The SQL response did not contain a valid result.",
|
|
181
181
|
200,
|
|
@@ -186,7 +186,7 @@ async function queryCustomerDatabase(http, input) {
|
|
|
186
186
|
}
|
|
187
187
|
const operation = result.operation;
|
|
188
188
|
if (input.operationKey !== void 0 && (!operation || operation.operation_key !== input.operationKey || !Number.isSafeInteger(operation.completed_at_ms) || operation.completed_at_ms < 0 || !["executed", "operation_recovery"].includes(operation.source))) {
|
|
189
|
-
throw new (0,
|
|
189
|
+
throw new (0, _chunkL7CUNWVRjs.CustomerDbQueryOutcomeUnknownError)(
|
|
190
190
|
new (0, _chunk7P5AA3SNjs.DeeplineError)(
|
|
191
191
|
"The server did not confirm the original atomic SQL operation.",
|
|
192
192
|
200,
|
|
@@ -2910,8 +2910,8 @@ function runtimeSelectionHeaders(runtime) {
|
|
|
2910
2910
|
}
|
|
2911
2911
|
const receivers = _optionalChain([process, 'access', _104 => _104.env, 'access', _105 => _105.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _106 => _106.trim, 'call', _107 => _107()]);
|
|
2912
2912
|
return {
|
|
2913
|
-
[
|
|
2914
|
-
...receivers ? { [
|
|
2913
|
+
[_chunkL7CUNWVRjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
2914
|
+
...receivers ? { [_chunkL7CUNWVRjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
2915
2915
|
};
|
|
2916
2916
|
}
|
|
2917
2917
|
function isolatedCiRuntimeEventReadHeaders() {
|
|
@@ -2927,7 +2927,7 @@ function isolatedCiRuntimeEventReadHeaders() {
|
|
|
2927
2927
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
2928
2928
|
);
|
|
2929
2929
|
}
|
|
2930
|
-
return { [
|
|
2930
|
+
return { [_chunkL7CUNWVRjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
2931
2931
|
}
|
|
2932
2932
|
function normalizeTestPolicyOverrides(value, source) {
|
|
2933
2933
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -3217,8 +3217,8 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
3217
3217
|
* @throws {@link ConfigError} if no API key can be resolved from any source.
|
|
3218
3218
|
*/
|
|
3219
3219
|
constructor(options) {
|
|
3220
|
-
this.config =
|
|
3221
|
-
this.http = new (0,
|
|
3220
|
+
this.config = _chunkL7CUNWVRjs.resolveConfig.call(void 0, options);
|
|
3221
|
+
this.http = new (0, _chunkL7CUNWVRjs.HttpClient)(this.config);
|
|
3222
3222
|
this.toolCalls = new ToolCalls(
|
|
3223
3223
|
this.http,
|
|
3224
3224
|
this.config.timeout,
|
|
@@ -14,7 +14,7 @@ var _chunkXNYIZMNQjs = require('./chunk-XNYIZMNQ.js');
|
|
|
14
14
|
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkFTP4HYWYjs = require('./chunk-FTP4HYWY.js');
|
|
18
18
|
|
|
19
19
|
// src/errors.ts
|
|
20
20
|
var CustomerDbQueryOutcomeUnknownError = (_class = class extends _chunk7P5AA3SNjs.DeeplineError {
|
|
@@ -743,9 +743,9 @@ function resolveCliCommandContext(inputConfig, requestedScope) {
|
|
|
743
743
|
}
|
|
744
744
|
|
|
745
745
|
// src/version.ts
|
|
746
|
-
var SDK_VERSION =
|
|
747
|
-
var SDK_API_MAJOR =
|
|
748
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
746
|
+
var SDK_VERSION = _chunkFTP4HYWYjs.SDK_RELEASE.version;
|
|
747
|
+
var SDK_API_MAJOR = _chunkFTP4HYWYjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
748
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunkFTP4HYWYjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
749
749
|
|
|
750
750
|
// src/agent-runtime.ts
|
|
751
751
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXA7MAC3Gjs = require('./chunk-XA7MAC3G.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkL7CUNWVRjs = require('./chunk-L7CUNWVR.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -32,11 +32,11 @@ function renderDeployment(deployment) {
|
|
|
32
32
|
return `${deployment.id} ${source} (${kind}) - ${deployment.status}${suffix}`;
|
|
33
33
|
}
|
|
34
34
|
async function handleList(options) {
|
|
35
|
-
const { http } =
|
|
35
|
+
const { http } = _chunkXA7MAC3Gjs.getAuthedHttpClient.call(void 0, );
|
|
36
36
|
const payload = await http.get(
|
|
37
37
|
`/api/v2/play-projects${options.all ? "?includeDisabled=1" : ""}`
|
|
38
38
|
);
|
|
39
|
-
|
|
39
|
+
_chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
|
|
40
40
|
{
|
|
41
41
|
projects: payload.projects,
|
|
42
42
|
count: payload.projects.length,
|
|
@@ -73,7 +73,7 @@ function describeInstallationStatus(installation) {
|
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
async function handleStatus(options) {
|
|
76
|
-
const { http } =
|
|
76
|
+
const { http } = _chunkXA7MAC3Gjs.getAuthedHttpClient.call(void 0, );
|
|
77
77
|
const payload = await http.get("/api/v2/github/installation");
|
|
78
78
|
const installation = payload.installation;
|
|
79
79
|
const others = (_nullishCoalesce(payload.installations, () => ( []))).filter(
|
|
@@ -136,7 +136,7 @@ async function handleStatus(options) {
|
|
|
136
136
|
)
|
|
137
137
|
);
|
|
138
138
|
}
|
|
139
|
-
|
|
139
|
+
_chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
|
|
140
140
|
{
|
|
141
141
|
installation,
|
|
142
142
|
installations: _nullishCoalesce(payload.installations, () => ( [])),
|
|
@@ -147,10 +147,10 @@ async function handleStatus(options) {
|
|
|
147
147
|
);
|
|
148
148
|
}
|
|
149
149
|
async function handleRepos(options) {
|
|
150
|
-
const { http } =
|
|
150
|
+
const { http } = _chunkXA7MAC3Gjs.getAuthedHttpClient.call(void 0, );
|
|
151
151
|
const query = options.installation ? `?installationId=${encodeURIComponent(options.installation)}` : "";
|
|
152
152
|
const payload = await http.get(`/api/v2/github/repos${query}`);
|
|
153
|
-
|
|
153
|
+
_chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
|
|
154
154
|
{
|
|
155
155
|
installation: payload.installation,
|
|
156
156
|
repositories: payload.repositories,
|
|
@@ -171,7 +171,7 @@ async function handleRepos(options) {
|
|
|
171
171
|
}
|
|
172
172
|
async function resolveRepoId(repo, installation) {
|
|
173
173
|
if (/^\d+$/.test(repo)) return Number(repo);
|
|
174
|
-
const { http } =
|
|
174
|
+
const { http } = _chunkXA7MAC3Gjs.getAuthedHttpClient.call(void 0, );
|
|
175
175
|
const query = installation ? `?installationId=${encodeURIComponent(installation)}` : "";
|
|
176
176
|
const payload = await http.get(
|
|
177
177
|
`/api/v2/github/repos${query}`
|
|
@@ -188,7 +188,7 @@ async function resolveRepoId(repo, installation) {
|
|
|
188
188
|
}
|
|
189
189
|
async function handleLink(repo, options) {
|
|
190
190
|
const repoId = await resolveRepoId(repo, options.installation);
|
|
191
|
-
const { http } =
|
|
191
|
+
const { http } = _chunkXA7MAC3Gjs.getAuthedHttpClient.call(void 0, );
|
|
192
192
|
const payload = await http.post("/api/v2/play-projects", {
|
|
193
193
|
repoId,
|
|
194
194
|
...options.installation !== void 0 ? { installationId: options.installation } : {},
|
|
@@ -197,7 +197,7 @@ async function handleLink(repo, options) {
|
|
|
197
197
|
...options.branch !== void 0 ? { productionBranch: options.branch } : {},
|
|
198
198
|
...options.prChecks !== void 0 ? { checkOnPullRequest: options.prChecks } : {}
|
|
199
199
|
});
|
|
200
|
-
|
|
200
|
+
_chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
|
|
201
201
|
{
|
|
202
202
|
project: payload.project,
|
|
203
203
|
render: {
|
|
@@ -220,11 +220,11 @@ async function handleLink(repo, options) {
|
|
|
220
220
|
);
|
|
221
221
|
}
|
|
222
222
|
async function handleGet(id, options) {
|
|
223
|
-
const { http } =
|
|
223
|
+
const { http } = _chunkXA7MAC3Gjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
|
|
228
228
|
{
|
|
229
229
|
project: payload.project,
|
|
230
230
|
render: {
|
|
@@ -240,7 +240,7 @@ async function handleGet(id, options) {
|
|
|
240
240
|
);
|
|
241
241
|
}
|
|
242
242
|
async function handleSet(id, options) {
|
|
243
|
-
const { http } =
|
|
243
|
+
const { http } = _chunkXA7MAC3Gjs.getAuthedHttpClient.call(void 0, );
|
|
244
244
|
const payload = await http.patch(
|
|
245
245
|
`/api/v2/play-projects/${encodeURIComponent(id)}`,
|
|
246
246
|
{
|
|
@@ -251,7 +251,7 @@ async function handleSet(id, options) {
|
|
|
251
251
|
...options.disabled !== void 0 ? { disabled: options.disabled } : {}
|
|
252
252
|
}
|
|
253
253
|
);
|
|
254
|
-
|
|
254
|
+
_chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
|
|
255
255
|
{
|
|
256
256
|
project: payload.project,
|
|
257
257
|
render: {
|
|
@@ -264,9 +264,9 @@ async function handleSet(id, options) {
|
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
async function handleUnlink(id, options) {
|
|
267
|
-
const { http } =
|
|
267
|
+
const { http } = _chunkXA7MAC3Gjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
|
|
270
270
|
{
|
|
271
271
|
ok: true,
|
|
272
272
|
id,
|
|
@@ -286,10 +286,10 @@ async function handleUnlink(id, options) {
|
|
|
286
286
|
);
|
|
287
287
|
}
|
|
288
288
|
async function handleConnect(options) {
|
|
289
|
-
const baseUrl =
|
|
289
|
+
const baseUrl = _chunkL7CUNWVRjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunkXA7MAC3Gjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
|
|
293
293
|
{
|
|
294
294
|
connectUrl,
|
|
295
295
|
browser: opened,
|
|
@@ -311,7 +311,7 @@ async function handleConnect(options) {
|
|
|
311
311
|
);
|
|
312
312
|
}
|
|
313
313
|
async function handleDeploymentsList(options) {
|
|
314
|
-
const { http } =
|
|
314
|
+
const { http } = _chunkXA7MAC3Gjs.getAuthedHttpClient.call(void 0, );
|
|
315
315
|
const query = new URLSearchParams();
|
|
316
316
|
if (options.repo) query.set("projectId", options.repo);
|
|
317
317
|
if (options.limit) query.set("limit", options.limit);
|
|
@@ -319,7 +319,7 @@ async function handleDeploymentsList(options) {
|
|
|
319
319
|
const payload = await http.get(
|
|
320
320
|
`/api/v2/deployments${suffix}`
|
|
321
321
|
);
|
|
322
|
-
|
|
322
|
+
_chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
|
|
323
323
|
{
|
|
324
324
|
deployments: payload.deployments,
|
|
325
325
|
count: payload.deployments.length,
|
|
@@ -363,12 +363,12 @@ function renderDeploymentMonitorLines(results) {
|
|
|
363
363
|
]);
|
|
364
364
|
}
|
|
365
365
|
async function handleDeploymentGet(id, options) {
|
|
366
|
-
const { http } =
|
|
366
|
+
const { http } = _chunkXA7MAC3Gjs.getAuthedHttpClient.call(void 0, );
|
|
367
367
|
const payload = await http.get(`/api/v2/deployments/${encodeURIComponent(id)}`);
|
|
368
368
|
const playLines = renderDeploymentPlayLines(payload.deployment.results);
|
|
369
369
|
const monitorLines = renderDeploymentMonitorLines(payload.deployment.results);
|
|
370
370
|
const repository = _nullishCoalesce(_optionalChain([payload, 'access', _10 => _10.project, 'optionalAccess', _11 => _11.repoFullName]), () => ( payload.deployment.repoFullName));
|
|
371
|
-
|
|
371
|
+
_chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
|
|
372
372
|
{
|
|
373
373
|
deployment: payload.deployment,
|
|
374
374
|
project: payload.project,
|
|
@@ -387,9 +387,9 @@ async function handleDeploymentGet(id, options) {
|
|
|
387
387
|
);
|
|
388
388
|
}
|
|
389
389
|
async function handleDeploymentCancel(id, options) {
|
|
390
|
-
const { http } =
|
|
390
|
+
const { http } = _chunkXA7MAC3Gjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
import {
|
|
12
12
|
recentSearchRef,
|
|
13
13
|
registerDeprecatedSearchCommand
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-QTBWSCF4.mjs";
|
|
15
15
|
import {
|
|
16
16
|
extractSummaryFields,
|
|
17
17
|
projectRowOutput,
|
|
@@ -26,7 +26,7 @@ import {
|
|
|
26
26
|
import {
|
|
27
27
|
DeeplineClient,
|
|
28
28
|
validateExecutionIdempotencyKey
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-6RX64O34.mjs";
|
|
30
30
|
import {
|
|
31
31
|
beginToolExecuteCommand,
|
|
32
32
|
getToolExecuteInvocationId,
|
|
@@ -40,11 +40,11 @@ import {
|
|
|
40
40
|
printJsonError,
|
|
41
41
|
renderCommandEnvelopeText,
|
|
42
42
|
shouldEmitJson
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-NDQBGF6U.mjs";
|
|
44
44
|
import {
|
|
45
45
|
resolveConfig,
|
|
46
46
|
sdkCliStateDirPath
|
|
47
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-5OMKEQGL.mjs";
|
|
48
48
|
import {
|
|
49
49
|
DeeplineError
|
|
50
50
|
} from "./chunk-NXGCO4JB.mjs";
|
|
@@ -1030,7 +1030,7 @@ Examples:
|
|
|
1030
1030
|
process.exitCode = await narrowView();
|
|
1031
1031
|
return;
|
|
1032
1032
|
}
|
|
1033
|
-
const { describeAnything } = await import("./describe-
|
|
1033
|
+
const { describeAnything } = await import("./describe-3ZSRFCHD.mjs");
|
|
1034
1034
|
process.exitCode = await describeAnything(
|
|
1035
1035
|
toolId,
|
|
1036
1036
|
{ ...options, kinds: ["tools", "monitors"], fetchedTool: metadata },
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkXA7MAC3Gjs = require('./chunk-XA7MAC3G.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -25,7 +25,7 @@ var _chunkVTKCTJWGjs = require('./chunk-VTKCTJWG.js');
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
var
|
|
28
|
+
var _chunkL7CUNWVRjs = require('./chunk-L7CUNWVR.js');
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
|
|
@@ -52,7 +52,7 @@ function statusBannerLine(value) {
|
|
|
52
52
|
return `Service notice: ${banner.message}`;
|
|
53
53
|
}
|
|
54
54
|
function envFilePath(baseUrl) {
|
|
55
|
-
return
|
|
55
|
+
return _chunkL7CUNWVRjs.hostEnvFilePath.call(void 0, baseUrl);
|
|
56
56
|
}
|
|
57
57
|
function normalizeAuthScope(value) {
|
|
58
58
|
if (!value || value === "global") return "global";
|
|
@@ -65,7 +65,7 @@ function parseAuthScope(args) {
|
|
|
65
65
|
}
|
|
66
66
|
function pendingClaimPath(baseUrl, scope) {
|
|
67
67
|
if (scope === "folder") {
|
|
68
|
-
const target =
|
|
68
|
+
const target = _chunkL7CUNWVRjs.resolveProjectPinTarget.call(void 0, );
|
|
69
69
|
if (!target.ok) {
|
|
70
70
|
throw new Error(
|
|
71
71
|
`Cowork project folder is ambiguous. Candidate folders: ${target.candidates.join(
|
|
@@ -75,10 +75,10 @@ function pendingClaimPath(baseUrl, scope) {
|
|
|
75
75
|
}
|
|
76
76
|
return _path.join.call(void 0, target.dir, ".deepline", "setup", "pending-auth.json");
|
|
77
77
|
}
|
|
78
|
-
return `${
|
|
78
|
+
return `${_chunkL7CUNWVRjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
79
79
|
}
|
|
80
80
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
81
|
-
return `${
|
|
81
|
+
return `${_chunkL7CUNWVRjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-claim-token`;
|
|
82
82
|
}
|
|
83
83
|
function savePendingClaim(baseUrl, claim) {
|
|
84
84
|
const filePath = pendingClaimPath(baseUrl, claim.scope);
|
|
@@ -180,21 +180,21 @@ function parseRegisterWaitMode(args) {
|
|
|
180
180
|
function shouldWaitForRegisterClaim(mode) {
|
|
181
181
|
if (mode === "yes") return true;
|
|
182
182
|
if (mode === "no") return false;
|
|
183
|
-
return
|
|
183
|
+
return _chunkL7CUNWVRjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
184
184
|
}
|
|
185
185
|
function saveEnvValues(values, baseUrl, scope) {
|
|
186
186
|
const filtered = {
|
|
187
|
-
...values[
|
|
188
|
-
...values[
|
|
189
|
-
...values[
|
|
190
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
187
|
+
...values[_chunkL7CUNWVRjs.HOST_URL_ENV] ? { [_chunkL7CUNWVRjs.HOST_URL_ENV]: values[_chunkL7CUNWVRjs.HOST_URL_ENV] } : {},
|
|
188
|
+
...values[_chunkL7CUNWVRjs.API_KEY_ENV] ? { [_chunkL7CUNWVRjs.API_KEY_ENV]: values[_chunkL7CUNWVRjs.API_KEY_ENV] } : {},
|
|
189
|
+
...values[_chunkL7CUNWVRjs.ACTIVE_ORG_ID_ENV] ? { [_chunkL7CUNWVRjs.ACTIVE_ORG_ID_ENV]: values[_chunkL7CUNWVRjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
190
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkL7CUNWVRjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkL7CUNWVRjs.ACTIVE_ORG_NAME_ENV]: values[_chunkL7CUNWVRjs.ACTIVE_ORG_NAME_ENV] } : {},
|
|
191
191
|
// An explicit empty list must reach the store: it clears a stale line.
|
|
192
|
-
...Object.prototype.hasOwnProperty.call(values,
|
|
192
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkL7CUNWVRjs.FEATURES_ENV) ? { [_chunkL7CUNWVRjs.FEATURES_ENV]: values[_chunkL7CUNWVRjs.FEATURES_ENV] } : {}
|
|
193
193
|
};
|
|
194
194
|
if (scope === "folder") {
|
|
195
|
-
|
|
195
|
+
_chunkL7CUNWVRjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
196
196
|
} else {
|
|
197
|
-
|
|
197
|
+
_chunkL7CUNWVRjs.saveHostEnvValues.call(void 0, baseUrl, filtered);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
function activeOrgEnvValues(data) {
|
|
@@ -202,21 +202,21 @@ function activeOrgEnvValues(data) {
|
|
|
202
202
|
if (!orgId) return {};
|
|
203
203
|
const orgName = typeof data.org_name === "string" ? data.org_name.trim() : "";
|
|
204
204
|
return {
|
|
205
|
-
[
|
|
206
|
-
[
|
|
207
|
-
...
|
|
205
|
+
[_chunkL7CUNWVRjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
206
|
+
[_chunkL7CUNWVRjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
207
|
+
..._chunkL7CUNWVRjs.featureEnvValues.call(void 0, data)
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
210
|
async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT_MS) {
|
|
211
211
|
const headers = {
|
|
212
212
|
"Content-Type": "application/json",
|
|
213
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
213
|
+
"User-Agent": `deepline-ts-sdk/${_chunkL7CUNWVRjs.SDK_VERSION}`,
|
|
214
214
|
"X-Deepline-Client-Family": "sdk",
|
|
215
215
|
"X-Deepline-CLI-Family": "sdk",
|
|
216
|
-
"X-Deepline-Agent-Runtime":
|
|
217
|
-
"X-Deepline-CLI-Version":
|
|
218
|
-
"X-Deepline-SDK-Version":
|
|
219
|
-
"X-Deepline-API-Contract":
|
|
216
|
+
"X-Deepline-Agent-Runtime": _chunkL7CUNWVRjs.detectAgentRuntime.call(void 0, ),
|
|
217
|
+
"X-Deepline-CLI-Version": _chunkL7CUNWVRjs.SDK_VERSION,
|
|
218
|
+
"X-Deepline-SDK-Version": _chunkL7CUNWVRjs.SDK_VERSION,
|
|
219
|
+
"X-Deepline-API-Contract": _chunkL7CUNWVRjs.SDK_API_CONTRACT
|
|
220
220
|
};
|
|
221
221
|
if (apiKey) headers["Authorization"] = `Bearer ${apiKey}`;
|
|
222
222
|
const bypassToken = _optionalChain([process, 'access', _7 => _7.env, 'access', _8 => _8.VERCEL_PROTECTION_BYPASS_TOKEN, 'optionalAccess', _9 => _9.trim, 'call', _10 => _10()]);
|
|
@@ -254,7 +254,7 @@ async function httpJson(method, url, apiKey, body, timeoutMs = AUTH_HTTP_TIMEOUT
|
|
|
254
254
|
throw lastError instanceof Error ? lastError : new Error(String(lastError));
|
|
255
255
|
}
|
|
256
256
|
async function reportSetupCompleted(input) {
|
|
257
|
-
const apiKey = input.authScope === "folder" ?
|
|
257
|
+
const apiKey = input.authScope === "folder" ? _chunkL7CUNWVRjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkL7CUNWVRjs.resolveGlobalApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
258
258
|
if (!apiKey) return;
|
|
259
259
|
try {
|
|
260
260
|
await httpJson(
|
|
@@ -351,7 +351,7 @@ async function printClaimSuccessBanner(baseUrl, apiKey, statusData) {
|
|
|
351
351
|
}
|
|
352
352
|
}
|
|
353
353
|
async function handleRegister(args) {
|
|
354
|
-
const baseUrl =
|
|
354
|
+
const baseUrl = _chunkL7CUNWVRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
355
355
|
let orgName = "";
|
|
356
356
|
let orgId = "";
|
|
357
357
|
let agentName = "";
|
|
@@ -406,19 +406,19 @@ async function handleRegister(args) {
|
|
|
406
406
|
});
|
|
407
407
|
saveEnvValues(
|
|
408
408
|
{
|
|
409
|
-
[
|
|
409
|
+
[_chunkL7CUNWVRjs.HOST_URL_ENV]: baseUrl
|
|
410
410
|
},
|
|
411
411
|
baseUrl,
|
|
412
412
|
authScope
|
|
413
413
|
);
|
|
414
414
|
}
|
|
415
415
|
if (claimUrl) {
|
|
416
|
-
const shouldOpen = waitMode !== "no" &&
|
|
416
|
+
const shouldOpen = waitMode !== "no" && _chunkL7CUNWVRjs.detectAgentRuntime.call(void 0, ) !== "claude_cowork";
|
|
417
417
|
console.log(
|
|
418
418
|
shouldOpen ? " Opening approval page in your browser." : " Open this approval page in your browser:"
|
|
419
419
|
);
|
|
420
420
|
console.log(` ${claimUrl}`);
|
|
421
|
-
if (shouldOpen)
|
|
421
|
+
if (shouldOpen) _chunkXA7MAC3Gjs.openInBrowser.call(void 0, claimUrl);
|
|
422
422
|
}
|
|
423
423
|
if (data.cli_message) {
|
|
424
424
|
console.log(String(data.cli_message));
|
|
@@ -461,8 +461,8 @@ async function handleRegister(args) {
|
|
|
461
461
|
if (apiKey) {
|
|
462
462
|
saveEnvValues(
|
|
463
463
|
{
|
|
464
|
-
[
|
|
465
|
-
[
|
|
464
|
+
[_chunkL7CUNWVRjs.HOST_URL_ENV]: baseUrl,
|
|
465
|
+
[_chunkL7CUNWVRjs.API_KEY_ENV]: apiKey,
|
|
466
466
|
...activeOrgEnvValues(statusData)
|
|
467
467
|
},
|
|
468
468
|
baseUrl,
|
|
@@ -484,7 +484,7 @@ async function handleRegister(args) {
|
|
|
484
484
|
}
|
|
485
485
|
}
|
|
486
486
|
async function handleWait(args) {
|
|
487
|
-
const baseUrl =
|
|
487
|
+
const baseUrl = _chunkL7CUNWVRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
488
488
|
let timeoutSeconds = 300;
|
|
489
489
|
let requestedScope;
|
|
490
490
|
if (args.includes("--auth-scope")) {
|
|
@@ -508,7 +508,7 @@ async function handleWait(args) {
|
|
|
508
508
|
const authScope = resumed.scope;
|
|
509
509
|
const claimToken = _nullishCoalesce(_optionalChain([pendingClaim, 'optionalAccess', _11 => _11.claimToken]), () => ( ""));
|
|
510
510
|
if (!pendingClaim) {
|
|
511
|
-
const scopedApiKey = authScope === "folder" ?
|
|
511
|
+
const scopedApiKey = authScope === "folder" ? _chunkL7CUNWVRjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkL7CUNWVRjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
512
512
|
if (scopedApiKey) {
|
|
513
513
|
console.log("Already connected.");
|
|
514
514
|
return EXIT_OK;
|
|
@@ -551,8 +551,8 @@ async function handleWait(args) {
|
|
|
551
551
|
if (apiKey) {
|
|
552
552
|
saveEnvValues(
|
|
553
553
|
{
|
|
554
|
-
[
|
|
555
|
-
[
|
|
554
|
+
[_chunkL7CUNWVRjs.HOST_URL_ENV]: baseUrl,
|
|
555
|
+
[_chunkL7CUNWVRjs.API_KEY_ENV]: apiKey,
|
|
556
556
|
...activeOrgEnvValues(data)
|
|
557
557
|
},
|
|
558
558
|
baseUrl,
|
|
@@ -576,8 +576,8 @@ async function handleWait(args) {
|
|
|
576
576
|
return EXIT_AUTH;
|
|
577
577
|
}
|
|
578
578
|
async function authStatusLine(timeoutMs = 3e3) {
|
|
579
|
-
const baseUrl =
|
|
580
|
-
const apiKey =
|
|
579
|
+
const baseUrl = _chunkL7CUNWVRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
580
|
+
const apiKey = _chunkL7CUNWVRjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
581
581
|
if (!apiKey) return `Auth: not connected (${baseUrl})`;
|
|
582
582
|
try {
|
|
583
583
|
const { status, data } = await httpJson(
|
|
@@ -600,9 +600,9 @@ async function authStatusLine(timeoutMs = 3e3) {
|
|
|
600
600
|
}
|
|
601
601
|
}
|
|
602
602
|
async function handleStatus(args) {
|
|
603
|
-
const baseUrl =
|
|
603
|
+
const baseUrl = _chunkL7CUNWVRjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
604
604
|
const reveal = args.includes("--reveal");
|
|
605
|
-
const jsonOutput =
|
|
605
|
+
const jsonOutput = _chunkXA7MAC3Gjs.argsWantJson.call(void 0, args);
|
|
606
606
|
const hasExplicitAuthScope = args.includes("--auth-scope");
|
|
607
607
|
let authScope = null;
|
|
608
608
|
if (hasExplicitAuthScope) {
|
|
@@ -642,14 +642,14 @@ async function handleStatus(args) {
|
|
|
642
642
|
};
|
|
643
643
|
hostLines.push(`Host: ${baseUrl} (unreachable)`);
|
|
644
644
|
}
|
|
645
|
-
const apiKey = authScope === "folder" ?
|
|
645
|
+
const apiKey = authScope === "folder" ? _chunkL7CUNWVRjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkL7CUNWVRjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkL7CUNWVRjs.resolveApiKeyForBaseUrl.call(void 0, baseUrl);
|
|
646
646
|
if (!apiKey) {
|
|
647
647
|
const { claim: pendingClaim } = resolvePendingAuthClaimForResume(
|
|
648
648
|
baseUrl,
|
|
649
649
|
_nullishCoalesce(authScope, () => ( void 0))
|
|
650
650
|
);
|
|
651
651
|
if (pendingClaim) {
|
|
652
|
-
|
|
652
|
+
_chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
|
|
653
653
|
{
|
|
654
654
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
655
655
|
status: "pending",
|
|
@@ -670,7 +670,7 @@ async function handleStatus(args) {
|
|
|
670
670
|
);
|
|
671
671
|
return EXIT_OK;
|
|
672
672
|
}
|
|
673
|
-
|
|
673
|
+
_chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
|
|
674
674
|
{
|
|
675
675
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
676
676
|
status: "not connected",
|
|
@@ -703,7 +703,7 @@ async function handleStatus(args) {
|
|
|
703
703
|
}
|
|
704
704
|
);
|
|
705
705
|
if (status === 401 || status === 403) {
|
|
706
|
-
|
|
706
|
+
_chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
|
|
707
707
|
{
|
|
708
708
|
..._nullishCoalesce(hostStatusPayload, () => ( { host: baseUrl })),
|
|
709
709
|
status: "unauthorized",
|
|
@@ -730,7 +730,7 @@ async function handleStatus(args) {
|
|
|
730
730
|
console.error(`Auth status error (status ${status}).`);
|
|
731
731
|
return EXIT_SERVER;
|
|
732
732
|
}
|
|
733
|
-
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (
|
|
733
|
+
const resolvedAuthScope = _nullishCoalesce(authScope, () => ( (_chunkL7CUNWVRjs.getResolvedProjectAuthSource.call(void 0, baseUrl, apiKey) ? "folder" : "global")));
|
|
734
734
|
clearSatisfiedPendingClaim(
|
|
735
735
|
baseUrl,
|
|
736
736
|
resolvedAuthScope,
|
|
@@ -758,28 +758,28 @@ async function handleStatus(args) {
|
|
|
758
758
|
if (apiKeyResp) {
|
|
759
759
|
saveEnvValues(
|
|
760
760
|
{
|
|
761
|
-
[
|
|
762
|
-
[
|
|
761
|
+
[_chunkL7CUNWVRjs.HOST_URL_ENV]: baseUrl,
|
|
762
|
+
[_chunkL7CUNWVRjs.API_KEY_ENV]: apiKeyResp,
|
|
763
763
|
...activeOrgEnvValues(data)
|
|
764
764
|
},
|
|
765
765
|
baseUrl,
|
|
766
766
|
resolvedAuthScope
|
|
767
767
|
);
|
|
768
768
|
if (resolvedAuthScope === "folder") {
|
|
769
|
-
const target =
|
|
769
|
+
const target = _chunkL7CUNWVRjs.resolveProjectPinTarget.call(void 0, );
|
|
770
770
|
savedApiKeyPath = target.ok ? _path.join.call(void 0, target.dir, ".env.deepline") : null;
|
|
771
771
|
} else {
|
|
772
772
|
savedApiKeyPath = envFilePath(baseUrl);
|
|
773
773
|
}
|
|
774
774
|
}
|
|
775
|
-
} else if (resolvedAuthScope === "folder" ||
|
|
776
|
-
saveEnvValues(
|
|
775
|
+
} else if (resolvedAuthScope === "folder" || _chunkL7CUNWVRjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
776
|
+
saveEnvValues(_chunkL7CUNWVRjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
777
777
|
}
|
|
778
|
-
|
|
778
|
+
_chunkXA7MAC3Gjs.printCommandEnvelope.call(void 0,
|
|
779
779
|
{
|
|
780
780
|
...payload,
|
|
781
|
-
...
|
|
782
|
-
command_context:
|
|
781
|
+
..._chunkL7CUNWVRjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
782
|
+
command_context: _chunkL7CUNWVRjs.resolveCliCommandContext.call(void 0,
|
|
783
783
|
{ baseUrl, apiKey },
|
|
784
784
|
resolvedAuthScope
|
|
785
785
|
)
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6RX64O34.mjs";
|
|
4
4
|
import {
|
|
5
5
|
printCommandEnvelope,
|
|
6
6
|
renderCommandEnvelopeText
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NDQBGF6U.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveConfig,
|
|
10
10
|
sdkCliStateDirPath
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-5OMKEQGL.mjs";
|
|
12
12
|
|
|
13
13
|
// src/cli/commands/search.ts
|
|
14
14
|
import { Option } from "commander";
|