deepline 0.3.441 → 0.3.443
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/sdk/src/types.ts +4 -0
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/postgres.ts +37 -15
- package/dist/bundling-sources/shared_libs/product-notifications/catalog.ts +34 -21
- package/dist/bundling-sources/shared_libs/product-notifications/default-policy.ts +1 -1
- package/dist/bundling-sources/shared_libs/product-notifications/events.ts +11 -0
- package/dist/cli/auth-AZVWLMZN.js +40 -0
- package/dist/cli/{auth-D2ZF664Y.mjs → auth-CP2CAI7J.mjs} +4 -4
- package/dist/cli/{billing-5OLSZRHE.js → billing-JYSP3C76.js} +73 -73
- package/dist/cli/{billing-4MIYCPSV.mjs → billing-N36FL3GI.mjs} +4 -4
- package/dist/cli/{chunk-PPJ4PF6F.mjs → chunk-4A45A2MH.mjs} +1 -1
- package/dist/cli/{chunk-FOLT3LUQ.mjs → chunk-6NUGMJQA.mjs} +4 -1
- package/dist/cli/{chunk-GAGGHXYN.js → chunk-6RKZVPFA.js} +2 -2
- package/dist/cli/{chunk-DE354WOP.js → chunk-757V3FDW.js} +2 -2
- package/dist/cli/{chunk-AG5SQSH5.js → chunk-75VUSWF3.js} +6 -6
- package/dist/cli/{chunk-2LVCAPN7.mjs → chunk-B6AWQQK6.mjs} +3 -3
- package/dist/cli/{chunk-OWXLYPMV.js → chunk-BE2GX674.js} +20 -20
- package/dist/cli/{chunk-XM5Z53VA.js → chunk-CGZ2KKPM.js} +10 -10
- package/dist/cli/{chunk-2GNX6SCO.mjs → chunk-CO3S56DX.mjs} +7 -2
- package/dist/cli/{chunk-LB5TQPKK.mjs → chunk-DOKTNYMQ.mjs} +1 -1
- package/dist/cli/{chunk-M65GHY4K.mjs → chunk-DPEPHLAF.mjs} +1 -1
- package/dist/cli/{chunk-3IRJIEIE.js → chunk-EWXXWSQM.js} +11 -8
- package/dist/cli/{chunk-KPKU53YO.mjs → chunk-FKAHVFPJ.mjs} +1 -1
- package/dist/cli/{chunk-PUWMWNBM.mjs → chunk-FRZLWUM6.mjs} +3 -3
- package/dist/cli/{chunk-DIDMHGVH.mjs → chunk-FU7ELMKS.mjs} +1 -1
- package/dist/cli/{chunk-POSRLOHP.mjs → chunk-GVPHPLAX.mjs} +3 -3
- package/dist/cli/{chunk-4N3ZT6OJ.mjs → chunk-HHOJXBQQ.mjs} +2 -2
- package/dist/cli/{chunk-DM6Q634K.js → chunk-HTAXXY66.js} +7 -2
- package/dist/cli/{chunk-SKXQZUMX.mjs → chunk-HU6PIQDF.mjs} +2 -2
- package/dist/cli/{chunk-3XPO3MWC.js → chunk-K4ELTQAT.js} +8 -8
- package/dist/cli/{chunk-AVQ4V6Y7.js → chunk-KJH4C2IJ.js} +249 -245
- package/dist/cli/{chunk-GEQOPXOS.js → chunk-KNAKCMGJ.js} +17 -17
- package/dist/cli/{chunk-27LQEDGO.js → chunk-KZ2VAXB6.js} +16 -16
- package/dist/cli/{chunk-NYLJMRYD.mjs → chunk-L3CW2G7L.mjs} +2 -2
- package/dist/cli/{chunk-VUYUI35Q.js → chunk-LRNYRGCN.js} +20 -11
- package/dist/cli/{chunk-DV4G676C.js → chunk-LVM7CSAH.js} +8 -8
- package/dist/cli/{chunk-KSWTIOZT.mjs → chunk-MQYBXB2J.mjs} +15 -11
- package/dist/cli/{chunk-55GDG7QJ.mjs → chunk-MRW6XPDH.mjs} +1 -1
- package/dist/cli/{chunk-UJLPE55B.js → chunk-MWUTMJCU.js} +1 -1
- package/dist/cli/{chunk-HS6ASYW5.mjs → chunk-MZLZNISS.mjs} +2 -2
- package/dist/cli/{chunk-F2EMJUDJ.js → chunk-OSYT3QQD.js} +26 -26
- package/dist/cli/{chunk-GXOQRZXG.js → chunk-PP66EATA.js} +2 -2
- package/dist/cli/{chunk-HUH6EA5B.js → chunk-PXXIBSBG.js} +4 -4
- package/dist/cli/{chunk-R2QWSSAG.js → chunk-QFXPA2E4.js} +7 -7
- package/dist/cli/{chunk-ARVYJDPQ.mjs → chunk-VXGLDGOF.mjs} +4 -4
- package/dist/cli/{chunk-MLJBCS3E.mjs → chunk-W25OALCJ.mjs} +10 -1
- package/dist/cli/{chunk-XUART5TY.mjs → chunk-WOUFCLTM.mjs} +5 -5
- package/dist/cli/{chunk-LXTSVUZN.mjs → chunk-WQPJQEDE.mjs} +1 -1
- package/dist/cli/{chunk-2VZKT2PE.js → chunk-XIJL6UMV.js} +35 -35
- package/dist/cli/{chunk-AZZCCHOL.mjs → chunk-Y45RAHEA.mjs} +2 -2
- package/dist/cli/{chunk-2MMUUSBN.js → chunk-YV6N4BF2.js} +52 -52
- package/dist/cli/{chunk-PNS3K6A2.js → chunk-ZXJQ26QG.js} +50 -50
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-ZWRKX6NU.mjs → csv-Z53PJEPZ.mjs} +3 -3
- package/dist/cli/{csv-PWSQ7DBG.js → csv-ZQFVZ4R3.js} +12 -12
- package/dist/cli/{db-AYIEGUOY.mjs → db-4CNIBR5P.mjs} +4 -4
- package/dist/cli/{db-M24C22YN.js → db-OHBRQL2N.js} +25 -25
- package/dist/cli/{describe-F34NXGCE.js → describe-AEM7SYXF.js} +24 -24
- package/dist/cli/{describe-K2CCAFJO.mjs → describe-GAR4MEGX.mjs} +16 -16
- package/dist/cli/describe-core.d.mts +1 -1
- package/dist/cli/describe-core.d.ts +1 -1
- package/dist/cli/describe-core.js +4 -4
- package/dist/cli/describe-core.mjs +3 -3
- package/dist/cli/{executions-UHHRRBBT.js → executions-CST4IDL3.js} +6 -6
- package/dist/cli/{executions-TMH5FSYX.mjs → executions-YBZPFAD6.mjs} +4 -4
- package/dist/cli/{feedback-GCTX3HJS.mjs → feedback-FHJE6YDU.mjs} +3 -3
- package/dist/cli/{feedback-Z7C47J2X.js → feedback-MEJZGB4C.js} +7 -7
- package/dist/cli/{git-RDHXJML2.mjs → git-FIGXIUM5.mjs} +4 -4
- package/dist/cli/git-PANOVLJC.js +24 -0
- package/dist/cli/index.js +135 -135
- package/dist/cli/index.mjs +37 -37
- package/dist/cli/{legacy-noops-3E75KHWC.mjs → legacy-noops-AXHAIAMH.mjs} +4 -4
- package/dist/cli/{legacy-noops-X6QQUMNF.js → legacy-noops-BE3VVOYG.js} +7 -7
- package/dist/cli/{monitors-AVTVW5L2.js → monitors-5OTJUY43.js} +84 -84
- package/dist/cli/{monitors-HCNIDGV2.mjs → monitors-YTWELXP7.mjs} +4 -4
- package/dist/cli/{org-ILD73S74.mjs → org-WCKS4ZDK.mjs} +4 -4
- package/dist/cli/{org-QUJYCJJE.js → org-Y5DMTECB.js} +66 -66
- package/dist/cli/{play-7M53PMCN.js → play-B6Y6ZCPV.js} +296 -296
- package/dist/cli/{play-DQJ7LGQG.mjs → play-UYAZYXHV.mjs} +12 -12
- package/dist/cli/{providers-WV35XXID.mjs → providers-IZVVGFAO.mjs} +4 -4
- package/dist/cli/{providers-3HC5S52G.js → providers-U7BLFNT4.js} +7 -7
- package/dist/cli/{quickstart-UESOANHH.mjs → quickstart-BY7N6GXZ.mjs} +3 -3
- package/dist/cli/{quickstart-KJZOURAH.js → quickstart-MTNOTGIH.js} +5 -5
- package/dist/cli/{search-V3ZQE4UU.mjs → search-SJXJKATQ.mjs} +5 -5
- package/dist/cli/search-W7VXB4YP.js +30 -0
- package/dist/cli/{secrets-IU2FWIQI.js → secrets-C2FN2YMO.js} +13 -13
- package/dist/cli/{secrets-ILDTXJ3L.mjs → secrets-IA6JBZEF.mjs} +4 -4
- package/dist/cli/{sessions-Y25VJZSV.js → sessions-HGJQTLZP.js} +5 -5
- package/dist/cli/{sessions-4M6WBATB.mjs → sessions-MNK7ZR2Y.mjs} +4 -4
- package/dist/cli/{settings-Z4R5U5OZ.mjs → settings-7UBMCVFK.mjs} +8 -8
- package/dist/cli/{settings-5BMSV6EL.js → settings-MRMSITAL.js} +75 -75
- package/dist/cli/{setup-FWSJMJWR.mjs → setup-MD4F55X4.mjs} +7 -7
- package/dist/cli/{setup-QZ3ZN4RI.js → setup-UX7KNUOW.js} +42 -42
- package/dist/cli/{skills-RA7HJTXG.mjs → skills-W7SAJDG6.mjs} +5 -5
- package/dist/cli/skills-ZY4KFM33.js +29 -0
- package/dist/cli/tools-6G4PXAZ3.js +44 -0
- package/dist/cli/{tools-5VI3FPWV.mjs → tools-VAWJLJAK.mjs} +15 -15
- package/dist/cli/update-3D4R5FW6.js +31 -0
- package/dist/cli/{update-O7B44SN5.mjs → update-B2UOERFE.mjs} +7 -7
- package/dist/cli/{workflow-3MOKM4IM.mjs → workflow-3BYE3YFQ.mjs} +5 -5
- package/dist/cli/{workflow-7W3BTJPH.js → workflow-K2YJNF64.js} +15 -15
- package/dist/{client-BqQ7Rb11.d.ts → client-CBitBZpr.d.ts} +15 -3
- package/dist/{client-BCmnJaL9.d.mts → client-CTUbBRgg.d.mts} +15 -3
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/index.mjs +3 -3
- package/dist/install-integrity.json +90 -90
- 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/package.json +1 -1
- package/dist/cli/auth-XTW4JZT4.js +0 -40
- package/dist/cli/git-MCFHPAML.js +0 -24
- package/dist/cli/search-255SE477.js +0 -30
- package/dist/cli/skills-4JXC4C57.js +0 -29
- package/dist/cli/tools-BGVCWIZ5.js +0 -44
- package/dist/cli/update-GPXJHQXJ.js +0 -31
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkQFXPA2E4js = require('./chunk-QFXPA2E4.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
@@ -13,7 +13,7 @@ var _chunkR2QWSSAGjs = require('./chunk-R2QWSSAG.js');
|
|
|
13
13
|
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkLRNYRGCNjs = require('./chunk-LRNYRGCN.js');
|
|
17
17
|
|
|
18
18
|
|
|
19
19
|
var _chunkDIAWYWT5js = require('./chunk-DIAWYWT5.js');
|
|
@@ -31,13 +31,13 @@ var VIEWS = {
|
|
|
31
31
|
details: model,
|
|
32
32
|
lines: [
|
|
33
33
|
...unlisted,
|
|
34
|
-
...
|
|
34
|
+
..._chunkQFXPA2E4js.formatModelDescription.call(void 0, model).trimEnd().split("\n")
|
|
35
35
|
]
|
|
36
36
|
};
|
|
37
37
|
},
|
|
38
38
|
byok: async (_value, tool) => ({
|
|
39
39
|
details: _nullishCoalesce(tool.byok, () => ( {})),
|
|
40
|
-
lines:
|
|
40
|
+
lines: _chunkLRNYRGCNjs.byokLines.call(void 0, _nullishCoalesce(tool.byok, () => ( {})))
|
|
41
41
|
})
|
|
42
42
|
};
|
|
43
43
|
var isFeatureView = (value) => typeof value === "string" && Object.hasOwn(VIEWS, value);
|
|
@@ -113,7 +113,7 @@ async function describeName(name, options, lookups) {
|
|
|
113
113
|
const record2 = await lookups.play(reference);
|
|
114
114
|
if (!record2) return null;
|
|
115
115
|
return {
|
|
116
|
-
described:
|
|
116
|
+
described: _chunkLRNYRGCNjs.describedPlay.call(void 0, record2),
|
|
117
117
|
record: { ...record2 },
|
|
118
118
|
schemas: {
|
|
119
119
|
inputSchema: _nullishCoalesce(record2.inputSchema, () => ( null)),
|
|
@@ -128,18 +128,18 @@ async function describeName(name, options, lookups) {
|
|
|
128
128
|
const features = toolFeatures(record2);
|
|
129
129
|
return {
|
|
130
130
|
described: {
|
|
131
|
-
...
|
|
131
|
+
..._chunkQFXPA2E4js.describedTool.call(void 0, record2, name),
|
|
132
132
|
// Shown when the tool runs only on your own credentials; otherwise
|
|
133
133
|
// it is a feature, described with --feature byok.
|
|
134
134
|
..._optionalChain([byok, 'optionalAccess', _3 => _3.required]) === true ? { byok } : {},
|
|
135
135
|
...features.length ? { features: features.map(({ view: _view, ...feature }) => feature) } : {}
|
|
136
136
|
},
|
|
137
|
-
record:
|
|
137
|
+
record: _chunkQFXPA2E4js.toolMetadataJsonForDescribe.call(void 0,
|
|
138
138
|
record2,
|
|
139
139
|
name,
|
|
140
140
|
lookups.seedStarterScript
|
|
141
141
|
),
|
|
142
|
-
schemas:
|
|
142
|
+
schemas: _chunkQFXPA2E4js.publicToolSchemas.call(void 0, record2),
|
|
143
143
|
feature: (featureName, value) => {
|
|
144
144
|
const feature = features.find(({ name: name2 }) => name2 === featureName);
|
|
145
145
|
return feature ? describeFeature(record2, feature, value, {
|
|
@@ -170,7 +170,7 @@ async function describeName(name, options, lookups) {
|
|
|
170
170
|
const note = shadows ? `Showing your workspace play "${name}". It has the same name as a Deepline ${shadows.kind.replace("_", " ")}; see that one with: ${shadows.describeCommand}` : null;
|
|
171
171
|
const verbose = options.verbose === true;
|
|
172
172
|
const isPlay = described.kind === "prebuilt_play" || described.kind === "custom_play";
|
|
173
|
-
const dashboardUrl = isPlay ?
|
|
173
|
+
const dashboardUrl = isPlay ? _chunkLRNYRGCNjs.buildPlayDashboardUrl.call(void 0, lookups.baseUrl, described.id) : null;
|
|
174
174
|
if (options.webUrl) {
|
|
175
175
|
if (!dashboardUrl) {
|
|
176
176
|
return {
|
|
@@ -234,7 +234,7 @@ async function describeName(name, options, lookups) {
|
|
|
234
234
|
},
|
|
235
235
|
lines: [
|
|
236
236
|
`${described.id} [${described.kind.replace("_", " ")}]`,
|
|
237
|
-
...
|
|
237
|
+
..._chunkLRNYRGCNjs.schemaLines.call(void 0, described, {
|
|
238
238
|
full: true,
|
|
239
239
|
secondary: true,
|
|
240
240
|
...fields.length ? { fields } : {}
|
|
@@ -243,17 +243,17 @@ async function describeName(name, options, lookups) {
|
|
|
243
243
|
} : {
|
|
244
244
|
envelope: {
|
|
245
245
|
...summary,
|
|
246
|
-
inputs: inputs.map(
|
|
247
|
-
outputs: outputs.map(
|
|
248
|
-
...described.rowInputs ? { rowInputs: described.rowInputs.map(
|
|
249
|
-
...described.rowOutputs ? { rowOutputs: described.rowOutputs.map(
|
|
250
|
-
runExamples:
|
|
246
|
+
inputs: inputs.map(_chunkLRNYRGCNjs.topLevelField),
|
|
247
|
+
outputs: outputs.map(_chunkLRNYRGCNjs.topLevelField),
|
|
248
|
+
...described.rowInputs ? { rowInputs: described.rowInputs.map(_chunkLRNYRGCNjs.topLevelField) } : {},
|
|
249
|
+
...described.rowOutputs ? { rowOutputs: described.rowOutputs.map(_chunkLRNYRGCNjs.topLevelField) } : {},
|
|
250
|
+
runExamples: _chunkLRNYRGCNjs.examples.call(void 0, described, { verbose }),
|
|
251
251
|
...dashboardUrl ? { dashboardUrl } : {},
|
|
252
252
|
...shadows ? { shadows, note } : {}
|
|
253
253
|
},
|
|
254
254
|
lines: [
|
|
255
255
|
...note ? [`Note: ${note}`, ""] : [],
|
|
256
|
-
...
|
|
256
|
+
..._chunkLRNYRGCNjs.describedLines.call(void 0, described, {
|
|
257
257
|
cli: shown && (!named || options.cliExample === true),
|
|
258
258
|
play: shown && (!named || options.playExample === true),
|
|
259
259
|
explain: named,
|
|
@@ -270,7 +270,7 @@ async function describeName(name, options, lookups) {
|
|
|
270
270
|
// its value stands, so callers of the older commands read what they did.
|
|
271
271
|
{ ...view.envelope, ...record }
|
|
272
272
|
) : {
|
|
273
|
-
...
|
|
273
|
+
..._chunkLRNYRGCNjs.describedJson.call(void 0, described, {
|
|
274
274
|
secondary: verbose || fields.length > 0,
|
|
275
275
|
verbose
|
|
276
276
|
}),
|
|
@@ -1,19 +1,19 @@
|
|
|
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
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunk6RKZVPFAjs = require('./chunk-6RKZVPFA.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkXIJL6UMVjs = require('./chunk-XIJL6UMV.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkYV6N4BF2js = require('./chunk-YV6N4BF2.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkEWXXWSQMjs = require('./chunk-EWXXWSQM.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunkPXXIBSBGjs = require('./chunk-PXXIBSBG.js');
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
var _child_process = require('child_process');
|
|
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
|
|
|
495
495
|
}
|
|
496
496
|
function resolveNpmGlobalPrefix(env) {
|
|
497
497
|
try {
|
|
498
|
-
const plan =
|
|
498
|
+
const plan = _chunkYV6N4BF2js.resolveShellSpawn.call(void 0,
|
|
499
499
|
"npm",
|
|
500
500
|
["prefix", "-g"],
|
|
501
501
|
process.platform,
|
|
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
557
557
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
558
558
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
559
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
560
|
-
const npmGlobalInstallFlags =
|
|
559
|
+
const npmVersion = options.npmVersion === void 0 ? _chunk6RKZVPFAjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunk6RKZVPFAjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
561
561
|
const args = installPrefix ? [
|
|
562
562
|
"install",
|
|
563
563
|
"-g",
|
|
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
567
567
|
packageSpec
|
|
568
568
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
569
569
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
570
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
570
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunkPXXIBSBGjs.autoDetectBaseUrl.call(void 0, )
|
|
571
571
|
);
|
|
572
572
|
return {
|
|
573
573
|
kind: "npm-global",
|
|
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
816
816
|
function runCommand(command, args, env = process.env) {
|
|
817
817
|
return new Promise((resolveResult) => {
|
|
818
818
|
let output = "";
|
|
819
|
-
const plan =
|
|
819
|
+
const plan = _chunkYV6N4BF2js.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
820
820
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
821
821
|
stdio: ["inherit", "pipe", "pipe"],
|
|
822
822
|
shell: plan.shell,
|
|
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1199
1199
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1200
1200
|
}
|
|
1201
1201
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1202
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1202
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunkPXXIBSBGjs.autoDetectBaseUrl));
|
|
1203
1203
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1204
1204
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1205
1205
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1206
1206
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1207
1207
|
process.stdout.write = (() => true);
|
|
1208
1208
|
try {
|
|
1209
|
-
const exitCode = await
|
|
1209
|
+
const exitCode = await _chunkXIJL6UMVjs.runSkillsCommand.call(void 0, { json: true });
|
|
1210
1210
|
if (exitCode !== 0) {
|
|
1211
1211
|
throw new Error(
|
|
1212
1212
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1277
1277
|
]
|
|
1278
1278
|
};
|
|
1279
1279
|
if (options.json && !options.executeWithJson) {
|
|
1280
|
-
|
|
1280
|
+
_chunkEWXXWSQMjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunkEWXXWSQMjs.printCommandEnvelope.call(void 0,
|
|
1285
1285
|
{
|
|
1286
1286
|
...plan,
|
|
1287
1287
|
render: {
|
|
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1294
1294
|
return 0;
|
|
1295
1295
|
}
|
|
1296
1296
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1297
|
-
|
|
1297
|
+
_chunkEWXXWSQMjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1298
1298
|
return 0;
|
|
1299
1299
|
}
|
|
1300
1300
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills
|
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
1326
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1327
|
+
_chunkEWXXWSQMjs.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-6NUGMJQA.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-4A45A2MH.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -165,11 +165,19 @@ function rateLimitSummary(limits) {
|
|
|
165
165
|
const { requestsPerWindow: requests, windowMs } = limit;
|
|
166
166
|
if (typeof requests !== "number" || typeof windowMs !== "number") return [];
|
|
167
167
|
return [
|
|
168
|
-
`${requests} requests/${_nullishCoalesce(windows[windowMs], () => ( `${windowMs / 1e3}s`))}`
|
|
168
|
+
`${requests} requests/${_nullishCoalesce(windows[windowMs], () => ( `${windowMs / 1e3}s`))}${rateLimitQualifier(limit)}`
|
|
169
169
|
];
|
|
170
170
|
});
|
|
171
171
|
return parts.length ? parts.join(", ") : void 0;
|
|
172
172
|
}
|
|
173
|
+
function rateLimitQualifier(limit) {
|
|
174
|
+
const sources = Array.isArray(limit.credentialSources) ? limit.credentialSources : null;
|
|
175
|
+
const notes = [
|
|
176
|
+
_optionalChain([sources, 'optionalAccess', _ => _.length]) === 1 && sources[0] === "env" ? "on Deepline's managed key" : null,
|
|
177
|
+
limit.resetsAt === "utc_midnight" ? "resets 00:00 UTC" : null
|
|
178
|
+
].filter(Boolean);
|
|
179
|
+
return notes.length ? ` ${notes.join(", ")}` : "";
|
|
180
|
+
}
|
|
173
181
|
function exampleValue(field) {
|
|
174
182
|
if (field.example !== void 0) return field.example;
|
|
175
183
|
if (field.type.startsWith(RECORD)) {
|
|
@@ -243,7 +251,7 @@ function namedShapes(roots) {
|
|
|
243
251
|
}
|
|
244
252
|
function withRowInputs(described) {
|
|
245
253
|
const columns = described.rowInputs;
|
|
246
|
-
if (!_optionalChain([columns, 'optionalAccess',
|
|
254
|
+
if (!_optionalChain([columns, 'optionalAccess', _2 => _2.length])) return described.inputs;
|
|
247
255
|
const join = (...notes) => notes.filter(Boolean).join(" - ");
|
|
248
256
|
const first = columns[0].name;
|
|
249
257
|
return described.inputs.map((field) => {
|
|
@@ -278,7 +286,7 @@ function withRowInputs(described) {
|
|
|
278
286
|
}
|
|
279
287
|
function withRowOutputs(described) {
|
|
280
288
|
const columns = described.rowOutputs;
|
|
281
|
-
if (!_optionalChain([columns, 'optionalAccess',
|
|
289
|
+
if (!_optionalChain([columns, 'optionalAccess', _3 => _3.length])) return described.outputs;
|
|
282
290
|
const typed = (field) => ({
|
|
283
291
|
...field,
|
|
284
292
|
type: `PlayDataset<${SHAPE}>`,
|
|
@@ -422,7 +430,7 @@ function schemaLines(described, view) {
|
|
|
422
430
|
];
|
|
423
431
|
}
|
|
424
432
|
if (view.full) return schemaBlocks(described, Infinity, true);
|
|
425
|
-
const raw = _optionalChain([described, 'access',
|
|
433
|
+
const raw = _optionalChain([described, 'access', _4 => _4.rawResponse, 'optionalAccess', _5 => _5.length]) ? [
|
|
426
434
|
"",
|
|
427
435
|
`Other response fields (${described.rawResponse.map((field) => field.name).join(", ")}) are in result.toolResponse.rawV2. --full-schema lists them.`
|
|
428
436
|
] : [];
|
|
@@ -566,15 +574,15 @@ function jsonFields(fields, options) {
|
|
|
566
574
|
return [
|
|
567
575
|
field.name,
|
|
568
576
|
{
|
|
569
|
-
type: field.type.replace(SHAPE, _nullishCoalesce(_optionalChain([shape, 'optionalAccess',
|
|
577
|
+
type: field.type.replace(SHAPE, _nullishCoalesce(_optionalChain([shape, 'optionalAccess', _6 => _6.name]), () => ( "object"))),
|
|
570
578
|
...options.input ? { required: field.required } : {},
|
|
571
579
|
...field.means ? { means: field.means } : {},
|
|
572
580
|
...field.example !== void 0 ? { example: field.example } : {},
|
|
573
|
-
...field.description && field.description !== _optionalChain([shape, 'optionalAccess',
|
|
581
|
+
...field.description && field.description !== _optionalChain([shape, 'optionalAccess', _7 => _7.description]) ? { description: field.description } : {},
|
|
574
582
|
...field.secondary ? { secondary: true } : {},
|
|
575
583
|
...field.read ? { read: field.read } : {},
|
|
576
584
|
...field.in ? { in: field.in } : {},
|
|
577
|
-
..._optionalChain([field, 'access',
|
|
585
|
+
..._optionalChain([field, 'access', _8 => _8.paths, 'optionalAccess', _9 => _9.length]) ? { paths: field.paths } : {},
|
|
578
586
|
...field.fields && !shape ? { fields: jsonFields(field.fields, options) } : {}
|
|
579
587
|
}
|
|
580
588
|
];
|
|
@@ -595,7 +603,7 @@ function describedJson(described, view) {
|
|
|
595
603
|
const used = /* @__PURE__ */ new Set();
|
|
596
604
|
const blocks = Object.fromEntries(
|
|
597
605
|
sections.flatMap(
|
|
598
|
-
([key, fields, input]) => _optionalChain([fields, 'optionalAccess',
|
|
606
|
+
([key, fields, input]) => _optionalChain([fields, 'optionalAccess', _10 => _10.length]) ? [
|
|
599
607
|
[
|
|
600
608
|
key,
|
|
601
609
|
jsonFields(fields, {
|
|
@@ -629,7 +637,7 @@ function describedJson(described, view) {
|
|
|
629
637
|
...described.cost ? { cost: described.cost } : {},
|
|
630
638
|
...described.rateLimit ? { rateLimit: described.rateLimit } : {},
|
|
631
639
|
...described.byok ? { byok: described.byok } : {},
|
|
632
|
-
..._optionalChain([described, 'access',
|
|
640
|
+
..._optionalChain([described, 'access', _11 => _11.features, 'optionalAccess', _12 => _12.length]) ? { features: described.features } : {},
|
|
633
641
|
...described.guidance.length ? { guidance: described.guidance } : {},
|
|
634
642
|
...blocks,
|
|
635
643
|
...used.size ? { types } : {},
|
|
@@ -697,7 +705,7 @@ function describedPlay(play) {
|
|
|
697
705
|
...starter ? { source: starter.command } : {},
|
|
698
706
|
...exclusive ? { exclusive } : {},
|
|
699
707
|
// A prebuilt's cost is what its recent runs were charged; there is no rate.
|
|
700
|
-
..._optionalChain([play, 'access',
|
|
708
|
+
..._optionalChain([play, 'access', _13 => _13.observedCost, 'optionalAccess', _14 => _14.displayText]) ? { cost: play.observedCost.displayText } : {}
|
|
701
709
|
};
|
|
702
710
|
}
|
|
703
711
|
|
|
@@ -714,4 +722,5 @@ function describedPlay(play) {
|
|
|
714
722
|
|
|
715
723
|
|
|
716
724
|
|
|
717
|
-
|
|
725
|
+
|
|
726
|
+
exports.byokLines = byokLines; exports.SCHEMA_LINE_LIMIT = SCHEMA_LINE_LIMIT; exports.schemaField = schemaField; exports.schemaFields = schemaFields; exports.rateLimitSummary = rateLimitSummary; exports.rateLimitQualifier = rateLimitQualifier; exports.schemaLines = schemaLines; exports.examples = examples; exports.describedLines = describedLines; exports.topLevelField = topLevelField; exports.describedJson = describedJson; exports.buildPlayDashboardUrl = buildPlayDashboardUrl; exports.describedPlay = describedPlay;
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
var _chunkZM2YPJQJjs = require('./chunk-ZM2YPJQJ.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
var
|
|
6
|
+
var _chunkCGZ2KKPMjs = require('./chunk-CGZ2KKPM.js');
|
|
7
7
|
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkEWXXWSQMjs = require('./chunk-EWXXWSQM.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
var
|
|
14
|
+
var _chunkPXXIBSBGjs = require('./chunk-PXXIBSBG.js');
|
|
15
15
|
|
|
16
16
|
|
|
17
17
|
|
|
@@ -5713,7 +5713,7 @@ var _fs = require('fs');
|
|
|
5713
5713
|
var _path = require('path');
|
|
5714
5714
|
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
5715
5715
|
function lastSearchPath() {
|
|
5716
|
-
return _path.join.call(void 0,
|
|
5716
|
+
return _path.join.call(void 0, _chunkPXXIBSBGjs.sdkCliStateDirPath.call(void 0, _chunkPXXIBSBGjs.resolveConfig.call(void 0, ).baseUrl), "last-search.json");
|
|
5717
5717
|
}
|
|
5718
5718
|
function rememberSearchRef(searchRef) {
|
|
5719
5719
|
try {
|
|
@@ -5877,7 +5877,7 @@ var OPTIONAL_COLUMNS = [
|
|
|
5877
5877
|
];
|
|
5878
5878
|
function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
5879
5879
|
if (result.results.length === 0)
|
|
5880
|
-
return
|
|
5880
|
+
return _chunkEWXXWSQMjs.renderCommandEnvelopeText.call(void 0, result);
|
|
5881
5881
|
const rows = result.results.map((item) => searchRow(item, summaryWidth));
|
|
5882
5882
|
const kinds = new Set(rows.map((row) => row.kind));
|
|
5883
5883
|
const onlyTools = kinds.size === 1 && kinds.has("tool");
|
|
@@ -5902,7 +5902,7 @@ function renderSearchResults(result, summaryWidth = DEFAULT_SUMMARY_WIDTH) {
|
|
|
5902
5902
|
actions: _optionalChain([render, 'optionalAccess', _12 => _12.actions])
|
|
5903
5903
|
};
|
|
5904
5904
|
const followUps = _optionalChain([remaining, 'access', _13 => _13.sections, 'optionalAccess', _14 => _14.length]) || _optionalChain([remaining, 'access', _15 => _15.actions, 'optionalAccess', _16 => _16.length]) ? `
|
|
5905
|
-
${
|
|
5905
|
+
${_chunkEWXXWSQMjs.renderCommandEnvelopeText.call(void 0, { render: remaining })}` : "";
|
|
5906
5906
|
const notes = rows.flatMap(
|
|
5907
5907
|
(row) => row.notes.map((note) => ` ${row.id}: ${note}`)
|
|
5908
5908
|
);
|
|
@@ -5987,7 +5987,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
5987
5987
|
console.error("--summary-width must be an integer of at least 2.");
|
|
5988
5988
|
return 1;
|
|
5989
5989
|
}
|
|
5990
|
-
const { search_ref: searchRef, ...result } = await new (0,
|
|
5990
|
+
const { search_ref: searchRef, ...result } = await new (0, _chunkCGZ2KKPMjs.DeeplineClient)().search({
|
|
5991
5991
|
query,
|
|
5992
5992
|
types,
|
|
5993
5993
|
exclude,
|
|
@@ -6001,7 +6001,7 @@ async function runSearch(queryInput, options, types, exclude = []) {
|
|
|
6001
6001
|
});
|
|
6002
6002
|
if (searchRef) rememberSearchRef(searchRef);
|
|
6003
6003
|
pointAtDescribe(result);
|
|
6004
|
-
|
|
6004
|
+
_chunkEWXXWSQMjs.printCommandEnvelope.call(void 0, result, {
|
|
6005
6005
|
json: options.json === true,
|
|
6006
6006
|
text: renderSearchResults(result, summaryWidth)
|
|
6007
6007
|
});
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-FKAHVFPJ.mjs";
|
|
5
5
|
import {
|
|
6
6
|
recentSearchRef,
|
|
7
7
|
registerDeprecatedSearchCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GVPHPLAX.mjs";
|
|
9
9
|
import {
|
|
10
10
|
arrayField,
|
|
11
11
|
formatModelDescription,
|
|
@@ -24,7 +24,10 @@ import {
|
|
|
24
24
|
toolInputFieldsForDisplay,
|
|
25
25
|
toolMetadataJsonForDescribe,
|
|
26
26
|
toolOutputFieldsForDisplay
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-WQPJQEDE.mjs";
|
|
28
|
+
import {
|
|
29
|
+
rateLimitQualifier
|
|
30
|
+
} from "./chunk-W25OALCJ.mjs";
|
|
28
31
|
import {
|
|
29
32
|
shellQuote
|
|
30
33
|
} from "./chunk-OVDNJAJN.mjs";
|
|
@@ -45,7 +48,7 @@ import {
|
|
|
45
48
|
import {
|
|
46
49
|
DeeplineClient,
|
|
47
50
|
validateExecutionIdempotencyKey
|
|
48
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-MRW6XPDH.mjs";
|
|
49
52
|
import {
|
|
50
53
|
stableStringify
|
|
51
54
|
} from "./chunk-UBKA33KY.mjs";
|
|
@@ -55,18 +58,18 @@ import {
|
|
|
55
58
|
maybeAutoUpdateAndRelaunch,
|
|
56
59
|
registerCompatibilityCatalog,
|
|
57
60
|
runToolExecuteStage
|
|
58
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-VXGLDGOF.mjs";
|
|
59
62
|
import {
|
|
60
63
|
isCliTraceEnabled,
|
|
61
64
|
recordCliTrace,
|
|
62
65
|
resolveCliMaintenancePolicy
|
|
63
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-FU7ELMKS.mjs";
|
|
64
67
|
import {
|
|
65
68
|
checkSdkCompatibility,
|
|
66
69
|
enforceSdkCompatibilityResponse,
|
|
67
70
|
flushDeferredSkillsSyncNotices,
|
|
68
71
|
syncSdkSkillsIfNeeded
|
|
69
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-FRZLWUM6.mjs";
|
|
70
73
|
import {
|
|
71
74
|
printCommandEnvelope,
|
|
72
75
|
printCompactJson,
|
|
@@ -74,12 +77,12 @@ import {
|
|
|
74
77
|
printJsonError,
|
|
75
78
|
renderCommandEnvelopeText,
|
|
76
79
|
shouldEmitJson
|
|
77
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-6NUGMJQA.mjs";
|
|
78
81
|
import {
|
|
79
82
|
readSdkSkillsLocalVersion,
|
|
80
83
|
resolveConfig,
|
|
81
84
|
sdkCliStateDirPath
|
|
82
|
-
} from "./chunk-
|
|
85
|
+
} from "./chunk-4A45A2MH.mjs";
|
|
83
86
|
import {
|
|
84
87
|
DeeplineError
|
|
85
88
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -968,7 +971,7 @@ Examples:
|
|
|
968
971
|
process.exitCode = await narrowView();
|
|
969
972
|
return;
|
|
970
973
|
}
|
|
971
|
-
const { describeAnything } = await import("./describe-
|
|
974
|
+
const { describeAnything } = await import("./describe-GAR4MEGX.mjs");
|
|
972
975
|
process.exitCode = await describeAnything(
|
|
973
976
|
toolId,
|
|
974
977
|
{
|
|
@@ -1862,7 +1865,7 @@ function printToolExecutionHints(value) {
|
|
|
1862
1865
|
);
|
|
1863
1866
|
const concurrencyText = explicitMaxConcurrency === null ? "no explicit concurrency limit" : `explicit concurrency limit ${explicitMaxConcurrency}`;
|
|
1864
1867
|
console.log(
|
|
1865
|
-
`- ${requests} requests per ${formatRateWindow(windowMs)} (${usageText}; ${concurrencyText})`
|
|
1868
|
+
`- ${requests} requests per ${formatRateWindow(windowMs)}${rateLimitQualifier(limit)} (${usageText}; ${concurrencyText})`
|
|
1866
1869
|
);
|
|
1867
1870
|
}
|
|
1868
1871
|
}
|
|
@@ -1887,6 +1890,7 @@ function formatRateWindow(windowMs) {
|
|
|
1887
1890
|
if (windowMs === 1e3) return "second";
|
|
1888
1891
|
if (windowMs === 6e4) return "minute";
|
|
1889
1892
|
if (windowMs === 36e5) return "hour";
|
|
1893
|
+
if (windowMs === 864e5) return "day";
|
|
1890
1894
|
return `${windowMs}ms`;
|
|
1891
1895
|
}
|
|
1892
1896
|
function samplePayload(samples, key) {
|
|
@@ -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.443",
|
|
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."
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
argsWantJson,
|
|
3
3
|
openInBrowser,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6NUGMJQA.mjs";
|
|
6
6
|
import {
|
|
7
7
|
ACTIVE_ORG_ID_ENV,
|
|
8
8
|
ACTIVE_ORG_NAME_ENV,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
saveHostEnvValues,
|
|
26
26
|
saveProjectDeeplineEnvValues,
|
|
27
27
|
storedHostApiKey
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-4A45A2MH.mjs";
|
|
29
29
|
|
|
30
30
|
// src/cli/commands/auth.ts
|
|
31
31
|
import {
|