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/targets.js
CHANGED
|
@@ -2621,6 +2621,9 @@ var init_link_token_context = __esm({
|
|
|
2621
2621
|
});
|
|
2622
2622
|
|
|
2623
2623
|
// src/core/reference/link-rebaser.ts
|
|
2624
|
+
function isSlashCommandToken(normalizedToken) {
|
|
2625
|
+
return /^\/[A-Za-z][A-Za-z0-9-]*$/.test(normalizedToken);
|
|
2626
|
+
}
|
|
2624
2627
|
function rewriteFileLinks(input) {
|
|
2625
2628
|
const missing = /* @__PURE__ */ new Set();
|
|
2626
2629
|
const protectedRefRanges = protectedRanges(input.content);
|
|
@@ -2671,6 +2674,7 @@ function rewriteFileLinks(input) {
|
|
|
2671
2674
|
if (targetIsDirectory && !normalizedCandidate.includes("/") && !normalizedCandidate.includes("\\")) {
|
|
2672
2675
|
return match;
|
|
2673
2676
|
}
|
|
2677
|
+
if (isSlashCommandToken(normalizedCandidate)) return match;
|
|
2674
2678
|
if (resolvedBeforeTranslate === null) {
|
|
2675
2679
|
let normTok = normalizeSeparators(punctStripped);
|
|
2676
2680
|
if (normTok.startsWith("agentsmesh/")) {
|