@sabaiway/agent-workflow-kit 3.15.0 → 4.1.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/CHANGELOG.md +118 -0
- package/README.md +4 -4
- package/SKILL.md +1 -1
- package/bridges/antigravity-cli-bridge/SKILL.md +12 -8
- package/bridges/antigravity-cli-bridge/bin/agy-review.sh +735 -55
- package/bridges/antigravity-cli-bridge/bin/agy-review.test.mjs +899 -51
- package/bridges/antigravity-cli-bridge/bin/agy.sh +4 -3
- package/bridges/antigravity-cli-bridge/bin/agy.test.mjs +23 -0
- package/bridges/antigravity-cli-bridge/capability.json +14 -4
- package/bridges/antigravity-cli-bridge/references/driving-agy.md +12 -4
- package/bridges/antigravity-cli-bridge/references/models-and-flags.md +4 -3
- package/bridges/antigravity-cli-bridge/references/review-prompt.md +65 -2
- package/bridges/codex-cli-bridge/SKILL.md +1 -1
- package/bridges/codex-cli-bridge/bin/codex-exec.sh +2 -1
- package/bridges/codex-cli-bridge/bin/codex-review.sh +63 -13
- package/bridges/codex-cli-bridge/bin/codex-review.test.mjs +38 -0
- package/bridges/codex-cli-bridge/capability.json +1 -1
- package/capability.json +1 -1
- package/package.json +1 -1
- package/references/agents/review-lens.md +39 -0
- package/references/hooks/gate-approve.mjs +54 -7
- package/references/modes/agents.md +11 -2
- package/references/modes/autonomy-doctor.md +2 -0
- package/references/modes/backends.md +2 -0
- package/references/modes/bootstrap.md +2 -0
- package/references/modes/bridge-settings.md +4 -1
- package/references/modes/commit-guard.md +2 -0
- package/references/modes/core-evidence.md +2 -0
- package/references/modes/coverage-check.md +2 -0
- package/references/modes/doc-parity.md +2 -0
- package/references/modes/gates.md +2 -0
- package/references/modes/grounding.md +2 -0
- package/references/modes/help.md +2 -0
- package/references/modes/hook.md +13 -2
- package/references/modes/migrate-adr-store.md +2 -0
- package/references/modes/procedures.md +2 -0
- package/references/modes/recipes.md +2 -0
- package/references/modes/recommendations.md +4 -3
- package/references/modes/review-state.md +2 -0
- package/references/modes/sandbox-masks.md +2 -0
- package/references/modes/set-autonomy.md +2 -0
- package/references/modes/set-recipe.md +3 -0
- package/references/modes/setup.md +2 -0
- package/references/modes/state-block-guard.md +2 -0
- package/references/modes/status.md +4 -1
- package/references/modes/uninstall.md +2 -0
- package/references/modes/upgrade.md +2 -0
- package/references/modes/velocity.md +7 -0
- package/references/modes/worktrees.md +2 -0
- package/tools/bridge-settings-read.mjs +40 -10
- package/tools/bridge-settings.mjs +22 -7
- package/tools/cheap-agents.mjs +15 -5
- package/tools/commands.mjs +2 -2
- package/tools/core-evidence.mjs +29 -2
- package/tools/detect-backends.mjs +1 -1
- package/tools/manifest/schema.md +7 -0
- package/tools/manifest/validate.mjs +8 -0
- package/tools/presentation.mjs +1 -1
- package/tools/procedures.mjs +9 -2
- package/tools/recipes.mjs +4 -1
- package/tools/recommendations.mjs +110 -59
- package/tools/renderers.mjs +10 -1
- package/tools/review-state.mjs +4 -0
- package/tools/velocity-profile.mjs +6 -3
- package/tools/view-model.mjs +3 -1
|
@@ -254,15 +254,18 @@ export const SHELL_METACHARACTERS = Object.freeze([
|
|
|
254
254
|
// test/gate-hook-core-parity.test.mjs alongside UNIVERSAL_READONLY_ALLOWLIST.
|
|
255
255
|
export const RUNTIME_RESIDUAL_FORMS = Object.freeze({
|
|
256
256
|
writeRedirections: Object.freeze(['>', '>>', '1>', '2>', '&>', '>|']),
|
|
257
|
-
// `$(…)` + backtick + process
|
|
258
|
-
//
|
|
257
|
+
// `$(…)` + backtick + BOTH process substitutions `<(…)` / `>(…)` RUN a nested command. `>(…)` is
|
|
258
|
+
// named here explicitly because that is the class it is IN: the redirection scan also happens to
|
|
259
|
+
// match its `>`, but a command that RUNS something must be reported as running something, and a
|
|
260
|
+
// classification must not depend on another class's coincidence. Bare `<` is input redirection
|
|
261
|
+
// (reads a file — read-only commands may
|
|
259
262
|
// already do that), so it is deliberately NOT here. The bash-5.3 function substitutions `${ cmd; }`
|
|
260
263
|
// (a blank — space/tab/newline/CR — right after `${`) and `${| cmd; }` (runs a command, assigns
|
|
261
264
|
// REPLY) also execute a nested command — matched as the literal openers `${ ` / `${\t` / `${\n` /
|
|
262
265
|
// `${\r` / `${|` (AD-055 Part II; the `\r` opener guards CRLF payloads — council agy nit). An
|
|
263
266
|
// ordinary `${VAR}` parameter expansion has NO blank after `${`, so it trips none of these — kept
|
|
264
267
|
// rung-(b)-silent on a settings-allowed single (rung (c) excludes all `$`).
|
|
265
|
-
commandSubstitutions: Object.freeze(['$(', '`', '<(', '${ ', '${\t', '${\n', '${\r', '${|']),
|
|
268
|
+
commandSubstitutions: Object.freeze(['$(', '`', '<(', '>(', '${ ', '${\t', '${\n', '${\r', '${|']),
|
|
266
269
|
// A backslash immediately before a newline/CR is a bash LINE CONTINUATION: bash removes it and
|
|
267
270
|
// splices the two lines into ONE word, which can reconstruct a residual token (`--output`, `$(`,
|
|
268
271
|
// `${ …; }`) that a raw substring scan on the pre-splice string misses (`--outp\<newline>ut=f` →
|
package/tools/view-model.mjs
CHANGED
|
@@ -37,7 +37,9 @@ const bridgeVm = (b) => ({
|
|
|
37
37
|
settings: b.settings?.error
|
|
38
38
|
? { error: b.settings.error }
|
|
39
39
|
: b.settings?.active?.length
|
|
40
|
-
|
|
40
|
+
// `retired` rides along: a retired knob is CONFIGURED but arms nothing, and dropping the flag
|
|
41
|
+
// here rendered a dead key as an active setting on the one surface a user reads by default.
|
|
42
|
+
? { active: b.settings.active.map((a) => ({ key: a.key, value: a.value, source: a.source, retired: a.retired ?? null })) }
|
|
41
43
|
: null,
|
|
42
44
|
});
|
|
43
45
|
|