@tankpkg/cli 0.0.0-nightly.20260416.2d9a5bf → 0.0.0-nightly.20260416.61373b0
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/bin/tank.js +4 -13
- package/dist/bin/tank.js.map +1 -1
- package/dist/{debug-logger-DD91p4Iq.js → debug-logger-BG1sREXO.js} +2 -2
- package/dist/{debug-logger-DD91p4Iq.js.map → debug-logger-BG1sREXO.js.map} +1 -1
- package/dist/index.js +1 -1
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/bin/tank.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { a as VERSION, i as USER_AGENT, l as setConfig, n as flushLogs, o as getConfig, s as getConfigDir, t as authFlowLog } from "../debug-logger-
|
|
2
|
+
import { a as VERSION, i as USER_AGENT, l as setConfig, n as flushLogs, o as getConfig, s as getConfigDir, t as authFlowLog } from "../debug-logger-BG1sREXO.js";
|
|
3
3
|
import { t as logger } from "../logger-BhULz3Uz.js";
|
|
4
4
|
import { Command } from "commander";
|
|
5
5
|
import chalk from "chalk";
|
|
@@ -265,12 +265,10 @@ const ruleIRSchema = z.object({
|
|
|
265
265
|
extensions: extensionBagSchema
|
|
266
266
|
}).strict();
|
|
267
267
|
const mcpServerConfigSchema = z.object({
|
|
268
|
-
command: z.string().min(1)
|
|
268
|
+
command: z.string().min(1),
|
|
269
269
|
args: z.array(z.string()).optional(),
|
|
270
|
-
env: z.record(z.string(), z.string()).optional()
|
|
271
|
-
|
|
272
|
-
entry: z.string().min(1).optional()
|
|
273
|
-
}).strict().refine((data) => data.command || data.runtime && data.entry, "MCP config must have either \"command\" or both \"runtime\" and \"entry\"");
|
|
270
|
+
env: z.record(z.string(), z.string()).optional()
|
|
271
|
+
}).strict();
|
|
274
272
|
const toolIRSchema = z.object({
|
|
275
273
|
kind: z.literal("tool"),
|
|
276
274
|
name: z.string().min(1, "Tool name must not be empty"),
|
|
@@ -1945,13 +1943,6 @@ function compilePackage(pkg, adapter, options) {
|
|
|
1945
1943
|
else rawFiles.push(sf);
|
|
1946
1944
|
}
|
|
1947
1945
|
const allAtoms = collectAtoms(pkg, options?.resolver);
|
|
1948
|
-
if (options?.sourceDir) {
|
|
1949
|
-
for (const atom of allAtoms) if (atom.kind === "tool" && atom.mcp?.entry && atom.mcp?.runtime) {
|
|
1950
|
-
const absoluteEntry = path.resolve(options.sourceDir, atom.mcp.entry);
|
|
1951
|
-
atom.mcp.command = atom.mcp.runtime;
|
|
1952
|
-
atom.mcp.args = [absoluteEntry, ...atom.mcp.args ?? []];
|
|
1953
|
-
}
|
|
1954
|
-
}
|
|
1955
1946
|
for (const atom of allAtoms) {
|
|
1956
1947
|
if (adapter.capabilities[atom.kind] === "none") {
|
|
1957
1948
|
const label = "name" in atom && atom.name ? `${atom.kind}/${atom.name}` : atom.kind;
|