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/index.js
CHANGED
|
@@ -2918,6 +2918,9 @@ var init_link_token_context = __esm({
|
|
|
2918
2918
|
});
|
|
2919
2919
|
|
|
2920
2920
|
// src/core/reference/link-rebaser.ts
|
|
2921
|
+
function isSlashCommandToken(normalizedToken) {
|
|
2922
|
+
return /^\/[A-Za-z][A-Za-z0-9-]*$/.test(normalizedToken);
|
|
2923
|
+
}
|
|
2921
2924
|
function rewriteFileLinks(input) {
|
|
2922
2925
|
const missing = /* @__PURE__ */ new Set();
|
|
2923
2926
|
const protectedRefRanges = protectedRanges(input.content);
|
|
@@ -2968,6 +2971,7 @@ function rewriteFileLinks(input) {
|
|
|
2968
2971
|
if (targetIsDirectory && !normalizedCandidate.includes("/") && !normalizedCandidate.includes("\\")) {
|
|
2969
2972
|
return match;
|
|
2970
2973
|
}
|
|
2974
|
+
if (isSlashCommandToken(normalizedCandidate)) return match;
|
|
2971
2975
|
if (resolvedBeforeTranslate === null) {
|
|
2972
2976
|
let normTok = normalizeSeparators(punctStripped);
|
|
2973
2977
|
if (normTok.startsWith("agentsmesh/")) {
|