@agentxm/extension-model 0.31.0 → 0.31.1-preview.35384571507.dab37f17da4c

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.
@@ -10,7 +10,7 @@
10
10
  * @packageDocumentation
11
11
  */
12
12
  /**
13
- * WorkspaceMutations-relative path of the universal skills directory.
13
+ * Workspace-relative path of the universal skills directory.
14
14
  */
15
15
  export declare const UNIVERSAL_SKILLS_DIR = ".agents/skills";
16
16
  /**
@@ -23,7 +23,7 @@ export declare const UNIVERSAL_SKILLS_DIR_SEGMENT: string;
23
23
  /**
24
24
  * Strips trailing path separators from a path string.
25
25
  */
26
- export declare const stripTrailingSeparators: (p: string) => string;
26
+ export declare const stripTrailingSeparators: (path: string) => string;
27
27
  /**
28
28
  * Returns `true` when `dir` is the workspace-relative universal skills
29
29
  * directory path. Use for descriptor-level comparisons where paths are
@@ -10,7 +10,7 @@
10
10
  * @packageDocumentation
11
11
  */
12
12
  /**
13
- * WorkspaceMutations-relative path of the universal skills directory.
13
+ * Workspace-relative path of the universal skills directory.
14
14
  */
15
15
  export const UNIVERSAL_SKILLS_DIR = ".agents/skills";
16
16
  /**
@@ -23,7 +23,13 @@ export const UNIVERSAL_SKILLS_DIR_SEGMENT = UNIVERSAL_SKILLS_DIR.split("/")[0] ?
23
23
  /**
24
24
  * Strips trailing path separators from a path string.
25
25
  */
26
- export const stripTrailingSeparators = (p) => p.length > 1 ? p.replace(/[/\\]+$/, "") : p;
26
+ export const stripTrailingSeparators = (path) => {
27
+ let end = path.length;
28
+ while (end > 1 && (path[end - 1] === "/" || path[end - 1] === "\\")) {
29
+ end -= 1;
30
+ }
31
+ return path.slice(0, end);
32
+ };
27
33
  /**
28
34
  * Returns `true` when `dir` is the workspace-relative universal skills
29
35
  * directory path. Use for descriptor-level comparisons where paths are
@@ -1,5 +1,5 @@
1
1
  /**
2
- * WorkspaceMutations scope helpers for CLI flags and workspace options.
2
+ * Workspace scope helpers for CLI flags and workspace options.
3
3
  *
4
4
  * `project` uses the project root; `user` uses `~/.axm/workspace/`.
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * WorkspaceMutations scope helpers for CLI flags and workspace options.
2
+ * Workspace scope helpers for CLI flags and workspace options.
3
3
  *
4
4
  * `project` uses the project root; `user` uses `~/.axm/workspace/`.
5
5
  *
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  },
12
12
  "description": "Shared AgentXM extension model: identities, manifests, version constraints, and agent capabilities. Unstable and unsupported — use the axm.sh CLI.",
13
13
  "devDependencies": {
14
- "@agentxm/specification-metadata": "0.31.0",
14
+ "@agentxm/specification-metadata": "0.31.1-preview.35384571507.dab37f17da4c",
15
15
  "@effect/vitest": "4.0.0-rc.115",
16
16
  "@fast-check/vitest": "^0.5.0",
17
17
  "@types/semver": "^7.7.1",
@@ -297,5 +297,5 @@
297
297
  },
298
298
  "sideEffects": false,
299
299
  "type": "module",
300
- "version": "0.31.0"
300
+ "version": "0.31.1-preview.35384571507.dab37f17da4c"
301
301
  }