deepline 0.3.558 → 0.3.559
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/observability/redaction.ts +23 -1
- package/dist/bundling-sources/shared_libs/observability/telemetry.ts +4 -1
- package/dist/cli/auth-3SBMYRAJ.js +44 -0
- package/dist/cli/{auth-JJXTMFWH.mjs → auth-D6S6E7BL.mjs} +5 -5
- package/dist/cli/{billing-RBFJMAI5.mjs → billing-3BNTAYUY.mjs} +8 -8
- package/dist/cli/{billing-V3TJKUHY.js → billing-7YRVKWAU.js} +99 -99
- package/dist/cli/{chunk-6PIQC2XE.mjs → chunk-22Z2U5MW.mjs} +3 -3
- package/dist/cli/{chunk-QGJ4DYGE.js → chunk-24XWLHKJ.js} +1 -1
- package/dist/cli/{chunk-IS67LBNV.js → chunk-2YQGXPQ7.js} +2 -2
- package/dist/cli/{chunk-I57JNBKA.mjs → chunk-3MVBZ4XI.mjs} +5 -5
- package/dist/cli/{chunk-CEEUL7ER.mjs → chunk-53HQJS6D.mjs} +1 -1
- package/dist/cli/{chunk-BFM2RCC3.js → chunk-6BJHMXMA.js} +2 -2
- package/dist/cli/{chunk-QGDU23YW.js → chunk-A4KQZ6P5.js} +8 -8
- package/dist/cli/{chunk-LIS6UJSC.mjs → chunk-D7DXRFM2.mjs} +1 -1
- package/dist/cli/{chunk-YJ46MJMT.js → chunk-EEUJNR5K.js} +6 -6
- package/dist/cli/{chunk-C7BQBKRZ.js → chunk-EYL4V32Q.js} +4 -4
- package/dist/cli/{chunk-NADXF2C5.js → chunk-FDVSB4NF.js} +53 -53
- package/dist/cli/{chunk-P2MVPTFJ.mjs → chunk-FHMGNUOP.mjs} +1 -1
- package/dist/cli/{chunk-FCG42RQZ.js → chunk-G7IGOVPF.js} +20 -20
- package/dist/cli/{chunk-BHHCQGUY.mjs → chunk-GETMCDVX.mjs} +5 -5
- package/dist/cli/{chunk-A5MRMCMW.js → chunk-GFHBS7HG.js} +5 -5
- package/dist/cli/{chunk-7Q5I4KEG.mjs → chunk-GWS7XJI2.mjs} +4 -4
- package/dist/cli/{chunk-CG3R4ZFS.mjs → chunk-II33OPIO.mjs} +1 -1
- package/dist/cli/{chunk-YVWINBZL.js → chunk-IUDO463I.js} +20 -20
- package/dist/cli/{chunk-67J4K4G2.js → chunk-JME33A35.js} +15 -15
- package/dist/cli/{chunk-FH55SB63.js → chunk-JUTXZW3S.js} +7 -7
- package/dist/cli/{chunk-5V45LY6Y.js → chunk-K5BZF2VO.js} +9 -9
- package/dist/cli/{chunk-ARGJDP77.mjs → chunk-KACD2TYW.mjs} +2 -2
- package/dist/cli/{chunk-YBJSDL34.mjs → chunk-KGCY3MSS.mjs} +5 -5
- package/dist/cli/{chunk-6GBQNS6L.mjs → chunk-LTCV5BI2.mjs} +1 -1
- package/dist/cli/{chunk-4CTBC6Q7.js → chunk-LWOYDMYC.js} +3 -3
- package/dist/cli/{chunk-FF3BWNLL.mjs → chunk-MJ4JEJLL.mjs} +1 -1
- package/dist/cli/{chunk-KMNLER7F.mjs → chunk-MPEMAGZS.mjs} +11 -11
- package/dist/cli/{chunk-AL4QQKUK.mjs → chunk-MWZEGRY2.mjs} +2 -2
- package/dist/cli/{chunk-XPSSXKBT.mjs → chunk-OFC24U3N.mjs} +2 -2
- package/dist/cli/{chunk-VPJ663PV.js → chunk-OJ3FRPEP.js} +10 -10
- package/dist/cli/{chunk-DDI4LNVC.js → chunk-OSHKFYY4.js} +41 -41
- package/dist/cli/{chunk-D4GCU735.mjs → chunk-P2DFD2NG.mjs} +1 -1
- package/dist/cli/{chunk-M4CJGF53.js → chunk-PNFC7VHH.js} +5 -5
- package/dist/cli/{chunk-XV4DHKZ2.js → chunk-PQ52YTDB.js} +13 -13
- package/dist/cli/{chunk-MAN4IEO4.mjs → chunk-PZUBDHQ7.mjs} +4 -4
- package/dist/cli/{chunk-PAJLUB37.js → chunk-QGVOD6Y4.js} +100 -100
- package/dist/cli/{chunk-OWOUDGHO.js → chunk-QQ6AVBHW.js} +23 -23
- package/dist/cli/{chunk-7Q3EXOLC.js → chunk-SSE5P2CX.js} +12 -12
- package/dist/cli/{chunk-NAJAAIEE.js → chunk-TIMFDVUN.js} +48 -48
- package/dist/cli/{chunk-I3PX6NGG.js → chunk-TPLISQND.js} +5 -5
- package/dist/cli/{chunk-2FFZ5SEU.mjs → chunk-UA2VLWZH.mjs} +2 -2
- package/dist/cli/{chunk-DJAP2M5M.mjs → chunk-UHIOXXAO.mjs} +1 -1
- package/dist/cli/{chunk-GAQ6VSRS.mjs → chunk-URACGTQE.mjs} +1 -1
- package/dist/cli/{chunk-T6W7SKE7.mjs → chunk-VZKBLSTA.mjs} +2 -2
- package/dist/cli/{chunk-6LFPPAMD.js → chunk-WZUOUQZ3.js} +3 -3
- package/dist/cli/{chunk-RIQYBKHK.js → chunk-XNN45XYF.js} +2 -2
- package/dist/cli/{chunk-WJ7RY3PJ.mjs → chunk-XPS2UBYV.mjs} +3 -3
- package/dist/cli/{chunk-P3SLGOGA.mjs → chunk-XXZDT3U7.mjs} +2 -2
- package/dist/cli/{chunk-6BDLYZYL.js → chunk-YE7OCVI5.js} +26 -26
- package/dist/cli/{chunk-BWWLLK56.mjs → chunk-YFUFYV4M.mjs} +5 -5
- package/dist/cli/{chunk-4SVFZCCI.mjs → chunk-YODGCJPX.mjs} +2 -2
- package/dist/cli/{chunk-CB5DIX5K.mjs → chunk-ZMC5FEJN.mjs} +2 -2
- package/dist/cli/{concurrent-runs-help-ZWWMHCK4.mjs → concurrent-runs-help-FCAZLZNA.mjs} +6 -6
- package/dist/cli/concurrent-runs-help-TVQO4USY.js +22 -0
- package/dist/cli/{csv-D76CXYOL.mjs → csv-BC26EB4B.mjs} +4 -4
- package/dist/cli/{csv-V2FR4SO2.js → csv-SCIQKZNH.js} +13 -13
- package/dist/cli/{db-B23O6Q4O.js → db-IJRJVIQ3.js} +27 -27
- package/dist/cli/{db-2D7PD7A3.mjs → db-RVOPGYKY.mjs} +6 -6
- package/dist/cli/describe-4FBGZZK5.js +50 -0
- package/dist/cli/{describe-3LG6VO3D.mjs → describe-K7CRL4PA.mjs} +18 -18
- package/dist/cli/{executions-4P4UBPMX.js → executions-IEVLTSXV.js} +8 -8
- package/dist/cli/{executions-ORWO4SR4.mjs → executions-PDOO2GFK.mjs} +6 -6
- package/dist/cli/{feedback-AY47IRDD.mjs → feedback-7YVUUROQ.mjs} +6 -6
- package/dist/cli/{feedback-LPHCSOJT.js → feedback-KHYOWTXA.js} +14 -14
- package/dist/cli/{git-LQGZNBZM.mjs → git-426CAP5S.mjs} +5 -5
- package/dist/cli/git-O6A2FVJE.js +26 -0
- package/dist/cli/index.js +143 -143
- package/dist/cli/index.mjs +45 -45
- package/dist/cli/{integrations-QEOUALDR.js → integrations-BVHTRN3W.js} +15 -15
- package/dist/cli/{integrations-NEUZIBQT.mjs → integrations-TNJ4IELE.mjs} +7 -7
- package/dist/cli/{legacy-noops-4G3DXN57.mjs → legacy-noops-2GB35THO.mjs} +6 -6
- package/dist/cli/{legacy-noops-PUO5VKHN.js → legacy-noops-F73BMPBV.js} +9 -9
- package/dist/cli/{mcp-USM2QUKK.mjs → mcp-BAGMQXNR.mjs} +4 -4
- package/dist/cli/{mcp-EWAZKABW.js → mcp-KMTC7OBK.js} +24 -24
- package/dist/cli/{monitors-T6FJSZCP.mjs → monitors-ECONWLHL.mjs} +7 -7
- package/dist/cli/{monitors-2BI5J46A.js → monitors-O2BUIK7Q.js} +100 -100
- package/dist/cli/{org-V6V3E7F7.js → org-5NQQ4PRU.js} +121 -121
- package/dist/cli/{org-BT45O64S.mjs → org-AEZZBWA3.mjs} +6 -6
- package/dist/cli/{outcomes-B6RPHM6M.js → outcomes-IKEQKAF7.js} +14 -14
- package/dist/cli/{outcomes-2T6W554M.mjs → outcomes-ZWHAJH5I.mjs} +6 -6
- package/dist/cli/{play-CBBGJPRI.mjs → play-BVKLMTAS.mjs} +19 -19
- package/dist/cli/{play-YCFVGEWK.js → play-VDWB7FZ5.js} +324 -324
- package/dist/cli/{providers-AGRUGBIY.js → providers-RXT3Q5Q7.js} +9 -9
- package/dist/cli/{providers-RHBUQFFO.mjs → providers-SWRTGKJJ.mjs} +6 -6
- package/dist/cli/{quickstart-OPR5NLIQ.mjs → quickstart-GQVXM7XV.mjs} +4 -4
- package/dist/cli/{quickstart-6N2KPWII.js → quickstart-UJJNXI2S.js} +6 -6
- package/dist/cli/{run-HAU2STMQ.mjs → run-GDIEU622.mjs} +23 -23
- package/dist/cli/{run-MMANMS4E.js → run-WOTVRFGN.js} +44 -44
- package/dist/cli/{search-TGWQMQ2C.mjs → search-EWC7V6GT.mjs} +7 -7
- package/dist/cli/search-UIZHXBHR.js +32 -0
- package/dist/cli/{search-output-DZBYNJEO.mjs → search-output-FCW4R6Z4.mjs} +4 -4
- package/dist/cli/{search-output-VVM3DO2H.js → search-output-FL7STAYJ.js} +6 -6
- package/dist/cli/{secrets-V5WD552F.js → secrets-UXDUGONR.js} +15 -15
- package/dist/cli/{secrets-Z6NEKNWM.mjs → secrets-XG22PDCR.mjs} +6 -6
- package/dist/cli/{sessions-C5GNXSPB.mjs → sessions-2OKBG7FD.mjs} +6 -6
- package/dist/cli/sessions-DPYJFTCW.js +23 -0
- package/dist/cli/{settings-QUDVUIOJ.mjs → settings-EDYA2V4W.mjs} +12 -12
- package/dist/cli/{settings-EZPZXJDG.js → settings-RWN7YHK3.js} +85 -85
- package/dist/cli/{setup-QY5VVGWQ.js → setup-HA3PG3ST.js} +49 -49
- package/dist/cli/{setup-BCJBVQTI.mjs → setup-UZW2IHAT.mjs} +9 -9
- package/dist/cli/skills-RQ6V5TGY.js +37 -0
- package/dist/cli/{skills-LY2WZ22U.mjs → skills-V4KAUQQA.mjs} +7 -7
- package/dist/cli/{tools-FNCTTFWA.mjs → tools-HFUGLYHU.mjs} +17 -17
- package/dist/cli/tools-NGQKXMHP.js +57 -0
- package/dist/cli/{update-YKQAC4AQ.mjs → update-S3KEH7P2.mjs} +9 -9
- package/dist/cli/update-SJJK6XXM.js +37 -0
- package/dist/cli/{views-NBTOBB67.js → views-QH5L37UW.js} +21 -21
- package/dist/cli/{views-5R5NVYHL.mjs → views-Y7Y5Y7V2.mjs} +6 -6
- package/dist/cli/{workflow-VNPT5VQS.js → workflow-4W5JT5HP.js} +17 -17
- package/dist/cli/{workflow-HBDW43GT.mjs → workflow-XNN54KIK.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-TWSGYOWI.js +0 -44
- package/dist/cli/concurrent-runs-help-4VRUNL3T.js +0 -22
- package/dist/cli/describe-QE4ITFPG.js +0 -50
- package/dist/cli/git-XXVGEPEM.js +0 -26
- package/dist/cli/search-7LMUBMDC.js +0 -32
- package/dist/cli/sessions-VYIPZBSR.js +0 -23
- package/dist/cli/skills-PKNTNDYL.js +0 -37
- package/dist/cli/tools-D6CKFZL3.js +0 -57
- package/dist/cli/update-E2H2DWH4.js +0 -37
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rejectRestrictedFeedback
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FHMGNUOP.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getAuthedHttpClient,
|
|
6
6
|
printCommandEnvelope
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZMC5FEJN.mjs";
|
|
8
8
|
import {
|
|
9
9
|
agentSessionIdFromEnvironment,
|
|
10
10
|
claudeProjectsRoots,
|
|
11
11
|
coworkTranscriptFromEnvironment
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-URACGTQE.mjs";
|
|
13
13
|
|
|
14
14
|
// src/cli/commands/sessions.ts
|
|
15
15
|
import {
|
|
@@ -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.559",
|
|
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 _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 _chunkIUDO463Ijs = require('./chunk-IUDO463I.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/feedback-preferences.ts
|
|
6
6
|
|
|
@@ -57,7 +57,7 @@ function rejectRestrictedFeedback(options) {
|
|
|
57
57
|
const code = restriction === "off" ? "FEEDBACK_DISABLED" : "FEEDBACK_APPROVAL_REQUIRED";
|
|
58
58
|
const message = restriction === "off" ? 'Feedback is in mode "off". Do not ask the user if they want to send feedback. Use --requested only if they explicitly request it without being prompted.' : "Ask the user if they wish to send feedback. If they agree, rerun the send command with --requested. To change the setting, run deepline settings feedback --help. Agents must get user approval before turning feedback on.";
|
|
59
59
|
if (options.json) {
|
|
60
|
-
|
|
60
|
+
_chunkIUDO463Ijs.printCommandEnvelope.call(void 0,
|
|
61
61
|
{ ok: false, code, exitCode: 2, message },
|
|
62
62
|
{ json: true }
|
|
63
63
|
);
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UHIOXXAO.mjs";
|
|
4
4
|
import {
|
|
5
5
|
maybeReportAutomaticSkillsSyncFailure
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZMC5FEJN.mjs";
|
|
7
7
|
import {
|
|
8
8
|
DEFAULT_MAX_RETRIES,
|
|
9
9
|
DEFAULT_SKILL_AGENTS,
|
|
@@ -18,20 +18,20 @@ import {
|
|
|
18
18
|
sdkCliStateDirPath,
|
|
19
19
|
skillsAgentPathSegment,
|
|
20
20
|
writeSdkSkillsLocalVersion
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-53HQJS6D.mjs";
|
|
22
22
|
import {
|
|
23
23
|
SDK_API_CONTRACT,
|
|
24
24
|
SDK_API_MAJOR,
|
|
25
25
|
SDK_VERSION,
|
|
26
26
|
deploymentProtectionHeaders,
|
|
27
27
|
detectAgentRuntime
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-URACGTQE.mjs";
|
|
29
29
|
import {
|
|
30
30
|
DeeplineError
|
|
31
31
|
} from "./chunk-Z3A2S3QM.mjs";
|
|
32
32
|
import {
|
|
33
33
|
SDK_RELEASE
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-P2DFD2NG.mjs";
|
|
35
35
|
|
|
36
36
|
// src/compat.ts
|
|
37
37
|
import { randomUUID } from "crypto";
|
|
@@ -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(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkIUDO463Ijs = require('./chunk-IUDO463I.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/maintenance-policy.ts
|
|
6
6
|
var _commander = require('commander');
|
|
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
|
|
|
33
33
|
sinceStartMs: now - cliTraceStartedAt,
|
|
34
34
|
...event
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_chunkIUDO463Ijs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -37,7 +37,7 @@ var _chunkPMH4GLMDjs = require('./chunk-PMH4GLMD.js');
|
|
|
37
37
|
|
|
38
38
|
|
|
39
39
|
|
|
40
|
-
var
|
|
40
|
+
var _chunkEYL4V32Qjs = require('./chunk-EYL4V32Q.js');
|
|
41
41
|
|
|
42
42
|
|
|
43
43
|
var _chunk6VLFQZK6js = require('./chunk-6VLFQZK6.js');
|
|
@@ -705,7 +705,7 @@ var ToolCalls = class {
|
|
|
705
705
|
idempotencyKey,
|
|
706
706
|
onResponse: (response2) => {
|
|
707
707
|
lastResponse = null;
|
|
708
|
-
atomicToolsSupported = response2.headers.get(
|
|
708
|
+
atomicToolsSupported = response2.headers.get(_chunkEYL4V32Qjs.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
709
709
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
710
710
|
if (_optionalChain([options, 'optionalAccess', _33 => _33.onServerTiming])) {
|
|
711
711
|
try {
|
|
@@ -1092,15 +1092,15 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1092
1092
|
}
|
|
1093
1093
|
const receivers = _optionalChain([env, 'access', _58 => _58.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _59 => _59.trim, 'call', _60 => _60()]);
|
|
1094
1094
|
return {
|
|
1095
|
-
[
|
|
1096
|
-
...receivers ? { [
|
|
1095
|
+
[_chunkEYL4V32Qjs.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1096
|
+
...receivers ? { [_chunkEYL4V32Qjs.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1097
1097
|
};
|
|
1098
1098
|
}
|
|
1099
1099
|
function playRunStartHeaders(runtime, env) {
|
|
1100
1100
|
const headers = runtimeSelectionHeaders(runtime, env);
|
|
1101
1101
|
const experimentSwitches = _optionalChain([env, 'access', _61 => _61.DEEPLINE_EXPERIMENT_SWITCHES, 'optionalAccess', _62 => _62.trim, 'call', _63 => _63()]);
|
|
1102
1102
|
if (!experimentSwitches) return headers;
|
|
1103
|
-
return { ...headers, [
|
|
1103
|
+
return { ...headers, [_chunkEYL4V32Qjs.EXPERIMENT_SWITCHES_HEADER]: experimentSwitches };
|
|
1104
1104
|
}
|
|
1105
1105
|
function normalizeTestPolicyOverrides(value, source) {
|
|
1106
1106
|
if (value && typeof value === "object" && !Array.isArray(value)) {
|
|
@@ -1170,7 +1170,7 @@ var PlayClient = class {
|
|
|
1170
1170
|
return _chunkMJTVX4QKjs.startPlayRun.call(void 0,
|
|
1171
1171
|
this.http,
|
|
1172
1172
|
resolved.request,
|
|
1173
|
-
_optionalChain([options, 'optionalAccess', _71 => _71.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1173
|
+
_optionalChain([options, 'optionalAccess', _71 => _71.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunkEYL4V32Qjs.SDK_API_MAJOR) } : headers,
|
|
1174
1174
|
options
|
|
1175
1175
|
);
|
|
1176
1176
|
}
|
|
@@ -3411,7 +3411,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3411
3411
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3412
3412
|
);
|
|
3413
3413
|
}
|
|
3414
|
-
return { [
|
|
3414
|
+
return { [_chunkEYL4V32Qjs.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3415
3415
|
}
|
|
3416
3416
|
function sleep(ms) {
|
|
3417
3417
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -4347,7 +4347,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4347
4347
|
);
|
|
4348
4348
|
const headers = _optionalChain([options, 'optionalAccess', _200 => _200.cliAdmission]) ? {
|
|
4349
4349
|
...runtimeHeaders,
|
|
4350
|
-
"X-Deepline-API-Major": String(
|
|
4350
|
+
"X-Deepline-API-Major": String(_chunkEYL4V32Qjs.SDK_API_MAJOR)
|
|
4351
4351
|
} : runtimeHeaders;
|
|
4352
4352
|
const http = this.http;
|
|
4353
4353
|
let submitted = false;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunk6BJHMXMAjs = require('./chunk-6BJHMXMA.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkTIMFDVUNjs = require('./chunk-TIMFDVUN.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -18,18 +18,18 @@ function usesCliPlayAdmission(command, args) {
|
|
|
18
18
|
}
|
|
19
19
|
async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured", signal) {
|
|
20
20
|
_optionalChain([signal, 'optionalAccess', _ => _.throwIfAborted, 'call', _2 => _2()]);
|
|
21
|
-
if (maintenancePolicy !== "off")
|
|
22
|
-
const compatibility = await
|
|
21
|
+
if (maintenancePolicy !== "off") _chunkTIMFDVUNjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
22
|
+
const compatibility = await _chunk6BJHMXMAjs.traceCliSpan.call(void 0,
|
|
23
23
|
"cli.sdk_compatibility",
|
|
24
24
|
{ baseUrl, command: "plays run" },
|
|
25
|
-
() =>
|
|
25
|
+
() => _chunkTIMFDVUNjs.requireSdkCompatibility.call(void 0, baseUrl, {
|
|
26
26
|
command: "plays run",
|
|
27
27
|
persistCache: maintenancePolicy !== "off",
|
|
28
28
|
signal
|
|
29
29
|
})
|
|
30
30
|
);
|
|
31
31
|
_optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
|
|
32
|
-
|
|
32
|
+
_chunkTIMFDVUNjs.enforceSdkCompatibilityResponse.call(void 0, compatibility, {
|
|
33
33
|
quietAdvisory: true
|
|
34
34
|
});
|
|
35
35
|
}
|
|
@@ -21,12 +21,12 @@ var _chunkLFQJW4S2js = require('./chunk-LFQJW4S2.js');
|
|
|
21
21
|
var _chunkCFJFUVX2js = require('./chunk-CFJFUVX2.js');
|
|
22
22
|
|
|
23
23
|
|
|
24
|
-
var
|
|
24
|
+
var _chunk24XWLHKJjs = require('./chunk-24XWLHKJ.js');
|
|
25
25
|
|
|
26
26
|
// src/version.ts
|
|
27
|
-
var SDK_VERSION =
|
|
28
|
-
var SDK_API_MAJOR =
|
|
29
|
-
var SDK_API_CONTRACT = _nullishCoalesce(
|
|
27
|
+
var SDK_VERSION = _chunk24XWLHKJjs.SDK_RELEASE.version;
|
|
28
|
+
var SDK_API_MAJOR = _chunk24XWLHKJjs.SDK_RELEASE.contracts.api.currentMajor;
|
|
29
|
+
var SDK_API_CONTRACT = _nullishCoalesce(_chunk24XWLHKJjs.SDK_RELEASE.contracts.api.legacyWireIds[0], () => ( `api-v${SDK_API_MAJOR}`));
|
|
30
30
|
|
|
31
31
|
// src/agent-runtime.ts
|
|
32
32
|
var _fs = require('fs');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkIUDO463Ijs = require('./chunk-IUDO463I.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
@@ -22,14 +22,14 @@ var _chunkYVWINBZLjs = require('./chunk-YVWINBZL.js');
|
|
|
22
22
|
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
var
|
|
25
|
+
var _chunkLWOYDMYCjs = require('./chunk-LWOYDMYC.js');
|
|
26
26
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
31
|
|
|
32
|
-
var
|
|
32
|
+
var _chunkEYL4V32Qjs = require('./chunk-EYL4V32Q.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 _chunkLWOYDMYCjs.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 = _chunkLWOYDMYCjs.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 `${_chunkLWOYDMYCjs.hostConfigDirPath.call(void 0, baseUrl)}/pending-auth.json`;
|
|
87
87
|
}
|
|
88
88
|
function legacyPendingClaimTokenPath(baseUrl) {
|
|
89
|
-
return `${
|
|
89
|
+
return `${_chunkLWOYDMYCjs.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 _chunkEYL4V32Qjs.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[_chunkLWOYDMYCjs.HOST_URL_ENV] ? { [_chunkLWOYDMYCjs.HOST_URL_ENV]: values[_chunkLWOYDMYCjs.HOST_URL_ENV] } : {},
|
|
199
|
+
...values[_chunkLWOYDMYCjs.API_KEY_ENV] ? { [_chunkLWOYDMYCjs.API_KEY_ENV]: values[_chunkLWOYDMYCjs.API_KEY_ENV] } : {},
|
|
200
|
+
...values[_chunkLWOYDMYCjs.ACTIVE_ORG_ID_ENV] ? { [_chunkLWOYDMYCjs.ACTIVE_ORG_ID_ENV]: values[_chunkLWOYDMYCjs.ACTIVE_ORG_ID_ENV] } : {},
|
|
201
|
+
...Object.prototype.hasOwnProperty.call(values, _chunkLWOYDMYCjs.ACTIVE_ORG_NAME_ENV) ? { [_chunkLWOYDMYCjs.ACTIVE_ORG_NAME_ENV]: values[_chunkLWOYDMYCjs.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, _chunkLWOYDMYCjs.FEATURES_ENV) ? { [_chunkLWOYDMYCjs.FEATURES_ENV]: values[_chunkLWOYDMYCjs.FEATURES_ENV] } : {}
|
|
204
204
|
};
|
|
205
205
|
if (scope === "folder") {
|
|
206
|
-
|
|
206
|
+
_chunkLWOYDMYCjs.saveProjectDeeplineEnvValues.call(void 0, filtered);
|
|
207
207
|
} else {
|
|
208
|
-
|
|
208
|
+
_chunkLWOYDMYCjs.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
|
+
[_chunkLWOYDMYCjs.ACTIVE_ORG_ID_ENV]: orgId,
|
|
217
|
+
[_chunkLWOYDMYCjs.ACTIVE_ORG_NAME_ENV]: orgName,
|
|
218
|
+
..._chunkLWOYDMYCjs.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/${_chunkEYL4V32Qjs.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": _chunkEYL4V32Qjs.detectAgentRuntime.call(void 0, ),
|
|
228
|
+
"X-Deepline-CLI-Version": _chunkEYL4V32Qjs.SDK_VERSION,
|
|
229
|
+
"X-Deepline-SDK-Version": _chunkEYL4V32Qjs.SDK_VERSION,
|
|
230
|
+
"X-Deepline-API-Contract": _chunkEYL4V32Qjs.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 = _chunkEYL4V32Qjs.networkCauseCode.call(void 0, failure);
|
|
270
270
|
throw Object.assign(
|
|
271
271
|
new (0, _chunkLFQJW4S2js.DeeplineError)(
|
|
272
|
-
|
|
272
|
+
_chunkEYL4V32Qjs.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" ? _chunkLWOYDMYCjs.resolveProjectApiKeyForBaseUrl.call(void 0, input.baseUrl) : _chunkLWOYDMYCjs.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 = _chunkLWOYDMYCjs.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
|
+
[_chunkLWOYDMYCjs.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" && _chunkEYL4V32Qjs.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 && _chunkIUDO463Ijs.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
|
+
[_chunkLWOYDMYCjs.HOST_URL_ENV]: baseUrl,
|
|
558
|
+
[_chunkLWOYDMYCjs.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 = _chunkLWOYDMYCjs.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" ? _chunkLWOYDMYCjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkLWOYDMYCjs.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
|
+
[_chunkLWOYDMYCjs.HOST_URL_ENV]: baseUrl,
|
|
668
|
+
[_chunkLWOYDMYCjs.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 = _chunkLWOYDMYCjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
699
|
+
const apiKey = _chunkLWOYDMYCjs.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 = _chunkLWOYDMYCjs.autoDetectBaseUrl.call(void 0, ).replace(/\/$/, "");
|
|
723
723
|
const reveal = args.includes("--reveal");
|
|
724
|
-
const jsonOutput =
|
|
724
|
+
const jsonOutput = _chunkIUDO463Ijs.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" ? _chunkLWOYDMYCjs.resolveProjectApiKeyForBaseUrl.call(void 0, baseUrl) : authScope === "global" ? _chunkLWOYDMYCjs.resolveGlobalApiKeyForBaseUrl.call(void 0, baseUrl) : _chunkLWOYDMYCjs.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
|
+
_chunkIUDO463Ijs.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
|
+
_chunkIUDO463Ijs.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
|
+
_chunkIUDO463Ijs.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, () => ( (_chunkLWOYDMYCjs.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
|
+
[_chunkLWOYDMYCjs.HOST_URL_ENV]: baseUrl,
|
|
891
|
+
[_chunkLWOYDMYCjs.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 = _chunkLWOYDMYCjs.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" || _chunkLWOYDMYCjs.storedHostApiKey.call(void 0, baseUrl) === apiKey) {
|
|
905
|
+
saveEnvValues(_chunkLWOYDMYCjs.featureEnvValues.call(void 0, data), baseUrl, resolvedAuthScope);
|
|
906
906
|
}
|
|
907
|
-
|
|
907
|
+
_chunkIUDO463Ijs.printCommandEnvelope.call(void 0,
|
|
908
908
|
{
|
|
909
909
|
...payload,
|
|
910
|
-
...
|
|
911
|
-
command_context:
|
|
910
|
+
..._chunkEYL4V32Qjs.detectAgentRuntime.call(void 0, ) !== "unknown" ? {
|
|
911
|
+
command_context: _chunkLWOYDMYCjs.resolveCliCommandContext.call(void 0,
|
|
912
912
|
{ baseUrl, apiKey },
|
|
913
913
|
resolvedAuthScope
|
|
914
914
|
)
|