@sabaiway/agent-workflow-kit 23.2.0 → 23.2.1

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 CHANGED
@@ -4,6 +4,14 @@ Semantically versioned ([semver](https://semver.org)), newest first. The `versio
4
4
  is the current release. `upgrade` mode reads a project's `docs/ai/.workflow-version` and applies
5
5
  every `migrations/<version>-<slug>.md` newer than it, in semver order.
6
6
 
7
+ ## 23.2.1 — the gate hook's read-only list is written from the kit's own list (AD-227)
8
+
9
+ **The gate hook's list of read-only commands and its list of residual shell forms are now written from the kit's own
10
+ lists, so the two can no longer drift apart.** The hook decides every gate run exactly as before. The hook file in
11
+ the kit changes, so where you wired the gate hook your next `/agent-workflow-kit upgrade` refreshes
12
+ `.claude/hooks/agent-workflow-gates.mjs` through its usual item, with no question, and `init` refreshes it on its one
13
+ y.
14
+
7
15
  ## 23.2.0 — a service the kit does not ship goes into your own services list (AD-226)
8
16
 
9
17
  **A bridge run can now reach a service the kit does not ship: you list it once in your own
package/SKILL.md CHANGED
@@ -3,7 +3,7 @@ name: agent-workflow-kit
3
3
  description: Deploy or upgrade a portable AI-agent memory-and-workflow system in any project. Use when the user wants to bootstrap `docs/ai/` + an entry-point `AGENTS.md` (+ `CLAUDE.md` alias) + cap/archive/index enforcement in a new or existing repo, set up the Memory Map and session protocols, install the docs-rotation pre-commit hook, or run `/agent-workflow-kit` / `/agent-workflow-kit upgrade`. Triggers on phrases like "set up the memory system", "deploy the AI workflow here", "bootstrap docs/ai", "upgrade the workflow". New to the epic, story and task tier? Run `/agent-workflow-kit tier`. A typed decision with a confidence from Jev? Run `/agent-workflow-kit jev`.
4
4
  disable-model-invocation: true
5
5
  metadata:
6
- version: '23.2.0'
6
+ version: '23.2.1'
7
7
  ---
8
8
 
9
9
  # agent-workflow-kit
package/capability.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "schema": 1,
4
4
  "name": "agent-workflow-kit",
5
5
  "kind": "composition-root",
6
- "version": "23.2.0",
6
+ "version": "23.2.1",
7
7
  "provides": [],
8
8
  "roles": {},
9
9
  "detect": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sabaiway/agent-workflow-kit",
3
- "version": "23.2.0",
3
+ "version": "23.2.1",
4
4
  "description": "Portable, cross-agent memory & workflow for AI coding agents — Claude Code, Codex, Cursor, Devin Desktop. One command deploys an AGENTS.md entry point + docs/ai context with cap/archive/index enforcement into any repo.",
5
5
  "keywords": [
6
6
  "ai-agents",
@@ -5,10 +5,8 @@
5
5
  // .claude/settings.json.
6
6
  //
7
7
  // SELF-CONTAINED by contract: the placed copy must run on machines without the kit — no kit
8
- // imports, dependency-free, Node >= 22, no side effects on import. Two constants are baked
9
- // FROZEN COPIES of the velocity-profile.mjs exports (a placed file cannot import the kit):
10
- // SEEDED_READONLY_CORE ≡ UNIVERSAL_READONLY_ALLOWLIST and RESIDUAL_FORMS ≡
11
- // RUNTIME_RESIDUAL_FORMS — drift-guarded by the kit's test/gate-hook-core-parity.test.mjs.
8
+ // imports, dependency-free, Node >= 22, no side effects on import.
9
+ // SEEDED_READONLY_CORE and RESIDUAL_FORMS are the generated region scripts/sync-mirrors.mjs writes from velocity-profile.mjs.
12
10
  //
13
11
  // It reads <project root>/docs/ai/gates.json LIVE on every invocation (AD-035: one declaration,
14
12
  // two consumers — editing gates.json never requires re-wiring) and, for the opt-in read-lane
@@ -101,67 +99,69 @@ export const DECISION_ASK = 'ask';
101
99
  // fenced closed by default. The residual guard (b) is NOT mode-fenced: an `ask` never loosens.
102
100
  export const ALLOW_PERMISSION_MODES = Object.freeze(['default', 'acceptEdits']);
103
101
 
104
- // Baked frozen copy of velocity-profile.mjs UNIVERSAL_READONLY_ALLOWLIST (the audited read-only
105
- // core velocity seeds as settings allow rules). Drift-guarded — never edit here alone.
102
+ // generated from agent-workflow-kit/tools/velocity-profile.mjs by scripts/sync-mirrors.mjs; do not edit
106
103
  export const SEEDED_READONLY_CORE = Object.freeze([
107
- 'Bash(git status:*)',
108
- 'Bash(git diff:*)',
109
- 'Bash(git log:*)',
110
- 'Bash(git show:*)',
111
- 'Bash(git ls-files:*)',
112
- 'Bash(git check-ignore:*)',
113
- 'Bash(git branch --list:*)',
114
- 'Bash(git rev-parse:*)',
115
- 'Bash(git blame:*)',
116
- 'Bash(git shortlog:*)',
117
- 'Bash(git describe:*)',
118
- 'Bash(git tag --list:*)',
119
- 'Bash(git stash list:*)',
120
- 'Bash(git worktree list:*)',
121
- 'Bash(npm view:*)',
122
- 'Bash(npm ls:*)',
123
- 'Bash(npm outdated:*)',
124
- 'Bash(ls:*)',
125
- 'Bash(cat:*)',
126
- 'Bash(head:*)',
127
- 'Bash(tail:*)',
128
- 'Bash(wc:*)',
129
- 'Bash(readlink:*)',
130
- 'Bash(which:*)',
131
- 'Bash(grep:*)',
132
- 'Bash(diff:*)',
133
- 'Bash(stat:*)',
134
- 'Bash(du:*)',
135
- 'Bash(basename:*)',
136
- 'Bash(dirname:*)',
137
- 'Bash(realpath:*)',
104
+ "Bash(git status:*)",
105
+ "Bash(git diff:*)",
106
+ "Bash(git log:*)",
107
+ "Bash(git show:*)",
108
+ "Bash(git ls-files:*)",
109
+ "Bash(git check-ignore:*)",
110
+ "Bash(git branch --list:*)",
111
+ "Bash(git rev-parse:*)",
112
+ "Bash(git blame:*)",
113
+ "Bash(git shortlog:*)",
114
+ "Bash(git describe:*)",
115
+ "Bash(git tag --list:*)",
116
+ "Bash(git stash list:*)",
117
+ "Bash(git worktree list:*)",
118
+ "Bash(npm view:*)",
119
+ "Bash(npm ls:*)",
120
+ "Bash(npm outdated:*)",
121
+ "Bash(ls:*)",
122
+ "Bash(cat:*)",
123
+ "Bash(head:*)",
124
+ "Bash(tail:*)",
125
+ "Bash(wc:*)",
126
+ "Bash(readlink:*)",
127
+ "Bash(which:*)",
128
+ "Bash(grep:*)",
129
+ "Bash(diff:*)",
130
+ "Bash(stat:*)",
131
+ "Bash(du:*)",
132
+ "Bash(basename:*)",
133
+ "Bash(dirname:*)",
134
+ "Bash(realpath:*)",
138
135
  ]);
139
-
140
- // Baked frozen copy of velocity-profile.mjs RUNTIME_RESIDUAL_FORMS (the documented residual a
141
- // settings-level allow rule cannot see). Drift-guarded — never edit here alone.
142
136
  export const RESIDUAL_FORMS = Object.freeze({
143
- writeRedirections: Object.freeze(['>', '>>', '1>', '2>', '&>', '>|']),
144
- // `$(…)` + backtick + BOTH process substitutions `<(…)` / `>(…)` RUN a nested command. `>(…)` is
145
- // named here explicitly because that is the class it is IN: the redirection scan also happens to
146
- // match its `>`, but a command that RUNS something must be reported as running something, and a
147
- // classification must not depend on another class's coincidence. Bare `<` is input redirection
148
- // (reads a file — read-only commands may
149
- // already do that), so it is deliberately NOT here. The bash-5.3 function substitutions `${ cmd; }`
150
- // (a blank — space/tab/newline/CR — right after `${`) and `${| cmd; }` also RUN a nested command —
151
- // matched as the literal openers `${ ` / `${\t` / `${\n` / `${\r` / `${|` (AD-055 Part II). Ordinary
152
- // `${VAR}` has no blank after `${`, so it trips none of these (kept rung-(b)-silent).
153
- commandSubstitutions: Object.freeze(['$(', '`', '<(', '>(', '${ ', '${\t', '${\n', '${\r', '${|']),
154
- // A backslash immediately before a newline/CR is a bash LINE CONTINUATION: bash removes it and
155
- // splices the two lines into ONE word, reconstructing a residual token (`--output`, `$(`, `${ …; }`)
156
- // a raw substring scan on the pre-splice string misses. Guards a settings-allowed SINGLE (rung c
157
- // already forbids backslash in every segment). AD-055 Part II council fold.
158
- lineContinuations: Object.freeze(['\\\n', '\\\r']),
159
- // The `--output` write-flag family, matched as a raw SUBSTRING of the whole command (never a
160
- // whitespace-token check): the hook sees the pre-shell command string, so `--output=f`,
161
- // `"--output=f"`, `'--output' f`, and `\--output` must all trip it — over-asking on a benign
162
- // `--output-indicator` is the safe direction (never under-allow a real write flag through quotes).
163
- boundedWriteFlags: Object.freeze(['--output']),
137
+ "writeRedirections": Object.freeze([
138
+ ">",
139
+ ">>",
140
+ "1>",
141
+ "2>",
142
+ "&>",
143
+ ">|",
144
+ ]),
145
+ "commandSubstitutions": Object.freeze([
146
+ "$(",
147
+ "`",
148
+ "<(",
149
+ ">(",
150
+ "${ ",
151
+ "${\t",
152
+ "${\n",
153
+ "${\r",
154
+ "${|",
155
+ ]),
156
+ "lineContinuations": Object.freeze([
157
+ "\\\n",
158
+ "\\\r",
159
+ ]),
160
+ "boundedWriteFlags": Object.freeze([
161
+ "--output",
162
+ ]),
164
163
  });
164
+ // end of the generated lists
165
165
 
166
166
  export const RESIDUAL_CLASS_REDIRECTION = 'output redirection';
167
167
  export const RESIDUAL_CLASS_SUBSTITUTION = 'command substitution';
@@ -349,8 +349,7 @@ const hasHiddenFence = (projectDir, deps = {}) => {
349
349
  // probe never imports the rotator).
350
350
  // The ADR-layout probe's paths. LOCAL literals, not an import: this module backs the read-only
351
351
  // `status` view and importing the rotator would drag child_process + crypto into a status read. A
352
- // drift guard in family-registry.test.mjs pins each literal to the rotator's exported constant —
353
- // the same baked-frozen-copy shape the gate hook uses for its velocity constants.
352
+ // drift guard in family-registry.test.mjs pins each literal to the rotator's exported constant.
354
353
  export const ADR_LAYOUT_PATHS = Object.freeze({
355
354
  hot: 'docs/ai/decisions.md',
356
355
  monoliths: Object.freeze(['docs/ai/history/decisions-archive.md', 'docs/ai/history/decisions-archive-early.md']),
@@ -233,9 +233,9 @@ export { SHELL_METACHARACTERS };
233
233
 
234
234
  // The RUNTIME residual documented above, as data: the exact write-redirection / command-
235
235
  // substitution / bounded write-flag forms a settings-level allow rule cannot see. Consumed by
236
- // the PreToolUse gate hook's residual guard — the placed hook (references/hooks/gate-approve.mjs)
237
- // bakes a frozen COPY (a placed file cannot import the kit), drift-guarded by
238
- // test/gate-hook-core-parity.test.mjs alongside UNIVERSAL_READONLY_ALLOWLIST.
236
+ // the PreToolUse gate hook's residual guard — scripts/sync-mirrors.mjs writes the generated region
237
+ // in the bundled hook (references/hooks/gate-approve.mjs; a placed file cannot import the kit),
238
+ // alongside UNIVERSAL_READONLY_ALLOWLIST.
239
239
  export const RUNTIME_RESIDUAL_FORMS = Object.freeze({
240
240
  writeRedirections: Object.freeze(['>', '>>', '1>', '2>', '&>', '>|']),
241
241
  // `$(…)` + backtick + BOTH process substitutions `<(…)` / `>(…)` RUN a nested command. `>(…)` is