poe-code 3.0.199 → 3.0.201
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/index.js
CHANGED
|
@@ -980,6 +980,9 @@ async function resolveBaseChain({
|
|
|
980
980
|
throw error2;
|
|
981
981
|
}
|
|
982
982
|
if (visited.has(discoveredBase.filePath)) {
|
|
983
|
+
if (optional) {
|
|
984
|
+
return void 0;
|
|
985
|
+
}
|
|
983
986
|
throw new Error(
|
|
984
987
|
`Circular extends detected.
|
|
985
988
|
Visited files:
|
|
@@ -2295,7 +2298,7 @@ async function writeScope(fs19, filePath, scope, values) {
|
|
|
2295
2298
|
}
|
|
2296
2299
|
async function readMergedDocument(fs19, globalPath, projectPath) {
|
|
2297
2300
|
const globalDocument = await readStoredDocument(fs19, globalPath);
|
|
2298
|
-
if (!projectPath) {
|
|
2301
|
+
if (!projectPath || projectPath === globalPath) {
|
|
2299
2302
|
return globalDocument.data;
|
|
2300
2303
|
}
|
|
2301
2304
|
const projectDocument = await readStoredDocument(fs19, projectPath);
|
|
@@ -39686,7 +39689,7 @@ function matchesAllowlist(toolName, allowlist) {
|
|
|
39686
39689
|
function formatToolName(path94) {
|
|
39687
39690
|
return path94.map((segment) => formatSegment(segment, "snake")).join("__");
|
|
39688
39691
|
}
|
|
39689
|
-
function enumerateTools(root, casing, allowlist) {
|
|
39692
|
+
function enumerateTools(root, casing, allowlist, omitRootToolNamePrefix) {
|
|
39690
39693
|
const tools = [];
|
|
39691
39694
|
function visit(node, toolPath, commandPath) {
|
|
39692
39695
|
if (node.kind === "command") {
|
|
@@ -39716,7 +39719,7 @@ function enumerateTools(root, casing, allowlist) {
|
|
|
39716
39719
|
visit(child, nextToolPath, nextCommandPath);
|
|
39717
39720
|
}
|
|
39718
39721
|
}
|
|
39719
|
-
const rootPath = root.name.length === 0 ? [] : [root.name];
|
|
39722
|
+
const rootPath = omitRootToolNamePrefix || root.name.length === 0 ? [] : [root.name];
|
|
39720
39723
|
for (const child of root.children) {
|
|
39721
39724
|
visit(child, rootPath, []);
|
|
39722
39725
|
}
|
|
@@ -39885,7 +39888,7 @@ function createResolvedMCPServer(root, options) {
|
|
|
39885
39888
|
root
|
|
39886
39889
|
};
|
|
39887
39890
|
validateServices(services);
|
|
39888
|
-
const tools = enumerateTools(root, casing, options.tools);
|
|
39891
|
+
const tools = enumerateTools(root, casing, options.tools, options.omitRootToolNamePrefix ?? false);
|
|
39889
39892
|
const version = resolveMCPVersion(options.version);
|
|
39890
39893
|
const server = createServer({ name: options.name, version });
|
|
39891
39894
|
for (const tool of tools) {
|
|
@@ -40005,7 +40008,8 @@ var init_package = __esm({
|
|
|
40005
40008
|
async function runMarkdownReaderMcp() {
|
|
40006
40009
|
await runMCP(markdownGroup, {
|
|
40007
40010
|
name: "markdown-reader",
|
|
40008
|
-
version: package_default.version
|
|
40011
|
+
version: package_default.version,
|
|
40012
|
+
omitRootToolNamePrefix: true
|
|
40009
40013
|
});
|
|
40010
40014
|
}
|
|
40011
40015
|
var init_run2 = __esm({
|
|
@@ -56822,7 +56826,7 @@ var init_package2 = __esm({
|
|
|
56822
56826
|
"package.json"() {
|
|
56823
56827
|
package_default2 = {
|
|
56824
56828
|
name: "poe-code",
|
|
56825
|
-
version: "3.0.
|
|
56829
|
+
version: "3.0.201",
|
|
56826
56830
|
description: "CLI tool to configure Poe API for developer workflows.",
|
|
56827
56831
|
type: "module",
|
|
56828
56832
|
main: "./dist/index.js",
|