@gencode/web 0.0.1

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 (3) hide show
  1. package/CHANGELOG.md +7 -0
  2. package/README.md +65 -0
  3. package/package.json +25 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # @gencode/web
2
+
3
+ ## 0.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - Establish the initial changelog baseline for the current package version.
package/README.md ADDED
@@ -0,0 +1,65 @@
1
+ # @gencode/web
2
+
3
+ ## 包定位
4
+
5
+ `@gencode/web` 负责 AIMax 的 Web 服务集成边界。
6
+ 它在架构上的角色,是模拟爱码Max后台这一侧的服务行为,同时严格尊重 CLI 进程边界。
7
+
8
+ ## 负责内容
9
+
10
+ 这个包适合承载:
11
+ - 面向 Web 的集成行为
12
+ - 模拟爱码Max后台的服务侧逻辑
13
+ - 在 Web 边界接收和协调 CLI 驱动产生的输出
14
+ - 处于 agent 领域层之外的 API 与服务集成逻辑
15
+
16
+ ## 不负责内容
17
+
18
+ 这个包不应直接承担:
19
+ - agent 领域执行内部逻辑
20
+ - 对 `@gencode/agents` 的直接引入
21
+ - 替代 CLI 的执行逻辑
22
+ - 本应放在 `@gencode/shared` 的共享协议重复定义
23
+
24
+ 按当前架构约束,本包应通过 CLI 调用能力,而不是绕过 CLI 直接访问 agent 层。
25
+
26
+ ## 当前源码入口
27
+
28
+ 阅读本包时,建议先看:
29
+ - `src/index.ts` —— 当前包入口
30
+
31
+ 本包当前实现仍较薄,这是正常的。即使实现表面很小,边界也必须先定义清楚。
32
+
33
+ ## 与其他包的关系
34
+
35
+ - `@gencode/web` 应通过 `@gencode/cli` 使用 agent 能力
36
+ - `@gencode/shared` 应提供可复用的对外协议结构
37
+ - `@gencode/agents` 处于 CLI 边界之后,不应在这里被直接引入
38
+
39
+ 相关工作区包:
40
+ - `source/packages/console` 当前是并行存在的 UI / 控制台包
41
+ - 在专门的架构收敛任务完成前,不要把 `console` 与 `web` 混为一体
42
+
43
+ ## 开发说明
44
+
45
+ 当你扩展本包时:
46
+ - 始终保留 CLI 进程边界
47
+ - 保持服务侧集成关注点与 agent 领域所有权分离
48
+ - 不要为了省事直接把 Web 集成耦合到 `@gencode/agents`
49
+ - callback、websocket 等对外接口应优先使用显式共享契约
50
+
51
+ ## 验证
52
+
53
+ 本包当前实现面较小,可先使用工作区级验证:
54
+
55
+ ```bash
56
+ pnpm -C source typecheck
57
+ pnpm -C source test
58
+ ```
59
+
60
+ ## 相关规格文档
61
+
62
+ - `../../../specs/system-overview.md`
63
+ - `../../../specs/architecture-boundaries.md`
64
+ - `../../../specs/repo-map.md`
65
+ - `../../../specs/web-module-plan.md`
package/package.json ADDED
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "@gencode/web",
3
+ "version": "0.0.1",
4
+ "type": "module",
5
+ "exports": {
6
+ ".": {
7
+ "types": "./dist/index.d.ts",
8
+ "default": "./dist/index.js"
9
+ }
10
+ },
11
+ "files": [
12
+ "dist",
13
+ "CHANGELOG.md"
14
+ ],
15
+ "dependencies": {
16
+ "@gencode/console": "0.0.16",
17
+ "@gencode/shared": "0.0.20"
18
+ },
19
+ "devDependencies": {},
20
+ "scripts": {
21
+ "build": "node -e \"process.exit(0)\"",
22
+ "test": "node -e \"process.exit(0)\"",
23
+ "typecheck": "node -e \"process.exit(0)\""
24
+ }
25
+ }