@fantasticit/sumi 0.14.2 → 0.14.4
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/dist/adapters.js +62 -12
- package/dist/adapters.js.map +1 -1
- package/dist/agent-hooks.d.ts +1 -1
- package/dist/agent-hooks.js +68 -9
- package/dist/agent-hooks.js.map +1 -1
- package/dist/agents.js +1 -1
- package/dist/agents.js.map +1 -1
- package/dist/cli.js +66 -48
- package/dist/cli.js.map +1 -1
- package/dist/constraint-list.js +4 -3
- package/dist/constraint-list.js.map +1 -1
- package/dist/context.js +3 -3
- package/dist/context.js.map +1 -1
- package/dist/hook-routing.d.ts +6 -0
- package/dist/hook-routing.js +66 -12
- package/dist/hook-routing.js.map +1 -1
- package/dist/instructions.d.ts +1 -1
- package/dist/instructions.js +1 -1
- package/dist/instructions.js.map +1 -1
- package/dist/vendor.js +13 -1
- package/dist/vendor.js.map +1 -1
- package/node_modules/@sumi/create/package.json +2 -2
- package/node_modules/@sumi/kernel/dist/context-providers.js +2 -2
- package/node_modules/@sumi/kernel/dist/context-providers.js.map +1 -1
- package/node_modules/@sumi/kernel/dist/registry.js +1 -1
- package/node_modules/@sumi/kernel/dist/registry.js.map +1 -1
- package/node_modules/@sumi/kernel/dist/resume.js +8 -9
- package/node_modules/@sumi/kernel/dist/resume.js.map +1 -1
- package/node_modules/@sumi/kernel/dist/step-cache.js +1 -0
- package/node_modules/@sumi/kernel/dist/step-cache.js.map +1 -1
- package/node_modules/@sumi/kernel/package.json +2 -2
- package/node_modules/@sumi/plugin-sdk/dist/edit-paths.js +6 -2
- package/node_modules/@sumi/plugin-sdk/dist/edit-paths.js.map +1 -1
- package/node_modules/@sumi/plugin-sdk/dist/env.d.ts +2 -0
- package/node_modules/@sumi/plugin-sdk/dist/env.js +4 -0
- package/node_modules/@sumi/plugin-sdk/dist/env.js.map +1 -1
- package/node_modules/@sumi/plugin-sdk/dist/hook-input.js +9 -1
- package/node_modules/@sumi/plugin-sdk/dist/hook-input.js.map +1 -1
- package/node_modules/@sumi/plugin-sdk/dist/protocol.d.ts +2 -0
- package/node_modules/@sumi/plugin-sdk/dist/protocol.js.map +1 -1
- package/node_modules/@sumi/plugin-sdk/package.json +1 -1
- package/node_modules/@sumi/plugins-core/dist/context-provider.js +1 -1
- package/node_modules/@sumi/plugins-core/dist/context-provider.js.map +1 -1
- package/node_modules/@sumi/plugins-core/dist/plugins/test-affected.js +8 -6
- package/node_modules/@sumi/plugins-core/dist/plugins/test-affected.js.map +1 -1
- package/node_modules/@sumi/plugins-core/package.json +2 -2
- package/node_modules/@sumi/plugins-governance/assets/hook-bootstrap.cjs +137 -35
- package/node_modules/@sumi/plugins-governance/dist/commands/guard.js +9 -2
- package/node_modules/@sumi/plugins-governance/dist/commands/guard.js.map +1 -1
- package/node_modules/@sumi/plugins-governance/dist/config-recovery.d.ts +13 -1
- package/node_modules/@sumi/plugins-governance/dist/config-recovery.js +29 -5
- package/node_modules/@sumi/plugins-governance/dist/config-recovery.js.map +1 -1
- package/node_modules/@sumi/plugins-governance/dist/context-provider.js +8 -3
- package/node_modules/@sumi/plugins-governance/dist/context-provider.js.map +1 -1
- package/node_modules/@sumi/plugins-governance/dist/upgrade-command.js +5 -1
- package/node_modules/@sumi/plugins-governance/dist/upgrade-command.js.map +1 -1
- package/node_modules/@sumi/plugins-governance/package.json +4 -4
- package/node_modules/@sumi/plugins-openspec/package.json +4 -4
- package/node_modules/@sumi/plugins-precedent/package.json +3 -3
- package/node_modules/@sumi/plugins-review/dist/context-provider.js +1 -1
- package/node_modules/@sumi/plugins-review/dist/context-provider.js.map +1 -1
- package/node_modules/@sumi/plugins-review/dist/upgrade.js +3 -1
- package/node_modules/@sumi/plugins-review/dist/upgrade.js.map +1 -1
- package/node_modules/@sumi/plugins-review/package.json +6 -6
- package/package.json +10 -10
|
@@ -40,24 +40,64 @@ function simpleWords(command) {
|
|
|
40
40
|
return parts.map((part) => part.replace(/^(['"])(.*)\1$/, '$2'));
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
-
function allowedCommand(command
|
|
43
|
+
function allowedCommand(command) {
|
|
44
44
|
const words = simpleWords(command);
|
|
45
45
|
if (!words) return false;
|
|
46
46
|
const [program, operation, ...args] = words;
|
|
47
|
-
if (allowedRecovery(words
|
|
48
|
-
if (
|
|
49
|
-
if (
|
|
50
|
-
|
|
47
|
+
if (allowedRecovery(words)) return true;
|
|
48
|
+
if (['pnpm', 'npm', 'yarn', 'bun'].includes(program)) {
|
|
49
|
+
if (['install', 'add'].includes(operation)) return true;
|
|
50
|
+
if (operation === 'i') return ['pnpm', 'npm'].includes(program);
|
|
51
|
+
return program === 'npm' && operation === 'ci';
|
|
51
52
|
}
|
|
52
53
|
if (['pwd', 'ls', 'cat', 'head', 'tail', 'wc'].includes(program)) return true;
|
|
53
54
|
if (program === 'rg') return !words.some((word) => /^--(?:pre|pre-glob|hostname-bin)(?:=|$)/.test(word));
|
|
54
55
|
if (program !== 'git') return false;
|
|
56
|
+
if (allowedGitRecovery(operation, args)) return true;
|
|
55
57
|
if (words.some((word) => /^--(?:output|ext-diff|textconv|exec-path|config-env)(?:=|$)/.test(word))) return false;
|
|
56
58
|
if (operation === 'branch') return args.length === 1 && args[0] === '--show-current';
|
|
57
59
|
return ['status', 'diff', 'log', 'show', 'ls-files', 'ls-tree', 'rev-parse'].includes(operation);
|
|
58
60
|
}
|
|
59
61
|
|
|
60
|
-
function
|
|
62
|
+
function allowedGitRecovery(operation, args) {
|
|
63
|
+
const ref = (value) => typeof value === 'string' && /^[A-Za-z0-9][A-Za-z0-9._/~^-]*$/.test(value);
|
|
64
|
+
if (['merge', 'rebase', 'revert', 'cherry-pick', 'am'].includes(operation)) return args.length === 1 && args[0] === '--abort';
|
|
65
|
+
if (operation === 'switch') return args.length === 1 && (ref(args[0]) || args[0] === '-');
|
|
66
|
+
if (operation === 'checkout') {
|
|
67
|
+
const separator = args.indexOf('--');
|
|
68
|
+
const target = separator === 0 || (separator === 1 && ref(args[0]));
|
|
69
|
+
if (separator >= 0) return target && args.length > separator + 1;
|
|
70
|
+
return args.length === 1 && (ref(args[0]) || args[0] === '-');
|
|
71
|
+
}
|
|
72
|
+
if (operation === 'reset') {
|
|
73
|
+
const separator = args.indexOf('--');
|
|
74
|
+
const options = separator < 0 ? args : args.slice(0, separator);
|
|
75
|
+
if (separator >= 0 && args.length <= separator + 1) return false;
|
|
76
|
+
let mode = false;
|
|
77
|
+
let target = false;
|
|
78
|
+
return options.every((arg) => {
|
|
79
|
+
if (['--hard', '--mixed', '--soft', '--keep', '--merge'].includes(arg) && !mode) return (mode = true);
|
|
80
|
+
if (ref(arg) && !target) return (target = true);
|
|
81
|
+
return false;
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
if (operation !== 'restore') return false;
|
|
85
|
+
let paths = 0;
|
|
86
|
+
for (let index = 0; index < args.length; index++) {
|
|
87
|
+
const arg = args[index];
|
|
88
|
+
if (arg === '--') return args.length > index + 1;
|
|
89
|
+
if (['--staged', '--worktree', '-S', '-W'].includes(arg)) continue;
|
|
90
|
+
if (arg === '--source' || arg === '-s') {
|
|
91
|
+
if (!ref(args[++index])) return false;
|
|
92
|
+
} else if (arg.startsWith('--source=')) {
|
|
93
|
+
if (!ref(arg.slice('--source='.length))) return false;
|
|
94
|
+
} else if (arg.startsWith('-')) return false;
|
|
95
|
+
else paths++;
|
|
96
|
+
}
|
|
97
|
+
return paths > 0;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
function allowedRecovery(words) {
|
|
61
101
|
let args = words;
|
|
62
102
|
if (
|
|
63
103
|
args[0] === 'node' &&
|
|
@@ -67,13 +107,17 @@ function allowedRecovery(words, configRecovery) {
|
|
|
67
107
|
else if (args[0] === 'sumi') args = args.slice(1);
|
|
68
108
|
else if (['pnpm', 'npm', 'yarn', 'bun'].includes(args[0]) && args[1] === 'exec' && args[2] === 'sumi') args = args.slice(3);
|
|
69
109
|
else return false;
|
|
70
|
-
if (args[0] === 'vendor')
|
|
71
|
-
|
|
72
|
-
|
|
110
|
+
if (args[0] === 'vendor') {
|
|
111
|
+
const options = args.slice(1).filter((arg) => arg !== '--json');
|
|
112
|
+
const namedPackage = options.length === 2 && ['@fantasticit/sumi', '@sumi/cli'].includes(options[1]);
|
|
113
|
+
return options[0] === '--dependency' && (options.length === 1 || namedPackage);
|
|
114
|
+
}
|
|
115
|
+
if (['--version', 'version'].includes(args[0])) return args.length === 1 || (args.length === 2 && args[1] === '--json');
|
|
116
|
+
if (args[0] === 'update') return args.slice(1).every((arg) => ['--check', '--json', '--plan'].includes(arg));
|
|
73
117
|
return args[0] === 'doctor' && args.slice(1).every((arg) => ['--json'].includes(arg));
|
|
74
118
|
}
|
|
75
119
|
|
|
76
|
-
function allowedInput(raw,
|
|
120
|
+
function allowedInput(raw, projectRoot, { resolve, dirname, basename, realpathSync }) {
|
|
77
121
|
try {
|
|
78
122
|
const input = JSON.parse(raw);
|
|
79
123
|
if (['Read', 'Glob', 'Grep'].includes(input.tool_name)) return true;
|
|
@@ -81,9 +125,9 @@ function allowedInput(raw, configRecovery, { resolve, dirname, basename, realpat
|
|
|
81
125
|
const data =
|
|
82
126
|
typeof input.tool_input === 'string' ? (patchTool ? { patch: input.tool_input } : JSON.parse(input.tool_input)) : input.tool_input;
|
|
83
127
|
const shellTool = ['Bash', 'Shell', 'exec_command', 'functions.exec_command'].includes(input.tool_name);
|
|
84
|
-
|
|
85
|
-
const root = realpathSync(
|
|
86
|
-
const cwd = typeof input.cwd === 'string' ? resolve(root, input.cwd) :
|
|
128
|
+
{
|
|
129
|
+
const root = realpathSync(projectRoot);
|
|
130
|
+
const cwd = typeof input.cwd === 'string' ? resolve(root, input.cwd) : process.cwd();
|
|
87
131
|
const base = typeof data?.workdir === 'string' ? resolve(cwd, data.workdir) : cwd;
|
|
88
132
|
const configPath = (path) => {
|
|
89
133
|
if (typeof path !== 'string') return false;
|
|
@@ -98,17 +142,27 @@ function allowedInput(raw, configRecovery, { resolve, dirname, basename, realpat
|
|
|
98
142
|
const paths = [...patch.matchAll(/^\*\*\* (?:Add|Update) File: (.+)$/gm)].map((match) => match[1]);
|
|
99
143
|
return paths.length > 0 && paths.every(configPath);
|
|
100
144
|
}
|
|
101
|
-
const words = simpleWords(data?.command ?? data?.cmd);
|
|
102
|
-
if (shellTool && words?.[0] === 'git' && words[1] === 'checkout' && words[2] === '--')
|
|
103
|
-
return words.length > 3 && words.slice(3).every(configPath);
|
|
104
145
|
}
|
|
105
146
|
if (!shellTool) return false;
|
|
106
|
-
return allowedCommand(data?.command ?? data?.cmd
|
|
147
|
+
return allowedCommand(data?.command ?? data?.cmd);
|
|
107
148
|
} catch {
|
|
108
149
|
return false;
|
|
109
150
|
}
|
|
110
151
|
}
|
|
111
152
|
|
|
153
|
+
function diagnosticLine(value) {
|
|
154
|
+
const lines = String(value)
|
|
155
|
+
.split(/\r?\n/)
|
|
156
|
+
.map((line) => line.trim())
|
|
157
|
+
.filter(Boolean);
|
|
158
|
+
const header = lines.find((line) => /^(?:\w*Error):/.test(line));
|
|
159
|
+
const message = header || lines.find((line) => !/^at |^Node\.js |^\^/.test(line)) || 'Sumi hook 运行失败';
|
|
160
|
+
return message
|
|
161
|
+
.replace(/\p{Cc}/gu, ' ')
|
|
162
|
+
.replace(/\s+/g, ' ')
|
|
163
|
+
.trim();
|
|
164
|
+
}
|
|
165
|
+
|
|
112
166
|
async function main() {
|
|
113
167
|
const { spawnSync } = await import('node:child_process');
|
|
114
168
|
const { existsSync, realpathSync } = await import('node:fs');
|
|
@@ -131,33 +185,71 @@ async function main() {
|
|
|
131
185
|
input.sumi_host ?? (input.conversation_id || input.cursor_version ? 'cursor' : input.thread_id || input.turn_id ? 'codex' : 'claude');
|
|
132
186
|
host = ['claude', 'codex', 'cursor'].includes(host) ? host : detectedHost;
|
|
133
187
|
const runtime = recovery ? null : resolve(__dirname, '../..', entry);
|
|
188
|
+
const projectRoot = recovery ? process.cwd() : resolve(__dirname, '../..');
|
|
189
|
+
const notification =
|
|
190
|
+
original[0] === 'hook' &&
|
|
191
|
+
[
|
|
192
|
+
'session-start',
|
|
193
|
+
'subagent-start',
|
|
194
|
+
'post-compact',
|
|
195
|
+
'model-switch',
|
|
196
|
+
'user-prompt',
|
|
197
|
+
'after-tool',
|
|
198
|
+
'stop',
|
|
199
|
+
'agent-session-start',
|
|
200
|
+
'agent-subagent-start',
|
|
201
|
+
'agent-user-prompt',
|
|
202
|
+
'agent-after-edit',
|
|
203
|
+
'agent-after-read',
|
|
204
|
+
'agent-stop',
|
|
205
|
+
'routed-receipt',
|
|
206
|
+
].includes(original[1]);
|
|
207
|
+
let failure = recovery ? process.argv[6] : '';
|
|
134
208
|
if (runtime && existsSync(runtime)) {
|
|
135
|
-
const child = spawnSync(process.execPath, [runtime,
|
|
209
|
+
const child = spawnSync(process.execPath, [runtime, ...original.slice(0, 3)], {
|
|
136
210
|
input: raw,
|
|
137
211
|
encoding: 'utf8',
|
|
138
212
|
maxBuffer: 1024 * 1024,
|
|
139
213
|
windowsHide: true,
|
|
214
|
+
timeout: notification ? 125000 : 15000,
|
|
215
|
+
killSignal: 'SIGKILL',
|
|
140
216
|
});
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
217
|
+
let invalidProtocol = false;
|
|
218
|
+
if (child.status === 0 && child.stdout?.trim()) {
|
|
219
|
+
try {
|
|
220
|
+
const output = JSON.parse(child.stdout);
|
|
221
|
+
invalidProtocol = !output || typeof output !== 'object' || Array.isArray(output);
|
|
222
|
+
} catch {
|
|
223
|
+
invalidProtocol = true;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
const crashed = /\n\s+at /.test(child.stderr ?? '');
|
|
227
|
+
// Cursor 的正常拒绝在退出 0 的 JSON 中;退出 2 的明确策略拒绝继续保留。
|
|
228
|
+
const completed = child.status === 0 || child.status === 2;
|
|
229
|
+
const valid = !child.error && !invalidProtocol && !crashed;
|
|
230
|
+
if (completed && valid) {
|
|
147
231
|
process.stdout.write(child.stdout ?? '');
|
|
148
232
|
process.stderr.write(child.stderr ?? '');
|
|
149
233
|
process.exitCode = child.status ?? 2;
|
|
150
234
|
return;
|
|
151
235
|
}
|
|
236
|
+
failure = invalidProtocol
|
|
237
|
+
? 'hook 输出协议未被识别'
|
|
238
|
+
: child.error?.code === 'ETIMEDOUT'
|
|
239
|
+
? 'hook 运行超时'
|
|
240
|
+
: child.stderr || `hook 运行失败(退出码 ${child.status ?? child.signal})`;
|
|
152
241
|
}
|
|
153
|
-
const allow = allowedInput(raw,
|
|
154
|
-
const
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
242
|
+
const allow = allowedInput(raw, projectRoot, { resolve, dirname, basename, realpathSync });
|
|
243
|
+
const detail =
|
|
244
|
+
runtime && !existsSync(runtime)
|
|
245
|
+
? `缺少项目依赖 ${entry},请先在仓库根目录安装依赖`
|
|
246
|
+
: failure || 'Sumi runtime 与项目锁定或 hook 协议不兼容';
|
|
247
|
+
const config = existsSync(resolve(projectRoot, 'control/config.yaml'))
|
|
248
|
+
? 'control/config.yaml'
|
|
249
|
+
: existsSync(resolve(projectRoot, 'sumi.config.yaml'))
|
|
250
|
+
? 'sumi.config.yaml'
|
|
251
|
+
: 'control/config.yaml';
|
|
252
|
+
const reason = `${diagnosticLine(detail)};请在仓库根目录执行 pnpm install,然后 node ./${entry || 'node_modules/@fantasticit/sumi/dist/bin.js'} vendor --dependency、update;可直接编辑项目配置或 git checkout -- ${config} 恢复`;
|
|
161
253
|
const notificationEvent = [
|
|
162
254
|
'SessionStart',
|
|
163
255
|
'sessionStart',
|
|
@@ -165,13 +257,24 @@ async function main() {
|
|
|
165
257
|
'postModelSwitch',
|
|
166
258
|
'Stop',
|
|
167
259
|
'PostToolUse',
|
|
260
|
+
'PostToolUseFailure',
|
|
168
261
|
'postToolUse',
|
|
262
|
+
'afterFileEdit',
|
|
263
|
+
'afterShellExecution',
|
|
169
264
|
'UserPromptSubmit',
|
|
265
|
+
'SubagentStart',
|
|
266
|
+
'subagentStart',
|
|
267
|
+
'PostCompact',
|
|
268
|
+
'postCompact',
|
|
269
|
+
'beforeSubmitPrompt',
|
|
270
|
+
'stop',
|
|
170
271
|
].includes(input.hook_event_name);
|
|
171
272
|
const declaredNotification = recovery && process.argv[5] === 'notification';
|
|
172
|
-
const
|
|
273
|
+
const unifiedTool = original[0] === 'hook' && ['before-tool', 'context-before-edit'].includes(original[1]);
|
|
274
|
+
const knownTool = unifiedTool || original[0] === 'context-before-edit';
|
|
275
|
+
const legacyNotification = !knownTool && notificationEvent;
|
|
276
|
+
process.stderr.write(`${reason}\n`);
|
|
173
277
|
if (notification || declaredNotification || legacyNotification) {
|
|
174
|
-
process.stderr.write(`${reason}\n`);
|
|
175
278
|
return;
|
|
176
279
|
}
|
|
177
280
|
if (host === 'cursor') {
|
|
@@ -184,7 +287,6 @@ async function main() {
|
|
|
184
287
|
process.stdout.write(
|
|
185
288
|
JSON.stringify({ hookSpecificOutput: { hookEventName: 'PreToolUse', permissionDecision: 'deny', permissionDecisionReason: reason } }),
|
|
186
289
|
);
|
|
187
|
-
process.stderr.write(`${reason}\n`);
|
|
188
290
|
process.exitCode = 2;
|
|
189
291
|
}
|
|
190
292
|
}
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { readHookInput } from '@sumi/plugin-sdk';
|
|
2
2
|
import { decide } from '../guard.js';
|
|
3
|
+
import { recoverConfigHook } from '../config-recovery.js';
|
|
3
4
|
/**
|
|
4
5
|
* sumi guard:供 AI 工具的命令与编辑前置 hook 调用,从标准输入读取 hook 输入(Claude Code 格式)。
|
|
5
6
|
* 拒绝时以退出码 2 结束并在 stderr 说明原因,放行时退出码 0。
|
|
6
7
|
*/
|
|
7
8
|
const root = process.env.SUMI_ROOT ?? process.cwd();
|
|
8
9
|
let input = {};
|
|
10
|
+
const raw = await readHookInput();
|
|
9
11
|
try {
|
|
10
|
-
input = JSON.parse(
|
|
12
|
+
input = JSON.parse(raw || '{}');
|
|
11
13
|
}
|
|
12
14
|
catch {
|
|
13
15
|
input = {};
|
|
@@ -18,7 +20,12 @@ try {
|
|
|
18
20
|
decision = decide(root, input);
|
|
19
21
|
}
|
|
20
22
|
catch (error) {
|
|
21
|
-
|
|
23
|
+
const recovered = recoverConfigHook(root, ['guard'], raw, `guard 无法判断本次操作:${error.message}`);
|
|
24
|
+
if (recovered.stdout)
|
|
25
|
+
process.stdout.write(recovered.stdout);
|
|
26
|
+
if (recovered.stderr)
|
|
27
|
+
process.stderr.write(recovered.stderr);
|
|
28
|
+
process.exit(recovered.status ?? 2);
|
|
22
29
|
}
|
|
23
30
|
if (!decision.allow) {
|
|
24
31
|
process.stderr.write(`${decision.reason}\n`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"guard.js","sourceRoot":"","sources":["../../src/commands/guard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAmB,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"guard.js","sourceRoot":"","sources":["../../src/commands/guard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAmB,MAAM,aAAa,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAE1D;;;GAGG;AACH,MAAM,IAAI,GAAG,OAAO,CAAC,GAAG,CAAC,SAAS,IAAI,OAAO,CAAC,GAAG,EAAE,CAAC;AACpD,IAAI,KAAK,GAAe,EAAE,CAAC;AAC3B,MAAM,GAAG,GAAG,MAAM,aAAa,EAAE,CAAC;AAClC,IAAI,CAAC;IACH,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI,IAAI,CAAe,CAAC;AAChD,CAAC;AAAC,MAAM,CAAC;IACP,KAAK,GAAG,EAAE,CAAC;AACb,CAAC;AACD,+CAA+C;AAC/C,IAAI,QAAmC,CAAC;AACxC,IAAI,CAAC;IACH,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AACjC,CAAC;AAAC,OAAO,KAAK,EAAE,CAAC;IACf,MAAM,SAAS,GAAG,iBAAiB,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,EAAE,GAAG,EAAE,kBAAmB,KAAe,CAAC,OAAO,EAAE,CAAC,CAAC;IACxG,IAAI,SAAS,CAAC,MAAM;QAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAC7D,IAAI,SAAS,CAAC,MAAM;QAAE,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IAC7D,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,IAAI,CAAC,CAAC,CAAC;AACtC,CAAC;AACD,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC;IACpB,OAAO,CAAC,MAAM,CAAC,KAAK,CAAC,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,CAAC;IAC7C,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;AACvB,CAAC"}
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
export declare const hookBootstrapPath: () => string;
|
|
2
|
+
/** 真实 hook 入口在执行或送达之前检查运行前提,策略仍留在治理插件。 */
|
|
3
|
+
export declare function recoverUnavailableHook(root: string, argv: string[], input: string): {
|
|
4
|
+
failure: string;
|
|
5
|
+
pid: number;
|
|
6
|
+
output: (string | null)[];
|
|
7
|
+
stdout: string;
|
|
8
|
+
stderr: string;
|
|
9
|
+
status: number | null;
|
|
10
|
+
signal: NodeJS.Signals | null;
|
|
11
|
+
error?: Error;
|
|
12
|
+
} | null;
|
|
13
|
+
/** 项目失效时不重新加载声明,只调用随当前 runtime 安装的统一恢复判定。 */
|
|
2
14
|
export declare function recoverConfigHook(root: string, argv: string[], input: string, reason: string): import("child_process").SpawnSyncReturns<string>;
|
|
@@ -1,10 +1,34 @@
|
|
|
1
1
|
import { fileURLToPath } from 'node:url';
|
|
2
|
-
import {
|
|
3
|
-
|
|
2
|
+
import { existsSync } from 'node:fs';
|
|
3
|
+
import { join } from 'node:path';
|
|
4
|
+
import { cleanEnv, currentSumiPackage, gitCommonDir, projectEntryPath, spawnCommandSync } from '@sumi/plugin-sdk';
|
|
5
|
+
import { probeStateAccess } from './state-access.js';
|
|
6
|
+
export const hookBootstrapPath = () => fileURLToPath(new URL('../assets/hook-bootstrap.cjs', import.meta.url));
|
|
7
|
+
/** 真实 hook 入口在执行或送达之前检查运行前提,策略仍留在治理插件。 */
|
|
8
|
+
export function recoverUnavailableHook(root, argv, input) {
|
|
9
|
+
if (!gitCommonDir(root))
|
|
10
|
+
return null;
|
|
11
|
+
const access = probeStateAccess(root);
|
|
12
|
+
return access.status === 'pass' ? null : { ...recoverConfigHook(root, argv, input, access.summary), failure: access.summary };
|
|
13
|
+
}
|
|
14
|
+
/** 项目失效时不重新加载声明,只调用随当前 runtime 安装的统一恢复判定。 */
|
|
4
15
|
export function recoverConfigHook(root, argv, input, reason) {
|
|
5
|
-
const bootstrap =
|
|
6
|
-
const
|
|
7
|
-
|
|
16
|
+
const bootstrap = hookBootstrapPath();
|
|
17
|
+
const entry = currentSumiPackage()
|
|
18
|
+
? projectEntryPath(currentSumiPackage())
|
|
19
|
+
: (['@fantasticit/sumi', '@sumi/cli'].map(projectEntryPath).find((path) => existsSync(join(root, path))) ?? projectEntryPath(null));
|
|
20
|
+
const notification = [
|
|
21
|
+
'pr-report-check',
|
|
22
|
+
'hint',
|
|
23
|
+
'boundary-prompt',
|
|
24
|
+
'boundary-after-edit',
|
|
25
|
+
'context-on-prompt',
|
|
26
|
+
'context-after-edit',
|
|
27
|
+
'agent-rules-prompt',
|
|
28
|
+
'review-startup-context',
|
|
29
|
+
'review-request-read',
|
|
30
|
+
].includes(argv[0] ?? '');
|
|
31
|
+
return spawnCommandSync(process.execPath, [bootstrap, '--recover-config', JSON.stringify(argv), entry, notification ? 'notification' : 'tool', reason], {
|
|
8
32
|
cwd: root,
|
|
9
33
|
input,
|
|
10
34
|
encoding: 'utf8',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config-recovery.js","sourceRoot":"","sources":["../src/config-recovery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"config-recovery.js","sourceRoot":"","sources":["../src/config-recovery.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,kBAAkB,EAAE,YAAY,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAClH,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,CAAC,MAAM,iBAAiB,GAAG,GAAG,EAAE,CAAC,aAAa,CAAC,IAAI,GAAG,CAAC,8BAA8B,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;AAE/G,0CAA0C;AAC1C,MAAM,UAAU,sBAAsB,CAAC,IAAY,EAAE,IAAc,EAAE,KAAa;IAChF,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC;QAAE,OAAO,IAAI,CAAC;IACrC,MAAM,MAAM,GAAG,gBAAgB,CAAC,IAAI,CAAC,CAAC;IACtC,OAAO,MAAM,CAAC,MAAM,KAAK,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,EAA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path';
|
|
|
3
3
|
import { probeStateAccess } from './state-access.js';
|
|
4
4
|
import { boundaryContext } from './boundary.js';
|
|
5
5
|
export function context(input) {
|
|
6
|
+
// 边界按任务送达,常驻文件不查询边界及其共享会话记录。
|
|
6
7
|
const diagnostics = [];
|
|
7
8
|
if (input.diagnose) {
|
|
8
9
|
try {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
if (!input.resident) {
|
|
11
|
+
const probe = probeStateAccess(input.repoRoot);
|
|
12
|
+
if (probe.status !== 'pass')
|
|
13
|
+
diagnostics.push({ id: 'state-writable', message: probe.summary });
|
|
14
|
+
}
|
|
12
15
|
}
|
|
13
16
|
catch (error) {
|
|
14
17
|
diagnostics.push({ id: 'state-writable', message: `共享状态探测失败 ${error.message}` });
|
|
@@ -19,6 +22,8 @@ export function context(input) {
|
|
|
19
22
|
message: '缺少 control/rules/boundaries.md,可从 Sumi 模板复制,并在项目自己的规则入口登记。',
|
|
20
23
|
});
|
|
21
24
|
}
|
|
25
|
+
if (input.resident)
|
|
26
|
+
return { items: [], diagnostics };
|
|
22
27
|
const items = boundaryContext(input.repoRoot, input.paths, input.session, input.change);
|
|
23
28
|
return {
|
|
24
29
|
items: items.map((item) => ({ ...item, hookOwned: true })),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-provider.js","sourceRoot":"","sources":["../src/context-provider.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAEhD,MAAM,UAAU,OAAO,CAAC,KAAmB;IACzC,MAAM,WAAW,GAA8C,EAAE,CAAC;IAClE,IAAI,KAAK,CAAC,QAAQ,EAAE,CAAC;QACnB,IAAI,CAAC;YACH,MAAM,KAAK,GA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D,MAAM,KAAK,GAAG,eAAe,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC,KAAK,EAAE,KAAK,CAAC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACxF,OAAO;QACL,KAAK,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAC1D,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,GAAG,EAAE,WAAW,EAAE,IAAI,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAC9G,WAAW;KACY,CAAC;AAC5B,CAAC"}
|
|
@@ -5,7 +5,11 @@ import { withYamlChanges } from '@sumi/plugin-sdk';
|
|
|
5
5
|
const { root, config } = JSON.parse(readFileSync(0, 'utf8'));
|
|
6
6
|
const directory = join(root, config.flows);
|
|
7
7
|
const plan = [];
|
|
8
|
-
for (const name of existsSync(directory)
|
|
8
|
+
for (const name of existsSync(directory)
|
|
9
|
+
? readdirSync(directory)
|
|
10
|
+
.filter((file) => file.endsWith('.flow.yaml'))
|
|
11
|
+
.sort()
|
|
12
|
+
: []) {
|
|
9
13
|
const path = join(config.flows, name);
|
|
10
14
|
const original = readFileSync(join(root, path), 'utf8');
|
|
11
15
|
const document = parseDocument(original);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade-command.js","sourceRoot":"","sources":["../src/upgrade-command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,aAAa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插件",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"./package.json": "./package.json"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@sumi/create": "0.14.
|
|
17
|
-
"@sumi/kernel": "0.14.
|
|
18
|
-
"@sumi/plugin-sdk": "0.14.
|
|
16
|
+
"@sumi/create": "0.14.4",
|
|
17
|
+
"@sumi/kernel": "0.14.4",
|
|
18
|
+
"@sumi/plugin-sdk": "0.14.4",
|
|
19
19
|
"yaml": "2.9.1",
|
|
20
20
|
"picomatch": "4.0.7"
|
|
21
21
|
},
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sumi/plugins-openspec",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.4",
|
|
4
4
|
"description": "OpenSpec 插件",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
"./package.json": "./package.json"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@sumi/plugin-sdk": "0.14.
|
|
17
|
-
"@sumi/plugins-governance": "0.14.
|
|
18
|
-
"@sumi/plugins-precedent": "0.14.
|
|
16
|
+
"@sumi/plugin-sdk": "0.14.4",
|
|
17
|
+
"@sumi/plugins-governance": "0.14.4",
|
|
18
|
+
"@sumi/plugins-precedent": "0.14.4"
|
|
19
19
|
},
|
|
20
20
|
"files": [
|
|
21
21
|
"dist",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sumi/plugins-precedent",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.4",
|
|
4
4
|
"description": "判例插件",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
"./package.json": "./package.json"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@sumi/plugin-sdk": "0.14.
|
|
16
|
+
"@sumi/plugin-sdk": "0.14.4",
|
|
17
17
|
"yaml": "2.9.1",
|
|
18
18
|
"picomatch": "4.0.7",
|
|
19
|
-
"@sumi/plugins-governance": "0.14.
|
|
19
|
+
"@sumi/plugins-governance": "0.14.4"
|
|
20
20
|
},
|
|
21
21
|
"files": [
|
|
22
22
|
"dist",
|
|
@@ -75,7 +75,7 @@ export function context(input) {
|
|
|
75
75
|
id: 'rules-scope',
|
|
76
76
|
message: '项目自有规则文本不自动合并;请核对 control/rules/development.md 的支持范围、修复范围与反过度设计约定。',
|
|
77
77
|
});
|
|
78
|
-
const advice = reviewCostAdvice(repoRoot);
|
|
78
|
+
const advice = input.resident ? null : reviewCostAdvice(repoRoot);
|
|
79
79
|
if (advice)
|
|
80
80
|
diagnostics.push({ id: 'review-cost', message: advice });
|
|
81
81
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context-provider.js","sourceRoot":"","sources":["../src/context-provider.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAqB,gBAAgB,EAAsB,MAAM,kBAAkB,CAAC;AAC3F,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,UAAU,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE/G,0CAA0C;AAC1C,MAAM,UAAU,OAAO,CAAC,KAAmB;IACzC,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,KAAK,CAAC;IAC1E,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,EAAE,SAAS,EAAE,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rubricDir = join(root, 'control/rubrics');
|
|
10
10
|
const ids = new Set();
|
|
11
11
|
if (existsSync(rubricDir)) {
|
|
12
|
-
for (const file of readdirSync(rubricDir)
|
|
12
|
+
for (const file of readdirSync(rubricDir)
|
|
13
|
+
.filter((entry) => entry.endsWith('.yaml'))
|
|
14
|
+
.sort()) {
|
|
13
15
|
const id = file.slice(0, -'.yaml'.length);
|
|
14
16
|
if (!/^[a-zA-Z0-9_-]+$/.test(id))
|
|
15
17
|
throw new Error(`评审升级无法识别准则文件 ${file}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"upgrade.js","sourceRoot":"","sources":["../src/upgrade.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAiB/D,+BAA+B;AAC/B,SAAS,iBAAiB,CAAC,IAAY;IACrC,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,EAAE,iBAAiB,CAAC,CAAC;IAChD,MAAM,GAAG,GAAG,IAAI,GAAG,EAAU,CAAC;IAC9B,IAAI,UAAU,CAAC,SAAS,CAAC,EAAE,CAAC;QAC1B,KAAK,MAAM,IAAI,IAAI,WAAW,CAAC,SAAS,CAAC,
|
|
1
|
+
{"version":3,"file":"upgrade.js","sourceRoot":"","sources":["../src/upgrade.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,O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|
|
1
1
|
{
|
|
2
2
|
"name": "@sumi/plugins-review",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.4",
|
|
4
4
|
"description": "评审插件",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,13 +13,13 @@
|
|
|
13
13
|
"./package.json": "./package.json"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@sumi/kernel": "0.14.
|
|
17
|
-
"@sumi/create": "0.14.
|
|
18
|
-
"@sumi/plugin-sdk": "0.14.
|
|
16
|
+
"@sumi/kernel": "0.14.4",
|
|
17
|
+
"@sumi/create": "0.14.4",
|
|
18
|
+
"@sumi/plugin-sdk": "0.14.4",
|
|
19
19
|
"yaml": "2.9.1",
|
|
20
20
|
"picomatch": "4.0.7",
|
|
21
|
-
"@sumi/plugins-governance": "0.14.
|
|
22
|
-
"@sumi/plugins-precedent": "0.14.
|
|
21
|
+
"@sumi/plugins-governance": "0.14.4",
|
|
22
|
+
"@sumi/plugins-precedent": "0.14.4"
|
|
23
23
|
},
|
|
24
24
|
"files": [
|
|
25
25
|
"dist",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fantasticit/sumi",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.4",
|
|
4
4
|
"description": "sumi 命令行",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -13,14 +13,14 @@
|
|
|
13
13
|
"./package.json": "./package.json"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@sumi/create": "0.14.
|
|
17
|
-
"@sumi/kernel": "0.14.
|
|
18
|
-
"@sumi/plugin-sdk": "0.14.
|
|
19
|
-
"@sumi/plugins-core": "0.14.
|
|
20
|
-
"@sumi/plugins-governance": "0.14.
|
|
21
|
-
"@sumi/plugins-openspec": "0.14.
|
|
22
|
-
"@sumi/plugins-precedent": "0.14.
|
|
23
|
-
"@sumi/plugins-review": "0.14.
|
|
16
|
+
"@sumi/create": "0.14.4",
|
|
17
|
+
"@sumi/kernel": "0.14.4",
|
|
18
|
+
"@sumi/plugin-sdk": "0.14.4",
|
|
19
|
+
"@sumi/plugins-core": "0.14.4",
|
|
20
|
+
"@sumi/plugins-governance": "0.14.4",
|
|
21
|
+
"@sumi/plugins-openspec": "0.14.4",
|
|
22
|
+
"@sumi/plugins-precedent": "0.14.4",
|
|
23
|
+
"@sumi/plugins-review": "0.14.4",
|
|
24
24
|
"tar": "7.5.22",
|
|
25
25
|
"yaml": "2.9.1"
|
|
26
26
|
},
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"tar",
|
|
43
43
|
"yaml"
|
|
44
44
|
],
|
|
45
|
-
"sumiBuild": "sha256:
|
|
45
|
+
"sumiBuild": "sha256:70016c830d08975b6e6505ecf4a8f6e118d5de65fc6fd5436f3b8f45b9f2711e"
|
|
46
46
|
}
|