deepline 0.3.396 → 0.3.398
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/fixture-behavior.ts +2 -2
- package/dist/bundling-sources/shared_libs/play-runtime/scheduler-backends/absurd-deadline-reconciliation.ts +50 -26
- package/dist/cli/auth-3GA2ASQF.js +40 -0
- package/dist/cli/{auth-3LTD62VL.mjs → auth-7ZBPAAZU.mjs} +5 -4
- package/dist/cli/{billing-DP7ZAJBO.mjs → billing-QTWEEL27.mjs} +5 -4
- package/dist/cli/{billing-PA5OXEM5.js → billing-WHP3YMNQ.js} +76 -75
- package/dist/cli/{chunk-I4T4XAA2.mjs → chunk-2QC2T7E3.mjs} +4 -4
- package/dist/cli/{chunk-3T4MCB5R.mjs → chunk-52HHMLRM.mjs} +89 -969
- package/dist/cli/{chunk-ME6XRFLY.js → chunk-6CBU7W56.js} +15 -15
- package/dist/cli/{chunk-LOGGNW4H.mjs → chunk-6DVXLWPB.mjs} +2 -2
- package/dist/cli/{chunk-AUYXWELC.mjs → chunk-6HXULNTW.mjs} +2 -2
- package/dist/cli/chunk-7DRPTGCK.js +930 -0
- package/dist/cli/{chunk-TLQ3FZOC.mjs → chunk-ATDUVJCW.mjs} +3 -3
- package/dist/cli/{chunk-23GAA3YO.mjs → chunk-AWQNG55D.mjs} +1 -1
- package/dist/cli/{chunk-NSOTASOP.js → chunk-BQR6UN3C.js} +1 -83
- package/dist/cli/{chunk-XKZXO7D3.mjs → chunk-CH6EFAJ3.mjs} +1 -1
- package/dist/cli/{chunk-KAEZNPUM.js → chunk-CTZJLQ7A.js} +13 -115
- package/dist/cli/{chunk-AVHLATII.js → chunk-FDAMQFQ7.js} +50 -50
- package/dist/cli/chunk-FIVKWNMT.mjs +210 -0
- package/dist/cli/{chunk-7Z66NHUC.js → chunk-G6BP55EP.js} +26 -26
- package/dist/cli/{chunk-GNN4MY5X.js → chunk-HFDBZXMV.js} +1 -1
- package/dist/cli/{describe-6O2ENKTP.mjs → chunk-HFYQBC2D.mjs} +22 -160
- package/dist/cli/chunk-HGFFYVXN.js +210 -0
- package/dist/cli/{chunk-5WNJF2T3.mjs → chunk-IHG7UAHD.mjs} +1 -83
- package/dist/cli/{chunk-QHGPA362.mjs → chunk-IJU5YQSF.mjs} +6 -108
- package/dist/cli/{chunk-772W2SAU.js → chunk-J4WYPANC.js} +8 -8
- package/dist/cli/{chunk-V7UP2F4U.js → chunk-JU3PF7WM.js} +21 -121
- package/dist/cli/{chunk-MR6XCBQJ.mjs → chunk-LCRQKI7D.mjs} +4 -2
- package/dist/cli/chunk-LJ5747UC.mjs +107 -0
- package/dist/cli/{chunk-LWERJUKN.js → chunk-NA4T3B62.js} +7 -215
- package/dist/cli/{chunk-WQJJNIMQ.js → chunk-NUBIAJI2.js} +11 -9
- package/dist/cli/chunk-OSDXE27V.mjs +88 -0
- package/dist/cli/{chunk-RMTASUAK.js → chunk-OU2RZYVS.js} +65 -65
- package/dist/cli/{chunk-JCN4DHF7.mjs → chunk-OVUFHUMG.mjs} +2 -2
- package/dist/cli/chunk-Q2E4E4FJ.js +112 -0
- package/dist/cli/{chunk-2VOLOWYZ.js → chunk-Q3FNSWJG.js} +293 -1173
- package/dist/cli/{chunk-NHB5YUCS.mjs → chunk-QP2TRM7M.mjs} +1 -1
- package/dist/cli/{describe-EFWNECHI.js → chunk-RFG3MRAC.js} +37 -175
- package/dist/cli/{chunk-RTO5QZWT.js → chunk-S22ZQZMU.js} +6 -6
- package/dist/cli/{chunk-H5KLUGY7.mjs → chunk-TXZVVBQZ.mjs} +1 -209
- package/dist/cli/{chunk-DC6LTULT.js → chunk-U46S43LV.js} +2 -2
- package/dist/cli/chunk-YHPYUZZX.mjs +112 -0
- package/dist/cli/chunk-YHZUZO3U.mjs +930 -0
- package/dist/cli/chunk-ZAAKSJAS.js +88 -0
- package/dist/cli/{chunk-VE3U3SQC.mjs → chunk-ZJ7HLJRF.mjs} +7 -107
- package/dist/cli/chunk-ZM2YPJQJ.js +107 -0
- package/dist/cli/{csv-TF576S77.js → csv-NM25BBX7.js} +13 -12
- package/dist/cli/{csv-RLRR74RQ.mjs → csv-TSBHKVNU.mjs} +4 -3
- package/dist/cli/{db-FDBJUTFO.js → db-GBDNQJF3.js} +30 -29
- package/dist/cli/{db-XORGNBIC.mjs → db-JQN6SYLK.mjs} +5 -4
- package/dist/cli/describe-ETTGW5LT.mjs +164 -0
- package/dist/cli/describe-NVLINP5A.js +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-YPP7WR77.mjs → executions-6S4KIVEY.mjs} +5 -4
- package/dist/cli/{executions-SFYAXPF4.js → executions-IH5JUPIT.js} +7 -6
- package/dist/cli/{feedback-5UZFYMGB.js → feedback-ER375ZCB.js} +8 -7
- package/dist/cli/{feedback-RBGA5ARU.mjs → feedback-PGOZLNXU.mjs} +4 -3
- package/dist/cli/{git-IRSAJEK2.mjs → git-7SBFCM52.mjs} +5 -4
- package/dist/cli/git-W6DBPLZO.js +24 -0
- package/dist/cli/index.js +93 -91
- package/dist/cli/index.mjs +35 -33
- package/dist/cli/{legacy-noops-CVAOQY2F.js → legacy-noops-IOEF2SB7.js} +8 -7
- package/dist/cli/{legacy-noops-NA7N6ZOU.mjs → legacy-noops-Q4UQIOQN.mjs} +5 -4
- package/dist/cli/{monitors-4OMRXCXP.js → monitors-NZ2J4YGD.js} +86 -85
- package/dist/cli/{monitors-ILZ2XHYG.mjs → monitors-RZYBFY3Z.mjs} +5 -4
- package/dist/cli/{org-YGNJDD2X.js → org-ERUOT4B2.js} +65 -64
- package/dist/cli/{org-QDDXAE3J.mjs → org-JLSEM6GG.mjs} +5 -4
- package/dist/cli/{play-L535H26U.js → play-7TUO7YNG.js} +251 -247
- package/dist/cli/{play-VT6OHB2D.mjs → play-Z73VC7YR.mjs} +19 -15
- package/dist/cli/{providers-KG4W5MPK.mjs → providers-7HIII2PW.mjs} +5 -4
- package/dist/cli/{providers-GPZ6PQAL.js → providers-ABKBK2C7.js} +8 -7
- package/dist/cli/{quickstart-UI27S5LO.js → quickstart-JBG5RTFZ.js} +6 -5
- package/dist/cli/{quickstart-2JDGTXIG.mjs → quickstart-QQAOCPCZ.mjs} +4 -3
- package/dist/cli/{search-PW3RAUX7.mjs → search-MT2Q64WC.mjs} +7 -5
- package/dist/cli/search-QMQBC6SV.js +30 -0
- package/dist/cli/{secrets-WFAXOUZE.js → secrets-MEW6LLU5.js} +14 -13
- package/dist/cli/{secrets-HNOMK5A2.mjs → secrets-ZFJPIT6B.mjs} +5 -4
- package/dist/cli/{sessions-XLX3E5UO.mjs → sessions-F2KVVZ2Z.mjs} +5 -4
- package/dist/cli/sessions-TBPU4S6M.js +16 -0
- package/dist/cli/{settings-GADAG2UK.js → settings-6VDZ6G5V.js} +75 -74
- package/dist/cli/{settings-YNZ4YKCH.mjs → settings-LUDDM7HO.mjs} +8 -7
- package/dist/cli/{setup-R5YO7GT6.js → setup-IP2KTFYO.js} +42 -41
- package/dist/cli/{setup-PSEHIUXO.mjs → setup-MCEY473G.mjs} +7 -6
- package/dist/cli/skills-EVIIEX6N.js +29 -0
- package/dist/cli/{skills-LTQBP6CZ.mjs → skills-KMJ3CY4O.mjs} +5 -4
- package/dist/cli/tools-KNLHQ3L6.js +39 -0
- package/dist/cli/{tools-UAXDWU63.mjs → tools-WY3PLUA7.mjs} +13 -8
- package/dist/cli/update-LVADY5YE.js +29 -0
- package/dist/cli/{update-SMNIBIMS.mjs → update-XBV52OFM.mjs} +7 -6
- package/dist/cli/{workflow-IKGMBGF6.mjs → workflow-5N5HMYDY.mjs} +6 -5
- package/dist/cli/{workflow-AOQVZHMD.js → workflow-CO7XWS4D.js} +16 -15
- package/dist/{client-DiGl8ska.d.mts → client-D0j-_aaa.d.mts} +1 -1
- package/dist/{client-Bgis7F6-.d.ts → client-DflfVyj6.d.ts} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +14 -10
- package/dist/index.mjs +19 -15
- package/dist/install-integrity.json +92 -76
- 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 +6 -1
- package/dist/cli/auth-562JPKOM.js +0 -39
- package/dist/cli/git-5LDY5ZID.js +0 -23
- package/dist/cli/search-MGWROZ33.js +0 -28
- package/dist/cli/sessions-366KROUA.js +0 -15
- package/dist/cli/skills-JF2LPEGM.js +0 -28
- package/dist/cli/tools-CP2PEFRN.js +0 -34
- package/dist/cli/update-HZHZOU6C.js +0 -28
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import {
|
|
2
|
+
seedToolListScript
|
|
3
|
+
} from "./chunk-52HHMLRM.mjs";
|
|
4
|
+
import {
|
|
5
|
+
addDescribeOptions
|
|
6
|
+
} from "./chunk-OSDXE27V.mjs";
|
|
7
|
+
import "./chunk-IJU5YQSF.mjs";
|
|
8
|
+
import {
|
|
9
|
+
describeLookupsFor,
|
|
10
|
+
describeName
|
|
11
|
+
} from "./chunk-HFYQBC2D.mjs";
|
|
12
|
+
import "./chunk-YHZUZO3U.mjs";
|
|
13
|
+
import {
|
|
14
|
+
SCHEMA_LINE_LIMIT
|
|
15
|
+
} from "./chunk-IHG7UAHD.mjs";
|
|
16
|
+
import "./chunk-OVDNJAJN.mjs";
|
|
17
|
+
import "./chunk-LJ5747UC.mjs";
|
|
18
|
+
import "./chunk-FIVKWNMT.mjs";
|
|
19
|
+
import "./chunk-TXZVVBQZ.mjs";
|
|
20
|
+
import "./chunk-3HU47EGZ.mjs";
|
|
21
|
+
import {
|
|
22
|
+
DeeplineClient
|
|
23
|
+
} from "./chunk-LCRQKI7D.mjs";
|
|
24
|
+
import "./chunk-6IKARAYD.mjs";
|
|
25
|
+
import "./chunk-JI2B4RZP.mjs";
|
|
26
|
+
import "./chunk-EIMG75BT.mjs";
|
|
27
|
+
import "./chunk-UBKA33KY.mjs";
|
|
28
|
+
import "./chunk-WXLOW623.mjs";
|
|
29
|
+
import {
|
|
30
|
+
printCommandEnvelope
|
|
31
|
+
} from "./chunk-CH6EFAJ3.mjs";
|
|
32
|
+
import "./chunk-ZJ7HLJRF.mjs";
|
|
33
|
+
import "./chunk-YHPYUZZX.mjs";
|
|
34
|
+
import "./chunk-DLIRSHV6.mjs";
|
|
35
|
+
import "./chunk-NXGCO4JB.mjs";
|
|
36
|
+
import "./chunk-QP2TRM7M.mjs";
|
|
37
|
+
import "./chunk-WZYKRD7T.mjs";
|
|
38
|
+
import "./chunk-KRD6H754.mjs";
|
|
39
|
+
|
|
40
|
+
// src/cli/commands/describe.ts
|
|
41
|
+
import { writeFileSync } from "fs";
|
|
42
|
+
import { resolve } from "path";
|
|
43
|
+
async function describeAnything(name, options, onMissing) {
|
|
44
|
+
const client = new DeeplineClient();
|
|
45
|
+
const lookups = describeLookupsFor(client);
|
|
46
|
+
const outcome = await describeName(name, options, {
|
|
47
|
+
...lookups,
|
|
48
|
+
// `tools describe` has already fetched the tool for its compatibility check.
|
|
49
|
+
tool: async (toolName) => options.fetchedTool ?? lookups.tool(toolName),
|
|
50
|
+
seedStarterScript: seedToolListScript
|
|
51
|
+
});
|
|
52
|
+
if (outcome.status === "missing") {
|
|
53
|
+
if (onMissing) return onMissing();
|
|
54
|
+
console.error(
|
|
55
|
+
`Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`
|
|
56
|
+
);
|
|
57
|
+
return 2;
|
|
58
|
+
}
|
|
59
|
+
if (outcome.status === "refused") {
|
|
60
|
+
console.error(outcome.message);
|
|
61
|
+
return outcome.exitCode;
|
|
62
|
+
}
|
|
63
|
+
return deliver(outcome.envelope, outcome.lines, {
|
|
64
|
+
json: options.json === true,
|
|
65
|
+
out: options.out
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function deliver(envelope, lines, { json, out }) {
|
|
69
|
+
const text = `${lines.join("\n")}
|
|
70
|
+
`;
|
|
71
|
+
if (out) {
|
|
72
|
+
const path = resolve(out);
|
|
73
|
+
const content = json ? `${JSON.stringify(envelope, null, 2)}
|
|
74
|
+
` : text;
|
|
75
|
+
writeFileSync(path, content);
|
|
76
|
+
const bytes = Buffer.byteLength(content);
|
|
77
|
+
printCommandEnvelope(
|
|
78
|
+
{ path, bytes },
|
|
79
|
+
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
80
|
+
` }
|
|
81
|
+
);
|
|
82
|
+
return 0;
|
|
83
|
+
}
|
|
84
|
+
printCommandEnvelope(envelope, { json, text });
|
|
85
|
+
return 0;
|
|
86
|
+
}
|
|
87
|
+
function registerDescribeCommand(program) {
|
|
88
|
+
addDescribeOptions(program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
89
|
+
"Describe anything search returns: a tool, monitor type, or play."
|
|
90
|
+
).addHelpText(
|
|
91
|
+
"after",
|
|
92
|
+
`
|
|
93
|
+
What you can describe:
|
|
94
|
+
Any id deepline search returns: a tool id, a monitor type id, or a play name
|
|
95
|
+
or reference. You do not say which kind it is; tool ids, monitor type ids
|
|
96
|
+
and prebuilt play names never overlap.
|
|
97
|
+
|
|
98
|
+
When a name is taken twice:
|
|
99
|
+
A play your workspace created is shown instead of a Deepline tool, monitor
|
|
100
|
+
type or prebuilt play with the same name, and the output says so.
|
|
101
|
+
Pass --prebuilt (or --tool) to see the Deepline one.
|
|
102
|
+
|
|
103
|
+
What it prints:
|
|
104
|
+
The same sections for every kind: what it is, cost, inputs, outputs, then
|
|
105
|
+
an example of running it from the CLI and from inside a play.
|
|
106
|
+
|
|
107
|
+
Examples in the output:
|
|
108
|
+
(default) required inputs filled in, first output read
|
|
109
|
+
--verbose every input filled in, every output read; also shows
|
|
110
|
+
secondary fields
|
|
111
|
+
--cli-example only the CLI example, with how inputs and outputs work
|
|
112
|
+
--play-example only the in-play example, with how inputs and outputs work
|
|
113
|
+
--no-example no examples
|
|
114
|
+
|
|
115
|
+
Features:
|
|
116
|
+
A tool lists its features: parts with their own description, such as the
|
|
117
|
+
model an AI tool runs. --feature <name> describes one at its default value,
|
|
118
|
+
--feature <name>=<value> at another, e.g. --feature model=openai/gpt-5.6-luna.
|
|
119
|
+
|
|
120
|
+
Schema size and format:
|
|
121
|
+
Secondary fields (diagnostics, attempt logs, echoes of input) are left out
|
|
122
|
+
by default; the output names them, and --verbose shows them.
|
|
123
|
+
--fields email,miss_reason shows only the fields you name, plus every
|
|
124
|
+
required input, and names the rest. Use it when you know what you need.
|
|
125
|
+
A schema over ${SCHEMA_LINE_LIMIT} lines is folded: deeper objects show only their field
|
|
126
|
+
names. A shape used more than once is printed once under Types.
|
|
127
|
+
--full-schema the normal output, with the schema not folded
|
|
128
|
+
--schema-only only the schema, not folded, and nothing else
|
|
129
|
+
--json the same facts as JSON: fields keyed by name, with what
|
|
130
|
+
each means and, for a tool, where it is in the result;
|
|
131
|
+
secondary fields are named in "hidden"
|
|
132
|
+
--json --full-schema the whole catalog record, as tools describe and
|
|
133
|
+
plays describe print it
|
|
134
|
+
--schema-only --json
|
|
135
|
+
only the input and output JSON Schemas; use this for a
|
|
136
|
+
program, or for a schema too large to read
|
|
137
|
+
--out <path> save any of the above to a file instead of printing it
|
|
138
|
+
|
|
139
|
+
Play page:
|
|
140
|
+
For a play, the output ends with its play page URL (JSON: dashboardUrl).
|
|
141
|
+
--web-url print only that URL; with --json, {"dashboardUrl": ...}.
|
|
142
|
+
Fails for a tool or monitor type, which have no play page.
|
|
143
|
+
|
|
144
|
+
Older commands:
|
|
145
|
+
deepline tools describe and deepline plays describe are this command limited
|
|
146
|
+
to one kind. Their own flags still work: --pricing-only, --examples-only,
|
|
147
|
+
--model and --estimate-payload on tools; --json <fields> on plays.
|
|
148
|
+
|
|
149
|
+
Examples:
|
|
150
|
+
deepline describe hunter_email_verifier
|
|
151
|
+
deepline describe person-linkedin-to-email
|
|
152
|
+
deepline describe my-play --prebuilt
|
|
153
|
+
deepline describe ai_ark_people_search --full-schema
|
|
154
|
+
deepline describe prebuilt/person-to-email-batch --web-url
|
|
155
|
+
deepline describe ai_ark_people_search --schema-only --out schema.json
|
|
156
|
+
`
|
|
157
|
+
).action(async (name, options) => {
|
|
158
|
+
process.exitCode = await describeAnything(name, options);
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
export {
|
|
162
|
+
describeAnything,
|
|
163
|
+
registerDescribeCommand
|
|
164
|
+
};
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
|
+
|
|
3
|
+
var _chunkQ3FNSWJGjs = require('./chunk-Q3FNSWJG.js');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
var _chunkZAAKSJASjs = require('./chunk-ZAAKSJAS.js');
|
|
7
|
+
require('./chunk-CTZJLQ7A.js');
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
var _chunkRFG3MRACjs = require('./chunk-RFG3MRAC.js');
|
|
12
|
+
require('./chunk-7DRPTGCK.js');
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
var _chunkBQR6UN3Cjs = require('./chunk-BQR6UN3C.js');
|
|
16
|
+
require('./chunk-AID3OYVJ.js');
|
|
17
|
+
require('./chunk-ZM2YPJQJ.js');
|
|
18
|
+
require('./chunk-HGFFYVXN.js');
|
|
19
|
+
require('./chunk-NA4T3B62.js');
|
|
20
|
+
require('./chunk-KB4SDX5S.js');
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
var _chunkNUBIAJI2js = require('./chunk-NUBIAJI2.js');
|
|
24
|
+
require('./chunk-S6R3OX7B.js');
|
|
25
|
+
require('./chunk-UHNDVD3P.js');
|
|
26
|
+
require('./chunk-KXMNM4AQ.js');
|
|
27
|
+
require('./chunk-XDVT3GOM.js');
|
|
28
|
+
require('./chunk-QJBJZVG6.js');
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
var _chunkS22ZQZMUjs = require('./chunk-S22ZQZMU.js');
|
|
32
|
+
require('./chunk-JU3PF7WM.js');
|
|
33
|
+
require('./chunk-Q2E4E4FJ.js');
|
|
34
|
+
require('./chunk-XNYIZMNQ.js');
|
|
35
|
+
require('./chunk-7P5AA3SN.js');
|
|
36
|
+
require('./chunk-HFDBZXMV.js');
|
|
37
|
+
require('./chunk-OG64RBAC.js');
|
|
38
|
+
require('./chunk-COGTRVWW.js');
|
|
39
|
+
|
|
40
|
+
// src/cli/commands/describe.ts
|
|
41
|
+
var _fs = require('fs');
|
|
42
|
+
var _path = require('path');
|
|
43
|
+
async function describeAnything(name, options, onMissing) {
|
|
44
|
+
const client = new (0, _chunkNUBIAJI2js.DeeplineClient)();
|
|
45
|
+
const lookups = _chunkRFG3MRACjs.describeLookupsFor.call(void 0, client);
|
|
46
|
+
const outcome = await _chunkRFG3MRACjs.describeName.call(void 0, name, options, {
|
|
47
|
+
...lookups,
|
|
48
|
+
// `tools describe` has already fetched the tool for its compatibility check.
|
|
49
|
+
tool: async (toolName) => _nullishCoalesce(options.fetchedTool, () => ( lookups.tool(toolName))),
|
|
50
|
+
seedStarterScript: _chunkQ3FNSWJGjs.seedToolListScript
|
|
51
|
+
});
|
|
52
|
+
if (outcome.status === "missing") {
|
|
53
|
+
if (onMissing) return onMissing();
|
|
54
|
+
console.error(
|
|
55
|
+
`Nothing named "${name}". Search for it: deepline search ${JSON.stringify(name.replace(/[-_./]+/g, " "))}`
|
|
56
|
+
);
|
|
57
|
+
return 2;
|
|
58
|
+
}
|
|
59
|
+
if (outcome.status === "refused") {
|
|
60
|
+
console.error(outcome.message);
|
|
61
|
+
return outcome.exitCode;
|
|
62
|
+
}
|
|
63
|
+
return deliver(outcome.envelope, outcome.lines, {
|
|
64
|
+
json: options.json === true,
|
|
65
|
+
out: options.out
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
function deliver(envelope, lines, { json, out }) {
|
|
69
|
+
const text = `${lines.join("\n")}
|
|
70
|
+
`;
|
|
71
|
+
if (out) {
|
|
72
|
+
const path = _path.resolve.call(void 0, out);
|
|
73
|
+
const content = json ? `${JSON.stringify(envelope, null, 2)}
|
|
74
|
+
` : text;
|
|
75
|
+
_fs.writeFileSync.call(void 0, path, content);
|
|
76
|
+
const bytes = Buffer.byteLength(content);
|
|
77
|
+
_chunkS22ZQZMUjs.printCommandEnvelope.call(void 0,
|
|
78
|
+
{ path, bytes },
|
|
79
|
+
{ json, text: `Wrote ${path} (${bytes} bytes)
|
|
80
|
+
` }
|
|
81
|
+
);
|
|
82
|
+
return 0;
|
|
83
|
+
}
|
|
84
|
+
_chunkS22ZQZMUjs.printCommandEnvelope.call(void 0, envelope, { json, text });
|
|
85
|
+
return 0;
|
|
86
|
+
}
|
|
87
|
+
function registerDescribeCommand(program) {
|
|
88
|
+
_chunkZAAKSJASjs.addDescribeOptions.call(void 0, program.command("describe <name>")).option("--web-url", "Print only a play's play page URL").description(
|
|
89
|
+
"Describe anything search returns: a tool, monitor type, or play."
|
|
90
|
+
).addHelpText(
|
|
91
|
+
"after",
|
|
92
|
+
`
|
|
93
|
+
What you can describe:
|
|
94
|
+
Any id deepline search returns: a tool id, a monitor type id, or a play name
|
|
95
|
+
or reference. You do not say which kind it is; tool ids, monitor type ids
|
|
96
|
+
and prebuilt play names never overlap.
|
|
97
|
+
|
|
98
|
+
When a name is taken twice:
|
|
99
|
+
A play your workspace created is shown instead of a Deepline tool, monitor
|
|
100
|
+
type or prebuilt play with the same name, and the output says so.
|
|
101
|
+
Pass --prebuilt (or --tool) to see the Deepline one.
|
|
102
|
+
|
|
103
|
+
What it prints:
|
|
104
|
+
The same sections for every kind: what it is, cost, inputs, outputs, then
|
|
105
|
+
an example of running it from the CLI and from inside a play.
|
|
106
|
+
|
|
107
|
+
Examples in the output:
|
|
108
|
+
(default) required inputs filled in, first output read
|
|
109
|
+
--verbose every input filled in, every output read; also shows
|
|
110
|
+
secondary fields
|
|
111
|
+
--cli-example only the CLI example, with how inputs and outputs work
|
|
112
|
+
--play-example only the in-play example, with how inputs and outputs work
|
|
113
|
+
--no-example no examples
|
|
114
|
+
|
|
115
|
+
Features:
|
|
116
|
+
A tool lists its features: parts with their own description, such as the
|
|
117
|
+
model an AI tool runs. --feature <name> describes one at its default value,
|
|
118
|
+
--feature <name>=<value> at another, e.g. --feature model=openai/gpt-5.6-luna.
|
|
119
|
+
|
|
120
|
+
Schema size and format:
|
|
121
|
+
Secondary fields (diagnostics, attempt logs, echoes of input) are left out
|
|
122
|
+
by default; the output names them, and --verbose shows them.
|
|
123
|
+
--fields email,miss_reason shows only the fields you name, plus every
|
|
124
|
+
required input, and names the rest. Use it when you know what you need.
|
|
125
|
+
A schema over ${_chunkBQR6UN3Cjs.SCHEMA_LINE_LIMIT} lines is folded: deeper objects show only their field
|
|
126
|
+
names. A shape used more than once is printed once under Types.
|
|
127
|
+
--full-schema the normal output, with the schema not folded
|
|
128
|
+
--schema-only only the schema, not folded, and nothing else
|
|
129
|
+
--json the same facts as JSON: fields keyed by name, with what
|
|
130
|
+
each means and, for a tool, where it is in the result;
|
|
131
|
+
secondary fields are named in "hidden"
|
|
132
|
+
--json --full-schema the whole catalog record, as tools describe and
|
|
133
|
+
plays describe print it
|
|
134
|
+
--schema-only --json
|
|
135
|
+
only the input and output JSON Schemas; use this for a
|
|
136
|
+
program, or for a schema too large to read
|
|
137
|
+
--out <path> save any of the above to a file instead of printing it
|
|
138
|
+
|
|
139
|
+
Play page:
|
|
140
|
+
For a play, the output ends with its play page URL (JSON: dashboardUrl).
|
|
141
|
+
--web-url print only that URL; with --json, {"dashboardUrl": ...}.
|
|
142
|
+
Fails for a tool or monitor type, which have no play page.
|
|
143
|
+
|
|
144
|
+
Older commands:
|
|
145
|
+
deepline tools describe and deepline plays describe are this command limited
|
|
146
|
+
to one kind. Their own flags still work: --pricing-only, --examples-only,
|
|
147
|
+
--model and --estimate-payload on tools; --json <fields> on plays.
|
|
148
|
+
|
|
149
|
+
Examples:
|
|
150
|
+
deepline describe hunter_email_verifier
|
|
151
|
+
deepline describe person-linkedin-to-email
|
|
152
|
+
deepline describe my-play --prebuilt
|
|
153
|
+
deepline describe ai_ark_people_search --full-schema
|
|
154
|
+
deepline describe prebuilt/person-to-email-batch --web-url
|
|
155
|
+
deepline describe ai_ark_people_search --schema-only --out schema.json
|
|
156
|
+
`
|
|
157
|
+
).action(async (name, options) => {
|
|
158
|
+
process.exitCode = await describeAnything(name, options);
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
|
|
163
|
+
|
|
164
|
+
exports.describeAnything = describeAnything; exports.registerDescribeCommand = registerDescribeCommand;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/// <reference path="./text-imports.d.ts" />
|
|
2
|
+
import { T as ToolDefinition, D as DeeplineAgentModelDescription, P as PlayDescription, S as SearchType, a as DeeplineClient } from '../client-D0j-_aaa.mjs';
|
|
3
|
+
import '../compiler-manifest-DLxUY5kI.mjs';
|
|
4
|
+
import '@sinclair/typebox';
|
|
5
|
+
import 'zod';
|
|
6
|
+
import '../monitor-fleet-contract.mjs';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* How `deepline describe` presents a tool: its contract, the JSON record,
|
|
10
|
+
* and the shared `Described` form. Pure, so the CLI and MCP describe a tool
|
|
11
|
+
* the same way; writing a starter Play to a local file is the caller's
|
|
12
|
+
* choice, passed in as `seedStarterScript`. Relative imports carry no `.js`
|
|
13
|
+
* suffix because the app compiles this module from source.
|
|
14
|
+
*/
|
|
15
|
+
/** Writes a starter Play for a tool that returns a list; needs a local file. */
|
|
16
|
+
type SeedStarterScript = (input: {
|
|
17
|
+
toolId: string;
|
|
18
|
+
payload: Record<string, unknown>;
|
|
19
|
+
rows: Array<Record<string, unknown>>;
|
|
20
|
+
}) => SeededScript;
|
|
21
|
+
type CliToolMetadata = ToolDefinition & Record<string, unknown>;
|
|
22
|
+
type SeededScript = {
|
|
23
|
+
path: string;
|
|
24
|
+
sourceCode: string;
|
|
25
|
+
projectDir: string;
|
|
26
|
+
macCopyCommand: string;
|
|
27
|
+
windowsCopyCommand: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
type FeatureDependencies = {
|
|
31
|
+
describeModel(model: string): Promise<DeeplineAgentModelDescription>;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* `deepline describe` without a terminal: resolve a name to a tool, monitor
|
|
36
|
+
* type or play and build what describe shows for it. The CLI prints the
|
|
37
|
+
* result; MCP `deepline_describe` returns it. The lookups are the caller's,
|
|
38
|
+
* so each surface reads Deepline through its own authenticated client.
|
|
39
|
+
* Relative imports carry no `.js` suffix because the app compiles this
|
|
40
|
+
* module from source.
|
|
41
|
+
*/
|
|
42
|
+
/** The `--type` name that selects each kind; `plays` is `prebuilts` plus `custom`. */
|
|
43
|
+
type KindFilter = Exclude<SearchType, 'plays'>;
|
|
44
|
+
type DescribeOptions = {
|
|
45
|
+
/** Set by `tools describe` and `plays describe` to limit what a name may be. */
|
|
46
|
+
kinds?: readonly KindFilter[];
|
|
47
|
+
/** The whole catalog record as JSON, as the older describe commands print it. */
|
|
48
|
+
fullRecord?: boolean;
|
|
49
|
+
prebuilt?: boolean;
|
|
50
|
+
tool?: boolean;
|
|
51
|
+
verbose?: boolean;
|
|
52
|
+
cliExample?: boolean;
|
|
53
|
+
playExample?: boolean;
|
|
54
|
+
/** False under `--no-example`. */
|
|
55
|
+
example?: boolean;
|
|
56
|
+
fullSchema?: boolean;
|
|
57
|
+
fields?: string;
|
|
58
|
+
schemaOnly?: boolean;
|
|
59
|
+
/** `name` or `name=value`: describe that one feature instead. */
|
|
60
|
+
feature?: string;
|
|
61
|
+
/** Only the play page URL; a tool or monitor type has none. */
|
|
62
|
+
webUrl?: boolean;
|
|
63
|
+
};
|
|
64
|
+
/** How describe reads Deepline. A lookup answers null when nothing has the name. */
|
|
65
|
+
type DescribeLookups = FeatureDependencies & {
|
|
66
|
+
play(reference: string): Promise<PlayDescription | null>;
|
|
67
|
+
tool(name: string): Promise<CliToolMetadata | null>;
|
|
68
|
+
/** The app origin play pages are served from. */
|
|
69
|
+
baseUrl: string;
|
|
70
|
+
/** Where a list tool's starter Play is written; only a local CLI has one. */
|
|
71
|
+
seedStarterScript?: SeedStarterScript;
|
|
72
|
+
};
|
|
73
|
+
/** Describe's lookups over an SDK client, as the CLI and MCP both read. */
|
|
74
|
+
declare function describeLookupsFor(client: Pick<DeeplineClient, 'describePlay' | 'getTool' | 'describeModel' | 'baseUrl'>): DescribeLookups;
|
|
75
|
+
/**
|
|
76
|
+
* What describe shows for a name: its JSON record and readable lines; that
|
|
77
|
+
* nothing has the name; or why the request cannot be answered, with the
|
|
78
|
+
* CLI's exit code.
|
|
79
|
+
*/
|
|
80
|
+
type DescribeOutcome = {
|
|
81
|
+
status: 'described';
|
|
82
|
+
envelope: Record<string, unknown>;
|
|
83
|
+
lines: string[];
|
|
84
|
+
} | {
|
|
85
|
+
status: 'missing';
|
|
86
|
+
} | {
|
|
87
|
+
status: 'refused';
|
|
88
|
+
message: string;
|
|
89
|
+
exitCode: number;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Describe whatever `name` is: anything `deepline search` returns. Tool ids,
|
|
93
|
+
* monitor type ids and prebuilt play names never collide (the catalog build
|
|
94
|
+
* rejects a release where they do), so a bare name has at most one
|
|
95
|
+
* Deepline-maintained meaning. A play the workspace created under the same
|
|
96
|
+
* name wins unless `custom` is excluded, and the output says so.
|
|
97
|
+
*/
|
|
98
|
+
declare function describeName(name: string, options: DescribeOptions, lookups: DescribeLookups): Promise<DescribeOutcome>;
|
|
99
|
+
|
|
100
|
+
export { type CliToolMetadata, type DescribeLookups, type DescribeOptions, type DescribeOutcome, type KindFilter, PlayDescription, describeLookupsFor, describeName };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
/// <reference path="./text-imports.d.ts" />
|
|
2
|
+
import { T as ToolDefinition, D as DeeplineAgentModelDescription, P as PlayDescription, S as SearchType, a as DeeplineClient } from '../client-DflfVyj6.js';
|
|
3
|
+
import '../compiler-manifest-DLxUY5kI.js';
|
|
4
|
+
import '@sinclair/typebox';
|
|
5
|
+
import 'zod';
|
|
6
|
+
import '../monitor-fleet-contract.js';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* How `deepline describe` presents a tool: its contract, the JSON record,
|
|
10
|
+
* and the shared `Described` form. Pure, so the CLI and MCP describe a tool
|
|
11
|
+
* the same way; writing a starter Play to a local file is the caller's
|
|
12
|
+
* choice, passed in as `seedStarterScript`. Relative imports carry no `.js`
|
|
13
|
+
* suffix because the app compiles this module from source.
|
|
14
|
+
*/
|
|
15
|
+
/** Writes a starter Play for a tool that returns a list; needs a local file. */
|
|
16
|
+
type SeedStarterScript = (input: {
|
|
17
|
+
toolId: string;
|
|
18
|
+
payload: Record<string, unknown>;
|
|
19
|
+
rows: Array<Record<string, unknown>>;
|
|
20
|
+
}) => SeededScript;
|
|
21
|
+
type CliToolMetadata = ToolDefinition & Record<string, unknown>;
|
|
22
|
+
type SeededScript = {
|
|
23
|
+
path: string;
|
|
24
|
+
sourceCode: string;
|
|
25
|
+
projectDir: string;
|
|
26
|
+
macCopyCommand: string;
|
|
27
|
+
windowsCopyCommand: string;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
type FeatureDependencies = {
|
|
31
|
+
describeModel(model: string): Promise<DeeplineAgentModelDescription>;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* `deepline describe` without a terminal: resolve a name to a tool, monitor
|
|
36
|
+
* type or play and build what describe shows for it. The CLI prints the
|
|
37
|
+
* result; MCP `deepline_describe` returns it. The lookups are the caller's,
|
|
38
|
+
* so each surface reads Deepline through its own authenticated client.
|
|
39
|
+
* Relative imports carry no `.js` suffix because the app compiles this
|
|
40
|
+
* module from source.
|
|
41
|
+
*/
|
|
42
|
+
/** The `--type` name that selects each kind; `plays` is `prebuilts` plus `custom`. */
|
|
43
|
+
type KindFilter = Exclude<SearchType, 'plays'>;
|
|
44
|
+
type DescribeOptions = {
|
|
45
|
+
/** Set by `tools describe` and `plays describe` to limit what a name may be. */
|
|
46
|
+
kinds?: readonly KindFilter[];
|
|
47
|
+
/** The whole catalog record as JSON, as the older describe commands print it. */
|
|
48
|
+
fullRecord?: boolean;
|
|
49
|
+
prebuilt?: boolean;
|
|
50
|
+
tool?: boolean;
|
|
51
|
+
verbose?: boolean;
|
|
52
|
+
cliExample?: boolean;
|
|
53
|
+
playExample?: boolean;
|
|
54
|
+
/** False under `--no-example`. */
|
|
55
|
+
example?: boolean;
|
|
56
|
+
fullSchema?: boolean;
|
|
57
|
+
fields?: string;
|
|
58
|
+
schemaOnly?: boolean;
|
|
59
|
+
/** `name` or `name=value`: describe that one feature instead. */
|
|
60
|
+
feature?: string;
|
|
61
|
+
/** Only the play page URL; a tool or monitor type has none. */
|
|
62
|
+
webUrl?: boolean;
|
|
63
|
+
};
|
|
64
|
+
/** How describe reads Deepline. A lookup answers null when nothing has the name. */
|
|
65
|
+
type DescribeLookups = FeatureDependencies & {
|
|
66
|
+
play(reference: string): Promise<PlayDescription | null>;
|
|
67
|
+
tool(name: string): Promise<CliToolMetadata | null>;
|
|
68
|
+
/** The app origin play pages are served from. */
|
|
69
|
+
baseUrl: string;
|
|
70
|
+
/** Where a list tool's starter Play is written; only a local CLI has one. */
|
|
71
|
+
seedStarterScript?: SeedStarterScript;
|
|
72
|
+
};
|
|
73
|
+
/** Describe's lookups over an SDK client, as the CLI and MCP both read. */
|
|
74
|
+
declare function describeLookupsFor(client: Pick<DeeplineClient, 'describePlay' | 'getTool' | 'describeModel' | 'baseUrl'>): DescribeLookups;
|
|
75
|
+
/**
|
|
76
|
+
* What describe shows for a name: its JSON record and readable lines; that
|
|
77
|
+
* nothing has the name; or why the request cannot be answered, with the
|
|
78
|
+
* CLI's exit code.
|
|
79
|
+
*/
|
|
80
|
+
type DescribeOutcome = {
|
|
81
|
+
status: 'described';
|
|
82
|
+
envelope: Record<string, unknown>;
|
|
83
|
+
lines: string[];
|
|
84
|
+
} | {
|
|
85
|
+
status: 'missing';
|
|
86
|
+
} | {
|
|
87
|
+
status: 'refused';
|
|
88
|
+
message: string;
|
|
89
|
+
exitCode: number;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Describe whatever `name` is: anything `deepline search` returns. Tool ids,
|
|
93
|
+
* monitor type ids and prebuilt play names never collide (the catalog build
|
|
94
|
+
* rejects a release where they do), so a bare name has at most one
|
|
95
|
+
* Deepline-maintained meaning. A play the workspace created under the same
|
|
96
|
+
* name wins unless `custom` is excluded, and the output says so.
|
|
97
|
+
*/
|
|
98
|
+
declare function describeName(name: string, options: DescribeOptions, lookups: DescribeLookups): Promise<DescribeOutcome>;
|
|
99
|
+
|
|
100
|
+
export { type CliToolMetadata, type DescribeLookups, type DescribeOptions, type DescribeOutcome, type KindFilter, PlayDescription, describeLookupsFor, describeName };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var _chunkRFG3MRACjs = require('./chunk-RFG3MRAC.js');
|
|
5
|
+
require('./chunk-7DRPTGCK.js');
|
|
6
|
+
require('./chunk-BQR6UN3C.js');
|
|
7
|
+
require('./chunk-AID3OYVJ.js');
|
|
8
|
+
require('./chunk-ZM2YPJQJ.js');
|
|
9
|
+
require('./chunk-NA4T3B62.js');
|
|
10
|
+
require('./chunk-KB4SDX5S.js');
|
|
11
|
+
require('./chunk-KXMNM4AQ.js');
|
|
12
|
+
require('./chunk-Q2E4E4FJ.js');
|
|
13
|
+
require('./chunk-7P5AA3SN.js');
|
|
14
|
+
require('./chunk-COGTRVWW.js');
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
exports.describeLookupsFor = _chunkRFG3MRACjs.describeLookupsFor; exports.describeName = _chunkRFG3MRACjs.describeName;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
describeLookupsFor,
|
|
3
|
+
describeName
|
|
4
|
+
} from "./chunk-HFYQBC2D.mjs";
|
|
5
|
+
import "./chunk-YHZUZO3U.mjs";
|
|
6
|
+
import "./chunk-IHG7UAHD.mjs";
|
|
7
|
+
import "./chunk-OVDNJAJN.mjs";
|
|
8
|
+
import "./chunk-LJ5747UC.mjs";
|
|
9
|
+
import "./chunk-TXZVVBQZ.mjs";
|
|
10
|
+
import "./chunk-3HU47EGZ.mjs";
|
|
11
|
+
import "./chunk-EIMG75BT.mjs";
|
|
12
|
+
import "./chunk-YHPYUZZX.mjs";
|
|
13
|
+
import "./chunk-NXGCO4JB.mjs";
|
|
14
|
+
import "./chunk-KRD6H754.mjs";
|
|
15
|
+
export {
|
|
16
|
+
describeLookupsFor,
|
|
17
|
+
describeName
|
|
18
|
+
};
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DeeplineClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LCRQKI7D.mjs";
|
|
4
4
|
import "./chunk-6IKARAYD.mjs";
|
|
5
5
|
import "./chunk-JI2B4RZP.mjs";
|
|
6
6
|
import "./chunk-EIMG75BT.mjs";
|
|
7
7
|
import "./chunk-UBKA33KY.mjs";
|
|
8
8
|
import {
|
|
9
9
|
printCommandEnvelope
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-CH6EFAJ3.mjs";
|
|
11
|
+
import "./chunk-ZJ7HLJRF.mjs";
|
|
12
|
+
import "./chunk-YHPYUZZX.mjs";
|
|
12
13
|
import "./chunk-DLIRSHV6.mjs";
|
|
13
14
|
import "./chunk-NXGCO4JB.mjs";
|
|
14
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-QP2TRM7M.mjs";
|
|
15
16
|
import "./chunk-WZYKRD7T.mjs";
|
|
16
17
|
import "./chunk-KRD6H754.mjs";
|
|
17
18
|
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkNUBIAJI2js = require('./chunk-NUBIAJI2.js');
|
|
4
4
|
require('./chunk-S6R3OX7B.js');
|
|
5
5
|
require('./chunk-UHNDVD3P.js');
|
|
6
6
|
require('./chunk-KXMNM4AQ.js');
|
|
7
7
|
require('./chunk-XDVT3GOM.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
11
|
-
require('./chunk-
|
|
10
|
+
var _chunkS22ZQZMUjs = require('./chunk-S22ZQZMU.js');
|
|
11
|
+
require('./chunk-JU3PF7WM.js');
|
|
12
|
+
require('./chunk-Q2E4E4FJ.js');
|
|
12
13
|
require('./chunk-XNYIZMNQ.js');
|
|
13
14
|
require('./chunk-7P5AA3SN.js');
|
|
14
|
-
require('./chunk-
|
|
15
|
+
require('./chunk-HFDBZXMV.js');
|
|
15
16
|
require('./chunk-OG64RBAC.js');
|
|
16
17
|
require('./chunk-COGTRVWW.js');
|
|
17
18
|
|
|
@@ -19,10 +20,10 @@ require('./chunk-COGTRVWW.js');
|
|
|
19
20
|
function registerExecutionsCommands(program) {
|
|
20
21
|
const executions = program.command("executions").description("Inspect and recover keyed tool executions.");
|
|
21
22
|
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) => {
|
|
22
|
-
const result = await new (0,
|
|
23
|
+
const result = await new (0, _chunkNUBIAJI2js.DeeplineClient)().executions.getByKey(
|
|
23
24
|
options.idempotencyKey
|
|
24
25
|
);
|
|
25
|
-
|
|
26
|
+
_chunkS22ZQZMUjs.printCommandEnvelope.call(void 0, result, { json: true });
|
|
26
27
|
});
|
|
27
28
|
}
|
|
28
29
|
|
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
|
|
4
4
|
|
|
5
|
-
var
|
|
5
|
+
var _chunkS22ZQZMUjs = require('./chunk-S22ZQZMU.js');
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkJU3PF7WMjs = require('./chunk-JU3PF7WM.js');
|
|
9
|
+
require('./chunk-Q2E4E4FJ.js');
|
|
9
10
|
require('./chunk-XNYIZMNQ.js');
|
|
10
11
|
require('./chunk-7P5AA3SN.js');
|
|
11
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-HFDBZXMV.js');
|
|
12
13
|
require('./chunk-OG64RBAC.js');
|
|
13
14
|
require('./chunk-COGTRVWW.js');
|
|
14
15
|
|
|
@@ -17,18 +18,18 @@ var _commander = require('commander');
|
|
|
17
18
|
var _fs = require('fs');
|
|
18
19
|
async function handleFeedback(text, options) {
|
|
19
20
|
const message = resolveFeedbackText(text, options.file);
|
|
20
|
-
const { http } =
|
|
21
|
-
const sessionId =
|
|
21
|
+
const { http } = _chunkS22ZQZMUjs.getAuthedHttpClient.call(void 0, );
|
|
22
|
+
const sessionId = _chunkJU3PF7WMjs.agentSessionIdFromEnvironment.call(void 0, );
|
|
22
23
|
const response = await http.post("/api/v2/cli/feedback", {
|
|
23
24
|
text: message,
|
|
24
25
|
requested: options.requested === true,
|
|
25
|
-
environment:
|
|
26
|
+
environment: _chunkS22ZQZMUjs.collectLocalEnvInfo.call(void 0, ),
|
|
26
27
|
...sessionId ? { session_id: sessionId } : {},
|
|
27
28
|
...options.command ? { command: options.command } : {},
|
|
28
29
|
...options.payload ? { payload: options.payload } : {},
|
|
29
30
|
...options.errorOutcome ? { error_outcome: options.errorOutcome } : {}
|
|
30
31
|
});
|
|
31
|
-
|
|
32
|
+
_chunkS22ZQZMUjs.printCommandEnvelope.call(void 0,
|
|
32
33
|
{
|
|
33
34
|
...response,
|
|
34
35
|
render: {
|