@aibyzero/byz 0.1.1 → 0.1.2

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.
Files changed (109) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/README.md +13 -25
  3. package/dist/cli.js +3 -12
  4. package/dist/core/export-html/template.css +1066 -0
  5. package/dist/core/export-html/template.html +55 -0
  6. package/dist/core/export-html/template.js +1864 -0
  7. package/dist/core/export-html/vendor/highlight.min.js +1213 -0
  8. package/dist/core/export-html/vendor/marked.min.js +78 -0
  9. package/dist/modes/interactive/assets/clankolas.png +0 -0
  10. package/dist/modes/interactive/theme/dark.json +90 -0
  11. package/dist/modes/interactive/theme/light.json +89 -0
  12. package/dist/modes/interactive/theme/theme-schema.json +352 -0
  13. package/dist/runtime/bundle/chunks/{chunk-CCRJHU72.js → chunk-Q4KIHSRR.js} +1 -1
  14. package/dist/runtime/bundle/chunks/github-copilot.js +1 -1
  15. package/dist/runtime/bundle/cli.js +1 -1
  16. package/dist/runtime/bundle/index.js +1 -1
  17. package/dist/runtime/bundle/rpc-entry.js +1 -1
  18. package/dist/workflows.js +4 -131
  19. package/package.json +2 -1
  20. package/workflows/cm-plugin/LICENSE +21 -0
  21. package/workflows/cm-plugin/README.md +195 -0
  22. package/workflows/cm-plugin/VERSION +1 -0
  23. package/workflows/cm-plugin/agents/cm-plugin-backend-agent.md +34 -0
  24. package/workflows/cm-plugin/agents/cm-plugin-extension-agent.md +35 -0
  25. package/workflows/cm-plugin/agents/cm-plugin-ui-agent.md +34 -0
  26. package/workflows/cm-plugin/commands/cm-plugin-ai-nodes/N1-init.md +60 -0
  27. package/workflows/cm-plugin/commands/cm-plugin-ai-nodes/N2-enter-feature.md +51 -0
  28. package/workflows/cm-plugin/commands/cm-plugin-ai-nodes/N3-execute-task.md +32 -0
  29. package/workflows/cm-plugin/commands/cm-plugin-ai-nodes/N4-review.md +58 -0
  30. package/workflows/cm-plugin/commands/cm-plugin-ai-nodes/N5-mark-done.md +80 -0
  31. package/workflows/cm-plugin/commands/cm-plugin-ai-nodes/N6-qa-eval.md +69 -0
  32. package/workflows/cm-plugin/commands/cm-plugin-ai-nodes/N7-context.md +23 -0
  33. package/workflows/cm-plugin/commands/cm-plugin-ai-nodes/N8-finish.md +61 -0
  34. package/workflows/cm-plugin/commands/cm-plugin-prd-modes/brownfield.md +13 -0
  35. package/workflows/cm-plugin/commands/cm-plugin-prd-modes/change-mode.md +130 -0
  36. package/workflows/cm-plugin/commands/cm-plugin-prd-modes/greenfield.md +82 -0
  37. package/workflows/cm-plugin/commands/cm-plugin:ai.md +75 -0
  38. package/workflows/cm-plugin/commands/cm-plugin:check.md +66 -0
  39. package/workflows/cm-plugin/commands/cm-plugin:fix.md +100 -0
  40. package/workflows/cm-plugin/commands/cm-plugin:idea.md +29 -0
  41. package/workflows/cm-plugin/commands/cm-plugin:init.md +145 -0
  42. package/workflows/cm-plugin/commands/cm-plugin:prd.md +403 -0
  43. package/workflows/cm-plugin/commands/cm-plugin:refactor.md +147 -0
  44. package/workflows/cm-plugin/commands/cm-plugin:rewrite.md +90 -0
  45. package/workflows/cm-plugin/commands/cm-plugin:scout.md +202 -0
  46. 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
  47. 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
  48. 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
  49. 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
  50. 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
  51. 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
  52. package/workflows/cm-plugin/package.json +33 -0
  53. package/workflows/cm-plugin/skills/cm-plugin-backend-engineer/SKILL.md +100 -0
  54. package/workflows/cm-plugin/skills/cm-plugin-devops-engineer/NOTICE.md +14 -0
  55. package/workflows/cm-plugin/skills/cm-plugin-devops-engineer/SKILL.md +120 -0
  56. package/workflows/cm-plugin/skills/cm-plugin-devops-engineer/references/cws-ci-cd.md +139 -0
  57. package/workflows/cm-plugin/skills/cm-plugin-devops-engineer/references/cws-submission-checklist.md +87 -0
  58. package/workflows/cm-plugin/skills/cm-plugin-doc-syncer/SKILL.md +149 -0
  59. package/workflows/cm-plugin/skills/cm-plugin-extension-engineer/SKILL.md +105 -0
  60. package/workflows/cm-plugin/skills/cm-plugin-product-manager/SKILL.md +83 -0
  61. package/workflows/cm-plugin/skills/cm-plugin-qa-engineer/NOTICE.md +14 -0
  62. package/workflows/cm-plugin/skills/cm-plugin-qa-engineer/SKILL.md +134 -0
  63. package/workflows/cm-plugin/skills/cm-plugin-qa-engineer/references/cws-scan-checklist.md +136 -0
  64. package/workflows/cm-plugin/skills/cm-plugin-qa-engineer/references/cws-violation-codes.md +68 -0
  65. package/workflows/cm-plugin/skills/cm-plugin-ui-engineer/SKILL.md +94 -0
  66. package/workflows/cm-plugin/skills/codebase-context/SKILL.md +489 -0
  67. package/workflows/cm-plugin/skills/darwin-skill/NOTICE.md +24 -0
  68. package/workflows/cm-plugin/skills/darwin-skill/README.md +272 -0
  69. package/workflows/cm-plugin/skills/darwin-skill/SKILL.md +492 -0
  70. package/workflows/cm-plugin/skills/darwin-skill/references/runtime-neutrality.md +68 -0
  71. package/workflows/cm-plugin/skills/darwin-skill/references/skilllens-evidence.md +142 -0
  72. package/workflows/cm-plugin/skills/darwin-skill/scripts/screenshot.mjs +71 -0
  73. package/workflows/cm-plugin/skills/darwin-skill/templates/result-card-dark.html +698 -0
  74. package/workflows/cm-plugin/skills/darwin-skill/templates/result-card-white.html +444 -0
  75. package/workflows/cm-plugin/skills/darwin-skill/templates/result-card.html +616 -0
  76. package/workflows/cm-plugin/skills/idea-to-prd/SKILL.md +289 -0
  77. package/workflows/cm-plugin/skills/idea-to-prd/references/domains/trading.md +97 -0
  78. package/workflows/cm-plugin/skills/idea-to-prd/references/example-prd.md +92 -0
  79. package/workflows/cm-plugin/templates/arch-reference.md +55 -0
  80. package/workflows/cm-plugin/templates/auto-update/cm-announce.sh +19 -0
  81. package/workflows/cm-plugin/templates/auto-update/cm-update.sh +251 -0
  82. package/workflows/cm-plugin/templates/dashboard/dashboard.html +153 -0
  83. package/workflows/cm-plugin/templates/dashboard/serve.sh +10 -0
  84. package/workflows/cm-plugin/templates/e2e/extension-harness.ts +110 -0
  85. package/workflows/cm-plugin/templates/e2e/smoke.spec.example.ts +51 -0
  86. package/workflows/cm-plugin/templates/hooks/pre-commit-cm-task-check +33 -0
  87. package/workflows/cm-plugin/templates/pixel/cm-pixel.html +388 -0
  88. package/workflows/cm-plugin/templates/pixel/cm-pixel.sh +212 -0
  89. package/workflows/cm-plugin/templates/pixel/dev/README.md +20 -0
  90. package/workflows/cm-plugin/templates/pixel/dev/atlas-preview.png +0 -0
  91. package/workflows/cm-plugin/templates/pixel/dev/build.py +55 -0
  92. package/workflows/cm-plugin/templates/pixel/dev/sheets/roguelikeChar_transparent.png +0 -0
  93. package/workflows/cm-plugin/templates/pixel/dev/sheets/roguelikeCity_tilemap.png +0 -0
  94. package/workflows/cm-plugin/templates/pixel/dev/sheets/roguelikeIndoor_transparent.png +0 -0
  95. package/workflows/cm-plugin/templates/pixel/dev/template.html +388 -0
  96. package/workflows/cm-plugin/templates/pixel/serve.sh +12 -0
  97. package/workflows/cm-plugin/templates/refactor/cm-refactor-denies.json +14 -0
  98. package/workflows/cm-plugin/templates/rules/backend-api.md +36 -0
  99. package/workflows/cm-plugin/templates/rules/chrome-extension.md +53 -0
  100. package/workflows/cm-plugin/templates/rules/coding-style.md +44 -0
  101. package/workflows/cm-plugin/templates/rules/frontend.md +32 -0
  102. package/workflows/cm-plugin/templates/rules/git-workflow.md +25 -0
  103. package/workflows/cm-plugin/templates/rules/security.md +31 -0
  104. package/workflows/cm-plugin/templates/rules/testing.md +36 -0
  105. package/workflows/cm-plugin/templates/scripts/cm-plugin-codex.sh +52 -0
  106. package/workflows/cm-plugin/templates/scripts/cm-plugin-log.sh +41 -0
  107. package/workflows/cm-plugin/templates/scripts/cm-plugin-preflight.sh +60 -0
  108. package/workflows/cm-plugin/templates/statusline/cm-plugin-statusline.sh +73 -0
  109. package/workflows.lock.json +4 -3
package/CHANGELOG.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.1.2 - 2026-08-27
6
+
7
+ ### Added
8
+
9
+ - 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)).
10
+
11
+ ### Fixed
12
+
13
+ - Restored the package-root runtime assets required by the installed TUI and HTML exporter.
14
+
5
15
  ## 0.1.1 - 2026-08-27
6
16
 
7
17
  ### 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. The public `cm-workflow` package is bundled and
8
- loaded by default. The private `cm-plugin-workflow` package remains separately
9
- installed and is available only to users with repository access.
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,7 +27,7 @@ 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 public CM version is accepted into BYZ, it ships in a new BYZ
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
@@ -39,25 +39,15 @@ versions selected by their installed BYZ release.
39
39
  ```bash
40
40
  byz workflow list
41
41
  byz workflow check cm
42
- byz --workflow cm
43
- byz --workflow none
44
- ```
45
-
46
- CM Plugin stays private and is not included in the public BYZ package:
47
-
48
- ```bash
49
- export BYZ_CM_PLUGIN_WORKFLOW_SOURCE='git:git@github.com:OWNER/PRIVATE_REPO@<40-character-commit-sha>'
50
- byz workflow install cm-plugin
51
42
  byz workflow check cm-plugin
43
+ byz --workflow cm
52
44
  byz --workflow cm-plugin
45
+ byz --workflow none
53
46
  ```
54
47
 
55
- The private source is supplied by the authorized user and is never shipped in
56
- BYZ's public lock file. `workflow install` requires a full commit SHA and stores
57
- the package with Pi autoload disabled; BYZ injects it only when
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
48
+ BYZ loads at most one workflow per session. Users do not install, update, or
49
+ roll back either workflow separately. Local development can override package
50
+ roots with `BYZ_CM_WORKFLOW_ROOT` or
61
51
  `BYZ_CM_PLUGIN_WORKFLOW_ROOT`; the two roots must remain distinct.
62
52
 
63
53
  ## Development
@@ -70,9 +60,8 @@ node packages/byz/dist/cli.js --help
70
60
  ```
71
61
 
72
62
  BYZ preserves Pi's MIT-licensed runtime and records the exact upstream baseline
73
- in `upstream.json`. Public workflow versions, source commits, licenses, and
74
- bundle boundaries are recorded in `workflows.lock.json`. Private source identity
75
- stays in the authorized user's `.byz` package configuration.
63
+ in `upstream.json`. Workflow versions, source commits, licenses, and bundle
64
+ boundaries are recorded in `workflows.lock.json`.
76
65
 
77
66
  Repository maintainers inspect a clean workflow checkout, then explicitly apply
78
67
  its version and Pi resource manifest to the next BYZ release branch:
@@ -86,9 +75,8 @@ npm run byz:sync-cm-plugin -- --root /path/to/cm-plugin-workflow --apply
86
75
  ```
87
76
 
88
77
  These repository commands never commit, push, open a pull request, tag, or
89
- publish. The CM command refreshes the root lockfile with lifecycle scripts
90
- disabled. The private CM Plugin command writes only its public-safe version and
91
- resource contract; it never persists the private checkout path or source.
78
+ publish. Both commands refresh the root lockfile with lifecycle scripts
79
+ disabled and pin the selected workflow to its full Git commit.
92
80
 
93
81
  ## Releasing BYZ
94
82
 
package/dist/cli.js CHANGED
@@ -2,13 +2,7 @@
2
2
 
3
3
  import { main } from "./runtime/bundle/index.js";
4
4
  import { handleByzUpdate } from "./update.js";
5
- import {
6
- getWorkflowInstallRequest,
7
- handleWorkflowCommand,
8
- installWorkflowPackage,
9
- parseWorkflowOption,
10
- prepareWorkflowRuntimeArgs,
11
- } from "./workflows.js";
5
+ import { handleWorkflowCommand, parseWorkflowOption, prepareWorkflowRuntimeArgs } from "./workflows.js";
12
6
 
13
7
  process.title = "byz";
14
8
  process.env.BYZ_CODING_AGENT = "true";
@@ -35,13 +29,10 @@ try {
35
29
  if (isRootHelp) {
36
30
  console.error("BYZ updates: byz update (npm-managed global installations only)");
37
31
  console.error("BYZ workflows: --workflow <cm|cm-plugin|none> (default: BYZ_WORKFLOW or cm)");
38
- console.error("Commands: byz workflow <list|status|check|install> [cm|cm-plugin]");
32
+ console.error("Commands: byz workflow <list|status|check> [cm|cm-plugin]");
39
33
  }
40
34
 
41
- const installRequest = await getWorkflowInstallRequest(commandArgs);
42
- if (installRequest) {
43
- await installWorkflowPackage(installRequest);
44
- } else if (await handleWorkflowCommand(commandArgs)) {
35
+ if (await handleWorkflowCommand(commandArgs)) {
45
36
  // BYZ-owned command handled without starting the Pi runtime.
46
37
  } else if (await handleByzUpdate(commandArgs)) {
47
38
  // BYZ release metadata and package target stay independent from Pi.