deepline 0.3.481 → 0.3.483
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/runner-backends/backends/daytona.ts +12 -5
- package/dist/cli/{auth-FYY65LYD.mjs → auth-2NXF6Q3Q.mjs} +5 -5
- package/dist/cli/auth-JHQKM6QY.js +43 -0
- package/dist/cli/{billing-TROHWBSE.js → billing-5PW4L5WD.js} +79 -79
- package/dist/cli/{billing-3MELYUTI.mjs → billing-W2Y4EOZP.mjs} +6 -6
- package/dist/cli/{chunk-EJTU6X6C.mjs → chunk-25IGCYJP.mjs} +3 -3
- package/dist/cli/{chunk-27BYXQU4.js → chunk-2JWG2H2N.js} +1 -1
- package/dist/cli/{chunk-J4D3PCQ2.js → chunk-2MKX3HV3.js} +5 -5
- package/dist/cli/{chunk-X6MEQBAT.js → chunk-2T4OSJEH.js} +21 -21
- package/dist/cli/{chunk-ASQJUUGB.mjs → chunk-4X23YY2E.mjs} +5 -5
- package/dist/cli/chunk-5AEDYVB6.mjs +6 -0
- package/dist/cli/{chunk-X4XZFIK6.js → chunk-5ICAG4RE.js} +9 -9
- package/dist/cli/{chunk-SVPM2E2U.js → chunk-5JCXS4MP.js} +5 -5
- package/dist/cli/{chunk-VBDR2DP6.js → chunk-5LHU7NUS.js} +3 -3
- package/dist/cli/{chunk-4CIVXXSU.js → chunk-62XGOB2D.js} +26 -26
- package/dist/cli/{chunk-WF5QE2IW.js → chunk-75IIHFN6.js} +4 -4
- package/dist/cli/{chunk-LISZBUA7.mjs → chunk-7APXZ3CX.mjs} +2 -2
- package/dist/cli/{chunk-R4EFW2I2.js → chunk-7TKLISLM.js} +3 -3
- package/dist/cli/{chunk-7VVC4RZX.mjs → chunk-AWAFYRFV.mjs} +1 -1
- package/dist/cli/{chunk-WICQQ7GY.js → chunk-B7HQL77V.js} +53 -53
- package/dist/cli/{chunk-SOGLBLMH.mjs → chunk-C3LJSOQ6.mjs} +4 -4
- package/dist/cli/chunk-D3BCSAN7.js +6 -0
- package/dist/cli/{chunk-CM3KC74A.js → chunk-DS455RPF.js} +3 -3
- package/dist/cli/{chunk-S5WXSC3P.mjs → chunk-EDMCD7MX.mjs} +5 -5
- package/dist/cli/{chunk-UUGSZZZH.mjs → chunk-EGHYGTJM.mjs} +1 -1
- package/dist/cli/{chunk-RV2GB7KW.mjs → chunk-FAZTLYJO.mjs} +2 -2
- package/dist/cli/{chunk-6ZMUAASO.mjs → chunk-FGEC5SWP.mjs} +4 -4
- package/dist/cli/{chunk-VRAOWHXJ.mjs → chunk-FK47YUPC.mjs} +1 -1
- package/dist/cli/{chunk-CS2P3EQS.mjs → chunk-GGJQ4HJW.mjs} +2 -2
- package/dist/cli/{chunk-6WWBVWFQ.js → chunk-GONUMUBM.js} +7 -7
- package/dist/cli/{chunk-PDJS6LFI.mjs → chunk-GRE3ID5E.mjs} +1 -1
- package/dist/cli/{chunk-75LUK4E5.mjs → chunk-IEV5UWPN.mjs} +1 -1
- package/dist/cli/chunk-ISP7ZENV.mjs +200 -0
- package/dist/cli/{chunk-S5BM6NPJ.mjs → chunk-J7S3DJB4.mjs} +2 -2
- package/dist/cli/{chunk-BJ5UFTWL.mjs → chunk-JJSLEMQQ.mjs} +1 -1
- package/dist/cli/{chunk-HXG7TYRS.mjs → chunk-JYEZ6BWX.mjs} +2 -2
- package/dist/cli/{chunk-5ONCPLWC.js → chunk-MYB6JVSD.js} +16 -16
- package/dist/cli/{chunk-C7UIUKW6.mjs → chunk-NREZRYPU.mjs} +2 -2
- package/dist/cli/{chunk-KPXP2DIY.js → chunk-PHDEQ6W3.js} +6 -6
- package/dist/cli/{chunk-EPZSX7FZ.mjs → chunk-PRL7EKJZ.mjs} +4 -4
- package/dist/cli/{chunk-BJMEXKZY.js → chunk-QSYA6VE4.js} +2 -2
- package/dist/cli/{chunk-WTWRZ5ZI.js → chunk-R2OR4RHV.js} +8 -8
- package/dist/cli/{chunk-VTKAIGW6.mjs → chunk-S24CK3CJ.mjs} +2 -2
- package/dist/cli/{chunk-FXLMDAAY.mjs → chunk-SCPFOH5Z.mjs} +1 -1
- package/dist/cli/{chunk-D3UHG54V.js → chunk-T5GZZJ7O.js} +6 -6
- package/dist/cli/{chunk-LTOY2GUJ.mjs → chunk-UDF2CY4D.mjs} +10 -10
- package/dist/cli/{chunk-KDU6TSGE.js → chunk-UGBZ6MCR.js} +2 -2
- package/dist/cli/{chunk-GJOKFJ2Y.js → chunk-UY7OXFVU.js} +10 -10
- package/dist/cli/{chunk-MKDWU3ZI.js → chunk-VFEW53L5.js} +93 -93
- package/dist/cli/{chunk-6VKDKATO.js → chunk-WI2HNYQX.js} +53 -53
- package/dist/cli/{chunk-EPEAQA6O.js → chunk-WKB6Y43W.js} +37 -37
- package/dist/cli/chunk-XRIQN6EP.js +200 -0
- package/dist/cli/{chunk-N5267HEH.mjs → chunk-YL64JIQ7.mjs} +1 -1
- package/dist/cli/{csv-2EG7JW7V.mjs → csv-DIFVIR23.mjs} +4 -4
- package/dist/cli/{csv-OUALOZBF.js → csv-EKEFLUIW.js} +13 -13
- package/dist/cli/{db-ECDQWI2Y.mjs → db-DOW4EVEU.mjs} +6 -6
- package/dist/cli/{db-7BTOI6YB.js → db-S7DDRUHX.js} +27 -27
- package/dist/cli/{describe-KO6WKQIB.mjs → describe-KSZFOWKV.mjs} +18 -17
- package/dist/cli/describe-RXYQCJRR.js +49 -0
- package/dist/cli/{executions-VZSG3F3E.js → executions-3DU5IXB6.js} +8 -8
- package/dist/cli/{executions-3VMFBZT4.mjs → executions-CAG7YC5K.mjs} +6 -6
- package/dist/cli/{feedback-SN7AVALN.mjs → feedback-BQMPTE47.mjs} +4 -4
- package/dist/cli/{feedback-ASKBWRXR.js → feedback-I65JMCP2.js} +8 -8
- package/dist/cli/git-ADIABNMQ.js +25 -0
- package/dist/cli/{git-W2DZXEAY.mjs → git-UQUCD7XZ.mjs} +5 -5
- package/dist/cli/index.js +138 -138
- package/dist/cli/index.mjs +42 -42
- package/dist/cli/{legacy-noops-R2SML7ED.mjs → legacy-noops-JXKLHUI3.mjs} +5 -5
- package/dist/cli/{legacy-noops-6KOC6LV7.js → legacy-noops-OLNT2BG5.js} +8 -8
- package/dist/cli/{monitors-4VGZGJBT.mjs → monitors-DLTHHAFQ.mjs} +7 -7
- package/dist/cli/{monitors-OJXDYU4G.js → monitors-Z5X56AZN.js} +91 -91
- package/dist/cli/{org-UGN5ZG2Y.mjs → org-6EZZHD3M.mjs} +6 -6
- package/dist/cli/{org-AELMZFUT.js → org-XBHJLKUG.js} +72 -72
- package/dist/cli/{pages-ZYPAAYSS.mjs → pages-MYXROSVK.mjs} +6 -6
- package/dist/cli/{pages-L26N7MK3.js → pages-XVJ34SCN.js} +17 -17
- package/dist/cli/{play-ENYB7X4S.mjs → play-5PV4LAHE.mjs} +26 -22
- package/dist/cli/{play-VTZWB3N5.js → play-ACC4T2XQ.js} +495 -491
- package/dist/cli/{providers-BZQTVAQG.mjs → providers-2DLUGIFF.mjs} +6 -6
- package/dist/cli/{providers-HWBY6MGQ.js → providers-JCI3KNE4.js} +9 -9
- package/dist/cli/{quickstart-SSQJDWPB.mjs → quickstart-NSL3C76K.mjs} +4 -4
- package/dist/cli/{quickstart-D54IJ3PX.js → quickstart-PDSQEDLD.js} +6 -6
- package/dist/cli/{run-45NKE7UY.js → run-UCFMHOQC.js} +37 -36
- package/dist/cli/{run-FR3TPYT3.mjs → run-X5MXCM4P.mjs} +26 -25
- package/dist/cli/{search-CZCWSR5L.mjs → search-RPEMXV6N.mjs} +8 -8
- package/dist/cli/search-YILJZD36.js +32 -0
- package/dist/cli/{chunk-JE27DTQM.mjs → search-output-6UO47B7G.mjs} +14 -194
- package/dist/cli/{chunk-CUSWZTS7.js → search-output-MZH3HLVE.js} +14 -194
- package/dist/cli/{secrets-KKK55B4Y.mjs → secrets-NLEQURD3.mjs} +6 -6
- package/dist/cli/{secrets-KJ5ZEDWT.js → secrets-UFBASYGY.js} +15 -15
- package/dist/cli/{sessions-2YKA54PH.mjs → sessions-3ALFLWVU.mjs} +5 -5
- package/dist/cli/{sessions-QCNPUTDZ.js → sessions-JYH4DBEE.js} +6 -6
- package/dist/cli/{settings-KM3LCPWD.js → settings-MQYKNAMB.js} +78 -78
- package/dist/cli/{settings-4NI2AS5V.mjs → settings-YPRILREA.mjs} +11 -11
- package/dist/cli/{setup-V5MTS2AA.js → setup-5IGSHH4E.js} +47 -47
- package/dist/cli/{setup-BZF3M54I.mjs → setup-DK4GM227.mjs} +9 -9
- package/dist/cli/skills-I4IUZN3U.js +33 -0
- package/dist/cli/{skills-NXYNB3LP.mjs → skills-KYBZH3IT.mjs} +7 -7
- package/dist/cli/{tools-57MWFRIZ.mjs → tools-4B2MHNBN.mjs} +17 -16
- package/dist/cli/tools-NLZR7ABS.js +56 -0
- package/dist/cli/update-RVDEUJTE.js +33 -0
- package/dist/cli/{update-QM6H677U.mjs → update-S6VEO7NB.mjs} +9 -9
- package/dist/cli/{workflow-TGEC4ITO.js → workflow-FU2XVPUK.js} +17 -17
- package/dist/cli/{workflow-NHYDIUWY.mjs → workflow-KXZZYFEF.mjs} +7 -7
- package/dist/index.js +10 -10
- package/dist/index.mjs +10 -10
- package/dist/install-integrity.json +100 -96
- package/dist/plays/bundle-play-file.mjs +6 -6
- package/dist/release.d.mts +1 -1
- package/dist/release.d.ts +1 -1
- package/dist/release.js +2 -2
- package/dist/release.mjs +1 -1
- package/dist/server.js +5 -5
- package/dist/server.mjs +3 -3
- package/package.json +1 -1
- package/dist/cli/auth-EQWYBNIE.js +0 -43
- package/dist/cli/describe-EXSH6OZD.js +0 -48
- package/dist/cli/git-X2XUKYYX.js +0 -25
- package/dist/cli/search-V2GJKQQQ.js +0 -32
- package/dist/cli/skills-CRFYW767.js +0 -33
- package/dist/cli/tools-Q662HPVJ.js +0 -55
- package/dist/cli/update-TYHKF7F5.js +0 -33
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import {
|
|
2
|
+
DEFAULT_SUMMARY_WIDTH
|
|
3
|
+
} from "./chunk-5AEDYVB6.mjs";
|
|
4
|
+
import {
|
|
5
|
+
DeeplineClient
|
|
6
|
+
} from "./chunk-7APXZ3CX.mjs";
|
|
7
|
+
import {
|
|
8
|
+
printCommandEnvelope
|
|
9
|
+
} from "./chunk-NREZRYPU.mjs";
|
|
10
|
+
import {
|
|
11
|
+
resolveConfig,
|
|
12
|
+
sdkCliStateDirPath
|
|
13
|
+
} from "./chunk-FK47YUPC.mjs";
|
|
14
|
+
|
|
15
|
+
// src/cli/commands/search.ts
|
|
16
|
+
import { Option } from "commander";
|
|
17
|
+
|
|
18
|
+
// src/cli/search-ref.ts
|
|
19
|
+
import { mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
20
|
+
import { dirname, join } from "path";
|
|
21
|
+
var SEARCH_REF_TTL_MS = 15 * 6e4;
|
|
22
|
+
function lastSearchPath() {
|
|
23
|
+
return join(sdkCliStateDirPath(resolveConfig().baseUrl), "last-search.json");
|
|
24
|
+
}
|
|
25
|
+
function rememberSearchRef(searchRef) {
|
|
26
|
+
try {
|
|
27
|
+
mkdirSync(dirname(lastSearchPath()), { recursive: true });
|
|
28
|
+
writeFileSync(
|
|
29
|
+
lastSearchPath(),
|
|
30
|
+
JSON.stringify({ searchRef, at: Date.now() }),
|
|
31
|
+
{ mode: 384 }
|
|
32
|
+
);
|
|
33
|
+
} catch {
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
function recentSearchRef() {
|
|
37
|
+
try {
|
|
38
|
+
const saved = JSON.parse(readFileSync(lastSearchPath(), "utf8"));
|
|
39
|
+
return typeof saved.searchRef === "string" && typeof saved.at === "number" && Date.now() - saved.at < SEARCH_REF_TTL_MS ? saved.searchRef : void 0;
|
|
40
|
+
} catch {
|
|
41
|
+
return void 0;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// src/cli/commands/search.ts
|
|
46
|
+
var SEARCH_TYPES = [
|
|
47
|
+
"tools",
|
|
48
|
+
"plays",
|
|
49
|
+
"monitors",
|
|
50
|
+
"prebuilts",
|
|
51
|
+
"custom"
|
|
52
|
+
];
|
|
53
|
+
var USAGE = 'Usage: deepline search "<task>" [--type <types>] [--json]';
|
|
54
|
+
function parseTypes(flag, raw) {
|
|
55
|
+
const names = (raw ?? "").split(",").map((name) => name.trim().toLowerCase()).filter(Boolean);
|
|
56
|
+
const unknown = names.filter(
|
|
57
|
+
(name) => !SEARCH_TYPES.includes(name)
|
|
58
|
+
);
|
|
59
|
+
if (unknown.length > 0) {
|
|
60
|
+
throw new Error(
|
|
61
|
+
`Unknown ${flag} ${unknown.join(", ")}. Use any of: ${SEARCH_TYPES.join(", ")}.`
|
|
62
|
+
);
|
|
63
|
+
}
|
|
64
|
+
return names;
|
|
65
|
+
}
|
|
66
|
+
function optionalInteger(raw) {
|
|
67
|
+
return raw === void 0 ? void 0 : Number.parseInt(raw, 10);
|
|
68
|
+
}
|
|
69
|
+
function appendCsv(value, previous) {
|
|
70
|
+
return previous ? `${previous},${value}` : value;
|
|
71
|
+
}
|
|
72
|
+
function addSearchOptions(command) {
|
|
73
|
+
const hidden = (flags) => new Option(flags).hideHelp();
|
|
74
|
+
return command.option(
|
|
75
|
+
"--categories <categories>",
|
|
76
|
+
"Only tools in these categories, comma-separated"
|
|
77
|
+
).addOption(hidden("--search_terms <terms>")).addOption(hidden("--search-terms <terms>")).addOption(hidden("--task <sentence>")).option("--limit <count>", "Results per page, 1-50").option("--offset <count>", "Results to skip, for the next page").option(
|
|
78
|
+
"--summary-width <chars>",
|
|
79
|
+
`Description characters per result (default ${DEFAULT_SUMMARY_WIDTH})`
|
|
80
|
+
).addOption(hidden("--search-mode <mode>")).addOption(hidden("--include-search-debug")).option("--json", "Print JSON instead of the readable list");
|
|
81
|
+
}
|
|
82
|
+
function asRun(command) {
|
|
83
|
+
return command.replace(/^deepline (?:tools execute|plays run) /, "deepline run ").replace(/ --watch\b/, "");
|
|
84
|
+
}
|
|
85
|
+
function pointAtDescribe(result) {
|
|
86
|
+
const old = /`deepline (tools|plays) describe [^`]*`/;
|
|
87
|
+
const render = result.render;
|
|
88
|
+
for (const section of render?.sections ?? []) {
|
|
89
|
+
if (!section.lines?.some((line) => old.test(line))) continue;
|
|
90
|
+
section.lines = [
|
|
91
|
+
"Run `deepline describe <id>` before executing a tool or running a play.",
|
|
92
|
+
...section.lines.filter((line) => !old.test(line))
|
|
93
|
+
];
|
|
94
|
+
}
|
|
95
|
+
const templates = result.commandTemplates;
|
|
96
|
+
for (const template of Object.values(templates ?? {})) {
|
|
97
|
+
if (template.describe) template.describe = "deepline describe <id>";
|
|
98
|
+
for (const key of ["execute", "run"]) {
|
|
99
|
+
if (template[key]) template[key] = asRun(template[key]);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
const results = Array.isArray(result.results) ? result.results : [];
|
|
103
|
+
for (const item of results) {
|
|
104
|
+
for (const key of ["executeCommand", "runCommand"]) {
|
|
105
|
+
if (typeof item[key] === "string") item[key] = asRun(item[key]);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
async function runSearch(queryInput, options, types, exclude = []) {
|
|
110
|
+
const query = queryInput?.trim() ?? "";
|
|
111
|
+
const searchTerms = options.searchTerms ?? options.search_terms;
|
|
112
|
+
if (!query && !options.categories?.trim() && !searchTerms?.trim()) {
|
|
113
|
+
console.error(USAGE);
|
|
114
|
+
return 1;
|
|
115
|
+
}
|
|
116
|
+
const summaryWidth = optionalInteger(options.summaryWidth) ?? DEFAULT_SUMMARY_WIDTH;
|
|
117
|
+
if (!Number.isInteger(summaryWidth) || summaryWidth < 2) {
|
|
118
|
+
console.error("--summary-width must be an integer of at least 2.");
|
|
119
|
+
return 1;
|
|
120
|
+
}
|
|
121
|
+
const { search_ref: searchRef, ...result } = await new DeeplineClient().search({
|
|
122
|
+
query,
|
|
123
|
+
types,
|
|
124
|
+
exclude,
|
|
125
|
+
categories: options.categories,
|
|
126
|
+
searchTerms,
|
|
127
|
+
task: options.task,
|
|
128
|
+
limit: optionalInteger(options.limit),
|
|
129
|
+
offset: optionalInteger(options.offset),
|
|
130
|
+
searchMode: options.searchMode === "v1" || options.searchMode === "v2" ? options.searchMode : void 0,
|
|
131
|
+
includeSearchDebug: Boolean(options.includeSearchDebug)
|
|
132
|
+
});
|
|
133
|
+
if (searchRef) rememberSearchRef(searchRef);
|
|
134
|
+
pointAtDescribe(result);
|
|
135
|
+
const { renderSearchResults } = await import("./search-output-6UO47B7G.mjs");
|
|
136
|
+
printCommandEnvelope(result, {
|
|
137
|
+
json: options.json === true,
|
|
138
|
+
text: renderSearchResults(result, summaryWidth)
|
|
139
|
+
});
|
|
140
|
+
return 0;
|
|
141
|
+
}
|
|
142
|
+
function registerDeprecatedSearchCommand(parent, typesFor) {
|
|
143
|
+
const name = `deepline ${parent.name()} search`;
|
|
144
|
+
addSearchOptions(
|
|
145
|
+
parent.command("search [task]").description(`Deprecated. Use deepline search --type <types>.`).addHelpText(
|
|
146
|
+
"after",
|
|
147
|
+
`
|
|
148
|
+
Notes:
|
|
149
|
+
Deprecated alias for the unified search. It runs deepline search with the
|
|
150
|
+
matching --type and returns the same results envelope.
|
|
151
|
+
|
|
152
|
+
Examples:
|
|
153
|
+
deepline search "name and company domain -> work email" --type ${typesFor({}).join(",")}
|
|
154
|
+
`
|
|
155
|
+
).option("--all", "Include plays your workspace created").option("--compact", "Accepted for compatibility; results are compact")
|
|
156
|
+
).action(async (query, options) => {
|
|
157
|
+
const types = typesFor(options);
|
|
158
|
+
console.error(
|
|
159
|
+
`${name} is deprecated. Use: deepline search${query ? ` ${JSON.stringify(query)}` : ""} --type ${types.join(",")}`
|
|
160
|
+
);
|
|
161
|
+
process.exitCode = await runSearch(query, options, types);
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
function registerSearchCommand(program) {
|
|
165
|
+
addSearchOptions(
|
|
166
|
+
program.command("search [task]").description(
|
|
167
|
+
"Search tools, monitors, and plays together, ranked by intent."
|
|
168
|
+
).option(
|
|
169
|
+
"--type <types>",
|
|
170
|
+
"Only these kinds, comma-separated: tools, plays, monitors",
|
|
171
|
+
appendCsv
|
|
172
|
+
).option(
|
|
173
|
+
"--exclude <types>",
|
|
174
|
+
"Leave these kinds out, comma-separated",
|
|
175
|
+
appendCsv
|
|
176
|
+
)
|
|
177
|
+
).action(async (query, options) => {
|
|
178
|
+
let types;
|
|
179
|
+
let exclude;
|
|
180
|
+
try {
|
|
181
|
+
types = parseTypes("--type", options.type);
|
|
182
|
+
exclude = parseTypes("--exclude", options.exclude);
|
|
183
|
+
} catch (error) {
|
|
184
|
+
console.error(error instanceof Error ? error.message : String(error));
|
|
185
|
+
process.exitCode = 1;
|
|
186
|
+
return;
|
|
187
|
+
}
|
|
188
|
+
process.exitCode = await runSearch(query, options, types, exclude);
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export {
|
|
193
|
+
recentSearchRef,
|
|
194
|
+
SEARCH_TYPES,
|
|
195
|
+
parseTypes,
|
|
196
|
+
appendCsv,
|
|
197
|
+
pointAtDescribe,
|
|
198
|
+
registerDeprecatedSearchCommand,
|
|
199
|
+
registerSearchCommand
|
|
200
|
+
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
traceCliSpan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-YL64JIQ7.mjs";
|
|
4
4
|
import {
|
|
5
5
|
checkSdkCompatibility,
|
|
6
6
|
enforceSdkCompatibilityResponse,
|
|
7
7
|
flushDeferredSkillsSyncNotices
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-PRL7EKJZ.mjs";
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getAuthedHttpClient,
|
|
3
3
|
printCommandEnvelope
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NREZRYPU.mjs";
|
|
5
5
|
import {
|
|
6
6
|
agentSessionIdFromEnvironment
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GRE3ID5E.mjs";
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
import {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkUGBZ6MCRjs = require('./chunk-UGBZ6MCR.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunkWKB6Y43Wjs = require('./chunk-WKB6Y43W.js');
|
|
8
8
|
|
|
9
9
|
|
|
10
|
-
var
|
|
10
|
+
var _chunkB7HQL77Vjs = require('./chunk-B7HQL77V.js');
|
|
11
11
|
|
|
12
12
|
|
|
13
|
-
var
|
|
13
|
+
var _chunkGONUMUBMjs = require('./chunk-GONUMUBM.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
|
-
var
|
|
16
|
+
var _chunk5LHU7NUSjs = require('./chunk-5LHU7NUS.js');
|
|
17
17
|
|
|
18
18
|
// src/cli/commands/update.ts
|
|
19
19
|
var _child_process = require('child_process');
|
|
@@ -495,7 +495,7 @@ function normalizedNpmPrefix(value) {
|
|
|
495
495
|
}
|
|
496
496
|
function resolveNpmGlobalPrefix(env) {
|
|
497
497
|
try {
|
|
498
|
-
const plan =
|
|
498
|
+
const plan = _chunkB7HQL77Vjs.resolveShellSpawn.call(void 0,
|
|
499
499
|
"npm",
|
|
500
500
|
["prefix", "-g"],
|
|
501
501
|
process.platform,
|
|
@@ -556,8 +556,8 @@ function resolveUpdatePlan(options = {}) {
|
|
|
556
556
|
const npmGlobalPrefix = options.npmGlobalPrefix !== void 0 ? options.npmGlobalPrefix : resolveNpmGlobalPrefix(env);
|
|
557
557
|
const hasVerifiedNpmOwnership = inferredInstallPrefix !== null && normalizedNpmPrefix(inferredInstallPrefix) === normalizedNpmPrefix(npmGlobalPrefix);
|
|
558
558
|
const installPrefix = options.requireVerifiedNpmOwnership ? hasVerifiedNpmOwnership ? inferredInstallPrefix : null : inferredInstallPrefix;
|
|
559
|
-
const npmVersion = options.npmVersion === void 0 ?
|
|
560
|
-
const npmGlobalInstallFlags =
|
|
559
|
+
const npmVersion = options.npmVersion === void 0 ? _chunkUGBZ6MCRjs.readNpmVersion.call(void 0, env) : options.npmVersion;
|
|
560
|
+
const npmGlobalInstallFlags = _chunkUGBZ6MCRjs.npmSupportsAllowScripts.call(void 0, npmVersion) ? [...NPM_SDK_INSTALL_COMMON_FLAGS, "--allow-scripts=esbuild"] : NPM_SDK_INSTALL_COMMON_FLAGS;
|
|
561
561
|
const args = installPrefix ? [
|
|
562
562
|
"install",
|
|
563
563
|
"-g",
|
|
@@ -567,7 +567,7 @@ function resolveUpdatePlan(options = {}) {
|
|
|
567
567
|
packageSpec
|
|
568
568
|
] : ["install", "-g", ...npmGlobalInstallFlags, packageSpec];
|
|
569
569
|
const fallbackRegistryUrl = options.npmFallbackRegistryUrl !== void 0 ? options.npmFallbackRegistryUrl : publicNpmFallbackRegistryUrl(
|
|
570
|
-
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) ||
|
|
570
|
+
_optionalChain([env, 'access', _22 => _22.DEEPLINE_HOST_URL, 'optionalAccess', _23 => _23.trim, 'call', _24 => _24()]) || _chunk5LHU7NUSjs.autoDetectBaseUrl.call(void 0, )
|
|
571
571
|
);
|
|
572
572
|
return {
|
|
573
573
|
kind: "npm-global",
|
|
@@ -816,7 +816,7 @@ function sidecarInstallFailure(versionDir) {
|
|
|
816
816
|
function runCommand(command, args, env = process.env) {
|
|
817
817
|
return new Promise((resolveResult) => {
|
|
818
818
|
let output = "";
|
|
819
|
-
const plan =
|
|
819
|
+
const plan = _chunkB7HQL77Vjs.resolveShellSpawn.call(void 0, command, args, process.platform, env);
|
|
820
820
|
const child = _child_process.spawn.call(void 0, plan.command, plan.args, {
|
|
821
821
|
stdio: ["inherit", "pipe", "pipe"],
|
|
822
822
|
shell: plan.shell,
|
|
@@ -1199,14 +1199,14 @@ async function publishedVersionSupportsPin(version, fallbackRegistryUrl) {
|
|
|
1199
1199
|
throw _nullishCoalesce(lastError, () => ( new Error("No npm registry was available")));
|
|
1200
1200
|
}
|
|
1201
1201
|
async function runUpdateCommand(options, dependencies = {}) {
|
|
1202
|
-
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => (
|
|
1202
|
+
const detectBaseUrl = _nullishCoalesce(dependencies.detectBaseUrl, () => ( _chunk5LHU7NUSjs.autoDetectBaseUrl));
|
|
1203
1203
|
const resolvePlan = _nullishCoalesce(dependencies.resolvePlan, () => ( resolveUpdatePlan));
|
|
1204
1204
|
const runPlan = _nullishCoalesce(dependencies.runPlan, () => ( runUpdatePlan));
|
|
1205
1205
|
const syncSkills = _nullishCoalesce(dependencies.syncSkillsIfNeeded, () => ( (async () => {
|
|
1206
1206
|
const originalWrite = process.stdout.write.bind(process.stdout);
|
|
1207
1207
|
process.stdout.write = (() => true);
|
|
1208
1208
|
try {
|
|
1209
|
-
const exitCode = await
|
|
1209
|
+
const exitCode = await _chunkWKB6Y43Wjs.runSkillsCommand.call(void 0, { json: true });
|
|
1210
1210
|
if (exitCode !== 0) {
|
|
1211
1211
|
throw new Error(
|
|
1212
1212
|
`Deepline skills update failed with exit ${exitCode}.`
|
|
@@ -1277,11 +1277,11 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1277
1277
|
]
|
|
1278
1278
|
};
|
|
1279
1279
|
if (options.json && !options.executeWithJson) {
|
|
1280
|
-
|
|
1280
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: true });
|
|
1281
1281
|
return 0;
|
|
1282
1282
|
}
|
|
1283
1283
|
if (options.printCommand) {
|
|
1284
|
-
|
|
1284
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
|
|
1285
1285
|
{
|
|
1286
1286
|
...plan,
|
|
1287
1287
|
render: {
|
|
@@ -1294,7 +1294,7 @@ async function runUpdateCommand(options, dependencies = {}) {
|
|
|
1294
1294
|
return 0;
|
|
1295
1295
|
}
|
|
1296
1296
|
if (plan.kind === "source" || plan.kind === "homebrew") {
|
|
1297
|
-
|
|
1297
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0, { ...plan, render }, { json: false });
|
|
1298
1298
|
return 0;
|
|
1299
1299
|
}
|
|
1300
1300
|
stderr.write(`Updating Deepline SDK/CLI with: ${plan.manualCommand}
|
|
@@ -1324,7 +1324,7 @@ To retry with full installer output, run: deepline skills
|
|
|
1324
1324
|
);
|
|
1325
1325
|
}
|
|
1326
1326
|
if (options.executeWithJson && options.json) {
|
|
1327
|
-
|
|
1327
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
|
|
1328
1328
|
{
|
|
1329
1329
|
ok: true,
|
|
1330
1330
|
pinnedVersion
|
|
@@ -2,10 +2,10 @@ import {
|
|
|
2
2
|
HttpClient,
|
|
3
3
|
resolveCliCommandContext,
|
|
4
4
|
resolveConfig
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FK47YUPC.mjs";
|
|
6
6
|
import {
|
|
7
7
|
detectAgentRuntime
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-GRE3ID5E.mjs";
|
|
9
9
|
import {
|
|
10
10
|
DeeplineError,
|
|
11
11
|
serializeToolExecutionFailure
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true});
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkQSYA6VE4js = require('./chunk-QSYA6VE4.js');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkB7HQL77Vjs = require('./chunk-B7HQL77V.js');
|
|
9
9
|
|
|
10
10
|
// src/cli/play-run-admission.ts
|
|
11
11
|
function usesInlinePlayAdmission(command, args) {
|
|
12
12
|
return command === "plays run" && args.includes("--json") && !args.includes("--no-wait");
|
|
13
13
|
}
|
|
14
14
|
async function checkPlayRunCompatibility(baseUrl, maintenancePolicy = "configured") {
|
|
15
|
-
if (maintenancePolicy !== "off")
|
|
16
|
-
const compatibility = await
|
|
15
|
+
if (maintenancePolicy !== "off") _chunkB7HQL77Vjs.flushDeferredSkillsSyncNotices.call(void 0, baseUrl);
|
|
16
|
+
const compatibility = await _chunkQSYA6VE4js.traceCliSpan.call(void 0,
|
|
17
17
|
"cli.sdk_compatibility",
|
|
18
18
|
{ baseUrl, command: "plays run" },
|
|
19
|
-
() =>
|
|
19
|
+
() => _chunkB7HQL77Vjs.checkSdkCompatibility.call(void 0, baseUrl, {
|
|
20
20
|
command: "plays run",
|
|
21
21
|
persistCache: maintenancePolicy !== "off"
|
|
22
22
|
})
|
|
23
23
|
);
|
|
24
24
|
if (compatibility.error) throw compatibility.error;
|
|
25
|
-
|
|
25
|
+
_chunkB7HQL77Vjs.enforceSdkCompatibilityResponse.call(void 0, compatibility.response, {
|
|
26
26
|
quietAdvisory: true
|
|
27
27
|
});
|
|
28
28
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getActiveCliProgress
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-EGHYGTJM.mjs";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_SKILL_AGENTS,
|
|
6
6
|
KNOWN_SKILL_AGENTS,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
sdkCliStateDirPath,
|
|
13
13
|
skillsAgentPathSegment,
|
|
14
14
|
writeSdkSkillsLocalVersion
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FK47YUPC.mjs";
|
|
16
16
|
import {
|
|
17
17
|
SDK_API_CONTRACT,
|
|
18
18
|
SDK_API_MAJOR,
|
|
@@ -20,13 +20,13 @@ import {
|
|
|
20
20
|
agentSessionIdFromEnvironment,
|
|
21
21
|
deploymentProtectionHeaders,
|
|
22
22
|
detectAgentRuntime
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-GRE3ID5E.mjs";
|
|
24
24
|
import {
|
|
25
25
|
DeeplineError
|
|
26
26
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
27
27
|
import {
|
|
28
28
|
SDK_RELEASE
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-SCPFOH5Z.mjs";
|
|
30
30
|
|
|
31
31
|
// src/compat.ts
|
|
32
32
|
import { randomUUID } from "crypto";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var _chunkGONUMUBMjs = require('./chunk-GONUMUBM.js');
|
|
4
4
|
|
|
5
5
|
// src/cli/maintenance-policy.ts
|
|
6
6
|
var _commander = require('commander');
|
|
@@ -33,7 +33,7 @@ function recordCliTrace(event) {
|
|
|
33
33
|
sinceStartMs: now - cliTraceStartedAt,
|
|
34
34
|
...event
|
|
35
35
|
};
|
|
36
|
-
|
|
36
|
+
_chunkGONUMUBMjs.writeRawStderr.call(void 0, `[cli-trace] ${JSON.stringify(payload)}
|
|
37
37
|
`);
|
|
38
38
|
}
|
|
39
39
|
async function traceCliSpan(phase, fields, run) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkGONUMUBMjs = require('./chunk-GONUMUBM.js');
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
var
|
|
7
|
+
var _chunk75IIHFN6js = require('./chunk-75IIHFN6.js');
|
|
8
8
|
|
|
9
9
|
// src/cli/commands/sessions.ts
|
|
10
10
|
|
|
@@ -139,7 +139,7 @@ function currentSessionFile(agent) {
|
|
|
139
139
|
const newestFirst = listSessionFiles(agent).sort(
|
|
140
140
|
(a, b) => b.mtimeMs - a.mtimeMs
|
|
141
141
|
);
|
|
142
|
-
const sessionId =
|
|
142
|
+
const sessionId = _chunk75IIHFN6js.agentSessionIdFromEnvironment.call(void 0,
|
|
143
143
|
process.env,
|
|
144
144
|
agent === "auto" ? void 0 : agent === "claude" ? "claude_code" : "codex"
|
|
145
145
|
);
|
|
@@ -451,7 +451,7 @@ function buildSessionUploadContent(raw) {
|
|
|
451
451
|
return { encodedContent: encoded, needsChunking: true };
|
|
452
452
|
}
|
|
453
453
|
async function uploadPayload(path, payload) {
|
|
454
|
-
const { http } =
|
|
454
|
+
const { http } = _chunkGONUMUBMjs.getAuthedHttpClient.call(void 0, );
|
|
455
455
|
return await http.post(path, payload);
|
|
456
456
|
}
|
|
457
457
|
async function uploadChunkedSessions(sessions, options) {
|
|
@@ -484,7 +484,7 @@ async function uploadChunkedSessions(sessions, options) {
|
|
|
484
484
|
...options.rating ? { rating: options.rating } : {}
|
|
485
485
|
});
|
|
486
486
|
const sessionIds = sessions.map((session) => session.sessionId);
|
|
487
|
-
|
|
487
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
|
|
488
488
|
{
|
|
489
489
|
...response,
|
|
490
490
|
ok: true,
|
|
@@ -516,7 +516,7 @@ async function handleSessionsSend(options) {
|
|
|
516
516
|
filename: _path.basename.call(void 0, filePath),
|
|
517
517
|
...rating ? { rating } : {}
|
|
518
518
|
});
|
|
519
|
-
|
|
519
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
|
|
520
520
|
{
|
|
521
521
|
...response2,
|
|
522
522
|
ok: true,
|
|
@@ -566,7 +566,7 @@ async function handleSessionsSend(options) {
|
|
|
566
566
|
...rating ? { rating } : {}
|
|
567
567
|
});
|
|
568
568
|
const sessionIds = built.map((session) => session.sessionId);
|
|
569
|
-
|
|
569
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
|
|
570
570
|
{
|
|
571
571
|
...response,
|
|
572
572
|
ok: true,
|
|
@@ -674,7 +674,7 @@ ${refreshMeta}
|
|
|
674
674
|
</body>
|
|
675
675
|
</html>`;
|
|
676
676
|
_fs.writeFileSync.call(void 0, outputPath, html, "utf8");
|
|
677
|
-
|
|
677
|
+
_chunkGONUMUBMjs.printCommandEnvelope.call(void 0,
|
|
678
678
|
{
|
|
679
679
|
ok: true,
|
|
680
680
|
file: outputPath,
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-F6QV42MC.mjs";
|
|
4
4
|
import {
|
|
5
5
|
parseLogLevel
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JJSLEMQQ.mjs";
|
|
7
7
|
import {
|
|
8
8
|
setDottedInputValue
|
|
9
9
|
} from "./chunk-HNRELVCS.mjs";
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
argsWantJson,
|
|
12
12
|
jsonFieldArgs,
|
|
13
13
|
parseJsonFields
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NREZRYPU.mjs";
|
|
15
15
|
import {
|
|
16
16
|
DeeplineError
|
|
17
17
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -49,7 +49,7 @@ var SDK_RELEASE = {
|
|
|
49
49
|
// getters keep their established compatibility behavior.
|
|
50
50
|
// 0.3.1 deprecated the legacy `deepline enrich` command in favor of Plays.
|
|
51
51
|
// 0.3.90 is the first deliberately versioned SDK release for API v3.
|
|
52
|
-
version: "0.3.
|
|
52
|
+
version: "0.3.483",
|
|
53
53
|
updateSummary: {
|
|
54
54
|
introducedIn: "0.3.90",
|
|
55
55
|
summary: "Play grep now returns concise results with the matched fields and terms. Automatic CLI updates are enabled by default; use `deepline settings autoupdate off` to opt out, `deepline settings autoupdate on` to re-enable updates, or `deepline settings autoupdate pin <version>` to hold an exact release."
|
|
@@ -28,7 +28,7 @@ var _chunkNMU3VR5Ujs = require('./chunk-NMU3VR5U.js');
|
|
|
28
28
|
|
|
29
29
|
|
|
30
30
|
|
|
31
|
-
var
|
|
31
|
+
var _chunk75IIHFN6js = require('./chunk-75IIHFN6.js');
|
|
32
32
|
|
|
33
33
|
|
|
34
34
|
var _chunkALJJRZNJjs = require('./chunk-ALJJRZNJ.js');
|
|
@@ -649,7 +649,7 @@ var ToolCalls = class {
|
|
|
649
649
|
idempotencyKey,
|
|
650
650
|
onResponse: (response2) => {
|
|
651
651
|
lastResponse = null;
|
|
652
|
-
atomicToolsSupported = response2.headers.get(
|
|
652
|
+
atomicToolsSupported = response2.headers.get(_chunk75IIHFN6js.ATOMIC_TOOL_EXECUTE_SUPPORTED_HEADER) === "true";
|
|
653
653
|
recoverySupported = response2.headers.get("X-Deepline-Idempotency-Supported") === "true";
|
|
654
654
|
if (_optionalChain([options, 'optionalAccess', _30 => _30.onServerTiming])) {
|
|
655
655
|
try {
|
|
@@ -1028,8 +1028,8 @@ function runtimeSelectionHeaders(runtime, env) {
|
|
|
1028
1028
|
}
|
|
1029
1029
|
const receivers = _optionalChain([env, 'access', _52 => _52.DEEPLINE_RUNTIME_RETAINED_PIPELINE_RECEIVERS, 'optionalAccess', _53 => _53.trim, 'call', _54 => _54()]);
|
|
1030
1030
|
return {
|
|
1031
|
-
[
|
|
1032
|
-
...receivers ? { [
|
|
1031
|
+
[_chunk75IIHFN6js.RUNTIME_ENVIRONMENT_TOKEN_HEADER]: token,
|
|
1032
|
+
...receivers ? { [_chunk75IIHFN6js.RETAINED_PIPELINE_RECEIVERS_HEADER]: receivers } : {}
|
|
1033
1033
|
};
|
|
1034
1034
|
}
|
|
1035
1035
|
function normalizeTestPolicyOverrides(value, source) {
|
|
@@ -1100,7 +1100,7 @@ var PlayClient = class {
|
|
|
1100
1100
|
return _chunkGVAENVIGjs.startPlayRun.call(void 0,
|
|
1101
1101
|
this.http,
|
|
1102
1102
|
resolved.request,
|
|
1103
|
-
_optionalChain([options, 'optionalAccess', _62 => _62.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(
|
|
1103
|
+
_optionalChain([options, 'optionalAccess', _62 => _62.cliAdmission]) ? { ...headers, "X-Deepline-API-Major": String(_chunk75IIHFN6js.SDK_API_MAJOR) } : headers,
|
|
1104
1104
|
options
|
|
1105
1105
|
);
|
|
1106
1106
|
}
|
|
@@ -3177,7 +3177,7 @@ function isolatedCiRuntimeEventReadHeaders(env) {
|
|
|
3177
3177
|
"RUNTIME_EVENT_INTERNAL_TOKEN_REQUIRED"
|
|
3178
3178
|
);
|
|
3179
3179
|
}
|
|
3180
|
-
return { [
|
|
3180
|
+
return { [_chunk75IIHFN6js.COORDINATOR_INTERNAL_TOKEN_HEADER]: token };
|
|
3181
3181
|
}
|
|
3182
3182
|
function sleep(ms) {
|
|
3183
3183
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
addDescribeOptions,
|
|
3
3
|
recordApiResponse,
|
|
4
4
|
writeExecutionOutput
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AWAFYRFV.mjs";
|
|
6
6
|
import {
|
|
7
7
|
recentSearchRef,
|
|
8
8
|
registerDeprecatedSearchCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-ISP7ZENV.mjs";
|
|
10
10
|
import {
|
|
11
11
|
arrayField,
|
|
12
12
|
formatModelDescription,
|
|
@@ -48,10 +48,10 @@ import {
|
|
|
48
48
|
} from "./chunk-FIVKWNMT.mjs";
|
|
49
49
|
import {
|
|
50
50
|
DeeplineClient
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-7APXZ3CX.mjs";
|
|
52
52
|
import {
|
|
53
53
|
validateExecutionIdempotencyKey
|
|
54
|
-
} from "./chunk-
|
|
54
|
+
} from "./chunk-JJSLEMQQ.mjs";
|
|
55
55
|
import {
|
|
56
56
|
stableStringify
|
|
57
57
|
} from "./chunk-UBKA33KY.mjs";
|
|
@@ -61,18 +61,18 @@ import {
|
|
|
61
61
|
maybeAutoUpdateAndRelaunch,
|
|
62
62
|
registerCompatibilityCatalog,
|
|
63
63
|
runToolExecuteStage
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-4X23YY2E.mjs";
|
|
65
65
|
import {
|
|
66
66
|
isCliTraceEnabled,
|
|
67
67
|
recordCliTrace,
|
|
68
68
|
resolveCliMaintenancePolicy
|
|
69
|
-
} from "./chunk-
|
|
69
|
+
} from "./chunk-YL64JIQ7.mjs";
|
|
70
70
|
import {
|
|
71
71
|
checkSdkCompatibility,
|
|
72
72
|
enforceSdkCompatibilityResponse,
|
|
73
73
|
flushDeferredSkillsSyncNotices,
|
|
74
74
|
syncSdkSkillsIfNeeded
|
|
75
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-PRL7EKJZ.mjs";
|
|
76
76
|
import {
|
|
77
77
|
printCommandEnvelope,
|
|
78
78
|
printCompactJson,
|
|
@@ -80,12 +80,12 @@ import {
|
|
|
80
80
|
printJsonError,
|
|
81
81
|
renderCommandEnvelopeText,
|
|
82
82
|
shouldEmitJson
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-NREZRYPU.mjs";
|
|
84
84
|
import {
|
|
85
85
|
readSdkSkillsLocalVersion,
|
|
86
86
|
resolveConfig,
|
|
87
87
|
sdkCliStateDirPath
|
|
88
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-FK47YUPC.mjs";
|
|
89
89
|
import {
|
|
90
90
|
DeeplineError
|
|
91
91
|
} from "./chunk-HBL4PM5Q.mjs";
|
|
@@ -1038,7 +1038,7 @@ Examples:
|
|
|
1038
1038
|
process.exitCode = await narrowView();
|
|
1039
1039
|
return;
|
|
1040
1040
|
}
|
|
1041
|
-
const { describeAnything } = await import("./describe-
|
|
1041
|
+
const { describeAnything } = await import("./describe-KSZFOWKV.mjs");
|
|
1042
1042
|
process.exitCode = await describeAnything(
|
|
1043
1043
|
toolId,
|
|
1044
1044
|
{
|