@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 +8 -0
- package/SKILL.md +1 -1
- package/capability.json +1 -1
- package/package.json +1 -1
- package/references/hooks/gate-approve.mjs +61 -61
- package/tools/family-registry.mjs +1 -2
- package/tools/velocity-profile.mjs +3 -3
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.
|
|
6
|
+
version: '23.2.1'
|
|
7
7
|
---
|
|
8
8
|
|
|
9
9
|
# agent-workflow-kit
|
package/capability.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sabaiway/agent-workflow-kit",
|
|
3
|
-
"version": "23.2.
|
|
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.
|
|
9
|
-
//
|
|
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
|
-
//
|
|
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
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
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([
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
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 —
|
|
237
|
-
//
|
|
238
|
-
//
|
|
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
|