deepline 0.3.491 → 0.3.492
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/queue-health.ts +9 -0
- package/dist/bundling-sources/shared_libs/observability/queue-item-connectors.ts +1 -0
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +18 -0
- package/dist/bundling-sources/shared_libs/play-runtime/output-size-limits.ts +5 -3
- package/dist/bundling-sources/shared_libs/play-runtime/runtime-api.ts +293 -110
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +104 -2
- package/dist/bundling-sources/shared_libs/product-notifications/configuration-draft.ts +7 -2
- package/dist/bundling-sources/shared_libs/product-notifications/configuration.ts +4 -0
- package/dist/bundling-sources/shared_libs/product-notifications/content.ts +13 -0
- package/dist/bundling-sources/shared_libs/product-notifications/email.ts +49 -10
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +22 -0
- package/dist/bundling-sources/shared_libs/product-notifications/slack-delivery.ts +6 -1
- package/dist/cli/{auth-FXAC472Y.mjs → auth-4I6QY5WX.mjs} +5 -5
- package/dist/cli/auth-7BCLZU6K.js +43 -0
- package/dist/cli/{billing-PDOA3KZ3.js → billing-2H4GOJZY.js} +79 -79
- package/dist/cli/{billing-UM4LE33K.mjs → billing-4F6L4JSI.mjs} +6 -6
- package/dist/cli/{chunk-ORKLMANE.mjs → chunk-3BRDP4UP.mjs} +1 -1
- package/dist/cli/{chunk-AEKJZJ4R.js → chunk-3IBKEOL4.js} +4 -4
- package/dist/cli/{chunk-TH7JLR5D.js → chunk-3TISK5RQ.js} +6 -6
- package/dist/cli/{chunk-I64PYCTB.js → chunk-42Z6VC2Q.js} +2 -2
- package/dist/cli/{chunk-QBOE5LEH.mjs → chunk-4GJIJHRQ.mjs} +1 -1
- package/dist/cli/{chunk-3FMU6F6E.js → chunk-4RB74KJX.js} +10 -10
- package/dist/cli/{chunk-MAM6ZOVS.mjs → chunk-6YO4OJPM.mjs} +4 -4
- package/dist/cli/{chunk-ZEZ3CZ3X.js → chunk-B2JE3HD6.js} +3 -3
- package/dist/cli/{chunk-5KMGKG4B.js → chunk-BDUFZSUL.js} +8 -8
- package/dist/cli/{chunk-74H5OTRM.js → chunk-DJOLMS2A.js} +1 -1
- package/dist/cli/{chunk-VC3SH4QW.mjs → chunk-DVGCPOEA.mjs} +4 -4
- package/dist/cli/{chunk-B2TXKEED.js → chunk-E47VAVAR.js} +5 -5
- package/dist/cli/{chunk-NUOKAKZW.mjs → chunk-EANFUHRM.mjs} +1 -1
- package/dist/cli/{chunk-HNG2U3IG.js → chunk-EFFHRXKB.js} +2 -2
- package/dist/cli/{chunk-WCWVXN3R.mjs → chunk-F6EQWY4E.mjs} +2 -2
- package/dist/cli/{chunk-IIO7UOVW.mjs → chunk-FFOJRD53.mjs} +1 -1
- package/dist/cli/{chunk-MN6DCV63.js → chunk-FPLN7PHP.js} +5 -5
- package/dist/cli/{chunk-CFPFTS3A.mjs → chunk-GDSZWTJK.mjs} +10 -10
- package/dist/cli/{chunk-27MRSV6O.js → chunk-HFEJ7JJT.js} +26 -26
- package/dist/cli/{chunk-ZX2FXZJN.js → chunk-JHBRJDUC.js} +7 -7
- package/dist/cli/{chunk-SUMKWA53.js → chunk-JJAHWKJ2.js} +53 -53
- package/dist/cli/{chunk-LMG7O6XJ.mjs → chunk-LCCFGSV7.mjs} +2 -2
- package/dist/cli/{chunk-3K4IAV7I.mjs → chunk-MJFVF5AW.mjs} +2 -2
- package/dist/cli/{chunk-EPD7NSDJ.mjs → chunk-MPITIXW4.mjs} +1 -1
- package/dist/cli/{chunk-HSJK6EMU.mjs → chunk-MQ2LQOAM.mjs} +3 -3
- package/dist/cli/{chunk-RFSXXDH7.js → chunk-NBL6JMIY.js} +16 -16
- package/dist/cli/{chunk-X7YOVJBC.js → chunk-NF7NUKWF.js} +37 -37
- package/dist/cli/{chunk-SJOHQ2WW.js → chunk-O2FB42N2.js} +53 -53
- package/dist/cli/{chunk-X75ONMDJ.mjs → chunk-O65HDVA7.mjs} +2 -2
- package/dist/cli/{chunk-6UARNRXT.js → chunk-OGNIB64W.js} +3 -3
- package/dist/cli/{chunk-YV4DP6KQ.mjs → chunk-OKHBAAJG.mjs} +2 -2
- package/dist/cli/{chunk-TMAS3WH3.js → chunk-OTDX4A4W.js} +21 -21
- package/dist/cli/{chunk-2MW6TGNZ.mjs → chunk-OTUT3XTX.mjs} +4 -4
- package/dist/cli/{chunk-PIPEPCRL.mjs → chunk-PIC6M4X3.mjs} +1 -1
- package/dist/cli/{chunk-CRBBGKRH.js → chunk-Q3CCCTRQ.js} +9 -9
- package/dist/cli/{chunk-KGJVDR4Q.mjs → chunk-R5MP3CIY.mjs} +2 -2
- package/dist/cli/{chunk-S4CYM4EC.mjs → chunk-RC366IJS.mjs} +4 -4
- package/dist/cli/{chunk-Q7G7CU4W.js → chunk-SE23YSBK.js} +3 -3
- package/dist/cli/{chunk-IG3GSBBE.js → chunk-TVUE4CPW.js} +7 -7
- package/dist/cli/{chunk-OYJTLEB4.mjs → chunk-UUH4GQRL.mjs} +1 -1
- package/dist/cli/{chunk-DUFRH43S.js → chunk-W4FEX5ZF.js} +94 -94
- package/dist/cli/{chunk-OLHWZM4A.mjs → chunk-Y7QCMOGZ.mjs} +5 -5
- package/dist/cli/{chunk-3WRWPNHE.mjs → chunk-YOCEY4EI.mjs} +5 -5
- package/dist/cli/{chunk-H6UIS36S.mjs → chunk-YVOYZPMY.mjs} +2 -2
- package/dist/cli/{chunk-6PMM7VJN.mjs → chunk-ZCKUNXXR.mjs} +1 -1
- package/dist/cli/{chunk-BCKIBVEJ.js → chunk-ZDTPSVGF.js} +7 -7
- package/dist/cli/{csv-IGPAPAES.js → csv-JGJNDRSA.js} +13 -13
- package/dist/cli/{csv-RNMQHECI.mjs → csv-VGXGV7YM.mjs} +4 -4
- package/dist/cli/{db-CKMVVGXJ.mjs → db-OYG27ZBM.mjs} +6 -6
- package/dist/cli/{db-32OXM3TO.js → db-W52WJ6E5.js} +27 -27
- package/dist/cli/{describe-QR7I3VOF.mjs → describe-FIXCRO5N.mjs} +17 -17
- package/dist/cli/describe-G3O6OUBG.js +50 -0
- package/dist/cli/describe-core.d.mts +2 -2
- package/dist/cli/describe-core.d.ts +2 -2
- package/dist/cli/{executions-S4M4JMCU.mjs → executions-EVE4KUGL.mjs} +6 -6
- package/dist/cli/{executions-PCZS7B2M.js → executions-LAJHZGPY.js} +8 -8
- package/dist/cli/{feedback-FGUJVCBS.mjs → feedback-75QB7KVG.mjs} +4 -4
- package/dist/cli/{feedback-6EGKPZ3U.js → feedback-ZABCN7RT.js} +8 -8
- package/dist/cli/git-QBAR46NW.js +25 -0
- package/dist/cli/{git-LR4ARG5H.mjs → git-QIFEYQGY.mjs} +5 -5
- package/dist/cli/index.js +137 -137
- package/dist/cli/index.mjs +40 -40
- package/dist/cli/{legacy-noops-VX4JEQR6.js → legacy-noops-2TBIAMCM.js} +8 -8
- package/dist/cli/{legacy-noops-S37PJ7OJ.mjs → legacy-noops-PNTWBBGY.mjs} +5 -5
- package/dist/cli/{monitors-H3AX6CZG.mjs → monitors-LOHUYJEI.mjs} +7 -7
- package/dist/cli/{monitors-ADASJI72.js → monitors-UKBOEGBS.js} +91 -91
- package/dist/cli/{org-ZRJ3C56J.js → org-E7A6QLBW.js} +72 -72
- package/dist/cli/{org-D3F5LUDW.mjs → org-JRUKUOUF.mjs} +6 -6
- package/dist/cli/{pages-5TKO3644.js → pages-EUDFFLLD.js} +17 -17
- package/dist/cli/{pages-PSHU366M.mjs → pages-K76HA473.mjs} +6 -6
- package/dist/cli/{play-AUDDK7XB.mjs → play-DG2N66SV.mjs} +17 -17
- package/dist/cli/{play-VDAETQDI.js → play-UWHNUJRA.js} +312 -312
- package/dist/cli/{providers-IURPWRWD.js → providers-DZX6TTC6.js} +9 -9
- package/dist/cli/{providers-X7YMZSKQ.mjs → providers-RUTTPUZD.mjs} +6 -6
- package/dist/cli/{quickstart-6AGWVFNX.mjs → quickstart-RGZZN2YE.mjs} +4 -4
- package/dist/cli/{quickstart-Y6GFXLDV.js → quickstart-U4NMD7KX.js} +6 -6
- package/dist/cli/{run-TQFGOXNT.js → run-5UNF4FHG.js} +36 -36
- package/dist/cli/{run-TG7J45NS.mjs → run-MOJWQYFQ.mjs} +22 -22
- package/dist/cli/search-3DAEJL6S.js +32 -0
- package/dist/cli/{search-3G4J2GC6.mjs → search-5B3ZDU7H.mjs} +7 -7
- package/dist/cli/{search-output-ZGNHDCLL.mjs → search-output-QS4IWWHA.mjs} +4 -4
- package/dist/cli/{search-output-NPZICK5C.js → search-output-VQWJS3FN.js} +6 -6
- package/dist/cli/{secrets-KTTHT4ZG.js → secrets-S3PJMEAC.js} +15 -15
- package/dist/cli/{secrets-EAWJBRUD.mjs → secrets-V5XVDBIS.mjs} +6 -6
- package/dist/cli/{sessions-D4Q3LCEQ.mjs → sessions-5V3X24XI.mjs} +5 -5
- package/dist/cli/{sessions-S4YVBPAW.js → sessions-Y5QMEZ3D.js} +6 -6
- package/dist/cli/{settings-BAK3VOWW.js → settings-3U6RRO5F.js} +78 -78
- package/dist/cli/{settings-JUORW6NL.mjs → settings-LHZYY5PT.mjs} +11 -11
- package/dist/cli/{setup-AXFGCXJE.mjs → setup-AJLWXYAN.mjs} +9 -9
- package/dist/cli/{setup-NJPHTW32.js → setup-MLLIGO2S.js} +49 -49
- package/dist/cli/{skills-SKJVDJEF.mjs → skills-5O2MUWKK.mjs} +7 -7
- package/dist/cli/skills-BBLIML5M.js +36 -0
- package/dist/cli/{tools-63THJVJZ.mjs → tools-PWNMI5CD.mjs} +16 -16
- package/dist/cli/tools-X5SQXUMM.js +57 -0
- package/dist/cli/update-AEJ2ZSZQ.js +34 -0
- package/dist/cli/{update-KSID5F74.mjs → update-SXT4QW7S.mjs} +9 -9
- package/dist/cli/{workflow-BLSMWBKW.js → workflow-3WTF5IYT.js} +17 -17
- package/dist/cli/{workflow-C4B54X2Z.mjs → workflow-KPRM6ARO.mjs} +7 -7
- package/dist/{client-CQgGFxAH.d.ts → client-Cb1ej1Vr.d.ts} +1 -1
- package/dist/{client-core-BUNjKBKq.d.ts → client-core-BmVs6SP0.d.ts} +66 -2
- package/dist/{client-core-DMvHWjub.d.mts → client-core-CoBTvsXG.d.mts} +66 -2
- package/dist/{client-B4R1scm2.d.mts → client-vWpbLNCB.d.mts} +1 -1
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +9 -9
- package/dist/index.mjs +6 -6
- package/dist/install-integrity.json +102 -102
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/run-request.d.mts +1 -1
- package/dist/plays/run-request.d.ts +1 -1
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.d.mts +2 -2
- package/dist/server.d.ts +2 -2
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-QIDL3YCW.js +0 -43
- package/dist/cli/describe-67GMIEIO.js +0 -50
- package/dist/cli/git-PIH5Z5LN.js +0 -25
- package/dist/cli/search-VC43NUY7.js +0 -32
- package/dist/cli/skills-4NQZISNK.js +0 -36
- package/dist/cli/tools-BAHK33FQ.js +0 -57
- package/dist/cli/update-EMIGRGJ7.js +0 -34
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FFOJRD53.mjs";
|
|
4
4
|
import {
|
|
5
5
|
HttpClient,
|
|
6
6
|
resolveConfig
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-PIC6M4X3.mjs";
|
|
8
8
|
|
|
9
9
|
// src/client.ts
|
|
10
10
|
var DeeplineClient2 = class extends DeeplineClient {
|
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkNBL6JMIYjs = require('./chunk-NBL6JMIY.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkO2FB42N2js = require('./chunk-O2FB42N2.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkZDTPSVGFjs = require('./chunk-ZDTPSVGF.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
var
|
|
17
|
+
var _chunkB2JE3HD6js = require('./chunk-B2JE3HD6.js');
|
|
18
18
|
|
|
19
19
|
|
|
20
|
-
var
|
|
20
|
+
var _chunk3IBKEOL4js = require('./chunk-3IBKEOL4.js');
|
|
21
21
|
|
|
22
22
|
// src/cli/compatibility-catalog.ts
|
|
23
23
|
var readers = /* @__PURE__ */ new WeakMap();
|
|
@@ -44,7 +44,7 @@ function trustedAutoUpdateRegistryUrl(baseUrl) {
|
|
|
44
44
|
async function reportAutoUpdateEvent(input) {
|
|
45
45
|
let apiKey = "";
|
|
46
46
|
try {
|
|
47
|
-
apiKey =
|
|
47
|
+
apiKey = _chunkB2JE3HD6js.resolveApiKeyForBaseUrl.call(void 0, input.baseUrl);
|
|
48
48
|
} catch (e2) {
|
|
49
49
|
return;
|
|
50
50
|
}
|
|
@@ -60,15 +60,15 @@ async function reportAutoUpdateEvent(input) {
|
|
|
60
60
|
headers: {
|
|
61
61
|
Authorization: `Bearer ${apiKey}`,
|
|
62
62
|
"Content-Type": "application/json",
|
|
63
|
-
"User-Agent": `deepline-ts-sdk/${
|
|
63
|
+
"User-Agent": `deepline-ts-sdk/${_chunk3IBKEOL4js.SDK_VERSION}`,
|
|
64
64
|
"X-Deepline-Client-Family": "sdk",
|
|
65
65
|
"X-Deepline-CLI-Family": "sdk",
|
|
66
|
-
"X-Deepline-CLI-Version":
|
|
67
|
-
"X-Deepline-SDK-Version":
|
|
66
|
+
"X-Deepline-CLI-Version": _chunk3IBKEOL4js.SDK_VERSION,
|
|
67
|
+
"X-Deepline-SDK-Version": _chunk3IBKEOL4js.SDK_VERSION
|
|
68
68
|
},
|
|
69
69
|
body: JSON.stringify({
|
|
70
70
|
event: input.event,
|
|
71
|
-
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) ||
|
|
71
|
+
current_version: _optionalChain([input, 'access', _4 => _4.response, 'access', _5 => _5.current, 'optionalAccess', _6 => _6.trim, 'call', _7 => _7()]) || _chunk3IBKEOL4js.SDK_VERSION,
|
|
72
72
|
target_version: input.response.latest,
|
|
73
73
|
reason: _optionalChain([input, 'access', _8 => _8.response, 'access', _9 => _9.auto_update, 'optionalAccess', _10 => _10.reason]),
|
|
74
74
|
command: _nullishCoalesce(input.response.command, () => ( null)),
|
|
@@ -87,13 +87,13 @@ function envTruthy(name) {
|
|
|
87
87
|
return value === "1" || value === "true" || value === "yes";
|
|
88
88
|
}
|
|
89
89
|
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") || !
|
|
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") || !_chunkNBL6JMIYjs.shouldRunCliAutoUpdate.call(void 0, ) || _chunkO2FB42N2js.isCiEnvironment.call(void 0, );
|
|
91
91
|
}
|
|
92
92
|
function isDowngradeAutoUpdateResponse(response) {
|
|
93
93
|
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()]) ||
|
|
94
|
+
const current = _optionalChain([response, 'optionalAccess', _20 => _20.current, 'optionalAccess', _21 => _21.trim, 'call', _22 => _22()]) || _chunk3IBKEOL4js.SDK_VERSION;
|
|
95
95
|
if (!target) return false;
|
|
96
|
-
return
|
|
96
|
+
return _chunkNBL6JMIYjs.compareUpdateVersions.call(void 0, target, current) < 0;
|
|
97
97
|
}
|
|
98
98
|
function relaunchCurrentCommand(plan, runtime = {}) {
|
|
99
99
|
return new Promise((resolve) => {
|
|
@@ -146,7 +146,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
146
146
|
}
|
|
147
147
|
if (isDowngradeAutoUpdateResponse(response)) {
|
|
148
148
|
const target = response.latest;
|
|
149
|
-
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) ||
|
|
149
|
+
const current = _optionalChain([response, 'access', _26 => _26.current, 'optionalAccess', _27 => _27.trim, 'call', _28 => _28()]) || _chunk3IBKEOL4js.SDK_VERSION;
|
|
150
150
|
process.stderr.write(
|
|
151
151
|
`Deepline SDK/CLI auto-update refused: server advertised older ${target} than current ${current}. Continuing without mutating the CLI.
|
|
152
152
|
`
|
|
@@ -154,21 +154,21 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
154
154
|
return false;
|
|
155
155
|
}
|
|
156
156
|
const packageSpec = response.latest ? `deepline@${response.latest}` : void 0;
|
|
157
|
-
const plan =
|
|
157
|
+
const plan = _chunkNBL6JMIYjs.resolveUpdatePlan.call(void 0, {
|
|
158
158
|
packageSpec,
|
|
159
159
|
requireVerifiedNpmOwnership: true,
|
|
160
160
|
npmFallbackRegistryUrl: trustedAutoUpdateRegistryUrl(baseUrl)
|
|
161
161
|
});
|
|
162
|
-
if (!
|
|
162
|
+
if (!_chunkNBL6JMIYjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) {
|
|
163
163
|
return false;
|
|
164
164
|
}
|
|
165
165
|
if (!autoUpdate.required && autoUpdate.reason !== "rollback_forced") {
|
|
166
166
|
deferredAutoUpdate = async () => {
|
|
167
167
|
await applyAutoUpdate(response, baseUrl, plan, "next_command");
|
|
168
168
|
};
|
|
169
|
-
if (
|
|
169
|
+
if (_chunkZDTPSVGFjs.isJsonOutputMode.call(void 0, )) {
|
|
170
170
|
const target = _optionalChain([response, 'access', _29 => _29.latest, 'optionalAccess', _30 => _30.trim, 'call', _31 => _31()]);
|
|
171
|
-
|
|
171
|
+
_chunkZDTPSVGFjs.addJsonNotice.call(void 0, {
|
|
172
172
|
code: "sdk_update_queued",
|
|
173
173
|
message: `Deepline SDK/CLI update${target ? ` to ${target}` : ""} is queued after this command; the next command will use it if installation succeeds.`
|
|
174
174
|
});
|
|
@@ -181,7 +181,7 @@ async function maybeAutoUpdateAndRelaunch(response, baseUrl, policy = "configure
|
|
|
181
181
|
return true;
|
|
182
182
|
}
|
|
183
183
|
async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
184
|
-
if (!
|
|
184
|
+
if (!_chunkNBL6JMIYjs.canAutomaticallyApplyUpdatePlan.call(void 0, plan)) return false;
|
|
185
185
|
const autoUpdate = response.auto_update;
|
|
186
186
|
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
187
|
process.stderr.write(
|
|
@@ -194,7 +194,7 @@ async function applyAutoUpdate(response, baseUrl, plan, takesEffect) {
|
|
|
194
194
|
event: "started",
|
|
195
195
|
installKind: plan.kind
|
|
196
196
|
});
|
|
197
|
-
const updateResult = await
|
|
197
|
+
const updateResult = await _chunkNBL6JMIYjs.runAutomaticUpdatePlan.call(void 0, plan);
|
|
198
198
|
if (updateResult.status === "skipped_previous_failure") {
|
|
199
199
|
void reportAutoUpdateEvent({
|
|
200
200
|
baseUrl,
|
|
@@ -245,7 +245,7 @@ var _crypto = require('crypto');
|
|
|
245
245
|
var TOOL_EXECUTE_PROGRESS_INTERVAL_MS = 15e3;
|
|
246
246
|
var activeToolExecuteCommand = null;
|
|
247
247
|
function progressLine(line) {
|
|
248
|
-
if (!
|
|
248
|
+
if (!_chunkZDTPSVGFjs.isJsonOutputMode.call(void 0, )) console.error(line);
|
|
249
249
|
}
|
|
250
250
|
function beginToolExecuteCommand() {
|
|
251
251
|
if (activeToolExecuteCommand) return activeToolExecuteCommand.invocationId;
|
|
@@ -3,14 +3,14 @@ import {
|
|
|
3
3
|
} from "./chunk-5AEDYVB6.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DeeplineClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-OKHBAAJG.mjs";
|
|
7
7
|
import {
|
|
8
8
|
printCommandEnvelope
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-O65HDVA7.mjs";
|
|
10
10
|
import {
|
|
11
11
|
resolveConfig,
|
|
12
12
|
sdkCliStateDirPath
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-PIC6M4X3.mjs";
|
|
14
14
|
|
|
15
15
|
// src/cli/commands/search.ts
|
|
16
16
|
import { Option } from "commander";
|
|
@@ -132,7 +132,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
132
132
|
});
|
|
133
133
|
if (searchRef) rememberSearchRef(searchRef);
|
|
134
134
|
pointAtDescribe(result);
|
|
135
|
-
const { renderSearchResults } = await import("./search-output-
|
|
135
|
+
const { renderSearchResults } = await import("./search-output-QS4IWWHA.mjs");
|
|
136
136
|
printCommandEnvelope(result, {
|
|
137
137
|
json: options.json === true,
|
|
138
138
|
text: renderSearchResults(result, summaryWidth)
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var _chunkVLEVVDWGjs = require('./chunk-VLEVVDWG.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkTVUE4CPWjs = require('./chunk-TVUE4CPW.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
var _chunkAUQQVDABjs = require('./chunk-AUQQVDAB.js');
|
|
@@ -11,7 +11,7 @@ var _chunkAUQQVDABjs = require('./chunk-AUQQVDAB.js');
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkZDTPSVGFjs = require('./chunk-ZDTPSVGF.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -579,7 +579,7 @@ function parseInputFlagValue(raw) {
|
|
|
579
579
|
return raw;
|
|
580
580
|
}
|
|
581
581
|
function parsePlayRunOptions(args, initialInput = null) {
|
|
582
|
-
const selection =
|
|
582
|
+
const selection = _chunkZDTPSVGFjs.parseJsonFields.call(void 0, args, "run");
|
|
583
583
|
args = selection.args;
|
|
584
584
|
const usage = "Usage: deepline plays run <play-name> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run <play-file.ts> [--input '{...}'] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --file <play-file.ts> [--input '{...}'] [--profile <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--full] [--<input> value]\n deepline plays run --name <name> [--input '{...}'] [--profile <id>] [--live|--latest|--revision-id <id>] [--run-id-file <path>] [--no-wait] [--tail-timeout-ms 30000] [--force] [--open] [--json] [--full] [--<input> value]\n Runs use the Absurd CJS runtime.\n --header '<name>: <value>' may repeat; each is sent on every request for this run.\n Unknown --<input> value flags, such as --limit 5, are passed into play input.\nRun `deepline plays run --help` for idempotent call caching and deepline.dataset guidance.";
|
|
585
585
|
let filePath = null;
|
|
@@ -591,7 +591,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
591
591
|
let revisionSelector = null;
|
|
592
592
|
const watch = !args.includes("--no-wait");
|
|
593
593
|
const dryRun = args.includes("--dry-run");
|
|
594
|
-
let jsonOutput = dryRun ?
|
|
594
|
+
let jsonOutput = dryRun ? _chunkZDTPSVGFjs.argsWantJson.call(void 0, args) : watch ? args.includes("--json") : _chunkZDTPSVGFjs.argsWantJson.call(void 0, args);
|
|
595
595
|
const fullJson = args.includes("--full");
|
|
596
596
|
const force = args.includes("--force");
|
|
597
597
|
const forceToolRefresh = args.includes("--force-tool-refresh");
|
|
@@ -654,7 +654,7 @@ function parsePlayRunOptions(args, initialInput = null) {
|
|
|
654
654
|
"--log-level requires one of: debug, info, warn, error."
|
|
655
655
|
);
|
|
656
656
|
}
|
|
657
|
-
const parsed =
|
|
657
|
+
const parsed = _chunkTVUE4CPWjs.parseLogLevel.call(void 0, value);
|
|
658
658
|
if (!parsed) {
|
|
659
659
|
throw new Error(
|
|
660
660
|
`Unsupported --log-level ${JSON.stringify(value)}. Use debug, info, warn, or error.`
|
|
@@ -972,7 +972,7 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
972
972
|
const hasExplicitLogLevel = options.logLevel !== void 0 || inputArgs.some(
|
|
973
973
|
(arg) => arg === "--log-level" || arg.startsWith("--log-level=")
|
|
974
974
|
);
|
|
975
|
-
let logLevel = options.logLevel === void 0 ? base.logLevel :
|
|
975
|
+
let logLevel = options.logLevel === void 0 ? base.logLevel : _chunkTVUE4CPWjs.parseLogLevel.call(void 0, options.logLevel);
|
|
976
976
|
if (!logLevel)
|
|
977
977
|
throw new Error("--log-level requires one of: debug, info, warn, error.");
|
|
978
978
|
const debugAlias = options.logs || options.debug === true || inputArgs.some(
|
|
@@ -986,13 +986,13 @@ function resolvePlayRunCliOptions(target, options, inputArgs = [], maintenancePo
|
|
|
986
986
|
if (debugAlias || debugMapLatency && logLevel === "info")
|
|
987
987
|
logLevel = "debug";
|
|
988
988
|
const fullJson = _nullishCoalesce(options.full, () => ( base.fullJson));
|
|
989
|
-
const jsonFields = options.json === void 0 ? base.jsonFields :
|
|
990
|
-
[...fullJson ? ["--full"] : [], ...
|
|
989
|
+
const jsonFields = options.json === void 0 ? base.jsonFields : _chunkZDTPSVGFjs.parseJsonFields.call(void 0,
|
|
990
|
+
[...fullJson ? ["--full"] : [], ..._chunkZDTPSVGFjs.jsonFieldArgs.call(void 0, options.json)],
|
|
991
991
|
"run"
|
|
992
992
|
).fields;
|
|
993
993
|
const watch = options.wait === false ? false : base.watch;
|
|
994
994
|
const explicitJson = options.json !== void 0 ? options.json !== false : base.jsonOutput;
|
|
995
|
-
const jsonOutput = dryRun || !watch ? explicitJson ||
|
|
995
|
+
const jsonOutput = dryRun || !watch ? explicitJson || _chunkZDTPSVGFjs.argsWantJson.call(void 0, []) : explicitJson;
|
|
996
996
|
const verboseLogs = Boolean(
|
|
997
997
|
debugAlias || logLevel === "debug" || debugMapLatency
|
|
998
998
|
);
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-F6QV42MC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-FFOJRD53.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-ONONSV2Q.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-O65HDVA7.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
seedToolListScript
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-GDSZWTJK.mjs";
|
|
4
4
|
import {
|
|
5
5
|
addDescribeOptions
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-MPITIXW4.mjs";
|
|
7
7
|
import {
|
|
8
8
|
describeLookupsFor,
|
|
9
9
|
describeName,
|
|
@@ -14,10 +14,10 @@ import {
|
|
|
14
14
|
} from "./chunk-DEJIN4DF.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineClient
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-OKHBAAJG.mjs";
|
|
18
18
|
import {
|
|
19
19
|
printCommandEnvelope
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-O65HDVA7.mjs";
|
|
21
21
|
|
|
22
22
|
// src/cli/commands/describe.ts
|
|
23
23
|
import { writeFileSync } from "fs";
|
|
@@ -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; } var _class;
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkZDTPSVGFjs = require('./chunk-ZDTPSVGF.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/progress.ts
|
|
6
6
|
var _worker_threads = require('worker_threads');
|
|
@@ -19,7 +19,7 @@ var CliProgress = (_class = class {
|
|
|
19
19
|
__init9() {this.quiet = false}
|
|
20
20
|
// --json output is one JSON document: progress never renders under it.
|
|
21
21
|
constructor(enabled) {;_class.prototype.__init.call(this);_class.prototype.__init2.call(this);_class.prototype.__init3.call(this);_class.prototype.__init4.call(this);_class.prototype.__init5.call(this);_class.prototype.__init6.call(this);_class.prototype.__init7.call(this);_class.prototype.__init8.call(this);_class.prototype.__init9.call(this);
|
|
22
|
-
this.enabled = enabled && !
|
|
22
|
+
this.enabled = enabled && !_chunkZDTPSVGFjs.isJsonOutputMode.call(void 0, );
|
|
23
23
|
}
|
|
24
24
|
setLogWriter(writer) {
|
|
25
25
|
this.logWriter = writer;
|
|
@@ -59,7 +59,7 @@ var CliProgress = (_class = class {
|
|
|
59
59
|
this.logWriter(line);
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
|
-
if (
|
|
62
|
+
if (_chunkZDTPSVGFjs.isJsonOutputMode.call(void 0, )) return;
|
|
63
63
|
if (!this.enabled) {
|
|
64
64
|
process.stderr.write(`${line}
|
|
65
65
|
`);
|
|
@@ -31,7 +31,7 @@ var _chunkNMU3VR5Ujs = require('./chunk-NMU3VR5U.js');
|
|
|
31
31
|
|
|
32
32
|
|
|
33
33
|
|
|
34
|
-
var
|
|
34
|
+
var _chunk3IBKEOL4js = require('./chunk-3IBKEOL4.js');
|
|
35
35
|
|
|
36
36
|
|
|
37
37
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -652,7 +652,7 @@ var ToolCalls = class {
|
|
|
652
652
|
idempotencyKey,
|
|
653
653
|
onResponse: (response2) => {
|
|
654
654
|
lastResponse = null;
|
|
655
|
-
atomicToolsSupported = response2.headers.get(
|
|
655
|
+
atomicToolsSupported = response2.headers.get(_chunk3IBKEOL4js.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
656
656
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
657
657
|
if (_optionalChain([options, 'optionalAccess', _30 => _30.onServerTiming])) {
|
|
658
658
|
try {
|
|
@@ -1031,8 +1031,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1031
1031
|
}
|
|
1032
1032
|
const receivers = _optionalChain([env, 'access', _52 => _52.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _53 => _53.trim, 'call', _54 => _54()]);
|
|
1033
1033
|
return {
|
|
1034
|
-
[
|
|
1035
|
-
...receivers ? { [
|
|
1034
|
+
[_chunk3IBKEOL4js.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1035
|
+
...receivers ? { [_chunk3IBKEOL4js.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1036
1036
|
};
|
|
1037
1037
|
}
|
|
1038
1038
|
function normalizeTestPolicyOverrides(value, source) {
|
|
@@ -1103,7 +1103,7 @@ var PlayClient = class {
|
|
|
1103
1103
|
return _chunkAUQQVDABjs.startPlayRun.call(void 0,
|
|
1104
1104
|
this.http,
|
|
1105
1105
|
resolved.request,
|
|
1106
|
-
_optionalChain([options, 'optionalAccess', _62 => _62.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1106
|
+
_optionalChain([options, 'optionalAccess', _62 => _62.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunk3IBKEOL4js.SDK_API_MAJOR) } : headers,
|
|
1107
1107
|
options
|
|
1108
1108
|
);
|
|
1109
1109
|
}
|
|
@@ -3200,7 +3200,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3200
3200
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3201
3201
|
);
|
|
3202
3202
|
}
|
|
3203
|
-
return { [
|
|
3203
|
+
return { [_chunk3IBKEOL4js.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3204
3204
|
}
|
|
3205
3205
|
function sleep(ms) {
|
|
3206
3206
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -4001,7 +4001,7 @@ var DeeplineClient = (_class = class _DeeplineClient {
|
|
|
4001
4001
|
);
|
|
4002
4002
|
const headers = _optionalChain([options, 'optionalAccess', _181 => _181.cliAdmission]) ? {
|
|
4003
4003
|
...runtimeHeaders,
|
|
4004
|
-
"X-Deepline-API-Major": String(
|
|
4004
|
+
"X-Deepline-API-Major": String(_chunk3IBKEOL4js.SDK_API_MAJOR)
|
|
4005
4005
|
} : runtimeHeaders;
|
|
4006
4006
|
const http = this.http;
|
|
4007
4007
|
let submitted = false;
|
|
@@ -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.492",
|
|
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."
|