ultra-builder-pro-cli 0.17.1 → 0.19.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 +77 -6
- package/README.md +380 -261
- package/adapters/_shared/codex-assets.cjs +24 -16
- package/adapters/_shared/file-ops.cjs +40 -3
- package/adapters/_shared/provenance.cjs +90 -6
- package/adapters/_shared/runtime-assets.cjs +0 -11
- package/adapters/claude.js +3 -1
- package/adapters/kimi.js +4 -30
- package/adapters/opencode.js +50 -14
- package/docs/AGENT-CONTEXT.md +11 -14
- package/docs/ARCHITECTURE.md +23 -15
- package/docs/DECISIONS.md +75 -0
- package/docs/LEGACY-CLI-CROSSWALK.md +3 -3
- package/docs/PLUGIN-ISOLATION-CONTRACT.md +54 -0
- package/docs/ROADMAP.md +13 -13
- package/docs/RUNTIME-COMPAT-MATRIX.md +24 -21
- package/docs/STATE-DB-ACCESS-POLICY.md +2 -2
- package/docs/WORKFLOW-LIFECYCLE.md +12 -10
- package/hooks/active_task_context.py +1 -1
- package/hooks/context_spine.py +1 -1
- package/hooks/health_check.py +19 -0
- package/hooks/pre_stop_check.py +1 -1
- package/hooks/workflow_checkpoint.py +1 -1
- package/hooks/workflow_context.py +1 -1
- package/hooks/workflow_resume.py +1 -1
- package/mcp-server/lib/workflow-state.cjs +67 -54
- package/mcp-server/server.cjs +19 -7
- package/orchestrator/dispatch-rules.cjs +1 -1
- package/package.json +4 -5
- package/skills/ultra-change/SKILL.md +4 -3
- package/skills/ultra-init/SKILL.md +2 -1
- package/skills/ultra-research/SKILL.md +7 -4
- package/spec/cli-protocol.md +4 -4
- package/spec/mcp-tools.yaml +6 -6
- package/spec/schemas/context-file.v4.5.schema.json +1 -1
- package/spec/schemas/mcp-tools.schema.json +3 -3
- package/spec/schemas/state-db.sql +3 -3
- package/spec/schemas/tasks.v4.5.schema.json +1 -1
- package/adapters/_shared/handbook.cjs +0 -156
- package/bin/handbook.js +0 -54
- package/docs/PLAN.zh-CN.md +0 -1696
- package/docs/USER-HANDBOOK-CONTRACT.md +0 -81
package/bin/handbook.js
DELETED
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
'use strict';
|
|
3
|
-
|
|
4
|
-
const fs = require('node:fs');
|
|
5
|
-
const os = require('node:os');
|
|
6
|
-
const path = require('node:path');
|
|
7
|
-
|
|
8
|
-
const {
|
|
9
|
-
applyHandbook,
|
|
10
|
-
mergeHandbook,
|
|
11
|
-
resolveHandbookFile,
|
|
12
|
-
} = require('../adapters/_shared/handbook.cjs');
|
|
13
|
-
|
|
14
|
-
function usage() {
|
|
15
|
-
return [
|
|
16
|
-
'Usage:',
|
|
17
|
-
' ubp-handbook preview --runtime <claude|codex|opencode|kimi> [--file <path>]',
|
|
18
|
-
' ubp-handbook apply --runtime <claude|codex|opencode|kimi> [--file <path>]',
|
|
19
|
-
'',
|
|
20
|
-
'The apply command creates a timestamped backup before changing an existing file.',
|
|
21
|
-
].join('\n');
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
function parse(argv) {
|
|
25
|
-
const args = argv.slice(2);
|
|
26
|
-
const action = args.shift();
|
|
27
|
-
let runtime = null;
|
|
28
|
-
let file = null;
|
|
29
|
-
for (let i = 0; i < args.length; i++) {
|
|
30
|
-
if (args[i] === '--runtime') runtime = args[++i];
|
|
31
|
-
else if (args[i] === '--file') file = args[++i];
|
|
32
|
-
else throw new Error(`unknown argument: ${args[i]}`);
|
|
33
|
-
}
|
|
34
|
-
if (!['preview', 'apply'].includes(action) || !runtime) throw new Error(usage());
|
|
35
|
-
return { action, runtime, file };
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
function main() {
|
|
39
|
-
const { action, runtime, file } = parse(process.argv);
|
|
40
|
-
const target = path.resolve(file || resolveHandbookFile(runtime, { homeDir: os.homedir() }));
|
|
41
|
-
if (action === 'preview') {
|
|
42
|
-
const existing = fs.existsSync(target) ? fs.readFileSync(target, 'utf8') : '';
|
|
43
|
-
process.stdout.write(mergeHandbook(existing, runtime));
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
process.stdout.write(JSON.stringify(applyHandbook({ runtime, file: target })) + '\n');
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
try {
|
|
50
|
-
main();
|
|
51
|
-
} catch (error) {
|
|
52
|
-
process.stderr.write(`${error.message}\n`);
|
|
53
|
-
process.exitCode = 1;
|
|
54
|
-
}
|