deepline 0.3.374 → 0.3.376
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundling-sources/sdk/src/release.ts +1 -1
- package/dist/bundling-sources/shared_libs/play-runtime/transient-service-error.ts +56 -4
- package/dist/cli/auth-BTFXJQLT.js +35 -0
- package/dist/cli/{auth-YGCDA4WG.mjs → auth-MLCDUTJY.mjs} +6 -4
- package/dist/cli/{billing-ZXRKPD5D.js → billing-IONI4V7P.js} +73 -73
- package/dist/cli/{billing-3ZLR3CJU.mjs → billing-OUGNDBL4.mjs} +4 -4
- package/dist/cli/{chunk-TZTGK5JQ.js → chunk-34KUUN3Z.js} +52 -51
- package/dist/cli/{chunk-MOBOAZMA.js → chunk-47X6MQ7J.js} +60 -60
- package/dist/cli/{chunk-O7KJYX7R.js → chunk-4V2Q3JO6.js} +15 -15
- package/dist/cli/{chunk-JSK6GUY6.js → chunk-4WINCNNH.js} +13 -9
- package/dist/cli/{chunk-T35LCTC7.js → chunk-5HDB7XXT.js} +235 -235
- package/dist/cli/{chunk-62IBVKWB.mjs → chunk-5HJHTZI6.mjs} +1 -1
- package/dist/cli/{chunk-RT5ICJ5V.js → chunk-6EYTKUDI.js} +2 -2
- package/dist/cli/{chunk-IZVGMVNX.mjs → chunk-7LX2G2PU.mjs} +1 -1
- package/dist/cli/{chunk-NOSIMGZV.js → chunk-7ZZSGV4A.js} +1 -1
- package/dist/cli/{chunk-YPVTQRUM.js → chunk-A6ZTYKYF.js} +33 -7
- package/dist/cli/{chunk-HC5L6KGE.js → chunk-ETUV6RRK.js} +1495 -1495
- package/dist/cli/{chunk-46JCJ7FT.mjs → chunk-FWF24ULX.mjs} +13 -9
- package/dist/cli/{chunk-GT6KGIWV.mjs → chunk-GMRWUGXB.mjs} +3 -3
- package/dist/cli/{chunk-A62HBMHY.mjs → chunk-H7SLESX6.mjs} +1467 -1467
- package/dist/cli/{chunk-VZSVYNZH.mjs → chunk-HDB4GAWY.mjs} +12 -12
- package/dist/cli/{chunk-RXR7A2MX.js → chunk-KHZ6WEVF.js} +26 -26
- package/dist/cli/{chunk-OS7GXARW.mjs → chunk-L6OSOKS6.mjs} +7 -7
- package/dist/cli/{chunk-NNYQ24O5.mjs → chunk-MHRDXS7J.mjs} +1 -1
- package/dist/cli/{chunk-JK547IDB.js → chunk-N6KIEYZV.js} +15 -15
- package/dist/cli/{chunk-3XKAOV74.js → chunk-QSH5CHRI.js} +6 -6
- package/dist/cli/{chunk-OYTPVM2R.mjs → chunk-SPZNLE2D.mjs} +2 -2
- package/dist/cli/{chunk-2DAWTVNN.mjs → chunk-UABI2T3Z.mjs} +2 -2
- package/dist/cli/{chunk-E6BZWURC.mjs → chunk-UE2UHYT3.mjs} +33 -7
- package/dist/cli/{chunk-MQ5UW5AZ.mjs → chunk-V7ZREPSD.mjs} +4 -4
- package/dist/cli/{chunk-SBB27CIJ.mjs → chunk-VL5ERG22.mjs} +2 -2
- package/dist/cli/{chunk-FT6O2ZVJ.mjs → chunk-VNBAOWN3.mjs} +13 -32
- package/dist/cli/{chunk-PCYCNZLR.js → chunk-Y4MXBE3V.js} +8 -8
- package/dist/cli/{chunk-X5V2QTDR.js → chunk-Y5W5IIA4.js} +65 -84
- package/dist/cli/{chunk-YFFH6NDU.mjs → chunk-YXQ7SRL3.mjs} +3 -2
- package/dist/cli/{chunk-53PZA4EP.js → chunk-ZXFGA2VK.js} +8 -8
- package/dist/cli/command-docs.js +2 -2
- package/dist/cli/command-docs.mjs +1 -1
- package/dist/cli/{csv-WSRTANXI.js → csv-LPC7BGZ2.js} +12 -12
- package/dist/cli/{csv-VEHHRUG4.mjs → csv-NITSP7QJ.mjs} +3 -3
- package/dist/cli/{db-BH25DX2G.mjs → db-JVDYEXNC.mjs} +4 -4
- package/dist/cli/{db-JXZNMFCE.js → db-WGD54UKM.js} +29 -29
- package/dist/cli/{describe-N2OBGVJM.js → describe-GA7LSJRY.js} +144 -34
- package/dist/cli/{describe-TMBECHTX.mjs → describe-SVMLA6SN.mjs} +130 -20
- package/dist/cli/{executions-Y4HQHYSO.mjs → executions-CXBJDGMU.mjs} +4 -4
- package/dist/cli/{executions-TX5CQF66.js → executions-P47HEI4N.js} +6 -6
- package/dist/cli/{feedback-W7SRXYSP.mjs → feedback-34OSXUQ2.mjs} +3 -3
- package/dist/cli/{feedback-ASEJ5A7I.js → feedback-GWKWE5CU.js} +7 -7
- package/dist/cli/git-MIPISCON.js +23 -0
- package/dist/cli/{git-2W7CZZRC.mjs → git-YAROF6D3.mjs} +4 -4
- package/dist/cli/index.js +106 -91
- package/dist/cli/index.mjs +63 -48
- package/dist/cli/{legacy-noops-TXMPY3P7.mjs → legacy-noops-2G55OKIU.mjs} +4 -4
- package/dist/cli/{legacy-noops-NJYAAGBY.js → legacy-noops-MDZQL3QH.js} +7 -7
- package/dist/cli/{monitors-G4L65QGQ.mjs → monitors-KUGKMABN.mjs} +4 -4
- package/dist/cli/{monitors-YLKTQ57D.js → monitors-X7QYWFSP.js} +85 -85
- package/dist/cli/{org-ENXO2A33.js → org-6XL3IBT2.js} +64 -64
- package/dist/cli/{org-BCHOWKIA.mjs → org-CNBBAN4W.mjs} +4 -4
- package/dist/cli/{play-JBY7HUYN.mjs → play-33ZMPAR5.mjs} +8 -8
- package/dist/cli/play-3CM3P2DS.js +155 -0
- package/dist/cli/{providers-JV2DZG43.mjs → providers-3OSQNFPE.mjs} +4 -4
- package/dist/cli/{providers-GWFX3E7C.js → providers-5POAURDT.js} +7 -7
- package/dist/cli/{quickstart-CASPK7F4.js → quickstart-LQGPDJTS.js} +5 -5
- package/dist/cli/{quickstart-AIXURXZQ.mjs → quickstart-QICTOOW6.mjs} +3 -3
- package/dist/cli/search-A2YLJ4I5.js +26 -0
- package/dist/cli/{search-DYQB7LHK.mjs → search-HBIX4SF4.mjs} +5 -5
- package/dist/cli/{secrets-RQZPIPO5.mjs → secrets-6MRGZPHT.mjs} +4 -4
- package/dist/cli/{secrets-AZQG2E4U.js → secrets-QKPBNQ3E.js} +13 -13
- package/dist/cli/{sessions-3FJJDMBB.mjs → sessions-NODY2OW4.mjs} +4 -4
- package/dist/cli/{sessions-ZY6RBYD4.js → sessions-NP7BLZD2.js} +5 -5
- package/dist/cli/{settings-GXKWNR5V.js → settings-42QHXUB2.js} +74 -74
- package/dist/cli/{settings-UNZDQGSE.mjs → settings-JCEIOTNL.mjs} +7 -7
- package/dist/cli/{setup-PIRXJ2KJ.mjs → setup-3QR4RGMG.mjs} +6 -6
- package/dist/cli/{setup-UURZD4YO.js → setup-5XXWP54Y.js} +41 -41
- package/dist/cli/skills-4JJEAA66.js +28 -0
- package/dist/cli/{skills-B4AQEIAF.mjs → skills-U4OMXLNS.mjs} +4 -4
- package/dist/cli/{tools-UMGQKUSW.mjs → tools-45OROEZQ.mjs} +7 -7
- package/dist/cli/tools-FDCFSA7W.js +40 -0
- package/dist/cli/{update-SFUTMEKL.mjs → update-2XCRMJ4R.mjs} +6 -6
- package/dist/cli/update-VYL4TXIE.js +28 -0
- package/dist/cli/{workflow-CDAJCMT7.js → workflow-47P4LQNC.js} +15 -15
- package/dist/cli/{workflow-ON6XVW36.mjs → workflow-7X3GCOPY.mjs} +5 -5
- package/dist/index.js +8 -8
- package/dist/index.mjs +7 -7
- package/dist/install-integrity.json +76 -78
- 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-IFXXXZP6.js +0 -33
- package/dist/cli/client-O6IEMURJ.js +0 -20
- package/dist/cli/client-TV254HC4.mjs +0 -20
- package/dist/cli/git-SSSOIQ2L.js +0 -23
- package/dist/cli/play-SSJ3PO4D.js +0 -155
- package/dist/cli/search-N7K6A2YV.js +0 -26
- package/dist/cli/skills-4OUZLKTW.js +0 -28
- package/dist/cli/tools-MIZS5UN6.js +0 -40
- package/dist/cli/update-3CO7LA4M.js +0 -28
|
@@ -1,52 +1,119 @@
|
|
|
1
|
-
import {
|
|
2
|
-
describedPlay
|
|
3
|
-
} from "./chunk-OS7GXARW.mjs";
|
|
4
1
|
import {
|
|
5
2
|
describedTool,
|
|
3
|
+
formatModelDescription,
|
|
6
4
|
publicToolSchemas,
|
|
7
5
|
toolMetadataJsonForDescribe
|
|
8
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-VNBAOWN3.mjs";
|
|
7
|
+
import {
|
|
8
|
+
describedPlay
|
|
9
|
+
} from "./chunk-L6OSOKS6.mjs";
|
|
9
10
|
import {
|
|
10
11
|
SCHEMA_LINE_LIMIT,
|
|
11
12
|
addDescribeOptions,
|
|
13
|
+
byokLines,
|
|
12
14
|
describedJson,
|
|
13
15
|
describedLines,
|
|
14
16
|
examples,
|
|
15
17
|
schemaLines,
|
|
16
18
|
topLevelField
|
|
17
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-UE2UHYT3.mjs";
|
|
18
20
|
import "./chunk-OVDNJAJN.mjs";
|
|
19
21
|
import "./chunk-DSWSEHRX.mjs";
|
|
20
22
|
import "./chunk-H7HIDGZ7.mjs";
|
|
21
23
|
import "./chunk-EDWJY6T4.mjs";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-
|
|
24
|
-
import "./chunk-ERFN2QY4.mjs";
|
|
24
|
+
import "./chunk-GMRWUGXB.mjs";
|
|
25
|
+
import "./chunk-UABI2T3Z.mjs";
|
|
25
26
|
import "./chunk-Y6VOGHF2.mjs";
|
|
27
|
+
import "./chunk-ERFN2QY4.mjs";
|
|
26
28
|
import "./chunk-7E66A24V.mjs";
|
|
27
29
|
import {
|
|
28
30
|
DeeplineClient
|
|
29
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-H7SLESX6.mjs";
|
|
30
32
|
import "./chunk-6IKARAYD.mjs";
|
|
31
33
|
import "./chunk-CBVIJSHF.mjs";
|
|
32
|
-
import "./chunk-UFS752TU.mjs";
|
|
33
34
|
import "./chunk-WXLOW623.mjs";
|
|
35
|
+
import "./chunk-UFS752TU.mjs";
|
|
34
36
|
import "./chunk-GAMFK2ZP.mjs";
|
|
35
37
|
import {
|
|
36
38
|
printCommandEnvelope
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
39
|
+
} from "./chunk-MHRDXS7J.mjs";
|
|
40
|
+
import "./chunk-HDB4GAWY.mjs";
|
|
39
41
|
import "./chunk-DLIRSHV6.mjs";
|
|
40
42
|
import {
|
|
41
43
|
DeeplineError
|
|
42
44
|
} from "./chunk-NXGCO4JB.mjs";
|
|
43
|
-
import "./chunk-
|
|
45
|
+
import "./chunk-7LX2G2PU.mjs";
|
|
44
46
|
import "./chunk-WZYKRD7T.mjs";
|
|
45
47
|
import "./chunk-KRD6H754.mjs";
|
|
46
48
|
|
|
47
49
|
// src/cli/commands/describe.ts
|
|
48
50
|
import { writeFileSync } from "fs";
|
|
49
51
|
import { resolve } from "path";
|
|
52
|
+
|
|
53
|
+
// src/cli/tool-features.ts
|
|
54
|
+
var VIEWS = {
|
|
55
|
+
ai_gateway_model: async (value, _tool, { describeModel }) => {
|
|
56
|
+
if (!value)
|
|
57
|
+
throw new Error("Name a model: --feature model=<provider/model>");
|
|
58
|
+
const model = await describeModel(value);
|
|
59
|
+
const unlisted = model.modelMetadata ? [] : [
|
|
60
|
+
`Warning: ${value} is not in the live AI Gateway catalog; check the id at https://ai-gateway.vercel.sh/v1/models.`
|
|
61
|
+
];
|
|
62
|
+
return {
|
|
63
|
+
details: model,
|
|
64
|
+
lines: [
|
|
65
|
+
...unlisted,
|
|
66
|
+
...formatModelDescription(model).trimEnd().split("\n")
|
|
67
|
+
]
|
|
68
|
+
};
|
|
69
|
+
},
|
|
70
|
+
byok: async (_value, tool) => ({
|
|
71
|
+
details: tool.byok ?? {},
|
|
72
|
+
lines: byokLines(tool.byok ?? {})
|
|
73
|
+
})
|
|
74
|
+
};
|
|
75
|
+
var isFeatureView = (value) => typeof value === "string" && Object.hasOwn(VIEWS, value);
|
|
76
|
+
var asRecord = (value) => value && typeof value === "object" && !Array.isArray(value) ? value : {};
|
|
77
|
+
function inputProperties(tool) {
|
|
78
|
+
const inputSchema = asRecord(tool.inputSchema);
|
|
79
|
+
const jsonSchema = asRecord(inputSchema.jsonSchema ?? inputSchema);
|
|
80
|
+
return asRecord(jsonSchema.properties);
|
|
81
|
+
}
|
|
82
|
+
var firstSentence = (text) => typeof text === "string" ? text.split(/(?<=\.)\s/)[0] ?? text : "";
|
|
83
|
+
function toolFeatures(tool) {
|
|
84
|
+
const inputs = Object.entries(inputProperties(tool)).flatMap(
|
|
85
|
+
([name, value]) => {
|
|
86
|
+
const schema = asRecord(value);
|
|
87
|
+
if (!isFeatureView(schema.feature)) return [];
|
|
88
|
+
return [
|
|
89
|
+
{
|
|
90
|
+
name,
|
|
91
|
+
summary: firstSentence(schema.description),
|
|
92
|
+
view: schema.feature,
|
|
93
|
+
...typeof schema.default === "string" ? { defaultValue: schema.default } : {}
|
|
94
|
+
}
|
|
95
|
+
];
|
|
96
|
+
}
|
|
97
|
+
);
|
|
98
|
+
const byok = tool.byok?.supported === true ? [
|
|
99
|
+
{
|
|
100
|
+
name: "byok",
|
|
101
|
+
summary: "Run it on your own provider credentials.",
|
|
102
|
+
view: "byok"
|
|
103
|
+
}
|
|
104
|
+
] : [];
|
|
105
|
+
return [...inputs, ...byok];
|
|
106
|
+
}
|
|
107
|
+
function parseFeatureRequest(request) {
|
|
108
|
+
const [name = "", ...rest] = request.split("=");
|
|
109
|
+
const value = rest.join("=");
|
|
110
|
+
return value ? { name, value } : { name };
|
|
111
|
+
}
|
|
112
|
+
async function describeFeature(tool, feature, value, dependencies) {
|
|
113
|
+
return VIEWS[feature.view](value ?? feature.defaultValue, tool, dependencies);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
// src/cli/commands/describe.ts
|
|
50
117
|
var FILTER_OF = {
|
|
51
118
|
tool: "tools",
|
|
52
119
|
monitor_type: "monitors",
|
|
@@ -81,15 +148,23 @@ async function describeAnything(name, options, onMissing) {
|
|
|
81
148
|
const tool = async () => {
|
|
82
149
|
const record2 = options.fetchedTool ?? await client.getTool(name);
|
|
83
150
|
const { byok } = record2;
|
|
151
|
+
const features = toolFeatures(record2);
|
|
84
152
|
return {
|
|
85
153
|
described: {
|
|
86
154
|
...describedTool(record2, name),
|
|
87
|
-
// Shown when
|
|
88
|
-
//
|
|
89
|
-
...
|
|
155
|
+
// Shown when the tool runs only on your own credentials; otherwise
|
|
156
|
+
// it is a feature, described with --feature byok.
|
|
157
|
+
...byok?.required === true ? { byok } : {},
|
|
158
|
+
...features.length ? { features: features.map(({ view: _view, ...feature }) => feature) } : {}
|
|
90
159
|
},
|
|
91
160
|
record: toolMetadataJsonForDescribe(record2, name),
|
|
92
|
-
schemas: publicToolSchemas(record2)
|
|
161
|
+
schemas: publicToolSchemas(record2),
|
|
162
|
+
feature: (featureName, value) => {
|
|
163
|
+
const feature = features.find(({ name: name2 }) => name2 === featureName);
|
|
164
|
+
return feature ? describeFeature(record2, feature, value, {
|
|
165
|
+
describeModel: (model) => client.describeModel(model)
|
|
166
|
+
}) : null;
|
|
167
|
+
}
|
|
93
168
|
};
|
|
94
169
|
};
|
|
95
170
|
const sources = name.includes("/") ? [{ kinds: ["prebuilts", "custom"], find: () => play(name) }] : [
|
|
@@ -120,6 +195,33 @@ async function describeAnything(name, options, onMissing) {
|
|
|
120
195
|
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;
|
|
121
196
|
const verbose = options.verbose === true;
|
|
122
197
|
const json = options.json === true;
|
|
198
|
+
if (options.feature !== void 0) {
|
|
199
|
+
const { name: featureName, value } = parseFeatureRequest(options.feature);
|
|
200
|
+
const pending = chosen.feature?.(featureName, value) ?? null;
|
|
201
|
+
const features = described.features ?? [];
|
|
202
|
+
if (!pending) {
|
|
203
|
+
console.error(
|
|
204
|
+
features.length ? `${described.id} has no feature "${featureName}". Its features: ${features.map(({ name: name2 }) => name2).join(", ")}.` : `${described.id} has no features to describe.`
|
|
205
|
+
);
|
|
206
|
+
return 2;
|
|
207
|
+
}
|
|
208
|
+
const shownValue = value ?? features.find(({ name: name2 }) => name2 === featureName)?.defaultValue;
|
|
209
|
+
const { details, lines } = await pending;
|
|
210
|
+
return deliver(
|
|
211
|
+
{
|
|
212
|
+
kind: described.kind,
|
|
213
|
+
id: described.id,
|
|
214
|
+
feature: featureName,
|
|
215
|
+
...shownValue ? { value: shownValue } : {},
|
|
216
|
+
details
|
|
217
|
+
},
|
|
218
|
+
[
|
|
219
|
+
`${described.id} --feature ${featureName}${shownValue ? `=${shownValue}` : ""}`,
|
|
220
|
+
...lines
|
|
221
|
+
],
|
|
222
|
+
{ json, out: options.out }
|
|
223
|
+
);
|
|
224
|
+
}
|
|
123
225
|
const fields = (options.fields ?? "").split(",").map((name2) => name2.trim()).filter(Boolean);
|
|
124
226
|
const named = options.cliExample === true || options.playExample === true;
|
|
125
227
|
const shown = options.example !== false;
|
|
@@ -179,10 +281,13 @@ async function describeAnything(name, options, onMissing) {
|
|
|
179
281
|
}),
|
|
180
282
|
...shadows ? { shadows, note } : {}
|
|
181
283
|
};
|
|
182
|
-
|
|
284
|
+
return deliver(envelope, view.lines, { json, out: options.out });
|
|
285
|
+
}
|
|
286
|
+
function deliver(envelope, lines, { json, out }) {
|
|
287
|
+
const text = `${lines.join("\n")}
|
|
183
288
|
`;
|
|
184
|
-
if (
|
|
185
|
-
const path = resolve(
|
|
289
|
+
if (out) {
|
|
290
|
+
const path = resolve(out);
|
|
186
291
|
const content = json ? `${JSON.stringify(envelope, null, 2)}
|
|
187
292
|
` : text;
|
|
188
293
|
writeFileSync(path, content);
|
|
@@ -225,6 +330,11 @@ Examples in the output:
|
|
|
225
330
|
--play-example only the in-play example, with how inputs and outputs work
|
|
226
331
|
--no-example no examples
|
|
227
332
|
|
|
333
|
+
Features:
|
|
334
|
+
A tool lists its features: parts with their own description, such as the
|
|
335
|
+
model an AI tool runs. --feature <name> describes one at its default value,
|
|
336
|
+
--feature <name>=<value> at another, e.g. --feature model=openai/gpt-5.6-luna.
|
|
337
|
+
|
|
228
338
|
Schema size and format:
|
|
229
339
|
Secondary fields (diagnostics, attempt logs, echoes of input) are left out
|
|
230
340
|
by default; the output names them, and --verbose shows them.
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-H7SLESX6.mjs";
|
|
4
4
|
import "./chunk-6IKARAYD.mjs";
|
|
5
5
|
import "./chunk-CBVIJSHF.mjs";
|
|
6
6
|
import {
|
|
7
7
|
printCommandEnvelope
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-MHRDXS7J.mjs";
|
|
9
|
+
import "./chunk-HDB4GAWY.mjs";
|
|
10
10
|
import "./chunk-DLIRSHV6.mjs";
|
|
11
11
|
import "./chunk-NXGCO4JB.mjs";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-7LX2G2PU.mjs";
|
|
13
13
|
import "./chunk-WZYKRD7T.mjs";
|
|
14
14
|
import "./chunk-KRD6H754.mjs";
|
|
15
15
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkETUV6RRKjs = require('./chunk-ETUV6RRK.js');
|
|
4
4
|
require('./chunk-S6R3OX7B.js');
|
|
5
5
|
require('./chunk-LA46MMTL.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
9
|
-
require('./chunk-
|
|
8
|
+
var _chunkQSH5CHRIjs = require('./chunk-QSH5CHRI.js');
|
|
9
|
+
require('./chunk-N6KIEYZV.js');
|
|
10
10
|
require('./chunk-XNYIZMNQ.js');
|
|
11
11
|
require('./chunk-7P5AA3SN.js');
|
|
12
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-7ZZSGV4A.js');
|
|
13
13
|
require('./chunk-OG64RBAC.js');
|
|
14
14
|
require('./chunk-COGTRVWW.js');
|
|
15
15
|
|
|
@@ -17,10 +17,10 @@ require('./chunk-COGTRVWW.js');
|
|
|
17
17
|
function registerExecutionsCommands(program) {
|
|
18
18
|
const executions = program.command("executions").description("Inspect and recover keyed tool executions.");
|
|
19
19
|
executions.command("get").description("Retrieve a tool execution by its idempotency key.").requiredOption("--idempotency-key <key>", "Stable execution recovery key").option("--json", "Emit the stable JSON response").action(async (options) => {
|
|
20
|
-
const result = await new (0,
|
|
20
|
+
const result = await new (0, _chunkETUV6RRKjs.DeeplineClient)().executions.getByKey(
|
|
21
21
|
options.idempotencyKey
|
|
22
22
|
);
|
|
23
|
-
|
|
23
|
+
_chunkQSH5CHRIjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
|
|
@@ -2,13 +2,13 @@ import {
|
|
|
2
2
|
collectLocalEnvInfo,
|
|
3
3
|
getAuthedHttpClient,
|
|
4
4
|
printCommandEnvelope
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-MHRDXS7J.mjs";
|
|
6
6
|
import {
|
|
7
7
|
agentSessionIdFromEnvironment
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HDB4GAWY.mjs";
|
|
9
9
|
import "./chunk-DLIRSHV6.mjs";
|
|
10
10
|
import "./chunk-NXGCO4JB.mjs";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-7LX2G2PU.mjs";
|
|
12
12
|
import "./chunk-WZYKRD7T.mjs";
|
|
13
13
|
import "./chunk-KRD6H754.mjs";
|
|
14
14
|
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkQSH5CHRIjs = require('./chunk-QSH5CHRI.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkN6KIEYZVjs = require('./chunk-N6KIEYZV.js');
|
|
9
9
|
require('./chunk-XNYIZMNQ.js');
|
|
10
10
|
require('./chunk-7P5AA3SN.js');
|
|
11
|
-
require('./chunk-
|
|
11
|
+
require('./chunk-7ZZSGV4A.js');
|
|
12
12
|
require('./chunk-OG64RBAC.js');
|
|
13
13
|
require('./chunk-COGTRVWW.js');
|
|
14
14
|
|
|
@@ -17,18 +17,18 @@ var _commander = require('commander');
|
|
|
17
17
|
var _fs = require('fs');
|
|
18
18
|
async function handleFeedback(text, options) {
|
|
19
19
|
const message = resolveFeedbackText(text, options.file);
|
|
20
|
-
const { http } =
|
|
21
|
-
const sessionId =
|
|
20
|
+
const { http } = _chunkQSH5CHRIjs.getAuthedHttpClient.call(void 0, );
|
|
21
|
+
const sessionId = _chunkN6KIEYZVjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
22
22
|
const response = await http.post("/api/v2/cli/feedback", {
|
|
23
23
|
text: message,
|
|
24
24
|
requested: options.requested === true,
|
|
25
|
-
environment:
|
|
25
|
+
environment: _chunkQSH5CHRIjs.collectLocalEnvInfo.call(void 0, ),
|
|
26
26
|
...sessionId ? { session_id: sessionId } : {},
|
|
27
27
|
...options.command ? { command: options.command } : {},
|
|
28
28
|
...options.payload ? { payload: options.payload } : {},
|
|
29
29
|
...options.errorOutcome ? { error_outcome: options.errorOutcome } : {}
|
|
30
30
|
});
|
|
31
|
-
|
|
31
|
+
_chunkQSH5CHRIjs.printCommandEnvelope.call(void 0,
|
|
32
32
|
{
|
|
33
33
|
...response,
|
|
34
34
|
render: {
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
var _chunkKHZ6WEVFjs = require('./chunk-KHZ6WEVF.js');
|
|
9
|
+
require('./chunk-QSH5CHRI.js');
|
|
10
|
+
require('./chunk-N6KIEYZV.js');
|
|
11
|
+
require('./chunk-XNYIZMNQ.js');
|
|
12
|
+
require('./chunk-7P5AA3SN.js');
|
|
13
|
+
require('./chunk-7ZZSGV4A.js');
|
|
14
|
+
require('./chunk-OG64RBAC.js');
|
|
15
|
+
require('./chunk-COGTRVWW.js');
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
exports.handleDeploymentGet = _chunkKHZ6WEVFjs.handleDeploymentGet; exports.handleDeploymentsList = _chunkKHZ6WEVFjs.handleDeploymentsList; exports.registerGitCommands = _chunkKHZ6WEVFjs.registerGitCommands; exports.renderDeployment = _chunkKHZ6WEVFjs.renderDeployment; exports.renderDeploymentMonitorLines = _chunkKHZ6WEVFjs.renderDeploymentMonitorLines; exports.renderDeploymentPlayLines = _chunkKHZ6WEVFjs.renderDeploymentPlayLines;
|
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
renderDeployment,
|
|
6
6
|
renderDeploymentMonitorLines,
|
|
7
7
|
renderDeploymentPlayLines
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-UABI2T3Z.mjs";
|
|
9
|
+
import "./chunk-MHRDXS7J.mjs";
|
|
10
|
+
import "./chunk-HDB4GAWY.mjs";
|
|
11
11
|
import "./chunk-DLIRSHV6.mjs";
|
|
12
12
|
import "./chunk-NXGCO4JB.mjs";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-7LX2G2PU.mjs";
|
|
14
14
|
import "./chunk-WZYKRD7T.mjs";
|
|
15
15
|
import "./chunk-KRD6H754.mjs";
|
|
16
16
|
export {
|