@buildr-ai/buildr 0.1.0-rc.2 → 0.1.0-rc.21
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/README.md +47 -5
- package/application-payload.json +595 -0
- package/bin/buildr.mjs +14 -0
- package/installation-origin.json +13 -0
- package/package.json +16 -45
- package/payload/licenses/dependencies/yaml-LICENSE +13 -0
- package/payload/product/LICENSE +21 -0
- package/payload/product/README.md +59 -0
- package/payload/product/package/README.md +42 -0
- package/{package → payload/product/package}/bootstrap/contract.yml +26 -11
- package/{package → payload/product/package}/bootstrap/guide.md +11 -11
- package/payload/product/package/launchers/assets/Buildr.icns +0 -0
- package/payload/product/package/launchers/assets/Buildr.ico +0 -0
- package/payload/product/package/manifest.yml +547 -0
- package/payload/product/package/targets/runtime/skills/buildr/SKILL.md +174 -0
- package/{package → payload/product/package}/targets/workspace/commands/buildr/openspec/manifest.yml +2 -2
- package/payload/product/package/targets/workspace/components/buildr/openspec/component.yml +79 -0
- package/payload/product/package/targets/workspace/components/buildr/openspec/contributions/openspec-apply-sidebar.md +21 -0
- package/payload/product/package/targets/workspace/components/buildr/openspec/contributions/openspec-archive-converge.md +5 -0
- package/payload/product/package/targets/workspace/components/buildr/openspec/contributions/openspec-explore-terminology.md +5 -0
- package/payload/product/package/targets/workspace/components/buildr/openspec/contributions/openspec-propose-sidebar.md +21 -0
- package/payload/product/package/targets/workspace/components/buildr/openspec/contributions/openspec-sync-converge.md +5 -0
- package/payload/product/package/targets/workspace/components/buildr/openspec/contributions/openspec-update-sidebar.md +13 -0
- package/payload/product/package/targets/workspace/gitattributes +1 -0
- package/payload/product/package/targets/workspace/gitignore +31 -0
- package/{package → payload/product/package}/targets/workspace/projects/AGENTS.project.md +1 -1
- package/payload/product/package/targets/workspace/rules/buildr/core.md +62 -0
- package/payload/product/package/targets/workspace/skills/buildr/capability-adaptation/SKILL.md +56 -0
- package/payload/product/package/targets/workspace/skills/buildr/capability-adaptation/agents/openai.yaml +4 -0
- package/payload/product/package/targets/workspace/skills/buildr/current-knowledge-maintenance/SKILL.md +103 -0
- package/payload/product/package/targets/workspace/skills/buildr/declaration-intake/SKILL.md +65 -0
- package/payload/product/package/targets/workspace/skills/buildr/git-operations/SKILL.md +100 -0
- package/payload/product/package/targets/workspace/skills/buildr/openspec-contract-guard/SKILL.md +65 -0
- package/payload/product/package/targets/workspace/skills/buildr/project-daily-progress/SKILL.md +52 -0
- package/payload/product/package/targets/workspace/skills/buildr/project-testing/SKILL.md +84 -0
- package/payload/product/package/targets/workspace/skills/buildr/project-testing/references/testing-model-v1.md +116 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-development/SKILL.md +108 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-environment/SKILL.md +42 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-environment/agents/openai.yaml +4 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-environment/references/project-environment-preparation-v1.md +14 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-environment/templates/project-preparation.yml +20 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-environment/templates/task-environment-plan-request.json +17 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-finish/SKILL.md +80 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-manager/SKILL.md +47 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-manager/agents/openai.yaml +4 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-retrospective/SKILL.md +101 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-retrospective/agents/openai.yaml +4 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-review/SKILL.md +60 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-review/agents/openai.yaml +4 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-triage/SKILL.md +119 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-verification/SKILL.md +142 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-verification/references/project-verification-v2.md +51 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-verification/templates/project-verification.yml +16 -0
- package/payload/product/package/targets/workspace/skills/buildr/task-worktree/SKILL.md +28 -0
- package/payload/product/package/targets/workspace/skills/buildr/terminology-governance/SKILL.md +60 -0
- package/payload/product/package/targets/workspace/skills/buildr/ui-preview/SKILL.md +74 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/current-knowledge-maintenance/v1.md +36 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/current-knowledge-maintenance/v2.md +45 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/git-operations/v1.md +39 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/git-worktree-provider/v1.md +35 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/task-development/v2.md +61 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/task-environment/v1.md +37 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/task-finish/v1.md +59 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/task-record/v2.md +35 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/task-retrospective/v2.md +41 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/task-review/v1.md +39 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/task-verification/v3.md +63 -0
- package/payload/product/package/targets/workspace/skills/contracts/buildr/terminology-governance/v1.md +36 -0
- package/{package → payload/product/package}/targets/workspace/skills/openspec/openspec-apply-change/SKILL.md +4 -3
- package/{package → payload/product/package}/targets/workspace/skills/openspec/openspec-archive-change/SKILL.md +4 -3
- package/{package → payload/product/package}/targets/workspace/skills/openspec/openspec-explore/SKILL.md +4 -1
- package/{package → payload/product/package}/targets/workspace/skills/openspec/openspec-propose/SKILL.md +4 -1
- package/{package → payload/product/package}/targets/workspace/skills/openspec/openspec-sync-specs/SKILL.md +4 -3
- package/payload/product/package/targets/workspace/skills/openspec/openspec-update-change/SKILL.md +86 -0
- package/payload/product/package.json +33 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0000_create_migration_ledger.sql +16 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0001_create_task_store.sql +47 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0002_create_parent_task_relations.sql +7 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0003_inline_parent_task_column.sql +19 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0004_create_task_current_records.sql +16 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0005_create_task_retrospective_current.sql +4 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0006_create_task_lifecycle_current.sql +4 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0007_create_task_finish_current.sql +46 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0008_create_task_environment_current.sql +8 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0009_retire_task_lifecycle_current.sql +107 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0010_add_task_retrospective_disposition.sql +19 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0011_create_task_execution_records.sql +115 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0012_compact_task_finish_current.sql +261 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0013_add_todo_task_retrospective_sources.sql +56 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0014_add_task_execution_invocation_identity.sql +14 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0015_add_task_execution_unknown_outcome.sql +143 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0016_allow_terminal_task_finish_target_lease.sql +83 -0
- package/payload/product/src/infrastructure/sqlite/migrations/0017_expand_task_finish_repository_set.sql +111 -0
- package/payload/product/src/interfaces/local-app/web-dist/assets/antd-NAtxFWmu.js +394 -0
- package/payload/product/src/interfaces/local-app/web-dist/assets/index-BqoyfMSY.css +1 -0
- package/payload/product/src/interfaces/local-app/web-dist/assets/index-DTqvE0TF.js +39 -0
- package/payload/product/src/interfaces/local-app/web-dist/assets/react-9kRp7SbA.js +28 -0
- package/payload/product/src/interfaces/local-app/web-dist/index.html +19 -0
- package/payload/runtime/read-worker.cjs +45071 -0
- package/runtime/buildr.cjs +51533 -0
- package/scripts/postinstall.mjs +15 -0
- package/docs/agent-runtime-adapters.md +0 -94
- package/docs/cli-architecture.md +0 -65
- package/docs/cli-reference.md +0 -67
- package/docs/known-limitations.md +0 -15
- package/examples/minimal-workspace/README.md +0 -24
- package/package/README.md +0 -28
- package/package/manifest.yml +0 -150
- package/package/targets/runtime/skills/buildr/SKILL.md +0 -154
- package/package/targets/workspace/.buildr/workspace.yml +0 -5
- package/package/targets/workspace/commands/manifest.yml +0 -2
- package/package/targets/workspace/components/buildr/openspec/component.yml +0 -16
- package/package/targets/workspace/components/buildr/openspec/contributions/openspec-apply-sidebar.md +0 -3
- package/package/targets/workspace/components/buildr/openspec/contributions/openspec-archive-sidebar.md +0 -3
- package/package/targets/workspace/components/buildr/openspec/contributions/openspec-explore-sidebar.md +0 -3
- package/package/targets/workspace/components/buildr/openspec/contributions/openspec-propose-sidebar.md +0 -3
- package/package/targets/workspace/components/buildr/openspec/contributions/openspec-sync-sidebar.md +0 -3
- package/package/targets/workspace/components/buildr/openspec/contributions/task-finish-post-sync.md +0 -1
- package/package/targets/workspace/components/buildr/openspec/contributions/task-finish-pre-sync.md +0 -1
- package/package/targets/workspace/components/buildr/openspec/contributions/task-triage-change-ready.md +0 -10
- package/package/targets/workspace/components/manifest.yml +0 -2
- package/package/targets/workspace/gitignore +0 -16
- package/package/targets/workspace/projects/manifest.yml +0 -2
- package/package/targets/workspace/projects/services/manifest.yml +0 -3
- package/package/targets/workspace/projects/skills/manifest.yml +0 -2
- package/package/targets/workspace/rules/buildr/core.md +0 -65
- package/package/targets/workspace/rules/manifest.yml +0 -9
- package/package/targets/workspace/skills/buildr/git-ops/SKILL.md +0 -73
- package/package/targets/workspace/skills/buildr/openspec-contract-guard/SKILL.md +0 -67
- package/package/targets/workspace/skills/buildr/task-finish/SKILL.md +0 -104
- package/package/targets/workspace/skills/buildr/task-triage/SKILL.md +0 -103
- package/package/targets/workspace/skills/buildr/task-worktree/SKILL.md +0 -104
- package/package/targets/workspace/skills/manifest.yml +0 -38
- package/tools/buildr +0 -11
- package/tools/cli/application/cli-update.mjs +0 -219
- package/tools/cli/application/compose-runtime.mjs +0 -38
- package/tools/cli/application/doctor/runtime-diagnostics.mjs +0 -227
- package/tools/cli/application/doctor/scope-diagnostics.mjs +0 -440
- package/tools/cli/application/doctor/service-diagnostics.mjs +0 -184
- package/tools/cli/application/doctor.mjs +0 -201
- package/tools/cli/application/package-maintenance/builtin-receipts.mjs +0 -73
- package/tools/cli/application/package-maintenance/output.mjs +0 -148
- package/tools/cli/application/package-maintenance/smoke-checks.mjs +0 -463
- package/tools/cli/application/package-maintenance/static-validation.mjs +0 -680
- package/tools/cli/application/package-maintenance.mjs +0 -540
- package/tools/cli/application/runtime.mjs +0 -118
- package/tools/cli/application/workspace-operations.mjs +0 -311
- package/tools/cli/bootstrap.mjs +0 -6
- package/tools/cli/command/help.mjs +0 -296
- package/tools/cli/command/registry.mjs +0 -97
- package/tools/cli/domains/commands.mjs +0 -661
- package/tools/cli/domains/components.mjs +0 -922
- package/tools/cli/domains/openspec.mjs +0 -603
- package/tools/cli/domains/package-assets.mjs +0 -652
- package/tools/cli/domains/rules.mjs +0 -380
- package/tools/cli/domains/runtime.mjs +0 -87
- package/tools/cli/domains/skills.mjs +0 -647
- package/tools/cli/domains/workspace.mjs +0 -571
- package/tools/cli/shared/infrastructure.mjs +0 -411
- package/tools/cli/shared/json-contracts.mjs +0 -22
- package/tools/cli/shared/platform.mjs +0 -52
- package/tools/runtime/adapter-contract.mjs +0 -655
- package/tools/runtime/check-claude-code.mjs +0 -23
- package/tools/runtime/check-codex.mjs +0 -23
- package/tools/runtime/check-runtime.mjs +0 -98
- package/tools/runtime/projection.mjs +0 -375
- package/tools/runtime/render-claude-code-rules.mjs +0 -459
- package/tools/runtime/render-claude-code.mjs +0 -59
- package/tools/runtime/skills/arguments.mjs +0 -51
- package/tools/runtime/skills/contributions.mjs +0 -171
- package/tools/runtime/skills/manifests.mjs +0 -167
- package/tools/runtime/skills/primitives.mjs +0 -86
- package/tools/runtime/skills/render-plan.mjs +0 -243
- package/tools/runtime/skills/sources.mjs +0 -276
- package/tools/shared/fetch-remote-text.mjs +0 -78
- package/tools/verification/integrity/managed-data-integrity.mjs +0 -107
- package/tools/verification/integrity/managed-mutations.mjs +0 -72
- package/tools/verification/openspec/contract.mjs +0 -212
- package/tools/verification/runtime/adapter-contract.mjs +0 -218
- package/tools/verification/runtime/adapter-parity.mjs +0 -173
- /package/{package → payload/product/package}/targets/workspace/AGENTS.md +0 -0
package/bin/buildr.mjs
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import process from 'node:process';
|
|
4
|
+
import { pathToFileURL, fileURLToPath } from 'node:url';
|
|
5
|
+
|
|
6
|
+
const [major, minor] = process.versions.node.split('.').map(Number);
|
|
7
|
+
if (major !== 24 || minor < 15) {
|
|
8
|
+
console.error('Buildr requires a host Node matching >=24.15.0 <25; it will not download or select another Node runtime.');
|
|
9
|
+
process.exit(1);
|
|
10
|
+
}
|
|
11
|
+
const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '..');
|
|
12
|
+
process.env.BUILDR_APPLICATION_PAYLOAD_ROOT = root;
|
|
13
|
+
process.env.BUILDR_NPM_ENTRY_PATH = fileURLToPath(import.meta.url);
|
|
14
|
+
await import(pathToFileURL(path.join(root, 'runtime', 'buildr.cjs')).href);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": "buildr.installation-origin/v2",
|
|
3
|
+
"channel": "npm",
|
|
4
|
+
"runtimeRole": "host",
|
|
5
|
+
"package": "@buildr-ai/buildr",
|
|
6
|
+
"version": "0.1.0-rc.21",
|
|
7
|
+
"protocolIdentity": "buildr.web-protocol/v1",
|
|
8
|
+
"applicationPayloadDigest": "sha256-2940ef200b2db971222a66facb3990751a0faccdc77f9bf09da0dddc75bd54c9",
|
|
9
|
+
"sourceCommit": "fa36d891f976f38c084b20bec6268b6f796baa31",
|
|
10
|
+
"sourceTag": null,
|
|
11
|
+
"installUnit": "@buildr-ai/buildr@0.1.0-rc.21",
|
|
12
|
+
"ownershipIdentity": "sha256-2198c5dbaf9036797b69f635803934b56034d39cfc0b434bfde0ca73546594b3"
|
|
13
|
+
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@buildr-ai/buildr",
|
|
3
|
-
"version": "0.1.0-rc.
|
|
4
|
-
"private": false,
|
|
3
|
+
"version": "0.1.0-rc.21",
|
|
5
4
|
"description": "Buildr CLI for managing Agent workspace assets.",
|
|
6
5
|
"license": "MIT",
|
|
7
6
|
"repository": {
|
|
8
7
|
"type": "git",
|
|
9
|
-
"url": "git+https://github.com/
|
|
10
|
-
"directory": "projects/product"
|
|
8
|
+
"url": "git+https://github.com/BuildrAI/Buildr.git",
|
|
9
|
+
"directory": "projects/product/services/buildr"
|
|
11
10
|
},
|
|
12
|
-
"homepage": "https://github.com/
|
|
11
|
+
"homepage": "https://github.com/BuildrAI/Buildr#readme",
|
|
13
12
|
"bugs": {
|
|
14
|
-
"url": "https://github.com/
|
|
13
|
+
"url": "https://github.com/BuildrAI/Buildr/issues"
|
|
15
14
|
},
|
|
16
15
|
"keywords": [
|
|
17
16
|
"agent",
|
|
@@ -26,50 +25,22 @@
|
|
|
26
25
|
},
|
|
27
26
|
"type": "module",
|
|
28
27
|
"bin": {
|
|
29
|
-
"buildr": "
|
|
28
|
+
"buildr": "bin/buildr.mjs"
|
|
29
|
+
},
|
|
30
|
+
"scripts": {
|
|
31
|
+
"postinstall": "node scripts/postinstall.mjs"
|
|
30
32
|
},
|
|
31
33
|
"files": [
|
|
32
34
|
"LICENSE",
|
|
33
|
-
"tools/buildr",
|
|
34
|
-
"tools/cli/",
|
|
35
|
-
"tools/runtime/check-codex.mjs",
|
|
36
|
-
"tools/runtime/check-claude-code.mjs",
|
|
37
|
-
"tools/runtime/check-runtime.mjs",
|
|
38
|
-
"tools/shared/fetch-remote-text.mjs",
|
|
39
|
-
"tools/runtime/adapter-contract.mjs",
|
|
40
|
-
"tools/runtime/projection.mjs",
|
|
41
|
-
"tools/runtime/render-claude-code-rules.mjs",
|
|
42
|
-
"tools/runtime/render-claude-code.mjs",
|
|
43
|
-
"tools/runtime/skills",
|
|
44
|
-
"tools/verification/openspec/contract.mjs",
|
|
45
|
-
"tools/verification/integrity/managed-mutations.mjs",
|
|
46
|
-
"tools/verification/integrity/managed-data-integrity.mjs",
|
|
47
|
-
"tools/verification/runtime/adapter-contract.mjs",
|
|
48
|
-
"tools/verification/runtime/adapter-parity.mjs",
|
|
49
35
|
"README.md",
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
36
|
+
"application-payload.json",
|
|
37
|
+
"installation-origin.json",
|
|
38
|
+
"bin/buildr.mjs",
|
|
39
|
+
"scripts/postinstall.mjs",
|
|
40
|
+
"runtime/buildr.cjs",
|
|
41
|
+
"payload/"
|
|
56
42
|
],
|
|
57
|
-
"scripts": {
|
|
58
|
-
"test": "./tools/verify-buildr-product-fast",
|
|
59
|
-
"test:fast": "./tools/verify-buildr-product-fast",
|
|
60
|
-
"test:unit": "node --test test/*.test.mjs",
|
|
61
|
-
"test:affected": "./tools/verify-buildr-product-affected",
|
|
62
|
-
"test:candidate": "./tools/verify-buildr-product",
|
|
63
|
-
"test:release": "node tools/verification/release/release-smoke.mjs",
|
|
64
|
-
"pack:check": "npm pack --dry-run"
|
|
65
|
-
},
|
|
66
43
|
"engines": {
|
|
67
|
-
"node": ">=
|
|
68
|
-
},
|
|
69
|
-
"dependencies": {
|
|
70
|
-
"yaml": "^2.9.0"
|
|
71
|
-
},
|
|
72
|
-
"devDependencies": {
|
|
73
|
-
"@fission-ai/openspec": "1.4.1"
|
|
44
|
+
"node": ">=24.15.0 <25"
|
|
74
45
|
}
|
|
75
46
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
Copyright Eemeli Aro <eemeli@gmail.com>
|
|
2
|
+
|
|
3
|
+
Permission to use, copy, modify, and/or distribute this software for any purpose
|
|
4
|
+
with or without fee is hereby granted, provided that the above copyright notice
|
|
5
|
+
and this permission notice appear in all copies.
|
|
6
|
+
|
|
7
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
|
|
9
|
+
FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
|
|
11
|
+
OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
|
|
12
|
+
TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
|
|
13
|
+
THIS SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025-2026 陈俊
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Buildr
|
|
2
|
+
|
|
3
|
+
中文 | [English](https://github.com/BuildrAI/Buildr/blob/main/README.en.md)
|
|
4
|
+
|
|
5
|
+
## 让 Agent 接着已有积累,把工作持续推进下去
|
|
6
|
+
|
|
7
|
+
当项目背景散在聊天、人的经验和多个代码仓里,Agent 每换一次任务或工具就得重新理解;团队做过的判断、流程和项目关系也很难继续复用。Buildr 把这些工作事实和工作方法组织成 Agent 可持续使用的工作资产。
|
|
8
|
+
|
|
9
|
+
你可以用 Buildr:组织现有业务与代码仓、让 Agent 基于项目事实继续一项长期工作、把验证过的工作方法沉淀下来,或在更换 Agent 后继续使用同一套资产。Buildr 不取代 Agent 的理解、规划和专业执行;它让这些工作有可发现、可诊断、可交接的基础。
|
|
10
|
+
|
|
11
|
+
## 快速开始:先完成第一项真实工作
|
|
12
|
+
|
|
13
|
+
把下面这句话交给你正在使用的 Agent:
|
|
14
|
+
|
|
15
|
+
```text
|
|
16
|
+
帮我开始使用 Buildr:检查并安装需要的 Buildr,确认或创建当前 Workspace;用普通语言引导我建立 Project,并只在有代码仓、应用、模块或可执行资产时接入 Service;完成必要的初始化和验证后,问我第一项想推进的真实工作。
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
Agent 会负责 runtime discovery、初始化、doctor 和必要的确定性操作。你的第一次成功不是“已经输入过 init 命令”,而是:你已确认 Workspace、Project、可选 Service,并能直接向 Agent 描述要推进的目标。
|
|
20
|
+
|
|
21
|
+
也可以打开 Buildr Web(本机 Web 界面):添加已有工作空间(Workspace),查看当前项目(Project)与服务(Service)范围,然后点击“用 Agent 开始”。Buildr Web 只帮助理解范围、维护低风险 metadata、只读查看任务专业事实和生成交接指令;它不创建 repo、不迁移资产,也不在页面内执行专业任务。
|
|
22
|
+
|
|
23
|
+
### 只需理解三个对象
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
Workspace → Project → Service(可选)
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
- **Workspace**:你和 Agent 共同工作的顶层目录。
|
|
30
|
+
- **Project**:一个业务、产品、系统或长期工作单元。
|
|
31
|
+
- **Service**:该 Project 按需管理的代码仓、应用、模块或可执行资产;没有 Service 也可以开始 Project 范围工作。
|
|
32
|
+
|
|
33
|
+
## 智能体(Agent)与 Buildr Web 各做什么
|
|
34
|
+
|
|
35
|
+
智能体负责理解目标、读取相关资产、规划、执行和验证。Buildr Web 负责让人看懂真实的工作空间 / 项目 / 服务范围,受控维护名称与说明,并把规范范围和目标交给智能体。任务详情组合任务记录、任务研发、审查、验证与当前机器环境的 Application read model;除任务记录和复盘处置的受控管理外,专业事实保持只读。两条入口读取同一份工作空间源资产,不维护第二套 onboarding 或生命周期状态。
|
|
36
|
+
|
|
37
|
+
## 手动或技术兜底
|
|
38
|
+
|
|
39
|
+
当 Agent 无法执行时,再使用下面的确定性入口。npm是唯一正式渠道并支持Host Node.js `>=24.15.0 <25`;Workspace受管Node仍使用`.buildr/workspace.yml`声明的精确版本,只供Workspace-owned子进程使用。两者identity和生命周期互不替代:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npm install --global @buildr-ai/buildr@next
|
|
43
|
+
buildr runtime list --json
|
|
44
|
+
buildr init --agent <agent> --target . --name <name> --profile <personal|team|company>
|
|
45
|
+
buildr web --target .
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
当前 package 候选版本为 `0.1.0-rc.18`;可安装版本与 `next` 指向始终以 npm 官方 Registry 为准。
|
|
49
|
+
|
|
50
|
+
`init --agent` 以最终 doctor 为技术 onboarding 证据;成功后仍应由 Agent 根据真实 Project/Service 状态完成简短交接。深入命令和 runtime 细节见 [CLI Reference](docs/cli-reference.md) 与 [Runtime Adapters](docs/agent-runtime-adapters.md)。
|
|
51
|
+
|
|
52
|
+
## 当前能力与边界
|
|
53
|
+
|
|
54
|
+
- 一个 Workspace 可管理多个 Project;每个 Project 可按需管理多个 Service。
|
|
55
|
+
- Rules、Skills、Components、Commands、OpenSpec 和 Project/Service 资产可作为长期工作资产治理。
|
|
56
|
+
- 支持 claude-code、codex、cursor、qoder、trae、trae-work、workbuddy 等 runtime adapter。
|
|
57
|
+
- 当前不提供远程 SaaS、Agent session connector、聊天客户端或自动专业任务执行。
|
|
58
|
+
|
|
59
|
+
完整产品定位和边界见 [Buildr Product](../../docs/buildr-product.md),已知限制见 [Known Limitations](docs/known-limitations.md)。
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
# Buildr
|
|
2
|
+
|
|
3
|
+
中文 | [English](https://github.com/BuildrAI/Buildr/blob/main/README.en.md)
|
|
4
|
+
|
|
5
|
+
Buildr helps Agents keep building on organized work facts and work methods instead of repeatedly reconstructing project context from chats, personal experience, and disconnected repositories. It is useful for organizing an existing business and its repositories, continuing long-running work through an Agent, preserving reusable methods, and switching Agents without abandoning accumulated assets.
|
|
6
|
+
|
|
7
|
+
## Start with one real task
|
|
8
|
+
|
|
9
|
+
Give your Agent this instruction:
|
|
10
|
+
|
|
11
|
+
```text
|
|
12
|
+
Help me start using Buildr: check and install what is needed, confirm or create the current Workspace, guide me to create a Project in plain language, attach a Service only when I have a repository, application, module, or executable asset, verify the necessary setup, then ask what real work I want to do first.
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
The first success is not merely running `init`. It is confirming a Workspace, a Project, an optional Service, and then giving the Agent a real goal.
|
|
16
|
+
|
|
17
|
+
Buildr Web offers the same path visually in the default browser: add an existing Workspace, understand the Project and optional Service scope, and choose **Start with Agent**. It only explains scope, maintains low-risk metadata, and creates a constrained handoff prompt. It does not create repositories, migrate assets, or execute professional work. Buildr App is reserved for a future desktop product and is not implemented today.
|
|
18
|
+
|
|
19
|
+
```text
|
|
20
|
+
Workspace → Project → Service (optional)
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
- **Workspace**: the top-level directory shared by you and an Agent.
|
|
24
|
+
- **Project**: a business, product, system, or long-lived work unit.
|
|
25
|
+
- **Service**: an optional repository, application, module, or executable asset in a Project.
|
|
26
|
+
|
|
27
|
+
## Manual fallback
|
|
28
|
+
|
|
29
|
+
When an Agent cannot perform setup, Buildr supports Node.js `>=24.15.0 <25`; each Workspace still uses the exact managed runtime version declared in its metadata:
|
|
30
|
+
|
|
31
|
+
```bash
|
|
32
|
+
npm install --global @buildr-ai/buildr@next
|
|
33
|
+
buildr runtime list --json
|
|
34
|
+
buildr init --agent <agent> --target . --name <name> --profile <personal|team|company>
|
|
35
|
+
buildr web --target .
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
The current package candidate is `0.1.0-rc.11`; available versions and the `next` dist-tag are always determined by the official npm Registry.
|
|
39
|
+
|
|
40
|
+
`init --agent` uses the final doctor result as technical onboarding evidence; the Agent should then complete a brief first-use handoff from the real Project and Service state.
|
|
41
|
+
|
|
42
|
+
Buildr does not replace an Agent's reasoning, planning, or professional execution. It organizes durable work assets and provides deterministic tools and diagnostics. See the repository [README](https://github.com/BuildrAI/Buildr#readme), [Buildr Product](https://github.com/BuildrAI/Buildr/blob/main/projects/product/docs/buildr-product.md), [CLI Reference](https://github.com/BuildrAI/Buildr/blob/main/projects/product/services/buildr/docs/cli-reference.md), and [Runtime Adapters](https://github.com/BuildrAI/Buildr/blob/main/projects/product/services/buildr/docs/agent-runtime-adapters.md) for details.
|
|
@@ -44,7 +44,7 @@ bootstrapGuideForbiddenText:
|
|
|
44
44
|
- buildr runtime check claude-code
|
|
45
45
|
|
|
46
46
|
buildrSkillPath: package/targets/runtime/skills/buildr/SKILL.md
|
|
47
|
-
buildrSkillMaxLines:
|
|
47
|
+
buildrSkillMaxLines: 175
|
|
48
48
|
buildrSkillRequiredSections:
|
|
49
49
|
- Buildr 是什么
|
|
50
50
|
- 执行循环
|
|
@@ -77,8 +77,10 @@ buildrSkillRequiredText:
|
|
|
77
77
|
- "state: installed"
|
|
78
78
|
- 不替 Agent 判断 optional Rule
|
|
79
79
|
- buildr runtime list --json
|
|
80
|
-
-
|
|
81
|
-
-
|
|
80
|
+
- 当前宿主明确身份
|
|
81
|
+
- 用户明确指定其他 runtime
|
|
82
|
+
- 不得从 Skill 路径
|
|
83
|
+
- detectedAgents
|
|
82
84
|
- buildr doctor --agent <agent>
|
|
83
85
|
- 不要省略 `--agent`
|
|
84
86
|
- buildr skills add
|
|
@@ -92,10 +94,16 @@ buildrSkillRequiredText:
|
|
|
92
94
|
- buildr sync
|
|
93
95
|
- buildr update
|
|
94
96
|
- buildr builtin list
|
|
95
|
-
-
|
|
96
|
-
- task-
|
|
97
|
+
- 不得借用其他 adapter 作为 fallback
|
|
98
|
+
- task-environment
|
|
99
|
+
- task-verification
|
|
97
100
|
- task-finish
|
|
98
|
-
-
|
|
101
|
+
- task-retrospective
|
|
102
|
+
- capability-adaptation
|
|
103
|
+
- buildr.git-operations/v1
|
|
104
|
+
- buildr.task-environment/v1
|
|
105
|
+
- buildr.git-worktree-provider/v1
|
|
106
|
+
- buildr.task-verification/v3
|
|
99
107
|
- components/manifest.yml
|
|
100
108
|
- buildr component install
|
|
101
109
|
- buildr component uninstall
|
|
@@ -117,11 +125,18 @@ globalForbiddenText:
|
|
|
117
125
|
- buildr use
|
|
118
126
|
|
|
119
127
|
generatedSkillRequiredText:
|
|
120
|
-
- 当前 Agent Adapter
|
|
121
128
|
- buildr runtime list --json
|
|
129
|
+
- 当前宿主明确身份
|
|
130
|
+
- 用户明确指定其他 runtime
|
|
131
|
+
- 不得从 Skill 路径
|
|
132
|
+
- detectedAgents
|
|
133
|
+
- buildr skill install <agent>
|
|
134
|
+
- buildr sync <agent>
|
|
135
|
+
- buildr doctor --agent <agent> --target <dir> --json
|
|
136
|
+
|
|
137
|
+
generatedSkillForbiddenText:
|
|
138
|
+
- 当前 Agent Adapter
|
|
139
|
+
- 当前安装 adapter
|
|
122
140
|
- buildr skill install claude-code
|
|
123
141
|
- buildr sync claude-code
|
|
124
|
-
- buildr doctor --agent claude-code
|
|
125
|
-
- buildr runtime check claude-code
|
|
126
|
-
- buildr rules render claude-code
|
|
127
|
-
- buildr skills render claude-code
|
|
142
|
+
- buildr doctor --agent claude-code
|
|
@@ -16,29 +16,29 @@ workspace 尚未初始化时,用一个高层命令完成源资产、Buildr Ski
|
|
|
16
16
|
```bash
|
|
17
17
|
buildr init --agent <agent> --target <dir> --name <name> --profile <personal|team|company>
|
|
18
18
|
```
|
|
19
|
-
|
|
19
|
+
技术初始化完成后,不把 `project create` 命令直接交给用户。Agent 应读取最终 doctor 和真实 Workspace 状态,用普通语言完成一次首次使用交接:Workspace 是人和 Agent 共同工作的顶层目录;Project 是业务、产品、系统或长期工作;Service 只在需要代码仓、应用、模块或可执行资产时接入。没有 Project 时询问用户要长期管理什么;唯一 Project 没有 Service 时询问是接入已有资产还是直接开始 Project 范围工作;范围唯一时直接邀请用户描述第一项真实目标;有多个候选时只询问消除范围歧义所必需的问题。不要生成 `WELCOME.md`、持久 checklist 或固定教学 Rule。
|
|
20
|
+
已有 workspace 中,用户要求完整检查 Buildr、检查安装状态或“更新 Buildr”时,先运行 `buildr update check --json` 同时读取 GA 正式版与 RC 候选版。
|
|
21
|
+
Agent 分别说明 `stable` 与 `candidate` 的可用更新,并让用户选择 GA、RC 或暂不更新。只有用户明确选择后才执行对应命令;不得自动切轨或降级:
|
|
20
22
|
|
|
21
23
|
```bash
|
|
22
|
-
buildr update
|
|
24
|
+
buildr update --track <stable|candidate>
|
|
23
25
|
command -v buildr
|
|
24
|
-
buildr
|
|
26
|
+
buildr skill install <agent> --target <workspace-root>
|
|
25
27
|
```
|
|
26
|
-
|
|
27
|
-
用户明确只同步 workspace 时直接使用 sync:
|
|
28
|
+
用户要求“更新 workspace”或“同步 workspace”时,先确认 workspace root 是否由 Git 管理。Git 管理的 workspace 解析 `buildr.git-operations/v1` binding,读取 selected provider,并由 Buildr Skill 提供明确 workspace、upstream 和 update operation;required provider blocked 或遇到本地改动、分叉、冲突、缺少 upstream 等决策点时停止说明,不自动 stash、reset、rebase、merge、覆盖,也不继续 sync。Git 更新成功后不重复询问 sync;非 Git workspace 跳过 Git provider。然后使用当前 CLI 执行 sync,不先更新 CLI;这不是 `buildr sync` 的隐式 Git 行为:
|
|
28
29
|
|
|
29
30
|
```bash
|
|
30
31
|
buildr sync <agent> --target <dir>
|
|
31
32
|
```
|
|
32
33
|
|
|
33
|
-
`sync` 包含产品能力同步、产品入口 Buildr Skill 安装、从 `.` 递归投射各层 `AGENTS.md` 的当前 Agent runtime render 和 doctor 复查。
|
|
34
|
+
用户明确只更新 CLI 时,在选定轨道后只运行对应 `buildr update --track ...`,不追加 Skill install 或 workspace sync。Git 更新属于 Agent 对 workspace 更新意图的编排,不是 `buildr sync` 的隐式行为;`sync` 包含产品能力同步、产品入口 Buildr Skill 安装、从 `.` 递归投射各层 `AGENTS.md` 的当前 Agent runtime render 和 doctor 复查。
|
|
34
35
|
只需要在未初始化目录单独恢复产品入口 Skill 时使用专项入口:
|
|
35
36
|
|
|
36
37
|
```bash
|
|
37
38
|
buildr skill install <agent> --target <dir>
|
|
38
39
|
```
|
|
39
40
|
|
|
40
|
-
如果安装后
|
|
41
|
-
|
|
41
|
+
如果安装后Buildr Skill可用,后续按Buildr Skill工作。本指南只保留Skill不可用时的最小兜底流程。Task Record、Development、Verification、Review与Retrospective current records都由对应Application保存到Workspace SQLite,不进入Git或跨机器同步;不要读取、迁移或生成旧Task YAML。Git Operations只处理用户或上游consumer明确选择的普通Git内容。Environment、Finish、mutations、worktree/runtime、Candidate与delivery source继续遵守各自owner边界。
|
|
42
42
|
## 最小兜底
|
|
43
43
|
|
|
44
44
|
优先使用 Buildr CLI 完成用户指令。workspace 必须完成初始化;未初始化时使用上面的 `buildr init --agent <agent>`,其成功输出已包含最终 doctor,不再重复执行。已有 workspace 中,`buildr doctor --agent <agent> --json` 是最小兜底流程的默认事实入口。不要省略 `--agent`;未指定 Agent 时 doctor 会检查所有支持的 runtime。
|
|
@@ -51,10 +51,10 @@ buildr doctor --agent <agent> --target <dir> --json
|
|
|
51
51
|
|
|
52
52
|
```bash
|
|
53
53
|
buildr project create <project> --target <dir> [--repo <git-url>] [--title <text>] [--description <text>]
|
|
54
|
-
buildr service create <project>/<service> <repo-ref> --target <dir>
|
|
54
|
+
buildr service create <project>/<service> <repo-ref> --target <dir> --name <name> --description <description> --type <type> [--remote <name>] [--integration-branch <branch>]
|
|
55
55
|
```
|
|
56
56
|
|
|
57
|
-
用户要管理业务、产品线、系统或长期工作单元时才创建 Project;Project 资产 repo 用 `project create --repo` clone 到 `projects/<project>/`,不登记外部本地链接。用户提供 service repo 路径、Git URL 或明确要接入服务资产时才创建 Service;Git
|
|
57
|
+
用户要管理业务、产品线、系统或长期工作单元时才创建 Project;Project 资产 repo 用 `project create --repo` clone 到 `projects/<project>/`,不登记外部本地链接。用户提供 service repo 路径、Git URL 或明确要接入服务资产时才创建 Service。Service Domain 使用 UUID、workspaceId、projectId、code、name、description、type 与 source;Git 来源用 `--integration-branch` 保存稳定集成目标,当前 checkout 只观察。Service 规则入口是 Service 目录中的 `AGENTS.md`,不通过 registry 参数指定规则路径。
|
|
58
58
|
|
|
59
59
|
## 边界
|
|
60
60
|
|
|
@@ -63,7 +63,7 @@ Buildr workspace 是组织(Organization/Root)资产根;Agent runtime 是
|
|
|
63
63
|
Rules 控制 Agent 的价值观、边界和约束;Skills 封装可复用的专业动作和操作流程。Rule 和 Skill 不以“是否必须加载”作为本质区分;任务触发型流程应沉淀为 Skills,并通过当前 Agent runtime 渲染后使用。
|
|
64
64
|
|
|
65
65
|
Agent runtime adapter 按“scope 祖先链 + scope 子树”发现和投射 `AGENTS.md`,再按目标 Agent 使用原生入口、scoped vendor rules 或 reference bridge;具体路径、reload 和 UI 前置条件见随包 `docs/agent-runtime-adapters.md`。adapter 不替 Agent 做语义决策。Agent 必须读取 enabled、required 且 installed 的 Rule;对 enabled、optional 且 installed 的 Rule,先检查 description,并在当前任务语义相关时于行动前读取正文。disabled 或 uninstalled Rule 不参与任务。
|
|
66
|
-
|
|
66
|
+
Skill source 只在 workspace `skills/` 治理。Project `capabilities.yml` 仅表达 requirements、bindings 与 applicability;当前目录使用 Skill 时 render 到 `workspace` destination,明确要求个人全局共享时才 render 到 `user` destination。`init`/`sync` 不写用户层。adapter inventory 为 `partial` 时只证明可观测 filesystem roots 中未发现冲突,不能据此宣称 Agent 内部 plugin/system Skills 全局唯一。
|
|
67
67
|
root/Organization 规则维护使用 `rules/manifest.yml` 和 `rules/`。新增规则时,先创建并编辑 `rules/<rule-id>.md`,再运行:
|
|
68
68
|
|
|
69
69
|
```bash
|
|
Binary file
|
|
Binary file
|