@csark0812/skeleton 3.0.0 → 4.0.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/README.md +6 -5
- package/dist/cli.js +531 -716
- package/dist/hooks/customize-on-skill-read.js +416 -126
- package/package.json +2 -2
- package/dist/references/check.d.ts +0 -10
- package/dist/references/constants.d.ts +0 -9
- package/dist/references/discover.d.ts +0 -19
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@csark0812/skeleton",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "SSOT audit CLI for agent harness repos",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"typescript": "~7.0.2"
|
|
83
83
|
},
|
|
84
84
|
"overrides": {
|
|
85
|
-
"fast-uri": "3.1.
|
|
85
|
+
"fast-uri": "3.1.6",
|
|
86
86
|
"undici": "6.28.0"
|
|
87
87
|
}
|
|
88
88
|
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { SkillOwnershipConfig } from "../audit/config/types.ts";
|
|
2
|
-
import type { AuditContext } from "../audit/core/context.ts";
|
|
3
|
-
import { type Issue } from "../audit/core/report.ts";
|
|
4
|
-
export declare function runGeneratedReferencesCheck(root: string, ownership?: SkillOwnershipConfig): Issue[];
|
|
5
|
-
export declare function runGeneratedReferencesRule(ctx: AuditContext): Issue[];
|
|
6
|
-
export declare const generatedReferencesRule: {
|
|
7
|
-
id: string;
|
|
8
|
-
global: boolean;
|
|
9
|
-
run: typeof runGeneratedReferencesRule;
|
|
10
|
-
};
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export declare const CANONICAL_REFS_DIR = ".skeleton/references";
|
|
2
|
-
export declare const GENERATED_MARKER_START = "<!-- skeleton: generated-reference";
|
|
3
|
-
export declare const GENERATED_MARKER_RE: RegExp;
|
|
4
|
-
/** Markdown links targeting the old shared root references/ tree. */
|
|
5
|
-
export declare const SHARED_REF_LINK_RE: RegExp;
|
|
6
|
-
export declare function formatGeneratedHeader(sourceRelPath: string): string;
|
|
7
|
-
export declare function stripGeneratedHeader(content: string): string;
|
|
8
|
-
export declare function parseGeneratedSource(content: string): string | null;
|
|
9
|
-
export declare function isGeneratedReference(content: string): boolean;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { SkillOwnershipConfig } from "../audit/config/types.ts";
|
|
2
|
-
export interface SharedRefLink {
|
|
3
|
-
refPath: string;
|
|
4
|
-
sourceFile: string;
|
|
5
|
-
}
|
|
6
|
-
export interface SkillReferencePlan {
|
|
7
|
-
skill: string;
|
|
8
|
-
/** Repo-relative directory containing this concrete skill instance. */
|
|
9
|
-
skillDir: string;
|
|
10
|
-
refPaths: Set<string>;
|
|
11
|
-
links: SharedRefLink[];
|
|
12
|
-
}
|
|
13
|
-
/** Links still pointing at the old shared root references/ tree. */
|
|
14
|
-
export declare function findSharedRefLinks(content: string, sourceFile: string): SharedRefLink[];
|
|
15
|
-
export declare function discoverSkillReferencePlans(root: string, ownership?: SkillOwnershipConfig): SkillReferencePlan[];
|
|
16
|
-
export declare function canonicalRefPath(_root: string, refPath: string): string;
|
|
17
|
-
export declare function generatedRefPath(skillDir: string, refPath: string): string;
|
|
18
|
-
export declare function rewriteSharedRefTarget(sourceFile: string, skillDir: string, refPath: string): string;
|
|
19
|
-
export declare function rewriteSharedRefLinks(content: string, sourceFile: string, skillDir: string): string;
|