@1agents/dreammate-network 0.3.1 → 0.3.2

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.
@@ -12,7 +12,7 @@
12
12
  * 协议版本,与本包的 package.json 版本保持一致——两个版本号会让人永远猜不准
13
13
  * 该看哪个。服务在 `manifest.metadata.protocol_version` 里报告它遵循的版本。
14
14
  */
15
- export declare const PROTOCOL_VERSION = "0.3.1";
15
+ export declare const PROTOCOL_VERSION = "0.3.2";
16
16
  /** `session://<node>/<runtime>/<session_id>` */
17
17
  export type SessionURI = `session://${string}/${string}/${string}`;
18
18
  /** 资源寻址,如 `recording://tingqi-01/abc`、`speaker://tingqi-001/speaker-23` */
@@ -103,8 +103,8 @@ export interface Service {
103
103
  name?: string | null;
104
104
  /** 省略等同于 `"generic"` */
105
105
  kind?: ServiceKind;
106
- /** 可以为空数组(纯 Resource Provider) */
107
- capabilities: Capability[];
106
+ /** 可以为空数组(纯 Resource Provider)或省略 */
107
+ capabilities?: Capability[];
108
108
  resources?: ResourceDescriptor[];
109
109
  access?: AccessDescriptor[];
110
110
  /**
@@ -12,7 +12,7 @@
12
12
  * 协议版本,与本包的 package.json 版本保持一致——两个版本号会让人永远猜不准
13
13
  * 该看哪个。服务在 `manifest.metadata.protocol_version` 里报告它遵循的版本。
14
14
  */
15
- export const PROTOCOL_VERSION = "0.3.1";
15
+ export const PROTOCOL_VERSION = "0.3.2";
16
16
  /* ------------------------------------------------------------------ *
17
17
  * 发现
18
18
  * ------------------------------------------------------------------ */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1agents/dreammate-network",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "DreamMate Network L0 协议包:schema + types,零运行时依赖,不含业务逻辑。",
5
5
  "keywords": [
6
6
  "dreammate",
@@ -5,8 +5,7 @@
5
5
  "description": "Node 上的一组能力聚合。三层结构是 Node → Service → Capability / Resource,不要把 Capability 扁平铺到 Node 上。Agent Runtime 是 Service 的一种特殊 kind。",
6
6
  "type": "object",
7
7
  "required": [
8
- "id",
9
- "capabilities"
8
+ "id"
10
9
  ],
11
10
  "properties": {
12
11
  "id": {