agentsmesh 0.39.0 → 0.40.0
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/CHANGELOG.md +18 -0
- package/dist/canonical.js +4 -0
- package/dist/canonical.js.map +1 -1
- package/dist/cli.js +225 -225
- package/dist/engine.js +4 -0
- package/dist/engine.js.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/lessons.js +26 -0
- package/dist/lessons.js.map +1 -1
- package/dist/targets.js +4 -0
- package/dist/targets.js.map +1 -1
- package/package.json +3 -2
package/dist/engine.js
CHANGED
|
@@ -2867,6 +2867,9 @@ var init_link_token_context = __esm({
|
|
|
2867
2867
|
});
|
|
2868
2868
|
|
|
2869
2869
|
// src/core/reference/link-rebaser.ts
|
|
2870
|
+
function isSlashCommandToken(normalizedToken) {
|
|
2871
|
+
return /^\/[A-Za-z][A-Za-z0-9-]*$/.test(normalizedToken);
|
|
2872
|
+
}
|
|
2870
2873
|
function rewriteFileLinks(input) {
|
|
2871
2874
|
const missing = /* @__PURE__ */ new Set();
|
|
2872
2875
|
const protectedRefRanges = protectedRanges(input.content);
|
|
@@ -2917,6 +2920,7 @@ function rewriteFileLinks(input) {
|
|
|
2917
2920
|
if (targetIsDirectory && !normalizedCandidate.includes("/") && !normalizedCandidate.includes("\\")) {
|
|
2918
2921
|
return match;
|
|
2919
2922
|
}
|
|
2923
|
+
if (isSlashCommandToken(normalizedCandidate)) return match;
|
|
2920
2924
|
if (resolvedBeforeTranslate === null) {
|
|
2921
2925
|
let normTok = normalizeSeparators(punctStripped);
|
|
2922
2926
|
if (normTok.startsWith("agentsmesh/")) {
|