@deepseek-ai/dsh-api-remotes 0.2.0-rc.2 → 0.2.1-alpha.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.
package/README.i18n.yaml CHANGED
@@ -15,8 +15,8 @@
15
15
  en: a7a78c6d1aeebeb3
16
16
  zh: 4bb69f32d8b05ba3
17
17
  /deepseek-ai-dsh-api-remotes/use-this-package:
18
- en: b85e651d75ad3930
19
- zh: 586ab15f54aefed6
18
+ en: a80d44e0683768a5
19
+ zh: 379833ac180e5418
20
20
  /deepseek-ai-dsh-api-remotes/forwarded-host-events:
21
21
  en: d6d82bf0e55ae5e9
22
22
  zh: c3a0c80f8b115039
@@ -33,5 +33,5 @@
33
33
  en: 00a837c9e7b5a800
34
34
  zh: 1b86e789327b7798
35
35
  /deepseek-ai-dsh-api-remotes/known-limitations-and-deferred-work/dev-note:
36
- en: 947ba019d2a6a7e7
37
- zh: ad4d687f3bc77dbb
36
+ en: d60df1790fac729c
37
+ zh: cfc4e027025639bf
package/README.md CHANGED
@@ -27,7 +27,7 @@ Two-sided BFF for Host Remote capabilities selected by this application. The Hos
27
27
  <a id="use-this-package"></a>
28
28
  ## Use this package
29
29
 
30
- [`@deepseek-ai/dsh-api-session-controller`](../session-controller/README.md) owns Agent and Session identity policy, including the Typert lookup resolvers used by other namespaces. This package only selects and mounts that generated Session contribution; it does not duplicate activation policy.
30
+ [`@deepseek-ai/dsh-api-session-controller`](../session-controller/README.md) owns Agent and Session identity policy, including the Typert lookup resolvers used by other namespaces. This package selects and mounts that generated Session contribution without a direct runtime dependency on `@deepseek-ai/dsh-session`; activation policy stays with Session Controller.
31
31
 
32
32
  The Client assembly mounts Office conversion, Commands, credentials, settings, Goal, Schedule, dynamic Cordis, file and Session references, read-only Host plugin inventory, plugin-installation registry response comparison, message feedback, permission presets, Session Controller, subagents, and Workspace Controller contributions. The `permissionPresets` namespace returns the complete process-level catalog used by current-session controls. Cordis effect ownership withdraws every contribution when this assembly unloads, while `@deepseek-ai/dsh-api-gateway/client` owns descriptor validation, traced namespace Services, direct and scoped methods, invocation, streams, and cancellation. The Client entry consumes the shared `TypertClientRemote` interface through Cordis and does not import the concrete Gateway. It re-exports the Gateway Client face's declaration merges type-only, so a consumer reaching the forwarded-event vocabulary through this facade gains no runtime edge to the Gateway implementation.
33
33
 
@@ -87,6 +87,4 @@ None.
87
87
 
88
88
  </details>
89
89
 
90
- **Runtime invariant:** No companion is published. Typert and the Agent/Session registries own the observed relationships.
91
-
92
90
  The Client assembly includes the account namespace for login commands and reconnectable account snapshots.
package/README.zh.md CHANGED
@@ -27,7 +27,7 @@ kind: "package-reference"
27
27
  <a id="use-this-package"></a>
28
28
  ## 使用本包
29
29
 
30
- [`@deepseek-ai/dsh-api-session-controller`](../session-controller/README.zh.md) 拥有 agent(智能体)与会话身份策略,包括供其他 namespace 使用的 Typert lookup 解析器。本包只选择并挂载生成的会话 contribution,不复制激活策略。
30
+ [`@deepseek-ai/dsh-api-session-controller`](../session-controller/README.zh.md) 拥有 agent(智能体)与会话身份策略,包括供其他 namespace 使用的 Typert lookup 解析器。本包选择并挂载生成的会话 contribution,无需直接依赖 `@deepseek-ai/dsh-session` 的运行时;激活策略由会话控制器负责。
31
31
 
32
32
  Client 组合挂载 Office 转换、Commands、凭据、settings、Goal、Schedule、动态 Cordis、文件与会话引用、只读 Host 插件清单、插件安装源响应比较、消息反馈、权限预设、会话控制器、subagents 和 Workspace 控制器 contribution。`permissionPresets` namespace 返回 current-session 控件使用的完整进程级目录。该组合卸载时,Cordis effect 的所有权机制会撤回所有贡献;`@deepseek-ai/dsh-api-gateway/client` 负责描述符校验、可追踪的 namespace 服务、直接与作用域方法、调用、流与取消。Client 入口通过 Cordis 消费共享的 `TypertClientRemote` 接口,不导入具体 Gateway;它只以 type-only 形式重新导出 Gateway Client face 的声明合并,因此消费端经由本外观取到转发事件词汇时,运行时不会多出一条通往 Gateway 实现的边。
33
33
 
@@ -87,6 +87,4 @@ Host entry 为每条 Client 流独立注册一组 allowlist listener 和一个
87
87
 
88
88
  </details>
89
89
 
90
- **运行时不变式:** 不发布伴生入口。被观察的关系由 Typert、agent 注册表和会话注册表负责。
91
-
92
90
  客户端组装包含 account 命名空间,用于登录操作和可重连的账号快照。
package/lib/client.js CHANGED
@@ -4640,7 +4640,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4640
4640
  },
4641
4641
  sourceLocation: {
4642
4642
  "file": "packages/preset/agent-preset-registry/src/index.ts",
4643
- "line": 171,
4643
+ "line": 195,
4644
4644
  "column": 9
4645
4645
  }
4646
4646
  },
@@ -4668,7 +4668,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4668
4668
  },
4669
4669
  sourceLocation: {
4670
4670
  "file": "packages/preset/agent-preset-registry/src/index.ts",
4671
- "line": 194,
4671
+ "line": 218,
4672
4672
  "column": 3
4673
4673
  }
4674
4674
  },
@@ -4709,7 +4709,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4709
4709
  },
4710
4710
  sourceLocation: {
4711
4711
  "file": "packages/preset/agent-preset-registry/src/index.ts",
4712
- "line": 319,
4712
+ "line": 347,
4713
4713
  "column": 9
4714
4714
  }
4715
4715
  }
@@ -5006,6 +5006,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5006
5006
  "expiresAt": number().readonly().optional(),
5007
5007
  "errorCode": union([
5008
5008
  literal("expired"),
5009
+ literal("no-response"),
5009
5010
  literal("network"),
5010
5011
  literal("protocol"),
5011
5012
  literal("storage")
@@ -5077,6 +5078,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5077
5078
  "expiresAt": number().readonly().optional(),
5078
5079
  "errorCode": union([
5079
5080
  literal("expired"),
5081
+ literal("no-response"),
5080
5082
  literal("network"),
5081
5083
  literal("protocol"),
5082
5084
  literal("storage")
@@ -5133,6 +5135,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5133
5135
  "expiresAt": number().readonly().optional(),
5134
5136
  "errorCode": union([
5135
5137
  literal("expired"),
5138
+ literal("no-response"),
5136
5139
  literal("network"),
5137
5140
  literal("protocol"),
5138
5141
  literal("storage")
@@ -5172,6 +5175,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5172
5175
  "expiresAt": number().readonly().optional(),
5173
5176
  "errorCode": union([
5174
5177
  literal("expired"),
5178
+ literal("no-response"),
5175
5179
  literal("network"),
5176
5180
  literal("protocol"),
5177
5181
  literal("storage")
@@ -5201,6 +5205,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5201
5205
  "expiresAt": number().readonly().optional(),
5202
5206
  "errorCode": union([
5203
5207
  literal("expired"),
5208
+ literal("no-response"),
5204
5209
  literal("network"),
5205
5210
  literal("protocol"),
5206
5211
  literal("storage")
@@ -7134,6 +7139,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7134
7139
  "code": literal("frequency_too_high").readonly(),
7135
7140
  "message": string().readonly()
7136
7141
  }),
7142
+ object({
7143
+ "code": literal("subagent_session").readonly(),
7144
+ "message": string().readonly()
7145
+ }),
7137
7146
  object({
7138
7147
  "code": literal("internal_error").readonly(),
7139
7148
  "message": string().readonly()
@@ -7156,7 +7165,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7156
7165
  },
7157
7166
  sourceLocation: {
7158
7167
  "file": "packages/schedule/schedule/src/index.ts",
7159
- "line": 304,
7168
+ "line": 285,
7160
7169
  "column": 9
7161
7170
  }
7162
7171
  },
@@ -7184,7 +7193,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7184
7193
  },
7185
7194
  sourceLocation: {
7186
7195
  "file": "packages/schedule/schedule/src/index.ts",
7187
- "line": 343,
7196
+ "line": 326,
7188
7197
  "column": 9
7189
7198
  }
7190
7199
  },
@@ -7211,7 +7220,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7211
7220
  },
7212
7221
  sourceLocation: {
7213
7222
  "file": "packages/schedule/schedule/src/index.ts",
7214
- "line": 322,
7223
+ "line": 303,
7215
7224
  "column": 9
7216
7225
  }
7217
7226
  },
@@ -7238,7 +7247,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7238
7247
  },
7239
7248
  sourceLocation: {
7240
7249
  "file": "packages/schedule/schedule/src/index.ts",
7241
- "line": 290,
7250
+ "line": 271,
7242
7251
  "column": 9
7243
7252
  }
7244
7253
  },
@@ -7266,7 +7275,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7266
7275
  },
7267
7276
  sourceLocation: {
7268
7277
  "file": "packages/schedule/schedule/src/index.ts",
7269
- "line": 370,
7278
+ "line": 356,
7270
7279
  "column": 9
7271
7280
  }
7272
7281
  }
@@ -7342,7 +7351,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7342
7351
  },
7343
7352
  sourceLocation: {
7344
7353
  "file": "packages/llm/llm/src/index.ts",
7345
- "line": 638,
7354
+ "line": 631,
7346
7355
  "column": 9
7347
7356
  }
7348
7357
  },
@@ -7360,7 +7369,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7360
7369
  },
7361
7370
  sourceLocation: {
7362
7371
  "file": "packages/llm/llm/src/index.ts",
7363
- "line": 550,
7372
+ "line": 543,
7364
7373
  "column": 3
7365
7374
  }
7366
7375
  },
@@ -7378,7 +7387,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7378
7387
  },
7379
7388
  sourceLocation: {
7380
7389
  "file": "packages/llm/llm/src/index.ts",
7381
- "line": 478,
7390
+ "line": 471,
7382
7391
  "column": 3
7383
7392
  }
7384
7393
  }
@@ -8486,6 +8495,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8486
8495
  })).optional()
8487
8496
  }).optional(),
8488
8497
  "bundle": string().optional(),
8498
+ "version": string().optional(),
8489
8499
  "pendingBuilds": array(string()).optional(),
8490
8500
  "approvedBuilds": array(string()).optional(),
8491
8501
  "registries": array(union([literal(null), string()])).optional(),
@@ -8504,6 +8514,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8504
8514
  "description": string().optional(),
8505
8515
  "enabled": boolean(),
8506
8516
  "installed": boolean(),
8517
+ "source": string().optional(),
8507
8518
  "optional": boolean(),
8508
8519
  "removable": boolean(),
8509
8520
  "readOnlyReason": union([literal("management-required"), literal("unaddressable")]).optional(),
@@ -8667,6 +8678,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8667
8678
  })).optional()
8668
8679
  }).optional(),
8669
8680
  "bundle": string().optional(),
8681
+ "version": string().optional(),
8670
8682
  "pendingBuilds": array(string()).optional(),
8671
8683
  "approvedBuilds": array(string()).optional(),
8672
8684
  "registries": array(union([literal(null), string()])).optional(),
@@ -8743,6 +8755,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8743
8755
  })).optional()
8744
8756
  }).optional(),
8745
8757
  "bundle": string().optional(),
8758
+ "version": string().optional(),
8746
8759
  "pendingBuilds": array(string()).optional(),
8747
8760
  "approvedBuilds": array(string()).optional(),
8748
8761
  "registries": array(union([literal(null), string()])).optional(),
@@ -8819,6 +8832,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8819
8832
  })).optional()
8820
8833
  }).optional(),
8821
8834
  "bundle": string().optional(),
8835
+ "version": string().optional(),
8822
8836
  "pendingBuilds": array(string()).optional(),
8823
8837
  "approvedBuilds": array(string()).optional(),
8824
8838
  "registries": array(union([literal(null), string()])).optional(),
@@ -8903,6 +8917,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8903
8917
  })).optional()
8904
8918
  }).optional(),
8905
8919
  "bundle": string().optional(),
8920
+ "version": string().optional(),
8906
8921
  "pendingBuilds": array(string()).optional(),
8907
8922
  "approvedBuilds": array(string()).optional(),
8908
8923
  "registries": array(union([literal(null), string()])).optional(),
@@ -8977,6 +8992,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8977
8992
  })).optional()
8978
8993
  }).optional(),
8979
8994
  "bundle": string().optional(),
8995
+ "version": string().optional(),
8980
8996
  "pendingBuilds": array(string()).optional(),
8981
8997
  "approvedBuilds": array(string()).optional(),
8982
8998
  "registries": array(union([literal(null), string()])).optional(),
@@ -9008,7 +9024,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9008
9024
  },
9009
9025
  sourceLocation: {
9010
9026
  "file": "packages/boot/plugin-manager/src/index.ts",
9011
- "line": 585,
9027
+ "line": 600,
9012
9028
  "column": 9
9013
9029
  }
9014
9030
  },
@@ -9046,7 +9062,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9046
9062
  },
9047
9063
  sourceLocation: {
9048
9064
  "file": "packages/boot/plugin-manager/src/index.ts",
9049
- "line": 341,
9065
+ "line": 350,
9050
9066
  "column": 9
9051
9067
  }
9052
9068
  },
@@ -9083,7 +9099,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9083
9099
  },
9084
9100
  sourceLocation: {
9085
9101
  "file": "packages/boot/plugin-manager/src/index.ts",
9086
- "line": 462,
9102
+ "line": 473,
9087
9103
  "column": 3
9088
9104
  }
9089
9105
  },
@@ -9155,7 +9171,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9155
9171
  },
9156
9172
  sourceLocation: {
9157
9173
  "file": "packages/boot/plugin-manager/src/index.ts",
9158
- "line": 325,
9174
+ "line": 334,
9159
9175
  "column": 9
9160
9176
  }
9161
9177
  },
@@ -9182,7 +9198,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9182
9198
  },
9183
9199
  sourceLocation: {
9184
9200
  "file": "packages/boot/plugin-manager/src/index.ts",
9185
- "line": 601,
9201
+ "line": 617,
9186
9202
  "column": 3
9187
9203
  }
9188
9204
  },
@@ -9218,7 +9234,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9218
9234
  },
9219
9235
  sourceLocation: {
9220
9236
  "file": "packages/boot/plugin-manager/src/index.ts",
9221
- "line": 443,
9237
+ "line": 452,
9222
9238
  "column": 3
9223
9239
  }
9224
9240
  },
@@ -9254,7 +9270,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9254
9270
  },
9255
9271
  sourceLocation: {
9256
9272
  "file": "packages/boot/plugin-manager/src/index.ts",
9257
- "line": 425,
9273
+ "line": 434,
9258
9274
  "column": 3
9259
9275
  }
9260
9276
  },
@@ -9341,7 +9357,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9341
9357
  },
9342
9358
  sourceLocation: {
9343
9359
  "file": "packages/boot/plugin-manager/src/index.ts",
9344
- "line": 575,
9360
+ "line": 590,
9345
9361
  "column": 9
9346
9362
  }
9347
9363
  }
@@ -9830,7 +9846,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9830
9846
  },
9831
9847
  sourceLocation: {
9832
9848
  "file": "packages/client/file-upload/src/index.ts",
9833
- "line": 106,
9849
+ "line": 105,
9834
9850
  "column": 3
9835
9851
  }
9836
9852
  }]
@@ -9979,7 +9995,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9979
9995
  },
9980
9996
  sourceLocation: {
9981
9997
  "file": "packages/subagent/subagent/src/index.ts",
9982
- "line": 483,
9998
+ "line": 481,
9983
9999
  "column": 3
9984
10000
  }
9985
10001
  }, {
@@ -10006,7 +10022,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10006
10022
  },
10007
10023
  sourceLocation: {
10008
10024
  "file": "packages/subagent/subagent/src/index.ts",
10009
- "line": 416,
10025
+ "line": 414,
10010
10026
  "column": 9
10011
10027
  }
10012
10028
  }]
@@ -10214,27 +10230,22 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10214
10230
  "seq": intersection(number(), unknown())
10215
10231
  })
10216
10232
  ]).optional(),
10217
- "goal": union([literal(null), object({
10218
- "goal": object({
10219
- "objective": string().readonly(),
10220
- "phase": union([
10221
- literal("active"),
10222
- literal("paused"),
10223
- literal("blocked"),
10224
- literal("complete")
10225
- ]).readonly(),
10226
- "blockedReason": object({
10227
- "code": string().readonly(),
10228
- "message": string().readonly()
10229
- }).readonly().optional(),
10230
- "maxGoalRounds": number().readonly(),
10231
- "id": intersection(string(), unknown()).readonly(),
10232
- "revision": number().readonly()
10233
- }).readonly(),
10234
- "roundsStarted": number().readonly(),
10235
- "createdAt": number().readonly(),
10236
- "updatedAt": number().readonly()
10237
- })]).optional(),
10233
+ "tokenUsage": object({
10234
+ "uncachedInputTokens": number(),
10235
+ "outputTokens": number(),
10236
+ "cacheReadTokens": number(),
10237
+ "cacheWriteTokens": number()
10238
+ }).optional(),
10239
+ "contextPressure": object({
10240
+ "pressureTokens": number().optional(),
10241
+ "projectedTokens": number().optional(),
10242
+ "contextWindow": number().optional()
10243
+ }).optional(),
10244
+ "contextBreakdown": object({
10245
+ "systemTokens": number(),
10246
+ "toolsTokens": number(),
10247
+ "messageTokens": number()
10248
+ }).optional(),
10238
10249
  "userQuestions": object({
10239
10250
  "active": array(object({
10240
10251
  "callId": intersection(string(), unknown()).readonly(),
@@ -10264,7 +10275,28 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10264
10275
  "custom": string().optional()
10265
10276
  })).readonly()
10266
10277
  })).readonly()
10267
- }).optional()
10278
+ }).optional(),
10279
+ "goal": union([literal(null), object({
10280
+ "goal": object({
10281
+ "objective": string().readonly(),
10282
+ "phase": union([
10283
+ literal("active"),
10284
+ literal("paused"),
10285
+ literal("blocked"),
10286
+ literal("complete")
10287
+ ]).readonly(),
10288
+ "blockedReason": object({
10289
+ "code": string().readonly(),
10290
+ "message": string().readonly()
10291
+ }).readonly().optional(),
10292
+ "maxGoalRounds": number().readonly(),
10293
+ "id": intersection(string(), unknown()).readonly(),
10294
+ "revision": number().readonly()
10295
+ }).readonly(),
10296
+ "roundsStarted": number().readonly(),
10297
+ "createdAt": number().readonly(),
10298
+ "updatedAt": number().readonly()
10299
+ })]).optional()
10268
10300
  }), record(string(), union([
10269
10301
  literal(null),
10270
10302
  string(),
@@ -10519,27 +10551,22 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10519
10551
  "seq": intersection(number(), unknown())
10520
10552
  })
10521
10553
  ]).optional(),
10522
- "goal": union([literal(null), object({
10523
- "goal": object({
10524
- "objective": string().readonly(),
10525
- "phase": union([
10526
- literal("active"),
10527
- literal("paused"),
10528
- literal("blocked"),
10529
- literal("complete")
10530
- ]).readonly(),
10531
- "blockedReason": object({
10532
- "code": string().readonly(),
10533
- "message": string().readonly()
10534
- }).readonly().optional(),
10535
- "maxGoalRounds": number().readonly(),
10536
- "id": intersection(string(), unknown()).readonly(),
10537
- "revision": number().readonly()
10538
- }).readonly(),
10539
- "roundsStarted": number().readonly(),
10540
- "createdAt": number().readonly(),
10541
- "updatedAt": number().readonly()
10542
- })]).optional(),
10554
+ "tokenUsage": object({
10555
+ "uncachedInputTokens": number(),
10556
+ "outputTokens": number(),
10557
+ "cacheReadTokens": number(),
10558
+ "cacheWriteTokens": number()
10559
+ }).optional(),
10560
+ "contextPressure": object({
10561
+ "pressureTokens": number().optional(),
10562
+ "projectedTokens": number().optional(),
10563
+ "contextWindow": number().optional()
10564
+ }).optional(),
10565
+ "contextBreakdown": object({
10566
+ "systemTokens": number(),
10567
+ "toolsTokens": number(),
10568
+ "messageTokens": number()
10569
+ }).optional(),
10543
10570
  "userQuestions": object({
10544
10571
  "active": array(object({
10545
10572
  "callId": intersection(string(), unknown()).readonly(),
@@ -10569,7 +10596,28 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10569
10596
  "custom": string().optional()
10570
10597
  })).readonly()
10571
10598
  })).readonly()
10572
- }).optional()
10599
+ }).optional(),
10600
+ "goal": union([literal(null), object({
10601
+ "goal": object({
10602
+ "objective": string().readonly(),
10603
+ "phase": union([
10604
+ literal("active"),
10605
+ literal("paused"),
10606
+ literal("blocked"),
10607
+ literal("complete")
10608
+ ]).readonly(),
10609
+ "blockedReason": object({
10610
+ "code": string().readonly(),
10611
+ "message": string().readonly()
10612
+ }).readonly().optional(),
10613
+ "maxGoalRounds": number().readonly(),
10614
+ "id": intersection(string(), unknown()).readonly(),
10615
+ "revision": number().readonly()
10616
+ }).readonly(),
10617
+ "roundsStarted": number().readonly(),
10618
+ "createdAt": number().readonly(),
10619
+ "updatedAt": number().readonly()
10620
+ })]).optional()
10573
10621
  }), record(string(), union([
10574
10622
  literal(null),
10575
10623
  string(),
@@ -10770,27 +10818,22 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10770
10818
  "seq": intersection(number(), unknown())
10771
10819
  })
10772
10820
  ]).optional(),
10773
- "goal": union([literal(null), object({
10774
- "goal": object({
10775
- "objective": string().readonly(),
10776
- "phase": union([
10777
- literal("active"),
10778
- literal("paused"),
10779
- literal("blocked"),
10780
- literal("complete")
10781
- ]).readonly(),
10782
- "blockedReason": object({
10783
- "code": string().readonly(),
10784
- "message": string().readonly()
10785
- }).readonly().optional(),
10786
- "maxGoalRounds": number().readonly(),
10787
- "id": intersection(string(), unknown()).readonly(),
10788
- "revision": number().readonly()
10789
- }).readonly(),
10790
- "roundsStarted": number().readonly(),
10791
- "createdAt": number().readonly(),
10792
- "updatedAt": number().readonly()
10793
- })]).optional(),
10821
+ "tokenUsage": object({
10822
+ "uncachedInputTokens": number(),
10823
+ "outputTokens": number(),
10824
+ "cacheReadTokens": number(),
10825
+ "cacheWriteTokens": number()
10826
+ }).optional(),
10827
+ "contextPressure": object({
10828
+ "pressureTokens": number().optional(),
10829
+ "projectedTokens": number().optional(),
10830
+ "contextWindow": number().optional()
10831
+ }).optional(),
10832
+ "contextBreakdown": object({
10833
+ "systemTokens": number(),
10834
+ "toolsTokens": number(),
10835
+ "messageTokens": number()
10836
+ }).optional(),
10794
10837
  "userQuestions": object({
10795
10838
  "active": array(object({
10796
10839
  "callId": intersection(string(), unknown()).readonly(),
@@ -10820,7 +10863,28 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10820
10863
  "custom": string().optional()
10821
10864
  })).readonly()
10822
10865
  })).readonly()
10823
- }).optional()
10866
+ }).optional(),
10867
+ "goal": union([literal(null), object({
10868
+ "goal": object({
10869
+ "objective": string().readonly(),
10870
+ "phase": union([
10871
+ literal("active"),
10872
+ literal("paused"),
10873
+ literal("blocked"),
10874
+ literal("complete")
10875
+ ]).readonly(),
10876
+ "blockedReason": object({
10877
+ "code": string().readonly(),
10878
+ "message": string().readonly()
10879
+ }).readonly().optional(),
10880
+ "maxGoalRounds": number().readonly(),
10881
+ "id": intersection(string(), unknown()).readonly(),
10882
+ "revision": number().readonly()
10883
+ }).readonly(),
10884
+ "roundsStarted": number().readonly(),
10885
+ "createdAt": number().readonly(),
10886
+ "updatedAt": number().readonly()
10887
+ })]).optional()
10824
10888
  }), record(string(), union([
10825
10889
  literal(null),
10826
10890
  string(),
@@ -11044,27 +11108,22 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11044
11108
  "seq": intersection(number(), unknown())
11045
11109
  })
11046
11110
  ]).optional(),
11047
- "goal": union([literal(null), object({
11048
- "goal": object({
11049
- "objective": string().readonly(),
11050
- "phase": union([
11051
- literal("active"),
11052
- literal("paused"),
11053
- literal("blocked"),
11054
- literal("complete")
11055
- ]).readonly(),
11056
- "blockedReason": object({
11057
- "code": string().readonly(),
11058
- "message": string().readonly()
11059
- }).readonly().optional(),
11060
- "maxGoalRounds": number().readonly(),
11061
- "id": intersection(string(), unknown()).readonly(),
11062
- "revision": number().readonly()
11063
- }).readonly(),
11064
- "roundsStarted": number().readonly(),
11065
- "createdAt": number().readonly(),
11066
- "updatedAt": number().readonly()
11067
- })]).optional(),
11111
+ "tokenUsage": object({
11112
+ "uncachedInputTokens": number(),
11113
+ "outputTokens": number(),
11114
+ "cacheReadTokens": number(),
11115
+ "cacheWriteTokens": number()
11116
+ }).optional(),
11117
+ "contextPressure": object({
11118
+ "pressureTokens": number().optional(),
11119
+ "projectedTokens": number().optional(),
11120
+ "contextWindow": number().optional()
11121
+ }).optional(),
11122
+ "contextBreakdown": object({
11123
+ "systemTokens": number(),
11124
+ "toolsTokens": number(),
11125
+ "messageTokens": number()
11126
+ }).optional(),
11068
11127
  "userQuestions": object({
11069
11128
  "active": array(object({
11070
11129
  "callId": intersection(string(), unknown()).readonly(),
@@ -11094,7 +11153,28 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11094
11153
  "custom": string().optional()
11095
11154
  })).readonly()
11096
11155
  })).readonly()
11097
- }).optional()
11156
+ }).optional(),
11157
+ "goal": union([literal(null), object({
11158
+ "goal": object({
11159
+ "objective": string().readonly(),
11160
+ "phase": union([
11161
+ literal("active"),
11162
+ literal("paused"),
11163
+ literal("blocked"),
11164
+ literal("complete")
11165
+ ]).readonly(),
11166
+ "blockedReason": object({
11167
+ "code": string().readonly(),
11168
+ "message": string().readonly()
11169
+ }).readonly().optional(),
11170
+ "maxGoalRounds": number().readonly(),
11171
+ "id": intersection(string(), unknown()).readonly(),
11172
+ "revision": number().readonly()
11173
+ }).readonly(),
11174
+ "roundsStarted": number().readonly(),
11175
+ "createdAt": number().readonly(),
11176
+ "updatedAt": number().readonly()
11177
+ })]).optional()
11098
11178
  }), record(string(), union([
11099
11179
  literal(null),
11100
11180
  string(),
@@ -11273,7 +11353,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11273
11353
  },
11274
11354
  sourceLocation: {
11275
11355
  "file": "packages/api/session-controller/src/index.ts",
11276
- "line": 437,
11356
+ "line": 444,
11277
11357
  "column": 3
11278
11358
  }
11279
11359
  },
@@ -11300,7 +11380,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11300
11380
  },
11301
11381
  sourceLocation: {
11302
11382
  "file": "packages/api/session-controller/src/index.ts",
11303
- "line": 457,
11383
+ "line": 464,
11304
11384
  "column": 3
11305
11385
  }
11306
11386
  },
@@ -11318,7 +11398,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11318
11398
  },
11319
11399
  sourceLocation: {
11320
11400
  "file": "packages/api/session-controller/src/index.ts",
11321
- "line": 319,
11401
+ "line": 326,
11322
11402
  "column": 3
11323
11403
  }
11324
11404
  },
@@ -11338,7 +11418,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11338
11418
  },
11339
11419
  sourceLocation: {
11340
11420
  "file": "packages/api/session-controller/src/index.ts",
11341
- "line": 520,
11421
+ "line": 527,
11342
11422
  "column": 3
11343
11423
  }
11344
11424
  },
@@ -11365,7 +11445,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11365
11445
  },
11366
11446
  sourceLocation: {
11367
11447
  "file": "packages/api/session-controller/src/index.ts",
11368
- "line": 273,
11448
+ "line": 280,
11369
11449
  "column": 3
11370
11450
  }
11371
11451
  },
@@ -11394,7 +11474,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11394
11474
  },
11395
11475
  sourceLocation: {
11396
11476
  "file": "packages/api/session-controller/src/index.ts",
11397
- "line": 480,
11477
+ "line": 487,
11398
11478
  "column": 3
11399
11479
  }
11400
11480
  },
@@ -11421,7 +11501,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11421
11501
  },
11422
11502
  sourceLocation: {
11423
11503
  "file": "packages/api/session-controller/src/index.ts",
11424
- "line": 415,
11504
+ "line": 422,
11425
11505
  "column": 3
11426
11506
  }
11427
11507
  },
@@ -11439,7 +11519,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11439
11519
  },
11440
11520
  sourceLocation: {
11441
11521
  "file": "packages/api/session-controller/src/index.ts",
11442
- "line": 292,
11522
+ "line": 299,
11443
11523
  "column": 9
11444
11524
  }
11445
11525
  },
@@ -11467,7 +11547,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11467
11547
  },
11468
11548
  sourceLocation: {
11469
11549
  "file": "packages/api/session-controller/src/index.ts",
11470
- "line": 252,
11550
+ "line": 259,
11471
11551
  "column": 9
11472
11552
  }
11473
11553
  },
@@ -11485,7 +11565,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11485
11565
  },
11486
11566
  sourceLocation: {
11487
11567
  "file": "packages/api/session-controller/src/index.ts",
11488
- "line": 310,
11568
+ "line": 317,
11489
11569
  "column": 3
11490
11570
  }
11491
11571
  },
@@ -11513,7 +11593,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11513
11593
  },
11514
11594
  sourceLocation: {
11515
11595
  "file": "packages/api/session-controller/src/index.ts",
11516
- "line": 340,
11596
+ "line": 347,
11517
11597
  "column": 9
11518
11598
  }
11519
11599
  },
@@ -11541,7 +11621,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11541
11621
  },
11542
11622
  sourceLocation: {
11543
11623
  "file": "packages/api/session-controller/src/index.ts",
11544
- "line": 468,
11624
+ "line": 475,
11545
11625
  "column": 3
11546
11626
  }
11547
11627
  },
@@ -11569,7 +11649,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11569
11649
  },
11570
11650
  sourceLocation: {
11571
11651
  "file": "packages/api/session-controller/src/index.ts",
11572
- "line": 491,
11652
+ "line": 498,
11573
11653
  "column": 9
11574
11654
  }
11575
11655
  },
@@ -11597,7 +11677,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11597
11677
  },
11598
11678
  sourceLocation: {
11599
11679
  "file": "packages/api/session-controller/src/index.ts",
11600
- "line": 426,
11680
+ "line": 433,
11601
11681
  "column": 3
11602
11682
  }
11603
11683
  },
@@ -11624,7 +11704,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11624
11704
  },
11625
11705
  sourceLocation: {
11626
11706
  "file": "packages/api/session-controller/src/index.ts",
11627
- "line": 403,
11707
+ "line": 410,
11628
11708
  "column": 3
11629
11709
  }
11630
11710
  },
@@ -11652,7 +11732,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11652
11732
  },
11653
11733
  sourceLocation: {
11654
11734
  "file": "packages/api/session-controller/src/index.ts",
11655
- "line": 263,
11735
+ "line": 270,
11656
11736
  "column": 3
11657
11737
  }
11658
11738
  },
@@ -11679,7 +11759,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11679
11759
  },
11680
11760
  sourceLocation: {
11681
11761
  "file": "packages/api/session-controller/src/index.ts",
11682
- "line": 283,
11762
+ "line": 290,
11683
11763
  "column": 3
11684
11764
  }
11685
11765
  },
@@ -11706,7 +11786,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11706
11786
  },
11707
11787
  sourceLocation: {
11708
11788
  "file": "packages/api/session-controller/src/index.ts",
11709
- "line": 447,
11789
+ "line": 454,
11710
11790
  "column": 3
11711
11791
  }
11712
11792
  },
@@ -11734,7 +11814,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11734
11814
  },
11735
11815
  sourceLocation: {
11736
11816
  "file": "packages/api/session-controller/src/index.ts",
11737
- "line": 370,
11817
+ "line": 377,
11738
11818
  "column": 9
11739
11819
  }
11740
11820
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-api-remotes",
3
3
  "description": "Remote BFF assembly for application-selected Host capabilities",
4
- "version": "0.2.0-rc.2",
4
+ "version": "0.2.1-alpha.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -46,52 +46,51 @@
46
46
  "lib/types/**/*.d.ts"
47
47
  ],
48
48
  "dependencies": {
49
- "@deepseek-ai/dsh-deque": "0.2.0-rc.2",
50
- "@deepseek-ai/dsh-session": "0.2.0-rc.2",
51
- "@deepseek-ai/dsh-util-values": "0.2.0-rc.2"
49
+ "@deepseek-ai/dsh-deque": "0.2.1-alpha.1",
50
+ "@deepseek-ai/dsh-util-values": "0.2.1-alpha.1"
52
51
  },
53
52
  "peerDependencies": {
54
- "@deepseek-ai/cordis": "~4.0.4",
55
- "@deepseek-ai/dsh-scope": "0.2.0-rc.2"
53
+ "@deepseek-ai/cordis": "~4.0.5-alpha.1",
54
+ "@deepseek-ai/dsh-scope": "0.2.1-alpha.1"
56
55
  },
57
56
  "devDependencies": {
58
57
  "zod": "^4.4.3",
59
- "@deepseek-ai/dsh-agent": "0.2.0-rc.2",
60
- "@deepseek-ai/dsh-agent-preset-registry": "0.2.0-rc.2",
61
- "@deepseek-ai/dsh-api-gateway": "0.2.0-rc.2",
62
- "@deepseek-ai/dsh-api-job-controller": "0.2.0-rc.2",
63
- "@deepseek-ai/dsh-api-session-controller": "0.2.0-rc.2",
64
- "@deepseek-ai/dsh-api-settings-controller": "0.2.0-rc.2",
65
- "@deepseek-ai/dsh-api-workspace-controller": "0.2.0-rc.2",
66
- "@deepseek-ai/dsh-api-workspace-files": "0.2.0-rc.2",
67
- "@deepseek-ai/dsh-client-connection": "0.2.0-rc.2",
68
- "@deepseek-ai/dsh-client-file-upload": "0.2.0-rc.2",
69
- "@deepseek-ai/dsh-commands": "0.2.0-rc.2",
70
- "@deepseek-ai/dsh-cordis-host-runner": "0.2.0-rc.2",
71
- "@deepseek-ai/dsh-credentials": "0.2.0-rc.2",
72
- "@deepseek-ai/dsh-file-reference": "0.2.0-rc.2",
73
- "@deepseek-ai/dsh-goal": "0.2.0-rc.2",
74
- "@deepseek-ai/dsh-host-plugin-inventory": "0.2.0-rc.2",
75
- "@deepseek-ai/dsh-llm": "0.2.0-rc.2",
76
- "@deepseek-ai/dsh-message-feedback": "0.2.0-rc.2",
77
- "@deepseek-ai/dsh-permission-presets": "0.2.0-rc.2",
78
- "@deepseek-ai/dsh-schedule": "0.2.0-rc.2",
79
- "@deepseek-ai/dsh-scope": "0.2.0-rc.2",
80
- "@deepseek-ai/dsh-session-reference": "0.2.0-rc.2",
81
- "@deepseek-ai/dsh-settings": "0.2.0-rc.2",
82
- "@deepseek-ai/dsh-subagent": "0.2.0-rc.2",
83
- "@deepseek-ai/dsh-typert-protocol": "0.2.0-rc.2",
84
- "@deepseek-ai/dsh-user-questions": "0.2.0-rc.2",
85
- "@deepseek-ai/cordis": "~4.0.4",
86
- "@deepseek-ai/dsh-command-feedback": "0.2.0-rc.2",
87
- "@deepseek-ai/dsh-api-terminal-controller": "0.2.0-rc.2",
88
- "@deepseek-ai/dsh-plugin-manager": "0.2.0-rc.2",
89
- "@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.0-rc.2",
90
- "@deepseek-ai/dsh-office-to-pdf": "0.2.0-rc.2",
91
- "@deepseek-ai/dsh-api-account-controller": "0.2.0-rc.2",
92
- "@deepseek-ai/dsh-deepseek-account": "0.2.0-rc.2",
93
- "@deepseek-ai/dsh-client-product-analytics": "0.2.0-rc.2",
94
- "@deepseek-ai/dsh-user-approval": "0.2.0-rc.2"
58
+ "@deepseek-ai/dsh-agent": "0.2.1-alpha.1",
59
+ "@deepseek-ai/dsh-agent-preset-registry": "0.2.1-alpha.1",
60
+ "@deepseek-ai/dsh-api-job-controller": "0.2.1-alpha.1",
61
+ "@deepseek-ai/dsh-api-gateway": "0.2.1-alpha.1",
62
+ "@deepseek-ai/dsh-api-session-controller": "0.2.1-alpha.1",
63
+ "@deepseek-ai/dsh-api-settings-controller": "0.2.1-alpha.1",
64
+ "@deepseek-ai/dsh-api-workspace-controller": "0.2.1-alpha.1",
65
+ "@deepseek-ai/dsh-api-workspace-files": "0.2.1-alpha.1",
66
+ "@deepseek-ai/dsh-client-connection": "0.2.1-alpha.1",
67
+ "@deepseek-ai/dsh-client-file-upload": "0.2.1-alpha.1",
68
+ "@deepseek-ai/dsh-commands": "0.2.1-alpha.1",
69
+ "@deepseek-ai/dsh-cordis-host-runner": "0.2.1-alpha.1",
70
+ "@deepseek-ai/dsh-file-reference": "0.2.1-alpha.1",
71
+ "@deepseek-ai/dsh-goal": "0.2.1-alpha.1",
72
+ "@deepseek-ai/dsh-host-plugin-inventory": "0.2.1-alpha.1",
73
+ "@deepseek-ai/dsh-llm": "0.2.1-alpha.1",
74
+ "@deepseek-ai/dsh-message-feedback": "0.2.1-alpha.1",
75
+ "@deepseek-ai/dsh-permission-presets": "0.2.1-alpha.1",
76
+ "@deepseek-ai/dsh-schedule": "0.2.1-alpha.1",
77
+ "@deepseek-ai/dsh-scope": "0.2.1-alpha.1",
78
+ "@deepseek-ai/dsh-session-reference": "0.2.1-alpha.1",
79
+ "@deepseek-ai/dsh-settings": "0.2.1-alpha.1",
80
+ "@deepseek-ai/dsh-subagent": "0.2.1-alpha.1",
81
+ "@deepseek-ai/dsh-typert-protocol": "0.2.1-alpha.1",
82
+ "@deepseek-ai/dsh-credentials": "0.2.1-alpha.1",
83
+ "@deepseek-ai/dsh-user-approval": "0.2.1-alpha.1",
84
+ "@deepseek-ai/dsh-user-questions": "0.2.1-alpha.1",
85
+ "@deepseek-ai/cordis": "~4.0.5-alpha.1",
86
+ "@deepseek-ai/dsh-command-feedback": "0.2.1-alpha.1",
87
+ "@deepseek-ai/dsh-api-terminal-controller": "0.2.1-alpha.1",
88
+ "@deepseek-ai/dsh-plugin-manager": "0.2.1-alpha.1",
89
+ "@deepseek-ai/dsh-client-ui-plugin-manager": "0.2.1-alpha.1",
90
+ "@deepseek-ai/dsh-office-to-pdf": "0.2.1-alpha.1",
91
+ "@deepseek-ai/dsh-api-account-controller": "0.2.1-alpha.1",
92
+ "@deepseek-ai/dsh-deepseek-account": "0.2.1-alpha.1",
93
+ "@deepseek-ai/dsh-client-product-analytics": "0.2.1-alpha.1"
95
94
  },
96
95
  "scripts": {
97
96
  "bundle": "tsdown",