@nebutra/agent-runtime 0.2.0
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/.turbo/turbo-build.log +115 -0
- package/.turbo/turbo-test.log +44 -0
- package/.turbo/turbo-typecheck.log +4 -0
- package/CHANGELOG.md +253 -0
- package/LICENSE +676 -0
- package/README.md +50 -0
- package/dist/adapters/dispatcher-sse.d.ts +68 -0
- package/dist/adapters/dispatcher-sse.js +11 -0
- package/dist/adapters/dispatcher-sse.js.map +1 -0
- package/dist/adapters/index.d.ts +12 -0
- package/dist/adapters/index.js +21 -0
- package/dist/adapters/index.js.map +1 -0
- package/dist/adapters/mcp-catalog.d.ts +58 -0
- package/dist/adapters/mcp-catalog.js +9 -0
- package/dist/adapters/mcp-catalog.js.map +1 -0
- package/dist/adapters/prisma-rollout.d.ts +60 -0
- package/dist/adapters/prisma-rollout.js +7 -0
- package/dist/adapters/prisma-rollout.js.map +1 -0
- package/dist/chunk-24ZXP7FI.js +93 -0
- package/dist/chunk-24ZXP7FI.js.map +1 -0
- package/dist/chunk-2DA6Q6TN.js +126 -0
- package/dist/chunk-2DA6Q6TN.js.map +1 -0
- package/dist/chunk-37BBB2P2.js +73 -0
- package/dist/chunk-37BBB2P2.js.map +1 -0
- package/dist/chunk-57W3AR43.js +52 -0
- package/dist/chunk-57W3AR43.js.map +1 -0
- package/dist/chunk-5N4644PB.js +67 -0
- package/dist/chunk-5N4644PB.js.map +1 -0
- package/dist/chunk-5YS7WAPS.js +177 -0
- package/dist/chunk-5YS7WAPS.js.map +1 -0
- package/dist/chunk-6EGG2OZC.js +13 -0
- package/dist/chunk-6EGG2OZC.js.map +1 -0
- package/dist/chunk-7BUOF367.js +126 -0
- package/dist/chunk-7BUOF367.js.map +1 -0
- package/dist/chunk-BJBBR3QA.js +121 -0
- package/dist/chunk-BJBBR3QA.js.map +1 -0
- package/dist/chunk-CGRCUKGT.js +73 -0
- package/dist/chunk-CGRCUKGT.js.map +1 -0
- package/dist/chunk-FUG5DT2C.js +75 -0
- package/dist/chunk-FUG5DT2C.js.map +1 -0
- package/dist/chunk-LO24VOA3.js +199 -0
- package/dist/chunk-LO24VOA3.js.map +1 -0
- package/dist/chunk-MUF7ZZTO.js +57 -0
- package/dist/chunk-MUF7ZZTO.js.map +1 -0
- package/dist/chunk-NN7DATXA.js +46 -0
- package/dist/chunk-NN7DATXA.js.map +1 -0
- package/dist/chunk-PGGWSUTM.js +33 -0
- package/dist/chunk-PGGWSUTM.js.map +1 -0
- package/dist/chunk-RDKYDMXT.js +135 -0
- package/dist/chunk-RDKYDMXT.js.map +1 -0
- package/dist/chunk-YYFPDBJG.js +63 -0
- package/dist/chunk-YYFPDBJG.js.map +1 -0
- package/dist/chunk-ZMYX5VBU.js +135 -0
- package/dist/chunk-ZMYX5VBU.js.map +1 -0
- package/dist/chunk-ZTSKS42I.js +131 -0
- package/dist/chunk-ZTSKS42I.js.map +1 -0
- package/dist/commands.d.ts +74 -0
- package/dist/commands.js +10 -0
- package/dist/commands.js.map +1 -0
- package/dist/definitions.d.ts +94 -0
- package/dist/definitions.js +15 -0
- package/dist/definitions.js.map +1 -0
- package/dist/dispatcher.d.ts +50 -0
- package/dist/dispatcher.js +8 -0
- package/dist/dispatcher.js.map +1 -0
- package/dist/durable-turn.d.ts +58 -0
- package/dist/durable-turn.js +9 -0
- package/dist/durable-turn.js.map +1 -0
- package/dist/hook-pipeline.d.ts +114 -0
- package/dist/hook-pipeline.js +13 -0
- package/dist/hook-pipeline.js.map +1 -0
- package/dist/index.d.ts +1874 -0
- package/dist/index.js +3117 -0
- package/dist/index.js.map +1 -0
- package/dist/loop.d.ts +78 -0
- package/dist/loop.js +9 -0
- package/dist/loop.js.map +1 -0
- package/dist/mcp-bridge.d.ts +48 -0
- package/dist/mcp-bridge.js +8 -0
- package/dist/mcp-bridge.js.map +1 -0
- package/dist/model.d.ts +154 -0
- package/dist/model.js +9 -0
- package/dist/model.js.map +1 -0
- package/dist/policy.d.ts +130 -0
- package/dist/policy.js +23 -0
- package/dist/policy.js.map +1 -0
- package/dist/protocol.d.ts +170 -0
- package/dist/protocol.js +15 -0
- package/dist/protocol.js.map +1 -0
- package/dist/rollout-store-persistent.d.ts +48 -0
- package/dist/rollout-store-persistent.js +9 -0
- package/dist/rollout-store-persistent.js.map +1 -0
- package/dist/rollout.d.ts +82 -0
- package/dist/rollout.js +15 -0
- package/dist/rollout.js.map +1 -0
- package/dist/sandbox.d.ts +65 -0
- package/dist/sandbox.js +15 -0
- package/dist/sandbox.js.map +1 -0
- package/dist/skills.d.ts +93 -0
- package/dist/skills.js +10 -0
- package/dist/skills.js.map +1 -0
- package/dist/subagents.d.ts +129 -0
- package/dist/subagents.js +21 -0
- package/dist/subagents.js.map +1 -0
- package/dist/tools.d.ts +77 -0
- package/dist/tools.js +9 -0
- package/dist/tools.js.map +1 -0
- package/package.json +74 -0
- package/src/adapters/dispatcher-sse.test.ts +218 -0
- package/src/adapters/dispatcher-sse.ts +222 -0
- package/src/adapters/index.ts +18 -0
- package/src/adapters/mcp-catalog.test.ts +213 -0
- package/src/adapters/mcp-catalog.ts +188 -0
- package/src/adapters/prisma-rollout.test.ts +153 -0
- package/src/adapters/prisma-rollout.ts +104 -0
- package/src/agent-runtime.test.ts +176 -0
- package/src/artifact-stream.test.ts +330 -0
- package/src/artifact-stream.ts +453 -0
- package/src/channel-gateway.test.ts +432 -0
- package/src/channel-gateway.ts +357 -0
- package/src/code-review.test.ts +501 -0
- package/src/code-review.ts +495 -0
- package/src/command-suggestions.test.ts +251 -0
- package/src/command-suggestions.ts +338 -0
- package/src/commands.test.ts +184 -0
- package/src/commands.ts +140 -0
- package/src/commit-message.test.ts +249 -0
- package/src/commit-message.ts +180 -0
- package/src/context-compaction.test.ts +522 -0
- package/src/context-compaction.ts +434 -0
- package/src/definitions.test.ts +78 -0
- package/src/definitions.ts +190 -0
- package/src/deployment-status.test.ts +215 -0
- package/src/deployment-status.ts +227 -0
- package/src/design-context.test.ts +195 -0
- package/src/design-context.ts +198 -0
- package/src/dispatcher.test.ts +234 -0
- package/src/dispatcher.ts +189 -0
- package/src/durable-turn.test.ts +209 -0
- package/src/durable-turn.ts +135 -0
- package/src/edit-planner.test.ts +204 -0
- package/src/edit-planner.ts +325 -0
- package/src/fuzzy-match.test.ts +311 -0
- package/src/fuzzy-match.ts +444 -0
- package/src/hook-pipeline.test.ts +279 -0
- package/src/hook-pipeline.ts +373 -0
- package/src/inbound-admission.test.ts +394 -0
- package/src/inbound-admission.ts +246 -0
- package/src/index.ts +47 -0
- package/src/loop.test.ts +161 -0
- package/src/loop.ts +211 -0
- package/src/mcp-bridge.test.ts +165 -0
- package/src/mcp-bridge.ts +76 -0
- package/src/memory-provider.test.ts +232 -0
- package/src/memory-provider.ts +257 -0
- package/src/model.ts +168 -0
- package/src/permission-ruleset.test.ts +301 -0
- package/src/permission-ruleset.ts +200 -0
- package/src/policy.ts +151 -0
- package/src/project-repo.test.ts +232 -0
- package/src/project-repo.ts +311 -0
- package/src/protocol.ts +159 -0
- package/src/rollout-store-persistent.test.ts +217 -0
- package/src/rollout-store-persistent.ts +166 -0
- package/src/rollout.ts +150 -0
- package/src/sandbox.ts +113 -0
- package/src/session-share.test.ts +360 -0
- package/src/session-share.ts +310 -0
- package/src/skill-distillation.test.ts +177 -0
- package/src/skill-distillation.ts +369 -0
- package/src/skills.test.ts +277 -0
- package/src/skills.ts +255 -0
- package/src/subagents.test.ts +290 -0
- package/src/subagents.ts +332 -0
- package/src/tools.ts +126 -0
- package/src/workbench.test.ts +0 -0
- package/src/workbench.ts +0 -0
- package/tsconfig.json +12 -0
- package/tsup.config.ts +33 -0
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
|
|
2
|
+
> @nebutra/agent-runtime@0.2.0 build /home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/ai/agent-runtime
|
|
3
|
+
> tsup
|
|
4
|
+
|
|
5
|
+
[34mCLI[39m Building entry: {"index":"src/index.ts","adapters/index":"src/adapters/index.ts","adapters/dispatcher-sse":"src/adapters/dispatcher-sse.ts","adapters/mcp-catalog":"src/adapters/mcp-catalog.ts","adapters/prisma-rollout":"src/adapters/prisma-rollout.ts","commands":"src/commands.ts","definitions":"src/definitions.ts","dispatcher":"src/dispatcher.ts","durable-turn":"src/durable-turn.ts","hook-pipeline":"src/hook-pipeline.ts","loop":"src/loop.ts","mcp-bridge":"src/mcp-bridge.ts","model":"src/model.ts","policy":"src/policy.ts","protocol":"src/protocol.ts","rollout":"src/rollout.ts","rollout-store-persistent":"src/rollout-store-persistent.ts","sandbox":"src/sandbox.ts","skills":"src/skills.ts","subagents":"src/subagents.ts","tools":"src/tools.ts"}
|
|
6
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
7
|
+
[34mCLI[39m tsup v8.5.1
|
|
8
|
+
[34mCLI[39m Using tsup config: /home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/ai/agent-runtime/tsup.config.ts
|
|
9
|
+
[34mCLI[39m Target: es2022
|
|
10
|
+
[34mCLI[39m Cleaning output folder
|
|
11
|
+
[34mESM[39m Build start
|
|
12
|
+
[32mESM[39m [1mdist/rollout-store-persistent.js [22m[32m189.00 B[39m
|
|
13
|
+
[32mESM[39m [1mdist/adapters/index.js [22m[32m449.00 B[39m
|
|
14
|
+
[32mESM[39m [1mdist/sandbox.js [22m[32m318.00 B[39m
|
|
15
|
+
[32mESM[39m [1mdist/skills.js [22m[32m185.00 B[39m
|
|
16
|
+
[32mESM[39m [1mdist/subagents.js [22m[32m374.00 B[39m
|
|
17
|
+
[32mESM[39m [1mdist/tools.js [22m[32m146.00 B[39m
|
|
18
|
+
[32mESM[39m [1mdist/durable-turn.js [22m[32m191.00 B[39m
|
|
19
|
+
[32mESM[39m [1mdist/hook-pipeline.js [22m[32m214.00 B[39m
|
|
20
|
+
[32mESM[39m [1mdist/loop.js [22m[32m163.00 B[39m
|
|
21
|
+
[32mESM[39m [1mdist/mcp-bridge.js [22m[32m157.00 B[39m
|
|
22
|
+
[32mESM[39m [1mdist/model.js [22m[32m156.00 B[39m
|
|
23
|
+
[32mESM[39m [1mdist/policy.js [22m[32m497.00 B[39m
|
|
24
|
+
[32mESM[39m [1mdist/protocol.js [22m[32m263.00 B[39m
|
|
25
|
+
[32mESM[39m [1mdist/rollout.js [22m[32m286.00 B[39m
|
|
26
|
+
[32mESM[39m [1mdist/index.js [22m[32m93.88 KB[39m
|
|
27
|
+
[32mESM[39m [1mdist/chunk-2DA6Q6TN.js [22m[32m3.42 KB[39m
|
|
28
|
+
[32mESM[39m [1mdist/chunk-MUF7ZZTO.js [22m[32m1.62 KB[39m
|
|
29
|
+
[32mESM[39m [1mdist/chunk-ZMYX5VBU.js [22m[32m4.14 KB[39m
|
|
30
|
+
[32mESM[39m [1mdist/chunk-5N4644PB.js [22m[32m1.92 KB[39m
|
|
31
|
+
[32mESM[39m [1mdist/chunk-5YS7WAPS.js [22m[32m5.67 KB[39m
|
|
32
|
+
[32mESM[39m [1mdist/chunk-BJBBR3QA.js [22m[32m4.19 KB[39m
|
|
33
|
+
[32mESM[39m [1mdist/chunk-LO24VOA3.js [22m[32m6.31 KB[39m
|
|
34
|
+
[32mESM[39m [1mdist/chunk-PGGWSUTM.js [22m[32m1.00 KB[39m
|
|
35
|
+
[32mESM[39m [1mdist/chunk-NN7DATXA.js [22m[32m1.38 KB[39m
|
|
36
|
+
[32mESM[39m [1mdist/chunk-6EGG2OZC.js [22m[32m324.00 B[39m
|
|
37
|
+
[32mESM[39m [1mdist/chunk-CGRCUKGT.js [22m[32m2.38 KB[39m
|
|
38
|
+
[32mESM[39m [1mdist/chunk-37BBB2P2.js [22m[32m2.19 KB[39m
|
|
39
|
+
[32mESM[39m [1mdist/adapters/dispatcher-sse.js [22m[32m214.00 B[39m
|
|
40
|
+
[32mESM[39m [1mdist/chunk-ZTSKS42I.js [22m[32m3.65 KB[39m
|
|
41
|
+
[32mESM[39m [1mdist/adapters/mcp-catalog.js [22m[32m187.00 B[39m
|
|
42
|
+
[32mESM[39m [1mdist/chunk-24ZXP7FI.js [22m[32m2.47 KB[39m
|
|
43
|
+
[32mESM[39m [1mdist/adapters/prisma-rollout.js [22m[32m160.00 B[39m
|
|
44
|
+
[32mESM[39m [1mdist/chunk-57W3AR43.js [22m[32m1.55 KB[39m
|
|
45
|
+
[32mESM[39m [1mdist/commands.js [22m[32m187.00 B[39m
|
|
46
|
+
[32mESM[39m [1mdist/chunk-YYFPDBJG.js [22m[32m1.86 KB[39m
|
|
47
|
+
[32mESM[39m [1mdist/definitions.js [22m[32m292.00 B[39m
|
|
48
|
+
[32mESM[39m [1mdist/chunk-7BUOF367.js [22m[32m4.13 KB[39m
|
|
49
|
+
[32mESM[39m [1mdist/dispatcher.js [22m[32m161.00 B[39m
|
|
50
|
+
[32mESM[39m [1mdist/chunk-RDKYDMXT.js [22m[32m4.08 KB[39m
|
|
51
|
+
[32mESM[39m [1mdist/chunk-FUG5DT2C.js [22m[32m2.45 KB[39m
|
|
52
|
+
[32mESM[39m [1mdist/rollout-store-persistent.js.map [22m[32m71.00 B[39m
|
|
53
|
+
[32mESM[39m [1mdist/adapters/index.js.map [22m[32m71.00 B[39m
|
|
54
|
+
[32mESM[39m [1mdist/sandbox.js.map [22m[32m71.00 B[39m
|
|
55
|
+
[32mESM[39m [1mdist/skills.js.map [22m[32m71.00 B[39m
|
|
56
|
+
[32mESM[39m [1mdist/subagents.js.map [22m[32m71.00 B[39m
|
|
57
|
+
[32mESM[39m [1mdist/tools.js.map [22m[32m71.00 B[39m
|
|
58
|
+
[32mESM[39m [1mdist/durable-turn.js.map [22m[32m71.00 B[39m
|
|
59
|
+
[32mESM[39m [1mdist/hook-pipeline.js.map [22m[32m71.00 B[39m
|
|
60
|
+
[32mESM[39m [1mdist/loop.js.map [22m[32m71.00 B[39m
|
|
61
|
+
[32mESM[39m [1mdist/mcp-bridge.js.map [22m[32m71.00 B[39m
|
|
62
|
+
[32mESM[39m [1mdist/model.js.map [22m[32m71.00 B[39m
|
|
63
|
+
[32mESM[39m [1mdist/policy.js.map [22m[32m71.00 B[39m
|
|
64
|
+
[32mESM[39m [1mdist/protocol.js.map [22m[32m71.00 B[39m
|
|
65
|
+
[32mESM[39m [1mdist/rollout.js.map [22m[32m71.00 B[39m
|
|
66
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m251.69 KB[39m
|
|
67
|
+
[32mESM[39m [1mdist/chunk-2DA6Q6TN.js.map [22m[32m8.01 KB[39m
|
|
68
|
+
[32mESM[39m [1mdist/chunk-MUF7ZZTO.js.map [22m[32m4.91 KB[39m
|
|
69
|
+
[32mESM[39m [1mdist/chunk-ZMYX5VBU.js.map [22m[32m12.29 KB[39m
|
|
70
|
+
[32mESM[39m [1mdist/chunk-5N4644PB.js.map [22m[32m6.73 KB[39m
|
|
71
|
+
[32mESM[39m [1mdist/chunk-5YS7WAPS.js.map [22m[32m15.75 KB[39m
|
|
72
|
+
[32mESM[39m [1mdist/chunk-BJBBR3QA.js.map [22m[32m10.81 KB[39m
|
|
73
|
+
[32mESM[39m [1mdist/chunk-LO24VOA3.js.map [22m[32m17.32 KB[39m
|
|
74
|
+
[32mESM[39m [1mdist/chunk-PGGWSUTM.js.map [22m[32m3.50 KB[39m
|
|
75
|
+
[32mESM[39m [1mdist/chunk-NN7DATXA.js.map [22m[32m5.34 KB[39m
|
|
76
|
+
[32mESM[39m [1mdist/chunk-6EGG2OZC.js.map [22m[32m5.96 KB[39m
|
|
77
|
+
[32mESM[39m [1mdist/chunk-CGRCUKGT.js.map [22m[32m7.65 KB[39m
|
|
78
|
+
[32mESM[39m [1mdist/chunk-37BBB2P2.js.map [22m[32m6.88 KB[39m
|
|
79
|
+
[32mESM[39m [1mdist/adapters/dispatcher-sse.js.map [22m[32m71.00 B[39m
|
|
80
|
+
[32mESM[39m [1mdist/chunk-ZTSKS42I.js.map [22m[32m10.83 KB[39m
|
|
81
|
+
[32mESM[39m [1mdist/adapters/mcp-catalog.js.map [22m[32m71.00 B[39m
|
|
82
|
+
[32mESM[39m [1mdist/chunk-24ZXP7FI.js.map [22m[32m8.26 KB[39m
|
|
83
|
+
[32mESM[39m [1mdist/adapters/prisma-rollout.js.map [22m[32m71.00 B[39m
|
|
84
|
+
[32mESM[39m [1mdist/chunk-57W3AR43.js.map [22m[32m4.88 KB[39m
|
|
85
|
+
[32mESM[39m [1mdist/commands.js.map [22m[32m71.00 B[39m
|
|
86
|
+
[32mESM[39m [1mdist/chunk-YYFPDBJG.js.map [22m[32m6.97 KB[39m
|
|
87
|
+
[32mESM[39m [1mdist/definitions.js.map [22m[32m71.00 B[39m
|
|
88
|
+
[32mESM[39m [1mdist/chunk-7BUOF367.js.map [22m[32m10.17 KB[39m
|
|
89
|
+
[32mESM[39m [1mdist/dispatcher.js.map [22m[32m71.00 B[39m
|
|
90
|
+
[32mESM[39m [1mdist/chunk-RDKYDMXT.js.map [22m[32m8.81 KB[39m
|
|
91
|
+
[32mESM[39m [1mdist/chunk-FUG5DT2C.js.map [22m[32m7.87 KB[39m
|
|
92
|
+
[32mESM[39m ⚡️ Build success in 132ms
|
|
93
|
+
[34mDTS[39m Build start
|
|
94
|
+
[32mDTS[39m ⚡️ Build success in 8571ms
|
|
95
|
+
[32mDTS[39m [1mdist/adapters/index.d.ts [22m[32m581.00 B[39m
|
|
96
|
+
[32mDTS[39m [1mdist/adapters/dispatcher-sse.d.ts [22m[32m3.18 KB[39m
|
|
97
|
+
[32mDTS[39m [1mdist/adapters/mcp-catalog.d.ts [22m[32m2.77 KB[39m
|
|
98
|
+
[32mDTS[39m [1mdist/adapters/prisma-rollout.d.ts [22m[32m2.10 KB[39m
|
|
99
|
+
[32mDTS[39m [1mdist/commands.d.ts [22m[32m3.64 KB[39m
|
|
100
|
+
[32mDTS[39m [1mdist/dispatcher.d.ts [22m[32m1.91 KB[39m
|
|
101
|
+
[32mDTS[39m [1mdist/durable-turn.d.ts [22m[32m2.55 KB[39m
|
|
102
|
+
[32mDTS[39m [1mdist/hook-pipeline.d.ts [22m[32m5.33 KB[39m
|
|
103
|
+
[32mDTS[39m [1mdist/loop.d.ts [22m[32m3.15 KB[39m
|
|
104
|
+
[32mDTS[39m [1mdist/mcp-bridge.d.ts [22m[32m1.89 KB[39m
|
|
105
|
+
[32mDTS[39m [1mdist/protocol.d.ts [22m[32m5.32 KB[39m
|
|
106
|
+
[32mDTS[39m [1mdist/rollout-store-persistent.d.ts [22m[32m1.77 KB[39m
|
|
107
|
+
[32mDTS[39m [1mdist/rollout.d.ts [22m[32m3.28 KB[39m
|
|
108
|
+
[32mDTS[39m [1mdist/sandbox.d.ts [22m[32m2.80 KB[39m
|
|
109
|
+
[32mDTS[39m [1mdist/policy.d.ts [22m[32m5.59 KB[39m
|
|
110
|
+
[32mDTS[39m [1mdist/skills.d.ts [22m[32m4.40 KB[39m
|
|
111
|
+
[32mDTS[39m [1mdist/subagents.d.ts [22m[32m5.74 KB[39m
|
|
112
|
+
[32mDTS[39m [1mdist/model.d.ts [22m[32m5.79 KB[39m
|
|
113
|
+
[32mDTS[39m [1mdist/definitions.d.ts [22m[32m3.96 KB[39m
|
|
114
|
+
[32mDTS[39m [1mdist/tools.d.ts [22m[32m2.95 KB[39m
|
|
115
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m86.35 KB[39m
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
|
|
2
|
+
> @nebutra/agent-runtime@0.2.0 test /home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/ai/agent-runtime
|
|
3
|
+
> vitest run
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
[1m[30m[46m RUN [49m[39m[22m [36mv4.1.4 [39m[90m/home/runner/work/Nebutra-Sailor/Nebutra-Sailor/packages/ai/agent-runtime[39m
|
|
7
|
+
|
|
8
|
+
[32m✓[39m src/code-review.test.ts [2m([22m[2m43 tests[22m[2m)[22m[32m 183[2mms[22m[39m
|
|
9
|
+
[32m✓[39m src/context-compaction.test.ts [2m([22m[2m38 tests[22m[2m)[22m[32m 154[2mms[22m[39m
|
|
10
|
+
[32m✓[39m src/channel-gateway.test.ts [2m([22m[2m32 tests[22m[2m)[22m[32m 172[2mms[22m[39m
|
|
11
|
+
[32m✓[39m src/permission-ruleset.test.ts [2m([22m[2m41 tests[22m[2m)[22m[32m 70[2mms[22m[39m
|
|
12
|
+
[32m✓[39m src/fuzzy-match.test.ts [2m([22m[2m36 tests[22m[2m)[22m[32m 77[2mms[22m[39m
|
|
13
|
+
[32m✓[39m src/inbound-admission.test.ts [2m([22m[2m45 tests[22m[2m)[22m[32m 61[2mms[22m[39m
|
|
14
|
+
[32m✓[39m src/session-share.test.ts [2m([22m[2m29 tests[22m[2m)[22m[32m 101[2mms[22m[39m
|
|
15
|
+
[32m✓[39m src/artifact-stream.test.ts [2m([22m[2m27 tests[22m[2m)[22m[32m 120[2mms[22m[39m
|
|
16
|
+
[32m✓[39m src/skills.test.ts [2m([22m[2m16 tests[22m[2m)[22m[32m 96[2mms[22m[39m
|
|
17
|
+
[32m✓[39m src/command-suggestions.test.ts [2m([22m[2m25 tests[22m[2m)[22m[32m 69[2mms[22m[39m
|
|
18
|
+
[32m✓[39m src/commit-message.test.ts [2m([22m[2m29 tests[22m[2m)[22m[32m 98[2mms[22m[39m
|
|
19
|
+
[32m✓[39m src/subagents.test.ts [2m([22m[2m20 tests[22m[2m)[22m[32m 82[2mms[22m[39m
|
|
20
|
+
[32m✓[39m src/hook-pipeline.test.ts [2m([22m[2m18 tests[22m[2m)[22m[32m 165[2mms[22m[39m
|
|
21
|
+
[32m✓[39m src/memory-provider.test.ts [2m([22m[2m18 tests[22m[2m)[22m[32m 100[2mms[22m[39m
|
|
22
|
+
[32m✓[39m src/adapters/dispatcher-sse.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m 194[2mms[22m[39m
|
|
23
|
+
[32m✓[39m src/project-repo.test.ts [2m([22m[2m13 tests[22m[2m)[22m[32m 35[2mms[22m[39m
|
|
24
|
+
[32m✓[39m src/dispatcher.test.ts [2m([22m[2m16 tests[22m[2m)[22m[32m 190[2mms[22m[39m
|
|
25
|
+
[32m✓[39m src/commands.test.ts [2m([22m[2m16 tests[22m[2m)[22m[32m 52[2mms[22m[39m
|
|
26
|
+
[32m✓[39m src/workbench.test.ts [2m([22m[2m19 tests[22m[2m)[22m[32m 42[2mms[22m[39m
|
|
27
|
+
[32m✓[39m src/rollout-store-persistent.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 41[2mms[22m[39m
|
|
28
|
+
[32m✓[39m src/adapters/mcp-catalog.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 48[2mms[22m[39m
|
|
29
|
+
[32m✓[39m src/edit-planner.test.ts [2m([22m[2m21 tests[22m[2m)[22m[32m 33[2mms[22m[39m
|
|
30
|
+
[32m✓[39m src/durable-turn.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 31[2mms[22m[39m
|
|
31
|
+
[32m✓[39m src/deployment-status.test.ts [2m([22m[2m20 tests[22m[2m)[22m[32m 73[2mms[22m[39m
|
|
32
|
+
[32m✓[39m src/skill-distillation.test.ts [2m([22m[2m18 tests[22m[2m)[22m[32m 108[2mms[22m[39m
|
|
33
|
+
[32m✓[39m src/design-context.test.ts [2m([22m[2m17 tests[22m[2m)[22m[32m 47[2mms[22m[39m
|
|
34
|
+
[32m✓[39m src/agent-runtime.test.ts [2m([22m[2m15 tests[22m[2m)[22m[32m 112[2mms[22m[39m
|
|
35
|
+
[32m✓[39m src/mcp-bridge.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 41[2mms[22m[39m
|
|
36
|
+
[32m✓[39m src/definitions.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 18[2mms[22m[39m
|
|
37
|
+
[32m✓[39m src/adapters/prisma-rollout.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 21[2mms[22m[39m
|
|
38
|
+
[32m✓[39m src/loop.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 21[2mms[22m[39m
|
|
39
|
+
|
|
40
|
+
[2m Test Files [22m [1m[32m31 passed[39m[22m[90m (31)[39m
|
|
41
|
+
[2m Tests [22m [1m[32m632 passed[39m[22m[90m (632)[39m
|
|
42
|
+
[2m Start at [22m 16:51:20
|
|
43
|
+
[2m Duration [22m 9.97s[2m (transform 4.25s, setup 0ms, import 10.84s, tests 2.65s, environment 12ms)[22m
|
|
44
|
+
|
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
# @nebutra/agent-runtime
|
|
2
|
+
|
|
3
|
+
## 0.2.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [`fab751f`](https://github.com/Nebutra/Nebutra-Sailor/commit/fab751f39639251bfa006b1bfbcd8cd62f94626a) Thanks [@TsekaLuk](https://github.com/TsekaLuk)! - New adapter subpaths inside `@nebutra/agent-runtime`: concrete reusable port
|
|
8
|
+
adapters for the runtime package.
|
|
9
|
+
|
|
10
|
+
- `mcp-catalog`: adapts `@nebutra/mcp` `serverRegistry`/`mcpClient` into the
|
|
11
|
+
`McpServerCatalogPort` / `McpClientLike` ports — plan-gated, tenant
|
|
12
|
+
fail-closed, schema-less MCP tools still yield usable definitions,
|
|
13
|
+
composes with `activateMcpTools`.
|
|
14
|
+
- `dispatcher-sse`: runtime-agnostic transport for `ProtocolDispatcher` using
|
|
15
|
+
only Web-standard `Request`/`Response` — JSON-RPC handler (never throws),
|
|
16
|
+
incremental `text/event-stream` SSE with error-frame + `AbortSignal`
|
|
17
|
+
cancellation, listener→async-iterable notification bridge.
|
|
18
|
+
|
|
19
|
+
Dependency-injected (no hidden globals), tenant fail-closed, zero framework
|
|
20
|
+
lock-in. The durable rollout-store backend adapter is intentionally not
|
|
21
|
+
included (a correct system-of-record needs a fail-loud datastore; pending a
|
|
22
|
+
governance decision — documented in the README).
|
|
23
|
+
|
|
24
|
+
- [`4865ac9`](https://github.com/Nebutra/Nebutra-Sailor/commit/4865ac9bff6dd83635bc33e4aeb348b087dee7c7) Thanks [@TsekaLuk](https://github.com/TsekaLuk)! - Absorb the IDE-coding-agent delta (over the already-absorbed CLI core).
|
|
25
|
+
|
|
26
|
+
- `code-review`: a pure unified-diff parser, branch-base resolution, a
|
|
27
|
+
confidence-banded review prompt (CRITICAL ≥95% / WARNING ≥85% /
|
|
28
|
+
SUGGESTION ≥75% / below → omit) with an untrusted-content injection guard
|
|
29
|
+
over diff + commit messages, an advisory/no-edit invariant, a fail-closed
|
|
30
|
+
finding parser (`ReviewParseError` rather than a fabricated empty result),
|
|
31
|
+
and a deterministic post-review mode handoff.
|
|
32
|
+
- `context-compaction`: in-session, mid-turn context-overflow recovery — a
|
|
33
|
+
1.3× token-correction estimator, a 60%-floored budget, greedy whole-message
|
|
34
|
+
packing with an oversized-message clipped-transcript fallback,
|
|
35
|
+
bounded-concurrency chunk summarization with a preserve-rubric prompt, a
|
|
36
|
+
recursive binary reduce capped at an output token limit, and a fail-closed
|
|
37
|
+
`"compact"` retry sentinel (never silently drops context).
|
|
38
|
+
- `commit-message` (WRAP): a Conventional-Commits prompt + git-context shape +
|
|
39
|
+
"regenerate materially different" negative constraint + fence/quote
|
|
40
|
+
stripping + bounded retry over the existing injected small-model seam.
|
|
41
|
+
|
|
42
|
+
Tenant-scoped / fail-closed where stateful; pure where stateless; the only
|
|
43
|
+
impurity is an injected model/summarize port. 632 package tests.
|
|
44
|
+
|
|
45
|
+
- [`67f9cd0`](https://github.com/Nebutra/Nebutra-Sailor/commit/67f9cd02c0ee908f0579efadc4292d535a758c16) Thanks [@TsekaLuk](https://github.com/TsekaLuk)! - Durable rollout-store backend (the agent-runtime system-of-record).
|
|
46
|
+
|
|
47
|
+
- New Prisma model `AgentRolloutLine` → table `agent_rollout_lines`, additive
|
|
48
|
+
migration `20260519000000_add_agent_rollout_store` (one CREATE TABLE).
|
|
49
|
+
- `createPrismaRolloutPersistence` in `@nebutra/agent-runtime-adapters`:
|
|
50
|
+
fail-loud `RolloutPersistencePort` over a minimal injected
|
|
51
|
+
`PrismaRolloutDelegate` (no generated-client / `@nebutra/db` dependency;
|
|
52
|
+
per-tenant resolver for RLS). 6 TDD tests.
|
|
53
|
+
- Gateway route store is env-gated: `AGENT_ROLLOUT_DURABLE=1` selects the
|
|
54
|
+
durable Postgres store, default stays in-memory. Activation is a standard
|
|
55
|
+
migrate+generate deploy step (ADR 2026-05-19), not faked durability.
|
|
56
|
+
|
|
57
|
+
- [`bb1b126`](https://github.com/Nebutra/Nebutra-Sailor/commit/bb1b126e82379d88da10f43a86d9d07bccc3a224) Thanks [@TsekaLuk](https://github.com/TsekaLuk)! - Absorb the git-backed-project delta (over the already-absorbed core).
|
|
58
|
+
|
|
59
|
+
- `project-repo`: durable project = git repo. Metadata + per-conversation
|
|
60
|
+
jsonl logs persisted as committed files (one commit per turn); history /
|
|
61
|
+
restore by commit SHA (commit graph IS the history — distinct from
|
|
62
|
+
workbench's in-memory snapshot ring); injected `GitHostPort` (no git
|
|
63
|
+
vendor lock-in); tenant ownership gate (`ownsRepo`, default-deny).
|
|
64
|
+
- `deployment-status`: commit-keyed lifecycle (`idle|deploying|live|
|
|
65
|
+
failed`), latest-status + timeline-from-commits derivations, explicit
|
|
66
|
+
`advanceState` machine; preview domain from an injected suffix (no
|
|
67
|
+
hardcoded host).
|
|
68
|
+
|
|
69
|
+
Tenant-scoped & fail-closed; pure data/logic; git + deploy hosts injected.
|
|
70
|
+
Resolved a `CommitRef` barrel collision (deployment-status structural type
|
|
71
|
+
renamed `DeploymentCommitRef`). 252 package tests.
|
|
72
|
+
|
|
73
|
+
- [`da6bfea`](https://github.com/Nebutra/Nebutra-Sailor/commit/da6bfeaf6c323a9aecefdd65c481a9852aee25b9) Thanks [@TsekaLuk](https://github.com/TsekaLuk)! - Add `@nebutra/agent-runtime`: a multi-tenant agent-runtime grammar.
|
|
74
|
+
|
|
75
|
+
- New package re-expresses a coding-agent runtime _design_ in Sailor grammar —
|
|
76
|
+
thread/turn/item model + event lifecycle, two-axis approval/capability
|
|
77
|
+
policy, uniform tool/MCP abstraction, event-sourced rollout with compaction,
|
|
78
|
+
and an external-sandbox delegation seam.
|
|
79
|
+
- Every serialization scope, store key, and dispatch is tenant-scoped;
|
|
80
|
+
cross-tenant requests can never share a serial lane.
|
|
81
|
+
- No infra change and no in-process untrusted-code execution: the default
|
|
82
|
+
executor fails closed; real execution is delegated behind `ExternalSandbox`.
|
|
83
|
+
- Adds an off-by-default `agent-runtime-demo` feature flag gating a demo route
|
|
84
|
+
in `apps/web`.
|
|
85
|
+
|
|
86
|
+
- [`3c5c43e`](https://github.com/Nebutra/Nebutra-Sailor/commit/3c5c43e1c07c03da936d2948408f8abb4b113321) Thanks [@TsekaLuk](https://github.com/TsekaLuk)! - Absorb the differentiated coding-agent-harness capabilities (the delta over
|
|
87
|
+
the already-absorbed core).
|
|
88
|
+
|
|
89
|
+
- `definitions`: shared layered-tier resolver (precedence + dual
|
|
90
|
+
availability/enabled gate) + frontmatter parser — backs commands, skills,
|
|
91
|
+
subagents from one kernel.
|
|
92
|
+
- `skills`: two-phase progressive disclosure (token-budget listing,
|
|
93
|
+
first-party never-truncated, path-activation), lazy body expansion,
|
|
94
|
+
per-skill model/tool override merge.
|
|
95
|
+
- `hook-pipeline`: 18-event taxonomy, config matcher/`if` resolver,
|
|
96
|
+
structured decision protocol, multi-transport (function/http/prompt),
|
|
97
|
+
parallel fan-out with deterministic precedence merge; wraps the bare
|
|
98
|
+
`ToolHooks` as the in-process transport.
|
|
99
|
+
- `commands`: unified command=skill model with dual user/model front-doors
|
|
100
|
+
and a pure arg-substitution + templating expander.
|
|
101
|
+
- `subagents`: definition resolver (tool allow−deny), fork-vs-spawn
|
|
102
|
+
context-boundary contract, typed terminal-envelope result contract, and a
|
|
103
|
+
tenant-scoped Task lifecycle registry.
|
|
104
|
+
|
|
105
|
+
All tenant-scoped & fail-closed; pure data/logic (no FS/shell/TUI — those
|
|
106
|
+
transports deliberately dropped for multi-tenant safety). 135 package tests.
|
|
107
|
+
|
|
108
|
+
- [`a29b2d9`](https://github.com/Nebutra/Nebutra-Sailor/commit/a29b2d997416edc4e421b31b777724ae70e4da54) Thanks [@TsekaLuk](https://github.com/TsekaLuk)! - Add the agent loop runner — the turn engine.
|
|
109
|
+
|
|
110
|
+
- `runTurn()` drives a turn `loop { model_call → emit items → execute tools
|
|
111
|
+
→ feed results back }` until the model stops requesting tools or a bounded
|
|
112
|
+
step ceiling is hit. Single-threaded (shared context, no conflicting
|
|
113
|
+
sub-agent decisions).
|
|
114
|
+
- The model call is abstracted behind `ModelInvoker`, WRAPping an existing
|
|
115
|
+
model stack rather than re-porting provider/routing/fallback.
|
|
116
|
+
- Every terminal item and the turn outcome are appended to the tenant-scoped
|
|
117
|
+
rollout (resumable by replay); tool calls pass the approval gate
|
|
118
|
+
(`resolveRuleDecision` + server-initiated `ApprovalGate`); unapproved tools
|
|
119
|
+
are never dispatched. Internal failures surface as `turn.failed`, never
|
|
120
|
+
thrown to the caller.
|
|
121
|
+
|
|
122
|
+
- [`cd34724`](https://github.com/Nebutra/Nebutra-Sailor/commit/cd347242ab6874931a74aa72aa9a0d183f7dd5d3) Thanks [@TsekaLuk](https://github.com/TsekaLuk)! - Absorb the multi-channel-gateway delta (over the already-absorbed core).
|
|
123
|
+
|
|
124
|
+
- `channel-gateway`: channel-agnostic `InboundMessage`/`OutboundMessage`
|
|
125
|
+
normalization, a `ChannelAdapter` port (parseInbound returns null for
|
|
126
|
+
non-message events, never throws on junk), tenant-scoped `ChannelRegistry`,
|
|
127
|
+
and outbound route-back through the originating channel.
|
|
128
|
+
- `inbound-admission`: deterministic tenant-prefixed `resolveSessionKey`
|
|
129
|
+
(group/DM/thread bindings, cross-tenant non-colliding), allowlist gating
|
|
130
|
+
(exact / `*` / `prefix:*`, closed-by-default), mention gating (group
|
|
131
|
+
requires @mention or reply-to-assistant; DM never), a time-injected
|
|
132
|
+
`InboundDebouncer`, composed by `admitInbound`.
|
|
133
|
+
|
|
134
|
+
Tenant-scoped & fail-closed; pure data/logic; transport + time injected.
|
|
135
|
+
Only the clean contracts were re-expressed (the messy source impl is not
|
|
136
|
+
ported). 365 package tests.
|
|
137
|
+
|
|
138
|
+
- [`447e948`](https://github.com/Nebutra/Nebutra-Sailor/commit/447e948a7153446e7bc3769395c1687c9f27c991) Thanks [@TsekaLuk](https://github.com/TsekaLuk)! - Close the runtime gap — four capabilities, all tenant-scoped & fail-closed,
|
|
139
|
+
each behind an injectable port so the package keeps zero datastore/queue
|
|
140
|
+
dependency ("no infra change" stays honest):
|
|
141
|
+
|
|
142
|
+
- **Durable / resumable turn** (`durable-turn.ts`): `createDurableTurn` wraps
|
|
143
|
+
`runTurn` behind a `DurableTurnQueuePort`; `resume` replays the rollout and
|
|
144
|
+
re-drives an unfinished turn, idempotent and cross-tenant isolated.
|
|
145
|
+
- **Protocol dispatcher** (`dispatcher.ts`): transport-agnostic JSON-RPC
|
|
146
|
+
dispatcher serving the method registry — envelope validation fail-closed,
|
|
147
|
+
per-`scopeKey` serialization (cross-tenant never shares a lane), errors
|
|
148
|
+
mapped to JSON-RPC codes, validated notification stream.
|
|
149
|
+
- **MCP activation** (`mcp-bridge.ts`): `activateMcpTools` adapts tenant/plan
|
|
150
|
+
-visible MCP-server tools into the uniform `ToolRegistry` via an injectable
|
|
151
|
+
`McpServerCatalogPort`; duplicate names skipped, empty tenant fails closed.
|
|
152
|
+
- **Persistent rollout store** (`rollout-store-persistent.ts`):
|
|
153
|
+
`PersistentRolloutStore` over a `RolloutPersistencePort` (satisfiable by an
|
|
154
|
+
`@nebutra/audit`/`@nebutra/db` adapter) — monotonic per-(tenant,thread)
|
|
155
|
+
seq, faithful round-trip, cross-tenant isolation, typed round-trip errors.
|
|
156
|
+
|
|
157
|
+
- [`b1b9b72`](https://github.com/Nebutra/Nebutra-Sailor/commit/b1b9b7251ef6b1b84e5211dd9b4ae14a1be4b05a) Thanks [@TsekaLuk](https://github.com/TsekaLuk)! - Absorb the self-improving-loop delta (over the already-absorbed core).
|
|
158
|
+
|
|
159
|
+
- `memory-provider`: pluggable cross-session `MemoryProvider` port (full
|
|
160
|
+
lifecycle: initialize/prefetch/syncTurn/onSessionEnd/onSessionSwitch/
|
|
161
|
+
onPreCompress/onDelegation/systemPromptBlock) + a `MemoryManager` that
|
|
162
|
+
degrades safely + memory-context injection defense (recalled text
|
|
163
|
+
banner-wrapped as reference-not-instructions; a split-safe streaming
|
|
164
|
+
scrubber strips model-forged memory banners). Vendor backends injected.
|
|
165
|
+
- `skill-distillation`: the learning loop — eligibility gate (only
|
|
166
|
+
non-trivial successful trajectories), `distillSkill` (deterministic
|
|
167
|
+
prompt → injected synthesize → skill record with `allowedTools` clamped
|
|
168
|
+
to tools the experience actually used = least privilege), `improveSkill`
|
|
169
|
+
(versioned, tenant-locked), pure `shouldNudgePersist` heuristic.
|
|
170
|
+
|
|
171
|
+
Tenant-scoped & fail-closed; pure data/logic; LLM synthesis + memory
|
|
172
|
+
backends are injected ports. 288 package tests.
|
|
173
|
+
|
|
174
|
+
- [`5ed8c38`](https://github.com/Nebutra/Nebutra-Sailor/commit/5ed8c38362e86bad51786383b81cc921b11d1b18) Thanks [@TsekaLuk](https://github.com/TsekaLuk)! - Absorb the coding-agent share/permission delta (over the already-absorbed core).
|
|
175
|
+
|
|
176
|
+
- `permission-ruleset`: `Rule{permission,pattern,action:allow|deny|ask}` +
|
|
177
|
+
`evaluate(...rulesets)` first-match over both dimensions with fail-safe
|
|
178
|
+
`ask` default, a `wildcardMatch` with the faithful trailing `" *"`-optional
|
|
179
|
+
rule (no catastrophic backtracking), and a bash-command-prefix/arity
|
|
180
|
+
extractor (`commandPrefix`/`commandPermissionKey`).
|
|
181
|
+
- `session-share`: mint a read-only `ShareRecord{id,url,secret}` for a
|
|
182
|
+
session, revoke it, public secret-gated `verifyViewer` (no tenantId —
|
|
183
|
+
constant-time compare; documented threat model). Injected id-mint /
|
|
184
|
+
url-builder / sync-sink / store ports; kill-switch; persist-first
|
|
185
|
+
best-effort sync.
|
|
186
|
+
|
|
187
|
+
Owner plane tenant-scoped & fail-closed; viewer plane secret-gated; pure
|
|
188
|
+
where stateless; transport/crypto/store injected. 496 package tests.
|
|
189
|
+
|
|
190
|
+
- [`77c0105`](https://github.com/Nebutra/Nebutra-Sailor/commit/77c0105ce89a4ff0f5e86229cce9c2561c1b1c5f) Thanks [@TsekaLuk](https://github.com/TsekaLuk)! - Absorb the site-clone / targeted-edit delta (over the already-absorbed core).
|
|
191
|
+
|
|
192
|
+
- `design-context`: website → structured generation seed
|
|
193
|
+
`{content, brand{colors,fonts}, screenshot, title}` — pure normalizer +
|
|
194
|
+
injected `ScrapeProvider` port (no network/provider lock-in),
|
|
195
|
+
`toGenerationSeed` bounded deterministic prompt block.
|
|
196
|
+
- `edit-planner`: pattern-driven `analyzeEditIntent` (7 EditTypes) +
|
|
197
|
+
`selectFilesForEdit` (primary/context split + deterministic system-prompt
|
|
198
|
+
builder) + generalised fast-apply (`parseEditBlocks` / `applyEditBlock`
|
|
199
|
+
with an injected merger). Targeted edit planning vs regenerate-all.
|
|
200
|
+
|
|
201
|
+
Tenant-scoped & fail-closed; pure data/logic; scrape + LLM-merge are
|
|
202
|
+
injected ports. 219 package tests.
|
|
203
|
+
|
|
204
|
+
- [`1e2d929`](https://github.com/Nebutra/Nebutra-Sailor/commit/1e2d9298f4f093cbe81199e7dcd3991116d01ea2) Thanks [@TsekaLuk](https://github.com/TsekaLuk)! - Absorb the terminal-suggestion delta (over the already-absorbed core).
|
|
205
|
+
|
|
206
|
+
- `fuzzy-match`: smart-case subsequence fuzzy match returning
|
|
207
|
+
`{score, indices}` (lowercase query ⇒ case-insensitive; any uppercase ⇒
|
|
208
|
+
case-sensitive), case-insensitive + ignore-spaces variants (indices map to
|
|
209
|
+
original text), anchored glob-wildcard (`* ? [a-z] \`, no catastrophic
|
|
210
|
+
backtracking), stable `rankByFuzzy`. Pure, dependency-free.
|
|
211
|
+
- `command-suggestions`: `classifyMatch` with deterministic
|
|
212
|
+
exact > prefix > fuzzy score banding, `rankSuggestions` (history-boost +
|
|
213
|
+
shorter-text + stable tie-breaks), `dedupeByText` (history-wins,
|
|
214
|
+
case-insensitive), tenant-scoped `SuggestionHistoryStore` (recency ring,
|
|
215
|
+
cross-tenant isolation). Fuzzy matcher injected.
|
|
216
|
+
|
|
217
|
+
Tenant-scoped & fail-closed where stateful; pure data/logic. The source's
|
|
218
|
+
generated `command-signatures-v2` JS bundle was deliberately not ported.
|
|
219
|
+
426 package tests.
|
|
220
|
+
|
|
221
|
+
- [`509338e`](https://github.com/Nebutra/Nebutra-Sailor/commit/509338ee5ffc537c108f06cd1fc24a811a5e05b8) Thanks [@TsekaLuk](https://github.com/TsekaLuk)! - Concrete Track-B coupling for the agent-runtime external-sandbox seam.
|
|
222
|
+
|
|
223
|
+
- Add `createHttpSandbox(baseUrl)`: an `ExternalSandbox` that delegates
|
|
224
|
+
execution over HTTP to the decoupled Rust isolator
|
|
225
|
+
(`backends/rust/sandbox`, `POST /api/v1/sandbox/exec`).
|
|
226
|
+
- Non-2xx isolator responses (e.g. a fail-closed 403 refusal) surface as
|
|
227
|
+
`SandboxDelegationError` and are never coerced into a fabricated result.
|
|
228
|
+
- The Rust isolator now mirrors the `SandboxExecRequest` /
|
|
229
|
+
`SandboxExecResult` / `CapabilityPolicy` wire shapes and is fail-closed
|
|
230
|
+
until a real isolation backend (Wasmtime/Firecracker) is wired.
|
|
231
|
+
|
|
232
|
+
- [`efe764d`](https://github.com/Nebutra/Nebutra-Sailor/commit/efe764d60085352eae304dc37dc22fda8920e587) Thanks [@TsekaLuk](https://github.com/TsekaLuk)! - Absorb the web-app-builder delta (the differentiated capabilities over the
|
|
233
|
+
already-absorbed harness core).
|
|
234
|
+
|
|
235
|
+
- `artifact-stream`: streaming artifact/action protocol — a chunk-fed
|
|
236
|
+
incremental parser for an `<artifact>` of ordered
|
|
237
|
+
`<action type=file|shell|start|build|data>` blocks (split-tag safe, no
|
|
238
|
+
duplicate emit), plus an action runner with a
|
|
239
|
+
`pending→running→complete|aborted|failed` state-machine, submission-order
|
|
240
|
+
queue, halt-on-failure, and execution delegated through injected ports
|
|
241
|
+
(no in-process exec / host FS). Distinct from tool-calling.
|
|
242
|
+
- `workbench`: tenant-scoped project-state model — immutable FileMap with
|
|
243
|
+
auto-derived folders, apply-file-mutation, snapshot/restore with
|
|
244
|
+
deep-copy isolation, bounded snapshot history, project diff; behind a
|
|
245
|
+
`ProjectPersistencePort` (in-memory ref impl mirroring the rollout-store
|
|
246
|
+
seam).
|
|
247
|
+
|
|
248
|
+
All tenant-scoped & fail-closed, pure data/logic. 181 package tests.
|
|
249
|
+
|
|
250
|
+
### Patch Changes
|
|
251
|
+
|
|
252
|
+
- Updated dependencies [[`5d3d7e6`](https://github.com/Nebutra/Nebutra-Sailor/commit/5d3d7e6c59cae5aa242bb988b75a9888cfd0db39)]:
|
|
253
|
+
- @nebutra/mcp@0.1.1
|