@csark0812/skeleton 4.0.1 → 4.0.2

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.
@@ -12,6 +12,12 @@ function issue(rule, file, details, options) {
12
12
  severity: selected?.severity ?? "error"
13
13
  };
14
14
  }
15
+ var REREAD_CODES = new Set([
16
+ "review-dependency-changed",
17
+ "impacted-document-review-required",
18
+ "review-document-changed",
19
+ "review-dependency-set-changed"
20
+ ]);
15
21
  // src/audit/core/shared.ts
16
22
  function normalizeRelPath(p) {
17
23
  let out = p.replace(/\\/g, "/");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@csark0812/skeleton",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "SSOT audit CLI for agent harness repos",
5
5
  "type": "module",
6
6
  "bin": {
@@ -126,6 +126,23 @@
126
126
  }
127
127
  }
128
128
  },
129
+ "reviewCoverage": {
130
+ "type": "object",
131
+ "additionalProperties": false,
132
+ "description": "Require files matching include to appear in at least one scanned document's review-deps. Omit the section to use built-in code defaults. Set include to [] to disable.",
133
+ "properties": {
134
+ "include": {
135
+ "type": "array",
136
+ "items": { "type": "string", "minLength": 1 },
137
+ "description": "Repo-relative globs that require an owning paper. Empty array disables coverage and uncovered-changed-path."
138
+ },
139
+ "exclude": {
140
+ "type": "array",
141
+ "items": { "type": "string", "minLength": 1 },
142
+ "description": "Globs removed from the coverage set (added to built-in test and fixture excludes)"
143
+ }
144
+ }
145
+ },
129
146
  "reviewProof": {
130
147
  "type": "object",
131
148
  "additionalProperties": false,
@@ -0,0 +1,9 @@
1
+ # Installed by `skeleton init`. Run `pre-commit install` once per machine.
2
+ repos:
3
+ - repo: local
4
+ hooks:
5
+ - id: skeleton-validate-staged
6
+ name: skeleton validate changed (staged)
7
+ entry: node node_modules/@csark0812/skeleton/dist/cli.js validate changed --staged
8
+ language: system
9
+ pass_filenames: false
@@ -15,12 +15,15 @@ exclude = [
15
15
  [deny]
16
16
  paths = []
17
17
 
18
- # Optional but recommended: make review claims verifiable against exact document
19
- # and review-dependency bytes. Commit the generated lockfile.
20
- # [reviewProof]
21
- # mode = "hash"
18
+ [reviewProof]
19
+ mode = "hash"
22
20
  # lockfile = ".skeleton/review-lock.json"
23
21
 
22
+ # Defaults apply when this section is omitted. Empty include disables the gate.
23
+ # [reviewCoverage]
24
+ # include = ["**/*.{ts,tsx,js,jsx,mjs,cjs,py}", "package.json", "project.json"]
25
+ # exclude = ["**/__tests__/**", "**/*.test.*", "**/*.spec.*", "**/fixtures/**", "templates/**"]
26
+
24
27
  # Optional: basenames under .skeleton/customize/ appended on every skill inject
25
28
  # [customize]
26
29
  # alwaysInclude = ["shared-agent-references.md"]