@deepseek-ai/dsh-api-remotes 0.1.1-rc.2 → 0.1.2-alpha.3

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/lib/client.js CHANGED
@@ -1455,6 +1455,20 @@ window.__ModuleLoader__.load({
1455
1455
  return payload;
1456
1456
  };
1457
1457
  });
1458
+ const $ZodVoid = /*@__PURE__*/ $constructor("$ZodVoid", (inst, def) => {
1459
+ $ZodType.init(inst, def);
1460
+ inst._zod.parse = (payload, _ctx) => {
1461
+ const input = payload.value;
1462
+ if (typeof input === "undefined") return payload;
1463
+ payload.issues.push({
1464
+ expected: "void",
1465
+ code: "invalid_type",
1466
+ input,
1467
+ inst
1468
+ });
1469
+ return payload;
1470
+ };
1471
+ });
1458
1472
  function handleArrayResult(result, final, index) {
1459
1473
  if (result.issues.length) final.issues.push(...prefixIssues(index, result.issues));
1460
1474
  final.value[index] = result.value;
@@ -2638,6 +2652,13 @@ window.__ModuleLoader__.load({
2638
2652
  });
2639
2653
  }
2640
2654
  // @__NO_SIDE_EFFECTS__
2655
+ function _void$1(Class, params) {
2656
+ return new Class({
2657
+ type: "void",
2658
+ ...normalizeParams(params)
2659
+ });
2660
+ }
2661
+ // @__NO_SIDE_EFFECTS__
2641
2662
  function _lt(value, params) {
2642
2663
  return new $ZodCheckLessThan({
2643
2664
  check: "less_than",
@@ -3178,6 +3199,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
3178
3199
  const undefinedProcessor = (_schema, ctx, _json, _params) => {
3179
3200
  if (ctx.unrepresentable === "throw") throw new Error("Undefined cannot be represented in JSON Schema");
3180
3201
  };
3202
+ const voidProcessor = (_schema, ctx, _json, _params) => {
3203
+ if (ctx.unrepresentable === "throw") throw new Error("Void cannot be represented in JSON Schema");
3204
+ };
3181
3205
  const neverProcessor = (_schema, _ctx, json, _params) => {
3182
3206
  json.not = {};
3183
3207
  };
@@ -3898,6 +3922,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
3898
3922
  function never(params) {
3899
3923
  return /* @__PURE__ */ _never(ZodNever, params);
3900
3924
  }
3925
+ const ZodVoid = /*@__PURE__*/ $constructor("ZodVoid", (inst, def) => {
3926
+ $ZodVoid.init(inst, def);
3927
+ ZodType.init(inst, def);
3928
+ inst._zod.processJSONSchema = (ctx, json, params) => voidProcessor(inst, ctx, json, params);
3929
+ });
3930
+ function _void(params) {
3931
+ return /* @__PURE__ */ _void$1(ZodVoid, params);
3932
+ }
3901
3933
  const ZodArray = /*@__PURE__*/ $constructor("ZodArray", (inst, def) => {
3902
3934
  $ZodArray.init(inst, def);
3903
3935
  ZodType.init(inst, def);
@@ -4273,6 +4305,208 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4273
4305
  return /* @__PURE__ */ _superRefine(fn, params);
4274
4306
  }
4275
4307
  //#endregion
4308
+ //#region ../../preset/agent-presets/lib/typert.remote-client.js
4309
+ const _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_0$schema = string();
4310
+ const _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_1$schema = string();
4311
+ const _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_2$schema = union([_undefined(), string()]);
4312
+ const _deepseek_ai_dsh_agent_presets_agentPresets_copy_result$schema = _void();
4313
+ const _deepseek_ai_dsh_agent_presets_agentPresets_deletePreset_parameter_0$schema = string();
4314
+ const _deepseek_ai_dsh_agent_presets_agentPresets_deletePreset_result$schema = _void();
4315
+ const _deepseek_ai_dsh_agent_presets_agentPresets_list_result$schema = object({
4316
+ "presets": array(object({
4317
+ "id": string().readonly(),
4318
+ "trust": union([literal("system"), literal("user")]).readonly(),
4319
+ "isDefault": boolean().readonly(),
4320
+ "name": string().readonly().optional(),
4321
+ "description": string().readonly().optional(),
4322
+ "broken": string().readonly().optional()
4323
+ })).readonly(),
4324
+ "authorable": boolean().readonly()
4325
+ });
4326
+ const _deepseek_ai_dsh_agent_presets_agentPresets_read_parameter_0$schema = string();
4327
+ const _deepseek_ai_dsh_agent_presets_agentPresets_read_result$schema = object({
4328
+ "agentPreset": string().readonly(),
4329
+ "trust": union([literal("system"), literal("user")]).readonly(),
4330
+ "content": string().readonly(),
4331
+ "name": string().readonly().optional(),
4332
+ "description": string().readonly().optional()
4333
+ });
4334
+ const _deepseek_ai_dsh_agent_presets_agentPresets_select_parameter_0$schema = intersection(string(), unknown());
4335
+ const _deepseek_ai_dsh_agent_presets_agentPresets_select_parameter_1$schema = string();
4336
+ const _deepseek_ai_dsh_agent_presets_agentPresets_select_result$schema = string();
4337
+ const TYPERT_REMOTE$11 = {
4338
+ package: "@deepseek-ai/dsh-agent-presets",
4339
+ descriptors: [
4340
+ {
4341
+ id: "@deepseek-ai/dsh-agent-presets#agentPresets/copy",
4342
+ service: "agentPresets",
4343
+ namespace: "agentPresets",
4344
+ method: "copy",
4345
+ implementation: "remoteExportCopy",
4346
+ invocation: { kind: "direct" },
4347
+ parameters: [
4348
+ {
4349
+ name: "from",
4350
+ wire: "from",
4351
+ source: "json",
4352
+ codec: {
4353
+ mode: "strict",
4354
+ typeSymbol: "@deepseek-ai/dsh-agent-presets#agentPresets/copy:from",
4355
+ schema: _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_0$schema
4356
+ }
4357
+ },
4358
+ {
4359
+ name: "id",
4360
+ wire: "id",
4361
+ source: "json",
4362
+ codec: {
4363
+ mode: "strict",
4364
+ typeSymbol: "@deepseek-ai/dsh-agent-presets#agentPresets/copy:id",
4365
+ schema: _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_1$schema
4366
+ }
4367
+ },
4368
+ {
4369
+ name: "name",
4370
+ wire: "name",
4371
+ source: "json",
4372
+ acceptsUndefined: true,
4373
+ codec: {
4374
+ mode: "strict",
4375
+ typeSymbol: "@deepseek-ai/dsh-agent-presets#agentPresets/copy:name",
4376
+ schema: _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_2$schema
4377
+ }
4378
+ }
4379
+ ],
4380
+ result: {
4381
+ mode: "strict",
4382
+ typeSymbol: "@deepseek-ai/dsh-agent-presets#agentPresets/copy:result",
4383
+ schema: _deepseek_ai_dsh_agent_presets_agentPresets_copy_result$schema
4384
+ },
4385
+ sourceLocation: {
4386
+ "file": "packages/preset/agent-presets/src/index.ts",
4387
+ "line": 565,
4388
+ "column": 9
4389
+ }
4390
+ },
4391
+ {
4392
+ id: "@deepseek-ai/dsh-agent-presets#agentPresets/deletePreset",
4393
+ service: "agentPresets",
4394
+ namespace: "agentPresets",
4395
+ method: "deletePreset",
4396
+ implementation: "remoteExportDelete",
4397
+ invocation: { kind: "direct" },
4398
+ parameters: [{
4399
+ name: "id",
4400
+ wire: "id",
4401
+ source: "json",
4402
+ codec: {
4403
+ mode: "strict",
4404
+ typeSymbol: "@deepseek-ai/dsh-agent-presets#agentPresets/deletePreset:id",
4405
+ schema: _deepseek_ai_dsh_agent_presets_agentPresets_deletePreset_parameter_0$schema
4406
+ }
4407
+ }],
4408
+ result: {
4409
+ mode: "strict",
4410
+ typeSymbol: "@deepseek-ai/dsh-agent-presets#agentPresets/deletePreset:result",
4411
+ schema: _deepseek_ai_dsh_agent_presets_agentPresets_deletePreset_result$schema
4412
+ },
4413
+ sourceLocation: {
4414
+ "file": "packages/preset/agent-presets/src/index.ts",
4415
+ "line": 603,
4416
+ "column": 9
4417
+ }
4418
+ },
4419
+ {
4420
+ id: "@deepseek-ai/dsh-agent-presets#agentPresets/list",
4421
+ service: "agentPresets",
4422
+ namespace: "agentPresets",
4423
+ method: "list",
4424
+ implementation: "remoteExportList",
4425
+ invocation: { kind: "direct" },
4426
+ parameters: [],
4427
+ result: {
4428
+ mode: "strict",
4429
+ typeSymbol: "@deepseek-ai/dsh-agent-presets/types#AgentPresetRoster",
4430
+ schema: _deepseek_ai_dsh_agent_presets_agentPresets_list_result$schema
4431
+ },
4432
+ sourceLocation: {
4433
+ "file": "packages/preset/agent-presets/src/index.ts",
4434
+ "line": 261,
4435
+ "column": 9
4436
+ }
4437
+ },
4438
+ {
4439
+ id: "@deepseek-ai/dsh-agent-presets#agentPresets/read",
4440
+ service: "agentPresets",
4441
+ namespace: "agentPresets",
4442
+ method: "read",
4443
+ implementation: "readDocument",
4444
+ invocation: { kind: "direct" },
4445
+ parameters: [{
4446
+ name: "agentPreset",
4447
+ wire: "agentPreset",
4448
+ source: "json",
4449
+ codec: {
4450
+ mode: "strict",
4451
+ typeSymbol: "@deepseek-ai/dsh-agent-presets#agentPresets/read:agentPreset",
4452
+ schema: _deepseek_ai_dsh_agent_presets_agentPresets_read_parameter_0$schema
4453
+ }
4454
+ }],
4455
+ result: {
4456
+ mode: "strict",
4457
+ typeSymbol: "@deepseek-ai/dsh-agent-presets/types#AgentPresetDocument",
4458
+ schema: _deepseek_ai_dsh_agent_presets_agentPresets_read_result$schema
4459
+ },
4460
+ sourceLocation: {
4461
+ "file": "packages/preset/agent-presets/src/index.ts",
4462
+ "line": 513,
4463
+ "column": 9
4464
+ }
4465
+ },
4466
+ {
4467
+ id: "@deepseek-ai/dsh-agent-presets#agentPresets/select",
4468
+ service: "agentPresets",
4469
+ namespace: "agentPresets",
4470
+ method: "select",
4471
+ invocation: { kind: "direct" },
4472
+ scope: {
4473
+ context: "agent",
4474
+ wire: "agentId"
4475
+ },
4476
+ parameters: [{
4477
+ name: "agent",
4478
+ wire: "agentId",
4479
+ source: "lookup",
4480
+ lookup: "agent",
4481
+ codec: {
4482
+ mode: "strict",
4483
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
4484
+ schema: _deepseek_ai_dsh_agent_presets_agentPresets_select_parameter_0$schema
4485
+ }
4486
+ }, {
4487
+ name: "agentPreset",
4488
+ wire: "agentPreset",
4489
+ source: "json",
4490
+ codec: {
4491
+ mode: "strict",
4492
+ typeSymbol: "@deepseek-ai/dsh-agent-presets#agentPresets/select:agentPreset",
4493
+ schema: _deepseek_ai_dsh_agent_presets_agentPresets_select_parameter_1$schema
4494
+ }
4495
+ }],
4496
+ result: {
4497
+ mode: "strict",
4498
+ typeSymbol: "@deepseek-ai/dsh-agent-presets#agentPresets/select:result",
4499
+ schema: _deepseek_ai_dsh_agent_presets_agentPresets_select_result$schema
4500
+ },
4501
+ sourceLocation: {
4502
+ "file": "packages/preset/agent-presets/src/index.ts",
4503
+ "line": 695,
4504
+ "column": 9
4505
+ }
4506
+ }
4507
+ ]
4508
+ };
4509
+ //#endregion
4276
4510
  //#region ../../interaction/commands/lib/typert.remote-client.js
4277
4511
  const _deepseek_ai_dsh_commands_commands_execute_parameter_0$schema = intersection(string(), unknown());
4278
4512
  const _deepseek_ai_dsh_commands_commands_execute_parameter_1$schema = string();
@@ -4306,7 +4540,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4306
4540
  "images": boolean().readonly().optional()
4307
4541
  }).readonly().optional()
4308
4542
  }));
4309
- const TYPERT_REMOTE$6 = {
4543
+ const TYPERT_REMOTE$10 = {
4310
4544
  package: "@deepseek-ai/dsh-commands",
4311
4545
  descriptors: [{
4312
4546
  id: "@deepseek-ai/dsh-commands#commands/execute",
@@ -4359,7 +4593,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4359
4593
  },
4360
4594
  sourceLocation: {
4361
4595
  "file": "packages/interaction/commands/src/index.ts",
4362
- "line": 329,
4596
+ "line": 330,
4363
4597
  "column": 9
4364
4598
  }
4365
4599
  }, {
@@ -4390,321 +4624,778 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4390
4624
  },
4391
4625
  sourceLocation: {
4392
4626
  "file": "packages/interaction/commands/src/index.ts",
4393
- "line": 285,
4627
+ "line": 286,
4394
4628
  "column": 3
4395
4629
  }
4396
4630
  }]
4397
4631
  };
4398
4632
  //#endregion
4399
- //#region ../../goal/goal/lib/typert.remote-client.js
4400
- const _deepseek_ai_dsh_goal_goals_clear_parameter_0$schema = intersection(string(), unknown());
4401
- const _deepseek_ai_dsh_goal_goals_clear_parameter_1$schema = object({
4402
- "id": intersection(string(), unknown()).readonly(),
4403
- "revision": number().readonly()
4404
- });
4405
- const _deepseek_ai_dsh_goal_goals_clear_result$schema = object({
4406
- "id": intersection(string(), unknown()).readonly(),
4407
- "revision": number().readonly()
4408
- });
4409
- const _deepseek_ai_dsh_goal_goals_complete_parameter_0$schema = intersection(string(), unknown());
4410
- const _deepseek_ai_dsh_goal_goals_complete_parameter_1$schema = object({
4411
- "id": intersection(string(), unknown()).readonly(),
4412
- "revision": number().readonly()
4633
+ //#region ../settings-controller/lib/typert.remote-client.js
4634
+ const JsonValueRemoteCodec$schema$2 = union([
4635
+ literal(null),
4636
+ string(),
4637
+ number(),
4638
+ literal(false),
4639
+ literal(true),
4640
+ array(lazy(() => JsonValueRemoteCodec$schema$2)),
4641
+ record(string(), lazy(() => JsonValueRemoteCodec$schema$2))
4642
+ ]);
4643
+ const JsonValueRemoteCodec$schema2$2 = union([
4644
+ literal(null),
4645
+ string(),
4646
+ number(),
4647
+ literal(false),
4648
+ literal(true),
4649
+ array(lazy(() => JsonValueRemoteCodec$schema2$2)),
4650
+ record(string(), lazy(() => JsonValueRemoteCodec$schema2$2))
4651
+ ]);
4652
+ const JsonValueRemoteCodec$schema3$2 = union([
4653
+ literal(null),
4654
+ string(),
4655
+ number(),
4656
+ literal(false),
4657
+ literal(true),
4658
+ array(lazy(() => JsonValueRemoteCodec$schema3$2)),
4659
+ record(string(), lazy(() => JsonValueRemoteCodec$schema3$2))
4660
+ ]);
4661
+ const JsonValueRemoteCodec$schema4$2 = union([
4662
+ literal(null),
4663
+ string(),
4664
+ number(),
4665
+ literal(false),
4666
+ literal(true),
4667
+ array(lazy(() => JsonValueRemoteCodec$schema4$2)),
4668
+ record(string(), lazy(() => JsonValueRemoteCodec$schema4$2))
4669
+ ]);
4670
+ const JsonValueRemoteCodec$schema5 = union([
4671
+ literal(null),
4672
+ string(),
4673
+ number(),
4674
+ literal(false),
4675
+ literal(true),
4676
+ array(lazy(() => JsonValueRemoteCodec$schema5)),
4677
+ record(string(), lazy(() => JsonValueRemoteCodec$schema5))
4678
+ ]);
4679
+ const JsonValueRemoteCodec$schema6 = union([
4680
+ literal(null),
4681
+ string(),
4682
+ number(),
4683
+ literal(false),
4684
+ literal(true),
4685
+ array(lazy(() => JsonValueRemoteCodec$schema6)),
4686
+ record(string(), lazy(() => JsonValueRemoteCodec$schema6))
4687
+ ]);
4688
+ const JsonValueRemoteCodec$schema7 = union([
4689
+ literal(null),
4690
+ string(),
4691
+ number(),
4692
+ literal(false),
4693
+ literal(true),
4694
+ array(lazy(() => JsonValueRemoteCodec$schema7)),
4695
+ record(string(), lazy(() => JsonValueRemoteCodec$schema7))
4696
+ ]);
4697
+ const _deepseek_ai_dsh_api_settings_controller_credentials_describe_parameter_0$schema = array(string());
4698
+ const _deepseek_ai_dsh_api_settings_controller_credentials_describe_result$schema = record(string(), object({
4699
+ "configured": boolean(),
4700
+ "source": string().optional(),
4701
+ "writable": boolean()
4702
+ }));
4703
+ const _deepseek_ai_dsh_api_settings_controller_credentials_set_parameter_0$schema = string();
4704
+ const _deepseek_ai_dsh_api_settings_controller_credentials_set_parameter_1$schema = string();
4705
+ const _deepseek_ai_dsh_api_settings_controller_credentials_set_result$schema = _void();
4706
+ const _deepseek_ai_dsh_api_settings_controller_credentials_unset_parameter_0$schema = string();
4707
+ const _deepseek_ai_dsh_api_settings_controller_credentials_unset_result$schema = _void();
4708
+ const _deepseek_ai_dsh_api_settings_controller_settings_canOpenAgentPresetDirectory_result$schema = boolean();
4709
+ const _deepseek_ai_dsh_api_settings_controller_settings_describe_result$schema = object({
4710
+ "writable": boolean(),
4711
+ "hasDocument": boolean(),
4712
+ "namespaces": array(object({
4713
+ "ns": string(),
4714
+ "schema": union([
4715
+ literal(null),
4716
+ string(),
4717
+ number(),
4718
+ literal(false),
4719
+ literal(true),
4720
+ array(lazy(() => JsonValueRemoteCodec$schema$2)),
4721
+ record(string(), lazy(() => JsonValueRemoteCodec$schema$2))
4722
+ ]),
4723
+ "value": union([
4724
+ literal(null),
4725
+ string(),
4726
+ number(),
4727
+ literal(false),
4728
+ literal(true),
4729
+ array(lazy(() => JsonValueRemoteCodec$schema$2)),
4730
+ record(string(), lazy(() => JsonValueRemoteCodec$schema$2))
4731
+ ]),
4732
+ "base": union([
4733
+ literal(null),
4734
+ string(),
4735
+ number(),
4736
+ literal(false),
4737
+ literal(true),
4738
+ array(lazy(() => JsonValueRemoteCodec$schema$2)),
4739
+ record(string(), lazy(() => JsonValueRemoteCodec$schema$2))
4740
+ ]).optional(),
4741
+ "user": union([
4742
+ literal(null),
4743
+ string(),
4744
+ number(),
4745
+ literal(false),
4746
+ literal(true),
4747
+ array(lazy(() => JsonValueRemoteCodec$schema$2)),
4748
+ record(string(), lazy(() => JsonValueRemoteCodec$schema$2))
4749
+ ]).optional(),
4750
+ "applies": union([literal("live"), literal("restart")]),
4751
+ "secrets": array(object({
4752
+ "path": array(string()),
4753
+ "set": boolean()
4754
+ })),
4755
+ "revision": number()
4756
+ }))
4413
4757
  });
4414
- const _deepseek_ai_dsh_goal_goals_complete_result$schema = object({
4415
- "roundsStarted": number().readonly(),
4416
- "createdAt": number().readonly(),
4417
- "updatedAt": number().readonly(),
4418
- "activation": union([literal("armed"), literal("disarmed")]).readonly(),
4419
- "objective": string().readonly(),
4420
- "phase": union([
4421
- literal("active"),
4422
- literal("paused"),
4423
- literal("blocked"),
4424
- literal("complete")
4425
- ]).readonly(),
4426
- "blockedReason": object({
4427
- "code": string().readonly(),
4428
- "message": string().readonly()
4429
- }).readonly().optional(),
4430
- "maxGoalRounds": number().readonly(),
4431
- "id": intersection(string(), unknown()).readonly(),
4432
- "revision": number().readonly()
4758
+ const _deepseek_ai_dsh_api_settings_controller_settings_mutate_parameter_0$schema = string();
4759
+ const _deepseek_ai_dsh_api_settings_controller_settings_mutate_parameter_1$schema = array(union([object({
4760
+ "op": literal("set"),
4761
+ "path": array(string()),
4762
+ "value": union([
4763
+ literal(null),
4764
+ string(),
4765
+ number(),
4766
+ literal(false),
4767
+ literal(true),
4768
+ array(lazy(() => JsonValueRemoteCodec$schema6)),
4769
+ record(string(), lazy(() => JsonValueRemoteCodec$schema6))
4770
+ ])
4771
+ }), object({
4772
+ "op": literal("unset"),
4773
+ "path": array(string())
4774
+ })]));
4775
+ const _deepseek_ai_dsh_api_settings_controller_settings_mutate_parameter_2$schema = union([_undefined(), number()]);
4776
+ const _deepseek_ai_dsh_api_settings_controller_settings_mutate_result$schema = object({
4777
+ "ns": string(),
4778
+ "schema": union([
4779
+ literal(null),
4780
+ string(),
4781
+ number(),
4782
+ literal(false),
4783
+ literal(true),
4784
+ array(lazy(() => JsonValueRemoteCodec$schema7)),
4785
+ record(string(), lazy(() => JsonValueRemoteCodec$schema7))
4786
+ ]),
4787
+ "value": union([
4788
+ literal(null),
4789
+ string(),
4790
+ number(),
4791
+ literal(false),
4792
+ literal(true),
4793
+ array(lazy(() => JsonValueRemoteCodec$schema7)),
4794
+ record(string(), lazy(() => JsonValueRemoteCodec$schema7))
4795
+ ]),
4796
+ "base": union([
4797
+ literal(null),
4798
+ string(),
4799
+ number(),
4800
+ literal(false),
4801
+ literal(true),
4802
+ array(lazy(() => JsonValueRemoteCodec$schema7)),
4803
+ record(string(), lazy(() => JsonValueRemoteCodec$schema7))
4804
+ ]).optional(),
4805
+ "user": union([
4806
+ literal(null),
4807
+ string(),
4808
+ number(),
4809
+ literal(false),
4810
+ literal(true),
4811
+ array(lazy(() => JsonValueRemoteCodec$schema7)),
4812
+ record(string(), lazy(() => JsonValueRemoteCodec$schema7))
4813
+ ]).optional(),
4814
+ "applies": union([literal("live"), literal("restart")]),
4815
+ "secrets": array(object({
4816
+ "path": array(string()),
4817
+ "set": boolean()
4818
+ })),
4819
+ "revision": number()
4433
4820
  });
4434
- const _deepseek_ai_dsh_goal_goals_create_parameter_0$schema = intersection(string(), unknown());
4435
- const _deepseek_ai_dsh_goal_goals_create_parameter_1$schema = object({
4436
- "objective": string().readonly(),
4437
- "maxGoalRounds": number().readonly().optional()
4438
- });
4439
- const _deepseek_ai_dsh_goal_goals_create_result$schema = object({ "ref": object({
4440
- "id": intersection(string(), unknown()).readonly(),
4441
- "revision": number().readonly()
4442
- }).readonly() });
4443
- const _deepseek_ai_dsh_goal_goals_edit_parameter_0$schema = intersection(string(), unknown());
4444
- const _deepseek_ai_dsh_goal_goals_edit_parameter_1$schema = object({
4445
- "id": intersection(string(), unknown()).readonly(),
4446
- "revision": number().readonly()
4447
- });
4448
- const _deepseek_ai_dsh_goal_goals_edit_parameter_2$schema = object({
4449
- "objective": string().readonly().optional(),
4450
- "maxGoalRounds": number().readonly().optional()
4451
- });
4452
- const _deepseek_ai_dsh_goal_goals_edit_result$schema = object({
4453
- "roundsStarted": number().readonly(),
4454
- "createdAt": number().readonly(),
4455
- "updatedAt": number().readonly(),
4456
- "activation": union([literal("armed"), literal("disarmed")]).readonly(),
4457
- "objective": string().readonly(),
4458
- "phase": union([
4459
- literal("active"),
4460
- literal("paused"),
4461
- literal("blocked"),
4462
- literal("complete")
4463
- ]).readonly(),
4464
- "blockedReason": object({
4465
- "code": string().readonly(),
4466
- "message": string().readonly()
4467
- }).readonly().optional(),
4468
- "maxGoalRounds": number().readonly(),
4469
- "id": intersection(string(), unknown()).readonly(),
4470
- "revision": number().readonly()
4471
- });
4472
- const _deepseek_ai_dsh_goal_goals_pause_parameter_0$schema = intersection(string(), unknown());
4473
- const _deepseek_ai_dsh_goal_goals_pause_parameter_1$schema = object({
4474
- "id": intersection(string(), unknown()).readonly(),
4475
- "revision": number().readonly()
4476
- });
4477
- const _deepseek_ai_dsh_goal_goals_pause_result$schema = object({
4478
- "roundsStarted": number().readonly(),
4479
- "createdAt": number().readonly(),
4480
- "updatedAt": number().readonly(),
4481
- "activation": union([literal("armed"), literal("disarmed")]).readonly(),
4482
- "objective": string().readonly(),
4483
- "phase": union([
4484
- literal("active"),
4485
- literal("paused"),
4486
- literal("blocked"),
4487
- literal("complete")
4488
- ]).readonly(),
4489
- "blockedReason": object({
4490
- "code": string().readonly(),
4491
- "message": string().readonly()
4492
- }).readonly().optional(),
4493
- "maxGoalRounds": number().readonly(),
4494
- "id": intersection(string(), unknown()).readonly(),
4495
- "revision": number().readonly()
4496
- });
4497
- const _deepseek_ai_dsh_goal_goals_resume_parameter_0$schema = intersection(string(), unknown());
4498
- const _deepseek_ai_dsh_goal_goals_resume_parameter_1$schema = object({
4499
- "id": intersection(string(), unknown()).readonly(),
4500
- "revision": number().readonly()
4821
+ const _deepseek_ai_dsh_api_settings_controller_settings_openAgentPresetDirectory_parameter_0$schema = string();
4822
+ const _deepseek_ai_dsh_api_settings_controller_settings_openAgentPresetDirectory_result$schema = union([object({ "opened": literal(true).readonly() }), object({
4823
+ "opened": literal(false).readonly(),
4824
+ "path": string().readonly()
4825
+ })]);
4826
+ const _deepseek_ai_dsh_api_settings_controller_settings_openSettingsDocument_result$schema = object({ "opened": literal(true).readonly() });
4827
+ const _deepseek_ai_dsh_api_settings_controller_settings_replace_parameter_0$schema = string();
4828
+ const _deepseek_ai_dsh_api_settings_controller_settings_replace_parameter_1$schema = record(string(), union([
4829
+ literal(null),
4830
+ string(),
4831
+ number(),
4832
+ literal(false),
4833
+ literal(true),
4834
+ array(lazy(() => JsonValueRemoteCodec$schema4$2)),
4835
+ record(string(), lazy(() => JsonValueRemoteCodec$schema4$2))
4836
+ ]));
4837
+ const _deepseek_ai_dsh_api_settings_controller_settings_replace_parameter_2$schema = union([_undefined(), number()]);
4838
+ const _deepseek_ai_dsh_api_settings_controller_settings_replace_result$schema = object({
4839
+ "ns": string(),
4840
+ "schema": union([
4841
+ literal(null),
4842
+ string(),
4843
+ number(),
4844
+ literal(false),
4845
+ literal(true),
4846
+ array(lazy(() => JsonValueRemoteCodec$schema5)),
4847
+ record(string(), lazy(() => JsonValueRemoteCodec$schema5))
4848
+ ]),
4849
+ "value": union([
4850
+ literal(null),
4851
+ string(),
4852
+ number(),
4853
+ literal(false),
4854
+ literal(true),
4855
+ array(lazy(() => JsonValueRemoteCodec$schema5)),
4856
+ record(string(), lazy(() => JsonValueRemoteCodec$schema5))
4857
+ ]),
4858
+ "base": union([
4859
+ literal(null),
4860
+ string(),
4861
+ number(),
4862
+ literal(false),
4863
+ literal(true),
4864
+ array(lazy(() => JsonValueRemoteCodec$schema5)),
4865
+ record(string(), lazy(() => JsonValueRemoteCodec$schema5))
4866
+ ]).optional(),
4867
+ "user": union([
4868
+ literal(null),
4869
+ string(),
4870
+ number(),
4871
+ literal(false),
4872
+ literal(true),
4873
+ array(lazy(() => JsonValueRemoteCodec$schema5)),
4874
+ record(string(), lazy(() => JsonValueRemoteCodec$schema5))
4875
+ ]).optional(),
4876
+ "applies": union([literal("live"), literal("restart")]),
4877
+ "secrets": array(object({
4878
+ "path": array(string()),
4879
+ "set": boolean()
4880
+ })),
4881
+ "revision": number()
4501
4882
  });
4502
- const _deepseek_ai_dsh_goal_goals_resume_result$schema = object({
4503
- "roundsStarted": number().readonly(),
4504
- "createdAt": number().readonly(),
4505
- "updatedAt": number().readonly(),
4506
- "activation": union([literal("armed"), literal("disarmed")]).readonly(),
4507
- "objective": string().readonly(),
4508
- "phase": union([
4509
- literal("active"),
4510
- literal("paused"),
4511
- literal("blocked"),
4512
- literal("complete")
4513
- ]).readonly(),
4514
- "blockedReason": object({
4515
- "code": string().readonly(),
4516
- "message": string().readonly()
4517
- }).readonly().optional(),
4518
- "maxGoalRounds": number().readonly(),
4519
- "id": intersection(string(), unknown()).readonly(),
4520
- "revision": number().readonly()
4883
+ const _deepseek_ai_dsh_api_settings_controller_settings_update_parameter_0$schema = string();
4884
+ const _deepseek_ai_dsh_api_settings_controller_settings_update_parameter_1$schema = record(string(), union([
4885
+ literal(null),
4886
+ string(),
4887
+ number(),
4888
+ literal(false),
4889
+ literal(true),
4890
+ array(lazy(() => JsonValueRemoteCodec$schema2$2)),
4891
+ record(string(), lazy(() => JsonValueRemoteCodec$schema2$2))
4892
+ ]));
4893
+ const _deepseek_ai_dsh_api_settings_controller_settings_update_parameter_2$schema = union([_undefined(), number()]);
4894
+ const _deepseek_ai_dsh_api_settings_controller_settings_update_result$schema = object({
4895
+ "ns": string(),
4896
+ "schema": union([
4897
+ literal(null),
4898
+ string(),
4899
+ number(),
4900
+ literal(false),
4901
+ literal(true),
4902
+ array(lazy(() => JsonValueRemoteCodec$schema3$2)),
4903
+ record(string(), lazy(() => JsonValueRemoteCodec$schema3$2))
4904
+ ]),
4905
+ "value": union([
4906
+ literal(null),
4907
+ string(),
4908
+ number(),
4909
+ literal(false),
4910
+ literal(true),
4911
+ array(lazy(() => JsonValueRemoteCodec$schema3$2)),
4912
+ record(string(), lazy(() => JsonValueRemoteCodec$schema3$2))
4913
+ ]),
4914
+ "base": union([
4915
+ literal(null),
4916
+ string(),
4917
+ number(),
4918
+ literal(false),
4919
+ literal(true),
4920
+ array(lazy(() => JsonValueRemoteCodec$schema3$2)),
4921
+ record(string(), lazy(() => JsonValueRemoteCodec$schema3$2))
4922
+ ]).optional(),
4923
+ "user": union([
4924
+ literal(null),
4925
+ string(),
4926
+ number(),
4927
+ literal(false),
4928
+ literal(true),
4929
+ array(lazy(() => JsonValueRemoteCodec$schema3$2)),
4930
+ record(string(), lazy(() => JsonValueRemoteCodec$schema3$2))
4931
+ ]).optional(),
4932
+ "applies": union([literal("live"), literal("restart")]),
4933
+ "secrets": array(object({
4934
+ "path": array(string()),
4935
+ "set": boolean()
4936
+ })),
4937
+ "revision": number()
4521
4938
  });
4522
- const TYPERT_REMOTE$5 = {
4523
- package: "@deepseek-ai/dsh-goal",
4939
+ const TYPERT_REMOTE$9 = {
4940
+ package: "@deepseek-ai/dsh-api-settings-controller",
4524
4941
  descriptors: [
4525
4942
  {
4526
- id: "@deepseek-ai/dsh-goal#goals/clear",
4527
- service: "goals",
4528
- namespace: "goals",
4529
- method: "clear",
4943
+ id: "@deepseek-ai/dsh-api-settings-controller#credentials/describe",
4944
+ service: "credentialsController",
4945
+ namespace: "credentials",
4946
+ method: "describe",
4530
4947
  invocation: { kind: "direct" },
4531
- scope: {
4532
- context: "agent",
4533
- wire: "agentId"
4534
- },
4535
4948
  parameters: [{
4536
- name: "agent",
4537
- wire: "agentId",
4538
- source: "lookup",
4539
- lookup: "agent",
4540
- codec: {
4541
- mode: "strict",
4542
- typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
4543
- schema: _deepseek_ai_dsh_goal_goals_clear_parameter_0$schema
4544
- }
4545
- }, {
4546
- name: "ref",
4547
- wire: "ref",
4949
+ name: "refs",
4950
+ wire: "refs",
4548
4951
  source: "json",
4549
4952
  codec: {
4550
4953
  mode: "strict",
4551
- typeSymbol: "@deepseek-ai/dsh-goal/client#GoalRef",
4552
- schema: _deepseek_ai_dsh_goal_goals_clear_parameter_1$schema
4954
+ typeSymbol: "@deepseek-ai/dsh-api-settings-controller#credentials/describe:refs",
4955
+ schema: _deepseek_ai_dsh_api_settings_controller_credentials_describe_parameter_0$schema
4553
4956
  }
4554
4957
  }],
4555
4958
  result: {
4556
4959
  mode: "strict",
4557
- typeSymbol: "@deepseek-ai/dsh-goal/client#GoalRef",
4558
- schema: _deepseek_ai_dsh_goal_goals_clear_result$schema
4960
+ typeSymbol: "@deepseek-ai/dsh-api-settings-controller#credentials/describe:result",
4961
+ schema: _deepseek_ai_dsh_api_settings_controller_credentials_describe_result$schema
4559
4962
  },
4560
4963
  sourceLocation: {
4561
- "file": "packages/goal/goal/src/index.ts",
4562
- "line": 377,
4563
- "column": 3
4964
+ "file": "packages/api/settings-controller/src/credentials.ts",
4965
+ "line": 83,
4966
+ "column": 9
4564
4967
  }
4565
4968
  },
4566
4969
  {
4567
- id: "@deepseek-ai/dsh-goal#goals/complete",
4568
- service: "goals",
4569
- namespace: "goals",
4570
- method: "complete",
4970
+ id: "@deepseek-ai/dsh-api-settings-controller#credentials/set",
4971
+ service: "credentialsController",
4972
+ namespace: "credentials",
4973
+ method: "set",
4571
4974
  invocation: { kind: "direct" },
4572
- scope: {
4573
- context: "agent",
4574
- wire: "agentId"
4575
- },
4576
4975
  parameters: [{
4577
- name: "agent",
4578
- wire: "agentId",
4579
- source: "lookup",
4580
- lookup: "agent",
4976
+ name: "ref",
4977
+ wire: "ref",
4978
+ source: "json",
4581
4979
  codec: {
4582
4980
  mode: "strict",
4583
- typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
4584
- schema: _deepseek_ai_dsh_goal_goals_complete_parameter_0$schema
4981
+ typeSymbol: "@deepseek-ai/dsh-api-settings-controller#credentials/set:ref",
4982
+ schema: _deepseek_ai_dsh_api_settings_controller_credentials_set_parameter_0$schema
4585
4983
  }
4586
4984
  }, {
4587
- name: "ref",
4588
- wire: "ref",
4985
+ name: "value",
4986
+ wire: "value",
4589
4987
  source: "json",
4590
4988
  codec: {
4591
4989
  mode: "strict",
4592
- typeSymbol: "@deepseek-ai/dsh-goal/client#GoalRef",
4593
- schema: _deepseek_ai_dsh_goal_goals_complete_parameter_1$schema
4990
+ typeSymbol: "@deepseek-ai/dsh-api-settings-controller#credentials/set:value",
4991
+ schema: _deepseek_ai_dsh_api_settings_controller_credentials_set_parameter_1$schema
4594
4992
  }
4595
4993
  }],
4596
4994
  result: {
4597
4995
  mode: "strict",
4598
- typeSymbol: "@deepseek-ai/dsh-goal/client#GoalView",
4599
- schema: _deepseek_ai_dsh_goal_goals_complete_result$schema
4996
+ typeSymbol: "@deepseek-ai/dsh-api-settings-controller#credentials/set:result",
4997
+ schema: _deepseek_ai_dsh_api_settings_controller_credentials_set_result$schema
4600
4998
  },
4601
4999
  sourceLocation: {
4602
- "file": "packages/goal/goal/src/index.ts",
4603
- "line": 337,
4604
- "column": 3
5000
+ "file": "packages/api/settings-controller/src/credentials.ts",
5001
+ "line": 100,
5002
+ "column": 9
4605
5003
  }
4606
5004
  },
4607
5005
  {
4608
- id: "@deepseek-ai/dsh-goal#goals/create",
4609
- service: "goals",
4610
- namespace: "goals",
4611
- method: "create",
4612
- implementation: "remoteExportCreate",
5006
+ id: "@deepseek-ai/dsh-api-settings-controller#credentials/unset",
5007
+ service: "credentialsController",
5008
+ namespace: "credentials",
5009
+ method: "unset",
4613
5010
  invocation: { kind: "direct" },
4614
- scope: {
4615
- context: "agent",
4616
- wire: "agentId"
4617
- },
4618
5011
  parameters: [{
4619
- name: "agent",
4620
- wire: "agentId",
4621
- source: "lookup",
4622
- lookup: "agent",
4623
- codec: {
4624
- mode: "strict",
4625
- typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
4626
- schema: _deepseek_ai_dsh_goal_goals_create_parameter_0$schema
4627
- }
4628
- }, {
4629
- name: "request",
4630
- wire: "request",
5012
+ name: "ref",
5013
+ wire: "ref",
4631
5014
  source: "json",
4632
5015
  codec: {
4633
5016
  mode: "strict",
4634
- typeSymbol: "@deepseek-ai/dsh-goal/client#CreateGoalRequest",
4635
- schema: _deepseek_ai_dsh_goal_goals_create_parameter_1$schema
5017
+ typeSymbol: "@deepseek-ai/dsh-api-settings-controller#credentials/unset:ref",
5018
+ schema: _deepseek_ai_dsh_api_settings_controller_credentials_unset_parameter_0$schema
4636
5019
  }
4637
5020
  }],
4638
5021
  result: {
4639
5022
  mode: "strict",
4640
- typeSymbol: "@deepseek-ai/dsh-goal/client#CreateGoalResult",
4641
- schema: _deepseek_ai_dsh_goal_goals_create_result$schema
5023
+ typeSymbol: "@deepseek-ai/dsh-api-settings-controller#credentials/unset:result",
5024
+ schema: _deepseek_ai_dsh_api_settings_controller_credentials_unset_result$schema
4642
5025
  },
4643
5026
  sourceLocation: {
4644
- "file": "packages/goal/goal/src/index.ts",
4645
- "line": 586,
5027
+ "file": "packages/api/settings-controller/src/credentials.ts",
5028
+ "line": 113,
5029
+ "column": 9
5030
+ }
5031
+ },
5032
+ {
5033
+ id: "@deepseek-ai/dsh-api-settings-controller#settings/canOpenAgentPresetDirectory",
5034
+ service: "settingsController",
5035
+ namespace: "settings",
5036
+ method: "canOpenAgentPresetDirectory",
5037
+ invocation: { kind: "direct" },
5038
+ parameters: [],
5039
+ result: {
5040
+ mode: "strict",
5041
+ typeSymbol: "@deepseek-ai/dsh-api-settings-controller#settings/canOpenAgentPresetDirectory:result",
5042
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_canOpenAgentPresetDirectory_result$schema
5043
+ },
5044
+ sourceLocation: {
5045
+ "file": "packages/api/settings-controller/src/index.ts",
5046
+ "line": 131,
4646
5047
  "column": 3
4647
5048
  }
4648
5049
  },
4649
5050
  {
4650
- id: "@deepseek-ai/dsh-goal#goals/edit",
4651
- service: "goals",
4652
- namespace: "goals",
4653
- method: "edit",
5051
+ id: "@deepseek-ai/dsh-api-settings-controller#settings/describe",
5052
+ service: "settingsController",
5053
+ namespace: "settings",
5054
+ method: "describe",
4654
5055
  invocation: { kind: "direct" },
4655
- scope: {
4656
- context: "agent",
4657
- wire: "agentId"
5056
+ parameters: [],
5057
+ result: {
5058
+ mode: "strict",
5059
+ typeSymbol: "@deepseek-ai/dsh-settings/types#SettingsDescribeValue",
5060
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_describe_result$schema
4658
5061
  },
5062
+ sourceLocation: {
5063
+ "file": "packages/api/settings-controller/src/index.ts",
5064
+ "line": 117,
5065
+ "column": 3
5066
+ }
5067
+ },
5068
+ {
5069
+ id: "@deepseek-ai/dsh-api-settings-controller#settings/mutate",
5070
+ service: "settingsController",
5071
+ namespace: "settings",
5072
+ method: "mutate",
5073
+ invocation: { kind: "direct" },
4659
5074
  parameters: [
4660
5075
  {
4661
- name: "agent",
4662
- wire: "agentId",
4663
- source: "lookup",
4664
- lookup: "agent",
5076
+ name: "ns",
5077
+ wire: "ns",
5078
+ source: "json",
4665
5079
  codec: {
4666
5080
  mode: "strict",
4667
- typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
4668
- schema: _deepseek_ai_dsh_goal_goals_edit_parameter_0$schema
5081
+ typeSymbol: "@deepseek-ai/dsh-api-settings-controller#settings/mutate:ns",
5082
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_mutate_parameter_0$schema
4669
5083
  }
4670
5084
  },
4671
5085
  {
4672
- name: "ref",
4673
- wire: "ref",
5086
+ name: "ops",
5087
+ wire: "ops",
4674
5088
  source: "json",
4675
5089
  codec: {
4676
5090
  mode: "strict",
4677
- typeSymbol: "@deepseek-ai/dsh-goal/client#GoalRef",
4678
- schema: _deepseek_ai_dsh_goal_goals_edit_parameter_1$schema
5091
+ typeSymbol: "@deepseek-ai/dsh-api-settings-controller#settings/mutate:ops",
5092
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_mutate_parameter_1$schema
4679
5093
  }
4680
5094
  },
4681
5095
  {
4682
- name: "request",
4683
- wire: "request",
5096
+ name: "expectedRevision",
5097
+ wire: "expectedRevision",
4684
5098
  source: "json",
5099
+ acceptsUndefined: true,
4685
5100
  codec: {
4686
5101
  mode: "strict",
4687
- typeSymbol: "@deepseek-ai/dsh-goal/client#EditGoalRequest",
4688
- schema: _deepseek_ai_dsh_goal_goals_edit_parameter_2$schema
5102
+ typeSymbol: "@deepseek-ai/dsh-api-settings-controller#settings/mutate:expectedRevision",
5103
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_mutate_parameter_2$schema
4689
5104
  }
4690
5105
  }
4691
5106
  ],
4692
5107
  result: {
4693
5108
  mode: "strict",
4694
- typeSymbol: "@deepseek-ai/dsh-goal/client#GoalView",
4695
- schema: _deepseek_ai_dsh_goal_goals_edit_result$schema
5109
+ typeSymbol: "@deepseek-ai/dsh-settings/types#SettingsNamespaceView",
5110
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_mutate_result$schema
4696
5111
  },
4697
5112
  sourceLocation: {
4698
- "file": "packages/goal/goal/src/index.ts",
4699
- "line": 277,
5113
+ "file": "packages/api/settings-controller/src/index.ts",
5114
+ "line": 180,
5115
+ "column": 9
5116
+ }
5117
+ },
5118
+ {
5119
+ id: "@deepseek-ai/dsh-api-settings-controller#settings/openAgentPresetDirectory",
5120
+ service: "settingsController",
5121
+ namespace: "settings",
5122
+ method: "openAgentPresetDirectory",
5123
+ invocation: { kind: "direct" },
5124
+ parameters: [{
5125
+ name: "agentPreset",
5126
+ wire: "agentPreset",
5127
+ source: "json",
5128
+ codec: {
5129
+ mode: "strict",
5130
+ typeSymbol: "@deepseek-ai/dsh-api-settings-controller#settings/openAgentPresetDirectory:agentPreset",
5131
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_openAgentPresetDirectory_parameter_0$schema
5132
+ }
5133
+ }],
5134
+ cancellation: { parameter: "signal" },
5135
+ result: {
5136
+ mode: "strict",
5137
+ typeSymbol: "@deepseek-ai/dsh-api-settings-controller/types#AgentPresetDirectoryOpenValue",
5138
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_openAgentPresetDirectory_result$schema
5139
+ },
5140
+ sourceLocation: {
5141
+ "file": "packages/api/settings-controller/src/index.ts",
5142
+ "line": 226,
5143
+ "column": 9
5144
+ }
5145
+ },
5146
+ {
5147
+ id: "@deepseek-ai/dsh-api-settings-controller#settings/openSettingsDocument",
5148
+ service: "settingsController",
5149
+ namespace: "settings",
5150
+ method: "openSettingsDocument",
5151
+ invocation: { kind: "direct" },
5152
+ parameters: [],
5153
+ cancellation: { parameter: "signal" },
5154
+ result: {
5155
+ mode: "strict",
5156
+ typeSymbol: "@deepseek-ai/dsh-api-settings-controller/types#SettingsDocumentOpenValue",
5157
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_openSettingsDocument_result$schema
5158
+ },
5159
+ sourceLocation: {
5160
+ "file": "packages/api/settings-controller/src/index.ts",
5161
+ "line": 195,
5162
+ "column": 9
5163
+ }
5164
+ },
5165
+ {
5166
+ id: "@deepseek-ai/dsh-api-settings-controller#settings/replace",
5167
+ service: "settingsController",
5168
+ namespace: "settings",
5169
+ method: "replace",
5170
+ invocation: { kind: "direct" },
5171
+ parameters: [
5172
+ {
5173
+ name: "ns",
5174
+ wire: "ns",
5175
+ source: "json",
5176
+ codec: {
5177
+ mode: "strict",
5178
+ typeSymbol: "@deepseek-ai/dsh-api-settings-controller#settings/replace:ns",
5179
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_replace_parameter_0$schema
5180
+ }
5181
+ },
5182
+ {
5183
+ name: "section",
5184
+ wire: "section",
5185
+ source: "json",
5186
+ codec: {
5187
+ mode: "strict",
5188
+ typeSymbol: "@deepseek-ai/dsh-api-settings-controller#settings/replace:section",
5189
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_replace_parameter_1$schema
5190
+ }
5191
+ },
5192
+ {
5193
+ name: "expectedRevision",
5194
+ wire: "expectedRevision",
5195
+ source: "json",
5196
+ acceptsUndefined: true,
5197
+ codec: {
5198
+ mode: "strict",
5199
+ typeSymbol: "@deepseek-ai/dsh-api-settings-controller#settings/replace:expectedRevision",
5200
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_replace_parameter_2$schema
5201
+ }
5202
+ }
5203
+ ],
5204
+ result: {
5205
+ mode: "strict",
5206
+ typeSymbol: "@deepseek-ai/dsh-settings/types#SettingsNamespaceView",
5207
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_replace_result$schema
5208
+ },
5209
+ sourceLocation: {
5210
+ "file": "packages/api/settings-controller/src/index.ts",
5211
+ "line": 161,
4700
5212
  "column": 3
4701
5213
  }
4702
5214
  },
4703
5215
  {
4704
- id: "@deepseek-ai/dsh-goal#goals/pause",
5216
+ id: "@deepseek-ai/dsh-api-settings-controller#settings/update",
5217
+ service: "settingsController",
5218
+ namespace: "settings",
5219
+ method: "update",
5220
+ invocation: { kind: "direct" },
5221
+ parameters: [
5222
+ {
5223
+ name: "ns",
5224
+ wire: "ns",
5225
+ source: "json",
5226
+ codec: {
5227
+ mode: "strict",
5228
+ typeSymbol: "@deepseek-ai/dsh-api-settings-controller#settings/update:ns",
5229
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_update_parameter_0$schema
5230
+ }
5231
+ },
5232
+ {
5233
+ name: "patch",
5234
+ wire: "patch",
5235
+ source: "json",
5236
+ codec: {
5237
+ mode: "strict",
5238
+ typeSymbol: "@deepseek-ai/dsh-api-settings-controller#settings/update:patch",
5239
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_update_parameter_1$schema
5240
+ }
5241
+ },
5242
+ {
5243
+ name: "expectedRevision",
5244
+ wire: "expectedRevision",
5245
+ source: "json",
5246
+ acceptsUndefined: true,
5247
+ codec: {
5248
+ mode: "strict",
5249
+ typeSymbol: "@deepseek-ai/dsh-api-settings-controller#settings/update:expectedRevision",
5250
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_update_parameter_2$schema
5251
+ }
5252
+ }
5253
+ ],
5254
+ result: {
5255
+ mode: "strict",
5256
+ typeSymbol: "@deepseek-ai/dsh-settings/types#SettingsNamespaceView",
5257
+ schema: _deepseek_ai_dsh_api_settings_controller_settings_update_result$schema
5258
+ },
5259
+ sourceLocation: {
5260
+ "file": "packages/api/settings-controller/src/index.ts",
5261
+ "line": 144,
5262
+ "column": 3
5263
+ }
5264
+ }
5265
+ ]
5266
+ };
5267
+ //#endregion
5268
+ //#region ../../goal/goal/lib/typert.remote-client.js
5269
+ const _deepseek_ai_dsh_goal_goals_clear_parameter_0$schema = intersection(string(), unknown());
5270
+ const _deepseek_ai_dsh_goal_goals_clear_parameter_1$schema = object({
5271
+ "id": intersection(string(), unknown()).readonly(),
5272
+ "revision": number().readonly()
5273
+ });
5274
+ const _deepseek_ai_dsh_goal_goals_clear_result$schema = object({
5275
+ "id": intersection(string(), unknown()).readonly(),
5276
+ "revision": number().readonly()
5277
+ });
5278
+ const _deepseek_ai_dsh_goal_goals_complete_parameter_0$schema = intersection(string(), unknown());
5279
+ const _deepseek_ai_dsh_goal_goals_complete_parameter_1$schema = object({
5280
+ "id": intersection(string(), unknown()).readonly(),
5281
+ "revision": number().readonly()
5282
+ });
5283
+ const _deepseek_ai_dsh_goal_goals_complete_result$schema = object({
5284
+ "roundsStarted": number().readonly(),
5285
+ "createdAt": number().readonly(),
5286
+ "updatedAt": number().readonly(),
5287
+ "activation": union([literal("armed"), literal("disarmed")]).readonly(),
5288
+ "objective": string().readonly(),
5289
+ "phase": union([
5290
+ literal("active"),
5291
+ literal("paused"),
5292
+ literal("blocked"),
5293
+ literal("complete")
5294
+ ]).readonly(),
5295
+ "blockedReason": object({
5296
+ "code": string().readonly(),
5297
+ "message": string().readonly()
5298
+ }).readonly().optional(),
5299
+ "maxGoalRounds": number().readonly(),
5300
+ "id": intersection(string(), unknown()).readonly(),
5301
+ "revision": number().readonly()
5302
+ });
5303
+ const _deepseek_ai_dsh_goal_goals_create_parameter_0$schema = intersection(string(), unknown());
5304
+ const _deepseek_ai_dsh_goal_goals_create_parameter_1$schema = object({
5305
+ "objective": string().readonly(),
5306
+ "maxGoalRounds": number().readonly().optional()
5307
+ });
5308
+ const _deepseek_ai_dsh_goal_goals_create_result$schema = object({ "ref": object({
5309
+ "id": intersection(string(), unknown()).readonly(),
5310
+ "revision": number().readonly()
5311
+ }).readonly() });
5312
+ const _deepseek_ai_dsh_goal_goals_edit_parameter_0$schema = intersection(string(), unknown());
5313
+ const _deepseek_ai_dsh_goal_goals_edit_parameter_1$schema = object({
5314
+ "id": intersection(string(), unknown()).readonly(),
5315
+ "revision": number().readonly()
5316
+ });
5317
+ const _deepseek_ai_dsh_goal_goals_edit_parameter_2$schema = object({
5318
+ "objective": string().readonly().optional(),
5319
+ "maxGoalRounds": number().readonly().optional()
5320
+ });
5321
+ const _deepseek_ai_dsh_goal_goals_edit_result$schema = object({
5322
+ "roundsStarted": number().readonly(),
5323
+ "createdAt": number().readonly(),
5324
+ "updatedAt": number().readonly(),
5325
+ "activation": union([literal("armed"), literal("disarmed")]).readonly(),
5326
+ "objective": string().readonly(),
5327
+ "phase": union([
5328
+ literal("active"),
5329
+ literal("paused"),
5330
+ literal("blocked"),
5331
+ literal("complete")
5332
+ ]).readonly(),
5333
+ "blockedReason": object({
5334
+ "code": string().readonly(),
5335
+ "message": string().readonly()
5336
+ }).readonly().optional(),
5337
+ "maxGoalRounds": number().readonly(),
5338
+ "id": intersection(string(), unknown()).readonly(),
5339
+ "revision": number().readonly()
5340
+ });
5341
+ const _deepseek_ai_dsh_goal_goals_pause_parameter_0$schema = intersection(string(), unknown());
5342
+ const _deepseek_ai_dsh_goal_goals_pause_parameter_1$schema = object({
5343
+ "id": intersection(string(), unknown()).readonly(),
5344
+ "revision": number().readonly()
5345
+ });
5346
+ const _deepseek_ai_dsh_goal_goals_pause_result$schema = object({
5347
+ "roundsStarted": number().readonly(),
5348
+ "createdAt": number().readonly(),
5349
+ "updatedAt": number().readonly(),
5350
+ "activation": union([literal("armed"), literal("disarmed")]).readonly(),
5351
+ "objective": string().readonly(),
5352
+ "phase": union([
5353
+ literal("active"),
5354
+ literal("paused"),
5355
+ literal("blocked"),
5356
+ literal("complete")
5357
+ ]).readonly(),
5358
+ "blockedReason": object({
5359
+ "code": string().readonly(),
5360
+ "message": string().readonly()
5361
+ }).readonly().optional(),
5362
+ "maxGoalRounds": number().readonly(),
5363
+ "id": intersection(string(), unknown()).readonly(),
5364
+ "revision": number().readonly()
5365
+ });
5366
+ const _deepseek_ai_dsh_goal_goals_resume_parameter_0$schema = intersection(string(), unknown());
5367
+ const _deepseek_ai_dsh_goal_goals_resume_parameter_1$schema = object({
5368
+ "id": intersection(string(), unknown()).readonly(),
5369
+ "revision": number().readonly()
5370
+ });
5371
+ const _deepseek_ai_dsh_goal_goals_resume_result$schema = object({
5372
+ "roundsStarted": number().readonly(),
5373
+ "createdAt": number().readonly(),
5374
+ "updatedAt": number().readonly(),
5375
+ "activation": union([literal("armed"), literal("disarmed")]).readonly(),
5376
+ "objective": string().readonly(),
5377
+ "phase": union([
5378
+ literal("active"),
5379
+ literal("paused"),
5380
+ literal("blocked"),
5381
+ literal("complete")
5382
+ ]).readonly(),
5383
+ "blockedReason": object({
5384
+ "code": string().readonly(),
5385
+ "message": string().readonly()
5386
+ }).readonly().optional(),
5387
+ "maxGoalRounds": number().readonly(),
5388
+ "id": intersection(string(), unknown()).readonly(),
5389
+ "revision": number().readonly()
5390
+ });
5391
+ const TYPERT_REMOTE$8 = {
5392
+ package: "@deepseek-ai/dsh-goal",
5393
+ descriptors: [
5394
+ {
5395
+ id: "@deepseek-ai/dsh-goal#goals/clear",
4705
5396
  service: "goals",
4706
5397
  namespace: "goals",
4707
- method: "pause",
5398
+ method: "clear",
4708
5399
  invocation: { kind: "direct" },
4709
5400
  scope: {
4710
5401
  context: "agent",
@@ -4718,7 +5409,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4718
5409
  codec: {
4719
5410
  mode: "strict",
4720
5411
  typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
4721
- schema: _deepseek_ai_dsh_goal_goals_pause_parameter_0$schema
5412
+ schema: _deepseek_ai_dsh_goal_goals_clear_parameter_0$schema
4722
5413
  }
4723
5414
  }, {
4724
5415
  name: "ref",
@@ -4727,25 +5418,25 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4727
5418
  codec: {
4728
5419
  mode: "strict",
4729
5420
  typeSymbol: "@deepseek-ai/dsh-goal/client#GoalRef",
4730
- schema: _deepseek_ai_dsh_goal_goals_pause_parameter_1$schema
5421
+ schema: _deepseek_ai_dsh_goal_goals_clear_parameter_1$schema
4731
5422
  }
4732
5423
  }],
4733
5424
  result: {
4734
5425
  mode: "strict",
4735
- typeSymbol: "@deepseek-ai/dsh-goal/client#GoalView",
4736
- schema: _deepseek_ai_dsh_goal_goals_pause_result$schema
5426
+ typeSymbol: "@deepseek-ai/dsh-goal/client#GoalRef",
5427
+ schema: _deepseek_ai_dsh_goal_goals_clear_result$schema
4737
5428
  },
4738
5429
  sourceLocation: {
4739
5430
  "file": "packages/goal/goal/src/index.ts",
4740
- "line": 299,
5431
+ "line": 426,
4741
5432
  "column": 3
4742
5433
  }
4743
5434
  },
4744
5435
  {
4745
- id: "@deepseek-ai/dsh-goal#goals/resume",
5436
+ id: "@deepseek-ai/dsh-goal#goals/complete",
4746
5437
  service: "goals",
4747
5438
  namespace: "goals",
4748
- method: "resume",
5439
+ method: "complete",
4749
5440
  invocation: { kind: "direct" },
4750
5441
  scope: {
4751
5442
  context: "agent",
@@ -4759,7 +5450,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4759
5450
  codec: {
4760
5451
  mode: "strict",
4761
5452
  typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
4762
- schema: _deepseek_ai_dsh_goal_goals_resume_parameter_0$schema
5453
+ schema: _deepseek_ai_dsh_goal_goals_complete_parameter_0$schema
4763
5454
  }
4764
5455
  }, {
4765
5456
  name: "ref",
@@ -4768,59 +5459,342 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4768
5459
  codec: {
4769
5460
  mode: "strict",
4770
5461
  typeSymbol: "@deepseek-ai/dsh-goal/client#GoalRef",
4771
- schema: _deepseek_ai_dsh_goal_goals_resume_parameter_1$schema
5462
+ schema: _deepseek_ai_dsh_goal_goals_complete_parameter_1$schema
4772
5463
  }
4773
5464
  }],
4774
5465
  result: {
4775
5466
  mode: "strict",
4776
5467
  typeSymbol: "@deepseek-ai/dsh-goal/client#GoalView",
4777
- schema: _deepseek_ai_dsh_goal_goals_resume_result$schema
5468
+ schema: _deepseek_ai_dsh_goal_goals_complete_result$schema
4778
5469
  },
4779
5470
  sourceLocation: {
4780
5471
  "file": "packages/goal/goal/src/index.ts",
4781
- "line": 311,
5472
+ "line": 384,
4782
5473
  "column": 3
4783
5474
  }
4784
- }
4785
- ]
4786
- };
4787
- //#endregion
4788
- //#region ../../extensions/cordis-host-runner/lib/typert.remote-client.js
4789
- const JsonValueRemoteCodec$schema = union([
5475
+ },
5476
+ {
5477
+ id: "@deepseek-ai/dsh-goal#goals/create",
5478
+ service: "goals",
5479
+ namespace: "goals",
5480
+ method: "create",
5481
+ implementation: "remoteExportCreate",
5482
+ invocation: { kind: "direct" },
5483
+ scope: {
5484
+ context: "agent",
5485
+ wire: "agentId"
5486
+ },
5487
+ parameters: [{
5488
+ name: "agent",
5489
+ wire: "agentId",
5490
+ source: "lookup",
5491
+ lookup: "agent",
5492
+ codec: {
5493
+ mode: "strict",
5494
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
5495
+ schema: _deepseek_ai_dsh_goal_goals_create_parameter_0$schema
5496
+ }
5497
+ }, {
5498
+ name: "request",
5499
+ wire: "request",
5500
+ source: "json",
5501
+ codec: {
5502
+ mode: "strict",
5503
+ typeSymbol: "@deepseek-ai/dsh-goal/client#CreateGoalRequest",
5504
+ schema: _deepseek_ai_dsh_goal_goals_create_parameter_1$schema
5505
+ }
5506
+ }],
5507
+ result: {
5508
+ mode: "strict",
5509
+ typeSymbol: "@deepseek-ai/dsh-goal/client#CreateGoalResult",
5510
+ schema: _deepseek_ai_dsh_goal_goals_create_result$schema
5511
+ },
5512
+ sourceLocation: {
5513
+ "file": "packages/goal/goal/src/index.ts",
5514
+ "line": 618,
5515
+ "column": 3
5516
+ }
5517
+ },
5518
+ {
5519
+ id: "@deepseek-ai/dsh-goal#goals/edit",
5520
+ service: "goals",
5521
+ namespace: "goals",
5522
+ method: "edit",
5523
+ invocation: { kind: "direct" },
5524
+ scope: {
5525
+ context: "agent",
5526
+ wire: "agentId"
5527
+ },
5528
+ parameters: [
5529
+ {
5530
+ name: "agent",
5531
+ wire: "agentId",
5532
+ source: "lookup",
5533
+ lookup: "agent",
5534
+ codec: {
5535
+ mode: "strict",
5536
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
5537
+ schema: _deepseek_ai_dsh_goal_goals_edit_parameter_0$schema
5538
+ }
5539
+ },
5540
+ {
5541
+ name: "ref",
5542
+ wire: "ref",
5543
+ source: "json",
5544
+ codec: {
5545
+ mode: "strict",
5546
+ typeSymbol: "@deepseek-ai/dsh-goal/client#GoalRef",
5547
+ schema: _deepseek_ai_dsh_goal_goals_edit_parameter_1$schema
5548
+ }
5549
+ },
5550
+ {
5551
+ name: "request",
5552
+ wire: "request",
5553
+ source: "json",
5554
+ codec: {
5555
+ mode: "strict",
5556
+ typeSymbol: "@deepseek-ai/dsh-goal/client#EditGoalRequest",
5557
+ schema: _deepseek_ai_dsh_goal_goals_edit_parameter_2$schema
5558
+ }
5559
+ }
5560
+ ],
5561
+ result: {
5562
+ mode: "strict",
5563
+ typeSymbol: "@deepseek-ai/dsh-goal/client#GoalView",
5564
+ schema: _deepseek_ai_dsh_goal_goals_edit_result$schema
5565
+ },
5566
+ sourceLocation: {
5567
+ "file": "packages/goal/goal/src/index.ts",
5568
+ "line": 322,
5569
+ "column": 3
5570
+ }
5571
+ },
5572
+ {
5573
+ id: "@deepseek-ai/dsh-goal#goals/pause",
5574
+ service: "goals",
5575
+ namespace: "goals",
5576
+ method: "pause",
5577
+ invocation: { kind: "direct" },
5578
+ scope: {
5579
+ context: "agent",
5580
+ wire: "agentId"
5581
+ },
5582
+ parameters: [{
5583
+ name: "agent",
5584
+ wire: "agentId",
5585
+ source: "lookup",
5586
+ lookup: "agent",
5587
+ codec: {
5588
+ mode: "strict",
5589
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
5590
+ schema: _deepseek_ai_dsh_goal_goals_pause_parameter_0$schema
5591
+ }
5592
+ }, {
5593
+ name: "ref",
5594
+ wire: "ref",
5595
+ source: "json",
5596
+ codec: {
5597
+ mode: "strict",
5598
+ typeSymbol: "@deepseek-ai/dsh-goal/client#GoalRef",
5599
+ schema: _deepseek_ai_dsh_goal_goals_pause_parameter_1$schema
5600
+ }
5601
+ }],
5602
+ result: {
5603
+ mode: "strict",
5604
+ typeSymbol: "@deepseek-ai/dsh-goal/client#GoalView",
5605
+ schema: _deepseek_ai_dsh_goal_goals_pause_result$schema
5606
+ },
5607
+ sourceLocation: {
5608
+ "file": "packages/goal/goal/src/index.ts",
5609
+ "line": 345,
5610
+ "column": 3
5611
+ }
5612
+ },
5613
+ {
5614
+ id: "@deepseek-ai/dsh-goal#goals/resume",
5615
+ service: "goals",
5616
+ namespace: "goals",
5617
+ method: "resume",
5618
+ invocation: { kind: "direct" },
5619
+ scope: {
5620
+ context: "agent",
5621
+ wire: "agentId"
5622
+ },
5623
+ parameters: [{
5624
+ name: "agent",
5625
+ wire: "agentId",
5626
+ source: "lookup",
5627
+ lookup: "agent",
5628
+ codec: {
5629
+ mode: "strict",
5630
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
5631
+ schema: _deepseek_ai_dsh_goal_goals_resume_parameter_0$schema
5632
+ }
5633
+ }, {
5634
+ name: "ref",
5635
+ wire: "ref",
5636
+ source: "json",
5637
+ codec: {
5638
+ mode: "strict",
5639
+ typeSymbol: "@deepseek-ai/dsh-goal/client#GoalRef",
5640
+ schema: _deepseek_ai_dsh_goal_goals_resume_parameter_1$schema
5641
+ }
5642
+ }],
5643
+ result: {
5644
+ mode: "strict",
5645
+ typeSymbol: "@deepseek-ai/dsh-goal/client#GoalView",
5646
+ schema: _deepseek_ai_dsh_goal_goals_resume_result$schema
5647
+ },
5648
+ sourceLocation: {
5649
+ "file": "packages/goal/goal/src/index.ts",
5650
+ "line": 357,
5651
+ "column": 3
5652
+ }
5653
+ }
5654
+ ]
5655
+ };
5656
+ //#endregion
5657
+ //#region ../../llm/llm/lib/typert.remote-client.js
5658
+ const _deepseek_ai_dsh_llm_llm_discoverModels_parameter_0$schema = string();
5659
+ const _deepseek_ai_dsh_llm_llm_discoverModels_parameter_1$schema = object({
5660
+ "provider": string().optional(),
5661
+ "baseURL": string().optional(),
5662
+ "api": string().optional(),
5663
+ "apiKey": string().optional()
5664
+ });
5665
+ const _deepseek_ai_dsh_llm_llm_discoverModels_result$schema = array(object({
5666
+ "id": string(),
5667
+ "name": string().optional(),
5668
+ "contextWindow": number().optional(),
5669
+ "maxTokens": number().optional()
5670
+ }));
5671
+ const _deepseek_ai_dsh_llm_llm_listConfigurableProviders_result$schema = array(object({
5672
+ "provider": string(),
5673
+ "displayName": string(),
5674
+ "settingsNs": string(),
5675
+ "settingsPath": array(string()),
5676
+ "declared": boolean().optional()
5677
+ }));
5678
+ const _deepseek_ai_dsh_llm_llm_listProviders_result$schema = array(object({
5679
+ "id": string(),
5680
+ "name": string()
5681
+ }));
5682
+ const TYPERT_REMOTE$7 = {
5683
+ package: "@deepseek-ai/dsh-llm",
5684
+ descriptors: [
5685
+ {
5686
+ id: "@deepseek-ai/dsh-llm#llm/discoverModels",
5687
+ service: "llm",
5688
+ namespace: "llm",
5689
+ method: "discoverModels",
5690
+ implementation: "remoteDiscoverModels",
5691
+ invocation: { kind: "direct" },
5692
+ parameters: [{
5693
+ name: "settingsNs",
5694
+ wire: "settingsNs",
5695
+ source: "json",
5696
+ codec: {
5697
+ mode: "strict",
5698
+ typeSymbol: "@deepseek-ai/dsh-llm#llm/discoverModels:settingsNs",
5699
+ schema: _deepseek_ai_dsh_llm_llm_discoverModels_parameter_0$schema
5700
+ }
5701
+ }, {
5702
+ name: "request",
5703
+ wire: "request",
5704
+ source: "json",
5705
+ codec: {
5706
+ mode: "strict",
5707
+ typeSymbol: "@deepseek-ai/dsh-llm/types#LlmModelDiscoveryRequest",
5708
+ schema: _deepseek_ai_dsh_llm_llm_discoverModels_parameter_1$schema
5709
+ }
5710
+ }],
5711
+ cancellation: { parameter: "signal" },
5712
+ result: {
5713
+ mode: "strict",
5714
+ typeSymbol: "@deepseek-ai/dsh-llm#llm/discoverModels:result",
5715
+ schema: _deepseek_ai_dsh_llm_llm_discoverModels_result$schema
5716
+ },
5717
+ sourceLocation: {
5718
+ "file": "packages/llm/llm/src/index.ts",
5719
+ "line": 621,
5720
+ "column": 9
5721
+ }
5722
+ },
5723
+ {
5724
+ id: "@deepseek-ai/dsh-llm#llm/listConfigurableProviders",
5725
+ service: "llm",
5726
+ namespace: "llm",
5727
+ method: "listConfigurableProviders",
5728
+ invocation: { kind: "direct" },
5729
+ parameters: [],
5730
+ result: {
5731
+ mode: "strict",
5732
+ typeSymbol: "@deepseek-ai/dsh-llm#llm/listConfigurableProviders:result",
5733
+ schema: _deepseek_ai_dsh_llm_llm_listConfigurableProviders_result$schema
5734
+ },
5735
+ sourceLocation: {
5736
+ "file": "packages/llm/llm/src/index.ts",
5737
+ "line": 534,
5738
+ "column": 3
5739
+ }
5740
+ },
5741
+ {
5742
+ id: "@deepseek-ai/dsh-llm#llm/listProviders",
5743
+ service: "llm",
5744
+ namespace: "llm",
5745
+ method: "listProviders",
5746
+ invocation: { kind: "direct" },
5747
+ parameters: [],
5748
+ result: {
5749
+ mode: "strict",
5750
+ typeSymbol: "@deepseek-ai/dsh-llm#llm/listProviders:result",
5751
+ schema: _deepseek_ai_dsh_llm_llm_listProviders_result$schema
5752
+ },
5753
+ sourceLocation: {
5754
+ "file": "packages/llm/llm/src/index.ts",
5755
+ "line": 462,
5756
+ "column": 3
5757
+ }
5758
+ }
5759
+ ]
5760
+ };
5761
+ //#endregion
5762
+ //#region ../../extensions/cordis-host-runner/lib/typert.remote-client.js
5763
+ const JsonValueRemoteCodec$schema$1 = union([
4790
5764
  literal(null),
4791
5765
  string(),
4792
5766
  number(),
4793
5767
  literal(false),
4794
5768
  literal(true),
4795
- array(lazy(() => JsonValueRemoteCodec$schema)),
4796
- record(string(), lazy(() => JsonValueRemoteCodec$schema))
5769
+ array(lazy(() => JsonValueRemoteCodec$schema$1)),
5770
+ record(string(), lazy(() => JsonValueRemoteCodec$schema$1))
4797
5771
  ]);
4798
- const JsonValueRemoteCodec$schema2 = union([
5772
+ const JsonValueRemoteCodec$schema2$1 = union([
4799
5773
  literal(null),
4800
5774
  string(),
4801
5775
  number(),
4802
5776
  literal(false),
4803
5777
  literal(true),
4804
- array(lazy(() => JsonValueRemoteCodec$schema2)),
4805
- record(string(), lazy(() => JsonValueRemoteCodec$schema2))
5778
+ array(lazy(() => JsonValueRemoteCodec$schema2$1)),
5779
+ record(string(), lazy(() => JsonValueRemoteCodec$schema2$1))
4806
5780
  ]);
4807
- const JsonValueRemoteCodec$schema3 = union([
5781
+ const JsonValueRemoteCodec$schema3$1 = union([
4808
5782
  literal(null),
4809
5783
  string(),
4810
5784
  number(),
4811
5785
  literal(false),
4812
5786
  literal(true),
4813
- array(lazy(() => JsonValueRemoteCodec$schema3)),
4814
- record(string(), lazy(() => JsonValueRemoteCodec$schema3))
5787
+ array(lazy(() => JsonValueRemoteCodec$schema3$1)),
5788
+ record(string(), lazy(() => JsonValueRemoteCodec$schema3$1))
4815
5789
  ]);
4816
- const JsonValueRemoteCodec$schema4 = union([
5790
+ const JsonValueRemoteCodec$schema4$1 = union([
4817
5791
  literal(null),
4818
5792
  string(),
4819
5793
  number(),
4820
5794
  literal(false),
4821
5795
  literal(true),
4822
- array(lazy(() => JsonValueRemoteCodec$schema4)),
4823
- record(string(), lazy(() => JsonValueRemoteCodec$schema4))
5796
+ array(lazy(() => JsonValueRemoteCodec$schema4$1)),
5797
+ record(string(), lazy(() => JsonValueRemoteCodec$schema4$1))
4824
5798
  ]);
4825
5799
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_0$schema = intersection(string(), unknown());
4826
5800
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_1$schema = intersection(string(), unknown());
@@ -4853,38 +5827,38 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4853
5827
  "packageId": intersection(string(), unknown()),
4854
5828
  "mode": union([literal("run"), literal("update")]),
4855
5829
  "status": union([
5830
+ literal("running"),
5831
+ literal("failed"),
4856
5832
  literal("rejected"),
4857
5833
  literal("awaiting-approval"),
4858
- literal("running"),
4859
5834
  literal("cancelled"),
4860
5835
  literal("starting-host"),
4861
5836
  literal("client-pending"),
4862
5837
  literal("waiting"),
4863
- literal("failed"),
4864
5838
  literal("stopped")
4865
5839
  ]),
4866
5840
  "approvalRequestId": intersection(string(), unknown()).optional(),
4867
5841
  "requiresApproval": boolean().optional(),
4868
5842
  "host": object({
4869
5843
  "status": union([
5844
+ literal("pending"),
4870
5845
  literal("running"),
4871
- literal("waiting"),
4872
5846
  literal("failed"),
5847
+ literal("waiting"),
4873
5848
  literal("stopped"),
4874
- literal("absent"),
4875
- literal("pending")
5849
+ literal("absent")
4876
5850
  ]),
4877
5851
  "waitingFor": array(string()),
4878
5852
  "error": string().optional()
4879
5853
  }),
4880
5854
  "client": object({
4881
5855
  "status": union([
5856
+ literal("pending"),
4882
5857
  literal("running"),
4883
- literal("waiting"),
4884
5858
  literal("failed"),
5859
+ literal("waiting"),
4885
5860
  literal("stopped"),
4886
- literal("absent"),
4887
- literal("pending")
5861
+ literal("absent")
4888
5862
  ]),
4889
5863
  "waitingFor": array(string()),
4890
5864
  "error": string().optional()
@@ -4915,8 +5889,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4915
5889
  number(),
4916
5890
  literal(false),
4917
5891
  literal(true),
4918
- array(lazy(() => JsonValueRemoteCodec$schema3)),
4919
- record(string(), lazy(() => JsonValueRemoteCodec$schema3))
5892
+ array(lazy(() => JsonValueRemoteCodec$schema3$1)),
5893
+ record(string(), lazy(() => JsonValueRemoteCodec$schema3$1))
4920
5894
  ]);
4921
5895
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_result$schema = union([object({
4922
5896
  "ok": literal(true),
@@ -4926,8 +5900,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4926
5900
  number(),
4927
5901
  literal(false),
4928
5902
  literal(true),
4929
- array(lazy(() => JsonValueRemoteCodec$schema4)),
4930
- record(string(), lazy(() => JsonValueRemoteCodec$schema4))
5903
+ array(lazy(() => JsonValueRemoteCodec$schema4$1)),
5904
+ record(string(), lazy(() => JsonValueRemoteCodec$schema4$1))
4931
5905
  ])
4932
5906
  }), intersection(object({
4933
5907
  "ok": literal(false),
@@ -4969,8 +5943,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4969
5943
  number(),
4970
5944
  literal(false),
4971
5945
  literal(true),
4972
- array(lazy(() => JsonValueRemoteCodec$schema2)),
4973
- record(string(), lazy(() => JsonValueRemoteCodec$schema2))
5946
+ array(lazy(() => JsonValueRemoteCodec$schema2$1)),
5947
+ record(string(), lazy(() => JsonValueRemoteCodec$schema2$1))
4974
5948
  ])
4975
5949
  }), object({
4976
5950
  "ok": literal(false),
@@ -5040,9 +6014,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5040
6014
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_result$schema = union([object({
5041
6015
  "ok": literal(true),
5042
6016
  "status": union([
6017
+ literal("running"),
5043
6018
  literal("awaiting-approval"),
5044
- literal("starting"),
5045
- literal("running")
6019
+ literal("starting")
5046
6020
  ]),
5047
6021
  "pluginId": intersection(string(), unknown()),
5048
6022
  "packageId": intersection(string(), unknown()),
@@ -5087,8 +6061,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5087
6061
  number(),
5088
6062
  literal(false),
5089
6063
  literal(true),
5090
- array(lazy(() => JsonValueRemoteCodec$schema)),
5091
- record(string(), lazy(() => JsonValueRemoteCodec$schema))
6064
+ array(lazy(() => JsonValueRemoteCodec$schema$1)),
6065
+ record(string(), lazy(() => JsonValueRemoteCodec$schema$1))
5092
6066
  ]),
5093
6067
  "outputSchema": union([
5094
6068
  literal(null),
@@ -5096,8 +6070,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5096
6070
  number(),
5097
6071
  literal(false),
5098
6072
  literal(true),
5099
- array(lazy(() => JsonValueRemoteCodec$schema)),
5100
- record(string(), lazy(() => JsonValueRemoteCodec$schema))
6073
+ array(lazy(() => JsonValueRemoteCodec$schema$1)),
6074
+ record(string(), lazy(() => JsonValueRemoteCodec$schema$1))
5101
6075
  ])
5102
6076
  }))
5103
6077
  }));
@@ -5112,7 +6086,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5112
6086
  "reason": literal("plugin-missing"),
5113
6087
  "message": string()
5114
6088
  })]);
5115
- const TYPERT_REMOTE$4 = {
6089
+ const TYPERT_REMOTE$6 = {
5116
6090
  package: "@deepseek-ai/dsh-cordis-host-runner",
5117
6091
  descriptors: [
5118
6092
  {
@@ -5230,7 +6204,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5230
6204
  source: "json",
5231
6205
  codec: {
5232
6206
  mode: "strict",
5233
- typeSymbol: "@deepseek-ai/dsh-session/types#JsonValue",
6207
+ typeSymbol: "@deepseek-ai/dsh-util-values#JsonValue",
5234
6208
  schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_3$schema
5235
6209
  }
5236
6210
  }
@@ -5416,491 +6390,2420 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5416
6390
  schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_2$schema
5417
6391
  }
5418
6392
  }
5419
- ],
6393
+ ],
6394
+ result: {
6395
+ mode: "strict",
6396
+ typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#CordisInspectResolveAck",
6397
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_result$schema
6398
+ },
6399
+ sourceLocation: {
6400
+ "file": "packages/extensions/cordis-host-runner/src/index.ts",
6401
+ "line": 511,
6402
+ "column": 3
6403
+ }
6404
+ },
6405
+ {
6406
+ id: "@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/resolveRequestRun",
6407
+ service: "dynamicCordisRunner",
6408
+ namespace: "dynamicCordisRunner",
6409
+ method: "resolveRequestRun",
6410
+ invocation: { kind: "direct" },
6411
+ parameters: [{
6412
+ name: "requestId",
6413
+ wire: "requestId",
6414
+ source: "json",
6415
+ codec: {
6416
+ mode: "strict",
6417
+ typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#ApprovalRequestId",
6418
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_0$schema
6419
+ }
6420
+ }, {
6421
+ name: "resolution",
6422
+ wire: "resolution",
6423
+ source: "json",
6424
+ codec: {
6425
+ mode: "strict",
6426
+ typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisRunResolution",
6427
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_1$schema
6428
+ }
6429
+ }],
6430
+ result: {
6431
+ mode: "strict",
6432
+ typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisResolveAck",
6433
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_result$schema
6434
+ },
6435
+ sourceLocation: {
6436
+ "file": "packages/extensions/cordis-host-runner/src/index.ts",
6437
+ "line": 413,
6438
+ "column": 9
6439
+ }
6440
+ },
6441
+ {
6442
+ id: "@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/runHostHalf",
6443
+ service: "dynamicCordisRunner",
6444
+ namespace: "dynamicCordisRunner",
6445
+ method: "runHostHalf",
6446
+ invocation: { kind: "direct" },
6447
+ scope: {
6448
+ context: "agent",
6449
+ wire: "agentId"
6450
+ },
6451
+ parameters: [
6452
+ {
6453
+ name: "agent",
6454
+ wire: "agentId",
6455
+ source: "lookup",
6456
+ lookup: "agent",
6457
+ codec: {
6458
+ mode: "strict",
6459
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
6460
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_0$schema
6461
+ }
6462
+ },
6463
+ {
6464
+ name: "pluginId",
6465
+ wire: "pluginId",
6466
+ source: "json",
6467
+ codec: {
6468
+ mode: "strict",
6469
+ typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId",
6470
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_1$schema
6471
+ }
6472
+ },
6473
+ {
6474
+ name: "packageId",
6475
+ wire: "packageId",
6476
+ source: "json",
6477
+ codec: {
6478
+ mode: "strict",
6479
+ typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPackageId",
6480
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_2$schema
6481
+ }
6482
+ },
6483
+ {
6484
+ name: "mode",
6485
+ wire: "mode",
6486
+ source: "json",
6487
+ codec: {
6488
+ mode: "strict",
6489
+ typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicRunMode",
6490
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_3$schema
6491
+ }
6492
+ },
6493
+ {
6494
+ name: "requestId",
6495
+ wire: "requestId",
6496
+ source: "json",
6497
+ codec: {
6498
+ mode: "strict",
6499
+ typeSymbol: "@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/runHostHalf:requestId",
6500
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_4$schema
6501
+ }
6502
+ },
6503
+ {
6504
+ name: "approveFutureVersions",
6505
+ wire: "approveFutureVersions",
6506
+ source: "json",
6507
+ codec: {
6508
+ mode: "strict",
6509
+ typeSymbol: "@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/runHostHalf:approveFutureVersions",
6510
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_5$schema
6511
+ }
6512
+ }
6513
+ ],
6514
+ result: {
6515
+ mode: "strict",
6516
+ typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisHostHalfResult",
6517
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_result$schema
6518
+ },
6519
+ sourceLocation: {
6520
+ "file": "packages/extensions/cordis-host-runner/src/index.ts",
6521
+ "line": 325,
6522
+ "column": 9
6523
+ }
6524
+ },
6525
+ {
6526
+ id: "@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/settleUserRun",
6527
+ service: "dynamicCordisRunner",
6528
+ namespace: "dynamicCordisRunner",
6529
+ method: "settleUserRun",
6530
+ invocation: { kind: "direct" },
6531
+ scope: {
6532
+ context: "agent",
6533
+ wire: "agentId"
6534
+ },
6535
+ parameters: [
6536
+ {
6537
+ name: "agent",
6538
+ wire: "agentId",
6539
+ source: "lookup",
6540
+ lookup: "agent",
6541
+ codec: {
6542
+ mode: "strict",
6543
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
6544
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_0$schema
6545
+ }
6546
+ },
6547
+ {
6548
+ name: "pluginId",
6549
+ wire: "pluginId",
6550
+ source: "json",
6551
+ codec: {
6552
+ mode: "strict",
6553
+ typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId",
6554
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_1$schema
6555
+ }
6556
+ },
6557
+ {
6558
+ name: "resolution",
6559
+ wire: "resolution",
6560
+ source: "json",
6561
+ codec: {
6562
+ mode: "strict",
6563
+ typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisRunResolution",
6564
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_2$schema
6565
+ }
6566
+ }
6567
+ ],
6568
+ result: {
6569
+ mode: "strict",
6570
+ typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisRunResponse",
6571
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_result$schema
6572
+ },
6573
+ sourceLocation: {
6574
+ "file": "packages/extensions/cordis-host-runner/src/index.ts",
6575
+ "line": 438,
6576
+ "column": 9
6577
+ }
6578
+ },
6579
+ {
6580
+ id: "@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/stopFromPanel",
6581
+ service: "dynamicCordisRunner",
6582
+ namespace: "dynamicCordisRunner",
6583
+ method: "stopFromPanel",
6584
+ invocation: { kind: "direct" },
6585
+ scope: {
6586
+ context: "agent",
6587
+ wire: "agentId"
6588
+ },
6589
+ parameters: [{
6590
+ name: "agent",
6591
+ wire: "agentId",
6592
+ source: "lookup",
6593
+ lookup: "agent",
6594
+ codec: {
6595
+ mode: "strict",
6596
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
6597
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_0$schema
6598
+ }
6599
+ }, {
6600
+ name: "pluginId",
6601
+ wire: "pluginId",
6602
+ source: "json",
6603
+ codec: {
6604
+ mode: "strict",
6605
+ typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId",
6606
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_1$schema
6607
+ }
6608
+ }],
6609
+ result: {
6610
+ mode: "strict",
6611
+ typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisStopResponse",
6612
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_result$schema
6613
+ },
6614
+ sourceLocation: {
6615
+ "file": "packages/extensions/cordis-host-runner/src/index.ts",
6616
+ "line": 480,
6617
+ "column": 9
6618
+ }
6619
+ },
6620
+ {
6621
+ id: "@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/syncInspectManifest",
6622
+ service: "dynamicCordisRunner",
6623
+ namespace: "dynamicCordisRunner",
6624
+ method: "syncInspectManifest",
6625
+ invocation: { kind: "direct" },
6626
+ parameters: [{
6627
+ name: "providers",
6628
+ wire: "providers",
6629
+ source: "json",
6630
+ codec: {
6631
+ mode: "strict",
6632
+ typeSymbol: "@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/syncInspectManifest:providers",
6633
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_syncInspectManifest_parameter_0$schema
6634
+ }
6635
+ }],
6636
+ result: {
6637
+ mode: "strict",
6638
+ typeSymbol: "@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/syncInspectManifest:result",
6639
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_syncInspectManifest_result$schema
6640
+ },
6641
+ sourceLocation: {
6642
+ "file": "packages/extensions/cordis-host-runner/src/index.ts",
6643
+ "line": 498,
6644
+ "column": 3
6645
+ }
6646
+ },
6647
+ {
6648
+ id: "@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/undefineFromPanel",
6649
+ service: "dynamicCordisRunner",
6650
+ namespace: "dynamicCordisRunner",
6651
+ method: "undefineFromPanel",
6652
+ invocation: { kind: "direct" },
6653
+ scope: {
6654
+ context: "agent",
6655
+ wire: "agentId"
6656
+ },
6657
+ parameters: [{
6658
+ name: "agent",
6659
+ wire: "agentId",
6660
+ source: "lookup",
6661
+ lookup: "agent",
6662
+ codec: {
6663
+ mode: "strict",
6664
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
6665
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_0$schema
6666
+ }
6667
+ }, {
6668
+ name: "pluginId",
6669
+ wire: "pluginId",
6670
+ source: "json",
6671
+ codec: {
6672
+ mode: "strict",
6673
+ typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId",
6674
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_1$schema
6675
+ }
6676
+ }],
6677
+ result: {
6678
+ mode: "strict",
6679
+ typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisUndefineReceipt",
6680
+ schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_result$schema
6681
+ },
6682
+ sourceLocation: {
6683
+ "file": "packages/extensions/cordis-host-runner/src/index.ts",
6684
+ "line": 227,
6685
+ "column": 9
6686
+ }
6687
+ }
6688
+ ]
6689
+ };
6690
+ const TYPERT_REMOTE$5 = {
6691
+ package: "@deepseek-ai/dsh-host-plugin-inventory",
6692
+ descriptors: [{
6693
+ id: "@deepseek-ai/dsh-host-plugin-inventory#pluginInventory/list",
6694
+ service: "pluginInventory",
6695
+ namespace: "pluginInventory",
6696
+ method: "list",
6697
+ invocation: { kind: "direct" },
6698
+ parameters: [],
6699
+ result: {
6700
+ mode: "strict",
6701
+ typeSymbol: "@deepseek-ai/dsh-host-plugin-inventory/types#PluginInventorySnapshot",
6702
+ schema: object({
6703
+ "entries": array(object({
6704
+ "entryId": intersection(string(), unknown()).readonly(),
6705
+ "moduleName": string().readonly(),
6706
+ "enabled": boolean().readonly(),
6707
+ "fiberPhase": union([
6708
+ literal(null),
6709
+ literal("pending"),
6710
+ literal("active"),
6711
+ literal("failed"),
6712
+ literal("loading"),
6713
+ literal("unloading")
6714
+ ]).readonly()
6715
+ })).readonly(),
6716
+ "agentPresets": array(object({
6717
+ "id": string().readonly(),
6718
+ "trust": union([literal("system"), literal("user")]).readonly(),
6719
+ "name": string().readonly().optional(),
6720
+ "isDefault": boolean().readonly(),
6721
+ "broken": string().readonly().optional(),
6722
+ "rows": array(object({
6723
+ "entryId": union([literal(null), string()]).readonly(),
6724
+ "moduleName": string().readonly(),
6725
+ "enabled": union([
6726
+ literal(false),
6727
+ literal(true),
6728
+ literal("conditional")
6729
+ ]).readonly(),
6730
+ "condition": string().readonly().optional(),
6731
+ "fiberPhase": union([
6732
+ literal(null),
6733
+ literal("pending"),
6734
+ literal("active"),
6735
+ literal("failed"),
6736
+ literal("loading"),
6737
+ literal("unloading")
6738
+ ]).readonly()
6739
+ })).readonly()
6740
+ })).readonly().optional()
6741
+ })
6742
+ },
6743
+ sourceLocation: {
6744
+ "file": "packages/host/plugin-inventory/src/index.ts",
6745
+ "line": 66,
6746
+ "column": 9
6747
+ }
6748
+ }]
6749
+ };
6750
+ //#endregion
6751
+ //#region ../../feedback/message-feedback/lib/typert.remote-client.js
6752
+ const _deepseek_ai_dsh_message_feedback_messageFeedback_delete_parameter_0$schema = object({
6753
+ "sessionId": intersection(string(), unknown()).readonly(),
6754
+ "messageId": intersection(string(), unknown()).readonly(),
6755
+ "ifVersion": intersection(string(), unknown()).readonly()
6756
+ });
6757
+ const _deepseek_ai_dsh_message_feedback_messageFeedback_delete_result$schema = union([object({
6758
+ "ok": literal(true).readonly(),
6759
+ "value": object({ "absent": literal(true).readonly() }).readonly()
6760
+ }), object({
6761
+ "ok": literal(false).readonly(),
6762
+ "error": union([object({
6763
+ "code": literal("session-not-found").readonly(),
6764
+ "sessionId": intersection(string(), unknown()).readonly()
6765
+ }), object({
6766
+ "code": literal("version-conflict").readonly(),
6767
+ "current": union([literal(null), object({
6768
+ "messageId": intersection(string(), unknown()).readonly(),
6769
+ "rating": union([literal("positive"), literal("negative")]).readonly(),
6770
+ "note": string().readonly().optional(),
6771
+ "version": intersection(string(), unknown()).readonly(),
6772
+ "createdAt": number().readonly(),
6773
+ "updatedAt": number().readonly()
6774
+ })]).readonly()
6775
+ })]).readonly()
6776
+ })]);
6777
+ const _deepseek_ai_dsh_message_feedback_messageFeedback_list_parameter_0$schema = object({ "sessionId": intersection(string(), unknown()).readonly() });
6778
+ const _deepseek_ai_dsh_message_feedback_messageFeedback_list_result$schema = union([object({
6779
+ "ok": literal(true).readonly(),
6780
+ "value": object({ "items": array(object({
6781
+ "messageId": intersection(string(), unknown()).readonly(),
6782
+ "rating": union([literal("positive"), literal("negative")]).readonly(),
6783
+ "note": string().readonly().optional(),
6784
+ "version": intersection(string(), unknown()).readonly(),
6785
+ "createdAt": number().readonly(),
6786
+ "updatedAt": number().readonly()
6787
+ })).readonly() }).readonly()
6788
+ }), object({
6789
+ "ok": literal(false).readonly(),
6790
+ "error": object({
6791
+ "code": literal("session-not-found").readonly(),
6792
+ "sessionId": intersection(string(), unknown()).readonly()
6793
+ }).readonly()
6794
+ })]);
6795
+ const _deepseek_ai_dsh_message_feedback_messageFeedback_put_parameter_0$schema = object({
6796
+ "sessionId": intersection(string(), unknown()).readonly(),
6797
+ "messageId": intersection(string(), unknown()).readonly(),
6798
+ "rating": union([literal("positive"), literal("negative")]).readonly(),
6799
+ "note": string().readonly().optional(),
6800
+ "ifVersion": union([literal(null), intersection(string(), unknown())]).readonly()
6801
+ });
6802
+ const _deepseek_ai_dsh_message_feedback_messageFeedback_put_result$schema = union([object({
6803
+ "ok": literal(true).readonly(),
6804
+ "value": object({
6805
+ "messageId": intersection(string(), unknown()).readonly(),
6806
+ "rating": union([literal("positive"), literal("negative")]).readonly(),
6807
+ "note": string().readonly().optional(),
6808
+ "version": intersection(string(), unknown()).readonly(),
6809
+ "createdAt": number().readonly(),
6810
+ "updatedAt": number().readonly()
6811
+ }).readonly()
6812
+ }), object({
6813
+ "ok": literal(false).readonly(),
6814
+ "error": union([
6815
+ object({
6816
+ "code": literal("session-not-found").readonly(),
6817
+ "sessionId": intersection(string(), unknown()).readonly()
6818
+ }),
6819
+ object({
6820
+ "code": literal("target-not-found").readonly(),
6821
+ "sessionId": intersection(string(), unknown()).readonly(),
6822
+ "messageId": intersection(string(), unknown()).readonly()
6823
+ }),
6824
+ object({
6825
+ "code": literal("version-conflict").readonly(),
6826
+ "current": union([literal(null), object({
6827
+ "messageId": intersection(string(), unknown()).readonly(),
6828
+ "rating": union([literal("positive"), literal("negative")]).readonly(),
6829
+ "note": string().readonly().optional(),
6830
+ "version": intersection(string(), unknown()).readonly(),
6831
+ "createdAt": number().readonly(),
6832
+ "updatedAt": number().readonly()
6833
+ })]).readonly()
6834
+ }),
6835
+ object({ "code": literal("note-blank").readonly() }),
6836
+ object({
6837
+ "code": literal("note-too-large").readonly(),
6838
+ "maxBytes": number().readonly(),
6839
+ "actualBytes": number().readonly()
6840
+ })
6841
+ ]).readonly()
6842
+ })]);
6843
+ const TYPERT_REMOTE$4 = {
6844
+ package: "@deepseek-ai/dsh-message-feedback",
6845
+ descriptors: [
6846
+ {
6847
+ id: "@deepseek-ai/dsh-message-feedback#messageFeedback/delete",
6848
+ service: "messageFeedback",
6849
+ namespace: "messageFeedback",
6850
+ method: "delete",
6851
+ invocation: { kind: "direct" },
6852
+ parameters: [{
6853
+ name: "request",
6854
+ wire: "request",
6855
+ source: "json",
6856
+ codec: {
6857
+ mode: "strict",
6858
+ typeSymbol: "@deepseek-ai/dsh-message-feedback/types#MessageFeedbackDeleteRequest",
6859
+ schema: _deepseek_ai_dsh_message_feedback_messageFeedback_delete_parameter_0$schema
6860
+ }
6861
+ }],
6862
+ result: {
6863
+ mode: "strict",
6864
+ typeSymbol: "@deepseek-ai/dsh-message-feedback/types#MessageFeedbackDeleteResult",
6865
+ schema: _deepseek_ai_dsh_message_feedback_messageFeedback_delete_result$schema
6866
+ },
6867
+ sourceLocation: {
6868
+ "file": "packages/feedback/message-feedback/src/index.ts",
6869
+ "line": 272,
6870
+ "column": 3
6871
+ }
6872
+ },
6873
+ {
6874
+ id: "@deepseek-ai/dsh-message-feedback#messageFeedback/list",
6875
+ service: "messageFeedback",
6876
+ namespace: "messageFeedback",
6877
+ method: "list",
6878
+ invocation: { kind: "direct" },
6879
+ parameters: [{
6880
+ name: "request",
6881
+ wire: "request",
6882
+ source: "json",
6883
+ codec: {
6884
+ mode: "strict",
6885
+ typeSymbol: "@deepseek-ai/dsh-message-feedback/types#MessageFeedbackListRequest",
6886
+ schema: _deepseek_ai_dsh_message_feedback_messageFeedback_list_parameter_0$schema
6887
+ }
6888
+ }],
6889
+ result: {
6890
+ mode: "strict",
6891
+ typeSymbol: "@deepseek-ai/dsh-message-feedback/types#MessageFeedbackListResult",
6892
+ schema: _deepseek_ai_dsh_message_feedback_messageFeedback_list_result$schema
6893
+ },
6894
+ sourceLocation: {
6895
+ "file": "packages/feedback/message-feedback/src/index.ts",
6896
+ "line": 190,
6897
+ "column": 9
6898
+ }
6899
+ },
6900
+ {
6901
+ id: "@deepseek-ai/dsh-message-feedback#messageFeedback/put",
6902
+ service: "messageFeedback",
6903
+ namespace: "messageFeedback",
6904
+ method: "put",
6905
+ invocation: { kind: "direct" },
6906
+ parameters: [{
6907
+ name: "request",
6908
+ wire: "request",
6909
+ source: "json",
6910
+ codec: {
6911
+ mode: "strict",
6912
+ typeSymbol: "@deepseek-ai/dsh-message-feedback/types#MessageFeedbackPutRequest",
6913
+ schema: _deepseek_ai_dsh_message_feedback_messageFeedback_put_parameter_0$schema
6914
+ }
6915
+ }],
6916
+ result: {
6917
+ mode: "strict",
6918
+ typeSymbol: "@deepseek-ai/dsh-message-feedback/types#MessageFeedbackPutResult",
6919
+ schema: _deepseek_ai_dsh_message_feedback_messageFeedback_put_result$schema
6920
+ },
6921
+ sourceLocation: {
6922
+ "file": "packages/feedback/message-feedback/src/index.ts",
6923
+ "line": 206,
6924
+ "column": 3
6925
+ }
6926
+ }
6927
+ ]
6928
+ };
6929
+ //#endregion
6930
+ //#region ../../context/session-reference/lib/typert.remote-client.js
6931
+ const _deepseek_ai_dsh_session_reference_sessionReferenceResolver_candidates_parameter_0$schema = intersection(string(), unknown());
6932
+ const _deepseek_ai_dsh_session_reference_sessionReferenceResolver_candidates_parameter_1$schema = string();
6933
+ const _deepseek_ai_dsh_session_reference_sessionReferenceResolver_candidates_result$schema = array(object({
6934
+ "mention": string(),
6935
+ "sessionId": intersection(string(), unknown()),
6936
+ "label": string(),
6937
+ "cwd": string().optional(),
6938
+ "sameWorkspace": boolean(),
6939
+ "createdAt": number()
6940
+ }));
6941
+ const TYPERT_REMOTE$3 = {
6942
+ package: "@deepseek-ai/dsh-session-reference",
6943
+ descriptors: [{
6944
+ id: "@deepseek-ai/dsh-session-reference#sessionReferenceResolver/candidates",
6945
+ service: "sessionReferenceResolver",
6946
+ namespace: "sessionReferenceResolver",
6947
+ method: "candidates",
6948
+ implementation: "remoteExportCandidates",
6949
+ invocation: { kind: "direct" },
6950
+ scope: {
6951
+ context: "agent",
6952
+ wire: "agentId"
6953
+ },
6954
+ parameters: [{
6955
+ name: "agent",
6956
+ wire: "agentId",
6957
+ source: "lookup",
6958
+ lookup: "agent",
6959
+ codec: {
6960
+ mode: "strict",
6961
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
6962
+ schema: _deepseek_ai_dsh_session_reference_sessionReferenceResolver_candidates_parameter_0$schema
6963
+ }
6964
+ }, {
6965
+ name: "query",
6966
+ wire: "query",
6967
+ source: "json",
6968
+ codec: {
6969
+ mode: "strict",
6970
+ typeSymbol: "@deepseek-ai/dsh-session-reference#sessionReferenceResolver/candidates:query",
6971
+ schema: _deepseek_ai_dsh_session_reference_sessionReferenceResolver_candidates_parameter_1$schema
6972
+ }
6973
+ }],
6974
+ cancellation: { parameter: "signal" },
6975
+ result: {
6976
+ mode: "strict",
6977
+ typeSymbol: "@deepseek-ai/dsh-session-reference#sessionReferenceResolver/candidates:result",
6978
+ schema: _deepseek_ai_dsh_session_reference_sessionReferenceResolver_candidates_result$schema
6979
+ },
6980
+ sourceLocation: {
6981
+ "file": "packages/context/session-reference/src/index.ts",
6982
+ "line": 245,
6983
+ "column": 9
6984
+ }
6985
+ }]
6986
+ };
6987
+ //#endregion
6988
+ //#region ../../subagent/subagent/lib/typert.remote-client.js
6989
+ const _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_0$schema = intersection(string(), unknown());
6990
+ const _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_1$schema = intersection(string(), unknown());
6991
+ const _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_2$schema = literal("continuable");
6992
+ const _deepseek_ai_dsh_subagent_subagents_interruptByParent_result$schema = object({ "accepted": literal(true).readonly() });
6993
+ const _deepseek_ai_dsh_subagent_subagents_list_parameter_0$schema = intersection(string(), unknown());
6994
+ const _deepseek_ai_dsh_subagent_subagents_list_result$schema = object({
6995
+ "entries": array(union([
6996
+ intersection(object({
6997
+ "kind": literal("child").readonly(),
6998
+ "id": intersection(string(), unknown()).readonly(),
6999
+ "activity": union([literal("running"), literal("inactive")]).readonly(),
7000
+ "hasChildren": boolean().readonly()
7001
+ }), object({
7002
+ "mode": literal("one-shot").readonly(),
7003
+ "label": string().readonly().optional()
7004
+ })),
7005
+ intersection(object({
7006
+ "kind": literal("child").readonly(),
7007
+ "id": intersection(string(), unknown()).readonly(),
7008
+ "activity": union([literal("running"), literal("inactive")]).readonly(),
7009
+ "hasChildren": boolean().readonly()
7010
+ }), object({
7011
+ "mode": literal("continuable").readonly(),
7012
+ "label": string().readonly()
7013
+ })),
7014
+ object({
7015
+ "kind": literal("diagnostic").readonly(),
7016
+ "id": intersection(string(), unknown()).readonly(),
7017
+ "reason": union([
7018
+ literal("corrupt"),
7019
+ literal("unsupported"),
7020
+ literal("unavailable")
7021
+ ]).readonly()
7022
+ })
7023
+ ])).readonly(),
7024
+ "parentAvailable": boolean().readonly()
7025
+ });
7026
+ const _deepseek_ai_dsh_subagent_subagents_prompt_parameter_0$schema = object({
7027
+ "requestId": intersection(string(), unknown()).readonly(),
7028
+ "parentSessionId": intersection(string(), unknown()).readonly(),
7029
+ "childSessionId": intersection(string(), unknown()).readonly(),
7030
+ "mode": literal("continuable").readonly(),
7031
+ "content": array(union([object({
7032
+ "type": literal("text").readonly(),
7033
+ "text": string().readonly()
7034
+ }), object({
7035
+ "type": literal("image").readonly(),
7036
+ "mediaType": union([
7037
+ literal("image/png"),
7038
+ literal("image/jpeg"),
7039
+ literal("image/webp"),
7040
+ literal("image/gif")
7041
+ ]).readonly(),
7042
+ "data": string().readonly(),
7043
+ "name": string().readonly().optional()
7044
+ })])).readonly(),
7045
+ "clientTimeZone": string().readonly().optional()
7046
+ });
7047
+ const _deepseek_ai_dsh_subagent_subagents_prompt_result$schema = object({ "messageId": intersection(string(), unknown()).readonly() });
7048
+ const TYPERT_REMOTE$2 = {
7049
+ package: "@deepseek-ai/dsh-subagent",
7050
+ descriptors: [
7051
+ {
7052
+ id: "@deepseek-ai/dsh-subagent#subagents/interruptByParent",
7053
+ service: "subagents",
7054
+ namespace: "subagents",
7055
+ method: "interruptByParent",
7056
+ invocation: { kind: "direct" },
7057
+ parameters: [
7058
+ {
7059
+ name: "childSessionId",
7060
+ wire: "childSessionId",
7061
+ source: "json",
7062
+ codec: {
7063
+ mode: "strict",
7064
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
7065
+ schema: _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_0$schema
7066
+ }
7067
+ },
7068
+ {
7069
+ name: "parentSessionId",
7070
+ wire: "parentSessionId",
7071
+ source: "json",
7072
+ codec: {
7073
+ mode: "strict",
7074
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
7075
+ schema: _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_1$schema
7076
+ }
7077
+ },
7078
+ {
7079
+ name: "mode",
7080
+ wire: "mode",
7081
+ source: "json",
7082
+ codec: {
7083
+ mode: "strict",
7084
+ typeSymbol: "@deepseek-ai/dsh-subagent#subagents/interruptByParent:mode",
7085
+ schema: _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_2$schema
7086
+ }
7087
+ }
7088
+ ],
7089
+ result: {
7090
+ mode: "strict",
7091
+ typeSymbol: "@deepseek-ai/dsh-subagent/client#SubagentInterruptReceipt",
7092
+ schema: _deepseek_ai_dsh_subagent_subagents_interruptByParent_result$schema
7093
+ },
7094
+ sourceLocation: {
7095
+ "file": "packages/subagent/subagent/src/index.ts",
7096
+ "line": 491,
7097
+ "column": 3
7098
+ }
7099
+ },
7100
+ {
7101
+ id: "@deepseek-ai/dsh-subagent#subagents/list",
7102
+ service: "subagents",
7103
+ namespace: "subagents",
7104
+ method: "list",
7105
+ implementation: "remoteExportList",
7106
+ invocation: { kind: "direct" },
7107
+ parameters: [{
7108
+ name: "parentSessionId",
7109
+ wire: "parentSessionId",
7110
+ source: "json",
7111
+ codec: {
7112
+ mode: "strict",
7113
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
7114
+ schema: _deepseek_ai_dsh_subagent_subagents_list_parameter_0$schema
7115
+ }
7116
+ }],
7117
+ cancellation: { parameter: "signal" },
7118
+ result: {
7119
+ mode: "strict",
7120
+ typeSymbol: "@deepseek-ai/dsh-subagent/client#SubagentCatalog",
7121
+ schema: _deepseek_ai_dsh_subagent_subagents_list_result$schema
7122
+ },
7123
+ sourceLocation: {
7124
+ "file": "packages/subagent/subagent/src/index.ts",
7125
+ "line": 407,
7126
+ "column": 9
7127
+ }
7128
+ },
7129
+ {
7130
+ id: "@deepseek-ai/dsh-subagent#subagents/prompt",
7131
+ service: "subagents",
7132
+ namespace: "subagents",
7133
+ method: "prompt",
7134
+ invocation: { kind: "direct" },
7135
+ parameters: [{
7136
+ name: "request",
7137
+ wire: "request",
7138
+ source: "json",
7139
+ codec: {
7140
+ mode: "strict",
7141
+ typeSymbol: "@deepseek-ai/dsh-subagent/client#SubagentPromptRequest",
7142
+ schema: _deepseek_ai_dsh_subagent_subagents_prompt_parameter_0$schema
7143
+ }
7144
+ }],
7145
+ cancellation: { parameter: "signal" },
7146
+ result: {
7147
+ mode: "strict",
7148
+ typeSymbol: "@deepseek-ai/dsh-subagent/client#SubagentPromptReceipt",
7149
+ schema: _deepseek_ai_dsh_subagent_subagents_prompt_result$schema
7150
+ },
7151
+ sourceLocation: {
7152
+ "file": "packages/subagent/subagent/src/index.ts",
7153
+ "line": 433,
7154
+ "column": 9
7155
+ }
7156
+ }
7157
+ ]
7158
+ };
7159
+ //#endregion
7160
+ //#region ../session-controller/lib/typert.remote-client.js
7161
+ const ContentBlockRemoteCodec$schema = union([
7162
+ object({
7163
+ "type": literal("text"),
7164
+ "text": string()
7165
+ }),
7166
+ object({
7167
+ "type": literal("image"),
7168
+ "attachment": object({
7169
+ "attachmentId": intersection(string(), unknown()),
7170
+ "mediaType": union([
7171
+ literal("image/png"),
7172
+ literal("image/jpeg"),
7173
+ literal("image/webp"),
7174
+ literal("image/gif")
7175
+ ]),
7176
+ "bytes": number(),
7177
+ "width": number(),
7178
+ "height": number(),
7179
+ "name": string().optional(),
7180
+ "originalDimensions": object({
7181
+ "width": number(),
7182
+ "height": number()
7183
+ }).optional()
7184
+ })
7185
+ }),
7186
+ object({
7187
+ "type": literal("reasoning"),
7188
+ "text": string()
7189
+ }),
7190
+ object({
7191
+ "type": literal("tool-call"),
7192
+ "id": intersection(string(), unknown()),
7193
+ "name": string(),
7194
+ "arguments": string()
7195
+ }),
7196
+ object({
7197
+ "type": literal("tool-result"),
7198
+ "toolCallId": intersection(string(), unknown()),
7199
+ "content": array(lazy(() => ContentBlockRemoteCodec$schema)),
7200
+ "isError": boolean().optional()
7201
+ })
7202
+ ]);
7203
+ const JsonValueRemoteCodec$schema = union([
7204
+ literal(null),
7205
+ string(),
7206
+ number(),
7207
+ literal(false),
7208
+ literal(true),
7209
+ array(lazy(() => JsonValueRemoteCodec$schema)),
7210
+ record(string(), lazy(() => JsonValueRemoteCodec$schema))
7211
+ ]);
7212
+ const JsonValueRemoteCodec$schema2 = union([
7213
+ literal(null),
7214
+ string(),
7215
+ number(),
7216
+ literal(false),
7217
+ literal(true),
7218
+ array(lazy(() => JsonValueRemoteCodec$schema2)),
7219
+ record(string(), lazy(() => JsonValueRemoteCodec$schema2))
7220
+ ]);
7221
+ const JsonValueRemoteCodec$schema3 = union([
7222
+ literal(null),
7223
+ string(),
7224
+ number(),
7225
+ literal(false),
7226
+ literal(true),
7227
+ array(lazy(() => JsonValueRemoteCodec$schema3)),
7228
+ record(string(), lazy(() => JsonValueRemoteCodec$schema3))
7229
+ ]);
7230
+ const JsonValueRemoteCodec$schema4 = union([
7231
+ literal(null),
7232
+ string(),
7233
+ number(),
7234
+ literal(false),
7235
+ literal(true),
7236
+ array(lazy(() => JsonValueRemoteCodec$schema4)),
7237
+ record(string(), lazy(() => JsonValueRemoteCodec$schema4))
7238
+ ]);
7239
+ const _deepseek_ai_dsh_api_session_controller_fileReferences_list_parameter_0$schema = intersection(string(), unknown());
7240
+ const _deepseek_ai_dsh_api_session_controller_fileReferences_list_parameter_1$schema = string();
7241
+ const _deepseek_ai_dsh_api_session_controller_fileReferences_list_result$schema = array(object({
7242
+ "path": string(),
7243
+ "kind": union([literal("file"), literal("directory")])
7244
+ }));
7245
+ const _deepseek_ai_dsh_api_session_controller_session_attachment_parameter_0$schema = object({
7246
+ "sessionId": intersection(string(), unknown()).readonly(),
7247
+ "attachmentId": intersection(string(), unknown()).readonly()
7248
+ });
7249
+ const _deepseek_ai_dsh_api_session_controller_session_attachment_result$schema = object({
7250
+ "attachment": object({
7251
+ "attachmentId": intersection(string(), unknown()),
7252
+ "mediaType": union([
7253
+ literal("image/png"),
7254
+ literal("image/jpeg"),
7255
+ literal("image/webp"),
7256
+ literal("image/gif")
7257
+ ]),
7258
+ "bytes": number(),
7259
+ "width": number(),
7260
+ "height": number(),
7261
+ "name": string().optional(),
7262
+ "originalDimensions": object({
7263
+ "width": number(),
7264
+ "height": number()
7265
+ }).optional()
7266
+ }).readonly(),
7267
+ "data": string().readonly()
7268
+ });
7269
+ const _deepseek_ai_dsh_api_session_controller_session_cancel_parameter_0$schema = object({ "sessionId": intersection(string(), unknown()).readonly() });
7270
+ const _deepseek_ai_dsh_api_session_controller_session_cancel_result$schema = object({ "accepted": literal(true).readonly() });
7271
+ const _deepseek_ai_dsh_api_session_controller_session_canOpenWorkspacePath_result$schema = boolean();
7272
+ const _deepseek_ai_dsh_api_session_controller_session_control_result$schema = union([
7273
+ object({
7274
+ "type": literal("baseline").readonly(),
7275
+ "value": object({
7276
+ "queues": record(intersection(string(), unknown()), array(object({
7277
+ "id": intersection(string(), unknown()).readonly(),
7278
+ "placement": union([
7279
+ literal("queued"),
7280
+ literal("steering"),
7281
+ literal("context")
7282
+ ]).readonly(),
7283
+ "rpcId": intersection(string(), unknown()).readonly().optional(),
7284
+ "message": object({
7285
+ "id": intersection(string(), unknown()).readonly(),
7286
+ "content": array(union([
7287
+ literal(null),
7288
+ string(),
7289
+ number(),
7290
+ literal(false),
7291
+ literal(true),
7292
+ array(lazy(() => JsonValueRemoteCodec$schema4)),
7293
+ record(string(), lazy(() => JsonValueRemoteCodec$schema4))
7294
+ ])).readonly()
7295
+ }).readonly()
7296
+ }))).readonly().readonly(),
7297
+ "jobs": record(intersection(string(), unknown()), array(object({
7298
+ "id": intersection(string(), unknown()).readonly(),
7299
+ "kind": string().readonly(),
7300
+ "label": string().readonly(),
7301
+ "status": union([
7302
+ literal("completed"),
7303
+ literal("running"),
7304
+ literal("stopping"),
7305
+ literal("killed"),
7306
+ literal("failed")
7307
+ ]).readonly(),
7308
+ "detail": string().readonly().optional(),
7309
+ "startedAt": number().readonly(),
7310
+ "finishedAt": number().readonly().optional()
7311
+ }))).readonly().readonly(),
7312
+ "projections": record(intersection(string(), unknown()), object({
7313
+ "asOfSeq": number().readonly(),
7314
+ "values": intersection(object({
7315
+ "agentPreset": union([literal(null), string()]).optional(),
7316
+ "title": union([literal(null), string()]).optional(),
7317
+ "todos": union([literal(null), array(object({
7318
+ "content": string(),
7319
+ "status": union([
7320
+ literal("pending"),
7321
+ literal("in_progress"),
7322
+ literal("completed")
7323
+ ])
7324
+ }))]).optional(),
7325
+ "sessionListMetadata": object({
7326
+ "blank": boolean().readonly(),
7327
+ "lastPromptAt": union([literal(null), number()]).readonly()
7328
+ }).optional(),
7329
+ "imageLimits": object({
7330
+ "maxImageBytes": number(),
7331
+ "maxImagesPerMessage": number(),
7332
+ "maxMessageImageBytes": number(),
7333
+ "maxImagePixels": number(),
7334
+ "maxImageDimension": number(),
7335
+ "mediaTypes": array(union([
7336
+ literal("image/png"),
7337
+ literal("image/jpeg"),
7338
+ literal("image/webp"),
7339
+ literal("image/gif")
7340
+ ]))
7341
+ }).optional(),
7342
+ "modelSelection": object({
7343
+ "lastUsed": union([literal(null), object({
7344
+ "provider": string().readonly(),
7345
+ "model": string().readonly(),
7346
+ "reasoningEffort": string().readonly().optional()
7347
+ })]).readonly(),
7348
+ "next": union([literal(null), object({
7349
+ "provider": string().readonly(),
7350
+ "model": string().readonly(),
7351
+ "reasoningEffort": string().readonly().optional()
7352
+ })]).readonly()
7353
+ }).optional(),
7354
+ "subagentTiming": object({
7355
+ "settledMs": number(),
7356
+ "active": object({
7357
+ "since": number(),
7358
+ "through": number()
7359
+ }).optional()
7360
+ }).optional(),
7361
+ "subagent": union([
7362
+ literal(null),
7363
+ object({
7364
+ "mode": literal("one-shot"),
7365
+ "label": string().optional(),
7366
+ "seq": number()
7367
+ }),
7368
+ object({
7369
+ "mode": literal("continuable"),
7370
+ "label": string(),
7371
+ "seq": number()
7372
+ })
7373
+ ]).optional(),
7374
+ "goal": union([literal(null), object({
7375
+ "goal": object({
7376
+ "objective": string().readonly(),
7377
+ "phase": union([
7378
+ literal("active"),
7379
+ literal("paused"),
7380
+ literal("blocked"),
7381
+ literal("complete")
7382
+ ]).readonly(),
7383
+ "blockedReason": object({
7384
+ "code": string().readonly(),
7385
+ "message": string().readonly()
7386
+ }).readonly().optional(),
7387
+ "maxGoalRounds": number().readonly(),
7388
+ "id": intersection(string(), unknown()).readonly(),
7389
+ "revision": number().readonly()
7390
+ }).readonly(),
7391
+ "roundsStarted": number().readonly(),
7392
+ "createdAt": number().readonly(),
7393
+ "updatedAt": number().readonly()
7394
+ })]).optional()
7395
+ }), record(string(), union([
7396
+ literal(null),
7397
+ string(),
7398
+ number(),
7399
+ literal(false),
7400
+ literal(true),
7401
+ array(lazy(() => JsonValueRemoteCodec$schema4)),
7402
+ record(string(), lazy(() => JsonValueRemoteCodec$schema4))
7403
+ ])).readonly()).readonly()
7404
+ })).readonly().readonly()
7405
+ }).readonly()
7406
+ }),
7407
+ object({
7408
+ "type": literal("queue").readonly(),
7409
+ "sessionId": intersection(string(), unknown()).readonly(),
7410
+ "items": array(object({
7411
+ "id": intersection(string(), unknown()).readonly(),
7412
+ "placement": union([
7413
+ literal("queued"),
7414
+ literal("steering"),
7415
+ literal("context")
7416
+ ]).readonly(),
7417
+ "rpcId": intersection(string(), unknown()).readonly().optional(),
7418
+ "message": object({
7419
+ "id": intersection(string(), unknown()).readonly(),
7420
+ "content": array(union([
7421
+ literal(null),
7422
+ string(),
7423
+ number(),
7424
+ literal(false),
7425
+ literal(true),
7426
+ array(lazy(() => JsonValueRemoteCodec$schema4)),
7427
+ record(string(), lazy(() => JsonValueRemoteCodec$schema4))
7428
+ ])).readonly()
7429
+ }).readonly()
7430
+ })).readonly()
7431
+ }),
7432
+ object({
7433
+ "type": literal("jobs").readonly(),
7434
+ "sessionId": intersection(string(), unknown()).readonly(),
7435
+ "jobs": array(object({
7436
+ "id": intersection(string(), unknown()).readonly(),
7437
+ "kind": string().readonly(),
7438
+ "label": string().readonly(),
7439
+ "status": union([
7440
+ literal("completed"),
7441
+ literal("running"),
7442
+ literal("stopping"),
7443
+ literal("killed"),
7444
+ literal("failed")
7445
+ ]).readonly(),
7446
+ "detail": string().readonly().optional(),
7447
+ "startedAt": number().readonly(),
7448
+ "finishedAt": number().readonly().optional()
7449
+ })).readonly()
7450
+ }),
7451
+ intersection(object({ "type": literal("projection").readonly() }), object({
7452
+ "sessionId": intersection(string(), unknown()).readonly(),
7453
+ "key": string().readonly(),
7454
+ "value": union([
7455
+ literal(null),
7456
+ string(),
7457
+ number(),
7458
+ literal(false),
7459
+ literal(true),
7460
+ array(lazy(() => JsonValueRemoteCodec$schema4)),
7461
+ record(string(), lazy(() => JsonValueRemoteCodec$schema4))
7462
+ ]).readonly(),
7463
+ "seq": number().readonly()
7464
+ }))
7465
+ ]);
7466
+ const _deepseek_ai_dsh_api_session_controller_session_create_parameter_0$schema = object({
7467
+ "workspaceId": intersection(string(), unknown()).readonly().optional(),
7468
+ "cwd": string().readonly().optional(),
7469
+ "sessionId": intersection(string(), unknown()).readonly().optional(),
7470
+ "agentPreset": string().readonly().optional()
7471
+ });
7472
+ const _deepseek_ai_dsh_api_session_controller_session_create_result$schema = object({
7473
+ "sessionId": intersection(string(), unknown()).readonly(),
7474
+ "agentPreset": string().readonly().optional()
7475
+ });
7476
+ const _deepseek_ai_dsh_api_session_controller_session_follow_parameter_0$schema = object({
7477
+ "address": union([object({
7478
+ "kind": literal("session").readonly(),
7479
+ "sessionId": intersection(string(), unknown()).readonly()
7480
+ }), object({
7481
+ "kind": literal("subagent").readonly(),
7482
+ "parentSessionId": intersection(string(), unknown()).readonly(),
7483
+ "childSessionId": intersection(string(), unknown()).readonly(),
7484
+ "mode": union([literal("one-shot"), literal("continuable")]).readonly()
7485
+ })]).readonly(),
7486
+ "maxMessages": number().readonly().optional()
7487
+ });
7488
+ const _deepseek_ai_dsh_api_session_controller_session_follow_result$schema = union([object({
7489
+ "type": literal("event").readonly(),
7490
+ "event": object({
7491
+ "type": string().readonly(),
7492
+ "seq": number().readonly(),
7493
+ "time": number().readonly(),
7494
+ "data": union([
7495
+ literal(null),
7496
+ string(),
7497
+ number(),
7498
+ literal(false),
7499
+ literal(true),
7500
+ array(lazy(() => JsonValueRemoteCodec$schema3)),
7501
+ record(string(), lazy(() => JsonValueRemoteCodec$schema3))
7502
+ ]).readonly(),
7503
+ "ignorable": literal(true).readonly().optional(),
7504
+ "sourceEventSeqs": array(number()).readonly().optional(),
7505
+ "surfaceOp": union([literal("append"), object({
7506
+ "op": literal("replace"),
7507
+ "start": number(),
7508
+ "end": number()
7509
+ })]).readonly().optional()
7510
+ }).readonly()
7511
+ }), object({
7512
+ "type": literal("snapshot").readonly(),
7513
+ "header": object({
7514
+ "version": number().readonly(),
7515
+ "id": intersection(string(), unknown()).readonly(),
7516
+ "createdAt": number().readonly(),
7517
+ "cwd": string().readonly().optional(),
7518
+ "parentSession": intersection(string(), unknown()).readonly().optional(),
7519
+ "seedLength": number().readonly().optional(),
7520
+ "origin": literal("subagent").readonly().optional(),
7521
+ "delegationDepth": number().readonly().optional(),
7522
+ "agentPreset": string().readonly().optional()
7523
+ }).readonly(),
7524
+ "cursor": number().readonly(),
7525
+ "records": array(union([object({
7526
+ "type": literal("event").readonly(),
7527
+ "event": object({
7528
+ "type": string().readonly(),
7529
+ "seq": number().readonly(),
7530
+ "time": number().readonly(),
7531
+ "data": union([
7532
+ literal(null),
7533
+ string(),
7534
+ number(),
7535
+ literal(false),
7536
+ literal(true),
7537
+ array(lazy(() => JsonValueRemoteCodec$schema3)),
7538
+ record(string(), lazy(() => JsonValueRemoteCodec$schema3))
7539
+ ]).readonly(),
7540
+ "ignorable": literal(true).readonly().optional(),
7541
+ "sourceEventSeqs": array(number()).readonly().optional(),
7542
+ "surfaceOp": union([literal("append"), object({
7543
+ "op": literal("replace"),
7544
+ "start": number(),
7545
+ "end": number()
7546
+ })]).readonly().optional()
7547
+ }).readonly()
7548
+ }), object({
7549
+ "type": literal("chunks").readonly(),
7550
+ "event": union([
7551
+ object({
7552
+ "type": literal("chunkrow/text-chunks").readonly(),
7553
+ "seq": number().readonly(),
7554
+ "time": number().readonly(),
7555
+ "data": object({
7556
+ "texts": array(string()),
7557
+ "turn": number(),
7558
+ "step": number(),
7559
+ "index": number(),
7560
+ "dt": array(number())
7561
+ }).readonly()
7562
+ }),
7563
+ object({
7564
+ "type": literal("chunkrow/reasoning-chunks").readonly(),
7565
+ "seq": number().readonly(),
7566
+ "time": number().readonly(),
7567
+ "data": object({
7568
+ "texts": array(string()),
7569
+ "turn": number(),
7570
+ "step": number(),
7571
+ "index": number(),
7572
+ "dt": array(number())
7573
+ }).readonly()
7574
+ }),
7575
+ object({
7576
+ "type": literal("chunkrow/tool-call-chunks").readonly(),
7577
+ "seq": number().readonly(),
7578
+ "time": number().readonly(),
7579
+ "data": object({
7580
+ "id": intersection(string(), unknown()),
7581
+ "name": string().optional(),
7582
+ "args": array(string()),
7583
+ "turn": number(),
7584
+ "step": number(),
7585
+ "index": number(),
7586
+ "dt": array(number())
7587
+ }).readonly()
7588
+ })
7589
+ ]).readonly()
7590
+ })])).readonly(),
7591
+ "hasMore": boolean().readonly(),
7592
+ "projections": object({
7593
+ "asOfSeq": number().readonly(),
7594
+ "values": intersection(object({
7595
+ "agentPreset": union([literal(null), string()]).optional(),
7596
+ "title": union([literal(null), string()]).optional(),
7597
+ "todos": union([literal(null), array(object({
7598
+ "content": string(),
7599
+ "status": union([
7600
+ literal("pending"),
7601
+ literal("in_progress"),
7602
+ literal("completed")
7603
+ ])
7604
+ }))]).optional(),
7605
+ "sessionListMetadata": object({
7606
+ "blank": boolean().readonly(),
7607
+ "lastPromptAt": union([literal(null), number()]).readonly()
7608
+ }).optional(),
7609
+ "imageLimits": object({
7610
+ "maxImageBytes": number(),
7611
+ "maxImagesPerMessage": number(),
7612
+ "maxMessageImageBytes": number(),
7613
+ "maxImagePixels": number(),
7614
+ "maxImageDimension": number(),
7615
+ "mediaTypes": array(union([
7616
+ literal("image/png"),
7617
+ literal("image/jpeg"),
7618
+ literal("image/webp"),
7619
+ literal("image/gif")
7620
+ ]))
7621
+ }).optional(),
7622
+ "modelSelection": object({
7623
+ "lastUsed": union([literal(null), object({
7624
+ "provider": string().readonly(),
7625
+ "model": string().readonly(),
7626
+ "reasoningEffort": string().readonly().optional()
7627
+ })]).readonly(),
7628
+ "next": union([literal(null), object({
7629
+ "provider": string().readonly(),
7630
+ "model": string().readonly(),
7631
+ "reasoningEffort": string().readonly().optional()
7632
+ })]).readonly()
7633
+ }).optional(),
7634
+ "subagentTiming": object({
7635
+ "settledMs": number(),
7636
+ "active": object({
7637
+ "since": number(),
7638
+ "through": number()
7639
+ }).optional()
7640
+ }).optional(),
7641
+ "subagent": union([
7642
+ literal(null),
7643
+ object({
7644
+ "mode": literal("one-shot"),
7645
+ "label": string().optional(),
7646
+ "seq": number()
7647
+ }),
7648
+ object({
7649
+ "mode": literal("continuable"),
7650
+ "label": string(),
7651
+ "seq": number()
7652
+ })
7653
+ ]).optional(),
7654
+ "goal": union([literal(null), object({
7655
+ "goal": object({
7656
+ "objective": string().readonly(),
7657
+ "phase": union([
7658
+ literal("active"),
7659
+ literal("paused"),
7660
+ literal("blocked"),
7661
+ literal("complete")
7662
+ ]).readonly(),
7663
+ "blockedReason": object({
7664
+ "code": string().readonly(),
7665
+ "message": string().readonly()
7666
+ }).readonly().optional(),
7667
+ "maxGoalRounds": number().readonly(),
7668
+ "id": intersection(string(), unknown()).readonly(),
7669
+ "revision": number().readonly()
7670
+ }).readonly(),
7671
+ "roundsStarted": number().readonly(),
7672
+ "createdAt": number().readonly(),
7673
+ "updatedAt": number().readonly()
7674
+ })]).optional()
7675
+ }), record(string(), union([
7676
+ literal(null),
7677
+ string(),
7678
+ number(),
7679
+ literal(false),
7680
+ literal(true),
7681
+ array(lazy(() => JsonValueRemoteCodec$schema3)),
7682
+ record(string(), lazy(() => JsonValueRemoteCodec$schema3))
7683
+ ])).readonly()).readonly()
7684
+ }).readonly()
7685
+ })]);
7686
+ const _deepseek_ai_dsh_api_session_controller_session_fork_parameter_0$schema = object({
7687
+ "sessionId": intersection(string(), unknown()).readonly(),
7688
+ "atSeq": number().readonly().optional()
7689
+ });
7690
+ const _deepseek_ai_dsh_api_session_controller_session_fork_result$schema = object({ "sessionId": intersection(string(), unknown()).readonly() });
7691
+ const _deepseek_ai_dsh_api_session_controller_session_list_parameter_0$schema = object({ "cursor": string().readonly().optional() });
7692
+ const _deepseek_ai_dsh_api_session_controller_session_list_result$schema = object({ "items": array(object({
7693
+ "sessionId": intersection(string(), unknown()).readonly(),
7694
+ "updatedAt": number().readonly(),
7695
+ "running": boolean().readonly(),
7696
+ "blank": boolean().readonly(),
7697
+ "parentSessionId": intersection(string(), unknown()).readonly().optional(),
7698
+ "origin": literal("subagent").readonly().optional(),
7699
+ "cwd": string().readonly().optional(),
7700
+ "projections": object({
7701
+ "asOfSeq": number().readonly(),
7702
+ "values": intersection(object({
7703
+ "agentPreset": union([literal(null), string()]).optional(),
7704
+ "title": union([literal(null), string()]).optional(),
7705
+ "todos": union([literal(null), array(object({
7706
+ "content": string(),
7707
+ "status": union([
7708
+ literal("pending"),
7709
+ literal("in_progress"),
7710
+ literal("completed")
7711
+ ])
7712
+ }))]).optional(),
7713
+ "sessionListMetadata": object({
7714
+ "blank": boolean().readonly(),
7715
+ "lastPromptAt": union([literal(null), number()]).readonly()
7716
+ }).optional(),
7717
+ "imageLimits": object({
7718
+ "maxImageBytes": number(),
7719
+ "maxImagesPerMessage": number(),
7720
+ "maxMessageImageBytes": number(),
7721
+ "maxImagePixels": number(),
7722
+ "maxImageDimension": number(),
7723
+ "mediaTypes": array(union([
7724
+ literal("image/png"),
7725
+ literal("image/jpeg"),
7726
+ literal("image/webp"),
7727
+ literal("image/gif")
7728
+ ]))
7729
+ }).optional(),
7730
+ "modelSelection": object({
7731
+ "lastUsed": union([literal(null), object({
7732
+ "provider": string().readonly(),
7733
+ "model": string().readonly(),
7734
+ "reasoningEffort": string().readonly().optional()
7735
+ })]).readonly(),
7736
+ "next": union([literal(null), object({
7737
+ "provider": string().readonly(),
7738
+ "model": string().readonly(),
7739
+ "reasoningEffort": string().readonly().optional()
7740
+ })]).readonly()
7741
+ }).optional(),
7742
+ "subagentTiming": object({
7743
+ "settledMs": number(),
7744
+ "active": object({
7745
+ "since": number(),
7746
+ "through": number()
7747
+ }).optional()
7748
+ }).optional(),
7749
+ "subagent": union([
7750
+ literal(null),
7751
+ object({
7752
+ "mode": literal("one-shot"),
7753
+ "label": string().optional(),
7754
+ "seq": number()
7755
+ }),
7756
+ object({
7757
+ "mode": literal("continuable"),
7758
+ "label": string(),
7759
+ "seq": number()
7760
+ })
7761
+ ]).optional(),
7762
+ "goal": union([literal(null), object({
7763
+ "goal": object({
7764
+ "objective": string().readonly(),
7765
+ "phase": union([
7766
+ literal("active"),
7767
+ literal("paused"),
7768
+ literal("blocked"),
7769
+ literal("complete")
7770
+ ]).readonly(),
7771
+ "blockedReason": object({
7772
+ "code": string().readonly(),
7773
+ "message": string().readonly()
7774
+ }).readonly().optional(),
7775
+ "maxGoalRounds": number().readonly(),
7776
+ "id": intersection(string(), unknown()).readonly(),
7777
+ "revision": number().readonly()
7778
+ }).readonly(),
7779
+ "roundsStarted": number().readonly(),
7780
+ "createdAt": number().readonly(),
7781
+ "updatedAt": number().readonly()
7782
+ })]).optional()
7783
+ }), record(string(), union([
7784
+ literal(null),
7785
+ string(),
7786
+ number(),
7787
+ literal(false),
7788
+ literal(true),
7789
+ array(lazy(() => JsonValueRemoteCodec$schema)),
7790
+ record(string(), lazy(() => JsonValueRemoteCodec$schema))
7791
+ ])).readonly()).readonly()
7792
+ }).readonly().optional()
7793
+ })).readonly() });
7794
+ const _deepseek_ai_dsh_api_session_controller_session_modelCatalog_result$schema = object({
7795
+ "default": object({
7796
+ "provider": string().readonly(),
7797
+ "model": string().readonly(),
7798
+ "reasoningEffort": string().readonly().optional()
7799
+ }).readonly(),
7800
+ "routableProviders": array(string()).readonly(),
7801
+ "groups": array(object({
7802
+ "id": string().readonly(),
7803
+ "name": string().readonly(),
7804
+ "models": array(object({
7805
+ "id": string().readonly(),
7806
+ "name": string().readonly(),
7807
+ "description": string().readonly().optional(),
7808
+ "reasoning": object({
7809
+ "efforts": array(object({
7810
+ "id": string().readonly(),
7811
+ "name": string().readonly(),
7812
+ "description": string().readonly().optional()
7813
+ })).readonly(),
7814
+ "defaultEffort": string().readonly().optional()
7815
+ }).readonly().optional()
7816
+ })).readonly()
7817
+ })).readonly(),
7818
+ "failures": array(object({
7819
+ "id": string().readonly(),
7820
+ "name": string().readonly(),
7821
+ "message": string().readonly()
7822
+ })).readonly()
7823
+ });
7824
+ const _deepseek_ai_dsh_api_session_controller_session_openWorkspacePath_parameter_0$schema = object({ "path": string().readonly() });
7825
+ const _deepseek_ai_dsh_api_session_controller_session_openWorkspacePath_result$schema = object({ "opened": literal(true).readonly() });
7826
+ const _deepseek_ai_dsh_api_session_controller_session_page_parameter_0$schema = object({
7827
+ "address": union([object({
7828
+ "kind": literal("session").readonly(),
7829
+ "sessionId": intersection(string(), unknown()).readonly()
7830
+ }), object({
7831
+ "kind": literal("subagent").readonly(),
7832
+ "parentSessionId": intersection(string(), unknown()).readonly(),
7833
+ "childSessionId": intersection(string(), unknown()).readonly(),
7834
+ "mode": union([literal("one-shot"), literal("continuable")]).readonly()
7835
+ })]).readonly(),
7836
+ "throughSeq": number().readonly(),
7837
+ "beforeSeq": number().readonly().optional(),
7838
+ "maxMessages": number().readonly().optional()
7839
+ });
7840
+ const _deepseek_ai_dsh_api_session_controller_session_page_result$schema = object({
7841
+ "records": array(union([object({
7842
+ "type": literal("event").readonly(),
7843
+ "event": object({
7844
+ "type": string().readonly(),
7845
+ "seq": number().readonly(),
7846
+ "time": number().readonly(),
7847
+ "data": union([
7848
+ literal(null),
7849
+ string(),
7850
+ number(),
7851
+ literal(false),
7852
+ literal(true),
7853
+ array(lazy(() => JsonValueRemoteCodec$schema2)),
7854
+ record(string(), lazy(() => JsonValueRemoteCodec$schema2))
7855
+ ]).readonly(),
7856
+ "ignorable": literal(true).readonly().optional(),
7857
+ "sourceEventSeqs": array(number()).readonly().optional(),
7858
+ "surfaceOp": union([literal("append"), object({
7859
+ "op": literal("replace"),
7860
+ "start": number(),
7861
+ "end": number()
7862
+ })]).readonly().optional()
7863
+ }).readonly()
7864
+ }), object({
7865
+ "type": literal("chunks").readonly(),
7866
+ "event": union([
7867
+ object({
7868
+ "type": literal("chunkrow/text-chunks").readonly(),
7869
+ "seq": number().readonly(),
7870
+ "time": number().readonly(),
7871
+ "data": object({
7872
+ "texts": array(string()),
7873
+ "turn": number(),
7874
+ "step": number(),
7875
+ "index": number(),
7876
+ "dt": array(number())
7877
+ }).readonly()
7878
+ }),
7879
+ object({
7880
+ "type": literal("chunkrow/reasoning-chunks").readonly(),
7881
+ "seq": number().readonly(),
7882
+ "time": number().readonly(),
7883
+ "data": object({
7884
+ "texts": array(string()),
7885
+ "turn": number(),
7886
+ "step": number(),
7887
+ "index": number(),
7888
+ "dt": array(number())
7889
+ }).readonly()
7890
+ }),
7891
+ object({
7892
+ "type": literal("chunkrow/tool-call-chunks").readonly(),
7893
+ "seq": number().readonly(),
7894
+ "time": number().readonly(),
7895
+ "data": object({
7896
+ "id": intersection(string(), unknown()),
7897
+ "name": string().optional(),
7898
+ "args": array(string()),
7899
+ "turn": number(),
7900
+ "step": number(),
7901
+ "index": number(),
7902
+ "dt": array(number())
7903
+ }).readonly()
7904
+ })
7905
+ ]).readonly()
7906
+ })])).readonly(),
7907
+ "hasMore": boolean().readonly()
7908
+ });
7909
+ const _deepseek_ai_dsh_api_session_controller_session_prompt_parameter_0$schema = object({
7910
+ "requestId": intersection(string(), unknown()).readonly(),
7911
+ "sessionId": intersection(string(), unknown()).readonly(),
7912
+ "mode": union([literal("queue"), literal("steer")]).readonly(),
7913
+ "content": array(union([object({
7914
+ "type": literal("text").readonly(),
7915
+ "text": string().readonly()
7916
+ }), object({
7917
+ "type": literal("image").readonly(),
7918
+ "mediaType": union([
7919
+ literal("image/png"),
7920
+ literal("image/jpeg"),
7921
+ literal("image/webp"),
7922
+ literal("image/gif")
7923
+ ]).readonly(),
7924
+ "data": string().readonly(),
7925
+ "name": string().readonly().optional()
7926
+ })])).readonly(),
7927
+ "clientTimeZone": string().readonly().optional()
7928
+ });
7929
+ const _deepseek_ai_dsh_api_session_controller_session_prompt_result$schema = object({ "accepted": literal(true).readonly() });
7930
+ const _deepseek_ai_dsh_api_session_controller_session_rename_parameter_0$schema = object({
7931
+ "sessionId": intersection(string(), unknown()).readonly(),
7932
+ "title": string().readonly()
7933
+ });
7934
+ const _deepseek_ai_dsh_api_session_controller_session_rename_result$schema = object({
7935
+ "title": string().readonly(),
7936
+ "seq": number().readonly()
7937
+ });
7938
+ const _deepseek_ai_dsh_api_session_controller_session_search_parameter_0$schema = object({ "query": string().readonly() });
7939
+ const _deepseek_ai_dsh_api_session_controller_session_search_result$schema = object({
7940
+ "items": array(object({
7941
+ "sessionId": intersection(string(), unknown()).readonly(),
7942
+ "snippet": string().readonly()
7943
+ })).readonly(),
7944
+ "hasMore": boolean().readonly()
7945
+ });
7946
+ const _deepseek_ai_dsh_api_session_controller_session_selectModel_parameter_0$schema = object({
7947
+ "sessionId": intersection(string(), unknown()).readonly(),
7948
+ "provider": string().readonly(),
7949
+ "model": string().readonly(),
7950
+ "reasoningEffort": string().readonly().optional()
7951
+ });
7952
+ const _deepseek_ai_dsh_api_session_controller_session_selectModel_result$schema = object({ "selected": object({
7953
+ "provider": string().readonly(),
7954
+ "model": string().readonly(),
7955
+ "reasoningEffort": string().readonly().optional()
7956
+ }).readonly() });
7957
+ const _deepseek_ai_dsh_api_session_controller_session_updateQueue_parameter_0$schema = object({
7958
+ "sessionId": intersection(string(), unknown()).readonly(),
7959
+ "itemId": intersection(string(), unknown()).readonly(),
7960
+ "action": union([
7961
+ object({
7962
+ "kind": literal("edit").readonly(),
7963
+ "content": array(union([
7964
+ object({
7965
+ "type": literal("text"),
7966
+ "text": string()
7967
+ }),
7968
+ object({
7969
+ "type": literal("image"),
7970
+ "attachment": object({
7971
+ "attachmentId": intersection(string(), unknown()),
7972
+ "mediaType": union([
7973
+ literal("image/png"),
7974
+ literal("image/jpeg"),
7975
+ literal("image/webp"),
7976
+ literal("image/gif")
7977
+ ]),
7978
+ "bytes": number(),
7979
+ "width": number(),
7980
+ "height": number(),
7981
+ "name": string().optional(),
7982
+ "originalDimensions": object({
7983
+ "width": number(),
7984
+ "height": number()
7985
+ }).optional()
7986
+ })
7987
+ }),
7988
+ object({
7989
+ "type": literal("reasoning"),
7990
+ "text": string()
7991
+ }),
7992
+ object({
7993
+ "type": literal("tool-call"),
7994
+ "id": intersection(string(), unknown()),
7995
+ "name": string(),
7996
+ "arguments": string()
7997
+ }),
7998
+ object({
7999
+ "type": literal("tool-result"),
8000
+ "toolCallId": intersection(string(), unknown()),
8001
+ "content": array(lazy(() => ContentBlockRemoteCodec$schema)),
8002
+ "isError": boolean().optional()
8003
+ })
8004
+ ])).readonly()
8005
+ }),
8006
+ object({ "kind": literal("remove").readonly() }),
8007
+ object({ "kind": literal("steer").readonly() })
8008
+ ]).readonly()
8009
+ });
8010
+ const _deepseek_ai_dsh_api_session_controller_session_updateQueue_result$schema = object({ "accepted": literal(true).readonly() });
8011
+ const _deepseek_ai_dsh_api_session_controller_skills_list_parameter_0$schema = object({ "sessionId": intersection(string(), unknown()).readonly() });
8012
+ const _deepseek_ai_dsh_api_session_controller_skills_list_result$schema = object({ "skills": array(object({
8013
+ "name": string().readonly(),
8014
+ "description": string().readonly(),
8015
+ "whenToUse": string().readonly().optional(),
8016
+ "modelInvocable": boolean().readonly()
8017
+ })).readonly() });
8018
+ const TYPERT_REMOTE$1 = {
8019
+ package: "@deepseek-ai/dsh-api-session-controller",
8020
+ descriptors: [
8021
+ {
8022
+ id: "@deepseek-ai/dsh-api-session-controller#fileReferences/list",
8023
+ service: "sessionFileReferences",
8024
+ namespace: "fileReferences",
8025
+ method: "list",
8026
+ invocation: { kind: "direct" },
8027
+ scope: {
8028
+ context: "agent",
8029
+ wire: "agentId"
8030
+ },
8031
+ parameters: [{
8032
+ name: "agent",
8033
+ wire: "agentId",
8034
+ source: "lookup",
8035
+ lookup: "agent",
8036
+ codec: {
8037
+ mode: "strict",
8038
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
8039
+ schema: _deepseek_ai_dsh_api_session_controller_fileReferences_list_parameter_0$schema
8040
+ }
8041
+ }, {
8042
+ name: "query",
8043
+ wire: "query",
8044
+ source: "json",
8045
+ codec: {
8046
+ mode: "strict",
8047
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller#fileReferences/list:query",
8048
+ schema: _deepseek_ai_dsh_api_session_controller_fileReferences_list_parameter_1$schema
8049
+ }
8050
+ }],
8051
+ cancellation: { parameter: "signal" },
8052
+ result: {
8053
+ mode: "strict",
8054
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller#fileReferences/list:result",
8055
+ schema: _deepseek_ai_dsh_api_session_controller_fileReferences_list_result$schema
8056
+ },
8057
+ sourceLocation: {
8058
+ "file": "packages/api/session-controller/src/file-references.ts",
8059
+ "line": 33,
8060
+ "column": 3
8061
+ }
8062
+ },
8063
+ {
8064
+ id: "@deepseek-ai/dsh-api-session-controller#session/attachment",
8065
+ service: "sessionController",
8066
+ namespace: "session",
8067
+ method: "attachment",
8068
+ invocation: { kind: "direct" },
8069
+ parameters: [{
8070
+ name: "request",
8071
+ wire: "request",
8072
+ source: "json",
8073
+ codec: {
8074
+ mode: "strict",
8075
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionAttachmentRequest",
8076
+ schema: _deepseek_ai_dsh_api_session_controller_session_attachment_parameter_0$schema
8077
+ }
8078
+ }],
8079
+ result: {
8080
+ mode: "strict",
8081
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionAttachmentValue",
8082
+ schema: _deepseek_ai_dsh_api_session_controller_session_attachment_result$schema
8083
+ },
8084
+ sourceLocation: {
8085
+ "file": "packages/api/session-controller/src/index.ts",
8086
+ "line": 333,
8087
+ "column": 3
8088
+ }
8089
+ },
8090
+ {
8091
+ id: "@deepseek-ai/dsh-api-session-controller#session/cancel",
8092
+ service: "sessionController",
8093
+ namespace: "session",
8094
+ method: "cancel",
8095
+ invocation: { kind: "direct" },
8096
+ parameters: [{
8097
+ name: "request",
8098
+ wire: "request",
8099
+ source: "json",
8100
+ codec: {
8101
+ mode: "strict",
8102
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionCancelRequest",
8103
+ schema: _deepseek_ai_dsh_api_session_controller_session_cancel_parameter_0$schema
8104
+ }
8105
+ }],
8106
+ result: {
8107
+ mode: "strict",
8108
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionCancelValue",
8109
+ schema: _deepseek_ai_dsh_api_session_controller_session_cancel_result$schema
8110
+ },
8111
+ sourceLocation: {
8112
+ "file": "packages/api/session-controller/src/index.ts",
8113
+ "line": 353,
8114
+ "column": 3
8115
+ }
8116
+ },
8117
+ {
8118
+ id: "@deepseek-ai/dsh-api-session-controller#session/canOpenWorkspacePath",
8119
+ service: "sessionController",
8120
+ namespace: "session",
8121
+ method: "canOpenWorkspacePath",
8122
+ invocation: { kind: "direct" },
8123
+ parameters: [],
8124
+ result: {
8125
+ mode: "strict",
8126
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller#session/canOpenWorkspacePath:result",
8127
+ schema: _deepseek_ai_dsh_api_session_controller_session_canOpenWorkspacePath_result$schema
8128
+ },
8129
+ sourceLocation: {
8130
+ "file": "packages/api/session-controller/src/index.ts",
8131
+ "line": 258,
8132
+ "column": 3
8133
+ }
8134
+ },
8135
+ {
8136
+ id: "@deepseek-ai/dsh-api-session-controller#session/control",
8137
+ service: "sessionController",
8138
+ namespace: "session",
8139
+ method: "control",
8140
+ mode: "stream",
8141
+ invocation: { kind: "direct" },
8142
+ parameters: [],
8143
+ cancellation: { parameter: "signal" },
8144
+ result: {
8145
+ mode: "strict",
8146
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionControlFrame",
8147
+ schema: _deepseek_ai_dsh_api_session_controller_session_control_result$schema
8148
+ },
8149
+ sourceLocation: {
8150
+ "file": "packages/api/session-controller/src/index.ts",
8151
+ "line": 385,
8152
+ "column": 3
8153
+ }
8154
+ },
8155
+ {
8156
+ id: "@deepseek-ai/dsh-api-session-controller#session/create",
8157
+ service: "sessionController",
8158
+ namespace: "session",
8159
+ method: "create",
8160
+ invocation: { kind: "direct" },
8161
+ parameters: [{
8162
+ name: "request",
8163
+ wire: "request",
8164
+ source: "json",
8165
+ codec: {
8166
+ mode: "strict",
8167
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionCreateRequest",
8168
+ schema: _deepseek_ai_dsh_api_session_controller_session_create_parameter_0$schema
8169
+ }
8170
+ }],
8171
+ result: {
8172
+ mode: "strict",
8173
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionCreateValue",
8174
+ schema: _deepseek_ai_dsh_api_session_controller_session_create_result$schema
8175
+ },
8176
+ sourceLocation: {
8177
+ "file": "packages/api/session-controller/src/index.ts",
8178
+ "line": 230,
8179
+ "column": 3
8180
+ }
8181
+ },
8182
+ {
8183
+ id: "@deepseek-ai/dsh-api-session-controller#session/follow",
8184
+ service: "sessionController",
8185
+ namespace: "session",
8186
+ method: "follow",
8187
+ mode: "stream",
8188
+ invocation: { kind: "direct" },
8189
+ parameters: [{
8190
+ name: "request",
8191
+ wire: "request",
8192
+ source: "json",
8193
+ codec: {
8194
+ mode: "strict",
8195
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionFollowRequest",
8196
+ schema: _deepseek_ai_dsh_api_session_controller_session_follow_parameter_0$schema
8197
+ }
8198
+ }],
8199
+ cancellation: { parameter: "signal" },
8200
+ result: {
8201
+ mode: "strict",
8202
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionFollowFrame",
8203
+ schema: _deepseek_ai_dsh_api_session_controller_session_follow_result$schema
8204
+ },
8205
+ sourceLocation: {
8206
+ "file": "packages/api/session-controller/src/index.ts",
8207
+ "line": 375,
8208
+ "column": 3
8209
+ }
8210
+ },
8211
+ {
8212
+ id: "@deepseek-ai/dsh-api-session-controller#session/fork",
8213
+ service: "sessionController",
8214
+ namespace: "session",
8215
+ method: "fork",
8216
+ invocation: { kind: "direct" },
8217
+ parameters: [{
8218
+ name: "request",
8219
+ wire: "request",
8220
+ source: "json",
8221
+ codec: {
8222
+ mode: "strict",
8223
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionForkRequest",
8224
+ schema: _deepseek_ai_dsh_api_session_controller_session_fork_parameter_0$schema
8225
+ }
8226
+ }],
8227
+ result: {
8228
+ mode: "strict",
8229
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionForkValue",
8230
+ schema: _deepseek_ai_dsh_api_session_controller_session_fork_result$schema
8231
+ },
8232
+ sourceLocation: {
8233
+ "file": "packages/api/session-controller/src/index.ts",
8234
+ "line": 311,
8235
+ "column": 3
8236
+ }
8237
+ },
8238
+ {
8239
+ id: "@deepseek-ai/dsh-api-session-controller#session/list",
8240
+ service: "sessionController",
8241
+ namespace: "session",
8242
+ method: "list",
8243
+ invocation: { kind: "direct" },
8244
+ parameters: [{
8245
+ name: "_request",
8246
+ wire: "_request",
8247
+ source: "json",
8248
+ codec: {
8249
+ mode: "strict",
8250
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionListRequest",
8251
+ schema: _deepseek_ai_dsh_api_session_controller_session_list_parameter_0$schema
8252
+ }
8253
+ }],
8254
+ cancellation: { parameter: "signal" },
8255
+ result: {
8256
+ mode: "strict",
8257
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionListValue",
8258
+ schema: _deepseek_ai_dsh_api_session_controller_session_list_result$schema
8259
+ },
8260
+ sourceLocation: {
8261
+ "file": "packages/api/session-controller/src/index.ts",
8262
+ "line": 209,
8263
+ "column": 9
8264
+ }
8265
+ },
8266
+ {
8267
+ id: "@deepseek-ai/dsh-api-session-controller#session/modelCatalog",
8268
+ service: "sessionController",
8269
+ namespace: "session",
8270
+ method: "modelCatalog",
8271
+ invocation: { kind: "direct" },
8272
+ parameters: [],
8273
+ result: {
8274
+ mode: "strict",
8275
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#ModelCatalog",
8276
+ schema: _deepseek_ai_dsh_api_session_controller_session_modelCatalog_result$schema
8277
+ },
8278
+ sourceLocation: {
8279
+ "file": "packages/api/session-controller/src/index.ts",
8280
+ "line": 249,
8281
+ "column": 3
8282
+ }
8283
+ },
8284
+ {
8285
+ id: "@deepseek-ai/dsh-api-session-controller#session/openWorkspacePath",
8286
+ service: "sessionController",
8287
+ namespace: "session",
8288
+ method: "openWorkspacePath",
8289
+ invocation: { kind: "direct" },
8290
+ parameters: [{
8291
+ name: "request",
8292
+ wire: "request",
8293
+ source: "json",
8294
+ codec: {
8295
+ mode: "strict",
8296
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionOpenWorkspacePathRequest",
8297
+ schema: _deepseek_ai_dsh_api_session_controller_session_openWorkspacePath_parameter_0$schema
8298
+ }
8299
+ }],
8300
+ cancellation: { parameter: "signal" },
8301
+ result: {
8302
+ mode: "strict",
8303
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionOpenWorkspacePathValue",
8304
+ schema: _deepseek_ai_dsh_api_session_controller_session_openWorkspacePath_result$schema
8305
+ },
8306
+ sourceLocation: {
8307
+ "file": "packages/api/session-controller/src/index.ts",
8308
+ "line": 270,
8309
+ "column": 9
8310
+ }
8311
+ },
8312
+ {
8313
+ id: "@deepseek-ai/dsh-api-session-controller#session/page",
8314
+ service: "sessionController",
8315
+ namespace: "session",
8316
+ method: "page",
8317
+ invocation: { kind: "direct" },
8318
+ parameters: [{
8319
+ name: "request",
8320
+ wire: "request",
8321
+ source: "json",
8322
+ codec: {
8323
+ mode: "strict",
8324
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionPageRequest",
8325
+ schema: _deepseek_ai_dsh_api_session_controller_session_page_parameter_0$schema
8326
+ }
8327
+ }],
8328
+ cancellation: { parameter: "signal" },
8329
+ result: {
8330
+ mode: "strict",
8331
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionPage",
8332
+ schema: _deepseek_ai_dsh_api_session_controller_session_page_result$schema
8333
+ },
8334
+ sourceLocation: {
8335
+ "file": "packages/api/session-controller/src/index.ts",
8336
+ "line": 364,
8337
+ "column": 3
8338
+ }
8339
+ },
8340
+ {
8341
+ id: "@deepseek-ai/dsh-api-session-controller#session/prompt",
8342
+ service: "sessionController",
8343
+ namespace: "session",
8344
+ method: "prompt",
8345
+ invocation: { kind: "direct" },
8346
+ parameters: [{
8347
+ name: "request",
8348
+ wire: "request",
8349
+ source: "json",
8350
+ codec: {
8351
+ mode: "strict",
8352
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionPromptRequest",
8353
+ schema: _deepseek_ai_dsh_api_session_controller_session_prompt_parameter_0$schema
8354
+ }
8355
+ }],
8356
+ cancellation: { parameter: "signal" },
8357
+ result: {
8358
+ mode: "strict",
8359
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionPromptValue",
8360
+ schema: _deepseek_ai_dsh_api_session_controller_session_prompt_result$schema
8361
+ },
8362
+ sourceLocation: {
8363
+ "file": "packages/api/session-controller/src/index.ts",
8364
+ "line": 322,
8365
+ "column": 3
8366
+ }
8367
+ },
8368
+ {
8369
+ id: "@deepseek-ai/dsh-api-session-controller#session/rename",
8370
+ service: "sessionController",
8371
+ namespace: "session",
8372
+ method: "rename",
8373
+ invocation: { kind: "direct" },
8374
+ parameters: [{
8375
+ name: "request",
8376
+ wire: "request",
8377
+ source: "json",
8378
+ codec: {
8379
+ mode: "strict",
8380
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionRenameRequest",
8381
+ schema: _deepseek_ai_dsh_api_session_controller_session_rename_parameter_0$schema
8382
+ }
8383
+ }],
8384
+ result: {
8385
+ mode: "strict",
8386
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionRenameValue",
8387
+ schema: _deepseek_ai_dsh_api_session_controller_session_rename_result$schema
8388
+ },
8389
+ sourceLocation: {
8390
+ "file": "packages/api/session-controller/src/index.ts",
8391
+ "line": 301,
8392
+ "column": 3
8393
+ }
8394
+ },
8395
+ {
8396
+ id: "@deepseek-ai/dsh-api-session-controller#session/search",
8397
+ service: "sessionController",
8398
+ namespace: "session",
8399
+ method: "search",
8400
+ invocation: { kind: "direct" },
8401
+ parameters: [{
8402
+ name: "request",
8403
+ wire: "request",
8404
+ source: "json",
8405
+ codec: {
8406
+ mode: "strict",
8407
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionSearchRequest",
8408
+ schema: _deepseek_ai_dsh_api_session_controller_session_search_parameter_0$schema
8409
+ }
8410
+ }],
8411
+ cancellation: { parameter: "signal" },
8412
+ result: {
8413
+ mode: "strict",
8414
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionSearchValue",
8415
+ schema: _deepseek_ai_dsh_api_session_controller_session_search_result$schema
8416
+ },
8417
+ sourceLocation: {
8418
+ "file": "packages/api/session-controller/src/index.ts",
8419
+ "line": 220,
8420
+ "column": 3
8421
+ }
8422
+ },
8423
+ {
8424
+ id: "@deepseek-ai/dsh-api-session-controller#session/selectModel",
8425
+ service: "sessionController",
8426
+ namespace: "session",
8427
+ method: "selectModel",
8428
+ invocation: { kind: "direct" },
8429
+ parameters: [{
8430
+ name: "request",
8431
+ wire: "request",
8432
+ source: "json",
8433
+ codec: {
8434
+ mode: "strict",
8435
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionSelectModelRequest",
8436
+ schema: _deepseek_ai_dsh_api_session_controller_session_selectModel_parameter_0$schema
8437
+ }
8438
+ }],
8439
+ result: {
8440
+ mode: "strict",
8441
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionSelectModelValue",
8442
+ schema: _deepseek_ai_dsh_api_session_controller_session_selectModel_result$schema
8443
+ },
8444
+ sourceLocation: {
8445
+ "file": "packages/api/session-controller/src/index.ts",
8446
+ "line": 240,
8447
+ "column": 3
8448
+ }
8449
+ },
8450
+ {
8451
+ id: "@deepseek-ai/dsh-api-session-controller#session/updateQueue",
8452
+ service: "sessionController",
8453
+ namespace: "session",
8454
+ method: "updateQueue",
8455
+ invocation: { kind: "direct" },
8456
+ parameters: [{
8457
+ name: "request",
8458
+ wire: "request",
8459
+ source: "json",
8460
+ codec: {
8461
+ mode: "strict",
8462
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionUpdateQueueRequest",
8463
+ schema: _deepseek_ai_dsh_api_session_controller_session_updateQueue_parameter_0$schema
8464
+ }
8465
+ }],
5420
8466
  result: {
5421
8467
  mode: "strict",
5422
- typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#CordisInspectResolveAck",
5423
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_result$schema
8468
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionUpdateQueueValue",
8469
+ schema: _deepseek_ai_dsh_api_session_controller_session_updateQueue_result$schema
5424
8470
  },
5425
8471
  sourceLocation: {
5426
- "file": "packages/extensions/cordis-host-runner/src/index.ts",
5427
- "line": 511,
8472
+ "file": "packages/api/session-controller/src/index.ts",
8473
+ "line": 343,
5428
8474
  "column": 3
5429
8475
  }
5430
8476
  },
5431
8477
  {
5432
- id: "@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/resolveRequestRun",
5433
- service: "dynamicCordisRunner",
5434
- namespace: "dynamicCordisRunner",
5435
- method: "resolveRequestRun",
8478
+ id: "@deepseek-ai/dsh-api-session-controller#skills/list",
8479
+ service: "sessionSkillCatalog",
8480
+ namespace: "skills",
8481
+ method: "list",
5436
8482
  invocation: { kind: "direct" },
5437
8483
  parameters: [{
5438
- name: "requestId",
5439
- wire: "requestId",
8484
+ name: "request",
8485
+ wire: "request",
5440
8486
  source: "json",
5441
8487
  codec: {
5442
8488
  mode: "strict",
5443
- typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#ApprovalRequestId",
5444
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_0$schema
8489
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SkillListRequest",
8490
+ schema: _deepseek_ai_dsh_api_session_controller_skills_list_parameter_0$schema
8491
+ }
8492
+ }],
8493
+ cancellation: { parameter: "signal" },
8494
+ result: {
8495
+ mode: "strict",
8496
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SkillListValue",
8497
+ schema: _deepseek_ai_dsh_api_session_controller_skills_list_result$schema
8498
+ },
8499
+ sourceLocation: {
8500
+ "file": "packages/api/session-controller/src/skill-catalog.ts",
8501
+ "line": 36,
8502
+ "column": 9
8503
+ }
8504
+ }
8505
+ ]
8506
+ };
8507
+ //#endregion
8508
+ //#region ../workspace-controller/lib/typert.remote-client.js
8509
+ const _deepseek_ai_dsh_api_workspace_controller_directoryPicker_createDirectory_parameter_0$schema = string();
8510
+ const _deepseek_ai_dsh_api_workspace_controller_directoryPicker_createDirectory_parameter_1$schema = string();
8511
+ const _deepseek_ai_dsh_api_workspace_controller_directoryPicker_createDirectory_result$schema = string();
8512
+ const _deepseek_ai_dsh_api_workspace_controller_directoryPicker_list_parameter_0$schema = union([_undefined(), string()]);
8513
+ const _deepseek_ai_dsh_api_workspace_controller_directoryPicker_list_result$schema = object({
8514
+ "path": string(),
8515
+ "home": string(),
8516
+ "crumbs": array(object({
8517
+ "name": string(),
8518
+ "path": string(),
8519
+ "hidden": boolean()
8520
+ })),
8521
+ "entries": array(object({
8522
+ "name": string(),
8523
+ "path": string(),
8524
+ "hidden": boolean()
8525
+ })),
8526
+ "truncated": boolean()
8527
+ });
8528
+ const _deepseek_ai_dsh_api_workspace_controller_directoryPicker_pick_result$schema = union([literal(null), string()]);
8529
+ const _deepseek_ai_dsh_api_workspace_controller_workspace_archiveSession_parameter_0$schema = object({ "sessionId": intersection(string(), unknown()).readonly() });
8530
+ const _deepseek_ai_dsh_api_workspace_controller_workspace_archiveSession_result$schema = object({ "archivedSessionIds": array(intersection(string(), unknown())).readonly() });
8531
+ const _deepseek_ai_dsh_api_workspace_controller_workspace_create_parameter_0$schema = object({ "path": string().readonly() });
8532
+ const _deepseek_ai_dsh_api_workspace_controller_workspace_create_result$schema = object({
8533
+ "workspace": object({
8534
+ "workspaceId": intersection(string(), unknown()).readonly(),
8535
+ "path": string().readonly(),
8536
+ "title": string().readonly(),
8537
+ "sessionIds": array(intersection(string(), unknown())).readonly(),
8538
+ "createdAt": string().readonly(),
8539
+ "updatedAt": string().readonly()
8540
+ }).readonly(),
8541
+ "created": boolean().readonly()
8542
+ });
8543
+ const _deepseek_ai_dsh_api_workspace_controller_workspace_delete_parameter_0$schema = object({ "workspaceId": intersection(string(), unknown()).readonly() });
8544
+ const _deepseek_ai_dsh_api_workspace_controller_workspace_delete_result$schema = object({ "deleted": literal(true).readonly() });
8545
+ const _deepseek_ai_dsh_api_workspace_controller_workspace_follow_result$schema = union([
8546
+ object({
8547
+ "type": literal("baseline").readonly(),
8548
+ "value": object({
8549
+ "items": array(object({
8550
+ "workspaceId": intersection(string(), unknown()).readonly(),
8551
+ "path": string().readonly(),
8552
+ "title": string().readonly(),
8553
+ "sessionIds": array(intersection(string(), unknown())).readonly(),
8554
+ "createdAt": string().readonly(),
8555
+ "updatedAt": string().readonly()
8556
+ })).readonly(),
8557
+ "archivedSessionIds": array(intersection(string(), unknown())).readonly()
8558
+ }).readonly()
8559
+ }),
8560
+ object({
8561
+ "type": literal("upsert").readonly(),
8562
+ "workspace": object({
8563
+ "workspaceId": intersection(string(), unknown()).readonly(),
8564
+ "path": string().readonly(),
8565
+ "title": string().readonly(),
8566
+ "sessionIds": array(intersection(string(), unknown())).readonly(),
8567
+ "createdAt": string().readonly(),
8568
+ "updatedAt": string().readonly()
8569
+ }).readonly()
8570
+ }),
8571
+ object({
8572
+ "type": literal("remove").readonly(),
8573
+ "workspaceId": intersection(string(), unknown()).readonly()
8574
+ }),
8575
+ object({
8576
+ "type": literal("order").readonly(),
8577
+ "workspaceIds": array(intersection(string(), unknown())).readonly()
8578
+ }),
8579
+ object({
8580
+ "type": literal("archived").readonly(),
8581
+ "archivedSessionIds": array(intersection(string(), unknown())).readonly()
8582
+ })
8583
+ ]);
8584
+ const _deepseek_ai_dsh_api_workspace_controller_workspace_insertBefore_parameter_0$schema = object({
8585
+ "workspaceId": intersection(string(), unknown()).readonly(),
8586
+ "beforeWorkspaceId": intersection(string(), unknown()).readonly().optional()
8587
+ });
8588
+ const _deepseek_ai_dsh_api_workspace_controller_workspace_insertBefore_result$schema = object({ "workspaceIds": array(intersection(string(), unknown())).readonly() });
8589
+ const _deepseek_ai_dsh_api_workspace_controller_workspace_insertSessionBefore_parameter_0$schema = object({
8590
+ "workspaceId": intersection(string(), unknown()).readonly(),
8591
+ "sessionId": intersection(string(), unknown()).readonly(),
8592
+ "beforeSessionId": intersection(string(), unknown()).readonly().optional()
8593
+ });
8594
+ const _deepseek_ai_dsh_api_workspace_controller_workspace_insertSessionBefore_result$schema = object({ "workspace": object({
8595
+ "workspaceId": intersection(string(), unknown()).readonly(),
8596
+ "path": string().readonly(),
8597
+ "title": string().readonly(),
8598
+ "sessionIds": array(intersection(string(), unknown())).readonly(),
8599
+ "createdAt": string().readonly(),
8600
+ "updatedAt": string().readonly()
8601
+ }).readonly() });
8602
+ const _deepseek_ai_dsh_api_workspace_controller_workspace_rename_parameter_0$schema = object({
8603
+ "workspaceId": intersection(string(), unknown()).readonly(),
8604
+ "title": string().readonly()
8605
+ });
8606
+ const _deepseek_ai_dsh_api_workspace_controller_workspace_rename_result$schema = object({ "workspace": object({
8607
+ "workspaceId": intersection(string(), unknown()).readonly(),
8608
+ "path": string().readonly(),
8609
+ "title": string().readonly(),
8610
+ "sessionIds": array(intersection(string(), unknown())).readonly(),
8611
+ "createdAt": string().readonly(),
8612
+ "updatedAt": string().readonly()
8613
+ }).readonly() });
8614
+ const TYPERT_REMOTE = {
8615
+ package: "@deepseek-ai/dsh-api-workspace-controller",
8616
+ descriptors: [
8617
+ {
8618
+ id: "@deepseek-ai/dsh-api-workspace-controller#directoryPicker/createDirectory",
8619
+ service: "directoryPickerController",
8620
+ namespace: "directoryPicker",
8621
+ method: "createDirectory",
8622
+ invocation: { kind: "direct" },
8623
+ parameters: [{
8624
+ name: "path",
8625
+ wire: "path",
8626
+ source: "json",
8627
+ codec: {
8628
+ mode: "strict",
8629
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller#directoryPicker/createDirectory:path",
8630
+ schema: _deepseek_ai_dsh_api_workspace_controller_directoryPicker_createDirectory_parameter_0$schema
5445
8631
  }
5446
8632
  }, {
5447
- name: "resolution",
5448
- wire: "resolution",
8633
+ name: "name",
8634
+ wire: "name",
5449
8635
  source: "json",
5450
8636
  codec: {
5451
8637
  mode: "strict",
5452
- typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisRunResolution",
5453
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_1$schema
8638
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller#directoryPicker/createDirectory:name",
8639
+ schema: _deepseek_ai_dsh_api_workspace_controller_directoryPicker_createDirectory_parameter_1$schema
5454
8640
  }
5455
8641
  }],
5456
8642
  result: {
5457
8643
  mode: "strict",
5458
- typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisResolveAck",
5459
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_result$schema
8644
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller#directoryPicker/createDirectory:result",
8645
+ schema: _deepseek_ai_dsh_api_workspace_controller_directoryPicker_createDirectory_result$schema
5460
8646
  },
5461
8647
  sourceLocation: {
5462
- "file": "packages/extensions/cordis-host-runner/src/index.ts",
5463
- "line": 413,
8648
+ "file": "packages/api/workspace-controller/src/directory-picker.ts",
8649
+ "line": 88,
5464
8650
  "column": 9
5465
8651
  }
5466
8652
  },
5467
8653
  {
5468
- id: "@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/runHostHalf",
5469
- service: "dynamicCordisRunner",
5470
- namespace: "dynamicCordisRunner",
5471
- method: "runHostHalf",
8654
+ id: "@deepseek-ai/dsh-api-workspace-controller#directoryPicker/list",
8655
+ service: "directoryPickerController",
8656
+ namespace: "directoryPicker",
8657
+ method: "list",
5472
8658
  invocation: { kind: "direct" },
5473
- scope: {
5474
- context: "agent",
5475
- wire: "agentId"
5476
- },
5477
- parameters: [
5478
- {
5479
- name: "agent",
5480
- wire: "agentId",
5481
- source: "lookup",
5482
- lookup: "agent",
5483
- codec: {
5484
- mode: "strict",
5485
- typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
5486
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_0$schema
5487
- }
5488
- },
5489
- {
5490
- name: "pluginId",
5491
- wire: "pluginId",
5492
- source: "json",
5493
- codec: {
5494
- mode: "strict",
5495
- typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId",
5496
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_1$schema
5497
- }
5498
- },
5499
- {
5500
- name: "packageId",
5501
- wire: "packageId",
5502
- source: "json",
5503
- codec: {
5504
- mode: "strict",
5505
- typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPackageId",
5506
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_2$schema
5507
- }
5508
- },
5509
- {
5510
- name: "mode",
5511
- wire: "mode",
5512
- source: "json",
5513
- codec: {
5514
- mode: "strict",
5515
- typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicRunMode",
5516
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_3$schema
5517
- }
5518
- },
5519
- {
5520
- name: "requestId",
5521
- wire: "requestId",
5522
- source: "json",
5523
- codec: {
5524
- mode: "strict",
5525
- typeSymbol: "@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/runHostHalf:requestId",
5526
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_4$schema
5527
- }
5528
- },
5529
- {
5530
- name: "approveFutureVersions",
5531
- wire: "approveFutureVersions",
5532
- source: "json",
5533
- codec: {
5534
- mode: "strict",
5535
- typeSymbol: "@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/runHostHalf:approveFutureVersions",
5536
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_5$schema
5537
- }
8659
+ parameters: [{
8660
+ name: "path",
8661
+ wire: "path",
8662
+ source: "json",
8663
+ acceptsUndefined: true,
8664
+ codec: {
8665
+ mode: "strict",
8666
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller#directoryPicker/list:path",
8667
+ schema: _deepseek_ai_dsh_api_workspace_controller_directoryPicker_list_parameter_0$schema
5538
8668
  }
5539
- ],
8669
+ }],
8670
+ cancellation: { parameter: "signal" },
5540
8671
  result: {
5541
8672
  mode: "strict",
5542
- typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisHostHalfResult",
5543
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_result$schema
8673
+ typeSymbol: "@deepseek-ai/dsh-host-directory-picker/types#DirectoryListing",
8674
+ schema: _deepseek_ai_dsh_api_workspace_controller_directoryPicker_list_result$schema
5544
8675
  },
5545
8676
  sourceLocation: {
5546
- "file": "packages/extensions/cordis-host-runner/src/index.ts",
5547
- "line": 325,
8677
+ "file": "packages/api/workspace-controller/src/directory-picker.ts",
8678
+ "line": 72,
5548
8679
  "column": 9
5549
8680
  }
5550
8681
  },
5551
8682
  {
5552
- id: "@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/settleUserRun",
5553
- service: "dynamicCordisRunner",
5554
- namespace: "dynamicCordisRunner",
5555
- method: "settleUserRun",
8683
+ id: "@deepseek-ai/dsh-api-workspace-controller#directoryPicker/pick",
8684
+ service: "directoryPickerController",
8685
+ namespace: "directoryPicker",
8686
+ method: "pick",
5556
8687
  invocation: { kind: "direct" },
5557
- scope: {
5558
- context: "agent",
5559
- wire: "agentId"
5560
- },
5561
- parameters: [
5562
- {
5563
- name: "agent",
5564
- wire: "agentId",
5565
- source: "lookup",
5566
- lookup: "agent",
5567
- codec: {
5568
- mode: "strict",
5569
- typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
5570
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_0$schema
5571
- }
5572
- },
5573
- {
5574
- name: "pluginId",
5575
- wire: "pluginId",
5576
- source: "json",
5577
- codec: {
5578
- mode: "strict",
5579
- typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId",
5580
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_1$schema
5581
- }
5582
- },
5583
- {
5584
- name: "resolution",
5585
- wire: "resolution",
5586
- source: "json",
5587
- codec: {
5588
- mode: "strict",
5589
- typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisRunResolution",
5590
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_2$schema
5591
- }
5592
- }
5593
- ],
8688
+ parameters: [],
8689
+ cancellation: { parameter: "signal" },
5594
8690
  result: {
5595
8691
  mode: "strict",
5596
- typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisRunResponse",
5597
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_result$schema
8692
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller#directoryPicker/pick:result",
8693
+ schema: _deepseek_ai_dsh_api_workspace_controller_directoryPicker_pick_result$schema
5598
8694
  },
5599
8695
  sourceLocation: {
5600
- "file": "packages/extensions/cordis-host-runner/src/index.ts",
5601
- "line": 438,
8696
+ "file": "packages/api/workspace-controller/src/directory-picker.ts",
8697
+ "line": 55,
5602
8698
  "column": 9
5603
8699
  }
5604
8700
  },
5605
8701
  {
5606
- id: "@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/stopFromPanel",
5607
- service: "dynamicCordisRunner",
5608
- namespace: "dynamicCordisRunner",
5609
- method: "stopFromPanel",
8702
+ id: "@deepseek-ai/dsh-api-workspace-controller#workspace/archiveSession",
8703
+ service: "workspaceController",
8704
+ namespace: "workspace",
8705
+ method: "archiveSession",
5610
8706
  invocation: { kind: "direct" },
5611
- scope: {
5612
- context: "agent",
5613
- wire: "agentId"
5614
- },
5615
8707
  parameters: [{
5616
- name: "agent",
5617
- wire: "agentId",
5618
- source: "lookup",
5619
- lookup: "agent",
5620
- codec: {
5621
- mode: "strict",
5622
- typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
5623
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_0$schema
5624
- }
5625
- }, {
5626
- name: "pluginId",
5627
- wire: "pluginId",
8708
+ name: "request",
8709
+ wire: "request",
5628
8710
  source: "json",
5629
8711
  codec: {
5630
8712
  mode: "strict",
5631
- typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId",
5632
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_1$schema
8713
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceArchiveSessionRequest",
8714
+ schema: _deepseek_ai_dsh_api_workspace_controller_workspace_archiveSession_parameter_0$schema
5633
8715
  }
5634
8716
  }],
5635
8717
  result: {
5636
8718
  mode: "strict",
5637
- typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisStopResponse",
5638
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_result$schema
8719
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceArchiveValue",
8720
+ schema: _deepseek_ai_dsh_api_workspace_controller_workspace_archiveSession_result$schema
5639
8721
  },
5640
8722
  sourceLocation: {
5641
- "file": "packages/extensions/cordis-host-runner/src/index.ts",
5642
- "line": 480,
5643
- "column": 9
8723
+ "file": "packages/api/workspace-controller/src/index.ts",
8724
+ "line": 108,
8725
+ "column": 3
5644
8726
  }
5645
8727
  },
5646
8728
  {
5647
- id: "@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/syncInspectManifest",
5648
- service: "dynamicCordisRunner",
5649
- namespace: "dynamicCordisRunner",
5650
- method: "syncInspectManifest",
8729
+ id: "@deepseek-ai/dsh-api-workspace-controller#workspace/create",
8730
+ service: "workspaceController",
8731
+ namespace: "workspace",
8732
+ method: "create",
5651
8733
  invocation: { kind: "direct" },
5652
8734
  parameters: [{
5653
- name: "providers",
5654
- wire: "providers",
8735
+ name: "request",
8736
+ wire: "request",
5655
8737
  source: "json",
5656
8738
  codec: {
5657
8739
  mode: "strict",
5658
- typeSymbol: "@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/syncInspectManifest:providers",
5659
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_syncInspectManifest_parameter_0$schema
8740
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceCreateRequest",
8741
+ schema: _deepseek_ai_dsh_api_workspace_controller_workspace_create_parameter_0$schema
5660
8742
  }
5661
8743
  }],
5662
8744
  result: {
5663
8745
  mode: "strict",
5664
- typeSymbol: "@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/syncInspectManifest:result",
5665
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_syncInspectManifest_result$schema
8746
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceCreateValue",
8747
+ schema: _deepseek_ai_dsh_api_workspace_controller_workspace_create_result$schema
5666
8748
  },
5667
8749
  sourceLocation: {
5668
- "file": "packages/extensions/cordis-host-runner/src/index.ts",
5669
- "line": 498,
8750
+ "file": "packages/api/workspace-controller/src/index.ts",
8751
+ "line": 58,
5670
8752
  "column": 3
5671
8753
  }
5672
8754
  },
5673
8755
  {
5674
- id: "@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/undefineFromPanel",
5675
- service: "dynamicCordisRunner",
5676
- namespace: "dynamicCordisRunner",
5677
- method: "undefineFromPanel",
8756
+ id: "@deepseek-ai/dsh-api-workspace-controller#workspace/delete",
8757
+ service: "workspaceController",
8758
+ namespace: "workspace",
8759
+ method: "delete",
5678
8760
  invocation: { kind: "direct" },
5679
- scope: {
5680
- context: "agent",
5681
- wire: "agentId"
5682
- },
5683
8761
  parameters: [{
5684
- name: "agent",
5685
- wire: "agentId",
5686
- source: "lookup",
5687
- lookup: "agent",
5688
- codec: {
5689
- mode: "strict",
5690
- typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
5691
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_0$schema
5692
- }
5693
- }, {
5694
- name: "pluginId",
5695
- wire: "pluginId",
8762
+ name: "request",
8763
+ wire: "request",
5696
8764
  source: "json",
5697
8765
  codec: {
5698
- mode: "strict",
5699
- typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId",
5700
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_1$schema
8766
+ mode: "strict",
8767
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceDeleteRequest",
8768
+ schema: _deepseek_ai_dsh_api_workspace_controller_workspace_delete_parameter_0$schema
5701
8769
  }
5702
8770
  }],
5703
8771
  result: {
5704
8772
  mode: "strict",
5705
- typeSymbol: "@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisUndefineReceipt",
5706
- schema: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_result$schema
8773
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceDeleteValue",
8774
+ schema: _deepseek_ai_dsh_api_workspace_controller_workspace_delete_result$schema
5707
8775
  },
5708
8776
  sourceLocation: {
5709
- "file": "packages/extensions/cordis-host-runner/src/index.ts",
5710
- "line": 227,
5711
- "column": 9
8777
+ "file": "packages/api/workspace-controller/src/index.ts",
8778
+ "line": 78,
8779
+ "column": 3
5712
8780
  }
5713
- }
5714
- ]
5715
- };
5716
- //#endregion
5717
- //#region ../../context/file-reference/lib/typert.remote-client.js
5718
- const _deepseek_ai_dsh_file_reference_fileReferences_list_parameter_0$schema = intersection(string(), unknown());
5719
- const _deepseek_ai_dsh_file_reference_fileReferences_list_parameter_1$schema = string();
5720
- const _deepseek_ai_dsh_file_reference_fileReferences_list_result$schema = array(object({
5721
- "path": string(),
5722
- "kind": union([literal("file"), literal("directory")])
5723
- }));
5724
- const TYPERT_REMOTE$3 = {
5725
- package: "@deepseek-ai/dsh-file-reference",
5726
- descriptors: [{
5727
- id: "@deepseek-ai/dsh-file-reference#fileReferences/list",
5728
- service: "fileReferences",
5729
- namespace: "fileReferences",
5730
- method: "list",
5731
- implementation: "remoteExportList",
5732
- invocation: { kind: "direct" },
5733
- scope: {
5734
- context: "agent",
5735
- wire: "agentId"
5736
8781
  },
5737
- parameters: [{
5738
- name: "agent",
5739
- wire: "agentId",
5740
- source: "lookup",
5741
- lookup: "agent",
5742
- codec: {
5743
- mode: "strict",
5744
- typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
5745
- schema: _deepseek_ai_dsh_file_reference_fileReferences_list_parameter_0$schema
5746
- }
5747
- }, {
5748
- name: "query",
5749
- wire: "query",
5750
- source: "json",
5751
- codec: {
8782
+ {
8783
+ id: "@deepseek-ai/dsh-api-workspace-controller#workspace/follow",
8784
+ service: "workspaceController",
8785
+ namespace: "workspace",
8786
+ method: "follow",
8787
+ mode: "stream",
8788
+ invocation: { kind: "direct" },
8789
+ parameters: [],
8790
+ cancellation: { parameter: "signal" },
8791
+ result: {
5752
8792
  mode: "strict",
5753
- typeSymbol: "@deepseek-ai/dsh-file-reference#fileReferences/list:query",
5754
- schema: _deepseek_ai_dsh_file_reference_fileReferences_list_parameter_1$schema
8793
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceFollowFrame",
8794
+ schema: _deepseek_ai_dsh_api_workspace_controller_workspace_follow_result$schema
8795
+ },
8796
+ sourceLocation: {
8797
+ "file": "packages/api/workspace-controller/src/index.ts",
8798
+ "line": 118,
8799
+ "column": 3
5755
8800
  }
5756
- }],
5757
- cancellation: { parameter: "signal" },
5758
- result: {
5759
- mode: "strict",
5760
- typeSymbol: "@deepseek-ai/dsh-file-reference#fileReferences/list:result",
5761
- schema: _deepseek_ai_dsh_file_reference_fileReferences_list_result$schema
5762
- },
5763
- sourceLocation: {
5764
- "file": "packages/context/file-reference/src/index.ts",
5765
- "line": 54,
5766
- "column": 3
5767
- }
5768
- }]
5769
- };
5770
- const TYPERT_REMOTE$2 = {
5771
- package: "@deepseek-ai/dsh-host-plugin-inventory",
5772
- descriptors: [{
5773
- id: "@deepseek-ai/dsh-host-plugin-inventory#pluginInventory/list",
5774
- service: "pluginInventory",
5775
- namespace: "pluginInventory",
5776
- method: "list",
5777
- invocation: { kind: "direct" },
5778
- parameters: [],
5779
- result: {
5780
- mode: "strict",
5781
- typeSymbol: "@deepseek-ai/dsh-host-plugin-inventory/types#PluginInventorySnapshot",
5782
- schema: object({ "entries": array(object({
5783
- "entryId": intersection(string(), unknown()).readonly(),
5784
- "moduleName": string().readonly(),
5785
- "enabled": boolean().readonly(),
5786
- "fiberPhase": union([
5787
- literal(null),
5788
- literal("failed"),
5789
- literal("pending"),
5790
- literal("active"),
5791
- literal("loading"),
5792
- literal("unloading")
5793
- ]).readonly()
5794
- })).readonly() })
5795
8801
  },
5796
- sourceLocation: {
5797
- "file": "packages/host/plugin-inventory/src/index.ts",
5798
- "line": 57,
5799
- "column": 3
5800
- }
5801
- }]
5802
- };
5803
- //#endregion
5804
- //#region ../../feedback/message-feedback/lib/typert.remote-client.js
5805
- const _deepseek_ai_dsh_message_feedback_messageFeedback_delete_parameter_0$schema = object({
5806
- "sessionId": intersection(string(), unknown()).readonly(),
5807
- "messageId": intersection(string(), unknown()).readonly(),
5808
- "ifVersion": intersection(string(), unknown()).readonly()
5809
- });
5810
- const _deepseek_ai_dsh_message_feedback_messageFeedback_delete_result$schema = union([object({
5811
- "ok": literal(true).readonly(),
5812
- "value": object({ "absent": literal(true).readonly() }).readonly()
5813
- }), object({
5814
- "ok": literal(false).readonly(),
5815
- "error": union([object({
5816
- "code": literal("session-not-found").readonly(),
5817
- "sessionId": intersection(string(), unknown()).readonly()
5818
- }), object({
5819
- "code": literal("version-conflict").readonly(),
5820
- "current": union([literal(null), object({
5821
- "messageId": intersection(string(), unknown()).readonly(),
5822
- "rating": union([literal("positive"), literal("negative")]).readonly(),
5823
- "note": string().readonly().optional(),
5824
- "version": intersection(string(), unknown()).readonly(),
5825
- "createdAt": number().readonly(),
5826
- "updatedAt": number().readonly()
5827
- })]).readonly()
5828
- })]).readonly()
5829
- })]);
5830
- const _deepseek_ai_dsh_message_feedback_messageFeedback_list_parameter_0$schema = object({ "sessionId": intersection(string(), unknown()).readonly() });
5831
- const _deepseek_ai_dsh_message_feedback_messageFeedback_list_result$schema = union([object({
5832
- "ok": literal(true).readonly(),
5833
- "value": object({ "items": array(object({
5834
- "messageId": intersection(string(), unknown()).readonly(),
5835
- "rating": union([literal("positive"), literal("negative")]).readonly(),
5836
- "note": string().readonly().optional(),
5837
- "version": intersection(string(), unknown()).readonly(),
5838
- "createdAt": number().readonly(),
5839
- "updatedAt": number().readonly()
5840
- })).readonly() }).readonly()
5841
- }), object({
5842
- "ok": literal(false).readonly(),
5843
- "error": object({
5844
- "code": literal("session-not-found").readonly(),
5845
- "sessionId": intersection(string(), unknown()).readonly()
5846
- }).readonly()
5847
- })]);
5848
- const _deepseek_ai_dsh_message_feedback_messageFeedback_put_parameter_0$schema = object({
5849
- "sessionId": intersection(string(), unknown()).readonly(),
5850
- "messageId": intersection(string(), unknown()).readonly(),
5851
- "rating": union([literal("positive"), literal("negative")]).readonly(),
5852
- "note": string().readonly().optional(),
5853
- "ifVersion": union([literal(null), intersection(string(), unknown())]).readonly()
5854
- });
5855
- const _deepseek_ai_dsh_message_feedback_messageFeedback_put_result$schema = union([object({
5856
- "ok": literal(true).readonly(),
5857
- "value": object({
5858
- "messageId": intersection(string(), unknown()).readonly(),
5859
- "rating": union([literal("positive"), literal("negative")]).readonly(),
5860
- "note": string().readonly().optional(),
5861
- "version": intersection(string(), unknown()).readonly(),
5862
- "createdAt": number().readonly(),
5863
- "updatedAt": number().readonly()
5864
- }).readonly()
5865
- }), object({
5866
- "ok": literal(false).readonly(),
5867
- "error": union([
5868
- object({
5869
- "code": literal("session-not-found").readonly(),
5870
- "sessionId": intersection(string(), unknown()).readonly()
5871
- }),
5872
- object({
5873
- "code": literal("target-not-found").readonly(),
5874
- "sessionId": intersection(string(), unknown()).readonly(),
5875
- "messageId": intersection(string(), unknown()).readonly()
5876
- }),
5877
- object({
5878
- "code": literal("version-conflict").readonly(),
5879
- "current": union([literal(null), object({
5880
- "messageId": intersection(string(), unknown()).readonly(),
5881
- "rating": union([literal("positive"), literal("negative")]).readonly(),
5882
- "note": string().readonly().optional(),
5883
- "version": intersection(string(), unknown()).readonly(),
5884
- "createdAt": number().readonly(),
5885
- "updatedAt": number().readonly()
5886
- })]).readonly()
5887
- }),
5888
- object({ "code": literal("note-blank").readonly() }),
5889
- object({
5890
- "code": literal("note-too-large").readonly(),
5891
- "maxBytes": number().readonly(),
5892
- "actualBytes": number().readonly()
5893
- })
5894
- ]).readonly()
5895
- })]);
5896
- const TYPERT_REMOTE$1 = {
5897
- package: "@deepseek-ai/dsh-message-feedback",
5898
- descriptors: [
5899
8802
  {
5900
- id: "@deepseek-ai/dsh-message-feedback#messageFeedback/delete",
5901
- service: "messageFeedback",
5902
- namespace: "messageFeedback",
5903
- method: "delete",
8803
+ id: "@deepseek-ai/dsh-api-workspace-controller#workspace/insertBefore",
8804
+ service: "workspaceController",
8805
+ namespace: "workspace",
8806
+ method: "insertBefore",
5904
8807
  invocation: { kind: "direct" },
5905
8808
  parameters: [{
5906
8809
  name: "request",
@@ -5908,26 +8811,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5908
8811
  source: "json",
5909
8812
  codec: {
5910
8813
  mode: "strict",
5911
- typeSymbol: "@deepseek-ai/dsh-message-feedback/types#MessageFeedbackDeleteRequest",
5912
- schema: _deepseek_ai_dsh_message_feedback_messageFeedback_delete_parameter_0$schema
8814
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceInsertBeforeRequest",
8815
+ schema: _deepseek_ai_dsh_api_workspace_controller_workspace_insertBefore_parameter_0$schema
5913
8816
  }
5914
8817
  }],
5915
8818
  result: {
5916
8819
  mode: "strict",
5917
- typeSymbol: "@deepseek-ai/dsh-message-feedback/types#MessageFeedbackDeleteResult",
5918
- schema: _deepseek_ai_dsh_message_feedback_messageFeedback_delete_result$schema
8820
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceOrderValue",
8821
+ schema: _deepseek_ai_dsh_api_workspace_controller_workspace_insertBefore_result$schema
5919
8822
  },
5920
8823
  sourceLocation: {
5921
- "file": "packages/feedback/message-feedback/src/index.ts",
5922
- "line": 272,
8824
+ "file": "packages/api/workspace-controller/src/index.ts",
8825
+ "line": 88,
5923
8826
  "column": 3
5924
8827
  }
5925
8828
  },
5926
8829
  {
5927
- id: "@deepseek-ai/dsh-message-feedback#messageFeedback/list",
5928
- service: "messageFeedback",
5929
- namespace: "messageFeedback",
5930
- method: "list",
8830
+ id: "@deepseek-ai/dsh-api-workspace-controller#workspace/insertSessionBefore",
8831
+ service: "workspaceController",
8832
+ namespace: "workspace",
8833
+ method: "insertSessionBefore",
5931
8834
  invocation: { kind: "direct" },
5932
8835
  parameters: [{
5933
8836
  name: "request",
@@ -5935,26 +8838,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5935
8838
  source: "json",
5936
8839
  codec: {
5937
8840
  mode: "strict",
5938
- typeSymbol: "@deepseek-ai/dsh-message-feedback/types#MessageFeedbackListRequest",
5939
- schema: _deepseek_ai_dsh_message_feedback_messageFeedback_list_parameter_0$schema
8841
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceInsertSessionBeforeRequest",
8842
+ schema: _deepseek_ai_dsh_api_workspace_controller_workspace_insertSessionBefore_parameter_0$schema
5940
8843
  }
5941
8844
  }],
5942
8845
  result: {
5943
8846
  mode: "strict",
5944
- typeSymbol: "@deepseek-ai/dsh-message-feedback/types#MessageFeedbackListResult",
5945
- schema: _deepseek_ai_dsh_message_feedback_messageFeedback_list_result$schema
8847
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceValue",
8848
+ schema: _deepseek_ai_dsh_api_workspace_controller_workspace_insertSessionBefore_result$schema
5946
8849
  },
5947
8850
  sourceLocation: {
5948
- "file": "packages/feedback/message-feedback/src/index.ts",
5949
- "line": 190,
5950
- "column": 9
8851
+ "file": "packages/api/workspace-controller/src/index.ts",
8852
+ "line": 98,
8853
+ "column": 3
5951
8854
  }
5952
8855
  },
5953
8856
  {
5954
- id: "@deepseek-ai/dsh-message-feedback#messageFeedback/put",
5955
- service: "messageFeedback",
5956
- namespace: "messageFeedback",
5957
- method: "put",
8857
+ id: "@deepseek-ai/dsh-api-workspace-controller#workspace/rename",
8858
+ service: "workspaceController",
8859
+ namespace: "workspace",
8860
+ method: "rename",
5958
8861
  invocation: { kind: "direct" },
5959
8862
  parameters: [{
5960
8863
  name: "request",
@@ -5962,81 +8865,24 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5962
8865
  source: "json",
5963
8866
  codec: {
5964
8867
  mode: "strict",
5965
- typeSymbol: "@deepseek-ai/dsh-message-feedback/types#MessageFeedbackPutRequest",
5966
- schema: _deepseek_ai_dsh_message_feedback_messageFeedback_put_parameter_0$schema
8868
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceRenameRequest",
8869
+ schema: _deepseek_ai_dsh_api_workspace_controller_workspace_rename_parameter_0$schema
5967
8870
  }
5968
8871
  }],
5969
8872
  result: {
5970
8873
  mode: "strict",
5971
- typeSymbol: "@deepseek-ai/dsh-message-feedback/types#MessageFeedbackPutResult",
5972
- schema: _deepseek_ai_dsh_message_feedback_messageFeedback_put_result$schema
8874
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceValue",
8875
+ schema: _deepseek_ai_dsh_api_workspace_controller_workspace_rename_result$schema
5973
8876
  },
5974
8877
  sourceLocation: {
5975
- "file": "packages/feedback/message-feedback/src/index.ts",
5976
- "line": 206,
8878
+ "file": "packages/api/workspace-controller/src/index.ts",
8879
+ "line": 68,
5977
8880
  "column": 3
5978
8881
  }
5979
8882
  }
5980
8883
  ]
5981
8884
  };
5982
8885
  //#endregion
5983
- //#region ../../context/session-reference/lib/typert.remote-client.js
5984
- const _deepseek_ai_dsh_session_reference_sessionReferenceResolver_candidates_parameter_0$schema = intersection(string(), unknown());
5985
- const _deepseek_ai_dsh_session_reference_sessionReferenceResolver_candidates_parameter_1$schema = string();
5986
- const _deepseek_ai_dsh_session_reference_sessionReferenceResolver_candidates_result$schema = array(object({
5987
- "mention": string(),
5988
- "sessionId": intersection(string(), unknown()),
5989
- "label": string(),
5990
- "cwd": string().optional(),
5991
- "createdAt": number()
5992
- }));
5993
- const TYPERT_REMOTE = {
5994
- package: "@deepseek-ai/dsh-session-reference",
5995
- descriptors: [{
5996
- id: "@deepseek-ai/dsh-session-reference#sessionReferenceResolver/candidates",
5997
- service: "sessionReferenceResolver",
5998
- namespace: "sessionReferenceResolver",
5999
- method: "candidates",
6000
- implementation: "remoteExportCandidates",
6001
- invocation: { kind: "direct" },
6002
- scope: {
6003
- context: "agent",
6004
- wire: "agentId"
6005
- },
6006
- parameters: [{
6007
- name: "agent",
6008
- wire: "agentId",
6009
- source: "lookup",
6010
- lookup: "agent",
6011
- codec: {
6012
- mode: "strict",
6013
- typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
6014
- schema: _deepseek_ai_dsh_session_reference_sessionReferenceResolver_candidates_parameter_0$schema
6015
- }
6016
- }, {
6017
- name: "query",
6018
- wire: "query",
6019
- source: "json",
6020
- codec: {
6021
- mode: "strict",
6022
- typeSymbol: "@deepseek-ai/dsh-session-reference#sessionReferenceResolver/candidates:query",
6023
- schema: _deepseek_ai_dsh_session_reference_sessionReferenceResolver_candidates_parameter_1$schema
6024
- }
6025
- }],
6026
- cancellation: { parameter: "signal" },
6027
- result: {
6028
- mode: "strict",
6029
- typeSymbol: "@deepseek-ai/dsh-session-reference#sessionReferenceResolver/candidates:result",
6030
- schema: _deepseek_ai_dsh_session_reference_sessionReferenceResolver_candidates_result$schema
6031
- },
6032
- sourceLocation: {
6033
- "file": "packages/context/session-reference/src/index.ts",
6034
- "line": 218,
6035
- "column": 9
6036
- }
6037
- }]
6038
- };
6039
- //#endregion
6040
8886
  //#region lib/types/client/index.js
6041
8887
  /** Platform-neutral assembly of generated Host Remote contributions. */
6042
8888
  /** Required service: the typed Client Remote contribution mount. */
@@ -6050,6 +8896,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6050
8896
  const disposers = [];
6051
8897
  try {
6052
8898
  for (const contribution of [
8899
+ TYPERT_REMOTE$11,
8900
+ TYPERT_REMOTE$10,
8901
+ TYPERT_REMOTE$9,
8902
+ TYPERT_REMOTE$8,
8903
+ TYPERT_REMOTE$7,
6053
8904
  TYPERT_REMOTE$6,
6054
8905
  TYPERT_REMOTE$5,
6055
8906
  TYPERT_REMOTE$4,