@buildr-ai/buildr 0.1.0-rc.19 → 0.1.0-rc.20
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/application-payload.json +10 -10
- package/installation-origin.json +5 -5
- package/package.json +1 -1
- package/payload/product/package/targets/workspace/rules/buildr/core.md +1 -0
- package/payload/product/package.json +1 -1
- package/payload/runtime/read-worker.cjs +10 -1
- package/runtime/buildr.cjs +10 -1
package/application-payload.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "buildr.application-payload/v1",
|
|
3
3
|
"packageName": "@buildr-ai/buildr",
|
|
4
|
-
"buildrVersion": "0.1.0-rc.
|
|
4
|
+
"buildrVersion": "0.1.0-rc.20",
|
|
5
5
|
"protocolIdentity": "buildr.web-protocol/v1",
|
|
6
|
-
"sourceCommit": "
|
|
6
|
+
"sourceCommit": "681c3b8cb90700b567578d1a98f60146d5bac9f0",
|
|
7
7
|
"enginesNode": ">=24.15.0 <25",
|
|
8
8
|
"productionDependencies": [
|
|
9
9
|
{
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"path": "resources/product/package.json",
|
|
37
37
|
"mode": 420,
|
|
38
38
|
"size": 748,
|
|
39
|
-
"sha256": "
|
|
39
|
+
"sha256": "9b62a69f5f08f6d360e99c1537791f7befc244e1ea8b212938a14cd7bfa0042c"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"path": "resources/product/package/README.md",
|
|
@@ -155,8 +155,8 @@
|
|
|
155
155
|
{
|
|
156
156
|
"path": "resources/product/package/targets/workspace/rules/buildr/core.md",
|
|
157
157
|
"mode": 420,
|
|
158
|
-
"size":
|
|
159
|
-
"sha256": "
|
|
158
|
+
"size": 6057,
|
|
159
|
+
"sha256": "9358b8ea7fd48e4cc6f47b83336e2b3b1378b0eb61855019b11bd81c50c7c8e6"
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
162
|
"path": "resources/product/package/targets/workspace/skills/buildr/capability-adaptation/SKILL.md",
|
|
@@ -581,15 +581,15 @@
|
|
|
581
581
|
{
|
|
582
582
|
"path": "resources/runtime/read-worker.cjs",
|
|
583
583
|
"mode": 420,
|
|
584
|
-
"size":
|
|
585
|
-
"sha256": "
|
|
584
|
+
"size": 2539683,
|
|
585
|
+
"sha256": "5fb5d29372b45cef881f0cbc2cd6dd0f77efd306ccfa3c52a124248f5d81105c"
|
|
586
586
|
},
|
|
587
587
|
{
|
|
588
588
|
"path": "runtime/buildr.cjs",
|
|
589
589
|
"mode": 420,
|
|
590
|
-
"size":
|
|
591
|
-
"sha256": "
|
|
590
|
+
"size": 2872525,
|
|
591
|
+
"sha256": "60e11545d0653ba51406b3013b8607def9fa8d656a6d92f329f338329251ee2f"
|
|
592
592
|
}
|
|
593
593
|
],
|
|
594
|
-
"applicationPayloadDigest": "sha256-
|
|
594
|
+
"applicationPayloadDigest": "sha256-a04fdfa464fc062ca15bfb75307576fe8170eab5b6c3f224579aa7b57aa32ee3"
|
|
595
595
|
}
|
package/installation-origin.json
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
"channel": "npm",
|
|
4
4
|
"runtimeRole": "host",
|
|
5
5
|
"package": "@buildr-ai/buildr",
|
|
6
|
-
"version": "0.1.0-rc.
|
|
6
|
+
"version": "0.1.0-rc.20",
|
|
7
7
|
"protocolIdentity": "buildr.web-protocol/v1",
|
|
8
|
-
"applicationPayloadDigest": "sha256-
|
|
9
|
-
"sourceCommit": "
|
|
8
|
+
"applicationPayloadDigest": "sha256-a04fdfa464fc062ca15bfb75307576fe8170eab5b6c3f224579aa7b57aa32ee3",
|
|
9
|
+
"sourceCommit": "681c3b8cb90700b567578d1a98f60146d5bac9f0",
|
|
10
10
|
"sourceTag": null,
|
|
11
|
-
"installUnit": "@buildr-ai/buildr@0.1.0-rc.
|
|
12
|
-
"ownershipIdentity": "sha256-
|
|
11
|
+
"installUnit": "@buildr-ai/buildr@0.1.0-rc.20",
|
|
12
|
+
"ownershipIdentity": "sha256-ec7e9aaca25ae039a85c50eb830fb82c4fc4fb97e44feba27f5003be130872aa"
|
|
13
13
|
}
|
package/package.json
CHANGED
|
@@ -9,6 +9,7 @@ Buildr workspace 的通用硬约束。按 root → Project → Service 读取当
|
|
|
9
9
|
- Skill description 发现用户意图,Skill body 承担流程,capability binding 选择 provider,Project declaration 声明能力、适用性和证明范围,Skill/Application 维护状态与 Result;Rule 不得成为第二权威。
|
|
10
10
|
- Rule description 只索引语义相关性,不路由路径、角色或 Service。required installed Rule 必须读取;optional installed Rule 语义相关时读取;disabled 或 uninstalled Rule 不生效。
|
|
11
11
|
- Agent runtime adapter 只按目录发现和投射 Rule;不替 Agent 判断语义相关性。runtime 是可重建结果,不是源资产。
|
|
12
|
+
- Buildr 采用宽而薄的治理:只有继续推进会造成越权、错误对象写入、未经授权的外部或不可逆副作用、证据失真或完成误报时才关闭式失败。其他可恢复的不确定性必须如实报告事实、风险和下一步,并保留 Agent 的安全判断与推进空间;不得把辅助证明、工具偏好或推荐工作方式固化为不必要的硬门禁。
|
|
12
13
|
- 创建、修改、替换或卸载 Skill 前必须判断跨 Skill 依赖,并检查相关 `provides`、`requires`、capability binding、入口 routing evidence 和 consumers;不得绕过已知依赖直接激活。
|
|
13
14
|
- Agent 组合 Buildr 管理的 Skills 时必须遵守已安装的 capability binding;不得调用已卸载 provider,也不得自行猜测存在歧义的 provider。
|
|
14
15
|
- 已初始化 workspace 的 Git tree 改变后必须执行 workspace transition check;Buildr 安装、源资产或 Agent runtime 改变后必须运行当前 Agent 的 doctor。未清除需立即处理的 error,不得视为完成。
|
|
@@ -40689,6 +40689,15 @@ function registerTaskEnvironmentApplication(runtime2) {
|
|
|
40689
40689
|
}
|
|
40690
40690
|
function currentEnvironmentManager(workspaceRoot, adapter) {
|
|
40691
40691
|
const sourceRoot = import_node_fs64.default.realpathSync(import_node_path80.default.resolve(runtime2.productRoot()));
|
|
40692
|
+
const invocation = productInvocation({ kind: "stable-controller" });
|
|
40693
|
+
const invocationEntry = invocation.argsPrefix?.length === 1 ? invocation.argsPrefix[0] : null;
|
|
40694
|
+
if (typeof invocationEntry !== "string" || !import_node_path80.default.isAbsolute(invocationEntry) || !import_node_fs64.default.statSync(invocationEntry, { throwIfNoEntry: false })?.isFile()) {
|
|
40695
|
+
throw taskEnvironmentError2("task_environment_manager_invocation_invalid", "当前 Buildr 调用入口不可作为 Environment Manager CLI。", 409, {
|
|
40696
|
+
command: invocation.command || null,
|
|
40697
|
+
argsPrefix: invocation.argsPrefix || null
|
|
40698
|
+
}, "从可信 retained Buildr CLI 重试。");
|
|
40699
|
+
}
|
|
40700
|
+
const cliSource = import_node_fs64.default.realpathSync(invocationEntry);
|
|
40692
40701
|
const sourceCheckout = observeGitCheckoutIdentity(sourceRoot);
|
|
40693
40702
|
const workspaceCheckout = observeGitCheckoutIdentity(workspaceRoot);
|
|
40694
40703
|
if (candidateController(sourceCheckout, workspaceCheckout)) {
|
|
@@ -40696,7 +40705,7 @@ function registerTaskEnvironmentApplication(runtime2) {
|
|
|
40696
40705
|
}
|
|
40697
40706
|
return {
|
|
40698
40707
|
sourceRoot,
|
|
40699
|
-
cliSource
|
|
40708
|
+
cliSource,
|
|
40700
40709
|
identity: digestFiles(sourceRoot),
|
|
40701
40710
|
adapter,
|
|
40702
40711
|
sourceCheckout,
|
package/runtime/buildr.cjs
CHANGED
|
@@ -41574,6 +41574,15 @@ function registerTaskEnvironmentApplication(runtime) {
|
|
|
41574
41574
|
}
|
|
41575
41575
|
function currentEnvironmentManager(workspaceRoot, adapter) {
|
|
41576
41576
|
const sourceRoot = import_node_fs64.default.realpathSync(import_node_path80.default.resolve(runtime.productRoot()));
|
|
41577
|
+
const invocation = productInvocation({ kind: "stable-controller" });
|
|
41578
|
+
const invocationEntry = invocation.argsPrefix?.length === 1 ? invocation.argsPrefix[0] : null;
|
|
41579
|
+
if (typeof invocationEntry !== "string" || !import_node_path80.default.isAbsolute(invocationEntry) || !import_node_fs64.default.statSync(invocationEntry, { throwIfNoEntry: false })?.isFile()) {
|
|
41580
|
+
throw taskEnvironmentError2("task_environment_manager_invocation_invalid", "当前 Buildr 调用入口不可作为 Environment Manager CLI。", 409, {
|
|
41581
|
+
command: invocation.command || null,
|
|
41582
|
+
argsPrefix: invocation.argsPrefix || null
|
|
41583
|
+
}, "从可信 retained Buildr CLI 重试。");
|
|
41584
|
+
}
|
|
41585
|
+
const cliSource = import_node_fs64.default.realpathSync(invocationEntry);
|
|
41577
41586
|
const sourceCheckout = observeGitCheckoutIdentity(sourceRoot);
|
|
41578
41587
|
const workspaceCheckout = observeGitCheckoutIdentity(workspaceRoot);
|
|
41579
41588
|
if (candidateController(sourceCheckout, workspaceCheckout)) {
|
|
@@ -41581,7 +41590,7 @@ function registerTaskEnvironmentApplication(runtime) {
|
|
|
41581
41590
|
}
|
|
41582
41591
|
return {
|
|
41583
41592
|
sourceRoot,
|
|
41584
|
-
cliSource
|
|
41593
|
+
cliSource,
|
|
41585
41594
|
identity: digestFiles(sourceRoot),
|
|
41586
41595
|
adapter,
|
|
41587
41596
|
sourceCheckout,
|