@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.
@@ -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.19",
4
+ "buildrVersion": "0.1.0-rc.20",
5
5
  "protocolIdentity": "buildr.web-protocol/v1",
6
- "sourceCommit": "dd6613377bac2bfb75d9aca90f1035c5c0920e65",
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": "db7b4cc98fdc4b32d23e363c64b4001d6082e50aeffedd3d7ebe210bfa97c576"
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": 5650,
159
- "sha256": "29929c260b6d8ab267a7c3e448f7033ad49d8683bafaeb36d5c7d8f95ed0d801"
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": 2538990,
585
- "sha256": "e6380473fed51990304fc6c75266189fb443eef5c36068c4150f1a2a657911b9"
584
+ "size": 2539683,
585
+ "sha256": "5fb5d29372b45cef881f0cbc2cd6dd0f77efd306ccfa3c52a124248f5d81105c"
586
586
  },
587
587
  {
588
588
  "path": "runtime/buildr.cjs",
589
589
  "mode": 420,
590
- "size": 2871832,
591
- "sha256": "828f03a6ad6926a237f77eaaeb892d1611fbeb53e2eb4ea99ea713a881031ead"
590
+ "size": 2872525,
591
+ "sha256": "60e11545d0653ba51406b3013b8607def9fa8d656a6d92f329f338329251ee2f"
592
592
  }
593
593
  ],
594
- "applicationPayloadDigest": "sha256-30f4d639dcde9c4dddfecc6d0a205833a57d02b33b7657e45a1d804117d49f73"
594
+ "applicationPayloadDigest": "sha256-a04fdfa464fc062ca15bfb75307576fe8170eab5b6c3f224579aa7b57aa32ee3"
595
595
  }
@@ -3,11 +3,11 @@
3
3
  "channel": "npm",
4
4
  "runtimeRole": "host",
5
5
  "package": "@buildr-ai/buildr",
6
- "version": "0.1.0-rc.19",
6
+ "version": "0.1.0-rc.20",
7
7
  "protocolIdentity": "buildr.web-protocol/v1",
8
- "applicationPayloadDigest": "sha256-30f4d639dcde9c4dddfecc6d0a205833a57d02b33b7657e45a1d804117d49f73",
9
- "sourceCommit": "dd6613377bac2bfb75d9aca90f1035c5c0920e65",
8
+ "applicationPayloadDigest": "sha256-a04fdfa464fc062ca15bfb75307576fe8170eab5b6c3f224579aa7b57aa32ee3",
9
+ "sourceCommit": "681c3b8cb90700b567578d1a98f60146d5bac9f0",
10
10
  "sourceTag": null,
11
- "installUnit": "@buildr-ai/buildr@0.1.0-rc.19",
12
- "ownershipIdentity": "sha256-4306016c16642c29d6833ca857e8997c044e036b32e54b87e8bf923e76ce3f5d"
11
+ "installUnit": "@buildr-ai/buildr@0.1.0-rc.20",
12
+ "ownershipIdentity": "sha256-ec7e9aaca25ae039a85c50eb830fb82c4fc4fb97e44feba27f5003be130872aa"
13
13
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buildr-ai/buildr",
3
- "version": "0.1.0-rc.19",
3
+ "version": "0.1.0-rc.20",
4
4
  "description": "Buildr CLI for managing Agent workspace assets.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -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,不得视为完成。
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@buildr-ai/buildr",
3
- "version": "0.1.0-rc.19",
3
+ "version": "0.1.0-rc.20",
4
4
  "description": "Buildr CLI for managing Agent workspace assets.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -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: import_node_path80.default.join(sourceRoot, "bin", "buildr.mjs"),
40708
+ cliSource,
40700
40709
  identity: digestFiles(sourceRoot),
40701
40710
  adapter,
40702
40711
  sourceCheckout,
@@ -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: import_node_path80.default.join(sourceRoot, "bin", "buildr.mjs"),
41593
+ cliSource,
41585
41594
  identity: digestFiles(sourceRoot),
41586
41595
  adapter,
41587
41596
  sourceCheckout,