@swmansion/argent 0.27.1-next.1 → 0.27.1-next.3
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/cli-cmds.mjs +4 -3
- package/dist/installer.mjs +1 -1
- package/dist/mcp-server.mjs +5 -2
- package/dist/tool-server.cjs +2 -1
- package/package.json +1 -1
package/dist/cli-cmds.mjs
CHANGED
|
@@ -21916,7 +21916,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
21916
21916
|
var SESSION_ID2 = randomUUID5();
|
|
21917
21917
|
function readCliVersion() {
|
|
21918
21918
|
if (true) {
|
|
21919
|
-
return "0.27.1-next.
|
|
21919
|
+
return "0.27.1-next.3";
|
|
21920
21920
|
}
|
|
21921
21921
|
return "0.0.0";
|
|
21922
21922
|
}
|
|
@@ -27495,13 +27495,14 @@ async function link(argv) {
|
|
|
27495
27495
|
const token = flags2.token ?? (existing && existing.host === host && existing.port === port ? existing.token : void 0);
|
|
27496
27496
|
let url2 = flags2.url ?? formatUrl(host, port);
|
|
27497
27497
|
if (!flags2.yes && existing) {
|
|
27498
|
-
|
|
27498
|
+
const sameUrl = existing.url === url2;
|
|
27499
|
+
if (sameUrl && existing.token === token) {
|
|
27499
27500
|
log.info(`Already linked to ${import_picocolors4.default.cyan(url2)}.`);
|
|
27500
27501
|
outro("No changes.");
|
|
27501
27502
|
return;
|
|
27502
27503
|
}
|
|
27503
27504
|
const overwrite = await confirm({
|
|
27504
|
-
message: `Replace existing link ${import_picocolors4.default.dim(existing.url)} with ${import_picocolors4.default.cyan(url2)}?`,
|
|
27505
|
+
message: sameUrl ? `Replace the token for ${import_picocolors4.default.cyan(url2)}?` : `Replace existing link ${import_picocolors4.default.dim(existing.url)} with ${import_picocolors4.default.cyan(url2)}?`,
|
|
27505
27506
|
initialValue: true
|
|
27506
27507
|
});
|
|
27507
27508
|
if (isCancel(overwrite) || !overwrite) {
|
package/dist/installer.mjs
CHANGED
|
@@ -16730,7 +16730,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
16730
16730
|
var SESSION_ID = randomUUID4();
|
|
16731
16731
|
function readCliVersion() {
|
|
16732
16732
|
if (true) {
|
|
16733
|
-
return "0.27.1-next.
|
|
16733
|
+
return "0.27.1-next.3";
|
|
16734
16734
|
}
|
|
16735
16735
|
return "0.0.0";
|
|
16736
16736
|
}
|
package/dist/mcp-server.mjs
CHANGED
|
@@ -18768,6 +18768,9 @@ function toMcpTool(t) {
|
|
|
18768
18768
|
...Object.keys(meta2).length > 0 ? { _meta: meta2 } : {}
|
|
18769
18769
|
};
|
|
18770
18770
|
}
|
|
18771
|
+
function toMcpToolList(tools) {
|
|
18772
|
+
return tools.filter((t) => !t.hideFromMcp).map(toMcpTool);
|
|
18773
|
+
}
|
|
18771
18774
|
|
|
18772
18775
|
// ../argent-mcp/src/installed-version.ts
|
|
18773
18776
|
import * as fs9 from "node:fs";
|
|
@@ -18912,13 +18915,13 @@ async function startMcpServer(options) {
|
|
|
18912
18915
|
);
|
|
18913
18916
|
server.setRequestHandler(ListToolsRequestSchema, async () => {
|
|
18914
18917
|
try {
|
|
18915
|
-
const tools = await fetchTools();
|
|
18918
|
+
const tools = toMcpToolList(await fetchTools());
|
|
18916
18919
|
await spyLog({
|
|
18917
18920
|
ts: (/* @__PURE__ */ new Date()).toISOString(),
|
|
18918
18921
|
event: "list_tools",
|
|
18919
18922
|
count: tools.length
|
|
18920
18923
|
});
|
|
18921
|
-
return { tools
|
|
18924
|
+
return { tools };
|
|
18922
18925
|
} catch (err) {
|
|
18923
18926
|
process.stderr.write(
|
|
18924
18927
|
`[argent] Failed to list tools: ${err instanceof Error ? err.message : err}
|
package/dist/tool-server.cjs
CHANGED
|
@@ -94814,7 +94814,7 @@ var _CI_VENDOR_COUNT_FOR_TEST = vendors_default.length;
|
|
|
94814
94814
|
var SESSION_ID = (0, import_node_crypto3.randomUUID)();
|
|
94815
94815
|
function readCliVersion() {
|
|
94816
94816
|
if (true) {
|
|
94817
|
-
return "0.27.1-next.
|
|
94817
|
+
return "0.27.1-next.3";
|
|
94818
94818
|
}
|
|
94819
94819
|
return "0.0.0";
|
|
94820
94820
|
}
|
|
@@ -115596,6 +115596,7 @@ function createHttpApp(registry2, options) {
|
|
|
115596
115596
|
if (def.alwaysLoad) entry.alwaysLoad = true;
|
|
115597
115597
|
if (def.searchHint) entry.searchHint = def.searchHint;
|
|
115598
115598
|
if (def.longRunning) entry.longRunning = true;
|
|
115599
|
+
if (def.hideFromMcp) entry.hideFromMcp = true;
|
|
115599
115600
|
return entry;
|
|
115600
115601
|
});
|
|
115601
115602
|
res.json({ tools });
|
package/package.json
CHANGED