deepline 0.3.395 → 0.3.397
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/plays/play-description.ts +1 -1
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/observability/scheduled-jobs.json +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/fixture-behavior.ts +2 -2
- package/dist/cli/{auth-NMQXZRS7.mjs → auth-AZJFXGKP.mjs} +5 -4
- package/dist/cli/auth-CZJQU7B5.js +40 -0
- package/dist/cli/{billing-Z4JTGUU3.js → billing-MQV5AGDJ.js} +77 -76
- package/dist/cli/{billing-5MVXZRS6.mjs → billing-MZAAUHGH.mjs} +6 -5
- package/dist/cli/{chunk-6D7A2FSL.mjs → chunk-2LDADJNO.mjs} +7 -107
- package/dist/cli/{chunk-UKU6JM3S.js → chunk-3VP34TAU.js} +8 -8
- package/dist/cli/{chunk-7XAM7KDW.mjs → chunk-4D745XZO.mjs} +21 -108
- package/dist/cli/chunk-7DRPTGCK.js +930 -0
- package/dist/cli/{chunk-ZMVJSS6N.js → chunk-BQR6UN3C.js} +62 -78
- package/dist/cli/{chunk-HRWUQJ4K.js → chunk-DQ65ZVHN.js} +6 -6
- package/dist/cli/{chunk-5VCZ3WRH.mjs → chunk-EIMG75BT.mjs} +1 -0
- package/dist/cli/{chunk-EFLQHJZ6.mjs → chunk-F3BUFYKE.mjs} +182 -1031
- package/dist/cli/chunk-FIVKWNMT.mjs +210 -0
- package/dist/cli/{describe-DBRY5BNK.mjs → chunk-HFYQBC2D.mjs} +51 -171
- package/dist/cli/chunk-HGFFYVXN.js +210 -0
- package/dist/cli/{chunk-VB6KECLU.mjs → chunk-IHG7UAHD.mjs} +63 -79
- package/dist/cli/{chunk-TO2MWPGR.js → chunk-IZ74ABSX.js} +1 -1
- package/dist/cli/{chunk-G4IWGRMK.mjs → chunk-J7ABTQQ7.mjs} +5 -3
- package/dist/cli/{chunk-LZLBR2SF.js → chunk-K33MXVXQ.js} +323 -1172
- package/dist/cli/{chunk-DRM3CMHL.js → chunk-KXMNM4AQ.js} +2 -1
- package/dist/cli/chunk-LJ5747UC.mjs +107 -0
- package/dist/cli/{chunk-BON3DRC6.mjs → chunk-MRXMMERY.mjs} +1 -1
- package/dist/cli/{chunk-7MVWUXOD.mjs → chunk-MV7QRALK.mjs} +3 -3
- package/dist/cli/{chunk-WCCKMLHL.mjs → chunk-MYPH2LUU.mjs} +2 -2
- package/dist/cli/{chunk-RDXFGPJU.js → chunk-NA4T3B62.js} +64 -272
- package/dist/cli/{chunk-BLYL3KOC.mjs → chunk-NOX2TCBP.mjs} +1 -1
- package/dist/cli/chunk-OSDXE27V.mjs +88 -0
- package/dist/cli/{chunk-R4XZO6Z5.js → chunk-PSGEDGLT.js} +28 -115
- package/dist/cli/chunk-Q2E4E4FJ.js +112 -0
- package/dist/cli/chunk-RFG3MRAC.js +286 -0
- package/dist/cli/{chunk-47M6HPGP.mjs → chunk-RNSWDKBM.mjs} +1 -1
- package/dist/cli/{chunk-56IFFVIB.js → chunk-RYW4HPSM.js} +21 -121
- package/dist/cli/{chunk-K5T3EN6D.js → chunk-SO7RUVTY.js} +26 -26
- package/dist/cli/{chunk-KZZC33PY.mjs → chunk-TXZVVBQZ.mjs} +63 -271
- package/dist/cli/{chunk-36ML3YKA.js → chunk-UVXBVUZQ.js} +15 -13
- package/dist/cli/{chunk-PZ5BZ76S.js → chunk-VTF4RRWJ.js} +50 -50
- package/dist/cli/{chunk-3TRY7KAC.mjs → chunk-W3HMGKMI.mjs} +2 -2
- package/dist/cli/{chunk-ZWH2TFA7.mjs → chunk-WM2QEHZL.mjs} +2 -2
- package/dist/cli/chunk-YHPYUZZX.mjs +112 -0
- package/dist/cli/chunk-YHZUZO3U.mjs +930 -0
- package/dist/cli/{chunk-UCXK2DS4.js → chunk-YLRME7MK.js} +15 -15
- package/dist/cli/{chunk-MYIBHORT.js → chunk-YSVORIEW.js} +2 -2
- package/dist/cli/{chunk-OCSG6X67.mjs → chunk-YUDKBQUD.mjs} +4 -4
- package/dist/cli/chunk-ZAAKSJAS.js +88 -0
- package/dist/cli/{chunk-VYLJJQ7Y.js → chunk-ZHUMDMOS.js} +65 -65
- package/dist/cli/chunk-ZM2YPJQJ.js +107 -0
- package/dist/cli/{csv-HTS5ZYQ4.js → csv-AQBQ5O3I.js} +13 -12
- package/dist/cli/{csv-SVOD5UBH.mjs → csv-MB7PJMYQ.mjs} +4 -3
- package/dist/cli/{db-7AP4P52N.js → db-JPUYC5RB.js} +31 -30
- package/dist/cli/{db-7QLNI3Q4.mjs → db-L5IEI2AU.mjs} +6 -5
- package/dist/cli/describe-6WT74AOR.js +164 -0
- package/dist/cli/describe-S6BFANVI.mjs +164 -0
- package/dist/cli/describe-core.d.mts +100 -0
- package/dist/cli/describe-core.d.ts +100 -0
- package/dist/cli/describe-core.js +18 -0
- package/dist/cli/describe-core.mjs +18 -0
- package/dist/cli/{executions-GRQXTB2P.js → executions-6TMQTFP4.js} +8 -7
- package/dist/cli/{executions-QNZTPNG4.mjs → executions-L7I2ZW4Z.mjs} +6 -5
- package/dist/cli/{feedback-JMCSR624.mjs → feedback-DSJ63HK6.mjs} +4 -3
- package/dist/cli/{feedback-ZOLA2KY7.js → feedback-XF7CQGMD.js} +8 -7
- package/dist/cli/{git-LJGL2IHS.mjs → git-C3ENM67D.mjs} +5 -4
- package/dist/cli/git-HYDZK2QR.js +24 -0
- package/dist/cli/index.js +96 -94
- package/dist/cli/index.mjs +41 -39
- package/dist/cli/{legacy-noops-YSCIR2SD.js → legacy-noops-B2NHWIVD.js} +8 -7
- package/dist/cli/{legacy-noops-F23PKVBN.mjs → legacy-noops-VFG2K6HK.mjs} +5 -4
- package/dist/cli/{monitors-WMZ6HJZX.js → monitors-ORFWOVZB.js} +87 -86
- package/dist/cli/{monitors-S4LOEL7W.mjs → monitors-TCEDBDGY.mjs} +6 -5
- package/dist/cli/{org-U3WA2NQM.mjs → org-45KREIKZ.mjs} +6 -5
- package/dist/cli/{org-PFHM5ZLY.js → org-T74CJESN.js} +66 -65
- package/dist/cli/{chunk-XMAPE2KH.mjs → play-MU7MYBIM.mjs} +78 -131
- package/dist/cli/{chunk-4KLCLLTO.js → play-XHK2LPON.js} +273 -326
- package/dist/cli/{providers-XYMHLKCA.js → providers-4MGQKYFD.js} +9 -8
- package/dist/cli/{providers-QBBRFBOH.mjs → providers-VYCXIJT5.mjs} +6 -5
- package/dist/cli/{quickstart-IYGD6ZY3.js → quickstart-47G3VEOT.js} +6 -5
- package/dist/cli/{quickstart-5JTDGISY.mjs → quickstart-H724EFM2.mjs} +4 -3
- package/dist/cli/search-3356ENLD.js +30 -0
- package/dist/cli/{search-X6W6GRHS.mjs → search-VQHXEFQ4.mjs} +8 -6
- package/dist/cli/{secrets-UHG6OQFD.js → secrets-ALLKCU35.js} +15 -14
- package/dist/cli/{secrets-N55B67H6.mjs → secrets-CPBNGA44.mjs} +6 -5
- package/dist/cli/{sessions-JTRSTDSS.mjs → sessions-7RSQB7IX.mjs} +5 -4
- package/dist/cli/sessions-FKGAY7WQ.js +16 -0
- package/dist/cli/{settings-Q24HRAQI.mjs → settings-UYSGV4IC.mjs} +9 -8
- package/dist/cli/{settings-ATX4U5AS.js → settings-Y5BI42P7.js} +76 -75
- package/dist/cli/{setup-77ZWLVHT.mjs → setup-L3ZBBTS4.mjs} +7 -6
- package/dist/cli/{setup-EJCNOUCE.js → setup-VXQPEU3E.js} +42 -41
- package/dist/cli/skills-DUZQTDTE.js +29 -0
- package/dist/cli/{skills-XIS5AWQI.mjs → skills-QHVDLSFE.mjs} +5 -4
- package/dist/cli/{tools-WCKLYEGQ.mjs → tools-LSCEK4K2.mjs} +16 -19
- package/dist/cli/tools-YWU5QOQ5.js +39 -0
- package/dist/cli/update-5LYQAI55.js +29 -0
- package/dist/cli/{update-UT5WANMV.mjs → update-CU22OTBM.mjs} +7 -6
- package/dist/cli/{workflow-226QYUN2.js → workflow-ERFLTRNX.js} +17 -16
- package/dist/cli/{workflow-ZMX3L4ML.mjs → workflow-KQARK5BZ.mjs} +7 -6
- package/dist/{client-hdFtwhTm.d.mts → client-D0j-_aaa.d.mts} +2 -1
- package/dist/{client-CivP-PAI.d.ts → client-DflfVyj6.d.ts} +2 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +15 -11
- package/dist/index.mjs +19 -15
- package/dist/install-integrity.json +94 -80
- package/dist/plays/play-description.d.mts +1 -1
- package/dist/plays/play-description.d.ts +1 -1
- package/dist/plays/play-description.js +4 -2
- package/dist/plays/play-description.mjs +3 -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 +6 -1
- package/dist/cli/auth-UYCOBAL5.js +0 -39
- package/dist/cli/describe-YKOE54ZO.js +0 -406
- package/dist/cli/git-EJQLRK27.js +0 -23
- package/dist/cli/play-AGSECQFN.mjs +0 -159
- package/dist/cli/play-BR2LWGXK.js +0 -159
- package/dist/cli/search-ZVSYH5GY.js +0 -28
- package/dist/cli/sessions-57L5MGHN.js +0 -15
- package/dist/cli/skills-SPXUBLII.js +0 -28
- package/dist/cli/tools-DBHUUZJX.js +0 -42
- package/dist/cli/update-VSNFXRHJ.js +0 -28
|
@@ -1,406 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } async function _asyncNullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return await 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
|
-
|
|
3
|
-
|
|
4
|
-
var _chunk4KLCLLTOjs = require('./chunk-4KLCLLTO.js');
|
|
5
|
-
require('./chunk-K5T3EN6D.js');
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var _chunkLZLBR2SFjs = require('./chunk-LZLBR2SF.js');
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
var _chunkZMVJSS6Njs = require('./chunk-ZMVJSS6N.js');
|
|
22
|
-
require('./chunk-AID3OYVJ.js');
|
|
23
|
-
require('./chunk-MH73HMPV.js');
|
|
24
|
-
require('./chunk-3KC45UVF.js');
|
|
25
|
-
require('./chunk-GSK6NHVM.js');
|
|
26
|
-
require('./chunk-R4XZO6Z5.js');
|
|
27
|
-
require('./chunk-GEJDBXXM.js');
|
|
28
|
-
require('./chunk-RDXFGPJU.js');
|
|
29
|
-
require('./chunk-KB4SDX5S.js');
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
var _chunk36ML3YKAjs = require('./chunk-36ML3YKA.js');
|
|
33
|
-
require('./chunk-S6R3OX7B.js');
|
|
34
|
-
require('./chunk-UHNDVD3P.js');
|
|
35
|
-
require('./chunk-DRM3CMHL.js');
|
|
36
|
-
require('./chunk-XDVT3GOM.js');
|
|
37
|
-
require('./chunk-AYHLUHE5.js');
|
|
38
|
-
require('./chunk-WJYPBHTE.js');
|
|
39
|
-
require('./chunk-QJBJZVG6.js');
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
var _chunkHRWUQJ4Kjs = require('./chunk-HRWUQJ4K.js');
|
|
43
|
-
require('./chunk-56IFFVIB.js');
|
|
44
|
-
require('./chunk-XNYIZMNQ.js');
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
var _chunk7P5AA3SNjs = require('./chunk-7P5AA3SN.js');
|
|
48
|
-
require('./chunk-TO2MWPGR.js');
|
|
49
|
-
require('./chunk-OG64RBAC.js');
|
|
50
|
-
require('./chunk-COGTRVWW.js');
|
|
51
|
-
|
|
52
|
-
// src/cli/commands/describe.ts
|
|
53
|
-
var _fs = require('fs');
|
|
54
|
-
var _path = require('path');
|
|
55
|
-
|
|
56
|
-
// src/cli/tool-features.ts
|
|
57
|
-
var VIEWS = {
|
|
58
|
-
ai_gateway_model: async (value, _tool, { describeModel }) => {
|
|
59
|
-
if (!value)
|
|
60
|
-
throw new Error("Name a model: --feature model=<provider/model>");
|
|
61
|
-
const model = await describeModel(value);
|
|
62
|
-
const unlisted = model.modelMetadata ? [] : [
|
|
63
|
-
`Warning: ${value} is not in the live AI Gateway catalog; check the id at https://ai-gateway.vercel.sh/v1/models.`
|
|
64
|
-
];
|
|
65
|
-
return {
|
|
66
|
-
details: model,
|
|
67
|
-
lines: [
|
|
68
|
-
...unlisted,
|
|
69
|
-
..._chunkLZLBR2SFjs.formatModelDescription.call(void 0, model).trimEnd().split("\n")
|
|
70
|
-
]
|
|
71
|
-
};
|
|
72
|
-
},
|
|
73
|
-
byok: async (_value, tool) => ({
|
|
74
|
-
details: _nullishCoalesce(tool.byok, () => ( {})),
|
|
75
|
-
lines: _chunkZMVJSS6Njs.byokLines.call(void 0, _nullishCoalesce(tool.byok, () => ( {})))
|
|
76
|
-
})
|
|
77
|
-
};
|
|
78
|
-
var isFeatureView = (value) => typeof value === "string" && Object.hasOwn(VIEWS, value);
|
|
79
|
-
var asRecord = (value) => value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
80
|
-
function inputProperties(tool) {
|
|
81
|
-
const inputSchema = asRecord(tool.inputSchema);
|
|
82
|
-
const jsonSchema = asRecord(_nullishCoalesce(inputSchema.jsonSchema, () => ( inputSchema)));
|
|
83
|
-
return asRecord(jsonSchema.properties);
|
|
84
|
-
}
|
|
85
|
-
var firstSentence = (text) => typeof text === "string" ? _nullishCoalesce(text.split(/(?<=\.)\s/)[0], () => ( text)) : "";
|
|
86
|
-
function toolFeatures(tool) {
|
|
87
|
-
const inputs = Object.entries(inputProperties(tool)).flatMap(
|
|
88
|
-
([name, value]) => {
|
|
89
|
-
const schema = asRecord(value);
|
|
90
|
-
if (!isFeatureView(schema.feature)) return [];
|
|
91
|
-
return [
|
|
92
|
-
{
|
|
93
|
-
name,
|
|
94
|
-
summary: firstSentence(schema.description),
|
|
95
|
-
view: schema.feature,
|
|
96
|
-
...typeof schema.default === "string" ? { defaultValue: schema.default } : {}
|
|
97
|
-
}
|
|
98
|
-
];
|
|
99
|
-
}
|
|
100
|
-
);
|
|
101
|
-
const byok = _optionalChain([tool, 'access', _ => _.byok, 'optionalAccess', _2 => _2.supported]) === true ? [
|
|
102
|
-
{
|
|
103
|
-
name: "byok",
|
|
104
|
-
summary: "Run it on your own provider credentials.",
|
|
105
|
-
view: "byok"
|
|
106
|
-
}
|
|
107
|
-
] : [];
|
|
108
|
-
return [...inputs, ...byok];
|
|
109
|
-
}
|
|
110
|
-
function parseFeatureRequest(request) {
|
|
111
|
-
const [name = "", ...rest] = request.split("=");
|
|
112
|
-
const value = rest.join("=");
|
|
113
|
-
return value ? { name, value } : { name };
|
|
114
|
-
}
|
|
115
|
-
async function describeFeature(tool, feature, value, dependencies) {
|
|
116
|
-
return VIEWS[feature.view](_nullishCoalesce(value, () => ( feature.defaultValue)), tool, dependencies);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// src/cli/commands/describe.ts
|
|
120
|
-
var FILTER_OF = {
|
|
121
|
-
tool: "tools",
|
|
122
|
-
monitor_type: "monitors",
|
|
123
|
-
prebuilt_play: "prebuilts",
|
|
124
|
-
custom_play: "custom"
|
|
125
|
-
};
|
|
126
|
-
async function found(lookup) {
|
|
127
|
-
try {
|
|
128
|
-
return await lookup;
|
|
129
|
-
} catch (error) {
|
|
130
|
-
if (error instanceof _chunk7P5AA3SNjs.DeeplineError && (error.statusCode === 404 || error.code === "PLAY_NOT_FOUND" || error.code === "NOT_FOUND")) {
|
|
131
|
-
return null;
|
|
132
|
-
}
|
|
133
|
-
throw error;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
async function describeAnything(name, options, onMissing) {
|
|
137
|
-
const maintainedOnly = options.prebuilt === true || options.tool === true;
|
|
138
|
-
const wants = (filter) => (!options.kinds || options.kinds.includes(filter)) && !(maintainedOnly && filter === "custom");
|
|
139
|
-
const client = new (0, _chunk36ML3YKAjs.DeeplineClient)();
|
|
140
|
-
const play = async (reference) => {
|
|
141
|
-
const record2 = await client.describePlay(reference);
|
|
142
|
-
return {
|
|
143
|
-
described: _chunk4KLCLLTOjs.describedPlay.call(void 0, record2),
|
|
144
|
-
record: { ...record2 },
|
|
145
|
-
schemas: {
|
|
146
|
-
inputSchema: _nullishCoalesce(record2.inputSchema, () => ( null)),
|
|
147
|
-
outputSchema: _nullishCoalesce(record2.outputSchema, () => ( null))
|
|
148
|
-
}
|
|
149
|
-
};
|
|
150
|
-
};
|
|
151
|
-
const tool = async () => {
|
|
152
|
-
const record2 = await _asyncNullishCoalesce(options.fetchedTool, async () => ( await client.getTool(name)));
|
|
153
|
-
const { byok } = record2;
|
|
154
|
-
const features = toolFeatures(record2);
|
|
155
|
-
return {
|
|
156
|
-
described: {
|
|
157
|
-
..._chunkLZLBR2SFjs.describedTool.call(void 0, record2, name),
|
|
158
|
-
// Shown when the tool runs only on your own credentials; otherwise
|
|
159
|
-
// it is a feature, described with --feature byok.
|
|
160
|
-
..._optionalChain([byok, 'optionalAccess', _3 => _3.required]) === true ? { byok } : {},
|
|
161
|
-
...features.length ? { features: features.map(({ view: _view, ...feature }) => feature) } : {}
|
|
162
|
-
},
|
|
163
|
-
record: _chunkLZLBR2SFjs.toolMetadataJsonForDescribe.call(void 0, record2, name),
|
|
164
|
-
schemas: _chunkLZLBR2SFjs.publicToolSchemas.call(void 0, record2),
|
|
165
|
-
feature: (featureName, value) => {
|
|
166
|
-
const feature = features.find(({ name: name2 }) => name2 === featureName);
|
|
167
|
-
return feature ? describeFeature(record2, feature, value, {
|
|
168
|
-
describeModel: (model) => client.describeModel(model)
|
|
169
|
-
}) : null;
|
|
170
|
-
}
|
|
171
|
-
};
|
|
172
|
-
};
|
|
173
|
-
const sources = name.includes("/") ? [{ kinds: ["prebuilts", "custom"], find: () => play(name) }] : [
|
|
174
|
-
{ kinds: ["custom"], find: () => play(name) },
|
|
175
|
-
{ kinds: ["tools", "monitors"], find: tool },
|
|
176
|
-
{ kinds: ["prebuilts"], find: () => play(`prebuilt/${name}`) }
|
|
177
|
-
];
|
|
178
|
-
const matches = await Promise.all(
|
|
179
|
-
sources.filter((source) => source.kinds.some(wants)).map(async ({ kinds, find }) => {
|
|
180
|
-
const match = await found(find());
|
|
181
|
-
const filter = match && FILTER_OF[match.described.kind];
|
|
182
|
-
return filter && kinds.includes(filter) && wants(filter) ? match : null;
|
|
183
|
-
})
|
|
184
|
-
);
|
|
185
|
-
const [chosen, shadowed] = matches.filter((match) => match !== null);
|
|
186
|
-
if (!chosen) {
|
|
187
|
-
if (onMissing) return onMissing();
|
|
188
|
-
console.error(
|
|
189
|
-
`Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`
|
|
190
|
-
);
|
|
191
|
-
return 2;
|
|
192
|
-
}
|
|
193
|
-
const { described, record } = chosen;
|
|
194
|
-
const shadows = described.kind === "custom_play" && shadowed ? {
|
|
195
|
-
kind: shadowed.described.kind,
|
|
196
|
-
describeCommand: `deepline describe ${name} --prebuilt`
|
|
197
|
-
} : null;
|
|
198
|
-
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;
|
|
199
|
-
const verbose = options.verbose === true;
|
|
200
|
-
const json = options.json === true;
|
|
201
|
-
const isPlay = described.kind === "prebuilt_play" || described.kind === "custom_play";
|
|
202
|
-
const dashboardUrl = isPlay ? _chunk4KLCLLTOjs.buildPlayDashboardUrl.call(void 0, client.baseUrl, described.id) : null;
|
|
203
|
-
if (options.webUrl) {
|
|
204
|
-
if (!dashboardUrl) {
|
|
205
|
-
console.error(
|
|
206
|
-
`${described.id} is a ${described.kind.replace("_", " ")}, not a play; only plays have a play page.`
|
|
207
|
-
);
|
|
208
|
-
return 1;
|
|
209
|
-
}
|
|
210
|
-
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
|
|
211
|
-
{ dashboardUrl },
|
|
212
|
-
{ json, text: `${dashboardUrl}
|
|
213
|
-
` }
|
|
214
|
-
);
|
|
215
|
-
return 0;
|
|
216
|
-
}
|
|
217
|
-
if (options.feature !== void 0) {
|
|
218
|
-
const { name: featureName, value } = parseFeatureRequest(options.feature);
|
|
219
|
-
const pending = _nullishCoalesce(_optionalChain([chosen, 'access', _4 => _4.feature, 'optionalCall', _5 => _5(featureName, value)]), () => ( null));
|
|
220
|
-
const features = _nullishCoalesce(described.features, () => ( []));
|
|
221
|
-
if (!pending) {
|
|
222
|
-
console.error(
|
|
223
|
-
features.length ? `${described.id} has no feature "${featureName}". Its features: ${features.map(({ name: name2 }) => name2).join(", ")}.` : `${described.id} has no features to describe.`
|
|
224
|
-
);
|
|
225
|
-
return 2;
|
|
226
|
-
}
|
|
227
|
-
const shownValue = _nullishCoalesce(value, () => ( _optionalChain([features, 'access', _6 => _6.find, 'call', _7 => _7(({ name: name2 }) => name2 === featureName), 'optionalAccess', _8 => _8.defaultValue])));
|
|
228
|
-
const { details, lines } = await pending;
|
|
229
|
-
return deliver(
|
|
230
|
-
{
|
|
231
|
-
kind: described.kind,
|
|
232
|
-
id: described.id,
|
|
233
|
-
feature: featureName,
|
|
234
|
-
...shownValue ? { value: shownValue } : {},
|
|
235
|
-
details
|
|
236
|
-
},
|
|
237
|
-
[
|
|
238
|
-
`${described.id} --feature ${featureName}${shownValue ? `=${shownValue}` : ""}`,
|
|
239
|
-
...lines
|
|
240
|
-
],
|
|
241
|
-
{ json, out: options.out }
|
|
242
|
-
);
|
|
243
|
-
}
|
|
244
|
-
const fields = (_nullishCoalesce(options.fields, () => ( ""))).split(",").map((name2) => name2.trim()).filter(Boolean);
|
|
245
|
-
const named = options.cliExample === true || options.playExample === true;
|
|
246
|
-
const shown = options.example !== false;
|
|
247
|
-
const {
|
|
248
|
-
runner: _runner,
|
|
249
|
-
inputs,
|
|
250
|
-
outputs,
|
|
251
|
-
rowInputs: _rowInputs,
|
|
252
|
-
rowOutputs: _rowOutputs,
|
|
253
|
-
rowOutputsAddToSource: _rowOutputsAddToSource,
|
|
254
|
-
csvInput: _csvInput,
|
|
255
|
-
...summary
|
|
256
|
-
} = described;
|
|
257
|
-
const view = options.schemaOnly ? {
|
|
258
|
-
envelope: {
|
|
259
|
-
kind: described.kind,
|
|
260
|
-
id: described.id,
|
|
261
|
-
...chosen.schemas
|
|
262
|
-
},
|
|
263
|
-
lines: [
|
|
264
|
-
`${described.id} [${described.kind.replace("_", " ")}]`,
|
|
265
|
-
..._chunkZMVJSS6Njs.schemaLines.call(void 0, described, {
|
|
266
|
-
full: true,
|
|
267
|
-
secondary: true,
|
|
268
|
-
...fields.length ? { fields } : {}
|
|
269
|
-
})
|
|
270
|
-
]
|
|
271
|
-
} : {
|
|
272
|
-
envelope: {
|
|
273
|
-
...summary,
|
|
274
|
-
inputs: inputs.map(_chunkZMVJSS6Njs.topLevelField),
|
|
275
|
-
outputs: outputs.map(_chunkZMVJSS6Njs.topLevelField),
|
|
276
|
-
...described.rowInputs ? { rowInputs: described.rowInputs.map(_chunkZMVJSS6Njs.topLevelField) } : {},
|
|
277
|
-
...described.rowOutputs ? { rowOutputs: described.rowOutputs.map(_chunkZMVJSS6Njs.topLevelField) } : {},
|
|
278
|
-
runExamples: _chunkZMVJSS6Njs.examples.call(void 0, described, { verbose }),
|
|
279
|
-
...dashboardUrl ? { dashboardUrl } : {},
|
|
280
|
-
...shadows ? { shadows, note } : {}
|
|
281
|
-
},
|
|
282
|
-
lines: [
|
|
283
|
-
...note ? [`Note: ${note}`, ""] : [],
|
|
284
|
-
..._chunkZMVJSS6Njs.describedLines.call(void 0, described, {
|
|
285
|
-
cli: shown && (!named || options.cliExample === true),
|
|
286
|
-
play: shown && (!named || options.playExample === true),
|
|
287
|
-
explain: named,
|
|
288
|
-
verbose,
|
|
289
|
-
fullSchema: options.fullSchema === true,
|
|
290
|
-
...fields.length ? { fields } : {}
|
|
291
|
-
}),
|
|
292
|
-
...dashboardUrl ? ["", `Play page: ${dashboardUrl}`] : []
|
|
293
|
-
]
|
|
294
|
-
};
|
|
295
|
-
const fullRecord = options.fullRecord === true || options.fullSchema === true;
|
|
296
|
-
const envelope = options.schemaOnly ? view.envelope : fullRecord ? (
|
|
297
|
-
// The shared keys lead; where the kind's own record has the same key,
|
|
298
|
-
// its value stands, so callers of the older commands read what they did.
|
|
299
|
-
{ ...view.envelope, ...record }
|
|
300
|
-
) : {
|
|
301
|
-
..._chunkZMVJSS6Njs.describedJson.call(void 0, described, {
|
|
302
|
-
secondary: verbose || fields.length > 0,
|
|
303
|
-
verbose
|
|
304
|
-
}),
|
|
305
|
-
...dashboardUrl ? { dashboardUrl } : {},
|
|
306
|
-
...shadows ? { shadows, note } : {}
|
|
307
|
-
};
|
|
308
|
-
return deliver(envelope, view.lines, { json, out: options.out });
|
|
309
|
-
}
|
|
310
|
-
function deliver(envelope, lines, { json, out }) {
|
|
311
|
-
const text = `${lines.join("\n")}
|
|
312
|
-
`;
|
|
313
|
-
if (out) {
|
|
314
|
-
const path = _path.resolve.call(void 0, out);
|
|
315
|
-
const content = json ? `${JSON.stringify(envelope, null, 2)}
|
|
316
|
-
` : text;
|
|
317
|
-
_fs.writeFileSync.call(void 0, path, content);
|
|
318
|
-
const bytes = Buffer.byteLength(content);
|
|
319
|
-
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0,
|
|
320
|
-
{ path, bytes },
|
|
321
|
-
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
322
|
-
` }
|
|
323
|
-
);
|
|
324
|
-
return 0;
|
|
325
|
-
}
|
|
326
|
-
_chunkHRWUQJ4Kjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
327
|
-
return 0;
|
|
328
|
-
}
|
|
329
|
-
function registerDescribeCommand(program) {
|
|
330
|
-
_chunkZMVJSS6Njs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
331
|
-
"Describe anything search returns: a tool, monitor type, or play."
|
|
332
|
-
).addHelpText(
|
|
333
|
-
"after",
|
|
334
|
-
`
|
|
335
|
-
What you can describe:
|
|
336
|
-
Any id deepline search returns: a tool id, a monitor type id, or a play name
|
|
337
|
-
or reference. You do not say which kind it is; tool ids, monitor type ids
|
|
338
|
-
and prebuilt play names never overlap.
|
|
339
|
-
|
|
340
|
-
When a name is taken twice:
|
|
341
|
-
A play your workspace created is shown instead of a Deepline tool, monitor
|
|
342
|
-
type or prebuilt play with the same name, and the output says so.
|
|
343
|
-
Pass --prebuilt (or --tool) to see the Deepline one.
|
|
344
|
-
|
|
345
|
-
What it prints:
|
|
346
|
-
The same sections for every kind: what it is, cost, inputs, outputs, then
|
|
347
|
-
an example of running it from the CLI and from inside a play.
|
|
348
|
-
|
|
349
|
-
Examples in the output:
|
|
350
|
-
(default) required inputs filled in, first output read
|
|
351
|
-
--verbose every input filled in, every output read; also shows
|
|
352
|
-
secondary fields
|
|
353
|
-
--cli-example only the CLI example, with how inputs and outputs work
|
|
354
|
-
--play-example only the in-play example, with how inputs and outputs work
|
|
355
|
-
--no-example no examples
|
|
356
|
-
|
|
357
|
-
Features:
|
|
358
|
-
A tool lists its features: parts with their own description, such as the
|
|
359
|
-
model an AI tool runs. --feature <name> describes one at its default value,
|
|
360
|
-
--feature <name>=<value> at another, e.g. --feature model=openai/gpt-5.6-luna.
|
|
361
|
-
|
|
362
|
-
Schema size and format:
|
|
363
|
-
Secondary fields (diagnostics, attempt logs, echoes of input) are left out
|
|
364
|
-
by default; the output names them, and --verbose shows them.
|
|
365
|
-
--fields email,miss_reason shows only the fields you name, plus every
|
|
366
|
-
required input, and names the rest. Use it when you know what you need.
|
|
367
|
-
A schema over ${_chunkZMVJSS6Njs.SCHEMA_LINE_LIMIT} lines is folded: deeper objects show only their field
|
|
368
|
-
names. A shape used more than once is printed once under Types.
|
|
369
|
-
--full-schema the normal output, with the schema not folded
|
|
370
|
-
--schema-only only the schema, not folded, and nothing else
|
|
371
|
-
--json the same facts as JSON: fields keyed by name, with what
|
|
372
|
-
each means and, for a tool, where it is in the result;
|
|
373
|
-
secondary fields are named in "hidden"
|
|
374
|
-
--json --full-schema the whole catalog record, as tools describe and
|
|
375
|
-
plays describe print it
|
|
376
|
-
--schema-only --json
|
|
377
|
-
only the input and output JSON Schemas; use this for a
|
|
378
|
-
program, or for a schema too large to read
|
|
379
|
-
--out <path> save any of the above to a file instead of printing it
|
|
380
|
-
|
|
381
|
-
Play page:
|
|
382
|
-
For a play, the output ends with its play page URL (JSON: dashboardUrl).
|
|
383
|
-
--web-url print only that URL; with --json, {"dashboardUrl": ...}.
|
|
384
|
-
Fails for a tool or monitor type, which have no play page.
|
|
385
|
-
|
|
386
|
-
Older commands:
|
|
387
|
-
deepline tools describe and deepline plays describe are this command limited
|
|
388
|
-
to one kind. Their own flags still work: --pricing-only, --examples-only,
|
|
389
|
-
--model and --estimate-payload on tools; --json <fields> on plays.
|
|
390
|
-
|
|
391
|
-
Examples:
|
|
392
|
-
deepline describe hunter_email_verifier
|
|
393
|
-
deepline describe person-linkedin-to-email
|
|
394
|
-
deepline describe my-play --prebuilt
|
|
395
|
-
deepline describe ai_ark_people_search --full-schema
|
|
396
|
-
deepline describe prebuilt/person-to-email-batch --web-url
|
|
397
|
-
deepline describe ai_ark_people_search --schema-only --out schema.json
|
|
398
|
-
`
|
|
399
|
-
).action(async (name, options) => {
|
|
400
|
-
process.exitCode = await describeAnything(name, options);
|
|
401
|
-
});
|
|
402
|
-
}
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
exports.describeAnything = describeAnything; exports.registerDescribeCommand = registerDescribeCommand;
|
package/dist/cli/git-EJQLRK27.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
var _chunkK5T3EN6Djs = require('./chunk-K5T3EN6D.js');
|
|
9
|
-
require('./chunk-HRWUQJ4K.js');
|
|
10
|
-
require('./chunk-56IFFVIB.js');
|
|
11
|
-
require('./chunk-XNYIZMNQ.js');
|
|
12
|
-
require('./chunk-7P5AA3SN.js');
|
|
13
|
-
require('./chunk-TO2MWPGR.js');
|
|
14
|
-
require('./chunk-OG64RBAC.js');
|
|
15
|
-
require('./chunk-COGTRVWW.js');
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
exports.handleDeploymentGet = _chunkK5T3EN6Djs.handleDeploymentGet; exports.handleDeploymentsList = _chunkK5T3EN6Djs.handleDeploymentsList; exports.registerGitCommands = _chunkK5T3EN6Djs.registerGitCommands; exports.renderDeployment = _chunkK5T3EN6Djs.renderDeployment; exports.renderDeploymentMonitorLines = _chunkK5T3EN6Djs.renderDeploymentMonitorLines; exports.renderDeploymentPlayLines = _chunkK5T3EN6Djs.renderDeploymentPlayLines;
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
PREBUILT_PLAY_TAG_KEYS,
|
|
3
|
-
assertDatasetHasExportableRows,
|
|
4
|
-
buildPlayCompletionTextLines,
|
|
5
|
-
buildPlayDashboardUrl,
|
|
6
|
-
buildRunActivityTextLines,
|
|
7
|
-
buildRunLaunch,
|
|
8
|
-
buildRunLogsText,
|
|
9
|
-
buildRunPackageTextLines,
|
|
10
|
-
buildStopAllDryRunTextLines,
|
|
11
|
-
clampJsonPreviewText,
|
|
12
|
-
compactPlayStatus,
|
|
13
|
-
csvColumnLines,
|
|
14
|
-
describeSleepUntil,
|
|
15
|
-
describedPlay,
|
|
16
|
-
exportPlayStatusRows,
|
|
17
|
-
formatPlaySandboxRuntimeWarning,
|
|
18
|
-
formatStepLabelFromNodeId,
|
|
19
|
-
getFinalStatusFromLiveEvent,
|
|
20
|
-
getProgressLinesFromLiveEvent,
|
|
21
|
-
getRunningHeartbeatLine,
|
|
22
|
-
getStepTransitionLineFromLiveEvent,
|
|
23
|
-
handlePlayCheck,
|
|
24
|
-
handlePlayDelete,
|
|
25
|
-
handlePlayDescribe,
|
|
26
|
-
handlePlayGet,
|
|
27
|
-
handlePlayGrep,
|
|
28
|
-
handlePlayList,
|
|
29
|
-
handlePlayPin,
|
|
30
|
-
handlePlayPublish,
|
|
31
|
-
handlePlayRestore,
|
|
32
|
-
handlePlayRun,
|
|
33
|
-
handlePlaySave,
|
|
34
|
-
handlePlaySharePublish,
|
|
35
|
-
handlePlayShareRegenerate,
|
|
36
|
-
handlePlayShareStatus,
|
|
37
|
-
handlePlayShareUnpublish,
|
|
38
|
-
handlePlayShareUpdate,
|
|
39
|
-
handlePlayVersions,
|
|
40
|
-
handleRunEventSearch,
|
|
41
|
-
handleRunExport,
|
|
42
|
-
handleRunGet,
|
|
43
|
-
handleRunLifecycleStatus,
|
|
44
|
-
handleRunLogs,
|
|
45
|
-
handleRunStop,
|
|
46
|
-
handleRunStopAll,
|
|
47
|
-
handleRunTail,
|
|
48
|
-
handleRunsList,
|
|
49
|
-
handleRunsRerun,
|
|
50
|
-
liveMaxCreditsPerRun,
|
|
51
|
-
loadPlayBundler,
|
|
52
|
-
parsePlayPublishOptions,
|
|
53
|
-
parsePlayRunHeaderFlag,
|
|
54
|
-
parsePlayRunOptions,
|
|
55
|
-
preflightLocalFileInputs,
|
|
56
|
-
registerPlayCommands,
|
|
57
|
-
renderRunOverviewText,
|
|
58
|
-
resolveDatasetByName,
|
|
59
|
-
resolvePlayRunOutputStatus,
|
|
60
|
-
resolveRunStopState,
|
|
61
|
-
selectRunLogTailPage,
|
|
62
|
-
shouldPrintPlayProgressLine,
|
|
63
|
-
startAndWaitForPlayCompletionByStream,
|
|
64
|
-
truncateErrorForDisplay,
|
|
65
|
-
waitForPlayCompletionByWatch,
|
|
66
|
-
withTerminalPlayIdentity,
|
|
67
|
-
writePlayRunIdFile
|
|
68
|
-
} from "./chunk-XMAPE2KH.mjs";
|
|
69
|
-
import "./chunk-3TRY7KAC.mjs";
|
|
70
|
-
import "./chunk-VB6KECLU.mjs";
|
|
71
|
-
import "./chunk-OVDNJAJN.mjs";
|
|
72
|
-
import "./chunk-3HWALOL2.mjs";
|
|
73
|
-
import "./chunk-H7HIDGZ7.mjs";
|
|
74
|
-
import "./chunk-HQXL5526.mjs";
|
|
75
|
-
import "./chunk-7XAM7KDW.mjs";
|
|
76
|
-
import "./chunk-ERFN2QY4.mjs";
|
|
77
|
-
import "./chunk-3HU47EGZ.mjs";
|
|
78
|
-
import "./chunk-G4IWGRMK.mjs";
|
|
79
|
-
import "./chunk-6IKARAYD.mjs";
|
|
80
|
-
import "./chunk-JI2B4RZP.mjs";
|
|
81
|
-
import "./chunk-5VCZ3WRH.mjs";
|
|
82
|
-
import "./chunk-UBKA33KY.mjs";
|
|
83
|
-
import "./chunk-UFS752TU.mjs";
|
|
84
|
-
import "./chunk-GAMFK2ZP.mjs";
|
|
85
|
-
import "./chunk-47M6HPGP.mjs";
|
|
86
|
-
import "./chunk-6D7A2FSL.mjs";
|
|
87
|
-
import "./chunk-DLIRSHV6.mjs";
|
|
88
|
-
import "./chunk-NXGCO4JB.mjs";
|
|
89
|
-
import "./chunk-BON3DRC6.mjs";
|
|
90
|
-
import "./chunk-WZYKRD7T.mjs";
|
|
91
|
-
import "./chunk-KRD6H754.mjs";
|
|
92
|
-
export {
|
|
93
|
-
PREBUILT_PLAY_TAG_KEYS,
|
|
94
|
-
assertDatasetHasExportableRows,
|
|
95
|
-
buildPlayCompletionTextLines,
|
|
96
|
-
buildPlayDashboardUrl,
|
|
97
|
-
buildRunActivityTextLines,
|
|
98
|
-
buildRunLaunch,
|
|
99
|
-
buildRunLogsText,
|
|
100
|
-
buildRunPackageTextLines,
|
|
101
|
-
buildStopAllDryRunTextLines,
|
|
102
|
-
clampJsonPreviewText,
|
|
103
|
-
compactPlayStatus,
|
|
104
|
-
csvColumnLines,
|
|
105
|
-
describeSleepUntil,
|
|
106
|
-
describedPlay,
|
|
107
|
-
exportPlayStatusRows,
|
|
108
|
-
formatPlaySandboxRuntimeWarning,
|
|
109
|
-
formatStepLabelFromNodeId,
|
|
110
|
-
getFinalStatusFromLiveEvent,
|
|
111
|
-
getProgressLinesFromLiveEvent,
|
|
112
|
-
getRunningHeartbeatLine,
|
|
113
|
-
getStepTransitionLineFromLiveEvent,
|
|
114
|
-
handlePlayCheck,
|
|
115
|
-
handlePlayDelete,
|
|
116
|
-
handlePlayDescribe,
|
|
117
|
-
handlePlayGet,
|
|
118
|
-
handlePlayGrep,
|
|
119
|
-
handlePlayList,
|
|
120
|
-
handlePlayPin,
|
|
121
|
-
handlePlayPublish,
|
|
122
|
-
handlePlayRestore,
|
|
123
|
-
handlePlayRun,
|
|
124
|
-
handlePlaySave,
|
|
125
|
-
handlePlaySharePublish,
|
|
126
|
-
handlePlayShareRegenerate,
|
|
127
|
-
handlePlayShareStatus,
|
|
128
|
-
handlePlayShareUnpublish,
|
|
129
|
-
handlePlayShareUpdate,
|
|
130
|
-
handlePlayVersions,
|
|
131
|
-
handleRunEventSearch,
|
|
132
|
-
handleRunExport,
|
|
133
|
-
handleRunGet,
|
|
134
|
-
handleRunLifecycleStatus,
|
|
135
|
-
handleRunLogs,
|
|
136
|
-
handleRunStop,
|
|
137
|
-
handleRunStopAll,
|
|
138
|
-
handleRunTail,
|
|
139
|
-
handleRunsList,
|
|
140
|
-
handleRunsRerun,
|
|
141
|
-
liveMaxCreditsPerRun,
|
|
142
|
-
loadPlayBundler,
|
|
143
|
-
parsePlayPublishOptions,
|
|
144
|
-
parsePlayRunHeaderFlag,
|
|
145
|
-
parsePlayRunOptions,
|
|
146
|
-
preflightLocalFileInputs,
|
|
147
|
-
registerPlayCommands,
|
|
148
|
-
renderRunOverviewText,
|
|
149
|
-
resolveDatasetByName,
|
|
150
|
-
resolvePlayRunOutputStatus,
|
|
151
|
-
resolveRunStopState,
|
|
152
|
-
selectRunLogTailPage,
|
|
153
|
-
shouldPrintPlayProgressLine,
|
|
154
|
-
startAndWaitForPlayCompletionByStream,
|
|
155
|
-
truncateErrorForDisplay,
|
|
156
|
-
waitForPlayCompletionByWatch,
|
|
157
|
-
withTerminalPlayIdentity,
|
|
158
|
-
writePlayRunIdFile
|
|
159
|
-
};
|