deepline 0.3.513 → 0.3.515
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/completed-answer.ts +134 -0
- package/dist/bundling-sources/shared_libs/play-runtime/context.ts +25 -31
- package/dist/bundling-sources/shared_libs/play-runtime/durable-call-policy.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/durable-runs-rollout.ts +6 -1
- package/dist/bundling-sources/shared_libs/play-runtime/freshness-receipt-execution.ts +33 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres-pool.ts +71 -1
- package/dist/bundling-sources/shared_libs/plays/authoring-contract.ts +6 -4
- package/dist/cli/{artifacts-SZA52D3P.js → artifacts-6ONZSASU.js} +18 -18
- package/dist/cli/{artifacts-AMM4RZNI.mjs → artifacts-C3262FEY.mjs} +6 -6
- package/dist/cli/{auth-3HQ7FXPX.mjs → auth-BVCHIFKH.mjs} +5 -5
- package/dist/cli/auth-VYECQ6PI.js +43 -0
- package/dist/cli/{billing-SVFRN4BJ.js → billing-APS3ELBH.js} +82 -82
- package/dist/cli/{billing-7AIKDEQQ.mjs → billing-DUKPCJD5.mjs} +7 -7
- package/dist/cli/{chunk-K3CUVLW7.mjs → chunk-2AVO64J2.mjs} +1 -1
- package/dist/cli/{chunk-ROIFA4H7.mjs → chunk-2SG4MRCI.mjs} +6 -6
- package/dist/cli/{chunk-KINDIV44.mjs → chunk-2T6ZOAXX.mjs} +4 -4
- package/dist/cli/{chunk-D72M5LBQ.js → chunk-4FN4WVGL.js} +10 -10
- package/dist/cli/{chunk-SDD75XIU.js → chunk-4H3XE5OX.js} +6 -6
- package/dist/cli/{chunk-3UKVFI2R.js → chunk-5I2L6VMP.js} +7 -7
- package/dist/cli/{chunk-QDGUDNVR.js → chunk-5TOFI5GC.js} +7 -7
- package/dist/cli/{chunk-OD72PULZ.mjs → chunk-5YFBVXFQ.mjs} +2 -2
- package/dist/cli/{chunk-7UVKC5G4.mjs → chunk-62PFEEX3.mjs} +1 -1
- package/dist/cli/{chunk-P63SBUEW.mjs → chunk-6FM7YDHA.mjs} +1 -1
- package/dist/cli/{chunk-TWHJ4WCA.js → chunk-7TFAKDSD.js} +16 -16
- package/dist/cli/{chunk-FC6BR2OA.mjs → chunk-AC3YRA3Y.mjs} +13 -12
- package/dist/cli/{chunk-JI2LKS5V.js → chunk-BSR56POG.js} +11 -11
- package/dist/cli/{chunk-P6TG7COR.js → chunk-BX5N4YT4.js} +53 -53
- package/dist/cli/{chunk-5IZXMA2L.js → chunk-C24VEYSP.js} +17 -4
- package/dist/cli/{chunk-7NIBAJML.mjs → chunk-CB4ZU276.mjs} +2 -2
- package/dist/cli/{chunk-MPOF4Z44.js → chunk-CZLYC62O.js} +1 -1
- package/dist/cli/{chunk-Z52XVM5I.js → chunk-DEGOD6EH.js} +3 -3
- package/dist/cli/{chunk-VMLZQ3VM.js → chunk-DWASXQF6.js} +14 -14
- package/dist/cli/{chunk-LA66PYB4.mjs → chunk-EA775NLJ.mjs} +2 -2
- package/dist/cli/{chunk-UDVX7HKU.js → chunk-F6OXFG5K.js} +16 -16
- package/dist/cli/{chunk-PGHCBL5G.js → chunk-FGKQ2MVA.js} +3 -3
- package/dist/cli/{chunk-XCP75LSJ.mjs → chunk-FHJTOHSE.mjs} +1 -1
- package/dist/cli/{chunk-JNNQ53BX.mjs → chunk-FVWUNN6J.mjs} +2 -2
- package/dist/cli/{chunk-YZW4ZLU3.js → chunk-GESSUOYZ.js} +38 -23
- package/dist/cli/{chunk-5UWWZLMX.mjs → chunk-HJ5B67S3.mjs} +17 -4
- package/dist/cli/{chunk-EAQQTYJL.js → chunk-HSESQ4OG.js} +5 -5
- package/dist/cli/{chunk-PFEFK2FB.js → chunk-JMPBBVRF.js} +26 -26
- package/dist/cli/{chunk-HDDE4Y4V.js → chunk-JUCUJFBH.js} +2 -2
- package/dist/cli/{chunk-6UVAYLQG.js → chunk-LVVWOMK6.js} +2 -2
- package/dist/cli/{chunk-FLG3VIDQ.mjs → chunk-LXOMP5AZ.mjs} +5 -5
- package/dist/cli/{chunk-JA5PBN44.js → chunk-M4DZLI3T.js} +6 -6
- package/dist/cli/{chunk-PPQU263U.mjs → chunk-MMZO25CN.mjs} +2 -2
- package/dist/cli/{chunk-3WHK7WCP.mjs → chunk-N43XH6VY.mjs} +3 -3
- package/dist/cli/{chunk-ROJ55CXM.mjs → chunk-NP6FLJ75.mjs} +1 -1
- package/dist/cli/{chunk-6JNRYX65.js → chunk-NTWNM5IW.js} +2 -2
- package/dist/cli/{chunk-ZDO67LFA.mjs → chunk-ODJS43GU.mjs} +5 -5
- package/dist/cli/{chunk-P2EHYH2Q.mjs → chunk-QPA3ZG56.mjs} +1 -1
- package/dist/cli/{chunk-46QVEEXR.mjs → chunk-R5RWDO75.mjs} +1 -1
- package/dist/cli/{chunk-ZKUXTF6X.mjs → chunk-RK5V6MFG.mjs} +2 -2
- package/dist/cli/{chunk-ORQVTTTM.js → chunk-RPXW5XUC.js} +5 -5
- package/dist/cli/{chunk-B4BKATGX.mjs → chunk-T6XPF7AP.mjs} +21 -6
- package/dist/cli/{chunk-H6WD65CD.js → chunk-TRJLHTHI.js} +99 -98
- package/dist/cli/{chunk-4EGBOZ53.js → chunk-TTH5IEHD.js} +9 -9
- package/dist/cli/{chunk-5T4SZPVO.mjs → chunk-TX4OUEUU.mjs} +2 -2
- package/dist/cli/{chunk-CEWRCUSH.mjs → chunk-TYUC56PS.mjs} +23 -12
- package/dist/cli/{chunk-ADB6FD2Q.js → chunk-UBY2MSP4.js} +41 -41
- package/dist/cli/{chunk-C5KH6FDN.mjs → chunk-Z6PDSCJ3.mjs} +3 -3
- package/dist/cli/{chunk-U5QR527Y.js → chunk-Z7YEZWP3.js} +62 -51
- package/dist/cli/{chunk-Y2SIHXYS.js → chunk-ZEZAFOH3.js} +4 -4
- package/dist/cli/{chunk-WFN6SB2B.mjs → chunk-ZL4C3NPO.mjs} +1 -1
- package/dist/cli/{chunk-3SE4O52N.mjs → chunk-ZMFR4BKH.mjs} +1 -1
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-WKF5O6C4.js → csv-L63HLRNM.js} +13 -13
- package/dist/cli/{csv-56JWAO3Y.mjs → csv-NOYOCDAK.mjs} +4 -4
- package/dist/cli/{db-SENEFS45.mjs → db-637BNZ2B.mjs} +6 -6
- package/dist/cli/{db-UURETUXZ.js → db-UBQFFOTS.js} +27 -27
- package/dist/cli/describe-C7FBGVGM.js +50 -0
- package/dist/cli/{describe-R3XKAGF5.mjs → describe-KAUMYSRG.mjs} +18 -18
- package/dist/cli/{executions-BAUUWHSW.mjs → executions-NGPKKOLW.mjs} +6 -6
- package/dist/cli/{executions-WZUS3S2K.js → executions-RNOBWJ3P.js} +8 -8
- package/dist/cli/{feedback-Z6A7WMJS.js → feedback-7BHVKCY5.js} +10 -10
- package/dist/cli/{feedback-5SCDE247.mjs → feedback-NREYHFEJ.mjs} +5 -5
- package/dist/cli/{git-246MRTK7.mjs → git-DSTDRP3J.mjs} +5 -5
- package/dist/cli/git-XTEKRVO3.js +25 -0
- package/dist/cli/index.js +145 -145
- package/dist/cli/index.mjs +44 -44
- package/dist/cli/{legacy-noops-M242HT67.mjs → legacy-noops-TC7WNDQS.mjs} +6 -6
- package/dist/cli/{legacy-noops-AKETAVNI.js → legacy-noops-VTNA7T4P.js} +9 -9
- package/dist/cli/{monitors-QIHYTSKD.js → monitors-IC4NIUE5.js} +100 -100
- package/dist/cli/{monitors-N5T6PLCX.mjs → monitors-YNQ6LYCY.mjs} +7 -7
- package/dist/cli/{org-BSCPIN7Y.js → org-B47C34FY.js} +72 -72
- package/dist/cli/{org-YMDLKBVM.mjs → org-MF2UEFK4.mjs} +6 -6
- package/dist/cli/{pages-FRLPAY6I.mjs → pages-3EC54UPO.mjs} +6 -6
- package/dist/cli/{pages-BYSQBWD5.js → pages-A3JMHBHD.js} +18 -18
- package/dist/cli/{play-CMJI6RNI.mjs → play-BLFSS42Z.mjs} +18 -18
- package/dist/cli/{play-OIJAMP5P.js → play-LAEAIGU4.js} +317 -317
- package/dist/cli/{providers-KWFIH3E7.mjs → providers-PEXILFIA.mjs} +6 -6
- package/dist/cli/{providers-6Q7H2RYZ.js → providers-XNC5JF3F.js} +9 -9
- package/dist/cli/{quickstart-UZWAQ7VJ.mjs → quickstart-E2PKFV2L.mjs} +4 -4
- package/dist/cli/{quickstart-GU35UZPU.js → quickstart-XRU23BKT.js} +6 -6
- package/dist/cli/{run-AJ24G4CT.mjs → run-5QI3H7HH.mjs} +23 -23
- package/dist/cli/{run-OYOQIVBM.js → run-T7U6DRMZ.js} +41 -41
- package/dist/cli/search-A6HYC5XI.js +33 -0
- package/dist/cli/{search-2KNDV3DL.mjs → search-WLXLC3Z3.mjs} +8 -8
- package/dist/cli/{search-output-526FOJQD.js → search-output-7WXW6WZQ.js} +6 -6
- package/dist/cli/{search-output-X5TMIIA4.mjs → search-output-HGO5JVJO.mjs} +4 -4
- package/dist/cli/{secrets-QL5SMK62.js → secrets-TTGCKS7Z.js} +15 -15
- package/dist/cli/{secrets-XEOGG6TV.mjs → secrets-ZYDUC6NU.mjs} +6 -6
- package/dist/cli/{sessions-Z352OY5B.mjs → sessions-3KMK76O3.mjs} +6 -6
- package/dist/cli/sessions-5X4PTBB6.js +18 -0
- package/dist/cli/{settings-EKLYIRWJ.js → settings-LF43ODWF.js} +86 -86
- package/dist/cli/{settings-AET5AKBY.mjs → settings-YA3ZNWZA.mjs} +13 -13
- package/dist/cli/{setup-JPGTZYR2.mjs → setup-26D6ZPSI.mjs} +10 -10
- package/dist/cli/{setup-IJWDEYLG.js → setup-XBY4GXCA.js} +50 -50
- package/dist/cli/{skills-DGCK6723.mjs → skills-LYPZTDUL.mjs} +8 -8
- package/dist/cli/skills-ZA7YZBQC.js +37 -0
- package/dist/cli/{tools-7GEQLQWX.mjs → tools-5JNLULNK.mjs} +17 -17
- package/dist/cli/tools-LBDNLH4V.js +57 -0
- package/dist/cli/update-CEH2LRAC.js +35 -0
- package/dist/cli/{update-SAN6LDPT.mjs → update-UIO6RHIB.mjs} +10 -10
- package/dist/cli/{workflow-C66GOHRB.mjs → workflow-H5UVEIGG.mjs} +7 -7
- package/dist/cli/{workflow-E4NGYGGM.js → workflow-UQ2S2X42.js} +17 -17
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +107 -106
- package/dist/plays/bundle-play-file.mjs +6 -4
- 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-THCURTEC.js +0 -43
- package/dist/cli/describe-GIJAGNZM.js +0 -50
- package/dist/cli/git-D5UAIEQE.js +0 -25
- package/dist/cli/search-UZM6U4MZ.js +0 -33
- package/dist/cli/sessions-T27GUYZX.js +0 -18
- package/dist/cli/skills-MLMVPHWG.js +0 -37
- package/dist/cli/tools-5WBKZRLQ.js +0 -57
- package/dist/cli/update-JK4NLT4H.js +0 -35
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-TX4OUEUU.mjs";
|
|
6
6
|
import {
|
|
7
7
|
resolveBaseUrlOnly
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZMFR4BKH.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/commands/git.ts
|
|
11
11
|
function shellQuote(value) {
|
|
@@ -4,20 +4,21 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkF6OXFG5Kjs = require('./chunk-F6OXFG5K.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var _chunkU5QR527Yjs = require('./chunk-U5QR527Y.js');
|
|
11
10
|
|
|
11
|
+
var _chunkZ7YEZWP3js = require('./chunk-Z7YEZWP3.js');
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var _chunk3UKVFI2Rjs = require('./chunk-3UKVFI2R.js');
|
|
15
14
|
|
|
15
|
+
var _chunk5I2L6VMPjs = require('./chunk-5I2L6VMP.js');
|
|
16
16
|
|
|
17
|
-
var _chunkPGHCBL5Gjs = require('./chunk-PGHCBL5G.js');
|
|
18
17
|
|
|
18
|
+
var _chunkFGKQ2MVAjs = require('./chunk-FGKQ2MVA.js');
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
|
|
21
|
+
var _chunkZEZAFOH3js = require('./chunk-ZEZAFOH3.js');
|
|
21
22
|
|
|
22
23
|
// src/cli/compatibility-catalog.ts
|
|
23
24
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -44,7 +45,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
44
45
|
async function reportAutoUpdateEvent(input) {
|
|
45
46
|
let apiKey = "";
|
|
46
47
|
try {
|
|
47
|
-
apiKey =
|
|
48
|
+
apiKey = _chunkFGKQ2MVAjs.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
48
49
|
} catch (e2) {
|
|
49
50
|
return;
|
|
50
51
|
}
|
|
@@ -60,15 +61,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
60
61
|
headers: {
|
|
61
62
|
Authorization: `Bearer ${apiKey}`,
|
|
62
63
|
"Content-Type": "application/json",
|
|
63
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
64
|
+
"User-Agent": `deepline-ts-sdk/${_chunkZEZAFOH3js.SDK_VERSION}`,
|
|
64
65
|
"X-Deepline-Client-Family": "sdk",
|
|
65
66
|
"X-Deepline-CLI-Family": "sdk",
|
|
66
|
-
"X-Deepline-CLI-Version":
|
|
67
|
-
"X-Deepline-SDK-Version":
|
|
67
|
+
"X-Deepline-CLI-Version": _chunkZEZAFOH3js.SDK_VERSION,
|
|
68
|
+
"X-Deepline-SDK-Version": _chunkZEZAFOH3js.SDK_VERSION
|
|
68
69
|
},
|
|
69
70
|
body: JSON.stringify({
|
|
70
71
|
event: input.event,
|
|
71
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
72
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunkZEZAFOH3js.SDK_VERSION,
|
|
72
73
|
target_version: input.response.latest,
|
|
73
74
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
74
75
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -87,13 +88,13 @@ function envTruthy(name) {
|
|
|
87
88
|
return value === "1" || value === "true" || value === "yes";
|
|
88
89
|
}
|
|
89
90
|
function shouldSkipSelfUpdate(policy) {
|
|
90
|
-
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !
|
|
91
|
+
return policy === "off" || envTruthy("DEEPLINE_SKIP_SELF_UPDATE") || envTruthy("DEEPLINE_NO_AUTO_UPDATE") || envTruthy("DEEPLINE_SKIP_SDK_AUTO_UPDATE") || envTruthy("DEEPLINE_DISABLE_AUTO_UPDATE") || !_chunkF6OXFG5Kjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkZ7YEZWP3js.isCiEnvironment.call(void 0, );
|
|
91
92
|
}
|
|
92
93
|
function isDowngradeAutoUpdateResponse(response) {
|
|
93
94
|
const target = _optionalChain([response, 'optionalAccess', _17 => _17.latest, 'optionalAccess', _18 => _18.trim, 'call', _19 => _19()]);
|
|
94
|
-
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) ||
|
|
95
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunkZEZAFOH3js.SDK_VERSION;
|
|
95
96
|
if (!target) return false;
|
|
96
|
-
return
|
|
97
|
+
return _chunkF6OXFG5Kjs.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
97
98
|
}
|
|
98
99
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
99
100
|
return new Promise((resolve) => {
|
|
@@ -146,7 +147,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
146
147
|
}
|
|
147
148
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
148
149
|
const target = response.latest;
|
|
149
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
150
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunkZEZAFOH3js.SDK_VERSION;
|
|
150
151
|
process.stderr.write(
|
|
151
152
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
152
153
|
`
|
|
@@ -154,21 +155,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
154
155
|
return false;
|
|
155
156
|
}
|
|
156
157
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
157
|
-
const plan =
|
|
158
|
+
const plan = _chunkF6OXFG5Kjs.resolveUpdatePlan.call(void 0, {
|
|
158
159
|
packageSpec,
|
|
159
160
|
requireVerifiedNpmOwnership: true,
|
|
160
161
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
161
162
|
});
|
|
162
|
-
if (!
|
|
163
|
+
if (!_chunkF6OXFG5Kjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
163
164
|
return false;
|
|
164
165
|
}
|
|
165
166
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
166
167
|
deferredAutoUpdate = async () => {
|
|
167
168
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
168
169
|
};
|
|
169
|
-
if (
|
|
170
|
+
if (_chunk5I2L6VMPjs.isJsonOutputMode.call(void 0, )) {
|
|
170
171
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
171
|
-
|
|
172
|
+
_chunk5I2L6VMPjs.addJsonNotice.call(void 0, {
|
|
172
173
|
code: "sdk_update_queued",
|
|
173
174
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
174
175
|
});
|
|
@@ -181,7 +182,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
181
182
|
return true;
|
|
182
183
|
}
|
|
183
184
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
184
|
-
if (!
|
|
185
|
+
if (!_chunkF6OXFG5Kjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
185
186
|
const autoUpdate = response.auto_update;
|
|
186
187
|
const label = _optionalChain([autoUpdate, 'optionalAccess', _32 => _32.reason]) === "rollback_forced" ? "has a server rollback pending and needs the latest rollback-aware CLI" : _optionalChain([autoUpdate, 'optionalAccess', _33 => _33.reason]) === "deprecated" ? "is deprecated and will update automatically" : _optionalChain([autoUpdate, 'optionalAccess', _34 => _34.required]) ? "requires an update" : "has an update available and will update automatically";
|
|
187
188
|
process.stderr.write(
|
|
@@ -194,7 +195,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
194
195
|
event: "started",
|
|
195
196
|
installKind: plan.kind
|
|
196
197
|
});
|
|
197
|
-
const updateResult = await
|
|
198
|
+
const updateResult = await _chunkF6OXFG5Kjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
198
199
|
if (updateResult.status === "skipped_previous_failure") {
|
|
199
200
|
void reportAutoUpdateEvent({
|
|
200
201
|
baseUrl,
|
|
@@ -231,6 +232,20 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
231
232
|
installKind: plan.kind,
|
|
232
233
|
exitCode: 0
|
|
233
234
|
});
|
|
235
|
+
try {
|
|
236
|
+
await _chunkZ7YEZWP3js.syncSdkSkillsIfNeeded.call(void 0, baseUrl, {
|
|
237
|
+
mode: "detached",
|
|
238
|
+
update: _optionalChain([response, 'access', _36 => _36.skills, 'optionalAccess', _37 => _37.requires_cli_update]) ? void 0 : response.skills,
|
|
239
|
+
afterCliUpdate: {
|
|
240
|
+
sidecarPath: plan.kind === "python-sidecar" ? plan.sidecarPath : void 0
|
|
241
|
+
}
|
|
242
|
+
});
|
|
243
|
+
} catch (error) {
|
|
244
|
+
process.stderr.write(
|
|
245
|
+
`Deepline SDK/CLI updated, but could not start the skills refresh: ${error instanceof Error ? error.message : String(error)}
|
|
246
|
+
`
|
|
247
|
+
);
|
|
248
|
+
}
|
|
234
249
|
const updateSummary = response.update_summary ? `
|
|
235
250
|
What changed in ${response.update_summary.version}: ${response.update_summary.summary}` : "";
|
|
236
251
|
process.stderr.write(
|
|
@@ -245,7 +260,7 @@ var _crypto = require('crypto');
|
|
|
245
260
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
246
261
|
var activeToolExecuteCommand = null;
|
|
247
262
|
function progressLine(line) {
|
|
248
|
-
if (!
|
|
263
|
+
if (!_chunk5I2L6VMPjs.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
249
264
|
}
|
|
250
265
|
function beginToolExecuteCommand() {
|
|
251
266
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|
|
@@ -258,7 +273,7 @@ function beginToolExecuteCommand() {
|
|
|
258
273
|
return invocationId;
|
|
259
274
|
}
|
|
260
275
|
function getToolExecuteInvocationId() {
|
|
261
|
-
return _nullishCoalesce(_optionalChain([activeToolExecuteCommand, 'optionalAccess',
|
|
276
|
+
return _nullishCoalesce(_optionalChain([activeToolExecuteCommand, 'optionalAccess', _38 => _38.invocationId]), () => ( null));
|
|
262
277
|
}
|
|
263
278
|
async function runToolExecuteStage(stage, action) {
|
|
264
279
|
const command = activeToolExecuteCommand;
|
|
@@ -271,7 +286,7 @@ async function runToolExecuteStage(stage, action) {
|
|
|
271
286
|
`[tool call ${command.invocationId}] ${stage} still running (${elapsedMs()}ms)`
|
|
272
287
|
);
|
|
273
288
|
}, TOOL_EXECUTE_PROGRESS_INTERVAL_MS);
|
|
274
|
-
_optionalChain([progressTimer, 'access',
|
|
289
|
+
_optionalChain([progressTimer, 'access', _39 => _39.unref, 'optionalCall', _40 => _40()]);
|
|
275
290
|
try {
|
|
276
291
|
const result = await action();
|
|
277
292
|
if (result === false) {
|
|
@@ -866,10 +866,23 @@ Authoring rules:
|
|
|
866
866
|
rows.peek(n), rows.materialize(n), or for await. Array methods on a
|
|
867
867
|
handle fail [[cli:plays check]][[mcp:deepline_check_play]].
|
|
868
868
|
Tool calls: deepline.tools.execute({ id, tool, input, description,
|
|
869
|
-
staleAfterSeconds }).
|
|
870
|
-
0
|
|
871
|
-
|
|
872
|
-
completed
|
|
869
|
+
staleAfterSeconds }). staleAfterSeconds decides whether a finished answer
|
|
870
|
+
may be reused. 0 is a fresh call (so is leaving it out in editions before
|
|
871
|
+
11; edition 11 requires you to choose). A positive number accepts a
|
|
872
|
+
completed, successful answer to the same request (same workspace,
|
|
873
|
+
credential and tool version) up to that many seconds old, and otherwise
|
|
874
|
+
runs the tool. null accepts an answer of any age. A reused answer makes no
|
|
875
|
+
provider call and no provider charge; Play compute still applies. This
|
|
876
|
+
holds for every tool: a positive window on a write, send or purchase
|
|
877
|
+
skips a repeat of it on purpose, so use 0 for a repeat and re-read after a
|
|
878
|
+
write with 0. A repeat is skipped only after an earlier call has finished:
|
|
879
|
+
overlapping calls both run, so a send that must happen once needs a
|
|
880
|
+
provider idempotency key. Failed, empty and unfinished answers are never
|
|
881
|
+
reused, so a retry runs again. Resuming a run returns its own finished calls whatever
|
|
882
|
+
the window. Provider idempotency keys, HTTP caches and in-run
|
|
883
|
+
deduplication are separate. result._metadata.execution.freshness shows
|
|
884
|
+
source (executed, operation_recovery, reusable_result or
|
|
885
|
+
live_observation), resultAgeMs and completedAt.
|
|
873
886
|
Read
|
|
874
887
|
results the way [[cli:describe]][[mcp:deepline_describe_tool]] lists them:
|
|
875
888
|
result.fields.<name>.value for a value whose meaning is known, also by
|
|
@@ -1,16 +1,16 @@
|
|
|
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 _chunk5TOFI5GCjs = require('./chunk-5TOFI5GC.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkFGKQ2MVAjs = require('./chunk-FGKQ2MVA.js');
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
|
-
var DeeplineClient2 = class extends
|
|
10
|
+
var DeeplineClient2 = class extends _chunk5TOFI5GCjs.DeeplineClient {
|
|
11
11
|
constructor(options) {
|
|
12
|
-
const config =
|
|
13
|
-
super(config, new (0,
|
|
12
|
+
const config = _chunkFGKQ2MVAjs.resolveConfig.call(void 0, options);
|
|
13
|
+
super(config, new (0, _chunkFGKQ2MVAjs.HttpClient)(config), _optionalChain([options, 'optionalAccess', _ => _.timeout]));
|
|
14
14
|
}
|
|
15
15
|
};
|
|
16
16
|
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunk5I2L6VMPjs = require('./chunk-5I2L6VMP.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkFGKQ2MVAjs = require('./chunk-FGKQ2MVA.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 } = _chunk5I2L6VMPjs.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
|
+
_chunk5I2L6VMPjs.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 } = _chunk5I2L6VMPjs.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
|
+
_chunk5I2L6VMPjs.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 } = _chunk5I2L6VMPjs.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
|
+
_chunk5I2L6VMPjs.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 } = _chunk5I2L6VMPjs.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 } = _chunk5I2L6VMPjs.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
|
+
_chunk5I2L6VMPjs.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 } = _chunk5I2L6VMPjs.getAuthedHttpClient.call(void 0, );
|
|
224
224
|
const payload = await http.get(
|
|
225
225
|
`/api/v2/play-projects/${encodeURIComponent(id)}`
|
|
226
226
|
);
|
|
227
|
-
|
|
227
|
+
_chunk5I2L6VMPjs.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 } = _chunk5I2L6VMPjs.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
|
+
_chunk5I2L6VMPjs.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 } = _chunk5I2L6VMPjs.getAuthedHttpClient.call(void 0, );
|
|
268
268
|
await http.delete(`/api/v2/play-projects/${encodeURIComponent(id)}`);
|
|
269
|
-
|
|
269
|
+
_chunk5I2L6VMPjs.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 = _chunkFGKQ2MVAjs.resolveBaseUrlOnly.call(void 0, );
|
|
290
290
|
const connectUrl = `${baseUrl.replace(/\/$/, "")}/api/v2/github/connect`;
|
|
291
|
-
const opened =
|
|
292
|
-
|
|
291
|
+
const opened = _chunk5I2L6VMPjs.openInBrowser.call(void 0, connectUrl);
|
|
292
|
+
_chunk5I2L6VMPjs.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 } = _chunk5I2L6VMPjs.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
|
+
_chunk5I2L6VMPjs.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 } = _chunk5I2L6VMPjs.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
|
+
_chunk5I2L6VMPjs.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 } = _chunk5I2L6VMPjs.getAuthedHttpClient.call(void 0, );
|
|
391
391
|
const payload = await http.post(`/api/v2/deployments/${encodeURIComponent(id)}/cancel`, {});
|
|
392
|
-
|
|
392
|
+
_chunk5I2L6VMPjs.printCommandEnvelope.call(void 0,
|
|
393
393
|
{
|
|
394
394
|
cancelled: payload.cancelled,
|
|
395
395
|
deployment: payload.deployment,
|
|
@@ -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 _chunk5I2L6VMPjs = require('./chunk-5I2L6VMP.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
|
+
_chunk5I2L6VMPjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkZ7YEZWP3js = require('./chunk-Z7YEZWP3.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/npm-script-policy.ts
|
|
6
6
|
var _child_process = require('child_process');
|
|
@@ -13,7 +13,7 @@ function npmSupportsAllowScripts(version) {
|
|
|
13
13
|
}
|
|
14
14
|
function readNpmVersion(env) {
|
|
15
15
|
try {
|
|
16
|
-
const plan =
|
|
16
|
+
const plan = _chunkZ7YEZWP3js.resolveShellSpawn.call(void 0, "npm", ["--version"], process.platform, env);
|
|
17
17
|
const result = _child_process.spawnSync.call(void 0, plan.command, plan.args, {
|
|
18
18
|
encoding: "utf8",
|
|
19
19
|
env,
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
npmSupportsAllowScripts,
|
|
3
3
|
readNpmVersion
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FHJTOHSE.mjs";
|
|
5
5
|
import {
|
|
6
6
|
runSkillsCommand
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-2T6ZOAXX.mjs";
|
|
8
8
|
import {
|
|
9
9
|
resolveShellSpawn
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TYUC56PS.mjs";
|
|
11
11
|
import {
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TX4OUEUU.mjs";
|
|
14
14
|
import {
|
|
15
15
|
autoDetectBaseUrl
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZMFR4BKH.mjs";
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
import { spawn, spawnSync } from "child_process";
|
|
@@ -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 _chunkJUCUJFBHjs = require('./chunk-JUCUJFBH.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkZ7YEZWP3js = require('./chunk-Z7YEZWP3.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -18,11 +18,11 @@ 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") _chunkZ7YEZWP3js.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
22
|
+
const compatibility = await _chunkJUCUJFBHjs.traceCliSpan.call(void 0,
|
|
23
23
|
"cli.sdk_compatibility",
|
|
24
24
|
{ baseUrl, command: "plays run" },
|
|
25
|
-
() =>
|
|
25
|
+
() => _chunkZ7YEZWP3js.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
26
26
|
command: "plays run",
|
|
27
27
|
persistCache: maintenancePolicy !== "off",
|
|
28
28
|
signal
|
|
@@ -30,7 +30,7 @@ async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configure
|
|
|
30
30
|
);
|
|
31
31
|
_optionalChain([signal, 'optionalAccess', _3 => _3.throwIfAborted, 'call', _4 => _4()]);
|
|
32
32
|
if (compatibility.error) throw compatibility.error;
|
|
33
|
-
|
|
33
|
+
_chunkZ7YEZWP3js.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
34
34
|
quietAdvisory: true
|
|
35
35
|
});
|
|
36
36
|
}
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-F6QV42MC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6FM7YDHA.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-N4TR6QRI.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-TX4OUEUU.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
rejectRestrictedFeedback
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZL4C3NPO.mjs";
|
|
4
4
|
import {
|
|
5
5
|
getAuthedHttpClient,
|
|
6
6
|
printCommandEnvelope
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TX4OUEUU.mjs";
|
|
8
8
|
import {
|
|
9
9
|
agentSessionIdFromEnvironment
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-62PFEEX3.mjs";
|
|
11
11
|
|
|
12
12
|
// src/cli/commands/sessions.ts
|
|
13
13
|
import {
|
|
@@ -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 _chunk5I2L6VMPjs = require('./chunk-5I2L6VMP.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
|
+
_chunk5I2L6VMPjs.printCommandEnvelope.call(void 0,
|
|
61
61
|
{ ok: false, code, exitCode: 2, message },
|
|
62
62
|
{ json: true }
|
|
63
63
|
);
|
|
@@ -3,18 +3,18 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-RK5V6MFG.mjs";
|
|
7
7
|
import {
|
|
8
8
|
resolveSdkCliFailureExitCode
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5YFBVXFQ.mjs";
|
|
10
10
|
import {
|
|
11
11
|
errorToJsonPayload,
|
|
12
12
|
printCommandEnvelope
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TX4OUEUU.mjs";
|
|
14
14
|
import {
|
|
15
15
|
resolveConfig,
|
|
16
16
|
sdkCliStateDirPath
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZMFR4BKH.mjs";
|
|
18
18
|
|
|
19
19
|
// src/cli/commands/search.ts
|
|
20
20
|
import { Option } from "commander";
|
|
@@ -136,7 +136,7 @@ async function runSearch(queryInputs, options, types, exclude = []) {
|
|
|
136
136
|
}
|
|
137
137
|
const client = new DeeplineClient();
|
|
138
138
|
const json = options.json === true;
|
|
139
|
-
const renderer = json ? void 0 : await import("./search-output-
|
|
139
|
+
const renderer = json ? void 0 : await import("./search-output-HGO5JVJO.mjs");
|
|
140
140
|
const searches = [];
|
|
141
141
|
const chunks = [];
|
|
142
142
|
const refs = /* @__PURE__ */ new Map();
|
|
@@ -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.515",
|
|
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."
|