@deepseek-ai/dsh-api-remotes 0.1.6-alpha.2 → 0.1.7-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/client.js CHANGED
@@ -4304,220 +4304,106 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4304
4304
  function superRefine(fn, params) {
4305
4305
  return /* @__PURE__ */ _superRefine(fn, params);
4306
4306
  }
4307
+ function _instanceof(cls, params = {}) {
4308
+ const inst = new ZodCustom({
4309
+ type: "custom",
4310
+ check: "custom",
4311
+ fn: (data) => data instanceof cls,
4312
+ abort: true,
4313
+ ...normalizeParams(params)
4314
+ });
4315
+ inst._zod.bag.Class = cls;
4316
+ inst._zod.check = (payload) => {
4317
+ if (!(payload.value instanceof cls)) payload.issues.push({
4318
+ code: "invalid_type",
4319
+ expected: cls.name,
4320
+ input: payload.value,
4321
+ inst,
4322
+ path: [...inst._zod.def.path ?? []]
4323
+ });
4324
+ };
4325
+ return inst;
4326
+ }
4307
4327
  //#endregion
4308
- //#region ../../preset/agent-presets/lib/typert.remote-client.js
4309
- let _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_0$schema$value;
4310
- const _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_0$schema = () => _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_0$schema$value ??= string();
4311
- let _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_1$schema$value;
4312
- const _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_1$schema = () => _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_1$schema$value ??= string();
4313
- let _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_2$schema$value;
4314
- const _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_2$schema = () => _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_2$schema$value ??= union([_undefined(), string()]);
4315
- let _deepseek_ai_dsh_agent_presets_agentPresets_copy_result$schema$value;
4316
- const _deepseek_ai_dsh_agent_presets_agentPresets_copy_result$schema = () => _deepseek_ai_dsh_agent_presets_agentPresets_copy_result$schema$value ??= _void();
4317
- let _deepseek_ai_dsh_agent_presets_agentPresets_deletePreset_parameter_0$schema$value;
4318
- const _deepseek_ai_dsh_agent_presets_agentPresets_deletePreset_parameter_0$schema = () => _deepseek_ai_dsh_agent_presets_agentPresets_deletePreset_parameter_0$schema$value ??= string();
4319
- let _deepseek_ai_dsh_agent_presets_agentPresets_deletePreset_result$schema$value;
4320
- const _deepseek_ai_dsh_agent_presets_agentPresets_deletePreset_result$schema = () => _deepseek_ai_dsh_agent_presets_agentPresets_deletePreset_result$schema$value ??= _void();
4321
- let _deepseek_ai_dsh_agent_presets_agentPresets_list_result$schema$value;
4322
- const _deepseek_ai_dsh_agent_presets_agentPresets_list_result$schema = () => _deepseek_ai_dsh_agent_presets_agentPresets_list_result$schema$value ??= object({
4328
+ //#region ../../preset/agent-preset-registry/lib/typert.remote-client.js
4329
+ let _deepseek_ai_dsh_agent_preset_registry_agentPresets_list_result$schema$value;
4330
+ const _deepseek_ai_dsh_agent_preset_registry_agentPresets_list_result$schema = () => _deepseek_ai_dsh_agent_preset_registry_agentPresets_list_result$schema$value ??= object({
4323
4331
  "presets": array(object({
4324
4332
  "id": string().readonly(),
4325
- "trust": union([literal("system"), literal("user")]).readonly(),
4326
4333
  "isDefault": boolean().readonly(),
4327
4334
  "name": string().readonly().optional(),
4328
4335
  "description": string().readonly().optional(),
4329
4336
  "broken": string().readonly().optional()
4330
4337
  })).readonly(),
4331
- "authorable": boolean().readonly(),
4332
4338
  "modeSelectionEnabled": boolean().readonly()
4333
4339
  });
4334
- let _deepseek_ai_dsh_agent_presets_agentPresets_read_parameter_0$schema$value;
4335
- const _deepseek_ai_dsh_agent_presets_agentPresets_read_parameter_0$schema = () => _deepseek_ai_dsh_agent_presets_agentPresets_read_parameter_0$schema$value ??= string();
4336
- let _deepseek_ai_dsh_agent_presets_agentPresets_read_result$schema$value;
4337
- const _deepseek_ai_dsh_agent_presets_agentPresets_read_result$schema = () => _deepseek_ai_dsh_agent_presets_agentPresets_read_result$schema$value ??= object({
4338
- "agentPreset": string().readonly(),
4339
- "trust": union([literal("system"), literal("user")]).readonly(),
4340
- "content": string().readonly(),
4341
- "name": string().readonly().optional(),
4342
- "description": string().readonly().optional()
4343
- });
4344
- let _deepseek_ai_dsh_agent_presets_agentPresets_select_parameter_0$schema$value;
4345
- const _deepseek_ai_dsh_agent_presets_agentPresets_select_parameter_0$schema = () => _deepseek_ai_dsh_agent_presets_agentPresets_select_parameter_0$schema$value ??= intersection(string(), unknown());
4346
- let _deepseek_ai_dsh_agent_presets_agentPresets_select_parameter_1$schema$value;
4347
- const _deepseek_ai_dsh_agent_presets_agentPresets_select_parameter_1$schema = () => _deepseek_ai_dsh_agent_presets_agentPresets_select_parameter_1$schema$value ??= string();
4348
- let _deepseek_ai_dsh_agent_presets_agentPresets_select_result$schema$value;
4349
- const _deepseek_ai_dsh_agent_presets_agentPresets_select_result$schema = () => _deepseek_ai_dsh_agent_presets_agentPresets_select_result$schema$value ??= string();
4350
- const TYPERT_REMOTE$18 = {
4351
- package: "@deepseek-ai/dsh-agent-presets",
4352
- descriptors: [
4353
- {
4354
- id: "@deepseek-ai/dsh-agent-presets#agentPresets/copy",
4355
- service: "agentPresets",
4356
- namespace: "agentPresets",
4357
- method: "copy",
4358
- implementation: "remoteExportCopy",
4359
- invocation: { kind: "direct" },
4360
- parameters: [
4361
- {
4362
- name: "from",
4363
- wire: "from",
4364
- source: "json",
4365
- codec: {
4366
- mode: "strict",
4367
- typeSymbol: "@deepseek-ai/dsh-agent-presets#agentPresets/copy:from",
4368
- create: _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_0$schema
4369
- }
4370
- },
4371
- {
4372
- name: "id",
4373
- wire: "id",
4374
- source: "json",
4375
- codec: {
4376
- mode: "strict",
4377
- typeSymbol: "@deepseek-ai/dsh-agent-presets#agentPresets/copy:id",
4378
- create: _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_1$schema
4379
- }
4380
- },
4381
- {
4382
- name: "name",
4383
- wire: "name",
4384
- source: "json",
4385
- acceptsUndefined: true,
4386
- codec: {
4387
- mode: "strict",
4388
- typeSymbol: "@deepseek-ai/dsh-agent-presets#agentPresets/copy:name",
4389
- create: _deepseek_ai_dsh_agent_presets_agentPresets_copy_parameter_2$schema
4390
- }
4391
- }
4392
- ],
4393
- result: {
4394
- mode: "strict",
4395
- typeSymbol: "@deepseek-ai/dsh-agent-presets#agentPresets/copy:result",
4396
- create: _deepseek_ai_dsh_agent_presets_agentPresets_copy_result$schema
4397
- },
4398
- sourceLocation: {
4399
- "file": "packages/preset/agent-presets/src/index.ts",
4400
- "line": 594,
4401
- "column": 9
4402
- }
4340
+ let _deepseek_ai_dsh_agent_preset_registry_agentPresets_select_parameter_0$schema$value;
4341
+ const _deepseek_ai_dsh_agent_preset_registry_agentPresets_select_parameter_0$schema = () => _deepseek_ai_dsh_agent_preset_registry_agentPresets_select_parameter_0$schema$value ??= intersection(string(), unknown());
4342
+ let _deepseek_ai_dsh_agent_preset_registry_agentPresets_select_parameter_1$schema$value;
4343
+ const _deepseek_ai_dsh_agent_preset_registry_agentPresets_select_parameter_1$schema = () => _deepseek_ai_dsh_agent_preset_registry_agentPresets_select_parameter_1$schema$value ??= string();
4344
+ let _deepseek_ai_dsh_agent_preset_registry_agentPresets_select_result$schema$value;
4345
+ const _deepseek_ai_dsh_agent_preset_registry_agentPresets_select_result$schema = () => _deepseek_ai_dsh_agent_preset_registry_agentPresets_select_result$schema$value ??= string();
4346
+ const TYPERT_REMOTE$20 = {
4347
+ package: "@deepseek-ai/dsh-agent-preset-registry",
4348
+ descriptors: [{
4349
+ id: "@deepseek-ai/dsh-agent-preset-registry#agentPresets/list",
4350
+ service: "agentPresets",
4351
+ namespace: "agentPresets",
4352
+ method: "list",
4353
+ implementation: "remoteExportList",
4354
+ invocation: { kind: "direct" },
4355
+ parameters: [],
4356
+ result: {
4357
+ mode: "strict",
4358
+ typeSymbol: "@deepseek-ai/dsh-agent-preset-registry/types#AgentPresetRoster",
4359
+ create: _deepseek_ai_dsh_agent_preset_registry_agentPresets_list_result$schema
4403
4360
  },
4404
- {
4405
- id: "@deepseek-ai/dsh-agent-presets#agentPresets/deletePreset",
4406
- service: "agentPresets",
4407
- namespace: "agentPresets",
4408
- method: "deletePreset",
4409
- implementation: "remoteExportDelete",
4410
- invocation: { kind: "direct" },
4411
- parameters: [{
4412
- name: "id",
4413
- wire: "id",
4414
- source: "json",
4415
- codec: {
4416
- mode: "strict",
4417
- typeSymbol: "@deepseek-ai/dsh-agent-presets#agentPresets/deletePreset:id",
4418
- create: _deepseek_ai_dsh_agent_presets_agentPresets_deletePreset_parameter_0$schema
4419
- }
4420
- }],
4421
- result: {
4422
- mode: "strict",
4423
- typeSymbol: "@deepseek-ai/dsh-agent-presets#agentPresets/deletePreset:result",
4424
- create: _deepseek_ai_dsh_agent_presets_agentPresets_deletePreset_result$schema
4425
- },
4426
- sourceLocation: {
4427
- "file": "packages/preset/agent-presets/src/index.ts",
4428
- "line": 632,
4429
- "column": 9
4430
- }
4361
+ sourceLocation: {
4362
+ "file": "packages/preset/agent-preset-registry/src/index.ts",
4363
+ "line": 175,
4364
+ "column": 9
4365
+ }
4366
+ }, {
4367
+ id: "@deepseek-ai/dsh-agent-preset-registry#agentPresets/select",
4368
+ service: "agentPresets",
4369
+ namespace: "agentPresets",
4370
+ method: "select",
4371
+ invocation: { kind: "direct" },
4372
+ scope: {
4373
+ context: "agent",
4374
+ wire: "agentId"
4431
4375
  },
4432
- {
4433
- id: "@deepseek-ai/dsh-agent-presets#agentPresets/list",
4434
- service: "agentPresets",
4435
- namespace: "agentPresets",
4436
- method: "list",
4437
- implementation: "remoteExportList",
4438
- invocation: { kind: "direct" },
4439
- parameters: [],
4440
- result: {
4376
+ parameters: [{
4377
+ name: "agent",
4378
+ wire: "agentId",
4379
+ source: "lookup",
4380
+ lookup: "agent",
4381
+ codec: {
4441
4382
  mode: "strict",
4442
- typeSymbol: "@deepseek-ai/dsh-agent-presets/types#AgentPresetRoster",
4443
- create: _deepseek_ai_dsh_agent_presets_agentPresets_list_result$schema
4444
- },
4445
- sourceLocation: {
4446
- "file": "packages/preset/agent-presets/src/index.ts",
4447
- "line": 286,
4448
- "column": 9
4383
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
4384
+ create: _deepseek_ai_dsh_agent_preset_registry_agentPresets_select_parameter_0$schema
4449
4385
  }
4450
- },
4451
- {
4452
- id: "@deepseek-ai/dsh-agent-presets#agentPresets/read",
4453
- service: "agentPresets",
4454
- namespace: "agentPresets",
4455
- method: "read",
4456
- implementation: "readDocument",
4457
- invocation: { kind: "direct" },
4458
- parameters: [{
4459
- name: "agentPreset",
4460
- wire: "agentPreset",
4461
- source: "json",
4462
- codec: {
4463
- mode: "strict",
4464
- typeSymbol: "@deepseek-ai/dsh-agent-presets#agentPresets/read:agentPreset",
4465
- create: _deepseek_ai_dsh_agent_presets_agentPresets_read_parameter_0$schema
4466
- }
4467
- }],
4468
- result: {
4386
+ }, {
4387
+ name: "agentPreset",
4388
+ wire: "agentPreset",
4389
+ source: "json",
4390
+ codec: {
4469
4391
  mode: "strict",
4470
- typeSymbol: "@deepseek-ai/dsh-agent-presets/types#AgentPresetDocument",
4471
- create: _deepseek_ai_dsh_agent_presets_agentPresets_read_result$schema
4472
- },
4473
- sourceLocation: {
4474
- "file": "packages/preset/agent-presets/src/index.ts",
4475
- "line": 542,
4476
- "column": 9
4392
+ typeSymbol: "@deepseek-ai/dsh-agent-preset-registry#agentPresets/select:agentPreset",
4393
+ create: _deepseek_ai_dsh_agent_preset_registry_agentPresets_select_parameter_1$schema
4477
4394
  }
4395
+ }],
4396
+ result: {
4397
+ mode: "strict",
4398
+ typeSymbol: "@deepseek-ai/dsh-agent-preset-registry#agentPresets/select:result",
4399
+ create: _deepseek_ai_dsh_agent_preset_registry_agentPresets_select_result$schema
4478
4400
  },
4479
- {
4480
- id: "@deepseek-ai/dsh-agent-presets#agentPresets/select",
4481
- service: "agentPresets",
4482
- namespace: "agentPresets",
4483
- method: "select",
4484
- invocation: { kind: "direct" },
4485
- scope: {
4486
- context: "agent",
4487
- wire: "agentId"
4488
- },
4489
- parameters: [{
4490
- name: "agent",
4491
- wire: "agentId",
4492
- source: "lookup",
4493
- lookup: "agent",
4494
- codec: {
4495
- mode: "strict",
4496
- typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
4497
- create: _deepseek_ai_dsh_agent_presets_agentPresets_select_parameter_0$schema
4498
- }
4499
- }, {
4500
- name: "agentPreset",
4501
- wire: "agentPreset",
4502
- source: "json",
4503
- codec: {
4504
- mode: "strict",
4505
- typeSymbol: "@deepseek-ai/dsh-agent-presets#agentPresets/select:agentPreset",
4506
- create: _deepseek_ai_dsh_agent_presets_agentPresets_select_parameter_1$schema
4507
- }
4508
- }],
4509
- result: {
4510
- mode: "strict",
4511
- typeSymbol: "@deepseek-ai/dsh-agent-presets#agentPresets/select:result",
4512
- create: _deepseek_ai_dsh_agent_presets_agentPresets_select_result$schema
4513
- },
4514
- sourceLocation: {
4515
- "file": "packages/preset/agent-presets/src/index.ts",
4516
- "line": 724,
4517
- "column": 9
4518
- }
4401
+ sourceLocation: {
4402
+ "file": "packages/preset/agent-preset-registry/src/index.ts",
4403
+ "line": 305,
4404
+ "column": 9
4519
4405
  }
4520
- ]
4406
+ }]
4521
4407
  };
4522
4408
  //#endregion
4523
4409
  //#region ../../interaction/commands/lib/typert.remote-client.js
@@ -4563,7 +4449,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4563
4449
  "attachments": boolean().readonly().optional()
4564
4450
  }).readonly().optional()
4565
4451
  }));
4566
- const TYPERT_REMOTE$17 = {
4452
+ const TYPERT_REMOTE$19 = {
4567
4453
  package: "@deepseek-ai/dsh-commands",
4568
4454
  descriptors: [{
4569
4455
  id: "@deepseek-ai/dsh-commands#commands/execute",
@@ -4653,6 +4539,364 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4653
4539
  }]
4654
4540
  };
4655
4541
  //#endregion
4542
+ //#region ../account-controller/lib/typert.remote-client.js
4543
+ let _deepseek_ai_dsh_api_account_controller_account_cancelSignIn_parameter_0$schema$value;
4544
+ const _deepseek_ai_dsh_api_account_controller_account_cancelSignIn_parameter_0$schema = () => _deepseek_ai_dsh_api_account_controller_account_cancelSignIn_parameter_0$schema$value ??= intersection(string(), unknown());
4545
+ let _deepseek_ai_dsh_api_account_controller_account_cancelSignIn_result$schema$value;
4546
+ const _deepseek_ai_dsh_api_account_controller_account_cancelSignIn_result$schema = () => _deepseek_ai_dsh_api_account_controller_account_cancelSignIn_result$schema$value ??= object({
4547
+ "status": union([literal("signed-out"), literal("credential-stored")]).readonly(),
4548
+ "links": object({
4549
+ "usageUrl": string().readonly(),
4550
+ "topUpUrl": string().readonly()
4551
+ }).readonly(),
4552
+ "attempt": union([literal(null), object({
4553
+ "id": intersection(string(), unknown()).readonly(),
4554
+ "phase": union([
4555
+ literal("initializing"),
4556
+ literal("waiting-browser"),
4557
+ literal("exchanging"),
4558
+ literal("committing"),
4559
+ literal("succeeded"),
4560
+ literal("cancelled"),
4561
+ literal("expired"),
4562
+ literal("failed")
4563
+ ]).readonly(),
4564
+ "authorizeUrl": string().readonly().optional(),
4565
+ "expiresAt": number().readonly().optional(),
4566
+ "errorCode": union([
4567
+ literal("expired"),
4568
+ literal("network"),
4569
+ literal("protocol"),
4570
+ literal("storage")
4571
+ ]).readonly().optional()
4572
+ })]).readonly()
4573
+ });
4574
+ let _deepseek_ai_dsh_api_account_controller_account_getBalance_result$schema$value;
4575
+ const _deepseek_ai_dsh_api_account_controller_account_getBalance_result$schema = () => _deepseek_ai_dsh_api_account_controller_account_getBalance_result$schema$value ??= union([
4576
+ literal(null),
4577
+ object({
4578
+ "status": literal("ready").readonly(),
4579
+ "value": array(object({
4580
+ "currency": union([literal("CNY"), literal("USD")]).readonly(),
4581
+ "balance": string().readonly()
4582
+ })).readonly(),
4583
+ "bonusWallets": array(object({
4584
+ "currency": union([literal("CNY"), literal("USD")]).readonly(),
4585
+ "balance": string().readonly()
4586
+ })).readonly()
4587
+ }),
4588
+ object({ "status": literal("failed").readonly() })
4589
+ ]);
4590
+ let _deepseek_ai_dsh_api_account_controller_account_getProfile_result$schema$value;
4591
+ const _deepseek_ai_dsh_api_account_controller_account_getProfile_result$schema = () => _deepseek_ai_dsh_api_account_controller_account_getProfile_result$schema$value ??= union([
4592
+ literal(null),
4593
+ object({
4594
+ "status": literal("ready").readonly(),
4595
+ "value": object({
4596
+ "id": union([literal(null), intersection(string(), unknown())]).readonly(),
4597
+ "name": union([literal(null), string()]).readonly(),
4598
+ "contact": union([literal(null), string()]).readonly(),
4599
+ "avatarUrl": union([literal(null), string()]).readonly().optional()
4600
+ }).readonly()
4601
+ }),
4602
+ object({ "status": literal("failed").readonly() })
4603
+ ]);
4604
+ let _deepseek_ai_dsh_api_account_controller_account_getState_result$schema$value;
4605
+ const _deepseek_ai_dsh_api_account_controller_account_getState_result$schema = () => _deepseek_ai_dsh_api_account_controller_account_getState_result$schema$value ??= object({
4606
+ "status": union([literal("signed-out"), literal("credential-stored")]).readonly(),
4607
+ "links": object({
4608
+ "usageUrl": string().readonly(),
4609
+ "topUpUrl": string().readonly()
4610
+ }).readonly(),
4611
+ "attempt": union([literal(null), object({
4612
+ "id": intersection(string(), unknown()).readonly(),
4613
+ "phase": union([
4614
+ literal("initializing"),
4615
+ literal("waiting-browser"),
4616
+ literal("exchanging"),
4617
+ literal("committing"),
4618
+ literal("succeeded"),
4619
+ literal("cancelled"),
4620
+ literal("expired"),
4621
+ literal("failed")
4622
+ ]).readonly(),
4623
+ "authorizeUrl": string().readonly().optional(),
4624
+ "expiresAt": number().readonly().optional(),
4625
+ "errorCode": union([
4626
+ literal("expired"),
4627
+ literal("network"),
4628
+ literal("protocol"),
4629
+ literal("storage")
4630
+ ]).readonly().optional()
4631
+ })]).readonly()
4632
+ });
4633
+ let _deepseek_ai_dsh_api_account_controller_account_signOut_result$schema$value;
4634
+ const _deepseek_ai_dsh_api_account_controller_account_signOut_result$schema = () => _deepseek_ai_dsh_api_account_controller_account_signOut_result$schema$value ??= object({
4635
+ "status": union([literal("signed-out"), literal("credential-stored")]).readonly(),
4636
+ "links": object({
4637
+ "usageUrl": string().readonly(),
4638
+ "topUpUrl": string().readonly()
4639
+ }).readonly(),
4640
+ "attempt": union([literal(null), object({
4641
+ "id": intersection(string(), unknown()).readonly(),
4642
+ "phase": union([
4643
+ literal("initializing"),
4644
+ literal("waiting-browser"),
4645
+ literal("exchanging"),
4646
+ literal("committing"),
4647
+ literal("succeeded"),
4648
+ literal("cancelled"),
4649
+ literal("expired"),
4650
+ literal("failed")
4651
+ ]).readonly(),
4652
+ "authorizeUrl": string().readonly().optional(),
4653
+ "expiresAt": number().readonly().optional(),
4654
+ "errorCode": union([
4655
+ literal("expired"),
4656
+ literal("network"),
4657
+ literal("protocol"),
4658
+ literal("storage")
4659
+ ]).readonly().optional()
4660
+ })]).readonly()
4661
+ });
4662
+ let _deepseek_ai_dsh_api_account_controller_account_startSignIn_parameter_0$schema$value;
4663
+ const _deepseek_ai_dsh_api_account_controller_account_startSignIn_parameter_0$schema = () => _deepseek_ai_dsh_api_account_controller_account_startSignIn_parameter_0$schema$value ??= string();
4664
+ let _deepseek_ai_dsh_api_account_controller_account_startSignIn_parameter_1$schema$value;
4665
+ const _deepseek_ai_dsh_api_account_controller_account_startSignIn_parameter_1$schema = () => _deepseek_ai_dsh_api_account_controller_account_startSignIn_parameter_1$schema$value ??= string();
4666
+ let _deepseek_ai_dsh_api_account_controller_account_startSignIn_parameter_2$schema$value;
4667
+ const _deepseek_ai_dsh_api_account_controller_account_startSignIn_parameter_2$schema = () => _deepseek_ai_dsh_api_account_controller_account_startSignIn_parameter_2$schema$value ??= union([literal("web"), literal("desktop")]);
4668
+ let _deepseek_ai_dsh_api_account_controller_account_startSignIn_result$schema$value;
4669
+ const _deepseek_ai_dsh_api_account_controller_account_startSignIn_result$schema = () => _deepseek_ai_dsh_api_account_controller_account_startSignIn_result$schema$value ??= object({
4670
+ "status": union([literal("signed-out"), literal("credential-stored")]).readonly(),
4671
+ "links": object({
4672
+ "usageUrl": string().readonly(),
4673
+ "topUpUrl": string().readonly()
4674
+ }).readonly(),
4675
+ "attempt": union([literal(null), object({
4676
+ "id": intersection(string(), unknown()).readonly(),
4677
+ "phase": union([
4678
+ literal("initializing"),
4679
+ literal("waiting-browser"),
4680
+ literal("exchanging"),
4681
+ literal("committing"),
4682
+ literal("succeeded"),
4683
+ literal("cancelled"),
4684
+ literal("expired"),
4685
+ literal("failed")
4686
+ ]).readonly(),
4687
+ "authorizeUrl": string().readonly().optional(),
4688
+ "expiresAt": number().readonly().optional(),
4689
+ "errorCode": union([
4690
+ literal("expired"),
4691
+ literal("network"),
4692
+ literal("protocol"),
4693
+ literal("storage")
4694
+ ]).readonly().optional()
4695
+ })]).readonly()
4696
+ });
4697
+ let _deepseek_ai_dsh_api_account_controller_account_watch_result$schema$value;
4698
+ const _deepseek_ai_dsh_api_account_controller_account_watch_result$schema = () => _deepseek_ai_dsh_api_account_controller_account_watch_result$schema$value ??= object({
4699
+ "status": union([literal("signed-out"), literal("credential-stored")]).readonly(),
4700
+ "links": object({
4701
+ "usageUrl": string().readonly(),
4702
+ "topUpUrl": string().readonly()
4703
+ }).readonly(),
4704
+ "attempt": union([literal(null), object({
4705
+ "id": intersection(string(), unknown()).readonly(),
4706
+ "phase": union([
4707
+ literal("initializing"),
4708
+ literal("waiting-browser"),
4709
+ literal("exchanging"),
4710
+ literal("committing"),
4711
+ literal("succeeded"),
4712
+ literal("cancelled"),
4713
+ literal("expired"),
4714
+ literal("failed")
4715
+ ]).readonly(),
4716
+ "authorizeUrl": string().readonly().optional(),
4717
+ "expiresAt": number().readonly().optional(),
4718
+ "errorCode": union([
4719
+ literal("expired"),
4720
+ literal("network"),
4721
+ literal("protocol"),
4722
+ literal("storage")
4723
+ ]).readonly().optional()
4724
+ })]).readonly()
4725
+ });
4726
+ const TYPERT_REMOTE$18 = {
4727
+ package: "@deepseek-ai/dsh-api-account-controller",
4728
+ descriptors: [
4729
+ {
4730
+ id: "@deepseek-ai/dsh-api-account-controller#account/cancelSignIn",
4731
+ service: "accountController",
4732
+ namespace: "account",
4733
+ method: "cancelSignIn",
4734
+ invocation: { kind: "direct" },
4735
+ parameters: [{
4736
+ name: "attemptId",
4737
+ wire: "attemptId",
4738
+ source: "json",
4739
+ codec: {
4740
+ mode: "strict",
4741
+ typeSymbol: "@deepseek-ai/dsh-deepseek-account/types#SignInAttemptId",
4742
+ create: _deepseek_ai_dsh_api_account_controller_account_cancelSignIn_parameter_0$schema
4743
+ }
4744
+ }],
4745
+ result: {
4746
+ mode: "strict",
4747
+ typeSymbol: "@deepseek-ai/dsh-deepseek-account/types#AccountView",
4748
+ create: _deepseek_ai_dsh_api_account_controller_account_cancelSignIn_result$schema
4749
+ },
4750
+ sourceLocation: {
4751
+ "file": "packages/api/account-controller/src/index.ts",
4752
+ "line": 46,
4753
+ "column": 3
4754
+ }
4755
+ },
4756
+ {
4757
+ id: "@deepseek-ai/dsh-api-account-controller#account/getBalance",
4758
+ service: "accountController",
4759
+ namespace: "account",
4760
+ method: "getBalance",
4761
+ invocation: { kind: "direct" },
4762
+ parameters: [],
4763
+ result: {
4764
+ mode: "strict",
4765
+ typeSymbol: "@deepseek-ai/dsh-api-account-controller#account/getBalance:result",
4766
+ create: _deepseek_ai_dsh_api_account_controller_account_getBalance_result$schema
4767
+ },
4768
+ sourceLocation: {
4769
+ "file": "packages/api/account-controller/src/index.ts",
4770
+ "line": 30,
4771
+ "column": 3
4772
+ }
4773
+ },
4774
+ {
4775
+ id: "@deepseek-ai/dsh-api-account-controller#account/getProfile",
4776
+ service: "accountController",
4777
+ namespace: "account",
4778
+ method: "getProfile",
4779
+ invocation: { kind: "direct" },
4780
+ parameters: [],
4781
+ result: {
4782
+ mode: "strict",
4783
+ typeSymbol: "@deepseek-ai/dsh-api-account-controller#account/getProfile:result",
4784
+ create: _deepseek_ai_dsh_api_account_controller_account_getProfile_result$schema
4785
+ },
4786
+ sourceLocation: {
4787
+ "file": "packages/api/account-controller/src/index.ts",
4788
+ "line": 24,
4789
+ "column": 3
4790
+ }
4791
+ },
4792
+ {
4793
+ id: "@deepseek-ai/dsh-api-account-controller#account/getState",
4794
+ service: "accountController",
4795
+ namespace: "account",
4796
+ method: "getState",
4797
+ invocation: { kind: "direct" },
4798
+ parameters: [],
4799
+ result: {
4800
+ mode: "strict",
4801
+ typeSymbol: "@deepseek-ai/dsh-deepseek-account/types#AccountView",
4802
+ create: _deepseek_ai_dsh_api_account_controller_account_getState_result$schema
4803
+ },
4804
+ sourceLocation: {
4805
+ "file": "packages/api/account-controller/src/index.ts",
4806
+ "line": 18,
4807
+ "column": 3
4808
+ }
4809
+ },
4810
+ {
4811
+ id: "@deepseek-ai/dsh-api-account-controller#account/signOut",
4812
+ service: "accountController",
4813
+ namespace: "account",
4814
+ method: "signOut",
4815
+ invocation: { kind: "direct" },
4816
+ parameters: [],
4817
+ result: {
4818
+ mode: "strict",
4819
+ typeSymbol: "@deepseek-ai/dsh-deepseek-account/types#AccountView",
4820
+ create: _deepseek_ai_dsh_api_account_controller_account_signOut_result$schema
4821
+ },
4822
+ sourceLocation: {
4823
+ "file": "packages/api/account-controller/src/index.ts",
4824
+ "line": 52,
4825
+ "column": 3
4826
+ }
4827
+ },
4828
+ {
4829
+ id: "@deepseek-ai/dsh-api-account-controller#account/startSignIn",
4830
+ service: "accountController",
4831
+ namespace: "account",
4832
+ method: "startSignIn",
4833
+ invocation: { kind: "direct" },
4834
+ parameters: [
4835
+ {
4836
+ name: "locale",
4837
+ wire: "locale",
4838
+ source: "json",
4839
+ codec: {
4840
+ mode: "strict",
4841
+ typeSymbol: "@deepseek-ai/dsh-api-account-controller#account/startSignIn:locale",
4842
+ create: _deepseek_ai_dsh_api_account_controller_account_startSignIn_parameter_0$schema
4843
+ }
4844
+ },
4845
+ {
4846
+ name: "callbackOrigin",
4847
+ wire: "callbackOrigin",
4848
+ source: "json",
4849
+ codec: {
4850
+ mode: "strict",
4851
+ typeSymbol: "@deepseek-ai/dsh-api-account-controller#account/startSignIn:callbackOrigin",
4852
+ create: _deepseek_ai_dsh_api_account_controller_account_startSignIn_parameter_1$schema
4853
+ }
4854
+ },
4855
+ {
4856
+ name: "loginSource",
4857
+ wire: "loginSource",
4858
+ source: "json",
4859
+ codec: {
4860
+ mode: "strict",
4861
+ typeSymbol: "@deepseek-ai/dsh-api-account-controller#account/startSignIn:loginSource",
4862
+ create: _deepseek_ai_dsh_api_account_controller_account_startSignIn_parameter_2$schema
4863
+ }
4864
+ }
4865
+ ],
4866
+ result: {
4867
+ mode: "strict",
4868
+ typeSymbol: "@deepseek-ai/dsh-deepseek-account/types#AccountView",
4869
+ create: _deepseek_ai_dsh_api_account_controller_account_startSignIn_result$schema
4870
+ },
4871
+ sourceLocation: {
4872
+ "file": "packages/api/account-controller/src/index.ts",
4873
+ "line": 39,
4874
+ "column": 3
4875
+ }
4876
+ },
4877
+ {
4878
+ id: "@deepseek-ai/dsh-api-account-controller#account/watch",
4879
+ service: "accountController",
4880
+ namespace: "account",
4881
+ method: "watch",
4882
+ mode: "stream",
4883
+ invocation: { kind: "direct" },
4884
+ parameters: [],
4885
+ cancellation: { parameter: "signal" },
4886
+ result: {
4887
+ mode: "strict",
4888
+ typeSymbol: "@deepseek-ai/dsh-deepseek-account/types#AccountView",
4889
+ create: _deepseek_ai_dsh_api_account_controller_account_watch_result$schema
4890
+ },
4891
+ sourceLocation: {
4892
+ "file": "packages/api/account-controller/src/index.ts",
4893
+ "line": 59,
4894
+ "column": 3
4895
+ }
4896
+ }
4897
+ ]
4898
+ };
4899
+ //#endregion
4656
4900
  //#region ../settings-controller/lib/typert.remote-client.js
4657
4901
  let JsonValueRemoteCodec$schema$value$2;
4658
4902
  const JsonValueRemoteCodec$schema$2 = () => JsonValueRemoteCodec$schema$value$2 ??= union([
@@ -4694,15 +4938,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4694
4938
  array(lazy(() => JsonValueRemoteCodec$schema4$2())),
4695
4939
  record(string(), lazy(() => JsonValueRemoteCodec$schema4$2()))
4696
4940
  ]);
4697
- let JsonValueRemoteCodec$schema5$value;
4698
- const JsonValueRemoteCodec$schema5 = () => JsonValueRemoteCodec$schema5$value ??= union([
4941
+ let JsonValueRemoteCodec$schema5$value$1;
4942
+ const JsonValueRemoteCodec$schema5$1 = () => JsonValueRemoteCodec$schema5$value$1 ??= union([
4699
4943
  literal(null),
4700
4944
  string(),
4701
4945
  number(),
4702
4946
  literal(false),
4703
4947
  literal(true),
4704
- array(lazy(() => JsonValueRemoteCodec$schema5())),
4705
- record(string(), lazy(() => JsonValueRemoteCodec$schema5()))
4948
+ array(lazy(() => JsonValueRemoteCodec$schema5$1())),
4949
+ record(string(), lazy(() => JsonValueRemoteCodec$schema5$1()))
4706
4950
  ]);
4707
4951
  let JsonValueRemoteCodec$schema6$value;
4708
4952
  const JsonValueRemoteCodec$schema6 = () => JsonValueRemoteCodec$schema6$value ??= union([
@@ -4742,13 +4986,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4742
4986
  const _deepseek_ai_dsh_api_settings_controller_credentials_unset_parameter_0$schema = () => _deepseek_ai_dsh_api_settings_controller_credentials_unset_parameter_0$schema$value ??= string();
4743
4987
  let _deepseek_ai_dsh_api_settings_controller_credentials_unset_result$schema$value;
4744
4988
  const _deepseek_ai_dsh_api_settings_controller_credentials_unset_result$schema = () => _deepseek_ai_dsh_api_settings_controller_credentials_unset_result$schema$value ??= _void();
4745
- let _deepseek_ai_dsh_api_settings_controller_settings_canOpenAgentPresetDirectory_result$schema$value;
4746
- const _deepseek_ai_dsh_api_settings_controller_settings_canOpenAgentPresetDirectory_result$schema = () => _deepseek_ai_dsh_api_settings_controller_settings_canOpenAgentPresetDirectory_result$schema$value ??= boolean();
4747
4989
  let _deepseek_ai_dsh_api_settings_controller_settings_describe_result$schema$value;
4748
4990
  const _deepseek_ai_dsh_api_settings_controller_settings_describe_result$schema = () => _deepseek_ai_dsh_api_settings_controller_settings_describe_result$schema$value ??= object({
4749
4991
  "writable": boolean(),
4750
4992
  "hasDocument": boolean(),
4751
4993
  "namespaces": array(object({
4994
+ "autoGenerate": boolean(),
4752
4995
  "ns": string(),
4753
4996
  "schema": union([
4754
4997
  literal(null),
@@ -4756,8 +4999,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4756
4999
  number(),
4757
5000
  literal(false),
4758
5001
  literal(true),
4759
- array(lazy(() => JsonValueRemoteCodec$schema$2())),
4760
- record(string(), lazy(() => JsonValueRemoteCodec$schema$2()))
5002
+ array(lazy(() => JsonValueRemoteCodec$schema7())),
5003
+ record(string(), lazy(() => JsonValueRemoteCodec$schema7()))
4761
5004
  ]),
4762
5005
  "value": union([
4763
5006
  literal(null),
@@ -4765,8 +5008,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4765
5008
  number(),
4766
5009
  literal(false),
4767
5010
  literal(true),
4768
- array(lazy(() => JsonValueRemoteCodec$schema$2())),
4769
- record(string(), lazy(() => JsonValueRemoteCodec$schema$2()))
5011
+ array(lazy(() => JsonValueRemoteCodec$schema7())),
5012
+ record(string(), lazy(() => JsonValueRemoteCodec$schema7()))
4770
5013
  ]),
4771
5014
  "base": union([
4772
5015
  literal(null),
@@ -4774,8 +5017,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4774
5017
  number(),
4775
5018
  literal(false),
4776
5019
  literal(true),
4777
- array(lazy(() => JsonValueRemoteCodec$schema$2())),
4778
- record(string(), lazy(() => JsonValueRemoteCodec$schema$2()))
5020
+ array(lazy(() => JsonValueRemoteCodec$schema7())),
5021
+ record(string(), lazy(() => JsonValueRemoteCodec$schema7()))
4779
5022
  ]).optional(),
4780
5023
  "user": union([
4781
5024
  literal(null),
@@ -4783,10 +5026,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4783
5026
  number(),
4784
5027
  literal(false),
4785
5028
  literal(true),
4786
- array(lazy(() => JsonValueRemoteCodec$schema$2())),
4787
- record(string(), lazy(() => JsonValueRemoteCodec$schema$2()))
5029
+ array(lazy(() => JsonValueRemoteCodec$schema7())),
5030
+ record(string(), lazy(() => JsonValueRemoteCodec$schema7()))
4788
5031
  ]).optional(),
4789
- "applies": union([literal("live"), literal("restart")]),
5032
+ "applies": literal("live"),
4790
5033
  "secrets": array(object({
4791
5034
  "path": array(string()),
4792
5035
  "set": boolean()
@@ -4806,8 +5049,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4806
5049
  number(),
4807
5050
  literal(false),
4808
5051
  literal(true),
4809
- array(lazy(() => JsonValueRemoteCodec$schema6())),
4810
- record(string(), lazy(() => JsonValueRemoteCodec$schema6()))
5052
+ array(lazy(() => JsonValueRemoteCodec$schema5$1())),
5053
+ record(string(), lazy(() => JsonValueRemoteCodec$schema5$1()))
4811
5054
  ])
4812
5055
  }), object({
4813
5056
  "op": literal("unset"),
@@ -4817,6 +5060,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4817
5060
  const _deepseek_ai_dsh_api_settings_controller_settings_mutate_parameter_2$schema = () => _deepseek_ai_dsh_api_settings_controller_settings_mutate_parameter_2$schema$value ??= union([_undefined(), number()]);
4818
5061
  let _deepseek_ai_dsh_api_settings_controller_settings_mutate_result$schema$value;
4819
5062
  const _deepseek_ai_dsh_api_settings_controller_settings_mutate_result$schema = () => _deepseek_ai_dsh_api_settings_controller_settings_mutate_result$schema$value ??= object({
5063
+ "autoGenerate": boolean(),
4820
5064
  "ns": string(),
4821
5065
  "schema": union([
4822
5066
  literal(null),
@@ -4824,8 +5068,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4824
5068
  number(),
4825
5069
  literal(false),
4826
5070
  literal(true),
4827
- array(lazy(() => JsonValueRemoteCodec$schema7())),
4828
- record(string(), lazy(() => JsonValueRemoteCodec$schema7()))
5071
+ array(lazy(() => JsonValueRemoteCodec$schema6())),
5072
+ record(string(), lazy(() => JsonValueRemoteCodec$schema6()))
4829
5073
  ]),
4830
5074
  "value": union([
4831
5075
  literal(null),
@@ -4833,8 +5077,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4833
5077
  number(),
4834
5078
  literal(false),
4835
5079
  literal(true),
4836
- array(lazy(() => JsonValueRemoteCodec$schema7())),
4837
- record(string(), lazy(() => JsonValueRemoteCodec$schema7()))
5080
+ array(lazy(() => JsonValueRemoteCodec$schema6())),
5081
+ record(string(), lazy(() => JsonValueRemoteCodec$schema6()))
4838
5082
  ]),
4839
5083
  "base": union([
4840
5084
  literal(null),
@@ -4842,8 +5086,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4842
5086
  number(),
4843
5087
  literal(false),
4844
5088
  literal(true),
4845
- array(lazy(() => JsonValueRemoteCodec$schema7())),
4846
- record(string(), lazy(() => JsonValueRemoteCodec$schema7()))
5089
+ array(lazy(() => JsonValueRemoteCodec$schema6())),
5090
+ record(string(), lazy(() => JsonValueRemoteCodec$schema6()))
4847
5091
  ]).optional(),
4848
5092
  "user": union([
4849
5093
  literal(null),
@@ -4851,23 +5095,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4851
5095
  number(),
4852
5096
  literal(false),
4853
5097
  literal(true),
4854
- array(lazy(() => JsonValueRemoteCodec$schema7())),
4855
- record(string(), lazy(() => JsonValueRemoteCodec$schema7()))
5098
+ array(lazy(() => JsonValueRemoteCodec$schema6())),
5099
+ record(string(), lazy(() => JsonValueRemoteCodec$schema6()))
4856
5100
  ]).optional(),
4857
- "applies": union([literal("live"), literal("restart")]),
5101
+ "applies": literal("live"),
4858
5102
  "secrets": array(object({
4859
5103
  "path": array(string()),
4860
5104
  "set": boolean()
4861
5105
  })),
4862
5106
  "revision": number()
4863
5107
  });
4864
- let _deepseek_ai_dsh_api_settings_controller_settings_openAgentPresetDirectory_parameter_0$schema$value;
4865
- const _deepseek_ai_dsh_api_settings_controller_settings_openAgentPresetDirectory_parameter_0$schema = () => _deepseek_ai_dsh_api_settings_controller_settings_openAgentPresetDirectory_parameter_0$schema$value ??= string();
4866
- let _deepseek_ai_dsh_api_settings_controller_settings_openAgentPresetDirectory_result$schema$value;
4867
- const _deepseek_ai_dsh_api_settings_controller_settings_openAgentPresetDirectory_result$schema = () => _deepseek_ai_dsh_api_settings_controller_settings_openAgentPresetDirectory_result$schema$value ??= union([object({ "opened": literal(true).readonly() }), object({
4868
- "opened": literal(false).readonly(),
4869
- "path": string().readonly()
4870
- })]);
4871
5108
  let _deepseek_ai_dsh_api_settings_controller_settings_openSettingsDocument_result$schema$value;
4872
5109
  const _deepseek_ai_dsh_api_settings_controller_settings_openSettingsDocument_result$schema = () => _deepseek_ai_dsh_api_settings_controller_settings_openSettingsDocument_result$schema$value ??= object({ "opened": literal(true).readonly() });
4873
5110
  let _deepseek_ai_dsh_api_settings_controller_settings_replace_parameter_0$schema$value;
@@ -4879,13 +5116,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4879
5116
  number(),
4880
5117
  literal(false),
4881
5118
  literal(true),
4882
- array(lazy(() => JsonValueRemoteCodec$schema4$2())),
4883
- record(string(), lazy(() => JsonValueRemoteCodec$schema4$2()))
5119
+ array(lazy(() => JsonValueRemoteCodec$schema3$2())),
5120
+ record(string(), lazy(() => JsonValueRemoteCodec$schema3$2()))
4884
5121
  ]));
4885
5122
  let _deepseek_ai_dsh_api_settings_controller_settings_replace_parameter_2$schema$value;
4886
5123
  const _deepseek_ai_dsh_api_settings_controller_settings_replace_parameter_2$schema = () => _deepseek_ai_dsh_api_settings_controller_settings_replace_parameter_2$schema$value ??= union([_undefined(), number()]);
4887
5124
  let _deepseek_ai_dsh_api_settings_controller_settings_replace_result$schema$value;
4888
5125
  const _deepseek_ai_dsh_api_settings_controller_settings_replace_result$schema = () => _deepseek_ai_dsh_api_settings_controller_settings_replace_result$schema$value ??= object({
5126
+ "autoGenerate": boolean(),
4889
5127
  "ns": string(),
4890
5128
  "schema": union([
4891
5129
  literal(null),
@@ -4893,8 +5131,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4893
5131
  number(),
4894
5132
  literal(false),
4895
5133
  literal(true),
4896
- array(lazy(() => JsonValueRemoteCodec$schema5())),
4897
- record(string(), lazy(() => JsonValueRemoteCodec$schema5()))
5134
+ array(lazy(() => JsonValueRemoteCodec$schema4$2())),
5135
+ record(string(), lazy(() => JsonValueRemoteCodec$schema4$2()))
4898
5136
  ]),
4899
5137
  "value": union([
4900
5138
  literal(null),
@@ -4902,8 +5140,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4902
5140
  number(),
4903
5141
  literal(false),
4904
5142
  literal(true),
4905
- array(lazy(() => JsonValueRemoteCodec$schema5())),
4906
- record(string(), lazy(() => JsonValueRemoteCodec$schema5()))
5143
+ array(lazy(() => JsonValueRemoteCodec$schema4$2())),
5144
+ record(string(), lazy(() => JsonValueRemoteCodec$schema4$2()))
4907
5145
  ]),
4908
5146
  "base": union([
4909
5147
  literal(null),
@@ -4911,8 +5149,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4911
5149
  number(),
4912
5150
  literal(false),
4913
5151
  literal(true),
4914
- array(lazy(() => JsonValueRemoteCodec$schema5())),
4915
- record(string(), lazy(() => JsonValueRemoteCodec$schema5()))
5152
+ array(lazy(() => JsonValueRemoteCodec$schema4$2())),
5153
+ record(string(), lazy(() => JsonValueRemoteCodec$schema4$2()))
4916
5154
  ]).optional(),
4917
5155
  "user": union([
4918
5156
  literal(null),
@@ -4920,10 +5158,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4920
5158
  number(),
4921
5159
  literal(false),
4922
5160
  literal(true),
4923
- array(lazy(() => JsonValueRemoteCodec$schema5())),
4924
- record(string(), lazy(() => JsonValueRemoteCodec$schema5()))
5161
+ array(lazy(() => JsonValueRemoteCodec$schema4$2())),
5162
+ record(string(), lazy(() => JsonValueRemoteCodec$schema4$2()))
4925
5163
  ]).optional(),
4926
- "applies": union([literal("live"), literal("restart")]),
5164
+ "applies": literal("live"),
4927
5165
  "secrets": array(object({
4928
5166
  "path": array(string()),
4929
5167
  "set": boolean()
@@ -4939,13 +5177,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4939
5177
  number(),
4940
5178
  literal(false),
4941
5179
  literal(true),
4942
- array(lazy(() => JsonValueRemoteCodec$schema2$2())),
4943
- record(string(), lazy(() => JsonValueRemoteCodec$schema2$2()))
5180
+ array(lazy(() => JsonValueRemoteCodec$schema$2())),
5181
+ record(string(), lazy(() => JsonValueRemoteCodec$schema$2()))
4944
5182
  ]));
4945
5183
  let _deepseek_ai_dsh_api_settings_controller_settings_update_parameter_2$schema$value;
4946
5184
  const _deepseek_ai_dsh_api_settings_controller_settings_update_parameter_2$schema = () => _deepseek_ai_dsh_api_settings_controller_settings_update_parameter_2$schema$value ??= union([_undefined(), number()]);
4947
5185
  let _deepseek_ai_dsh_api_settings_controller_settings_update_result$schema$value;
4948
5186
  const _deepseek_ai_dsh_api_settings_controller_settings_update_result$schema = () => _deepseek_ai_dsh_api_settings_controller_settings_update_result$schema$value ??= object({
5187
+ "autoGenerate": boolean(),
4949
5188
  "ns": string(),
4950
5189
  "schema": union([
4951
5190
  literal(null),
@@ -4953,8 +5192,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4953
5192
  number(),
4954
5193
  literal(false),
4955
5194
  literal(true),
4956
- array(lazy(() => JsonValueRemoteCodec$schema3$2())),
4957
- record(string(), lazy(() => JsonValueRemoteCodec$schema3$2()))
5195
+ array(lazy(() => JsonValueRemoteCodec$schema2$2())),
5196
+ record(string(), lazy(() => JsonValueRemoteCodec$schema2$2()))
4958
5197
  ]),
4959
5198
  "value": union([
4960
5199
  literal(null),
@@ -4962,8 +5201,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4962
5201
  number(),
4963
5202
  literal(false),
4964
5203
  literal(true),
4965
- array(lazy(() => JsonValueRemoteCodec$schema3$2())),
4966
- record(string(), lazy(() => JsonValueRemoteCodec$schema3$2()))
5204
+ array(lazy(() => JsonValueRemoteCodec$schema2$2())),
5205
+ record(string(), lazy(() => JsonValueRemoteCodec$schema2$2()))
4967
5206
  ]),
4968
5207
  "base": union([
4969
5208
  literal(null),
@@ -4971,8 +5210,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4971
5210
  number(),
4972
5211
  literal(false),
4973
5212
  literal(true),
4974
- array(lazy(() => JsonValueRemoteCodec$schema3$2())),
4975
- record(string(), lazy(() => JsonValueRemoteCodec$schema3$2()))
5213
+ array(lazy(() => JsonValueRemoteCodec$schema2$2())),
5214
+ record(string(), lazy(() => JsonValueRemoteCodec$schema2$2()))
4976
5215
  ]).optional(),
4977
5216
  "user": union([
4978
5217
  literal(null),
@@ -4980,17 +5219,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
4980
5219
  number(),
4981
5220
  literal(false),
4982
5221
  literal(true),
4983
- array(lazy(() => JsonValueRemoteCodec$schema3$2())),
4984
- record(string(), lazy(() => JsonValueRemoteCodec$schema3$2()))
5222
+ array(lazy(() => JsonValueRemoteCodec$schema2$2())),
5223
+ record(string(), lazy(() => JsonValueRemoteCodec$schema2$2()))
4985
5224
  ]).optional(),
4986
- "applies": union([literal("live"), literal("restart")]),
5225
+ "applies": literal("live"),
4987
5226
  "secrets": array(object({
4988
5227
  "path": array(string()),
4989
5228
  "set": boolean()
4990
5229
  })),
4991
5230
  "revision": number()
4992
5231
  });
4993
- const TYPERT_REMOTE$16 = {
5232
+ const TYPERT_REMOTE$17 = {
4994
5233
  package: "@deepseek-ai/dsh-api-settings-controller",
4995
5234
  descriptors: [
4996
5235
  {
@@ -5083,24 +5322,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5083
5322
  "column": 9
5084
5323
  }
5085
5324
  },
5086
- {
5087
- id: "@deepseek-ai/dsh-api-settings-controller#settings/canOpenAgentPresetDirectory",
5088
- service: "settingsController",
5089
- namespace: "settings",
5090
- method: "canOpenAgentPresetDirectory",
5091
- invocation: { kind: "direct" },
5092
- parameters: [],
5093
- result: {
5094
- mode: "strict",
5095
- typeSymbol: "@deepseek-ai/dsh-api-settings-controller#settings/canOpenAgentPresetDirectory:result",
5096
- create: _deepseek_ai_dsh_api_settings_controller_settings_canOpenAgentPresetDirectory_result$schema
5097
- },
5098
- sourceLocation: {
5099
- "file": "packages/api/settings-controller/src/index.ts",
5100
- "line": 131,
5101
- "column": 3
5102
- }
5103
- },
5104
5325
  {
5105
5326
  id: "@deepseek-ai/dsh-api-settings-controller#settings/describe",
5106
5327
  service: "settingsController",
@@ -5115,7 +5336,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5115
5336
  },
5116
5337
  sourceLocation: {
5117
5338
  "file": "packages/api/settings-controller/src/index.ts",
5118
- "line": 117,
5339
+ "line": 98,
5119
5340
  "column": 3
5120
5341
  }
5121
5342
  },
@@ -5165,35 +5386,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5165
5386
  },
5166
5387
  sourceLocation: {
5167
5388
  "file": "packages/api/settings-controller/src/index.ts",
5168
- "line": 180,
5169
- "column": 9
5170
- }
5171
- },
5172
- {
5173
- id: "@deepseek-ai/dsh-api-settings-controller#settings/openAgentPresetDirectory",
5174
- service: "settingsController",
5175
- namespace: "settings",
5176
- method: "openAgentPresetDirectory",
5177
- invocation: { kind: "direct" },
5178
- parameters: [{
5179
- name: "agentPreset",
5180
- wire: "agentPreset",
5181
- source: "json",
5182
- codec: {
5183
- mode: "strict",
5184
- typeSymbol: "@deepseek-ai/dsh-api-settings-controller#settings/openAgentPresetDirectory:agentPreset",
5185
- create: _deepseek_ai_dsh_api_settings_controller_settings_openAgentPresetDirectory_parameter_0$schema
5186
- }
5187
- }],
5188
- cancellation: { parameter: "signal" },
5189
- result: {
5190
- mode: "strict",
5191
- typeSymbol: "@deepseek-ai/dsh-api-settings-controller/types#AgentPresetDirectoryOpenValue",
5192
- create: _deepseek_ai_dsh_api_settings_controller_settings_openAgentPresetDirectory_result$schema
5193
- },
5194
- sourceLocation: {
5195
- "file": "packages/api/settings-controller/src/index.ts",
5196
- "line": 226,
5389
+ "line": 152,
5197
5390
  "column": 9
5198
5391
  }
5199
5392
  },
@@ -5212,7 +5405,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5212
5405
  },
5213
5406
  sourceLocation: {
5214
5407
  "file": "packages/api/settings-controller/src/index.ts",
5215
- "line": 195,
5408
+ "line": 167,
5216
5409
  "column": 9
5217
5410
  }
5218
5411
  },
@@ -5262,7 +5455,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5262
5455
  },
5263
5456
  sourceLocation: {
5264
5457
  "file": "packages/api/settings-controller/src/index.ts",
5265
- "line": 161,
5458
+ "line": 133,
5266
5459
  "column": 3
5267
5460
  }
5268
5461
  },
@@ -5312,7 +5505,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5312
5505
  },
5313
5506
  sourceLocation: {
5314
5507
  "file": "packages/api/settings-controller/src/index.ts",
5315
- "line": 144,
5508
+ "line": 116,
5316
5509
  "column": 3
5317
5510
  }
5318
5511
  }
@@ -5333,13 +5526,57 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5333
5526
  "missingFonts": array(string()).readonly(),
5334
5527
  "generation": intersection(string(), unknown()).readonly(),
5335
5528
  "offset": number().readonly(),
5336
- "data": string().readonly(),
5529
+ "data": _instanceof(Uint8Array),
5337
5530
  "eof": boolean().readonly(),
5338
5531
  "absolutePath": string().readonly(),
5339
5532
  "version": string().readonly(),
5340
5533
  "bytes": number().readonly().optional()
5341
5534
  });
5342
- const TYPERT_REMOTE$15 = {
5535
+ const $resultSnapshot$1 = (input, path) => {
5536
+ if (input === null || typeof input !== "object" || input instanceof Uint8Array) return input;
5537
+ const toJSON = input.toJSON;
5538
+ const value = typeof toJSON === "function" ? toJSON.call(input, path.at(-1)?.toString() ?? "value") : input;
5539
+ if (value === null || typeof value !== "object" || value instanceof Uint8Array) return value;
5540
+ if (Array.isArray(value)) {
5541
+ const items = [];
5542
+ for (let index = 0, length = value.length; index < length; index++) items.push(value[index]);
5543
+ return items;
5544
+ }
5545
+ const fields = {};
5546
+ for (const key of Object.keys(value)) {
5547
+ const item = key === "toJSON" && value === input ? toJSON : value[key];
5548
+ if (key === "toJSON" && typeof item === "function") continue;
5549
+ Object.defineProperty(fields, key, {
5550
+ value: item,
5551
+ enumerable: true,
5552
+ writable: true,
5553
+ configurable: true
5554
+ });
5555
+ }
5556
+ return fields;
5557
+ };
5558
+ const $resultContainer$1 = (input, path, ancestors, project, snapshot) => {
5559
+ if (input === null || typeof input !== "object") return project(input);
5560
+ const owner = !ancestors.has(input);
5561
+ if (!owner && ancestors.get(input) !== path.length) throw new TypeError("Remote result contains a circular object");
5562
+ if (owner) ancestors.set(input, path.length);
5563
+ try {
5564
+ return project(snapshot ? $resultSnapshot$1(input, path) : input);
5565
+ } finally {
5566
+ if (owner) ancestors.delete(input);
5567
+ }
5568
+ };
5569
+ const $encode1$1 = (value, writeBytes, path, ancestors) => {
5570
+ return value instanceof Uint8Array ? writeBytes(value, path) : value;
5571
+ };
5572
+ const $encode0$1 = (value, writeBytes, path, ancestors) => {
5573
+ return $resultContainer$1(value, path, ancestors, (value) => {
5574
+ if (value === null || typeof value !== "object" || Array.isArray(value) || value instanceof Uint8Array) return value;
5575
+ if (Object.hasOwn(value, "data")) value["data"] = $encode1$1(value["data"], writeBytes, [...path, "data"], ancestors);
5576
+ return value;
5577
+ }, true);
5578
+ };
5579
+ const TYPERT_REMOTE$16 = {
5343
5580
  package: "@deepseek-ai/dsh-office-to-pdf",
5344
5581
  descriptors: [{
5345
5582
  id: "@deepseek-ai/dsh-office-to-pdf#officeToPdf/generation",
@@ -5403,7 +5640,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5403
5640
  result: {
5404
5641
  mode: "strict",
5405
5642
  typeSymbol: "@deepseek-ai/dsh-office-to-pdf/types#RenderedDocumentBytes",
5406
- create: _deepseek_ai_dsh_office_to_pdf_officeToPdf_render_result$schema
5643
+ create: _deepseek_ai_dsh_office_to_pdf_officeToPdf_render_result$schema,
5644
+ decode: (value) => _deepseek_ai_dsh_office_to_pdf_officeToPdf_render_result$schema().parse(value),
5645
+ encode: (value, writeBytes) => $encode0$1(value, writeBytes, [], /* @__PURE__ */ new Map())
5407
5646
  },
5408
5647
  sourceLocation: {
5409
5648
  "file": "packages/document/office-to-pdf/src/index.ts",
@@ -5578,7 +5817,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5578
5817
  "id": intersection(string(), unknown()).readonly(),
5579
5818
  "revision": number().readonly()
5580
5819
  });
5581
- const TYPERT_REMOTE$14 = {
5820
+ const TYPERT_REMOTE$15 = {
5582
5821
  package: "@deepseek-ai/dsh-goal",
5583
5822
  descriptors: [
5584
5823
  {
@@ -5908,7 +6147,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5908
6147
  "id": string(),
5909
6148
  "name": string()
5910
6149
  }));
5911
- const TYPERT_REMOTE$13 = {
6150
+ const TYPERT_REMOTE$14 = {
5912
6151
  package: "@deepseek-ai/dsh-llm",
5913
6152
  descriptors: [
5914
6153
  {
@@ -5945,7 +6184,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5945
6184
  },
5946
6185
  sourceLocation: {
5947
6186
  "file": "packages/llm/llm/src/index.ts",
5948
- "line": 632,
6187
+ "line": 633,
5949
6188
  "column": 9
5950
6189
  }
5951
6190
  },
@@ -5963,7 +6202,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5963
6202
  },
5964
6203
  sourceLocation: {
5965
6204
  "file": "packages/llm/llm/src/index.ts",
5966
- "line": 544,
6205
+ "line": 545,
5967
6206
  "column": 3
5968
6207
  }
5969
6208
  },
@@ -5981,7 +6220,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
5981
6220
  },
5982
6221
  sourceLocation: {
5983
6222
  "file": "packages/llm/llm/src/index.ts",
5984
- "line": 472,
6223
+ "line": 473,
5985
6224
  "column": 3
5986
6225
  }
5987
6226
  }
@@ -6065,11 +6304,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6065
6304
  "packageId": intersection(string(), unknown()),
6066
6305
  "mode": union([literal("run"), literal("update")]),
6067
6306
  "status": union([
6068
- literal("running"),
6307
+ literal("cancelled"),
6069
6308
  literal("failed"),
6309
+ literal("running"),
6070
6310
  literal("rejected"),
6071
6311
  literal("awaiting-approval"),
6072
- literal("cancelled"),
6073
6312
  literal("starting-host"),
6074
6313
  literal("client-pending"),
6075
6314
  literal("waiting"),
@@ -6079,9 +6318,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6079
6318
  "requiresApproval": boolean().optional(),
6080
6319
  "host": object({
6081
6320
  "status": union([
6082
- literal("pending"),
6083
- literal("running"),
6084
6321
  literal("failed"),
6322
+ literal("running"),
6323
+ literal("pending"),
6085
6324
  literal("waiting"),
6086
6325
  literal("stopped"),
6087
6326
  literal("absent")
@@ -6091,9 +6330,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6091
6330
  }),
6092
6331
  "client": object({
6093
6332
  "status": union([
6094
- literal("pending"),
6095
- literal("running"),
6096
6333
  literal("failed"),
6334
+ literal("running"),
6335
+ literal("pending"),
6097
6336
  literal("waiting"),
6098
6337
  literal("stopped"),
6099
6338
  literal("absent")
@@ -6300,6 +6539,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6300
6539
  }), object({
6301
6540
  "ok": literal(false),
6302
6541
  "reason": union([
6542
+ literal("cancelled"),
6303
6543
  literal("plugin-missing"),
6304
6544
  literal("rejected"),
6305
6545
  literal("host-half-failed"),
@@ -6307,7 +6547,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6307
6547
  literal("package-missing"),
6308
6548
  literal("invalid-mode"),
6309
6549
  literal("transition-in-flight"),
6310
- literal("cancelled"),
6311
6550
  literal("not-running")
6312
6551
  ]),
6313
6552
  "message": string(),
@@ -6365,7 +6604,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6365
6604
  "reason": literal("plugin-missing"),
6366
6605
  "message": string()
6367
6606
  })]);
6368
- const TYPERT_REMOTE$12 = {
6607
+ const TYPERT_REMOTE$13 = {
6369
6608
  package: "@deepseek-ai/dsh-cordis-host-runner",
6370
6609
  descriptors: [
6371
6610
  {
@@ -6418,7 +6657,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6418
6657
  },
6419
6658
  sourceLocation: {
6420
6659
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
6421
- "line": 384,
6660
+ "line": 389,
6422
6661
  "column": 3
6423
6662
  }
6424
6663
  },
@@ -6436,7 +6675,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6436
6675
  },
6437
6676
  sourceLocation: {
6438
6677
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
6439
- "line": 525,
6678
+ "line": 530,
6440
6679
  "column": 3
6441
6680
  }
6442
6681
  },
@@ -6495,7 +6734,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6495
6734
  },
6496
6735
  sourceLocation: {
6497
6736
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
6498
- "line": 741,
6737
+ "line": 746,
6499
6738
  "column": 9
6500
6739
  }
6501
6740
  },
@@ -6559,7 +6798,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6559
6798
  },
6560
6799
  sourceLocation: {
6561
6800
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
6562
- "line": 718,
6801
+ "line": 723,
6563
6802
  "column": 9
6564
6803
  }
6565
6804
  },
@@ -6623,7 +6862,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6623
6862
  },
6624
6863
  sourceLocation: {
6625
6864
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
6626
- "line": 684,
6865
+ "line": 689,
6627
6866
  "column": 9
6628
6867
  }
6629
6868
  },
@@ -6677,7 +6916,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6677
6916
  },
6678
6917
  sourceLocation: {
6679
6918
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
6680
- "line": 511,
6919
+ "line": 516,
6681
6920
  "column": 3
6682
6921
  }
6683
6922
  },
@@ -6713,7 +6952,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6713
6952
  },
6714
6953
  sourceLocation: {
6715
6954
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
6716
- "line": 413,
6955
+ "line": 418,
6717
6956
  "column": 9
6718
6957
  }
6719
6958
  },
@@ -6797,7 +7036,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6797
7036
  },
6798
7037
  sourceLocation: {
6799
7038
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
6800
- "line": 325,
7039
+ "line": 330,
6801
7040
  "column": 9
6802
7041
  }
6803
7042
  },
@@ -6851,7 +7090,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6851
7090
  },
6852
7091
  sourceLocation: {
6853
7092
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
6854
- "line": 438,
7093
+ "line": 443,
6855
7094
  "column": 9
6856
7095
  }
6857
7096
  },
@@ -6892,7 +7131,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6892
7131
  },
6893
7132
  sourceLocation: {
6894
7133
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
6895
- "line": 480,
7134
+ "line": 485,
6896
7135
  "column": 9
6897
7136
  }
6898
7137
  },
@@ -6919,7 +7158,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6919
7158
  },
6920
7159
  sourceLocation: {
6921
7160
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
6922
- "line": 498,
7161
+ "line": 503,
6923
7162
  "column": 3
6924
7163
  }
6925
7164
  },
@@ -6960,7 +7199,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6960
7199
  },
6961
7200
  sourceLocation: {
6962
7201
  "file": "packages/extensions/cordis-host-runner/src/index.ts",
6963
- "line": 227,
7202
+ "line": 232,
6964
7203
  "column": 9
6965
7204
  }
6966
7205
  }
@@ -6978,6 +7217,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6978
7217
  ]).readonly() });
6979
7218
  let _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_0$schema$value;
6980
7219
  const _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_0$schema = () => _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_0$schema$value ??= string();
7220
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_1$schema$value;
7221
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_1$schema = () => _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_1$schema$value ??= union([_undefined(), object({ "registry": union([literal(null), string()]).readonly().optional() })]);
6981
7222
  let _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_result$schema$value;
6982
7223
  const _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_result$schema = () => _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_result$schema$value ??= union([object({
6983
7224
  "status": literal("accepted").readonly(),
@@ -6994,19 +7235,22 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6994
7235
  literal(null),
6995
7236
  literal(false),
6996
7237
  literal(true)
6997
- ]).readonly()
7238
+ ]).readonly(),
7239
+ "registry": union([literal(null), string()]).readonly(),
7240
+ "host": string().readonly().optional()
6998
7241
  }), object({
6999
7242
  "status": literal("refused").readonly(),
7000
7243
  "problem": union([
7244
+ literal("network"),
7245
+ literal("unknown"),
7001
7246
  literal("invalid-spec"),
7002
7247
  literal("already-installed"),
7003
7248
  literal("not-found"),
7004
7249
  literal("not-a-package"),
7005
- literal("not-a-bundle"),
7006
- literal("network"),
7007
- literal("unknown")
7250
+ literal("not-a-bundle")
7008
7251
  ]).readonly(),
7009
- "reason": string().readonly()
7252
+ "reason": string().readonly(),
7253
+ "registries": array(union([literal(null), string()])).readonly().optional()
7010
7254
  })]);
7011
7255
  let _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_0$schema$value;
7012
7256
  const _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_0$schema = () => _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_0$schema$value ??= string();
@@ -7014,14 +7258,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7014
7258
  const _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_1$schema = () => _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_parameter_1$schema$value ??= union([_undefined(), object({
7015
7259
  "enabled": boolean().optional(),
7016
7260
  "requestId": intersection(string(), unknown()).optional(),
7017
- "approvedBuilds": array(string()).optional()
7261
+ "approvedBuilds": array(string()).optional(),
7262
+ "registry": union([literal(null), string()]).optional()
7018
7263
  })]);
7019
7264
  let _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_result$schema$value;
7020
7265
  const _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_result$schema = () => _deepseek_ai_dsh_plugin_manager_pluginManager_installBundle_result$schema$value ??= object({
7021
7266
  "changed": boolean(),
7022
7267
  "application": union([
7023
- literal("failed"),
7024
7268
  literal("cancelled"),
7269
+ literal("failed"),
7025
7270
  literal("applied"),
7026
7271
  literal("restart-required"),
7027
7272
  literal("overridden")
@@ -7056,26 +7301,34 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7056
7301
  "truncated": boolean(),
7057
7302
  "logPath": string(),
7058
7303
  "kind": union([
7059
- literal("not-found"),
7060
7304
  literal("network"),
7061
7305
  literal("unknown"),
7062
- literal("pnpm-missing"),
7063
7306
  literal("timeout"),
7307
+ literal("integrity"),
7308
+ literal("not-found"),
7309
+ literal("pnpm-missing"),
7064
7310
  literal("no-matching-version"),
7065
7311
  literal("disk-full"),
7066
7312
  literal("permission"),
7067
- literal("build-blocked"),
7068
- literal("integrity")
7313
+ literal("build-blocked")
7069
7314
  ]).optional()
7070
7315
  }).optional(),
7071
7316
  "bundle": string().optional(),
7072
7317
  "pendingBuilds": array(string()).optional(),
7073
- "approvedBuilds": array(string()).optional()
7318
+ "approvedBuilds": array(string()).optional(),
7319
+ "registries": array(union([literal(null), string()])).optional(),
7320
+ "failedAt": union([literal("registry"), literal("spec-host")]).optional()
7074
7321
  });
7075
7322
  let _deepseek_ai_dsh_plugin_manager_pluginManager_listBundles_result$schema$value;
7076
7323
  const _deepseek_ai_dsh_plugin_manager_pluginManager_listBundles_result$schema = () => _deepseek_ai_dsh_plugin_manager_pluginManager_listBundles_result$schema$value ??= array(object({
7077
7324
  "name": string(),
7078
7325
  "version": string().optional(),
7326
+ "meta": object({
7327
+ "title": union([string(), intersection(object({ "en": string().readonly() }), record(string(), string()).readonly())]).readonly().optional(),
7328
+ "description": union([string(), intersection(object({ "en": string().readonly() }), record(string(), string()).readonly())]).readonly().optional(),
7329
+ "icon": string().readonly().optional(),
7330
+ "error": string().readonly().optional()
7331
+ }).optional(),
7079
7332
  "description": string().optional(),
7080
7333
  "enabled": boolean(),
7081
7334
  "installed": boolean(),
@@ -7101,6 +7354,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7101
7354
  "rows": array(object({
7102
7355
  "rowId": string(),
7103
7356
  "moduleName": string(),
7357
+ "meta": object({
7358
+ "title": union([string(), intersection(object({ "en": string().readonly() }), record(string(), string()).readonly())]).readonly().optional(),
7359
+ "description": union([string(), intersection(object({ "en": string().readonly() }), record(string(), string()).readonly())]).readonly().optional(),
7360
+ "icon": string().readonly().optional(),
7361
+ "error": string().readonly().optional()
7362
+ }).optional(),
7104
7363
  "entryId": intersection(string(), unknown()).optional()
7105
7364
  })),
7106
7365
  "overrides": array(string())
@@ -7109,12 +7368,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7109
7368
  const _deepseek_ai_dsh_plugin_manager_pluginManager_listPlugins_result$schema = () => _deepseek_ai_dsh_plugin_manager_pluginManager_listPlugins_result$schema$value ??= array(union([intersection(object({
7110
7369
  "entryId": intersection(string(), unknown()).readonly(),
7111
7370
  "moduleName": string().readonly(),
7371
+ "meta": object({
7372
+ "title": union([string(), intersection(object({ "en": string().readonly() }), record(string(), string()).readonly())]).readonly().optional(),
7373
+ "description": union([string(), intersection(object({ "en": string().readonly() }), record(string(), string()).readonly())]).readonly().optional(),
7374
+ "icon": string().readonly().optional(),
7375
+ "error": string().readonly().optional()
7376
+ }).readonly().optional(),
7112
7377
  "enabled": boolean().readonly(),
7113
7378
  "fiberPhase": union([
7114
7379
  literal(null),
7380
+ literal("failed"),
7115
7381
  literal("pending"),
7116
7382
  literal("active"),
7117
- literal("failed"),
7118
7383
  literal("loading"),
7119
7384
  literal("unloading")
7120
7385
  ]).readonly()
@@ -7124,12 +7389,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7124
7389
  })), intersection(object({
7125
7390
  "entryId": intersection(string(), unknown()).readonly(),
7126
7391
  "moduleName": string().readonly(),
7392
+ "meta": object({
7393
+ "title": union([string(), intersection(object({ "en": string().readonly() }), record(string(), string()).readonly())]).readonly().optional(),
7394
+ "description": union([string(), intersection(object({ "en": string().readonly() }), record(string(), string()).readonly())]).readonly().optional(),
7395
+ "icon": string().readonly().optional(),
7396
+ "error": string().readonly().optional()
7397
+ }).readonly().optional(),
7127
7398
  "enabled": boolean().readonly(),
7128
7399
  "fiberPhase": union([
7129
7400
  literal(null),
7401
+ literal("failed"),
7130
7402
  literal("pending"),
7131
7403
  literal("active"),
7132
- literal("failed"),
7133
7404
  literal("loading"),
7134
7405
  literal("unloading")
7135
7406
  ]).readonly()
@@ -7137,14 +7408,20 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7137
7408
  "patchId": never().optional(),
7138
7409
  "readOnlyReason": union([literal("management-required"), literal("unaddressable")])
7139
7410
  }))]));
7411
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_registries_result$schema$value;
7412
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_registries_result$schema = () => _deepseek_ai_dsh_plugin_manager_pluginManager_registries_result$schema$value ??= object({
7413
+ "registry": union([literal(null), string()]).readonly(),
7414
+ "fallbackRegistries": array(string()).readonly(),
7415
+ "resolved": union([literal(null), string()]).readonly()
7416
+ });
7140
7417
  let _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_parameter_0$schema$value;
7141
7418
  const _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_parameter_0$schema = () => _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_parameter_0$schema$value ??= string();
7142
7419
  let _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_result$schema$value;
7143
7420
  const _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_result$schema = () => _deepseek_ai_dsh_plugin_manager_pluginManager_removeBundle_result$schema$value ??= object({
7144
7421
  "changed": boolean(),
7145
7422
  "application": union([
7146
- literal("failed"),
7147
7423
  literal("cancelled"),
7424
+ literal("failed"),
7148
7425
  literal("applied"),
7149
7426
  literal("restart-required"),
7150
7427
  literal("overridden")
@@ -7179,21 +7456,23 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7179
7456
  "truncated": boolean(),
7180
7457
  "logPath": string(),
7181
7458
  "kind": union([
7182
- literal("not-found"),
7183
7459
  literal("network"),
7184
7460
  literal("unknown"),
7185
- literal("pnpm-missing"),
7186
7461
  literal("timeout"),
7462
+ literal("integrity"),
7463
+ literal("not-found"),
7464
+ literal("pnpm-missing"),
7187
7465
  literal("no-matching-version"),
7188
7466
  literal("disk-full"),
7189
7467
  literal("permission"),
7190
- literal("build-blocked"),
7191
- literal("integrity")
7468
+ literal("build-blocked")
7192
7469
  ]).optional()
7193
7470
  }).optional(),
7194
7471
  "bundle": string().optional(),
7195
7472
  "pendingBuilds": array(string()).optional(),
7196
- "approvedBuilds": array(string()).optional()
7473
+ "approvedBuilds": array(string()).optional(),
7474
+ "registries": array(union([literal(null), string()])).optional(),
7475
+ "failedAt": union([literal("registry"), literal("spec-host")]).optional()
7197
7476
  });
7198
7477
  let _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_0$schema$value;
7199
7478
  const _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_0$schema = () => _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_parameter_0$schema$value ??= string();
@@ -7203,8 +7482,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7203
7482
  const _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_result$schema = () => _deepseek_ai_dsh_plugin_manager_pluginManager_setBundleEnabled_result$schema$value ??= object({
7204
7483
  "changed": boolean(),
7205
7484
  "application": union([
7206
- literal("failed"),
7207
7485
  literal("cancelled"),
7486
+ literal("failed"),
7208
7487
  literal("applied"),
7209
7488
  literal("restart-required"),
7210
7489
  literal("overridden")
@@ -7239,21 +7518,23 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7239
7518
  "truncated": boolean(),
7240
7519
  "logPath": string(),
7241
7520
  "kind": union([
7242
- literal("not-found"),
7243
7521
  literal("network"),
7244
7522
  literal("unknown"),
7245
- literal("pnpm-missing"),
7246
7523
  literal("timeout"),
7524
+ literal("integrity"),
7525
+ literal("not-found"),
7526
+ literal("pnpm-missing"),
7247
7527
  literal("no-matching-version"),
7248
7528
  literal("disk-full"),
7249
7529
  literal("permission"),
7250
- literal("build-blocked"),
7251
- literal("integrity")
7530
+ literal("build-blocked")
7252
7531
  ]).optional()
7253
7532
  }).optional(),
7254
7533
  "bundle": string().optional(),
7255
7534
  "pendingBuilds": array(string()).optional(),
7256
- "approvedBuilds": array(string()).optional()
7535
+ "approvedBuilds": array(string()).optional(),
7536
+ "registries": array(union([literal(null), string()])).optional(),
7537
+ "failedAt": union([literal("registry"), literal("spec-host")]).optional()
7257
7538
  });
7258
7539
  let _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_0$schema$value;
7259
7540
  const _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_0$schema = () => _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_parameter_0$schema$value ??= intersection(string(), unknown());
@@ -7263,8 +7544,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7263
7544
  const _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_result$schema = () => _deepseek_ai_dsh_plugin_manager_pluginManager_setPluginEnabled_result$schema$value ??= object({
7264
7545
  "changed": boolean(),
7265
7546
  "application": union([
7266
- literal("failed"),
7267
7547
  literal("cancelled"),
7548
+ literal("failed"),
7268
7549
  literal("applied"),
7269
7550
  literal("restart-required"),
7270
7551
  literal("overridden")
@@ -7299,23 +7580,85 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7299
7580
  "truncated": boolean(),
7300
7581
  "logPath": string(),
7301
7582
  "kind": union([
7302
- literal("not-found"),
7303
7583
  literal("network"),
7304
7584
  literal("unknown"),
7585
+ literal("timeout"),
7586
+ literal("integrity"),
7587
+ literal("not-found"),
7305
7588
  literal("pnpm-missing"),
7589
+ literal("no-matching-version"),
7590
+ literal("disk-full"),
7591
+ literal("permission"),
7592
+ literal("build-blocked")
7593
+ ]).optional()
7594
+ }).optional(),
7595
+ "bundle": string().optional(),
7596
+ "pendingBuilds": array(string()).optional(),
7597
+ "approvedBuilds": array(string()).optional(),
7598
+ "registries": array(union([literal(null), string()])).optional(),
7599
+ "failedAt": union([literal("registry"), literal("spec-host")]).optional()
7600
+ });
7601
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_parameter_0$schema$value;
7602
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_parameter_0$schema = () => _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_parameter_0$schema$value ??= intersection(string(), unknown());
7603
+ let _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_result$schema$value;
7604
+ const _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_result$schema = () => _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_result$schema$value ??= union([literal(null), object({
7605
+ "changed": boolean(),
7606
+ "application": union([
7607
+ literal("cancelled"),
7608
+ literal("failed"),
7609
+ literal("applied"),
7610
+ literal("restart-required"),
7611
+ literal("overridden")
7612
+ ]),
7613
+ "stage": union([
7614
+ literal("remove"),
7615
+ literal("install"),
7616
+ literal("enable")
7617
+ ]),
7618
+ "target": string(),
7619
+ "enabled": boolean().optional(),
7620
+ "error": object({
7621
+ "code": union([
7622
+ literal("management-required"),
7623
+ literal("unaddressable"),
7624
+ literal("unknown-plugin"),
7625
+ literal("invalid-spec"),
7626
+ literal("ambiguous-install"),
7627
+ literal("not-bundle"),
7628
+ literal("not-removable"),
7629
+ literal("stop-profile"),
7630
+ literal("bundle-in-use"),
7631
+ literal("stale-approval"),
7632
+ literal("operation-error")
7633
+ ]),
7634
+ "diagnostic": string().optional()
7635
+ }).optional(),
7636
+ "warnings": array(string()).optional(),
7637
+ "packageResult": object({
7638
+ "exitCode": number(),
7639
+ "output": string(),
7640
+ "truncated": boolean(),
7641
+ "logPath": string(),
7642
+ "kind": union([
7643
+ literal("network"),
7644
+ literal("unknown"),
7306
7645
  literal("timeout"),
7646
+ literal("integrity"),
7647
+ literal("not-found"),
7648
+ literal("pnpm-missing"),
7307
7649
  literal("no-matching-version"),
7308
7650
  literal("disk-full"),
7309
7651
  literal("permission"),
7310
- literal("build-blocked"),
7311
- literal("integrity")
7652
+ literal("build-blocked")
7312
7653
  ]).optional()
7313
7654
  }).optional(),
7314
7655
  "bundle": string().optional(),
7315
7656
  "pendingBuilds": array(string()).optional(),
7316
- "approvedBuilds": array(string()).optional()
7317
- });
7318
- const TYPERT_REMOTE$11 = {
7657
+ "approvedBuilds": array(string()).optional(),
7658
+ "registries": array(union([literal(null), string()])).optional(),
7659
+ "failedAt": union([literal("registry"), literal("spec-host")]).optional()
7660
+ })]);
7661
+ const TYPERT_REMOTE$12 = {
7319
7662
  package: "@deepseek-ai/dsh-plugin-manager",
7320
7663
  descriptors: [
7321
7664
  {
@@ -7341,7 +7684,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7341
7684
  },
7342
7685
  sourceLocation: {
7343
7686
  "file": "packages/boot/plugin-manager/src/index.ts",
7344
- "line": 406,
7687
+ "line": 516,
7345
7688
  "column": 9
7346
7689
  }
7347
7690
  },
@@ -7360,6 +7703,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7360
7703
  typeSymbol: "@deepseek-ai/dsh-plugin-manager#pluginManager/inspect:spec",
7361
7704
  create: _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_0$schema
7362
7705
  }
7706
+ }, {
7707
+ name: "options",
7708
+ wire: "options",
7709
+ source: "json",
7710
+ acceptsUndefined: true,
7711
+ codec: {
7712
+ mode: "strict",
7713
+ typeSymbol: "@deepseek-ai/dsh-plugin-manager/types#InspectOptions",
7714
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_inspect_parameter_1$schema
7715
+ }
7363
7716
  }],
7364
7717
  cancellation: { parameter: "signal" },
7365
7718
  result: {
@@ -7369,7 +7722,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7369
7722
  },
7370
7723
  sourceLocation: {
7371
7724
  "file": "packages/boot/plugin-manager/src/index.ts",
7372
- "line": 233,
7725
+ "line": 299,
7373
7726
  "column": 9
7374
7727
  }
7375
7728
  },
@@ -7406,7 +7759,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7406
7759
  },
7407
7760
  sourceLocation: {
7408
7761
  "file": "packages/boot/plugin-manager/src/index.ts",
7409
- "line": 338,
7762
+ "line": 418,
7410
7763
  "column": 3
7411
7764
  }
7412
7765
  },
@@ -7424,7 +7777,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7424
7777
  },
7425
7778
  sourceLocation: {
7426
7779
  "file": "packages/boot/plugin-manager/src/index.ts",
7427
- "line": 194,
7780
+ "line": 241,
7428
7781
  "column": 3
7429
7782
  }
7430
7783
  },
@@ -7442,7 +7795,25 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7442
7795
  },
7443
7796
  sourceLocation: {
7444
7797
  "file": "packages/boot/plugin-manager/src/index.ts",
7445
- "line": 170,
7798
+ "line": 217,
7799
+ "column": 9
7800
+ }
7801
+ },
7802
+ {
7803
+ id: "@deepseek-ai/dsh-plugin-manager#pluginManager/registries",
7804
+ service: "pluginManager",
7805
+ namespace: "pluginManager",
7806
+ method: "registries",
7807
+ invocation: { kind: "direct" },
7808
+ parameters: [],
7809
+ result: {
7810
+ mode: "strict",
7811
+ typeSymbol: "@deepseek-ai/dsh-plugin-manager/types#PluginRegistries",
7812
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_registries_result$schema
7813
+ },
7814
+ sourceLocation: {
7815
+ "file": "packages/boot/plugin-manager/src/index.ts",
7816
+ "line": 283,
7446
7817
  "column": 9
7447
7818
  }
7448
7819
  },
@@ -7469,7 +7840,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7469
7840
  },
7470
7841
  sourceLocation: {
7471
7842
  "file": "packages/boot/plugin-manager/src/index.ts",
7472
- "line": 421,
7843
+ "line": 532,
7473
7844
  "column": 3
7474
7845
  }
7475
7846
  },
@@ -7505,7 +7876,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7505
7876
  },
7506
7877
  sourceLocation: {
7507
7878
  "file": "packages/boot/plugin-manager/src/index.ts",
7508
- "line": 321,
7879
+ "line": 401,
7509
7880
  "column": 3
7510
7881
  }
7511
7882
  },
@@ -7541,9 +7912,36 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7541
7912
  },
7542
7913
  sourceLocation: {
7543
7914
  "file": "packages/boot/plugin-manager/src/index.ts",
7544
- "line": 303,
7915
+ "line": 383,
7545
7916
  "column": 3
7546
7917
  }
7918
+ },
7919
+ {
7920
+ id: "@deepseek-ai/dsh-plugin-manager#pluginManager/waitForInstall",
7921
+ service: "pluginManager",
7922
+ namespace: "pluginManager",
7923
+ method: "waitForInstall",
7924
+ invocation: { kind: "direct" },
7925
+ parameters: [{
7926
+ name: "requestId",
7927
+ wire: "requestId",
7928
+ source: "json",
7929
+ codec: {
7930
+ mode: "strict",
7931
+ typeSymbol: "@deepseek-ai/dsh-plugin-manager/types#PluginInstallRequestId",
7932
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_parameter_0$schema
7933
+ }
7934
+ }],
7935
+ result: {
7936
+ mode: "strict",
7937
+ typeSymbol: "@deepseek-ai/dsh-plugin-manager#pluginManager/waitForInstall:result",
7938
+ create: _deepseek_ai_dsh_plugin_manager_pluginManager_waitForInstall_result$schema
7939
+ },
7940
+ sourceLocation: {
7941
+ "file": "packages/boot/plugin-manager/src/index.ts",
7942
+ "line": 506,
7943
+ "column": 9
7944
+ }
7547
7945
  }
7548
7946
  ]
7549
7947
  };
@@ -7555,25 +7953,36 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7555
7953
  "entries": array(object({
7556
7954
  "entryId": intersection(string(), unknown()).readonly(),
7557
7955
  "moduleName": string().readonly(),
7956
+ "meta": object({
7957
+ "title": union([string(), intersection(object({ "en": string().readonly() }), record(string(), string()).readonly())]).readonly().optional(),
7958
+ "description": union([string(), intersection(object({ "en": string().readonly() }), record(string(), string()).readonly())]).readonly().optional(),
7959
+ "icon": string().readonly().optional(),
7960
+ "error": string().readonly().optional()
7961
+ }).readonly().optional(),
7558
7962
  "enabled": boolean().readonly(),
7559
7963
  "fiberPhase": union([
7560
7964
  literal(null),
7965
+ literal("failed"),
7561
7966
  literal("pending"),
7562
7967
  literal("active"),
7563
- literal("failed"),
7564
7968
  literal("loading"),
7565
7969
  literal("unloading")
7566
7970
  ]).readonly()
7567
7971
  })).readonly(),
7568
7972
  "agentPresets": array(object({
7569
7973
  "id": string().readonly(),
7570
- "trust": union([literal("system"), literal("user")]).readonly(),
7571
7974
  "name": string().readonly().optional(),
7572
7975
  "isDefault": boolean().readonly(),
7573
7976
  "broken": string().readonly().optional(),
7574
7977
  "rows": array(object({
7575
7978
  "entryId": union([literal(null), string()]).readonly(),
7576
7979
  "moduleName": string().readonly(),
7980
+ "meta": object({
7981
+ "title": union([string(), intersection(object({ "en": string().readonly() }), record(string(), string()).readonly())]).readonly().optional(),
7982
+ "description": union([string(), intersection(object({ "en": string().readonly() }), record(string(), string()).readonly())]).readonly().optional(),
7983
+ "icon": string().readonly().optional(),
7984
+ "error": string().readonly().optional()
7985
+ }).readonly().optional(),
7577
7986
  "enabled": union([
7578
7987
  literal(false),
7579
7988
  literal(true),
@@ -7582,16 +7991,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7582
7991
  "condition": string().readonly().optional(),
7583
7992
  "fiberPhase": union([
7584
7993
  literal(null),
7994
+ literal("failed"),
7585
7995
  literal("pending"),
7586
7996
  literal("active"),
7587
- literal("failed"),
7588
7997
  literal("loading"),
7589
7998
  literal("unloading")
7590
7999
  ]).readonly()
7591
8000
  })).readonly()
7592
8001
  })).readonly().optional()
7593
8002
  });
7594
- const TYPERT_REMOTE$10 = {
8003
+ const TYPERT_REMOTE$11 = {
7595
8004
  package: "@deepseek-ai/dsh-host-plugin-inventory",
7596
8005
  descriptors: [{
7597
8006
  id: "@deepseek-ai/dsh-host-plugin-inventory#pluginInventory/list",
@@ -7607,7 +8016,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7607
8016
  },
7608
8017
  sourceLocation: {
7609
8018
  "file": "packages/host/plugin-inventory/src/index.ts",
7610
- "line": 70,
8019
+ "line": 71,
7611
8020
  "column": 9
7612
8021
  }
7613
8022
  }]
@@ -7756,7 +8165,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7756
8165
  })
7757
8166
  ]).readonly()
7758
8167
  })]);
7759
- const TYPERT_REMOTE$9 = {
8168
+ const TYPERT_REMOTE$10 = {
7760
8169
  package: "@deepseek-ai/dsh-message-feedback",
7761
8170
  descriptors: [
7762
8171
  {
@@ -7845,12 +8254,20 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7845
8254
  //#endregion
7846
8255
  //#region ../../interaction/permission-presets/lib/typert.remote-client.js
7847
8256
  let _deepseek_ai_dsh_permission_presets_permissionPresets_catalog_result$schema$value;
7848
- const _deepseek_ai_dsh_permission_presets_permissionPresets_catalog_result$schema = () => _deepseek_ai_dsh_permission_presets_permissionPresets_catalog_result$schema$value ??= object({ "options": array(object({
7849
- "value": string(),
7850
- "name": string(),
7851
- "description": string().optional()
7852
- })) });
7853
- const TYPERT_REMOTE$8 = {
8257
+ const _deepseek_ai_dsh_permission_presets_permissionPresets_catalog_result$schema = () => _deepseek_ai_dsh_permission_presets_permissionPresets_catalog_result$schema$value ??= object({
8258
+ "options": array(object({
8259
+ "value": string(),
8260
+ "name": string(),
8261
+ "description": string().optional()
8262
+ })),
8263
+ "defaultOptions": array(object({
8264
+ "value": string(),
8265
+ "name": string(),
8266
+ "description": string().optional()
8267
+ })),
8268
+ "defaultPreset": string()
8269
+ });
8270
+ const TYPERT_REMOTE$9 = {
7854
8271
  package: "@deepseek-ai/dsh-permission-presets",
7855
8272
  descriptors: [{
7856
8273
  id: "@deepseek-ai/dsh-permission-presets#permissionPresets/catalog",
@@ -7866,7 +8283,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7866
8283
  },
7867
8284
  sourceLocation: {
7868
8285
  "file": "packages/interaction/permission-presets/src/index.ts",
7869
- "line": 303,
8286
+ "line": 289,
7870
8287
  "column": 3
7871
8288
  }
7872
8289
  }]
@@ -7898,7 +8315,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7898
8315
  "sessionId": intersection(string(), unknown()).readonly()
7899
8316
  }).readonly()
7900
8317
  })]);
7901
- const TYPERT_REMOTE$7 = {
8318
+ const TYPERT_REMOTE$8 = {
7902
8319
  package: "@deepseek-ai/dsh-command-feedback",
7903
8320
  descriptors: [{
7904
8321
  id: "@deepseek-ai/dsh-command-feedback#sessionFeedback/record",
@@ -7946,7 +8363,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7946
8363
  "bytes": number()
7947
8364
  }).readonly()
7948
8365
  });
7949
- const TYPERT_REMOTE$6 = {
8366
+ const TYPERT_REMOTE$7 = {
7950
8367
  package: "@deepseek-ai/dsh-client-file-upload",
7951
8368
  descriptors: [{
7952
8369
  id: "@deepseek-ai/dsh-client-file-upload#fileUploads/upload",
@@ -8007,7 +8424,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8007
8424
  "sameWorkspace": boolean(),
8008
8425
  "createdAt": number()
8009
8426
  }));
8010
- const TYPERT_REMOTE$5 = {
8427
+ const TYPERT_REMOTE$6 = {
8011
8428
  package: "@deepseek-ai/dsh-session-reference",
8012
8429
  descriptors: [{
8013
8430
  id: "@deepseek-ai/dsh-session-reference#sessionReferenceResolver/candidates",
@@ -8048,7 +8465,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8048
8465
  },
8049
8466
  sourceLocation: {
8050
8467
  "file": "packages/context/session-reference/src/index.ts",
8051
- "line": 280,
8468
+ "line": 272,
8052
8469
  "column": 9
8053
8470
  }
8054
8471
  }]
@@ -8063,41 +8480,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8063
8480
  const _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_2$schema = () => _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_2$schema$value ??= literal("continuable");
8064
8481
  let _deepseek_ai_dsh_subagent_subagents_interruptByParent_result$schema$value;
8065
8482
  const _deepseek_ai_dsh_subagent_subagents_interruptByParent_result$schema = () => _deepseek_ai_dsh_subagent_subagents_interruptByParent_result$schema$value ??= object({ "accepted": literal(true).readonly() });
8066
- let _deepseek_ai_dsh_subagent_subagents_list_parameter_0$schema$value;
8067
- const _deepseek_ai_dsh_subagent_subagents_list_parameter_0$schema = () => _deepseek_ai_dsh_subagent_subagents_list_parameter_0$schema$value ??= intersection(string(), unknown());
8068
- let _deepseek_ai_dsh_subagent_subagents_list_result$schema$value;
8069
- const _deepseek_ai_dsh_subagent_subagents_list_result$schema = () => _deepseek_ai_dsh_subagent_subagents_list_result$schema$value ??= object({
8070
- "entries": array(union([
8071
- intersection(object({
8072
- "kind": literal("child").readonly(),
8073
- "id": intersection(string(), unknown()).readonly(),
8074
- "activity": union([literal("running"), literal("inactive")]).readonly(),
8075
- "hasChildren": boolean().readonly()
8076
- }), object({
8077
- "mode": literal("one-shot").readonly(),
8078
- "label": string().readonly().optional()
8079
- })),
8080
- intersection(object({
8081
- "kind": literal("child").readonly(),
8082
- "id": intersection(string(), unknown()).readonly(),
8083
- "activity": union([literal("running"), literal("inactive")]).readonly(),
8084
- "hasChildren": boolean().readonly()
8085
- }), object({
8086
- "mode": literal("continuable").readonly(),
8087
- "label": string().readonly()
8088
- })),
8089
- object({
8090
- "kind": literal("diagnostic").readonly(),
8091
- "id": intersection(string(), unknown()).readonly(),
8092
- "reason": union([
8093
- literal("corrupt"),
8094
- literal("unsupported"),
8095
- literal("unavailable")
8096
- ]).readonly()
8097
- })
8098
- ])).readonly(),
8099
- "parentAvailable": boolean().readonly()
8100
- });
8101
8483
  let _deepseek_ai_dsh_subagent_subagents_prompt_parameter_0$schema$value;
8102
8484
  const _deepseek_ai_dsh_subagent_subagents_prompt_parameter_0$schema = () => _deepseek_ai_dsh_subagent_subagents_prompt_parameter_0$schema$value ??= object({
8103
8485
  "requestId": intersection(string(), unknown()).readonly(),
@@ -8123,171 +8505,87 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8123
8505
  });
8124
8506
  let _deepseek_ai_dsh_subagent_subagents_prompt_result$schema$value;
8125
8507
  const _deepseek_ai_dsh_subagent_subagents_prompt_result$schema = () => _deepseek_ai_dsh_subagent_subagents_prompt_result$schema$value ??= object({ "messageId": intersection(string(), unknown()).readonly() });
8126
- const TYPERT_REMOTE$4 = {
8508
+ const TYPERT_REMOTE$5 = {
8127
8509
  package: "@deepseek-ai/dsh-subagent",
8128
- descriptors: [
8129
- {
8130
- id: "@deepseek-ai/dsh-subagent#subagents/interruptByParent",
8131
- service: "subagents",
8132
- namespace: "subagents",
8133
- method: "interruptByParent",
8134
- invocation: { kind: "direct" },
8135
- parameters: [
8136
- {
8137
- name: "childSessionId",
8138
- wire: "childSessionId",
8139
- source: "json",
8140
- codec: {
8141
- mode: "strict",
8142
- typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
8143
- create: _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_0$schema
8144
- }
8145
- },
8146
- {
8147
- name: "parentSessionId",
8148
- wire: "parentSessionId",
8149
- source: "json",
8150
- codec: {
8151
- mode: "strict",
8152
- typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
8153
- create: _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_1$schema
8154
- }
8155
- },
8156
- {
8157
- name: "mode",
8158
- wire: "mode",
8159
- source: "json",
8160
- codec: {
8161
- mode: "strict",
8162
- typeSymbol: "@deepseek-ai/dsh-subagent#subagents/interruptByParent:mode",
8163
- create: _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_2$schema
8164
- }
8510
+ descriptors: [{
8511
+ id: "@deepseek-ai/dsh-subagent#subagents/interruptByParent",
8512
+ service: "subagents",
8513
+ namespace: "subagents",
8514
+ method: "interruptByParent",
8515
+ invocation: { kind: "direct" },
8516
+ parameters: [
8517
+ {
8518
+ name: "childSessionId",
8519
+ wire: "childSessionId",
8520
+ source: "json",
8521
+ codec: {
8522
+ mode: "strict",
8523
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
8524
+ create: _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_0$schema
8165
8525
  }
8166
- ],
8167
- result: {
8168
- mode: "strict",
8169
- typeSymbol: "@deepseek-ai/dsh-subagent/client#SubagentInterruptReceipt",
8170
- create: _deepseek_ai_dsh_subagent_subagents_interruptByParent_result$schema
8171
8526
  },
8172
- sourceLocation: {
8173
- "file": "packages/subagent/subagent/src/index.ts",
8174
- "line": 515,
8175
- "column": 3
8176
- }
8177
- },
8178
- {
8179
- id: "@deepseek-ai/dsh-subagent#subagents/list",
8180
- service: "subagents",
8181
- namespace: "subagents",
8182
- method: "list",
8183
- implementation: "remoteExportList",
8184
- invocation: { kind: "direct" },
8185
- parameters: [{
8527
+ {
8186
8528
  name: "parentSessionId",
8187
8529
  wire: "parentSessionId",
8188
8530
  source: "json",
8189
8531
  codec: {
8190
8532
  mode: "strict",
8191
- typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
8192
- create: _deepseek_ai_dsh_subagent_subagents_list_parameter_0$schema
8193
- }
8194
- }],
8195
- cancellation: { parameter: "signal" },
8196
- result: {
8197
- mode: "strict",
8198
- typeSymbol: "@deepseek-ai/dsh-subagent/client#SubagentCatalog",
8199
- create: _deepseek_ai_dsh_subagent_subagents_list_result$schema
8200
- },
8201
- sourceLocation: {
8202
- "file": "packages/subagent/subagent/src/index.ts",
8203
- "line": 420,
8204
- "column": 9
8205
- }
8206
- },
8207
- {
8208
- id: "@deepseek-ai/dsh-subagent#subagents/prompt",
8209
- service: "subagents",
8210
- namespace: "subagents",
8211
- method: "prompt",
8212
- invocation: { kind: "direct" },
8213
- parameters: [{
8214
- name: "request",
8215
- wire: "request",
8533
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
8534
+ create: _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_1$schema
8535
+ }
8536
+ },
8537
+ {
8538
+ name: "mode",
8539
+ wire: "mode",
8216
8540
  source: "json",
8217
8541
  codec: {
8218
8542
  mode: "strict",
8219
- typeSymbol: "@deepseek-ai/dsh-subagent/client#SubagentPromptRequest",
8220
- create: _deepseek_ai_dsh_subagent_subagents_prompt_parameter_0$schema
8543
+ typeSymbol: "@deepseek-ai/dsh-subagent#subagents/interruptByParent:mode",
8544
+ create: _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_2$schema
8221
8545
  }
8222
- }],
8223
- cancellation: { parameter: "signal" },
8224
- result: {
8546
+ }
8547
+ ],
8548
+ result: {
8549
+ mode: "strict",
8550
+ typeSymbol: "@deepseek-ai/dsh-subagent/client#SubagentInterruptReceipt",
8551
+ create: _deepseek_ai_dsh_subagent_subagents_interruptByParent_result$schema
8552
+ },
8553
+ sourceLocation: {
8554
+ "file": "packages/subagent/subagent/src/index.ts",
8555
+ "line": 483,
8556
+ "column": 3
8557
+ }
8558
+ }, {
8559
+ id: "@deepseek-ai/dsh-subagent#subagents/prompt",
8560
+ service: "subagents",
8561
+ namespace: "subagents",
8562
+ method: "prompt",
8563
+ invocation: { kind: "direct" },
8564
+ parameters: [{
8565
+ name: "request",
8566
+ wire: "request",
8567
+ source: "json",
8568
+ codec: {
8225
8569
  mode: "strict",
8226
- typeSymbol: "@deepseek-ai/dsh-subagent/client#SubagentPromptReceipt",
8227
- create: _deepseek_ai_dsh_subagent_subagents_prompt_result$schema
8228
- },
8229
- sourceLocation: {
8230
- "file": "packages/subagent/subagent/src/index.ts",
8231
- "line": 448,
8232
- "column": 9
8570
+ typeSymbol: "@deepseek-ai/dsh-subagent/client#SubagentPromptRequest",
8571
+ create: _deepseek_ai_dsh_subagent_subagents_prompt_parameter_0$schema
8233
8572
  }
8573
+ }],
8574
+ cancellation: { parameter: "signal" },
8575
+ result: {
8576
+ mode: "strict",
8577
+ typeSymbol: "@deepseek-ai/dsh-subagent/client#SubagentPromptReceipt",
8578
+ create: _deepseek_ai_dsh_subagent_subagents_prompt_result$schema
8579
+ },
8580
+ sourceLocation: {
8581
+ "file": "packages/subagent/subagent/src/index.ts",
8582
+ "line": 416,
8583
+ "column": 9
8234
8584
  }
8235
- ]
8585
+ }]
8236
8586
  };
8237
8587
  //#endregion
8238
8588
  //#region ../session-controller/lib/typert.remote-client.js
8239
- let ContentBlockRemoteCodec$schema$value;
8240
- const ContentBlockRemoteCodec$schema = () => ContentBlockRemoteCodec$schema$value ??= union([
8241
- object({
8242
- "type": literal("file"),
8243
- "attachment": object({
8244
- "attachmentId": intersection(string(), unknown()),
8245
- "name": string(),
8246
- "bytes": number()
8247
- })
8248
- }),
8249
- object({
8250
- "type": literal("text"),
8251
- "text": string()
8252
- }),
8253
- object({
8254
- "type": literal("image"),
8255
- "attachment": object({
8256
- "attachmentId": intersection(string(), unknown()),
8257
- "mediaType": union([
8258
- literal("image/png"),
8259
- literal("image/jpeg"),
8260
- literal("image/webp"),
8261
- literal("image/gif")
8262
- ]),
8263
- "bytes": number(),
8264
- "width": number(),
8265
- "height": number(),
8266
- "name": string().optional(),
8267
- "originalDimensions": object({
8268
- "width": number(),
8269
- "height": number()
8270
- }).optional()
8271
- }),
8272
- "offloaded": literal(true).optional()
8273
- }),
8274
- object({
8275
- "type": literal("reasoning"),
8276
- "text": string()
8277
- }),
8278
- object({
8279
- "type": literal("tool-call"),
8280
- "id": intersection(string(), unknown()),
8281
- "name": string(),
8282
- "arguments": string()
8283
- }),
8284
- object({
8285
- "type": literal("tool-result"),
8286
- "toolCallId": intersection(string(), unknown()),
8287
- "content": array(lazy(() => ContentBlockRemoteCodec$schema())),
8288
- "isError": boolean().optional()
8289
- })
8290
- ]);
8291
8589
  let JsonValueRemoteCodec$schema$value;
8292
8590
  const JsonValueRemoteCodec$schema = () => JsonValueRemoteCodec$schema$value ??= union([
8293
8591
  literal(null),
@@ -8328,6 +8626,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8328
8626
  array(lazy(() => JsonValueRemoteCodec$schema4())),
8329
8627
  record(string(), lazy(() => JsonValueRemoteCodec$schema4()))
8330
8628
  ]);
8629
+ let JsonValueRemoteCodec$schema5$value;
8630
+ const JsonValueRemoteCodec$schema5 = () => JsonValueRemoteCodec$schema5$value ??= union([
8631
+ literal(null),
8632
+ string(),
8633
+ number(),
8634
+ literal(false),
8635
+ literal(true),
8636
+ array(lazy(() => JsonValueRemoteCodec$schema5())),
8637
+ record(string(), lazy(() => JsonValueRemoteCodec$schema5()))
8638
+ ]);
8331
8639
  let _deepseek_ai_dsh_api_session_controller_fileReferences_list_parameter_0$schema$value;
8332
8640
  const _deepseek_ai_dsh_api_session_controller_fileReferences_list_parameter_0$schema = () => _deepseek_ai_dsh_api_session_controller_fileReferences_list_parameter_0$schema$value ??= intersection(string(), unknown());
8333
8641
  let _deepseek_ai_dsh_api_session_controller_fileReferences_list_parameter_1$schema$value;
@@ -8370,188 +8678,160 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8370
8678
  let _deepseek_ai_dsh_api_session_controller_session_canOpenWorkspacePath_result$schema$value;
8371
8679
  const _deepseek_ai_dsh_api_session_controller_session_canOpenWorkspacePath_result$schema = () => _deepseek_ai_dsh_api_session_controller_session_canOpenWorkspacePath_result$schema$value ??= boolean();
8372
8680
  let _deepseek_ai_dsh_api_session_controller_session_control_result$schema$value;
8373
- const _deepseek_ai_dsh_api_session_controller_session_control_result$schema = () => _deepseek_ai_dsh_api_session_controller_session_control_result$schema$value ??= union([
8374
- object({
8375
- "type": literal("baseline").readonly(),
8376
- "value": object({
8377
- "jobs": record(intersection(string(), unknown()), array(object({
8378
- "id": intersection(string(), unknown()).readonly(),
8379
- "kind": string().readonly(),
8380
- "label": string().readonly(),
8381
- "status": union([
8382
- literal("completed"),
8383
- literal("running"),
8384
- literal("stopping"),
8385
- literal("killed"),
8386
- literal("failed")
8387
- ]).readonly(),
8388
- "detail": string().readonly().optional(),
8389
- "startedAt": number().readonly(),
8390
- "finishedAt": number().readonly().optional()
8391
- }))).readonly().readonly(),
8392
- "projections": record(intersection(string(), unknown()), object({
8393
- "asOfSeq": number().readonly(),
8394
- "values": intersection(object({
8395
- "inbox": object({
8396
- "next-turn": array(union([
8397
- literal(null),
8398
- string(),
8399
- number(),
8400
- literal(false),
8401
- literal(true),
8402
- array(lazy(() => JsonValueRemoteCodec$schema4())),
8403
- record(string(), lazy(() => JsonValueRemoteCodec$schema4()))
8404
- ])).readonly(),
8405
- "next-step": array(union([
8406
- literal(null),
8407
- string(),
8408
- number(),
8409
- literal(false),
8410
- literal(true),
8411
- array(lazy(() => JsonValueRemoteCodec$schema4())),
8412
- record(string(), lazy(() => JsonValueRemoteCodec$schema4()))
8413
- ])).readonly()
8414
- }).optional(),
8415
- "agentPreset": union([literal(null), string()]).optional(),
8416
- "title": union([literal(null), string()]).optional(),
8417
- "todos": union([literal(null), array(object({
8418
- "content": string(),
8419
- "status": union([
8420
- literal("pending"),
8421
- literal("in_progress"),
8422
- literal("completed")
8423
- ])
8424
- }))]).optional(),
8425
- "sessionListMetadata": object({
8426
- "blank": boolean().readonly(),
8427
- "lastPromptAt": union([literal(null), number()]).readonly()
8428
- }).optional(),
8429
- "imageLimits": object({
8430
- "maxImageBytes": number(),
8431
- "maxImagesPerMessage": number(),
8432
- "maxMessageImageBytes": number(),
8433
- "maxImagePixels": number(),
8434
- "maxImageDimension": number(),
8435
- "mediaTypes": array(union([
8436
- literal("image/png"),
8437
- literal("image/jpeg"),
8438
- literal("image/webp"),
8439
- literal("image/gif")
8440
- ]))
8441
- }).optional(),
8442
- "modelSelection": object({
8443
- "lastUsed": union([literal(null), object({
8444
- "provider": string().readonly(),
8445
- "model": string().readonly(),
8446
- "reasoningEffort": string().readonly().optional()
8447
- })]).readonly(),
8448
- "next": union([literal(null), object({
8449
- "provider": string().readonly(),
8450
- "model": string().readonly(),
8451
- "reasoningEffort": string().readonly().optional()
8452
- })]).readonly()
8453
- }).optional(),
8454
- "permissions": object({ "currentValue": string() }).optional(),
8455
- "subagentCatalog": array(union([intersection(object({
8456
- "id": intersection(string(), unknown()).readonly(),
8457
- "createdAt": number().readonly()
8458
- }), object({
8459
- "mode": literal("one-shot").readonly(),
8460
- "label": string().readonly().optional()
8461
- })), intersection(object({
8462
- "id": intersection(string(), unknown()).readonly(),
8463
- "createdAt": number().readonly()
8464
- }), object({
8465
- "mode": literal("continuable").readonly(),
8466
- "label": string().readonly()
8467
- }))])).optional(),
8468
- "subagentTiming": object({
8469
- "settledMs": number(),
8470
- "active": object({
8471
- "since": number(),
8472
- "through": number()
8473
- }).optional()
8474
- }).optional(),
8475
- "subagent": union([
8476
- literal(null),
8477
- object({
8478
- "mode": literal("one-shot"),
8479
- "label": string().optional(),
8480
- "seq": intersection(number(), unknown())
8481
- }),
8482
- object({
8483
- "mode": literal("continuable"),
8484
- "label": string(),
8485
- "seq": intersection(number(), unknown())
8486
- })
8487
- ]).optional(),
8488
- "goal": union([literal(null), object({
8489
- "goal": object({
8490
- "objective": string().readonly(),
8491
- "phase": union([
8492
- literal("active"),
8493
- literal("paused"),
8494
- literal("blocked"),
8495
- literal("complete")
8496
- ]).readonly(),
8497
- "blockedReason": object({
8498
- "code": string().readonly(),
8499
- "message": string().readonly()
8500
- }).readonly().optional(),
8501
- "maxGoalRounds": number().readonly(),
8502
- "id": intersection(string(), unknown()).readonly(),
8503
- "revision": number().readonly()
8504
- }).readonly(),
8505
- "roundsStarted": number().readonly(),
8506
- "createdAt": number().readonly(),
8507
- "updatedAt": number().readonly()
8508
- })]).optional()
8509
- }), record(string(), union([
8681
+ const _deepseek_ai_dsh_api_session_controller_session_control_result$schema = () => _deepseek_ai_dsh_api_session_controller_session_control_result$schema$value ??= union([object({
8682
+ "type": literal("baseline").readonly(),
8683
+ "value": object({ "projections": record(intersection(string(), unknown()), object({
8684
+ "asOfSeq": number().readonly(),
8685
+ "values": intersection(object({
8686
+ "inbox": object({
8687
+ "next-turn": array(union([
8510
8688
  literal(null),
8511
8689
  string(),
8512
8690
  number(),
8513
8691
  literal(false),
8514
8692
  literal(true),
8515
- array(lazy(() => JsonValueRemoteCodec$schema4())),
8516
- record(string(), lazy(() => JsonValueRemoteCodec$schema4()))
8517
- ])).readonly()).readonly()
8518
- })).readonly().readonly()
8519
- }).readonly()
8520
- }),
8521
- object({
8522
- "type": literal("jobs").readonly(),
8523
- "sessionId": intersection(string(), unknown()).readonly(),
8524
- "jobs": array(object({
8525
- "id": intersection(string(), unknown()).readonly(),
8526
- "kind": string().readonly(),
8527
- "label": string().readonly(),
8528
- "status": union([
8529
- literal("completed"),
8530
- literal("running"),
8531
- literal("stopping"),
8532
- literal("killed"),
8533
- literal("failed")
8534
- ]).readonly(),
8535
- "detail": string().readonly().optional(),
8536
- "startedAt": number().readonly(),
8537
- "finishedAt": number().readonly().optional()
8538
- })).readonly()
8539
- }),
8540
- intersection(object({ "type": literal("projection").readonly() }), object({
8541
- "sessionId": intersection(string(), unknown()).readonly(),
8542
- "key": string().readonly(),
8543
- "value": union([
8693
+ array(lazy(() => JsonValueRemoteCodec$schema5())),
8694
+ record(string(), lazy(() => JsonValueRemoteCodec$schema5()))
8695
+ ])).readonly(),
8696
+ "next-step": array(union([
8697
+ literal(null),
8698
+ string(),
8699
+ number(),
8700
+ literal(false),
8701
+ literal(true),
8702
+ array(lazy(() => JsonValueRemoteCodec$schema5())),
8703
+ record(string(), lazy(() => JsonValueRemoteCodec$schema5()))
8704
+ ])).readonly()
8705
+ }).optional(),
8706
+ "agentPreset": union([literal(null), string()]).optional(),
8707
+ "title": union([literal(null), string()]).optional(),
8708
+ "todos": union([literal(null), array(object({
8709
+ "content": string(),
8710
+ "status": union([
8711
+ literal("completed"),
8712
+ literal("pending"),
8713
+ literal("in_progress")
8714
+ ])
8715
+ }))]).optional(),
8716
+ "sessionListMetadata": object({
8717
+ "blank": boolean().readonly(),
8718
+ "lastPromptAt": union([literal(null), number()]).readonly()
8719
+ }).optional(),
8720
+ "imageLimits": object({
8721
+ "maxImageBytes": number(),
8722
+ "maxImagesPerMessage": number(),
8723
+ "maxMessageImageBytes": number(),
8724
+ "maxImagePixels": number(),
8725
+ "maxImageDimension": number(),
8726
+ "mediaTypes": array(union([
8727
+ literal("image/png"),
8728
+ literal("image/jpeg"),
8729
+ literal("image/webp"),
8730
+ literal("image/gif")
8731
+ ]))
8732
+ }).optional(),
8733
+ "modelSelection": object({
8734
+ "lastUsed": union([literal(null), object({
8735
+ "provider": string().readonly(),
8736
+ "model": string().readonly(),
8737
+ "reasoningEffort": string().readonly().optional()
8738
+ })]).readonly(),
8739
+ "next": union([literal(null), object({
8740
+ "provider": string().readonly(),
8741
+ "model": string().readonly(),
8742
+ "reasoningEffort": string().readonly().optional()
8743
+ })]).readonly()
8744
+ }).optional(),
8745
+ "permissions": object({ "currentValue": string() }).optional(),
8746
+ "subagentCatalog": array(union([
8747
+ intersection(object({
8748
+ "id": intersection(string(), unknown()).readonly(),
8749
+ "createdAt": number().readonly()
8750
+ }), object({
8751
+ "mode": literal("one-shot").readonly(),
8752
+ "label": string().readonly().optional()
8753
+ })),
8754
+ intersection(object({
8755
+ "id": intersection(string(), unknown()).readonly(),
8756
+ "createdAt": number().readonly()
8757
+ }), object({
8758
+ "mode": literal("continuable").readonly(),
8759
+ "label": string().readonly()
8760
+ })),
8761
+ intersection(object({
8762
+ "id": intersection(string(), unknown()).readonly(),
8763
+ "createdAt": number().readonly()
8764
+ }), object({
8765
+ "mode": literal("unknown").readonly(),
8766
+ "label": string().readonly().optional()
8767
+ }))
8768
+ ])).optional(),
8769
+ "subagentTiming": object({
8770
+ "settledMs": number(),
8771
+ "active": object({
8772
+ "since": number(),
8773
+ "through": number()
8774
+ }).optional(),
8775
+ "lastTurnCompleted": boolean().optional()
8776
+ }).optional(),
8777
+ "subagent": union([
8778
+ literal(null),
8779
+ object({
8780
+ "mode": literal("one-shot"),
8781
+ "label": string().optional(),
8782
+ "seq": intersection(number(), unknown())
8783
+ }),
8784
+ object({
8785
+ "mode": literal("continuable"),
8786
+ "label": string(),
8787
+ "seq": intersection(number(), unknown())
8788
+ })
8789
+ ]).optional(),
8790
+ "goal": union([literal(null), object({
8791
+ "goal": object({
8792
+ "objective": string().readonly(),
8793
+ "phase": union([
8794
+ literal("active"),
8795
+ literal("paused"),
8796
+ literal("blocked"),
8797
+ literal("complete")
8798
+ ]).readonly(),
8799
+ "blockedReason": object({
8800
+ "code": string().readonly(),
8801
+ "message": string().readonly()
8802
+ }).readonly().optional(),
8803
+ "maxGoalRounds": number().readonly(),
8804
+ "id": intersection(string(), unknown()).readonly(),
8805
+ "revision": number().readonly()
8806
+ }).readonly(),
8807
+ "roundsStarted": number().readonly(),
8808
+ "createdAt": number().readonly(),
8809
+ "updatedAt": number().readonly()
8810
+ })]).optional()
8811
+ }), record(string(), union([
8544
8812
  literal(null),
8545
8813
  string(),
8546
8814
  number(),
8547
8815
  literal(false),
8548
8816
  literal(true),
8549
- array(lazy(() => JsonValueRemoteCodec$schema4())),
8550
- record(string(), lazy(() => JsonValueRemoteCodec$schema4()))
8551
- ]).readonly(),
8552
- "seq": number().readonly()
8553
- }))
8554
- ]);
8817
+ array(lazy(() => JsonValueRemoteCodec$schema5())),
8818
+ record(string(), lazy(() => JsonValueRemoteCodec$schema5()))
8819
+ ])).readonly()).readonly()
8820
+ })).readonly().readonly() }).readonly()
8821
+ }), intersection(object({ "type": literal("projection").readonly() }), object({
8822
+ "sessionId": intersection(string(), unknown()).readonly(),
8823
+ "key": string().readonly(),
8824
+ "value": union([
8825
+ literal(null),
8826
+ string(),
8827
+ number(),
8828
+ literal(false),
8829
+ literal(true),
8830
+ array(lazy(() => JsonValueRemoteCodec$schema5())),
8831
+ record(string(), lazy(() => JsonValueRemoteCodec$schema5()))
8832
+ ]).readonly(),
8833
+ "seq": number().readonly()
8834
+ }))]);
8555
8835
  let _deepseek_ai_dsh_api_session_controller_session_create_parameter_0$schema$value;
8556
8836
  const _deepseek_ai_dsh_api_session_controller_session_create_parameter_0$schema = () => _deepseek_ai_dsh_api_session_controller_session_create_parameter_0$schema$value ??= object({
8557
8837
  "workspaceId": intersection(string(), unknown()).readonly().optional(),
@@ -8573,7 +8853,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8573
8853
  "kind": literal("subagent").readonly(),
8574
8854
  "parentSessionId": intersection(string(), unknown()).readonly(),
8575
8855
  "childSessionId": intersection(string(), unknown()).readonly(),
8576
- "mode": union([literal("one-shot"), literal("continuable")]).readonly()
8856
+ "mode": union([
8857
+ literal("one-shot"),
8858
+ literal("continuable"),
8859
+ literal("unknown")
8860
+ ]).readonly()
8577
8861
  })]).readonly(),
8578
8862
  "maxMessages": number().readonly().optional(),
8579
8863
  "assistantStream": literal(true).readonly().optional()
@@ -8695,9 +8979,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8695
8979
  "todos": union([literal(null), array(object({
8696
8980
  "content": string(),
8697
8981
  "status": union([
8982
+ literal("completed"),
8698
8983
  literal("pending"),
8699
- literal("in_progress"),
8700
- literal("completed")
8984
+ literal("in_progress")
8701
8985
  ])
8702
8986
  }))]).optional(),
8703
8987
  "sessionListMetadata": object({
@@ -8730,25 +9014,36 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8730
9014
  })]).readonly()
8731
9015
  }).optional(),
8732
9016
  "permissions": object({ "currentValue": string() }).optional(),
8733
- "subagentCatalog": array(union([intersection(object({
8734
- "id": intersection(string(), unknown()).readonly(),
8735
- "createdAt": number().readonly()
8736
- }), object({
8737
- "mode": literal("one-shot").readonly(),
8738
- "label": string().readonly().optional()
8739
- })), intersection(object({
8740
- "id": intersection(string(), unknown()).readonly(),
8741
- "createdAt": number().readonly()
8742
- }), object({
8743
- "mode": literal("continuable").readonly(),
8744
- "label": string().readonly()
8745
- }))])).optional(),
9017
+ "subagentCatalog": array(union([
9018
+ intersection(object({
9019
+ "id": intersection(string(), unknown()).readonly(),
9020
+ "createdAt": number().readonly()
9021
+ }), object({
9022
+ "mode": literal("one-shot").readonly(),
9023
+ "label": string().readonly().optional()
9024
+ })),
9025
+ intersection(object({
9026
+ "id": intersection(string(), unknown()).readonly(),
9027
+ "createdAt": number().readonly()
9028
+ }), object({
9029
+ "mode": literal("continuable").readonly(),
9030
+ "label": string().readonly()
9031
+ })),
9032
+ intersection(object({
9033
+ "id": intersection(string(), unknown()).readonly(),
9034
+ "createdAt": number().readonly()
9035
+ }), object({
9036
+ "mode": literal("unknown").readonly(),
9037
+ "label": string().readonly().optional()
9038
+ }))
9039
+ ])).optional(),
8746
9040
  "subagentTiming": object({
8747
9041
  "settledMs": number(),
8748
9042
  "active": object({
8749
9043
  "since": number(),
8750
9044
  "through": number()
8751
- }).optional()
9045
+ }).optional(),
9046
+ "lastTurnCompleted": boolean().optional()
8752
9047
  }).optional(),
8753
9048
  "subagent": union([
8754
9049
  literal(null),
@@ -8866,6 +9161,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8866
9161
  const _deepseek_ai_dsh_api_session_controller_session_list_parameter_0$schema = () => _deepseek_ai_dsh_api_session_controller_session_list_parameter_0$schema$value ??= object({ "cursor": string().readonly().optional() });
8867
9162
  let _deepseek_ai_dsh_api_session_controller_session_list_result$schema$value;
8868
9163
  const _deepseek_ai_dsh_api_session_controller_session_list_result$schema = () => _deepseek_ai_dsh_api_session_controller_session_list_result$schema$value ??= object({ "items": array(object({
9164
+ "agentAvailable": boolean().readonly(),
8869
9165
  "sessionId": intersection(string(), unknown()).readonly(),
8870
9166
  "updatedAt": number().readonly(),
8871
9167
  "running": boolean().readonly(),
@@ -8874,6 +9170,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8874
9170
  "origin": literal("subagent").readonly().optional(),
8875
9171
  "cwd": string().readonly().optional(),
8876
9172
  "projections": object({
9173
+ "kind": union([literal("cached"), literal("sequenced")]).readonly(),
8877
9174
  "asOfSeq": number().readonly(),
8878
9175
  "values": intersection(object({
8879
9176
  "inbox": object({
@@ -8901,9 +9198,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8901
9198
  "todos": union([literal(null), array(object({
8902
9199
  "content": string(),
8903
9200
  "status": union([
9201
+ literal("completed"),
8904
9202
  literal("pending"),
8905
- literal("in_progress"),
8906
- literal("completed")
9203
+ literal("in_progress")
8907
9204
  ])
8908
9205
  }))]).optional(),
8909
9206
  "sessionListMetadata": object({
@@ -8936,25 +9233,36 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8936
9233
  })]).readonly()
8937
9234
  }).optional(),
8938
9235
  "permissions": object({ "currentValue": string() }).optional(),
8939
- "subagentCatalog": array(union([intersection(object({
8940
- "id": intersection(string(), unknown()).readonly(),
8941
- "createdAt": number().readonly()
8942
- }), object({
8943
- "mode": literal("one-shot").readonly(),
8944
- "label": string().readonly().optional()
8945
- })), intersection(object({
8946
- "id": intersection(string(), unknown()).readonly(),
8947
- "createdAt": number().readonly()
8948
- }), object({
8949
- "mode": literal("continuable").readonly(),
8950
- "label": string().readonly()
8951
- }))])).optional(),
9236
+ "subagentCatalog": array(union([
9237
+ intersection(object({
9238
+ "id": intersection(string(), unknown()).readonly(),
9239
+ "createdAt": number().readonly()
9240
+ }), object({
9241
+ "mode": literal("one-shot").readonly(),
9242
+ "label": string().readonly().optional()
9243
+ })),
9244
+ intersection(object({
9245
+ "id": intersection(string(), unknown()).readonly(),
9246
+ "createdAt": number().readonly()
9247
+ }), object({
9248
+ "mode": literal("continuable").readonly(),
9249
+ "label": string().readonly()
9250
+ })),
9251
+ intersection(object({
9252
+ "id": intersection(string(), unknown()).readonly(),
9253
+ "createdAt": number().readonly()
9254
+ }), object({
9255
+ "mode": literal("unknown").readonly(),
9256
+ "label": string().readonly().optional()
9257
+ }))
9258
+ ])).optional(),
8952
9259
  "subagentTiming": object({
8953
9260
  "settledMs": number(),
8954
9261
  "active": object({
8955
9262
  "since": number(),
8956
9263
  "through": number()
8957
- }).optional()
9264
+ }).optional(),
9265
+ "lastTurnCompleted": boolean().optional()
8958
9266
  }).optional(),
8959
9267
  "subagent": union([
8960
9268
  literal(null),
@@ -9035,6 +9343,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9035
9343
  let _deepseek_ai_dsh_api_session_controller_session_openWorkspacePath_parameter_0$schema$value;
9036
9344
  const _deepseek_ai_dsh_api_session_controller_session_openWorkspacePath_parameter_0$schema = () => _deepseek_ai_dsh_api_session_controller_session_openWorkspacePath_parameter_0$schema$value ??= object({
9037
9345
  "action": literal("reveal").readonly().optional(),
9346
+ "application": string().readonly().optional(),
9038
9347
  "path": string().readonly()
9039
9348
  });
9040
9349
  let _deepseek_ai_dsh_api_session_controller_session_openWorkspacePath_result$schema$value;
@@ -9048,7 +9357,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9048
9357
  "kind": literal("subagent").readonly(),
9049
9358
  "parentSessionId": intersection(string(), unknown()).readonly(),
9050
9359
  "childSessionId": intersection(string(), unknown()).readonly(),
9051
- "mode": union([literal("one-shot"), literal("continuable")]).readonly()
9360
+ "mode": union([
9361
+ literal("one-shot"),
9362
+ literal("continuable"),
9363
+ literal("unknown")
9364
+ ]).readonly()
9052
9365
  })]).readonly(),
9053
9366
  "throughSeq": number().readonly(),
9054
9367
  "beforeSeq": number().readonly().optional(),
@@ -9094,6 +9407,147 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9094
9407
  })).readonly(),
9095
9408
  "hasMore": boolean().readonly()
9096
9409
  });
9410
+ let _deepseek_ai_dsh_api_session_controller_session_projections_parameter_0$schema$value;
9411
+ const _deepseek_ai_dsh_api_session_controller_session_projections_parameter_0$schema = () => _deepseek_ai_dsh_api_session_controller_session_projections_parameter_0$schema$value ??= object({ "sessionId": intersection(string(), unknown()).readonly() });
9412
+ let _deepseek_ai_dsh_api_session_controller_session_projections_result$schema$value;
9413
+ const _deepseek_ai_dsh_api_session_controller_session_projections_result$schema = () => _deepseek_ai_dsh_api_session_controller_session_projections_result$schema$value ??= union([literal(null), object({
9414
+ "asOfSeq": number().readonly(),
9415
+ "values": intersection(object({
9416
+ "inbox": object({
9417
+ "next-turn": array(union([
9418
+ literal(null),
9419
+ string(),
9420
+ number(),
9421
+ literal(false),
9422
+ literal(true),
9423
+ array(lazy(() => JsonValueRemoteCodec$schema4())),
9424
+ record(string(), lazy(() => JsonValueRemoteCodec$schema4()))
9425
+ ])).readonly(),
9426
+ "next-step": array(union([
9427
+ literal(null),
9428
+ string(),
9429
+ number(),
9430
+ literal(false),
9431
+ literal(true),
9432
+ array(lazy(() => JsonValueRemoteCodec$schema4())),
9433
+ record(string(), lazy(() => JsonValueRemoteCodec$schema4()))
9434
+ ])).readonly()
9435
+ }).optional(),
9436
+ "agentPreset": union([literal(null), string()]).optional(),
9437
+ "title": union([literal(null), string()]).optional(),
9438
+ "todos": union([literal(null), array(object({
9439
+ "content": string(),
9440
+ "status": union([
9441
+ literal("completed"),
9442
+ literal("pending"),
9443
+ literal("in_progress")
9444
+ ])
9445
+ }))]).optional(),
9446
+ "sessionListMetadata": object({
9447
+ "blank": boolean().readonly(),
9448
+ "lastPromptAt": union([literal(null), number()]).readonly()
9449
+ }).optional(),
9450
+ "imageLimits": object({
9451
+ "maxImageBytes": number(),
9452
+ "maxImagesPerMessage": number(),
9453
+ "maxMessageImageBytes": number(),
9454
+ "maxImagePixels": number(),
9455
+ "maxImageDimension": number(),
9456
+ "mediaTypes": array(union([
9457
+ literal("image/png"),
9458
+ literal("image/jpeg"),
9459
+ literal("image/webp"),
9460
+ literal("image/gif")
9461
+ ]))
9462
+ }).optional(),
9463
+ "modelSelection": object({
9464
+ "lastUsed": union([literal(null), object({
9465
+ "provider": string().readonly(),
9466
+ "model": string().readonly(),
9467
+ "reasoningEffort": string().readonly().optional()
9468
+ })]).readonly(),
9469
+ "next": union([literal(null), object({
9470
+ "provider": string().readonly(),
9471
+ "model": string().readonly(),
9472
+ "reasoningEffort": string().readonly().optional()
9473
+ })]).readonly()
9474
+ }).optional(),
9475
+ "permissions": object({ "currentValue": string() }).optional(),
9476
+ "subagentCatalog": array(union([
9477
+ intersection(object({
9478
+ "id": intersection(string(), unknown()).readonly(),
9479
+ "createdAt": number().readonly()
9480
+ }), object({
9481
+ "mode": literal("one-shot").readonly(),
9482
+ "label": string().readonly().optional()
9483
+ })),
9484
+ intersection(object({
9485
+ "id": intersection(string(), unknown()).readonly(),
9486
+ "createdAt": number().readonly()
9487
+ }), object({
9488
+ "mode": literal("continuable").readonly(),
9489
+ "label": string().readonly()
9490
+ })),
9491
+ intersection(object({
9492
+ "id": intersection(string(), unknown()).readonly(),
9493
+ "createdAt": number().readonly()
9494
+ }), object({
9495
+ "mode": literal("unknown").readonly(),
9496
+ "label": string().readonly().optional()
9497
+ }))
9498
+ ])).optional(),
9499
+ "subagentTiming": object({
9500
+ "settledMs": number(),
9501
+ "active": object({
9502
+ "since": number(),
9503
+ "through": number()
9504
+ }).optional(),
9505
+ "lastTurnCompleted": boolean().optional()
9506
+ }).optional(),
9507
+ "subagent": union([
9508
+ literal(null),
9509
+ object({
9510
+ "mode": literal("one-shot"),
9511
+ "label": string().optional(),
9512
+ "seq": intersection(number(), unknown())
9513
+ }),
9514
+ object({
9515
+ "mode": literal("continuable"),
9516
+ "label": string(),
9517
+ "seq": intersection(number(), unknown())
9518
+ })
9519
+ ]).optional(),
9520
+ "goal": union([literal(null), object({
9521
+ "goal": object({
9522
+ "objective": string().readonly(),
9523
+ "phase": union([
9524
+ literal("active"),
9525
+ literal("paused"),
9526
+ literal("blocked"),
9527
+ literal("complete")
9528
+ ]).readonly(),
9529
+ "blockedReason": object({
9530
+ "code": string().readonly(),
9531
+ "message": string().readonly()
9532
+ }).readonly().optional(),
9533
+ "maxGoalRounds": number().readonly(),
9534
+ "id": intersection(string(), unknown()).readonly(),
9535
+ "revision": number().readonly()
9536
+ }).readonly(),
9537
+ "roundsStarted": number().readonly(),
9538
+ "createdAt": number().readonly(),
9539
+ "updatedAt": number().readonly()
9540
+ })]).optional()
9541
+ }), record(string(), union([
9542
+ literal(null),
9543
+ string(),
9544
+ number(),
9545
+ literal(false),
9546
+ literal(true),
9547
+ array(lazy(() => JsonValueRemoteCodec$schema4())),
9548
+ record(string(), lazy(() => JsonValueRemoteCodec$schema4()))
9549
+ ])).readonly()).readonly()
9550
+ })]);
9097
9551
  let _deepseek_ai_dsh_api_session_controller_session_prompt_parameter_0$schema$value;
9098
9552
  const _deepseek_ai_dsh_api_session_controller_session_prompt_parameter_0$schema = () => _deepseek_ai_dsh_api_session_controller_session_prompt_parameter_0$schema$value ??= object({
9099
9553
  "requestId": intersection(string(), unknown()).readonly(),
@@ -9164,57 +9618,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9164
9618
  "action": union([
9165
9619
  object({
9166
9620
  "kind": literal("edit").readonly(),
9167
- "content": array(union([
9168
- object({
9169
- "type": literal("file"),
9170
- "attachment": object({
9171
- "attachmentId": intersection(string(), unknown()),
9172
- "name": string(),
9173
- "bytes": number()
9174
- })
9175
- }),
9176
- object({
9177
- "type": literal("text"),
9178
- "text": string()
9179
- }),
9180
- object({
9181
- "type": literal("image"),
9182
- "attachment": object({
9183
- "attachmentId": intersection(string(), unknown()),
9184
- "mediaType": union([
9185
- literal("image/png"),
9186
- literal("image/jpeg"),
9187
- literal("image/webp"),
9188
- literal("image/gif")
9189
- ]),
9190
- "bytes": number(),
9191
- "width": number(),
9192
- "height": number(),
9193
- "name": string().optional(),
9194
- "originalDimensions": object({
9195
- "width": number(),
9196
- "height": number()
9197
- }).optional()
9198
- }),
9199
- "offloaded": literal(true).optional()
9200
- }),
9201
- object({
9202
- "type": literal("reasoning"),
9203
- "text": string()
9204
- }),
9205
- object({
9206
- "type": literal("tool-call"),
9207
- "id": intersection(string(), unknown()),
9208
- "name": string(),
9209
- "arguments": string()
9210
- }),
9211
- object({
9212
- "type": literal("tool-result"),
9213
- "toolCallId": intersection(string(), unknown()),
9214
- "content": array(lazy(() => ContentBlockRemoteCodec$schema())),
9215
- "isError": boolean().optional()
9216
- })
9217
- ])).readonly()
9621
+ "content": array(object({
9622
+ "type": literal("text"),
9623
+ "text": string()
9624
+ })).readonly()
9218
9625
  }),
9219
9626
  object({ "kind": literal("remove").readonly() }),
9220
9627
  object({ "kind": literal("steer").readonly() })
@@ -9222,6 +9629,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9222
9629
  });
9223
9630
  let _deepseek_ai_dsh_api_session_controller_session_updateQueue_result$schema$value;
9224
9631
  const _deepseek_ai_dsh_api_session_controller_session_updateQueue_result$schema = () => _deepseek_ai_dsh_api_session_controller_session_updateQueue_result$schema$value ??= object({ "accepted": literal(true).readonly() });
9632
+ let _deepseek_ai_dsh_api_session_controller_session_workspacePathApplications_parameter_0$schema$value;
9633
+ const _deepseek_ai_dsh_api_session_controller_session_workspacePathApplications_parameter_0$schema = () => _deepseek_ai_dsh_api_session_controller_session_workspacePathApplications_parameter_0$schema$value ??= object({ "path": string().readonly() });
9634
+ let _deepseek_ai_dsh_api_session_controller_session_workspacePathApplications_result$schema$value;
9635
+ const _deepseek_ai_dsh_api_session_controller_session_workspacePathApplications_result$schema = () => _deepseek_ai_dsh_api_session_controller_session_workspacePathApplications_result$schema$value ??= array(object({
9636
+ "id": string().readonly(),
9637
+ "name": string().readonly(),
9638
+ "default": boolean().readonly(),
9639
+ "icon": union([literal(null), string()]).readonly()
9640
+ }));
9225
9641
  let _deepseek_ai_dsh_api_session_controller_skills_list_parameter_0$schema$value;
9226
9642
  const _deepseek_ai_dsh_api_session_controller_skills_list_parameter_0$schema = () => _deepseek_ai_dsh_api_session_controller_skills_list_parameter_0$schema$value ??= object({ "sessionId": intersection(string(), unknown()).readonly() });
9227
9643
  let _deepseek_ai_dsh_api_session_controller_skills_list_result$schema$value;
@@ -9232,7 +9648,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9232
9648
  "whenToUse": string().readonly().optional(),
9233
9649
  "modelInvocable": boolean().readonly()
9234
9650
  })).readonly() });
9235
- const TYPERT_REMOTE$3 = {
9651
+ const TYPERT_REMOTE$4 = {
9236
9652
  package: "@deepseek-ai/dsh-api-session-controller",
9237
9653
  descriptors: [
9238
9654
  {
@@ -9300,7 +9716,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9300
9716
  },
9301
9717
  sourceLocation: {
9302
9718
  "file": "packages/api/session-controller/src/index.ts",
9303
- "line": 358,
9719
+ "line": 419,
9304
9720
  "column": 3
9305
9721
  }
9306
9722
  },
@@ -9327,7 +9743,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9327
9743
  },
9328
9744
  sourceLocation: {
9329
9745
  "file": "packages/api/session-controller/src/index.ts",
9330
- "line": 378,
9746
+ "line": 439,
9331
9747
  "column": 3
9332
9748
  }
9333
9749
  },
@@ -9345,7 +9761,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9345
9761
  },
9346
9762
  sourceLocation: {
9347
9763
  "file": "packages/api/session-controller/src/index.ts",
9348
- "line": 273,
9764
+ "line": 301,
9349
9765
  "column": 3
9350
9766
  }
9351
9767
  },
@@ -9365,7 +9781,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9365
9781
  },
9366
9782
  sourceLocation: {
9367
9783
  "file": "packages/api/session-controller/src/index.ts",
9368
- "line": 411,
9784
+ "line": 502,
9369
9785
  "column": 3
9370
9786
  }
9371
9787
  },
@@ -9392,7 +9808,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9392
9808
  },
9393
9809
  sourceLocation: {
9394
9810
  "file": "packages/api/session-controller/src/index.ts",
9395
- "line": 245,
9811
+ "line": 273,
9396
9812
  "column": 3
9397
9813
  }
9398
9814
  },
@@ -9421,7 +9837,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9421
9837
  },
9422
9838
  sourceLocation: {
9423
9839
  "file": "packages/api/session-controller/src/index.ts",
9424
- "line": 401,
9840
+ "line": 462,
9425
9841
  "column": 3
9426
9842
  }
9427
9843
  },
@@ -9448,7 +9864,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9448
9864
  },
9449
9865
  sourceLocation: {
9450
9866
  "file": "packages/api/session-controller/src/index.ts",
9451
- "line": 336,
9867
+ "line": 397,
9452
9868
  "column": 3
9453
9869
  }
9454
9870
  },
@@ -9476,7 +9892,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9476
9892
  },
9477
9893
  sourceLocation: {
9478
9894
  "file": "packages/api/session-controller/src/index.ts",
9479
- "line": 224,
9895
+ "line": 252,
9480
9896
  "column": 9
9481
9897
  }
9482
9898
  },
@@ -9494,7 +9910,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9494
9910
  },
9495
9911
  sourceLocation: {
9496
9912
  "file": "packages/api/session-controller/src/index.ts",
9497
- "line": 264,
9913
+ "line": 292,
9498
9914
  "column": 3
9499
9915
  }
9500
9916
  },
@@ -9522,7 +9938,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9522
9938
  },
9523
9939
  sourceLocation: {
9524
9940
  "file": "packages/api/session-controller/src/index.ts",
9525
- "line": 294,
9941
+ "line": 322,
9526
9942
  "column": 9
9527
9943
  }
9528
9944
  },
@@ -9550,10 +9966,38 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9550
9966
  },
9551
9967
  sourceLocation: {
9552
9968
  "file": "packages/api/session-controller/src/index.ts",
9553
- "line": 389,
9969
+ "line": 450,
9554
9970
  "column": 3
9555
9971
  }
9556
9972
  },
9973
+ {
9974
+ id: "@deepseek-ai/dsh-api-session-controller#session/projections",
9975
+ service: "sessionController",
9976
+ namespace: "session",
9977
+ method: "projections",
9978
+ invocation: { kind: "direct" },
9979
+ parameters: [{
9980
+ name: "request",
9981
+ wire: "request",
9982
+ source: "json",
9983
+ codec: {
9984
+ mode: "strict",
9985
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionProjectionsRequest",
9986
+ create: _deepseek_ai_dsh_api_session_controller_session_projections_parameter_0$schema
9987
+ }
9988
+ }],
9989
+ cancellation: { parameter: "signal" },
9990
+ result: {
9991
+ mode: "strict",
9992
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionProjectionsValue",
9993
+ create: _deepseek_ai_dsh_api_session_controller_session_projections_result$schema
9994
+ },
9995
+ sourceLocation: {
9996
+ "file": "packages/api/session-controller/src/index.ts",
9997
+ "line": 473,
9998
+ "column": 9
9999
+ }
10000
+ },
9557
10001
  {
9558
10002
  id: "@deepseek-ai/dsh-api-session-controller#session/prompt",
9559
10003
  service: "sessionController",
@@ -9578,7 +10022,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9578
10022
  },
9579
10023
  sourceLocation: {
9580
10024
  "file": "packages/api/session-controller/src/index.ts",
9581
- "line": 347,
10025
+ "line": 408,
9582
10026
  "column": 3
9583
10027
  }
9584
10028
  },
@@ -9605,7 +10049,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9605
10049
  },
9606
10050
  sourceLocation: {
9607
10051
  "file": "packages/api/session-controller/src/index.ts",
9608
- "line": 326,
10052
+ "line": 385,
9609
10053
  "column": 3
9610
10054
  }
9611
10055
  },
@@ -9633,15 +10077,246 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9633
10077
  },
9634
10078
  sourceLocation: {
9635
10079
  "file": "packages/api/session-controller/src/index.ts",
9636
- "line": 235,
10080
+ "line": 263,
10081
+ "column": 3
10082
+ }
10083
+ },
10084
+ {
10085
+ id: "@deepseek-ai/dsh-api-session-controller#session/selectModel",
10086
+ service: "sessionController",
10087
+ namespace: "session",
10088
+ method: "selectModel",
10089
+ invocation: { kind: "direct" },
10090
+ parameters: [{
10091
+ name: "request",
10092
+ wire: "request",
10093
+ source: "json",
10094
+ codec: {
10095
+ mode: "strict",
10096
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionSelectModelRequest",
10097
+ create: _deepseek_ai_dsh_api_session_controller_session_selectModel_parameter_0$schema
10098
+ }
10099
+ }],
10100
+ result: {
10101
+ mode: "strict",
10102
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionSelectModelValue",
10103
+ create: _deepseek_ai_dsh_api_session_controller_session_selectModel_result$schema
10104
+ },
10105
+ sourceLocation: {
10106
+ "file": "packages/api/session-controller/src/index.ts",
10107
+ "line": 283,
10108
+ "column": 3
10109
+ }
10110
+ },
10111
+ {
10112
+ id: "@deepseek-ai/dsh-api-session-controller#session/updateQueue",
10113
+ service: "sessionController",
10114
+ namespace: "session",
10115
+ method: "updateQueue",
10116
+ invocation: { kind: "direct" },
10117
+ parameters: [{
10118
+ name: "request",
10119
+ wire: "request",
10120
+ source: "json",
10121
+ codec: {
10122
+ mode: "strict",
10123
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionUpdateQueueRequest",
10124
+ create: _deepseek_ai_dsh_api_session_controller_session_updateQueue_parameter_0$schema
10125
+ }
10126
+ }],
10127
+ result: {
10128
+ mode: "strict",
10129
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionUpdateQueueValue",
10130
+ create: _deepseek_ai_dsh_api_session_controller_session_updateQueue_result$schema
10131
+ },
10132
+ sourceLocation: {
10133
+ "file": "packages/api/session-controller/src/index.ts",
10134
+ "line": 429,
9637
10135
  "column": 3
9638
10136
  }
9639
10137
  },
9640
10138
  {
9641
- id: "@deepseek-ai/dsh-api-session-controller#session/selectModel",
9642
- service: "sessionController",
9643
- namespace: "session",
9644
- method: "selectModel",
10139
+ id: "@deepseek-ai/dsh-api-session-controller#session/workspacePathApplications",
10140
+ service: "sessionController",
10141
+ namespace: "session",
10142
+ method: "workspacePathApplications",
10143
+ invocation: { kind: "direct" },
10144
+ parameters: [{
10145
+ name: "request",
10146
+ wire: "request",
10147
+ source: "json",
10148
+ codec: {
10149
+ mode: "strict",
10150
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller#session/workspacePathApplications:request",
10151
+ create: _deepseek_ai_dsh_api_session_controller_session_workspacePathApplications_parameter_0$schema
10152
+ }
10153
+ }],
10154
+ cancellation: { parameter: "signal" },
10155
+ result: {
10156
+ mode: "strict",
10157
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller#session/workspacePathApplications:result",
10158
+ create: _deepseek_ai_dsh_api_session_controller_session_workspacePathApplications_result$schema
10159
+ },
10160
+ sourceLocation: {
10161
+ "file": "packages/api/session-controller/src/index.ts",
10162
+ "line": 352,
10163
+ "column": 9
10164
+ }
10165
+ },
10166
+ {
10167
+ id: "@deepseek-ai/dsh-api-session-controller#skills/list",
10168
+ service: "sessionSkillCatalog",
10169
+ namespace: "skills",
10170
+ method: "list",
10171
+ invocation: { kind: "direct" },
10172
+ parameters: [{
10173
+ name: "request",
10174
+ wire: "request",
10175
+ source: "json",
10176
+ codec: {
10177
+ mode: "strict",
10178
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SkillListRequest",
10179
+ create: _deepseek_ai_dsh_api_session_controller_skills_list_parameter_0$schema
10180
+ }
10181
+ }],
10182
+ cancellation: { parameter: "signal" },
10183
+ result: {
10184
+ mode: "strict",
10185
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SkillListValue",
10186
+ create: _deepseek_ai_dsh_api_session_controller_skills_list_result$schema
10187
+ },
10188
+ sourceLocation: {
10189
+ "file": "packages/api/session-controller/src/skill-catalog.ts",
10190
+ "line": 35,
10191
+ "column": 9
10192
+ }
10193
+ }
10194
+ ]
10195
+ };
10196
+ //#endregion
10197
+ //#region ../job-controller/lib/typert.remote-client.js
10198
+ let _deepseek_ai_dsh_api_job_controller_job_follow_parameter_0$schema$value;
10199
+ const _deepseek_ai_dsh_api_job_controller_job_follow_parameter_0$schema = () => _deepseek_ai_dsh_api_job_controller_job_follow_parameter_0$schema$value ??= object({
10200
+ "sessionId": intersection(string(), unknown()).readonly().optional(),
10201
+ "jobId": intersection(string(), unknown()).readonly(),
10202
+ "from": number().readonly().optional()
10203
+ });
10204
+ let _deepseek_ai_dsh_api_job_controller_job_follow_result$schema$value;
10205
+ const _deepseek_ai_dsh_api_job_controller_job_follow_result$schema = () => _deepseek_ai_dsh_api_job_controller_job_follow_result$schema$value ??= union([
10206
+ object({
10207
+ "type": literal("opened").readonly(),
10208
+ "job": object({
10209
+ "id": intersection(string(), unknown()).readonly(),
10210
+ "kind": string().readonly(),
10211
+ "label": string().readonly(),
10212
+ "owner": intersection(string(), unknown()).readonly().optional(),
10213
+ "outputLimitBytes": number().readonly().optional(),
10214
+ "status": union([
10215
+ literal("failed"),
10216
+ literal("running"),
10217
+ literal("stopping"),
10218
+ literal("completed"),
10219
+ literal("killed")
10220
+ ]).readonly(),
10221
+ "progress": string().readonly().optional(),
10222
+ "detail": string().readonly().optional(),
10223
+ "startedAt": number().readonly(),
10224
+ "finishedAt": number().readonly().optional(),
10225
+ "output": object({
10226
+ "total": number().readonly(),
10227
+ "earliest": number().readonly(),
10228
+ "spillPaths": array(string()).readonly().optional()
10229
+ }).readonly()
10230
+ }).readonly(),
10231
+ "from": number().readonly()
10232
+ }),
10233
+ object({
10234
+ "type": literal("output").readonly(),
10235
+ "chunks": array(object({
10236
+ "at": number().readonly(),
10237
+ "text": string().readonly(),
10238
+ "channel": union([
10239
+ literal("stdout"),
10240
+ literal("stderr"),
10241
+ literal("log")
10242
+ ]).readonly().optional(),
10243
+ "gapBefore": literal(true).readonly().optional()
10244
+ })).readonly(),
10245
+ "next": number().readonly(),
10246
+ "lossy": literal(true).readonly().optional()
10247
+ }),
10248
+ object({
10249
+ "type": literal("status").readonly(),
10250
+ "job": object({
10251
+ "id": intersection(string(), unknown()).readonly(),
10252
+ "kind": string().readonly(),
10253
+ "label": string().readonly(),
10254
+ "owner": intersection(string(), unknown()).readonly().optional(),
10255
+ "outputLimitBytes": number().readonly().optional(),
10256
+ "status": union([
10257
+ literal("failed"),
10258
+ literal("running"),
10259
+ literal("stopping"),
10260
+ literal("completed"),
10261
+ literal("killed")
10262
+ ]).readonly(),
10263
+ "progress": string().readonly().optional(),
10264
+ "detail": string().readonly().optional(),
10265
+ "startedAt": number().readonly(),
10266
+ "finishedAt": number().readonly().optional(),
10267
+ "output": object({
10268
+ "total": number().readonly(),
10269
+ "earliest": number().readonly(),
10270
+ "spillPaths": array(string()).readonly().optional()
10271
+ }).readonly()
10272
+ }).readonly()
10273
+ })
10274
+ ]);
10275
+ let _deepseek_ai_dsh_api_job_controller_job_kill_parameter_0$schema$value;
10276
+ const _deepseek_ai_dsh_api_job_controller_job_kill_parameter_0$schema = () => _deepseek_ai_dsh_api_job_controller_job_kill_parameter_0$schema$value ??= object({
10277
+ "sessionId": intersection(string(), unknown()).readonly(),
10278
+ "jobId": intersection(string(), unknown()).readonly()
10279
+ });
10280
+ let _deepseek_ai_dsh_api_job_controller_job_kill_result$schema$value;
10281
+ const _deepseek_ai_dsh_api_job_controller_job_kill_result$schema = () => _deepseek_ai_dsh_api_job_controller_job_kill_result$schema$value ??= object({ "outcome": union([literal("requested"), literal("already-finished")]).readonly() });
10282
+ let _deepseek_ai_dsh_api_job_controller_job_list_parameter_0$schema$value;
10283
+ const _deepseek_ai_dsh_api_job_controller_job_list_parameter_0$schema = () => _deepseek_ai_dsh_api_job_controller_job_list_parameter_0$schema$value ??= object({ "sessionId": intersection(string(), unknown()).readonly() });
10284
+ let _deepseek_ai_dsh_api_job_controller_job_list_result$schema$value;
10285
+ const _deepseek_ai_dsh_api_job_controller_job_list_result$schema = () => _deepseek_ai_dsh_api_job_controller_job_list_result$schema$value ??= object({
10286
+ "type": literal("rows").readonly(),
10287
+ "jobs": array(object({
10288
+ "id": intersection(string(), unknown()).readonly(),
10289
+ "kind": string().readonly(),
10290
+ "label": string().readonly(),
10291
+ "owner": intersection(string(), unknown()).readonly().optional(),
10292
+ "outputLimitBytes": number().readonly().optional(),
10293
+ "status": union([
10294
+ literal("failed"),
10295
+ literal("running"),
10296
+ literal("stopping"),
10297
+ literal("completed"),
10298
+ literal("killed")
10299
+ ]).readonly(),
10300
+ "progress": string().readonly().optional(),
10301
+ "detail": string().readonly().optional(),
10302
+ "startedAt": number().readonly(),
10303
+ "finishedAt": number().readonly().optional(),
10304
+ "output": object({
10305
+ "total": number().readonly(),
10306
+ "earliest": number().readonly(),
10307
+ "spillPaths": array(string()).readonly().optional()
10308
+ }).readonly()
10309
+ })).readonly()
10310
+ });
10311
+ const TYPERT_REMOTE$3 = {
10312
+ package: "@deepseek-ai/dsh-api-job-controller",
10313
+ descriptors: [
10314
+ {
10315
+ id: "@deepseek-ai/dsh-api-job-controller#job/follow",
10316
+ service: "jobController",
10317
+ namespace: "job",
10318
+ method: "follow",
10319
+ mode: "stream",
9645
10320
  invocation: { kind: "direct" },
9646
10321
  parameters: [{
9647
10322
  name: "request",
@@ -9649,26 +10324,27 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9649
10324
  source: "json",
9650
10325
  codec: {
9651
10326
  mode: "strict",
9652
- typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionSelectModelRequest",
9653
- create: _deepseek_ai_dsh_api_session_controller_session_selectModel_parameter_0$schema
10327
+ typeSymbol: "@deepseek-ai/dsh-api-job-controller/types#JobFollowRequest",
10328
+ create: _deepseek_ai_dsh_api_job_controller_job_follow_parameter_0$schema
9654
10329
  }
9655
10330
  }],
10331
+ cancellation: { parameter: "signal" },
9656
10332
  result: {
9657
10333
  mode: "strict",
9658
- typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionSelectModelValue",
9659
- create: _deepseek_ai_dsh_api_session_controller_session_selectModel_result$schema
10334
+ typeSymbol: "@deepseek-ai/dsh-api-job-controller/types#JobFollowFrame",
10335
+ create: _deepseek_ai_dsh_api_job_controller_job_follow_result$schema
9660
10336
  },
9661
10337
  sourceLocation: {
9662
- "file": "packages/api/session-controller/src/index.ts",
9663
- "line": 255,
10338
+ "file": "packages/api/job-controller/src/index.ts",
10339
+ "line": 91,
9664
10340
  "column": 3
9665
10341
  }
9666
10342
  },
9667
10343
  {
9668
- id: "@deepseek-ai/dsh-api-session-controller#session/updateQueue",
9669
- service: "sessionController",
9670
- namespace: "session",
9671
- method: "updateQueue",
10344
+ id: "@deepseek-ai/dsh-api-job-controller#job/kill",
10345
+ service: "jobController",
10346
+ namespace: "job",
10347
+ method: "kill",
9672
10348
  invocation: { kind: "direct" },
9673
10349
  parameters: [{
9674
10350
  name: "request",
@@ -9676,26 +10352,27 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9676
10352
  source: "json",
9677
10353
  codec: {
9678
10354
  mode: "strict",
9679
- typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionUpdateQueueRequest",
9680
- create: _deepseek_ai_dsh_api_session_controller_session_updateQueue_parameter_0$schema
10355
+ typeSymbol: "@deepseek-ai/dsh-api-job-controller/types#JobKillRequest",
10356
+ create: _deepseek_ai_dsh_api_job_controller_job_kill_parameter_0$schema
9681
10357
  }
9682
10358
  }],
9683
10359
  result: {
9684
10360
  mode: "strict",
9685
- typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionUpdateQueueValue",
9686
- create: _deepseek_ai_dsh_api_session_controller_session_updateQueue_result$schema
10361
+ typeSymbol: "@deepseek-ai/dsh-api-job-controller/types#JobKillValue",
10362
+ create: _deepseek_ai_dsh_api_job_controller_job_kill_result$schema
9687
10363
  },
9688
10364
  sourceLocation: {
9689
- "file": "packages/api/session-controller/src/index.ts",
9690
- "line": 368,
10365
+ "file": "packages/api/job-controller/src/index.ts",
10366
+ "line": 110,
9691
10367
  "column": 3
9692
10368
  }
9693
10369
  },
9694
10370
  {
9695
- id: "@deepseek-ai/dsh-api-session-controller#skills/list",
9696
- service: "sessionSkillCatalog",
9697
- namespace: "skills",
10371
+ id: "@deepseek-ai/dsh-api-job-controller#job/list",
10372
+ service: "jobController",
10373
+ namespace: "job",
9698
10374
  method: "list",
10375
+ mode: "stream",
9699
10376
  invocation: { kind: "direct" },
9700
10377
  parameters: [{
9701
10378
  name: "request",
@@ -9703,20 +10380,20 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9703
10380
  source: "json",
9704
10381
  codec: {
9705
10382
  mode: "strict",
9706
- typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SkillListRequest",
9707
- create: _deepseek_ai_dsh_api_session_controller_skills_list_parameter_0$schema
10383
+ typeSymbol: "@deepseek-ai/dsh-api-job-controller/types#JobListRequest",
10384
+ create: _deepseek_ai_dsh_api_job_controller_job_list_parameter_0$schema
9708
10385
  }
9709
10386
  }],
9710
10387
  cancellation: { parameter: "signal" },
9711
10388
  result: {
9712
10389
  mode: "strict",
9713
- typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SkillListValue",
9714
- create: _deepseek_ai_dsh_api_session_controller_skills_list_result$schema
10390
+ typeSymbol: "@deepseek-ai/dsh-api-job-controller/types#JobListFrame",
10391
+ create: _deepseek_ai_dsh_api_job_controller_job_list_result$schema
9715
10392
  },
9716
10393
  sourceLocation: {
9717
- "file": "packages/api/session-controller/src/skill-catalog.ts",
9718
- "line": 36,
9719
- "column": 9
10394
+ "file": "packages/api/job-controller/src/index.ts",
10395
+ "line": 76,
10396
+ "column": 3
9720
10397
  }
9721
10398
  }
9722
10399
  ]
@@ -9750,7 +10427,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9750
10427
  let _deepseek_ai_dsh_api_workspace_controller_directoryPicker_pick_result$schema$value;
9751
10428
  const _deepseek_ai_dsh_api_workspace_controller_directoryPicker_pick_result$schema = () => _deepseek_ai_dsh_api_workspace_controller_directoryPicker_pick_result$schema$value ??= union([literal(null), string()]);
9752
10429
  let _deepseek_ai_dsh_api_workspace_controller_workspace_archiveSession_parameter_0$schema$value;
9753
- const _deepseek_ai_dsh_api_workspace_controller_workspace_archiveSession_parameter_0$schema = () => _deepseek_ai_dsh_api_workspace_controller_workspace_archiveSession_parameter_0$schema$value ??= object({ "sessionId": intersection(string(), unknown()).readonly() });
10430
+ const _deepseek_ai_dsh_api_workspace_controller_workspace_archiveSession_parameter_0$schema = () => _deepseek_ai_dsh_api_workspace_controller_workspace_archiveSession_parameter_0$schema$value ??= object({
10431
+ "sessionId": intersection(string(), unknown()).readonly(),
10432
+ "stopActivity": boolean().readonly().optional()
10433
+ });
9754
10434
  let _deepseek_ai_dsh_api_workspace_controller_workspace_archiveSession_result$schema$value;
9755
10435
  const _deepseek_ai_dsh_api_workspace_controller_workspace_archiveSession_result$schema = () => _deepseek_ai_dsh_api_workspace_controller_workspace_archiveSession_result$schema$value ??= object({ "archivedSessionIds": array(intersection(string(), unknown())).readonly() });
9756
10436
  let _deepseek_ai_dsh_api_workspace_controller_workspace_create_parameter_0$schema$value;
@@ -9784,7 +10464,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9784
10464
  "createdAt": string().readonly(),
9785
10465
  "updatedAt": string().readonly()
9786
10466
  })).readonly(),
9787
- "archivedSessionIds": array(intersection(string(), unknown())).readonly()
10467
+ "archivedSessionIds": array(intersection(string(), unknown())).readonly(),
10468
+ "pinnedSessionIds": array(intersection(string(), unknown())).readonly()
9788
10469
  }).readonly()
9789
10470
  }),
9790
10471
  object({
@@ -9809,8 +10490,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9809
10490
  object({
9810
10491
  "type": literal("archived").readonly(),
9811
10492
  "archivedSessionIds": array(intersection(string(), unknown())).readonly()
10493
+ }),
10494
+ object({
10495
+ "type": literal("pinned").readonly(),
10496
+ "pinnedSessionIds": array(intersection(string(), unknown())).readonly()
9812
10497
  })
9813
10498
  ]);
10499
+ let _deepseek_ai_dsh_api_workspace_controller_workspace_initializeDefault_parameter_0$schema$value;
10500
+ const _deepseek_ai_dsh_api_workspace_controller_workspace_initializeDefault_parameter_0$schema = () => _deepseek_ai_dsh_api_workspace_controller_workspace_initializeDefault_parameter_0$schema$value ??= object({
10501
+ "directoryName": string().readonly(),
10502
+ "title": string().readonly()
10503
+ });
10504
+ let _deepseek_ai_dsh_api_workspace_controller_workspace_initializeDefault_result$schema$value;
10505
+ const _deepseek_ai_dsh_api_workspace_controller_workspace_initializeDefault_result$schema = () => _deepseek_ai_dsh_api_workspace_controller_workspace_initializeDefault_result$schema$value ??= union([_undefined(), object({ "workspace": object({
10506
+ "workspaceId": intersection(string(), unknown()).readonly(),
10507
+ "path": string().readonly(),
10508
+ "title": string().readonly(),
10509
+ "sessionIds": array(intersection(string(), unknown())).readonly(),
10510
+ "createdAt": string().readonly(),
10511
+ "updatedAt": string().readonly()
10512
+ }).readonly() })]);
9814
10513
  let _deepseek_ai_dsh_api_workspace_controller_workspace_insertBefore_parameter_0$schema$value;
9815
10514
  const _deepseek_ai_dsh_api_workspace_controller_workspace_insertBefore_parameter_0$schema = () => _deepseek_ai_dsh_api_workspace_controller_workspace_insertBefore_parameter_0$schema$value ??= object({
9816
10515
  "workspaceId": intersection(string(), unknown()).readonly(),
@@ -9833,6 +10532,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9833
10532
  "createdAt": string().readonly(),
9834
10533
  "updatedAt": string().readonly()
9835
10534
  }).readonly() });
10535
+ let _deepseek_ai_dsh_api_workspace_controller_workspace_pinSession_parameter_0$schema$value;
10536
+ const _deepseek_ai_dsh_api_workspace_controller_workspace_pinSession_parameter_0$schema = () => _deepseek_ai_dsh_api_workspace_controller_workspace_pinSession_parameter_0$schema$value ??= object({ "sessionId": intersection(string(), unknown()).readonly() });
10537
+ let _deepseek_ai_dsh_api_workspace_controller_workspace_pinSession_result$schema$value;
10538
+ const _deepseek_ai_dsh_api_workspace_controller_workspace_pinSession_result$schema = () => _deepseek_ai_dsh_api_workspace_controller_workspace_pinSession_result$schema$value ??= object({ "pinnedSessionIds": array(intersection(string(), unknown())).readonly() });
9836
10539
  let _deepseek_ai_dsh_api_workspace_controller_workspace_rename_parameter_0$schema$value;
9837
10540
  const _deepseek_ai_dsh_api_workspace_controller_workspace_rename_parameter_0$schema = () => _deepseek_ai_dsh_api_workspace_controller_workspace_rename_parameter_0$schema$value ??= object({
9838
10541
  "workspaceId": intersection(string(), unknown()).readonly(),
@@ -9851,6 +10554,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9851
10554
  const _deepseek_ai_dsh_api_workspace_controller_workspace_unarchiveSession_parameter_0$schema = () => _deepseek_ai_dsh_api_workspace_controller_workspace_unarchiveSession_parameter_0$schema$value ??= object({ "sessionId": intersection(string(), unknown()).readonly() });
9852
10555
  let _deepseek_ai_dsh_api_workspace_controller_workspace_unarchiveSession_result$schema$value;
9853
10556
  const _deepseek_ai_dsh_api_workspace_controller_workspace_unarchiveSession_result$schema = () => _deepseek_ai_dsh_api_workspace_controller_workspace_unarchiveSession_result$schema$value ??= object({ "archivedSessionIds": array(intersection(string(), unknown())).readonly() });
10557
+ let _deepseek_ai_dsh_api_workspace_controller_workspace_unpinSession_parameter_0$schema$value;
10558
+ const _deepseek_ai_dsh_api_workspace_controller_workspace_unpinSession_parameter_0$schema = () => _deepseek_ai_dsh_api_workspace_controller_workspace_unpinSession_parameter_0$schema$value ??= object({ "sessionId": intersection(string(), unknown()).readonly() });
10559
+ let _deepseek_ai_dsh_api_workspace_controller_workspace_unpinSession_result$schema$value;
10560
+ const _deepseek_ai_dsh_api_workspace_controller_workspace_unpinSession_result$schema = () => _deepseek_ai_dsh_api_workspace_controller_workspace_unpinSession_result$schema$value ??= object({ "pinnedSessionIds": array(intersection(string(), unknown())).readonly() });
9854
10561
  const TYPERT_REMOTE$2 = {
9855
10562
  package: "@deepseek-ai/dsh-api-workspace-controller",
9856
10563
  descriptors: [
@@ -9961,7 +10668,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9961
10668
  },
9962
10669
  sourceLocation: {
9963
10670
  "file": "packages/api/workspace-controller/src/index.ts",
9964
- "line": 109,
10671
+ "line": 160,
9965
10672
  "column": 3
9966
10673
  }
9967
10674
  },
@@ -9988,7 +10695,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9988
10695
  },
9989
10696
  sourceLocation: {
9990
10697
  "file": "packages/api/workspace-controller/src/index.ts",
9991
- "line": 59,
10698
+ "line": 87,
9992
10699
  "column": 3
9993
10700
  }
9994
10701
  },
@@ -10015,7 +10722,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10015
10722
  },
10016
10723
  sourceLocation: {
10017
10724
  "file": "packages/api/workspace-controller/src/index.ts",
10018
- "line": 79,
10725
+ "line": 130,
10019
10726
  "column": 3
10020
10727
  }
10021
10728
  },
@@ -10035,10 +10742,38 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10035
10742
  },
10036
10743
  sourceLocation: {
10037
10744
  "file": "packages/api/workspace-controller/src/index.ts",
10038
- "line": 129,
10745
+ "line": 200,
10039
10746
  "column": 3
10040
10747
  }
10041
10748
  },
10749
+ {
10750
+ id: "@deepseek-ai/dsh-api-workspace-controller#workspace/initializeDefault",
10751
+ service: "workspaceController",
10752
+ namespace: "workspace",
10753
+ method: "initializeDefault",
10754
+ invocation: { kind: "direct" },
10755
+ parameters: [{
10756
+ name: "request",
10757
+ wire: "request",
10758
+ source: "json",
10759
+ codec: {
10760
+ mode: "strict",
10761
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceInitializeDefaultRequest",
10762
+ create: _deepseek_ai_dsh_api_workspace_controller_workspace_initializeDefault_parameter_0$schema
10763
+ }
10764
+ }],
10765
+ cancellation: { parameter: "signal" },
10766
+ result: {
10767
+ mode: "strict",
10768
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller#workspace/initializeDefault:result",
10769
+ create: _deepseek_ai_dsh_api_workspace_controller_workspace_initializeDefault_result$schema
10770
+ },
10771
+ sourceLocation: {
10772
+ "file": "packages/api/workspace-controller/src/index.ts",
10773
+ "line": 98,
10774
+ "column": 9
10775
+ }
10776
+ },
10042
10777
  {
10043
10778
  id: "@deepseek-ai/dsh-api-workspace-controller#workspace/insertBefore",
10044
10779
  service: "workspaceController",
@@ -10062,7 +10797,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10062
10797
  },
10063
10798
  sourceLocation: {
10064
10799
  "file": "packages/api/workspace-controller/src/index.ts",
10065
- "line": 89,
10800
+ "line": 140,
10066
10801
  "column": 3
10067
10802
  }
10068
10803
  },
@@ -10089,7 +10824,34 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10089
10824
  },
10090
10825
  sourceLocation: {
10091
10826
  "file": "packages/api/workspace-controller/src/index.ts",
10092
- "line": 99,
10827
+ "line": 150,
10828
+ "column": 3
10829
+ }
10830
+ },
10831
+ {
10832
+ id: "@deepseek-ai/dsh-api-workspace-controller#workspace/pinSession",
10833
+ service: "workspaceController",
10834
+ namespace: "workspace",
10835
+ method: "pinSession",
10836
+ invocation: { kind: "direct" },
10837
+ parameters: [{
10838
+ name: "request",
10839
+ wire: "request",
10840
+ source: "json",
10841
+ codec: {
10842
+ mode: "strict",
10843
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspacePinSessionRequest",
10844
+ create: _deepseek_ai_dsh_api_workspace_controller_workspace_pinSession_parameter_0$schema
10845
+ }
10846
+ }],
10847
+ result: {
10848
+ mode: "strict",
10849
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspacePinValue",
10850
+ create: _deepseek_ai_dsh_api_workspace_controller_workspace_pinSession_result$schema
10851
+ },
10852
+ sourceLocation: {
10853
+ "file": "packages/api/workspace-controller/src/index.ts",
10854
+ "line": 180,
10093
10855
  "column": 3
10094
10856
  }
10095
10857
  },
@@ -10116,7 +10878,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10116
10878
  },
10117
10879
  sourceLocation: {
10118
10880
  "file": "packages/api/workspace-controller/src/index.ts",
10119
- "line": 69,
10881
+ "line": 120,
10120
10882
  "column": 3
10121
10883
  }
10122
10884
  },
@@ -10143,7 +10905,34 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10143
10905
  },
10144
10906
  sourceLocation: {
10145
10907
  "file": "packages/api/workspace-controller/src/index.ts",
10146
- "line": 119,
10908
+ "line": 170,
10909
+ "column": 3
10910
+ }
10911
+ },
10912
+ {
10913
+ id: "@deepseek-ai/dsh-api-workspace-controller#workspace/unpinSession",
10914
+ service: "workspaceController",
10915
+ namespace: "workspace",
10916
+ method: "unpinSession",
10917
+ invocation: { kind: "direct" },
10918
+ parameters: [{
10919
+ name: "request",
10920
+ wire: "request",
10921
+ source: "json",
10922
+ codec: {
10923
+ mode: "strict",
10924
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceUnpinSessionRequest",
10925
+ create: _deepseek_ai_dsh_api_workspace_controller_workspace_unpinSession_parameter_0$schema
10926
+ }
10927
+ }],
10928
+ result: {
10929
+ mode: "strict",
10930
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspacePinValue",
10931
+ create: _deepseek_ai_dsh_api_workspace_controller_workspace_unpinSession_result$schema
10932
+ },
10933
+ sourceLocation: {
10934
+ "file": "packages/api/workspace-controller/src/index.ts",
10935
+ "line": 190,
10147
10936
  "column": 3
10148
10937
  }
10149
10938
  }
@@ -10179,8 +10968,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10179
10968
  "cols": number().readonly(),
10180
10969
  "rows": number().readonly(),
10181
10970
  "state": union([
10182
- literal("running"),
10183
10971
  literal("failed"),
10972
+ literal("running"),
10184
10973
  literal("exited")
10185
10974
  ]).readonly(),
10186
10975
  "exitCode": union([literal(null), number()]).readonly(),
@@ -10221,8 +11010,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10221
11010
  "cols": number().readonly(),
10222
11011
  "rows": number().readonly(),
10223
11012
  "state": union([
10224
- literal("running"),
10225
11013
  literal("failed"),
11014
+ literal("running"),
10226
11015
  literal("exited")
10227
11016
  ]).readonly(),
10228
11017
  "exitCode": union([literal(null), number()]).readonly(),
@@ -10249,8 +11038,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10249
11038
  "cols": number().readonly(),
10250
11039
  "rows": number().readonly(),
10251
11040
  "state": union([
10252
- literal("running"),
10253
11041
  literal("failed"),
11042
+ literal("running"),
10254
11043
  literal("exited")
10255
11044
  ]).readonly(),
10256
11045
  "exitCode": union([literal(null), number()]).readonly(),
@@ -10274,8 +11063,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10274
11063
  "cols": number().readonly(),
10275
11064
  "rows": number().readonly(),
10276
11065
  "state": union([
10277
- literal("running"),
10278
11066
  literal("failed"),
11067
+ literal("running"),
10279
11068
  literal("exited")
10280
11069
  ]).readonly(),
10281
11070
  "exitCode": union([literal(null), number()]).readonly(),
@@ -10797,6 +11586,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10797
11586
  //#region ../workspace-files/lib/typert.remote-client.js
10798
11587
  let _deepseek_ai_dsh_api_workspace_files_workspaceFiles_changes_parameter_0$schema$value;
10799
11588
  const _deepseek_ai_dsh_api_workspace_files_workspaceFiles_changes_parameter_0$schema = () => _deepseek_ai_dsh_api_workspace_files_workspaceFiles_changes_parameter_0$schema$value ??= intersection(string(), unknown());
11589
+ let _deepseek_ai_dsh_api_workspace_files_workspaceFiles_changes_parameter_1$schema$value;
11590
+ const _deepseek_ai_dsh_api_workspace_files_workspaceFiles_changes_parameter_1$schema = () => _deepseek_ai_dsh_api_workspace_files_workspaceFiles_changes_parameter_1$schema$value ??= string();
10800
11591
  let _deepseek_ai_dsh_api_workspace_files_workspaceFiles_changes_result$schema$value;
10801
11592
  const _deepseek_ai_dsh_api_workspace_files_workspaceFiles_changes_result$schema = () => _deepseek_ai_dsh_api_workspace_files_workspaceFiles_changes_result$schema$value ??= union([object({ "kind": literal("ready").readonly() }), object({
10802
11593
  "kind": literal("change").readonly(),
@@ -10845,47 +11636,22 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10845
11636
  "version": string().readonly(),
10846
11637
  "bytes": number().readonly().optional()
10847
11638
  });
10848
- let _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readAll_parameter_0$schema$value;
10849
- const _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readAll_parameter_0$schema = () => _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readAll_parameter_0$schema$value ??= intersection(string(), unknown());
10850
- let _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readAll_parameter_1$schema$value;
10851
- const _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readAll_parameter_1$schema = () => _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readAll_parameter_1$schema$value ??= string();
10852
- let _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readAll_result$schema$value;
10853
- const _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readAll_result$schema = () => _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readAll_result$schema$value ??= object({
10854
- "offset": number().readonly(),
10855
- "data": string().readonly(),
10856
- "eof": boolean().readonly(),
10857
- "absolutePath": string().readonly(),
10858
- "version": string().readonly(),
10859
- "bytes": number().readonly().optional()
10860
- });
10861
11639
  let _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_parameter_0$schema$value;
10862
11640
  const _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_parameter_0$schema = () => _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_parameter_0$schema$value ??= intersection(string(), unknown());
10863
11641
  let _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_parameter_1$schema$value;
10864
11642
  const _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_parameter_1$schema = () => _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_parameter_1$schema$value ??= string();
10865
11643
  let _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_parameter_2$schema$value;
10866
11644
  const _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_parameter_2$schema = () => _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_parameter_2$schema$value ??= object({
10867
- "offset": number().readonly().optional(),
10868
- "length": number().readonly().optional()
11645
+ "range": object({
11646
+ "offset": number().readonly().optional(),
11647
+ "length": number().readonly().optional()
11648
+ }).readonly().optional(),
11649
+ "baseFile": string().readonly().optional()
10869
11650
  });
10870
11651
  let _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_result$schema$value;
10871
11652
  const _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_result$schema = () => _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_result$schema$value ??= object({
10872
11653
  "offset": number().readonly(),
10873
- "data": string().readonly(),
10874
- "eof": boolean().readonly(),
10875
- "absolutePath": string().readonly(),
10876
- "version": string().readonly(),
10877
- "bytes": number().readonly().optional()
10878
- });
10879
- let _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readRelated_parameter_0$schema$value;
10880
- const _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readRelated_parameter_0$schema = () => _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readRelated_parameter_0$schema$value ??= intersection(string(), unknown());
10881
- let _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readRelated_parameter_1$schema$value;
10882
- const _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readRelated_parameter_1$schema = () => _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readRelated_parameter_1$schema$value ??= string();
10883
- let _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readRelated_parameter_2$schema$value;
10884
- const _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readRelated_parameter_2$schema = () => _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readRelated_parameter_2$schema$value ??= string();
10885
- let _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readRelated_result$schema$value;
10886
- const _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readRelated_result$schema = () => _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readRelated_result$schema$value ??= object({
10887
- "offset": number().readonly(),
10888
- "data": string().readonly(),
11654
+ "data": _instanceof(Uint8Array),
10889
11655
  "eof": boolean().readonly(),
10890
11656
  "absolutePath": string().readonly(),
10891
11657
  "version": string().readonly(),
@@ -10901,6 +11667,50 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10901
11667
  "version": string().readonly(),
10902
11668
  "bytes": number().readonly().optional()
10903
11669
  });
11670
+ const $resultSnapshot = (input, path) => {
11671
+ if (input === null || typeof input !== "object" || input instanceof Uint8Array) return input;
11672
+ const toJSON = input.toJSON;
11673
+ const value = typeof toJSON === "function" ? toJSON.call(input, path.at(-1)?.toString() ?? "value") : input;
11674
+ if (value === null || typeof value !== "object" || value instanceof Uint8Array) return value;
11675
+ if (Array.isArray(value)) {
11676
+ const items = [];
11677
+ for (let index = 0, length = value.length; index < length; index++) items.push(value[index]);
11678
+ return items;
11679
+ }
11680
+ const fields = {};
11681
+ for (const key of Object.keys(value)) {
11682
+ const item = key === "toJSON" && value === input ? toJSON : value[key];
11683
+ if (key === "toJSON" && typeof item === "function") continue;
11684
+ Object.defineProperty(fields, key, {
11685
+ value: item,
11686
+ enumerable: true,
11687
+ writable: true,
11688
+ configurable: true
11689
+ });
11690
+ }
11691
+ return fields;
11692
+ };
11693
+ const $resultContainer = (input, path, ancestors, project, snapshot) => {
11694
+ if (input === null || typeof input !== "object") return project(input);
11695
+ const owner = !ancestors.has(input);
11696
+ if (!owner && ancestors.get(input) !== path.length) throw new TypeError("Remote result contains a circular object");
11697
+ if (owner) ancestors.set(input, path.length);
11698
+ try {
11699
+ return project(snapshot ? $resultSnapshot(input, path) : input);
11700
+ } finally {
11701
+ if (owner) ancestors.delete(input);
11702
+ }
11703
+ };
11704
+ const $encode1 = (value, writeBytes, path, ancestors) => {
11705
+ return value instanceof Uint8Array ? writeBytes(value, path) : value;
11706
+ };
11707
+ const $encode0 = (value, writeBytes, path, ancestors) => {
11708
+ return $resultContainer(value, path, ancestors, (value) => {
11709
+ if (value === null || typeof value !== "object" || Array.isArray(value) || value instanceof Uint8Array) return value;
11710
+ if (Object.hasOwn(value, "data")) value["data"] = $encode1(value["data"], writeBytes, [...path, "data"], ancestors);
11711
+ return value;
11712
+ }, true);
11713
+ };
10904
11714
  const TYPERT_REMOTE = {
10905
11715
  package: "@deepseek-ai/dsh-api-workspace-files",
10906
11716
  descriptors: [
@@ -10921,6 +11731,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10921
11731
  typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
10922
11732
  create: _deepseek_ai_dsh_api_workspace_files_workspaceFiles_changes_parameter_0$schema
10923
11733
  }
11734
+ }, {
11735
+ name: "path",
11736
+ wire: "path",
11737
+ source: "json",
11738
+ codec: {
11739
+ mode: "strict",
11740
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-files#workspaceFiles/changes:path",
11741
+ create: _deepseek_ai_dsh_api_workspace_files_workspaceFiles_changes_parameter_1$schema
11742
+ }
10924
11743
  }],
10925
11744
  cancellation: { parameter: "signal" },
10926
11745
  result: {
@@ -10930,7 +11749,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10930
11749
  },
10931
11750
  sourceLocation: {
10932
11751
  "file": "packages/api/workspace-files/src/index.ts",
10933
- "line": 364,
11752
+ "line": 331,
10934
11753
  "column": 3
10935
11754
  }
10936
11755
  },
@@ -10968,7 +11787,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10968
11787
  },
10969
11788
  sourceLocation: {
10970
11789
  "file": "packages/api/workspace-files/src/index.ts",
10971
- "line": 336,
11790
+ "line": 303,
10972
11791
  "column": 9
10973
11792
  }
10974
11793
  },
@@ -11019,45 +11838,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11019
11838
  },
11020
11839
  sourceLocation: {
11021
11840
  "file": "packages/api/workspace-files/src/index.ts",
11022
- "line": 232,
11023
- "column": 9
11024
- }
11025
- },
11026
- {
11027
- id: "@deepseek-ai/dsh-api-workspace-files#workspaceFiles/readAll",
11028
- service: "workspaceFiles",
11029
- namespace: "workspaceFiles",
11030
- method: "readAll",
11031
- invocation: { kind: "direct" },
11032
- parameters: [{
11033
- name: "workspaceFileScope",
11034
- wire: "workspaceFileScopeId",
11035
- source: "lookup",
11036
- lookup: "workspaceFileScope",
11037
- codec: {
11038
- mode: "strict",
11039
- typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
11040
- create: _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readAll_parameter_0$schema
11041
- }
11042
- }, {
11043
- name: "path",
11044
- wire: "path",
11045
- source: "json",
11046
- codec: {
11047
- mode: "strict",
11048
- typeSymbol: "@deepseek-ai/dsh-api-workspace-files#workspaceFiles/readAll:path",
11049
- create: _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readAll_parameter_1$schema
11050
- }
11051
- }],
11052
- cancellation: { parameter: "signal" },
11053
- result: {
11054
- mode: "strict",
11055
- typeSymbol: "@deepseek-ai/dsh-api-workspace-files/types#WorkspaceFileBytes",
11056
- create: _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readAll_result$schema
11057
- },
11058
- sourceLocation: {
11059
- "file": "packages/api/workspace-files/src/index.ts",
11060
- "line": 278,
11841
+ "line": 233,
11061
11842
  "column": 9
11062
11843
  }
11063
11844
  },
@@ -11090,12 +11871,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11090
11871
  }
11091
11872
  },
11092
11873
  {
11093
- name: "range",
11094
- wire: "range",
11874
+ name: "options",
11875
+ wire: "options",
11095
11876
  source: "json",
11096
11877
  codec: {
11097
11878
  mode: "strict",
11098
- typeSymbol: "@deepseek-ai/dsh-api-workspace-files/types#WorkspaceByteRange",
11879
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-files/types#WorkspaceByteReadOptions",
11099
11880
  create: _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_parameter_2$schema
11100
11881
  }
11101
11882
  }
@@ -11104,7 +11885,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11104
11885
  result: {
11105
11886
  mode: "strict",
11106
11887
  typeSymbol: "@deepseek-ai/dsh-api-workspace-files/types#WorkspaceFileBytes",
11107
- create: _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_result$schema
11888
+ create: _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_result$schema,
11889
+ decode: (value) => _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_result$schema().parse(value),
11890
+ encode: (value, writeBytes) => $encode0(value, writeBytes, [], /* @__PURE__ */ new Map())
11108
11891
  },
11109
11892
  sourceLocation: {
11110
11893
  "file": "packages/api/workspace-files/src/index.ts",
@@ -11112,57 +11895,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11112
11895
  "column": 9
11113
11896
  }
11114
11897
  },
11115
- {
11116
- id: "@deepseek-ai/dsh-api-workspace-files#workspaceFiles/readRelated",
11117
- service: "workspaceFiles",
11118
- namespace: "workspaceFiles",
11119
- method: "readRelated",
11120
- invocation: { kind: "direct" },
11121
- parameters: [
11122
- {
11123
- name: "workspaceFileScope",
11124
- wire: "workspaceFileScopeId",
11125
- source: "lookup",
11126
- lookup: "workspaceFileScope",
11127
- codec: {
11128
- mode: "strict",
11129
- typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
11130
- create: _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readRelated_parameter_0$schema
11131
- }
11132
- },
11133
- {
11134
- name: "path",
11135
- wire: "path",
11136
- source: "json",
11137
- codec: {
11138
- mode: "strict",
11139
- typeSymbol: "@deepseek-ai/dsh-api-workspace-files#workspaceFiles/readRelated:path",
11140
- create: _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readRelated_parameter_1$schema
11141
- }
11142
- },
11143
- {
11144
- name: "relativePath",
11145
- wire: "relativePath",
11146
- source: "json",
11147
- codec: {
11148
- mode: "strict",
11149
- typeSymbol: "@deepseek-ai/dsh-api-workspace-files#workspaceFiles/readRelated:relativePath",
11150
- create: _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readRelated_parameter_2$schema
11151
- }
11152
- }
11153
- ],
11154
- cancellation: { parameter: "signal" },
11155
- result: {
11156
- mode: "strict",
11157
- typeSymbol: "@deepseek-ai/dsh-api-workspace-files/types#WorkspaceFileBytes",
11158
- create: _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readRelated_result$schema
11159
- },
11160
- sourceLocation: {
11161
- "file": "packages/api/workspace-files/src/index.ts",
11162
- "line": 299,
11163
- "column": 9
11164
- }
11165
- },
11166
11898
  {
11167
11899
  id: "@deepseek-ai/dsh-api-workspace-files#workspaceFiles/stat",
11168
11900
  service: "workspaceFiles",
@@ -11197,7 +11929,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11197
11929
  },
11198
11930
  sourceLocation: {
11199
11931
  "file": "packages/api/workspace-files/src/index.ts",
11200
- "line": 323,
11932
+ "line": 290,
11201
11933
  "column": 9
11202
11934
  }
11203
11935
  }
@@ -11217,25 +11949,27 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11217
11949
  const disposers = [];
11218
11950
  try {
11219
11951
  for (const contribution of [
11220
- TYPERT_REMOTE$18,
11952
+ TYPERT_REMOTE$20,
11953
+ TYPERT_REMOTE$19,
11221
11954
  TYPERT_REMOTE$17,
11222
- TYPERT_REMOTE$16,
11955
+ TYPERT_REMOTE$18,
11956
+ TYPERT_REMOTE$15,
11223
11957
  TYPERT_REMOTE$14,
11224
11958
  TYPERT_REMOTE$13,
11959
+ TYPERT_REMOTE$11,
11225
11960
  TYPERT_REMOTE$12,
11226
11961
  TYPERT_REMOTE$10,
11227
- TYPERT_REMOTE$11,
11228
- TYPERT_REMOTE$9,
11962
+ TYPERT_REMOTE$8,
11229
11963
  TYPERT_REMOTE$7,
11230
11964
  TYPERT_REMOTE$6,
11965
+ TYPERT_REMOTE$9,
11231
11966
  TYPERT_REMOTE$5,
11232
- TYPERT_REMOTE$8,
11233
11967
  TYPERT_REMOTE$4,
11234
11968
  TYPERT_REMOTE$3,
11235
11969
  TYPERT_REMOTE$2,
11236
11970
  TYPERT_REMOTE,
11237
11971
  TYPERT_REMOTE$1,
11238
- TYPERT_REMOTE$15
11972
+ TYPERT_REMOTE$16
11239
11973
  ]) disposers.push(await ctx.remote.$mount(contribution));
11240
11974
  } catch (error) {
11241
11975
  for (const dispose of disposers.reverse()) await dispose();