@aibyzero/byz 0.1.1 → 0.1.3
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 +20 -0
- package/README.md +34 -24
- package/dist/cli.js +22 -14
- package/dist/core/export-html/template.css +1066 -0
- package/dist/core/export-html/template.html +55 -0
- package/dist/core/export-html/template.js +1864 -0
- package/dist/core/export-html/vendor/highlight.min.js +1213 -0
- package/dist/core/export-html/vendor/marked.min.js +78 -0
- package/dist/fast.js +64 -0
- package/dist/modes/interactive/assets/clankolas.png +0 -0
- package/dist/modes/interactive/theme/dark.json +90 -0
- package/dist/modes/interactive/theme/light.json +89 -0
- package/dist/modes/interactive/theme/theme-schema.json +352 -0
- package/dist/runtime/bundle/chunks/{chunk-CCRJHU72.js → chunk-QY7DJQRI.js} +2 -2
- package/dist/runtime/bundle/chunks/github-copilot.js +1 -1
- package/dist/runtime/bundle/cli.js +1 -1
- package/dist/runtime/bundle/index.js +1 -1
- package/dist/runtime/bundle/rpc-entry.js +1 -1
- package/dist/runtime/core/resource-loader.d.ts +1 -0
- package/dist/runtime/core/resource-loader.d.ts.map +1 -1
- package/dist/runtime/core/resource-loader.js +8 -3
- package/dist/runtime/core/resource-loader.js.map +1 -1
- package/dist/workflows.js +4 -131
- package/package.json +2 -1
- package/workflows/cm-plugin/LICENSE +21 -0
- package/workflows/cm-plugin/README.md +195 -0
- package/workflows/cm-plugin/VERSION +1 -0
- package/workflows/cm-plugin/agents/cm-plugin-backend-agent.md +34 -0
- package/workflows/cm-plugin/agents/cm-plugin-extension-agent.md +35 -0
- package/workflows/cm-plugin/agents/cm-plugin-ui-agent.md +34 -0
- package/workflows/cm-plugin/commands/cm-plugin-ai-nodes/N1-init.md +60 -0
- package/workflows/cm-plugin/commands/cm-plugin-ai-nodes/N2-enter-feature.md +51 -0
- package/workflows/cm-plugin/commands/cm-plugin-ai-nodes/N3-execute-task.md +32 -0
- package/workflows/cm-plugin/commands/cm-plugin-ai-nodes/N4-review.md +58 -0
- package/workflows/cm-plugin/commands/cm-plugin-ai-nodes/N5-mark-done.md +80 -0
- package/workflows/cm-plugin/commands/cm-plugin-ai-nodes/N6-qa-eval.md +69 -0
- package/workflows/cm-plugin/commands/cm-plugin-ai-nodes/N7-context.md +23 -0
- package/workflows/cm-plugin/commands/cm-plugin-ai-nodes/N8-finish.md +61 -0
- package/workflows/cm-plugin/commands/cm-plugin-prd-modes/brownfield.md +13 -0
- package/workflows/cm-plugin/commands/cm-plugin-prd-modes/change-mode.md +130 -0
- package/workflows/cm-plugin/commands/cm-plugin-prd-modes/greenfield.md +82 -0
- package/workflows/cm-plugin/commands/cm-plugin:ai.md +75 -0
- package/workflows/cm-plugin/commands/cm-plugin:check.md +66 -0
- package/workflows/cm-plugin/commands/cm-plugin:fix.md +100 -0
- package/workflows/cm-plugin/commands/cm-plugin:idea.md +29 -0
- package/workflows/cm-plugin/commands/cm-plugin:init.md +145 -0
- package/workflows/cm-plugin/commands/cm-plugin:prd.md +403 -0
- package/workflows/cm-plugin/commands/cm-plugin:refactor.md +147 -0
- package/workflows/cm-plugin/commands/cm-plugin:rewrite.md +90 -0
- package/workflows/cm-plugin/commands/cm-plugin:scout.md +202 -0
- package/workflows/cm-plugin/docs//346/265/213/350/257/225/346/214/207/345/274/225-/345/277/253/351/200/237/344/270/212/346/211/213.md +189 -0
- package/workflows/cm-plugin/docs//351/207/215/346/236/204/346/265/201/347/250/213/350/256/276/350/256/241/README.md +17 -0
- package/workflows/cm-plugin/docs//351/207/215/346/236/204/346/265/201/347/250/213/350/256/276/350/256/241/refactor-flow.excalidraw +3650 -0
- package/workflows/cm-plugin/docs//351/207/215/346/236/204/346/265/201/347/250/213/350/256/276/350/256/241/refactor-flow.mp4 +0 -0
- package/workflows/cm-plugin/docs//351/207/215/346/236/204/346/265/201/347/250/213/350/256/276/350/256/241/refactor-flow.png +0 -0
- package/workflows/cm-plugin/docs//351/207/215/346/236/204/346/265/201/347/250/213/350/256/276/350/256/241/refactor-flow.spec.json +223 -0
- package/workflows/cm-plugin/package.json +33 -0
- package/workflows/cm-plugin/skills/cm-plugin-backend-engineer/SKILL.md +100 -0
- package/workflows/cm-plugin/skills/cm-plugin-devops-engineer/NOTICE.md +14 -0
- package/workflows/cm-plugin/skills/cm-plugin-devops-engineer/SKILL.md +120 -0
- package/workflows/cm-plugin/skills/cm-plugin-devops-engineer/references/cws-ci-cd.md +139 -0
- package/workflows/cm-plugin/skills/cm-plugin-devops-engineer/references/cws-submission-checklist.md +87 -0
- package/workflows/cm-plugin/skills/cm-plugin-doc-syncer/SKILL.md +149 -0
- package/workflows/cm-plugin/skills/cm-plugin-extension-engineer/SKILL.md +105 -0
- package/workflows/cm-plugin/skills/cm-plugin-product-manager/SKILL.md +83 -0
- package/workflows/cm-plugin/skills/cm-plugin-qa-engineer/NOTICE.md +14 -0
- package/workflows/cm-plugin/skills/cm-plugin-qa-engineer/SKILL.md +134 -0
- package/workflows/cm-plugin/skills/cm-plugin-qa-engineer/references/cws-scan-checklist.md +136 -0
- package/workflows/cm-plugin/skills/cm-plugin-qa-engineer/references/cws-violation-codes.md +68 -0
- package/workflows/cm-plugin/skills/cm-plugin-ui-engineer/SKILL.md +94 -0
- package/workflows/cm-plugin/skills/codebase-context/SKILL.md +489 -0
- package/workflows/cm-plugin/skills/darwin-skill/NOTICE.md +24 -0
- package/workflows/cm-plugin/skills/darwin-skill/README.md +272 -0
- package/workflows/cm-plugin/skills/darwin-skill/SKILL.md +492 -0
- package/workflows/cm-plugin/skills/darwin-skill/references/runtime-neutrality.md +68 -0
- package/workflows/cm-plugin/skills/darwin-skill/references/skilllens-evidence.md +142 -0
- package/workflows/cm-plugin/skills/darwin-skill/scripts/screenshot.mjs +71 -0
- package/workflows/cm-plugin/skills/darwin-skill/templates/result-card-dark.html +698 -0
- package/workflows/cm-plugin/skills/darwin-skill/templates/result-card-white.html +444 -0
- package/workflows/cm-plugin/skills/darwin-skill/templates/result-card.html +616 -0
- package/workflows/cm-plugin/skills/idea-to-prd/SKILL.md +289 -0
- package/workflows/cm-plugin/skills/idea-to-prd/references/domains/trading.md +97 -0
- package/workflows/cm-plugin/skills/idea-to-prd/references/example-prd.md +92 -0
- package/workflows/cm-plugin/templates/arch-reference.md +55 -0
- package/workflows/cm-plugin/templates/auto-update/cm-announce.sh +19 -0
- package/workflows/cm-plugin/templates/auto-update/cm-update.sh +251 -0
- package/workflows/cm-plugin/templates/dashboard/dashboard.html +153 -0
- package/workflows/cm-plugin/templates/dashboard/serve.sh +10 -0
- package/workflows/cm-plugin/templates/e2e/extension-harness.ts +110 -0
- package/workflows/cm-plugin/templates/e2e/smoke.spec.example.ts +51 -0
- package/workflows/cm-plugin/templates/hooks/pre-commit-cm-task-check +33 -0
- package/workflows/cm-plugin/templates/pixel/cm-pixel.html +388 -0
- package/workflows/cm-plugin/templates/pixel/cm-pixel.sh +212 -0
- package/workflows/cm-plugin/templates/pixel/dev/README.md +20 -0
- package/workflows/cm-plugin/templates/pixel/dev/atlas-preview.png +0 -0
- package/workflows/cm-plugin/templates/pixel/dev/build.py +55 -0
- package/workflows/cm-plugin/templates/pixel/dev/sheets/roguelikeChar_transparent.png +0 -0
- package/workflows/cm-plugin/templates/pixel/dev/sheets/roguelikeCity_tilemap.png +0 -0
- package/workflows/cm-plugin/templates/pixel/dev/sheets/roguelikeIndoor_transparent.png +0 -0
- package/workflows/cm-plugin/templates/pixel/dev/template.html +388 -0
- package/workflows/cm-plugin/templates/pixel/serve.sh +12 -0
- package/workflows/cm-plugin/templates/refactor/cm-refactor-denies.json +14 -0
- package/workflows/cm-plugin/templates/rules/backend-api.md +36 -0
- package/workflows/cm-plugin/templates/rules/chrome-extension.md +53 -0
- package/workflows/cm-plugin/templates/rules/coding-style.md +44 -0
- package/workflows/cm-plugin/templates/rules/frontend.md +32 -0
- package/workflows/cm-plugin/templates/rules/git-workflow.md +25 -0
- package/workflows/cm-plugin/templates/rules/security.md +31 -0
- package/workflows/cm-plugin/templates/rules/testing.md +36 -0
- package/workflows/cm-plugin/templates/scripts/cm-plugin-codex.sh +52 -0
- package/workflows/cm-plugin/templates/scripts/cm-plugin-log.sh +41 -0
- package/workflows/cm-plugin/templates/scripts/cm-plugin-preflight.sh +60 -0
- package/workflows/cm-plugin/templates/statusline/cm-plugin-statusline.sh +73 -0
- package/workflows.lock.json +4 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,26 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.1.3 - 2026-08-27
|
|
6
|
+
|
|
7
|
+
### Added
|
|
8
|
+
|
|
9
|
+
- Added opt-in Fast Mode with the complete selected workflow, `thinking=low` by default, optional `BYZ_FAST_MODEL`, and explicit model or thinking options taking precedence ([#15](https://github.com/kingxiaozhe/byz/pull/15)).
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Made BYZ's bundled workflow skills and prompts win same-name host collisions while continuing to load unrelated host resources ([#16](https://github.com/kingxiaozhe/byz/pull/16)).
|
|
14
|
+
|
|
15
|
+
## 0.1.2 - 2026-08-27
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- Bundled the pinned public CM Plugin Workflow with BYZ, keeping CM and CM Plugin independently selectable while preventing separate end-user installation or updates ([#12](https://github.com/kingxiaozhe/byz/pull/12)).
|
|
20
|
+
|
|
21
|
+
### Fixed
|
|
22
|
+
|
|
23
|
+
- Restored the package-root runtime assets required by the installed TUI and HTML exporter.
|
|
24
|
+
|
|
5
25
|
## 0.1.1 - 2026-08-27
|
|
6
26
|
|
|
7
27
|
### Added
|
package/README.md
CHANGED
|
@@ -4,9 +4,9 @@ BYZ is a business-first coding agent by Zero, built on the Pi coding-agent
|
|
|
4
4
|
runtime. The command is `byz`; user configuration is stored under `.byz` rather
|
|
5
5
|
than `.pi`.
|
|
6
6
|
|
|
7
|
-
Status: initial public release.
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
Status: initial public release. `cm-workflow` and `cm-plugin-workflow` are
|
|
8
|
+
locked to full Git commits and bundled as independent workflow roots. CM loads
|
|
9
|
+
by default; CM Plugin loads only when explicitly selected.
|
|
10
10
|
|
|
11
11
|
## Install and update
|
|
12
12
|
|
|
@@ -27,37 +27,49 @@ byz update
|
|
|
27
27
|
|
|
28
28
|
This command updates only `@aibyzero/byz`. It never calls Pi's release channel,
|
|
29
29
|
promotes the Pi source baseline, or updates workflow packages independently.
|
|
30
|
-
When a new
|
|
30
|
+
When a new CM or CM Plugin version is accepted into BYZ, it ships in a new BYZ
|
|
31
31
|
version. Users receive it through the same `byz update` command.
|
|
32
32
|
|
|
33
33
|
Workflows do not have an end-user update or rollback command. Every BYZ release
|
|
34
34
|
selects one CM version and one compatible CM Plugin version; users run the
|
|
35
35
|
versions selected by their installed BYZ release.
|
|
36
36
|
|
|
37
|
-
##
|
|
37
|
+
## Fast mode
|
|
38
|
+
|
|
39
|
+
Use Fast mode for lower-latency, lower-token everyday work without removing the
|
|
40
|
+
selected workflow's skills, prompts, context, or quality gates:
|
|
38
41
|
|
|
39
42
|
```bash
|
|
40
|
-
byz
|
|
41
|
-
byz workflow
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
byz --fast
|
|
44
|
+
byz --fast --workflow cm-plugin
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
Fast mode uses Pi's existing runtime controls and defaults thinking to `low`.
|
|
48
|
+
Set an optional model once when a separate fast model is available:
|
|
49
|
+
|
|
50
|
+
```bash
|
|
51
|
+
export BYZ_FAST_MODEL="provider/model"
|
|
52
|
+
byz --fast
|
|
44
53
|
```
|
|
45
54
|
|
|
46
|
-
|
|
55
|
+
An explicit `--model` or `--thinking` option always wins. Continuing or resuming
|
|
56
|
+
an existing session keeps that session's model and applies the Fast thinking
|
|
57
|
+
default. Normal `byz` runs ignore `BYZ_FAST_MODEL` and remain unchanged.
|
|
58
|
+
|
|
59
|
+
## Workflows
|
|
47
60
|
|
|
48
61
|
```bash
|
|
49
|
-
|
|
50
|
-
byz workflow
|
|
62
|
+
byz workflow list
|
|
63
|
+
byz workflow check cm
|
|
51
64
|
byz workflow check cm-plugin
|
|
65
|
+
byz --workflow cm
|
|
52
66
|
byz --workflow cm-plugin
|
|
67
|
+
byz --workflow none
|
|
53
68
|
```
|
|
54
69
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
`--workflow cm-plugin` is selected. BYZ therefore loads at most one managed
|
|
59
|
-
workflow per session. Local development can override package roots with
|
|
60
|
-
`BYZ_CM_WORKFLOW_ROOT` or
|
|
70
|
+
BYZ loads at most one workflow per session. Users do not install, update, or
|
|
71
|
+
roll back either workflow separately. Local development can override package
|
|
72
|
+
roots with `BYZ_CM_WORKFLOW_ROOT` or
|
|
61
73
|
`BYZ_CM_PLUGIN_WORKFLOW_ROOT`; the two roots must remain distinct.
|
|
62
74
|
|
|
63
75
|
## Development
|
|
@@ -70,9 +82,8 @@ node packages/byz/dist/cli.js --help
|
|
|
70
82
|
```
|
|
71
83
|
|
|
72
84
|
BYZ preserves Pi's MIT-licensed runtime and records the exact upstream baseline
|
|
73
|
-
in `upstream.json`.
|
|
74
|
-
|
|
75
|
-
stays in the authorized user's `.byz` package configuration.
|
|
85
|
+
in `upstream.json`. Workflow versions, source commits, licenses, and bundle
|
|
86
|
+
boundaries are recorded in `workflows.lock.json`.
|
|
76
87
|
|
|
77
88
|
Repository maintainers inspect a clean workflow checkout, then explicitly apply
|
|
78
89
|
its version and Pi resource manifest to the next BYZ release branch:
|
|
@@ -86,9 +97,8 @@ npm run byz:sync-cm-plugin -- --root /path/to/cm-plugin-workflow --apply
|
|
|
86
97
|
```
|
|
87
98
|
|
|
88
99
|
These repository commands never commit, push, open a pull request, tag, or
|
|
89
|
-
publish.
|
|
90
|
-
disabled
|
|
91
|
-
resource contract; it never persists the private checkout path or source.
|
|
100
|
+
publish. Both commands refresh the root lockfile with lifecycle scripts
|
|
101
|
+
disabled and pin the selected workflow to its full Git commit.
|
|
92
102
|
|
|
93
103
|
## Releasing BYZ
|
|
94
104
|
|
package/dist/cli.js
CHANGED
|
@@ -1,14 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
+
import { prepareFastRuntimeArgs } from "./fast.js";
|
|
3
4
|
import { main } from "./runtime/bundle/index.js";
|
|
4
5
|
import { handleByzUpdate } from "./update.js";
|
|
5
|
-
import {
|
|
6
|
-
getWorkflowInstallRequest,
|
|
7
|
-
handleWorkflowCommand,
|
|
8
|
-
installWorkflowPackage,
|
|
9
|
-
parseWorkflowOption,
|
|
10
|
-
prepareWorkflowRuntimeArgs,
|
|
11
|
-
} from "./workflows.js";
|
|
6
|
+
import { handleWorkflowCommand, parseWorkflowOption, prepareWorkflowRuntimeArgs } from "./workflows.js";
|
|
12
7
|
|
|
13
8
|
process.title = "byz";
|
|
14
9
|
process.env.BYZ_CODING_AGENT = "true";
|
|
@@ -29,24 +24,37 @@ function shouldLoadWorkflow(runtimeArgs) {
|
|
|
29
24
|
}
|
|
30
25
|
|
|
31
26
|
try {
|
|
32
|
-
const
|
|
27
|
+
const fastRuntime = prepareFastRuntimeArgs(args);
|
|
28
|
+
const parsedWorkflow = parseWorkflowOption(fastRuntime.commandArgs);
|
|
33
29
|
const commandArgs = parsedWorkflow.forwardedArgs;
|
|
34
30
|
const isRootHelp = commandArgs.length === 1 && (commandArgs[0] === "--help" || commandArgs[0] === "-h");
|
|
35
31
|
if (isRootHelp) {
|
|
36
32
|
console.error("BYZ updates: byz update (npm-managed global installations only)");
|
|
33
|
+
console.error("BYZ Fast: --fast (thinking=low; optional model: BYZ_FAST_MODEL)");
|
|
37
34
|
console.error("BYZ workflows: --workflow <cm|cm-plugin|none> (default: BYZ_WORKFLOW or cm)");
|
|
38
|
-
console.error("Commands: byz workflow <list|status|check
|
|
35
|
+
console.error("Commands: byz workflow <list|status|check> [cm|cm-plugin]");
|
|
39
36
|
}
|
|
40
37
|
|
|
41
|
-
|
|
42
|
-
if (installRequest) {
|
|
43
|
-
await installWorkflowPackage(installRequest);
|
|
44
|
-
} else if (await handleWorkflowCommand(commandArgs)) {
|
|
38
|
+
if (await handleWorkflowCommand(commandArgs)) {
|
|
45
39
|
// BYZ-owned command handled without starting the Pi runtime.
|
|
46
40
|
} else if (await handleByzUpdate(commandArgs)) {
|
|
47
41
|
// BYZ release metadata and package target stay independent from Pi.
|
|
48
42
|
} else {
|
|
49
|
-
const
|
|
43
|
+
const loadWorkflow = shouldLoadWorkflow(commandArgs);
|
|
44
|
+
const runtimeArgs = loadWorkflow ? fastRuntime.args : fastRuntime.commandArgs;
|
|
45
|
+
const prepared = await prepareWorkflowRuntimeArgs(runtimeArgs, { load: loadWorkflow });
|
|
46
|
+
const optionArgs = commandArgs.slice(
|
|
47
|
+
0,
|
|
48
|
+
commandArgs.indexOf("--") === -1 ? commandArgs.length : commandArgs.indexOf("--"),
|
|
49
|
+
);
|
|
50
|
+
const isInteractive = !optionArgs.some((arg) =>
|
|
51
|
+
["--help", "-h", "--version", "-v", "--export", "--list-models", "--print", "-p", "--mode"].includes(arg),
|
|
52
|
+
);
|
|
53
|
+
if (fastRuntime.enabled && loadWorkflow && isInteractive) {
|
|
54
|
+
console.error(
|
|
55
|
+
`BYZ Fast: model=${fastRuntime.model}, thinking=${fastRuntime.thinking}, workflow=${prepared.workflowId}`,
|
|
56
|
+
);
|
|
57
|
+
}
|
|
50
58
|
await main(prepared.args);
|
|
51
59
|
}
|
|
52
60
|
} catch (error) {
|