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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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$21 = {
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$20 = {
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$19 = {
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$18 = {
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$17 = {
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$16 = {
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$15 = {
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"),
@@ -6078,10 +6317,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
6078
6317
  "approvalRequestId": intersection(string(), unknown()).optional(),
6079
6318
  "requiresApproval": boolean().optional(),
6080
6319
  "host": object({
6081
- "status": union([
6082
- literal("pending"),
6083
- literal("running"),
6320
+ "status": union([
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$14 = {
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$13 = {
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,13 +7912,65 @@ 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
  };
7550
7948
  //#endregion
7949
+ //#region ../../client/ui-plugin-manager/lib/typert.remote-client.js
7950
+ let _deepseek_ai_dsh_client_ui_plugin_manager_pluginRegistryProbe_fastest_result$schema$value;
7951
+ const _deepseek_ai_dsh_client_ui_plugin_manager_pluginRegistryProbe_fastest_result$schema = () => _deepseek_ai_dsh_client_ui_plugin_manager_pluginRegistryProbe_fastest_result$schema$value ??= union([literal(null), string()]);
7952
+ const TYPERT_REMOTE$12 = {
7953
+ package: "@deepseek-ai/dsh-client-ui-plugin-manager",
7954
+ descriptors: [{
7955
+ id: "@deepseek-ai/dsh-client-ui-plugin-manager#pluginRegistryProbe/fastest",
7956
+ service: "pluginRegistryProbe",
7957
+ namespace: "pluginRegistryProbe",
7958
+ method: "fastest",
7959
+ invocation: { kind: "direct" },
7960
+ parameters: [],
7961
+ result: {
7962
+ mode: "strict",
7963
+ typeSymbol: "@deepseek-ai/dsh-client-ui-plugin-manager#pluginRegistryProbe/fastest:result",
7964
+ create: _deepseek_ai_dsh_client_ui_plugin_manager_pluginRegistryProbe_fastest_result$schema
7965
+ },
7966
+ sourceLocation: {
7967
+ "file": "packages/client/ui-plugin-manager/src/index.ts",
7968
+ "line": 51,
7969
+ "column": 9
7970
+ }
7971
+ }]
7972
+ };
7973
+ //#endregion
7551
7974
  //#region ../../host/plugin-inventory/lib/typert.remote-client.js
7552
7975
  let _deepseek_ai_dsh_host_plugin_inventory_pluginInventory_list_result$schema$value;
7553
7976
  const _deepseek_ai_dsh_host_plugin_inventory_pluginInventory_list_result$schema = () => _deepseek_ai_dsh_host_plugin_inventory_pluginInventory_list_result$schema$value ??= object({
@@ -7555,25 +7978,36 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7555
7978
  "entries": array(object({
7556
7979
  "entryId": intersection(string(), unknown()).readonly(),
7557
7980
  "moduleName": string().readonly(),
7981
+ "meta": object({
7982
+ "title": union([string(), intersection(object({ "en": string().readonly() }), record(string(), string()).readonly())]).readonly().optional(),
7983
+ "description": union([string(), intersection(object({ "en": string().readonly() }), record(string(), string()).readonly())]).readonly().optional(),
7984
+ "icon": string().readonly().optional(),
7985
+ "error": string().readonly().optional()
7986
+ }).readonly().optional(),
7558
7987
  "enabled": boolean().readonly(),
7559
7988
  "fiberPhase": union([
7560
7989
  literal(null),
7990
+ literal("failed"),
7561
7991
  literal("pending"),
7562
7992
  literal("active"),
7563
- literal("failed"),
7564
7993
  literal("loading"),
7565
7994
  literal("unloading")
7566
7995
  ]).readonly()
7567
7996
  })).readonly(),
7568
7997
  "agentPresets": array(object({
7569
7998
  "id": string().readonly(),
7570
- "trust": union([literal("system"), literal("user")]).readonly(),
7571
7999
  "name": string().readonly().optional(),
7572
8000
  "isDefault": boolean().readonly(),
7573
8001
  "broken": string().readonly().optional(),
7574
8002
  "rows": array(object({
7575
8003
  "entryId": union([literal(null), string()]).readonly(),
7576
8004
  "moduleName": string().readonly(),
8005
+ "meta": object({
8006
+ "title": union([string(), intersection(object({ "en": string().readonly() }), record(string(), string()).readonly())]).readonly().optional(),
8007
+ "description": union([string(), intersection(object({ "en": string().readonly() }), record(string(), string()).readonly())]).readonly().optional(),
8008
+ "icon": string().readonly().optional(),
8009
+ "error": string().readonly().optional()
8010
+ }).readonly().optional(),
7577
8011
  "enabled": union([
7578
8012
  literal(false),
7579
8013
  literal(true),
@@ -7582,16 +8016,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7582
8016
  "condition": string().readonly().optional(),
7583
8017
  "fiberPhase": union([
7584
8018
  literal(null),
8019
+ literal("failed"),
7585
8020
  literal("pending"),
7586
8021
  literal("active"),
7587
- literal("failed"),
7588
8022
  literal("loading"),
7589
8023
  literal("unloading")
7590
8024
  ]).readonly()
7591
8025
  })).readonly()
7592
8026
  })).readonly().optional()
7593
8027
  });
7594
- const TYPERT_REMOTE$10 = {
8028
+ const TYPERT_REMOTE$11 = {
7595
8029
  package: "@deepseek-ai/dsh-host-plugin-inventory",
7596
8030
  descriptors: [{
7597
8031
  id: "@deepseek-ai/dsh-host-plugin-inventory#pluginInventory/list",
@@ -7607,7 +8041,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7607
8041
  },
7608
8042
  sourceLocation: {
7609
8043
  "file": "packages/host/plugin-inventory/src/index.ts",
7610
- "line": 70,
8044
+ "line": 71,
7611
8045
  "column": 9
7612
8046
  }
7613
8047
  }]
@@ -7756,7 +8190,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7756
8190
  })
7757
8191
  ]).readonly()
7758
8192
  })]);
7759
- const TYPERT_REMOTE$9 = {
8193
+ const TYPERT_REMOTE$10 = {
7760
8194
  package: "@deepseek-ai/dsh-message-feedback",
7761
8195
  descriptors: [
7762
8196
  {
@@ -7845,12 +8279,20 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7845
8279
  //#endregion
7846
8280
  //#region ../../interaction/permission-presets/lib/typert.remote-client.js
7847
8281
  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 = {
8282
+ const _deepseek_ai_dsh_permission_presets_permissionPresets_catalog_result$schema = () => _deepseek_ai_dsh_permission_presets_permissionPresets_catalog_result$schema$value ??= object({
8283
+ "options": array(object({
8284
+ "value": string(),
8285
+ "name": string(),
8286
+ "description": string().optional()
8287
+ })),
8288
+ "defaultOptions": array(object({
8289
+ "value": string(),
8290
+ "name": string(),
8291
+ "description": string().optional()
8292
+ })),
8293
+ "defaultPreset": string()
8294
+ });
8295
+ const TYPERT_REMOTE$9 = {
7854
8296
  package: "@deepseek-ai/dsh-permission-presets",
7855
8297
  descriptors: [{
7856
8298
  id: "@deepseek-ai/dsh-permission-presets#permissionPresets/catalog",
@@ -7866,7 +8308,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7866
8308
  },
7867
8309
  sourceLocation: {
7868
8310
  "file": "packages/interaction/permission-presets/src/index.ts",
7869
- "line": 303,
8311
+ "line": 289,
7870
8312
  "column": 3
7871
8313
  }
7872
8314
  }]
@@ -7898,7 +8340,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7898
8340
  "sessionId": intersection(string(), unknown()).readonly()
7899
8341
  }).readonly()
7900
8342
  })]);
7901
- const TYPERT_REMOTE$7 = {
8343
+ const TYPERT_REMOTE$8 = {
7902
8344
  package: "@deepseek-ai/dsh-command-feedback",
7903
8345
  descriptors: [{
7904
8346
  id: "@deepseek-ai/dsh-command-feedback#sessionFeedback/record",
@@ -7946,7 +8388,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
7946
8388
  "bytes": number()
7947
8389
  }).readonly()
7948
8390
  });
7949
- const TYPERT_REMOTE$6 = {
8391
+ const TYPERT_REMOTE$7 = {
7950
8392
  package: "@deepseek-ai/dsh-client-file-upload",
7951
8393
  descriptors: [{
7952
8394
  id: "@deepseek-ai/dsh-client-file-upload#fileUploads/upload",
@@ -8007,7 +8449,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8007
8449
  "sameWorkspace": boolean(),
8008
8450
  "createdAt": number()
8009
8451
  }));
8010
- const TYPERT_REMOTE$5 = {
8452
+ const TYPERT_REMOTE$6 = {
8011
8453
  package: "@deepseek-ai/dsh-session-reference",
8012
8454
  descriptors: [{
8013
8455
  id: "@deepseek-ai/dsh-session-reference#sessionReferenceResolver/candidates",
@@ -8048,7 +8490,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8048
8490
  },
8049
8491
  sourceLocation: {
8050
8492
  "file": "packages/context/session-reference/src/index.ts",
8051
- "line": 280,
8493
+ "line": 272,
8052
8494
  "column": 9
8053
8495
  }
8054
8496
  }]
@@ -8063,41 +8505,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8063
8505
  const _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_2$schema = () => _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_2$schema$value ??= literal("continuable");
8064
8506
  let _deepseek_ai_dsh_subagent_subagents_interruptByParent_result$schema$value;
8065
8507
  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
8508
  let _deepseek_ai_dsh_subagent_subagents_prompt_parameter_0$schema$value;
8102
8509
  const _deepseek_ai_dsh_subagent_subagents_prompt_parameter_0$schema = () => _deepseek_ai_dsh_subagent_subagents_prompt_parameter_0$schema$value ??= object({
8103
8510
  "requestId": intersection(string(), unknown()).readonly(),
@@ -8123,171 +8530,87 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8123
8530
  });
8124
8531
  let _deepseek_ai_dsh_subagent_subagents_prompt_result$schema$value;
8125
8532
  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 = {
8533
+ const TYPERT_REMOTE$5 = {
8127
8534
  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
- }
8535
+ descriptors: [{
8536
+ id: "@deepseek-ai/dsh-subagent#subagents/interruptByParent",
8537
+ service: "subagents",
8538
+ namespace: "subagents",
8539
+ method: "interruptByParent",
8540
+ invocation: { kind: "direct" },
8541
+ parameters: [
8542
+ {
8543
+ name: "childSessionId",
8544
+ wire: "childSessionId",
8545
+ source: "json",
8546
+ codec: {
8547
+ mode: "strict",
8548
+ typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
8549
+ create: _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_0$schema
8165
8550
  }
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
8551
  },
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: [{
8552
+ {
8186
8553
  name: "parentSessionId",
8187
8554
  wire: "parentSessionId",
8188
8555
  source: "json",
8189
8556
  codec: {
8190
8557
  mode: "strict",
8191
8558
  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",
8559
+ create: _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_1$schema
8560
+ }
8561
+ },
8562
+ {
8563
+ name: "mode",
8564
+ wire: "mode",
8216
8565
  source: "json",
8217
8566
  codec: {
8218
8567
  mode: "strict",
8219
- typeSymbol: "@deepseek-ai/dsh-subagent/client#SubagentPromptRequest",
8220
- create: _deepseek_ai_dsh_subagent_subagents_prompt_parameter_0$schema
8568
+ typeSymbol: "@deepseek-ai/dsh-subagent#subagents/interruptByParent:mode",
8569
+ create: _deepseek_ai_dsh_subagent_subagents_interruptByParent_parameter_2$schema
8221
8570
  }
8222
- }],
8223
- cancellation: { parameter: "signal" },
8224
- result: {
8571
+ }
8572
+ ],
8573
+ result: {
8574
+ mode: "strict",
8575
+ typeSymbol: "@deepseek-ai/dsh-subagent/client#SubagentInterruptReceipt",
8576
+ create: _deepseek_ai_dsh_subagent_subagents_interruptByParent_result$schema
8577
+ },
8578
+ sourceLocation: {
8579
+ "file": "packages/subagent/subagent/src/index.ts",
8580
+ "line": 483,
8581
+ "column": 3
8582
+ }
8583
+ }, {
8584
+ id: "@deepseek-ai/dsh-subagent#subagents/prompt",
8585
+ service: "subagents",
8586
+ namespace: "subagents",
8587
+ method: "prompt",
8588
+ invocation: { kind: "direct" },
8589
+ parameters: [{
8590
+ name: "request",
8591
+ wire: "request",
8592
+ source: "json",
8593
+ codec: {
8225
8594
  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
8595
+ typeSymbol: "@deepseek-ai/dsh-subagent/client#SubagentPromptRequest",
8596
+ create: _deepseek_ai_dsh_subagent_subagents_prompt_parameter_0$schema
8233
8597
  }
8598
+ }],
8599
+ cancellation: { parameter: "signal" },
8600
+ result: {
8601
+ mode: "strict",
8602
+ typeSymbol: "@deepseek-ai/dsh-subagent/client#SubagentPromptReceipt",
8603
+ create: _deepseek_ai_dsh_subagent_subagents_prompt_result$schema
8604
+ },
8605
+ sourceLocation: {
8606
+ "file": "packages/subagent/subagent/src/index.ts",
8607
+ "line": 416,
8608
+ "column": 9
8234
8609
  }
8235
- ]
8610
+ }]
8236
8611
  };
8237
8612
  //#endregion
8238
8613
  //#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
8614
  let JsonValueRemoteCodec$schema$value;
8292
8615
  const JsonValueRemoteCodec$schema = () => JsonValueRemoteCodec$schema$value ??= union([
8293
8616
  literal(null),
@@ -8328,6 +8651,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8328
8651
  array(lazy(() => JsonValueRemoteCodec$schema4())),
8329
8652
  record(string(), lazy(() => JsonValueRemoteCodec$schema4()))
8330
8653
  ]);
8654
+ let JsonValueRemoteCodec$schema5$value;
8655
+ const JsonValueRemoteCodec$schema5 = () => JsonValueRemoteCodec$schema5$value ??= union([
8656
+ literal(null),
8657
+ string(),
8658
+ number(),
8659
+ literal(false),
8660
+ literal(true),
8661
+ array(lazy(() => JsonValueRemoteCodec$schema5())),
8662
+ record(string(), lazy(() => JsonValueRemoteCodec$schema5()))
8663
+ ]);
8331
8664
  let _deepseek_ai_dsh_api_session_controller_fileReferences_list_parameter_0$schema$value;
8332
8665
  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
8666
  let _deepseek_ai_dsh_api_session_controller_fileReferences_list_parameter_1$schema$value;
@@ -8370,188 +8703,160 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8370
8703
  let _deepseek_ai_dsh_api_session_controller_session_canOpenWorkspacePath_result$schema$value;
8371
8704
  const _deepseek_ai_dsh_api_session_controller_session_canOpenWorkspacePath_result$schema = () => _deepseek_ai_dsh_api_session_controller_session_canOpenWorkspacePath_result$schema$value ??= boolean();
8372
8705
  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([
8706
+ const _deepseek_ai_dsh_api_session_controller_session_control_result$schema = () => _deepseek_ai_dsh_api_session_controller_session_control_result$schema$value ??= union([object({
8707
+ "type": literal("baseline").readonly(),
8708
+ "value": object({ "projections": record(intersection(string(), unknown()), object({
8709
+ "asOfSeq": number().readonly(),
8710
+ "values": intersection(object({
8711
+ "inbox": object({
8712
+ "next-turn": array(union([
8510
8713
  literal(null),
8511
8714
  string(),
8512
8715
  number(),
8513
8716
  literal(false),
8514
8717
  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([
8718
+ array(lazy(() => JsonValueRemoteCodec$schema5())),
8719
+ record(string(), lazy(() => JsonValueRemoteCodec$schema5()))
8720
+ ])).readonly(),
8721
+ "next-step": array(union([
8722
+ literal(null),
8723
+ string(),
8724
+ number(),
8725
+ literal(false),
8726
+ literal(true),
8727
+ array(lazy(() => JsonValueRemoteCodec$schema5())),
8728
+ record(string(), lazy(() => JsonValueRemoteCodec$schema5()))
8729
+ ])).readonly()
8730
+ }).optional(),
8731
+ "agentPreset": union([literal(null), string()]).optional(),
8732
+ "title": union([literal(null), string()]).optional(),
8733
+ "todos": union([literal(null), array(object({
8734
+ "content": string(),
8735
+ "status": union([
8736
+ literal("completed"),
8737
+ literal("pending"),
8738
+ literal("in_progress")
8739
+ ])
8740
+ }))]).optional(),
8741
+ "sessionListMetadata": object({
8742
+ "blank": boolean().readonly(),
8743
+ "lastPromptAt": union([literal(null), number()]).readonly()
8744
+ }).optional(),
8745
+ "imageLimits": object({
8746
+ "maxImageBytes": number(),
8747
+ "maxImagesPerMessage": number(),
8748
+ "maxMessageImageBytes": number(),
8749
+ "maxImagePixels": number(),
8750
+ "maxImageDimension": number(),
8751
+ "mediaTypes": array(union([
8752
+ literal("image/png"),
8753
+ literal("image/jpeg"),
8754
+ literal("image/webp"),
8755
+ literal("image/gif")
8756
+ ]))
8757
+ }).optional(),
8758
+ "modelSelection": object({
8759
+ "lastUsed": union([literal(null), object({
8760
+ "provider": string().readonly(),
8761
+ "model": string().readonly(),
8762
+ "reasoningEffort": string().readonly().optional()
8763
+ })]).readonly(),
8764
+ "next": union([literal(null), object({
8765
+ "provider": string().readonly(),
8766
+ "model": string().readonly(),
8767
+ "reasoningEffort": string().readonly().optional()
8768
+ })]).readonly()
8769
+ }).optional(),
8770
+ "permissions": object({ "currentValue": string() }).optional(),
8771
+ "subagentCatalog": array(union([
8772
+ intersection(object({
8773
+ "id": intersection(string(), unknown()).readonly(),
8774
+ "createdAt": number().readonly()
8775
+ }), object({
8776
+ "mode": literal("one-shot").readonly(),
8777
+ "label": string().readonly().optional()
8778
+ })),
8779
+ intersection(object({
8780
+ "id": intersection(string(), unknown()).readonly(),
8781
+ "createdAt": number().readonly()
8782
+ }), object({
8783
+ "mode": literal("continuable").readonly(),
8784
+ "label": string().readonly()
8785
+ })),
8786
+ intersection(object({
8787
+ "id": intersection(string(), unknown()).readonly(),
8788
+ "createdAt": number().readonly()
8789
+ }), object({
8790
+ "mode": literal("unknown").readonly(),
8791
+ "label": string().readonly().optional()
8792
+ }))
8793
+ ])).optional(),
8794
+ "subagentTiming": object({
8795
+ "settledMs": number(),
8796
+ "active": object({
8797
+ "since": number(),
8798
+ "through": number()
8799
+ }).optional(),
8800
+ "lastTurnCompleted": boolean().optional()
8801
+ }).optional(),
8802
+ "subagent": union([
8803
+ literal(null),
8804
+ object({
8805
+ "mode": literal("one-shot"),
8806
+ "label": string().optional(),
8807
+ "seq": intersection(number(), unknown())
8808
+ }),
8809
+ object({
8810
+ "mode": literal("continuable"),
8811
+ "label": string(),
8812
+ "seq": intersection(number(), unknown())
8813
+ })
8814
+ ]).optional(),
8815
+ "goal": union([literal(null), object({
8816
+ "goal": object({
8817
+ "objective": string().readonly(),
8818
+ "phase": union([
8819
+ literal("active"),
8820
+ literal("paused"),
8821
+ literal("blocked"),
8822
+ literal("complete")
8823
+ ]).readonly(),
8824
+ "blockedReason": object({
8825
+ "code": string().readonly(),
8826
+ "message": string().readonly()
8827
+ }).readonly().optional(),
8828
+ "maxGoalRounds": number().readonly(),
8829
+ "id": intersection(string(), unknown()).readonly(),
8830
+ "revision": number().readonly()
8831
+ }).readonly(),
8832
+ "roundsStarted": number().readonly(),
8833
+ "createdAt": number().readonly(),
8834
+ "updatedAt": number().readonly()
8835
+ })]).optional()
8836
+ }), record(string(), union([
8544
8837
  literal(null),
8545
8838
  string(),
8546
8839
  number(),
8547
8840
  literal(false),
8548
8841
  literal(true),
8549
- array(lazy(() => JsonValueRemoteCodec$schema4())),
8550
- record(string(), lazy(() => JsonValueRemoteCodec$schema4()))
8551
- ]).readonly(),
8552
- "seq": number().readonly()
8553
- }))
8554
- ]);
8842
+ array(lazy(() => JsonValueRemoteCodec$schema5())),
8843
+ record(string(), lazy(() => JsonValueRemoteCodec$schema5()))
8844
+ ])).readonly()).readonly()
8845
+ })).readonly().readonly() }).readonly()
8846
+ }), intersection(object({ "type": literal("projection").readonly() }), object({
8847
+ "sessionId": intersection(string(), unknown()).readonly(),
8848
+ "key": string().readonly(),
8849
+ "value": union([
8850
+ literal(null),
8851
+ string(),
8852
+ number(),
8853
+ literal(false),
8854
+ literal(true),
8855
+ array(lazy(() => JsonValueRemoteCodec$schema5())),
8856
+ record(string(), lazy(() => JsonValueRemoteCodec$schema5()))
8857
+ ]).readonly(),
8858
+ "seq": number().readonly()
8859
+ }))]);
8555
8860
  let _deepseek_ai_dsh_api_session_controller_session_create_parameter_0$schema$value;
8556
8861
  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
8862
  "workspaceId": intersection(string(), unknown()).readonly().optional(),
@@ -8573,10 +8878,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8573
8878
  "kind": literal("subagent").readonly(),
8574
8879
  "parentSessionId": intersection(string(), unknown()).readonly(),
8575
8880
  "childSessionId": intersection(string(), unknown()).readonly(),
8576
- "mode": union([literal("one-shot"), literal("continuable")]).readonly()
8881
+ "mode": union([
8882
+ literal("one-shot"),
8883
+ literal("continuable"),
8884
+ literal("unknown")
8885
+ ]).readonly()
8577
8886
  })]).readonly(),
8887
+ "assistantStream": literal(true).readonly().optional(),
8578
8888
  "maxMessages": number().readonly().optional(),
8579
- "assistantStream": literal(true).readonly().optional()
8889
+ "turnWindow": object({
8890
+ "minMessages": number().readonly(),
8891
+ "minTurns": number().readonly()
8892
+ }).readonly().optional()
8580
8893
  });
8581
8894
  let _deepseek_ai_dsh_api_session_controller_session_follow_result$schema$value;
8582
8895
  const _deepseek_ai_dsh_api_session_controller_session_follow_result$schema = () => _deepseek_ai_dsh_api_session_controller_session_follow_result$schema$value ??= union([
@@ -8695,9 +9008,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8695
9008
  "todos": union([literal(null), array(object({
8696
9009
  "content": string(),
8697
9010
  "status": union([
9011
+ literal("completed"),
8698
9012
  literal("pending"),
8699
- literal("in_progress"),
8700
- literal("completed")
9013
+ literal("in_progress")
8701
9014
  ])
8702
9015
  }))]).optional(),
8703
9016
  "sessionListMetadata": object({
@@ -8730,25 +9043,36 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8730
9043
  })]).readonly()
8731
9044
  }).optional(),
8732
9045
  "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(),
9046
+ "subagentCatalog": array(union([
9047
+ intersection(object({
9048
+ "id": intersection(string(), unknown()).readonly(),
9049
+ "createdAt": number().readonly()
9050
+ }), object({
9051
+ "mode": literal("one-shot").readonly(),
9052
+ "label": string().readonly().optional()
9053
+ })),
9054
+ intersection(object({
9055
+ "id": intersection(string(), unknown()).readonly(),
9056
+ "createdAt": number().readonly()
9057
+ }), object({
9058
+ "mode": literal("continuable").readonly(),
9059
+ "label": string().readonly()
9060
+ })),
9061
+ intersection(object({
9062
+ "id": intersection(string(), unknown()).readonly(),
9063
+ "createdAt": number().readonly()
9064
+ }), object({
9065
+ "mode": literal("unknown").readonly(),
9066
+ "label": string().readonly().optional()
9067
+ }))
9068
+ ])).optional(),
8746
9069
  "subagentTiming": object({
8747
9070
  "settledMs": number(),
8748
9071
  "active": object({
8749
9072
  "since": number(),
8750
9073
  "through": number()
8751
- }).optional()
9074
+ }).optional(),
9075
+ "lastTurnCompleted": boolean().optional()
8752
9076
  }).optional(),
8753
9077
  "subagent": union([
8754
9078
  literal(null),
@@ -8866,6 +9190,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8866
9190
  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
9191
  let _deepseek_ai_dsh_api_session_controller_session_list_result$schema$value;
8868
9192
  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({
9193
+ "agentAvailable": boolean().readonly(),
8869
9194
  "sessionId": intersection(string(), unknown()).readonly(),
8870
9195
  "updatedAt": number().readonly(),
8871
9196
  "running": boolean().readonly(),
@@ -8874,6 +9199,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8874
9199
  "origin": literal("subagent").readonly().optional(),
8875
9200
  "cwd": string().readonly().optional(),
8876
9201
  "projections": object({
9202
+ "kind": union([literal("cached"), literal("sequenced")]).readonly(),
8877
9203
  "asOfSeq": number().readonly(),
8878
9204
  "values": intersection(object({
8879
9205
  "inbox": object({
@@ -8901,9 +9227,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8901
9227
  "todos": union([literal(null), array(object({
8902
9228
  "content": string(),
8903
9229
  "status": union([
9230
+ literal("completed"),
8904
9231
  literal("pending"),
8905
- literal("in_progress"),
8906
- literal("completed")
9232
+ literal("in_progress")
8907
9233
  ])
8908
9234
  }))]).optional(),
8909
9235
  "sessionListMetadata": object({
@@ -8936,25 +9262,36 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
8936
9262
  })]).readonly()
8937
9263
  }).optional(),
8938
9264
  "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(),
9265
+ "subagentCatalog": array(union([
9266
+ intersection(object({
9267
+ "id": intersection(string(), unknown()).readonly(),
9268
+ "createdAt": number().readonly()
9269
+ }), object({
9270
+ "mode": literal("one-shot").readonly(),
9271
+ "label": string().readonly().optional()
9272
+ })),
9273
+ intersection(object({
9274
+ "id": intersection(string(), unknown()).readonly(),
9275
+ "createdAt": number().readonly()
9276
+ }), object({
9277
+ "mode": literal("continuable").readonly(),
9278
+ "label": string().readonly()
9279
+ })),
9280
+ intersection(object({
9281
+ "id": intersection(string(), unknown()).readonly(),
9282
+ "createdAt": number().readonly()
9283
+ }), object({
9284
+ "mode": literal("unknown").readonly(),
9285
+ "label": string().readonly().optional()
9286
+ }))
9287
+ ])).optional(),
8952
9288
  "subagentTiming": object({
8953
9289
  "settledMs": number(),
8954
9290
  "active": object({
8955
9291
  "since": number(),
8956
9292
  "through": number()
8957
- }).optional()
9293
+ }).optional(),
9294
+ "lastTurnCompleted": boolean().optional()
8958
9295
  }).optional(),
8959
9296
  "subagent": union([
8960
9297
  literal(null),
@@ -9035,6 +9372,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9035
9372
  let _deepseek_ai_dsh_api_session_controller_session_openWorkspacePath_parameter_0$schema$value;
9036
9373
  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
9374
  "action": literal("reveal").readonly().optional(),
9375
+ "application": string().readonly().optional(),
9038
9376
  "path": string().readonly()
9039
9377
  });
9040
9378
  let _deepseek_ai_dsh_api_session_controller_session_openWorkspacePath_result$schema$value;
@@ -9048,11 +9386,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9048
9386
  "kind": literal("subagent").readonly(),
9049
9387
  "parentSessionId": intersection(string(), unknown()).readonly(),
9050
9388
  "childSessionId": intersection(string(), unknown()).readonly(),
9051
- "mode": union([literal("one-shot"), literal("continuable")]).readonly()
9389
+ "mode": union([
9390
+ literal("one-shot"),
9391
+ literal("continuable"),
9392
+ literal("unknown")
9393
+ ]).readonly()
9052
9394
  })]).readonly(),
9053
9395
  "throughSeq": number().readonly(),
9054
9396
  "beforeSeq": number().readonly().optional(),
9055
- "maxMessages": number().readonly().optional()
9397
+ "maxMessages": number().readonly().optional(),
9398
+ "turnWindow": object({
9399
+ "minMessages": number().readonly(),
9400
+ "minTurns": number().readonly()
9401
+ }).readonly().optional()
9056
9402
  });
9057
9403
  let _deepseek_ai_dsh_api_session_controller_session_page_result$schema$value;
9058
9404
  const _deepseek_ai_dsh_api_session_controller_session_page_result$schema = () => _deepseek_ai_dsh_api_session_controller_session_page_result$schema$value ??= object({
@@ -9094,6 +9440,147 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9094
9440
  })).readonly(),
9095
9441
  "hasMore": boolean().readonly()
9096
9442
  });
9443
+ let _deepseek_ai_dsh_api_session_controller_session_projections_parameter_0$schema$value;
9444
+ 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() });
9445
+ let _deepseek_ai_dsh_api_session_controller_session_projections_result$schema$value;
9446
+ 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({
9447
+ "asOfSeq": number().readonly(),
9448
+ "values": intersection(object({
9449
+ "inbox": object({
9450
+ "next-turn": array(union([
9451
+ literal(null),
9452
+ string(),
9453
+ number(),
9454
+ literal(false),
9455
+ literal(true),
9456
+ array(lazy(() => JsonValueRemoteCodec$schema4())),
9457
+ record(string(), lazy(() => JsonValueRemoteCodec$schema4()))
9458
+ ])).readonly(),
9459
+ "next-step": array(union([
9460
+ literal(null),
9461
+ string(),
9462
+ number(),
9463
+ literal(false),
9464
+ literal(true),
9465
+ array(lazy(() => JsonValueRemoteCodec$schema4())),
9466
+ record(string(), lazy(() => JsonValueRemoteCodec$schema4()))
9467
+ ])).readonly()
9468
+ }).optional(),
9469
+ "agentPreset": union([literal(null), string()]).optional(),
9470
+ "title": union([literal(null), string()]).optional(),
9471
+ "todos": union([literal(null), array(object({
9472
+ "content": string(),
9473
+ "status": union([
9474
+ literal("completed"),
9475
+ literal("pending"),
9476
+ literal("in_progress")
9477
+ ])
9478
+ }))]).optional(),
9479
+ "sessionListMetadata": object({
9480
+ "blank": boolean().readonly(),
9481
+ "lastPromptAt": union([literal(null), number()]).readonly()
9482
+ }).optional(),
9483
+ "imageLimits": object({
9484
+ "maxImageBytes": number(),
9485
+ "maxImagesPerMessage": number(),
9486
+ "maxMessageImageBytes": number(),
9487
+ "maxImagePixels": number(),
9488
+ "maxImageDimension": number(),
9489
+ "mediaTypes": array(union([
9490
+ literal("image/png"),
9491
+ literal("image/jpeg"),
9492
+ literal("image/webp"),
9493
+ literal("image/gif")
9494
+ ]))
9495
+ }).optional(),
9496
+ "modelSelection": object({
9497
+ "lastUsed": union([literal(null), object({
9498
+ "provider": string().readonly(),
9499
+ "model": string().readonly(),
9500
+ "reasoningEffort": string().readonly().optional()
9501
+ })]).readonly(),
9502
+ "next": union([literal(null), object({
9503
+ "provider": string().readonly(),
9504
+ "model": string().readonly(),
9505
+ "reasoningEffort": string().readonly().optional()
9506
+ })]).readonly()
9507
+ }).optional(),
9508
+ "permissions": object({ "currentValue": string() }).optional(),
9509
+ "subagentCatalog": array(union([
9510
+ intersection(object({
9511
+ "id": intersection(string(), unknown()).readonly(),
9512
+ "createdAt": number().readonly()
9513
+ }), object({
9514
+ "mode": literal("one-shot").readonly(),
9515
+ "label": string().readonly().optional()
9516
+ })),
9517
+ intersection(object({
9518
+ "id": intersection(string(), unknown()).readonly(),
9519
+ "createdAt": number().readonly()
9520
+ }), object({
9521
+ "mode": literal("continuable").readonly(),
9522
+ "label": string().readonly()
9523
+ })),
9524
+ intersection(object({
9525
+ "id": intersection(string(), unknown()).readonly(),
9526
+ "createdAt": number().readonly()
9527
+ }), object({
9528
+ "mode": literal("unknown").readonly(),
9529
+ "label": string().readonly().optional()
9530
+ }))
9531
+ ])).optional(),
9532
+ "subagentTiming": object({
9533
+ "settledMs": number(),
9534
+ "active": object({
9535
+ "since": number(),
9536
+ "through": number()
9537
+ }).optional(),
9538
+ "lastTurnCompleted": boolean().optional()
9539
+ }).optional(),
9540
+ "subagent": union([
9541
+ literal(null),
9542
+ object({
9543
+ "mode": literal("one-shot"),
9544
+ "label": string().optional(),
9545
+ "seq": intersection(number(), unknown())
9546
+ }),
9547
+ object({
9548
+ "mode": literal("continuable"),
9549
+ "label": string(),
9550
+ "seq": intersection(number(), unknown())
9551
+ })
9552
+ ]).optional(),
9553
+ "goal": union([literal(null), object({
9554
+ "goal": object({
9555
+ "objective": string().readonly(),
9556
+ "phase": union([
9557
+ literal("active"),
9558
+ literal("paused"),
9559
+ literal("blocked"),
9560
+ literal("complete")
9561
+ ]).readonly(),
9562
+ "blockedReason": object({
9563
+ "code": string().readonly(),
9564
+ "message": string().readonly()
9565
+ }).readonly().optional(),
9566
+ "maxGoalRounds": number().readonly(),
9567
+ "id": intersection(string(), unknown()).readonly(),
9568
+ "revision": number().readonly()
9569
+ }).readonly(),
9570
+ "roundsStarted": number().readonly(),
9571
+ "createdAt": number().readonly(),
9572
+ "updatedAt": number().readonly()
9573
+ })]).optional()
9574
+ }), record(string(), union([
9575
+ literal(null),
9576
+ string(),
9577
+ number(),
9578
+ literal(false),
9579
+ literal(true),
9580
+ array(lazy(() => JsonValueRemoteCodec$schema4())),
9581
+ record(string(), lazy(() => JsonValueRemoteCodec$schema4()))
9582
+ ])).readonly()).readonly()
9583
+ })]);
9097
9584
  let _deepseek_ai_dsh_api_session_controller_session_prompt_parameter_0$schema$value;
9098
9585
  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
9586
  "requestId": intersection(string(), unknown()).readonly(),
@@ -9164,57 +9651,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9164
9651
  "action": union([
9165
9652
  object({
9166
9653
  "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()
9654
+ "content": array(object({
9655
+ "type": literal("text"),
9656
+ "text": string()
9657
+ })).readonly()
9218
9658
  }),
9219
9659
  object({ "kind": literal("remove").readonly() }),
9220
9660
  object({ "kind": literal("steer").readonly() })
@@ -9222,6 +9662,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9222
9662
  });
9223
9663
  let _deepseek_ai_dsh_api_session_controller_session_updateQueue_result$schema$value;
9224
9664
  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() });
9665
+ let _deepseek_ai_dsh_api_session_controller_session_workspacePathApplications_parameter_0$schema$value;
9666
+ 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() });
9667
+ let _deepseek_ai_dsh_api_session_controller_session_workspacePathApplications_result$schema$value;
9668
+ const _deepseek_ai_dsh_api_session_controller_session_workspacePathApplications_result$schema = () => _deepseek_ai_dsh_api_session_controller_session_workspacePathApplications_result$schema$value ??= array(object({
9669
+ "id": string().readonly(),
9670
+ "name": string().readonly(),
9671
+ "default": boolean().readonly(),
9672
+ "icon": union([literal(null), string()]).readonly()
9673
+ }));
9225
9674
  let _deepseek_ai_dsh_api_session_controller_skills_list_parameter_0$schema$value;
9226
9675
  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
9676
  let _deepseek_ai_dsh_api_session_controller_skills_list_result$schema$value;
@@ -9232,7 +9681,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9232
9681
  "whenToUse": string().readonly().optional(),
9233
9682
  "modelInvocable": boolean().readonly()
9234
9683
  })).readonly() });
9235
- const TYPERT_REMOTE$3 = {
9684
+ const TYPERT_REMOTE$4 = {
9236
9685
  package: "@deepseek-ai/dsh-api-session-controller",
9237
9686
  descriptors: [
9238
9687
  {
@@ -9300,7 +9749,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9300
9749
  },
9301
9750
  sourceLocation: {
9302
9751
  "file": "packages/api/session-controller/src/index.ts",
9303
- "line": 358,
9752
+ "line": 419,
9304
9753
  "column": 3
9305
9754
  }
9306
9755
  },
@@ -9327,7 +9776,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9327
9776
  },
9328
9777
  sourceLocation: {
9329
9778
  "file": "packages/api/session-controller/src/index.ts",
9330
- "line": 378,
9779
+ "line": 439,
9331
9780
  "column": 3
9332
9781
  }
9333
9782
  },
@@ -9345,7 +9794,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9345
9794
  },
9346
9795
  sourceLocation: {
9347
9796
  "file": "packages/api/session-controller/src/index.ts",
9348
- "line": 273,
9797
+ "line": 301,
9349
9798
  "column": 3
9350
9799
  }
9351
9800
  },
@@ -9365,7 +9814,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9365
9814
  },
9366
9815
  sourceLocation: {
9367
9816
  "file": "packages/api/session-controller/src/index.ts",
9368
- "line": 411,
9817
+ "line": 502,
9369
9818
  "column": 3
9370
9819
  }
9371
9820
  },
@@ -9392,7 +9841,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9392
9841
  },
9393
9842
  sourceLocation: {
9394
9843
  "file": "packages/api/session-controller/src/index.ts",
9395
- "line": 245,
9844
+ "line": 273,
9396
9845
  "column": 3
9397
9846
  }
9398
9847
  },
@@ -9421,7 +9870,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9421
9870
  },
9422
9871
  sourceLocation: {
9423
9872
  "file": "packages/api/session-controller/src/index.ts",
9424
- "line": 401,
9873
+ "line": 462,
9425
9874
  "column": 3
9426
9875
  }
9427
9876
  },
@@ -9448,7 +9897,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9448
9897
  },
9449
9898
  sourceLocation: {
9450
9899
  "file": "packages/api/session-controller/src/index.ts",
9451
- "line": 336,
9900
+ "line": 397,
9452
9901
  "column": 3
9453
9902
  }
9454
9903
  },
@@ -9476,7 +9925,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9476
9925
  },
9477
9926
  sourceLocation: {
9478
9927
  "file": "packages/api/session-controller/src/index.ts",
9479
- "line": 224,
9928
+ "line": 252,
9480
9929
  "column": 9
9481
9930
  }
9482
9931
  },
@@ -9494,7 +9943,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9494
9943
  },
9495
9944
  sourceLocation: {
9496
9945
  "file": "packages/api/session-controller/src/index.ts",
9497
- "line": 264,
9946
+ "line": 292,
9498
9947
  "column": 3
9499
9948
  }
9500
9949
  },
@@ -9522,7 +9971,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9522
9971
  },
9523
9972
  sourceLocation: {
9524
9973
  "file": "packages/api/session-controller/src/index.ts",
9525
- "line": 294,
9974
+ "line": 322,
9526
9975
  "column": 9
9527
9976
  }
9528
9977
  },
@@ -9550,10 +9999,38 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9550
9999
  },
9551
10000
  sourceLocation: {
9552
10001
  "file": "packages/api/session-controller/src/index.ts",
9553
- "line": 389,
10002
+ "line": 450,
9554
10003
  "column": 3
9555
10004
  }
9556
10005
  },
10006
+ {
10007
+ id: "@deepseek-ai/dsh-api-session-controller#session/projections",
10008
+ service: "sessionController",
10009
+ namespace: "session",
10010
+ method: "projections",
10011
+ invocation: { kind: "direct" },
10012
+ parameters: [{
10013
+ name: "request",
10014
+ wire: "request",
10015
+ source: "json",
10016
+ codec: {
10017
+ mode: "strict",
10018
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionProjectionsRequest",
10019
+ create: _deepseek_ai_dsh_api_session_controller_session_projections_parameter_0$schema
10020
+ }
10021
+ }],
10022
+ cancellation: { parameter: "signal" },
10023
+ result: {
10024
+ mode: "strict",
10025
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionProjectionsValue",
10026
+ create: _deepseek_ai_dsh_api_session_controller_session_projections_result$schema
10027
+ },
10028
+ sourceLocation: {
10029
+ "file": "packages/api/session-controller/src/index.ts",
10030
+ "line": 473,
10031
+ "column": 9
10032
+ }
10033
+ },
9557
10034
  {
9558
10035
  id: "@deepseek-ai/dsh-api-session-controller#session/prompt",
9559
10036
  service: "sessionController",
@@ -9578,7 +10055,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9578
10055
  },
9579
10056
  sourceLocation: {
9580
10057
  "file": "packages/api/session-controller/src/index.ts",
9581
- "line": 347,
10058
+ "line": 408,
9582
10059
  "column": 3
9583
10060
  }
9584
10061
  },
@@ -9605,7 +10082,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9605
10082
  },
9606
10083
  sourceLocation: {
9607
10084
  "file": "packages/api/session-controller/src/index.ts",
9608
- "line": 326,
10085
+ "line": 385,
9609
10086
  "column": 3
9610
10087
  }
9611
10088
  },
@@ -9633,15 +10110,246 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9633
10110
  },
9634
10111
  sourceLocation: {
9635
10112
  "file": "packages/api/session-controller/src/index.ts",
9636
- "line": 235,
10113
+ "line": 263,
10114
+ "column": 3
10115
+ }
10116
+ },
10117
+ {
10118
+ id: "@deepseek-ai/dsh-api-session-controller#session/selectModel",
10119
+ service: "sessionController",
10120
+ namespace: "session",
10121
+ method: "selectModel",
10122
+ invocation: { kind: "direct" },
10123
+ parameters: [{
10124
+ name: "request",
10125
+ wire: "request",
10126
+ source: "json",
10127
+ codec: {
10128
+ mode: "strict",
10129
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionSelectModelRequest",
10130
+ create: _deepseek_ai_dsh_api_session_controller_session_selectModel_parameter_0$schema
10131
+ }
10132
+ }],
10133
+ result: {
10134
+ mode: "strict",
10135
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionSelectModelValue",
10136
+ create: _deepseek_ai_dsh_api_session_controller_session_selectModel_result$schema
10137
+ },
10138
+ sourceLocation: {
10139
+ "file": "packages/api/session-controller/src/index.ts",
10140
+ "line": 283,
10141
+ "column": 3
10142
+ }
10143
+ },
10144
+ {
10145
+ id: "@deepseek-ai/dsh-api-session-controller#session/updateQueue",
10146
+ service: "sessionController",
10147
+ namespace: "session",
10148
+ method: "updateQueue",
10149
+ invocation: { kind: "direct" },
10150
+ parameters: [{
10151
+ name: "request",
10152
+ wire: "request",
10153
+ source: "json",
10154
+ codec: {
10155
+ mode: "strict",
10156
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionUpdateQueueRequest",
10157
+ create: _deepseek_ai_dsh_api_session_controller_session_updateQueue_parameter_0$schema
10158
+ }
10159
+ }],
10160
+ result: {
10161
+ mode: "strict",
10162
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionUpdateQueueValue",
10163
+ create: _deepseek_ai_dsh_api_session_controller_session_updateQueue_result$schema
10164
+ },
10165
+ sourceLocation: {
10166
+ "file": "packages/api/session-controller/src/index.ts",
10167
+ "line": 429,
9637
10168
  "column": 3
9638
10169
  }
9639
10170
  },
9640
10171
  {
9641
- id: "@deepseek-ai/dsh-api-session-controller#session/selectModel",
9642
- service: "sessionController",
9643
- namespace: "session",
9644
- method: "selectModel",
10172
+ id: "@deepseek-ai/dsh-api-session-controller#session/workspacePathApplications",
10173
+ service: "sessionController",
10174
+ namespace: "session",
10175
+ method: "workspacePathApplications",
10176
+ invocation: { kind: "direct" },
10177
+ parameters: [{
10178
+ name: "request",
10179
+ wire: "request",
10180
+ source: "json",
10181
+ codec: {
10182
+ mode: "strict",
10183
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller#session/workspacePathApplications:request",
10184
+ create: _deepseek_ai_dsh_api_session_controller_session_workspacePathApplications_parameter_0$schema
10185
+ }
10186
+ }],
10187
+ cancellation: { parameter: "signal" },
10188
+ result: {
10189
+ mode: "strict",
10190
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller#session/workspacePathApplications:result",
10191
+ create: _deepseek_ai_dsh_api_session_controller_session_workspacePathApplications_result$schema
10192
+ },
10193
+ sourceLocation: {
10194
+ "file": "packages/api/session-controller/src/index.ts",
10195
+ "line": 352,
10196
+ "column": 9
10197
+ }
10198
+ },
10199
+ {
10200
+ id: "@deepseek-ai/dsh-api-session-controller#skills/list",
10201
+ service: "sessionSkillCatalog",
10202
+ namespace: "skills",
10203
+ method: "list",
10204
+ invocation: { kind: "direct" },
10205
+ parameters: [{
10206
+ name: "request",
10207
+ wire: "request",
10208
+ source: "json",
10209
+ codec: {
10210
+ mode: "strict",
10211
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SkillListRequest",
10212
+ create: _deepseek_ai_dsh_api_session_controller_skills_list_parameter_0$schema
10213
+ }
10214
+ }],
10215
+ cancellation: { parameter: "signal" },
10216
+ result: {
10217
+ mode: "strict",
10218
+ typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SkillListValue",
10219
+ create: _deepseek_ai_dsh_api_session_controller_skills_list_result$schema
10220
+ },
10221
+ sourceLocation: {
10222
+ "file": "packages/api/session-controller/src/skill-catalog.ts",
10223
+ "line": 35,
10224
+ "column": 9
10225
+ }
10226
+ }
10227
+ ]
10228
+ };
10229
+ //#endregion
10230
+ //#region ../job-controller/lib/typert.remote-client.js
10231
+ let _deepseek_ai_dsh_api_job_controller_job_follow_parameter_0$schema$value;
10232
+ 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({
10233
+ "sessionId": intersection(string(), unknown()).readonly().optional(),
10234
+ "jobId": intersection(string(), unknown()).readonly(),
10235
+ "from": number().readonly().optional()
10236
+ });
10237
+ let _deepseek_ai_dsh_api_job_controller_job_follow_result$schema$value;
10238
+ const _deepseek_ai_dsh_api_job_controller_job_follow_result$schema = () => _deepseek_ai_dsh_api_job_controller_job_follow_result$schema$value ??= union([
10239
+ object({
10240
+ "type": literal("opened").readonly(),
10241
+ "job": object({
10242
+ "id": intersection(string(), unknown()).readonly(),
10243
+ "kind": string().readonly(),
10244
+ "label": string().readonly(),
10245
+ "owner": intersection(string(), unknown()).readonly().optional(),
10246
+ "outputLimitBytes": number().readonly().optional(),
10247
+ "status": union([
10248
+ literal("failed"),
10249
+ literal("running"),
10250
+ literal("stopping"),
10251
+ literal("completed"),
10252
+ literal("killed")
10253
+ ]).readonly(),
10254
+ "progress": string().readonly().optional(),
10255
+ "detail": string().readonly().optional(),
10256
+ "startedAt": number().readonly(),
10257
+ "finishedAt": number().readonly().optional(),
10258
+ "output": object({
10259
+ "total": number().readonly(),
10260
+ "earliest": number().readonly(),
10261
+ "spillPaths": array(string()).readonly().optional()
10262
+ }).readonly()
10263
+ }).readonly(),
10264
+ "from": number().readonly()
10265
+ }),
10266
+ object({
10267
+ "type": literal("output").readonly(),
10268
+ "chunks": array(object({
10269
+ "at": number().readonly(),
10270
+ "text": string().readonly(),
10271
+ "channel": union([
10272
+ literal("stdout"),
10273
+ literal("stderr"),
10274
+ literal("log")
10275
+ ]).readonly().optional(),
10276
+ "gapBefore": literal(true).readonly().optional()
10277
+ })).readonly(),
10278
+ "next": number().readonly(),
10279
+ "lossy": literal(true).readonly().optional()
10280
+ }),
10281
+ object({
10282
+ "type": literal("status").readonly(),
10283
+ "job": object({
10284
+ "id": intersection(string(), unknown()).readonly(),
10285
+ "kind": string().readonly(),
10286
+ "label": string().readonly(),
10287
+ "owner": intersection(string(), unknown()).readonly().optional(),
10288
+ "outputLimitBytes": number().readonly().optional(),
10289
+ "status": union([
10290
+ literal("failed"),
10291
+ literal("running"),
10292
+ literal("stopping"),
10293
+ literal("completed"),
10294
+ literal("killed")
10295
+ ]).readonly(),
10296
+ "progress": string().readonly().optional(),
10297
+ "detail": string().readonly().optional(),
10298
+ "startedAt": number().readonly(),
10299
+ "finishedAt": number().readonly().optional(),
10300
+ "output": object({
10301
+ "total": number().readonly(),
10302
+ "earliest": number().readonly(),
10303
+ "spillPaths": array(string()).readonly().optional()
10304
+ }).readonly()
10305
+ }).readonly()
10306
+ })
10307
+ ]);
10308
+ let _deepseek_ai_dsh_api_job_controller_job_kill_parameter_0$schema$value;
10309
+ 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({
10310
+ "sessionId": intersection(string(), unknown()).readonly(),
10311
+ "jobId": intersection(string(), unknown()).readonly()
10312
+ });
10313
+ let _deepseek_ai_dsh_api_job_controller_job_kill_result$schema$value;
10314
+ 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() });
10315
+ let _deepseek_ai_dsh_api_job_controller_job_list_parameter_0$schema$value;
10316
+ 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() });
10317
+ let _deepseek_ai_dsh_api_job_controller_job_list_result$schema$value;
10318
+ const _deepseek_ai_dsh_api_job_controller_job_list_result$schema = () => _deepseek_ai_dsh_api_job_controller_job_list_result$schema$value ??= object({
10319
+ "type": literal("rows").readonly(),
10320
+ "jobs": array(object({
10321
+ "id": intersection(string(), unknown()).readonly(),
10322
+ "kind": string().readonly(),
10323
+ "label": string().readonly(),
10324
+ "owner": intersection(string(), unknown()).readonly().optional(),
10325
+ "outputLimitBytes": number().readonly().optional(),
10326
+ "status": union([
10327
+ literal("failed"),
10328
+ literal("running"),
10329
+ literal("stopping"),
10330
+ literal("completed"),
10331
+ literal("killed")
10332
+ ]).readonly(),
10333
+ "progress": string().readonly().optional(),
10334
+ "detail": string().readonly().optional(),
10335
+ "startedAt": number().readonly(),
10336
+ "finishedAt": number().readonly().optional(),
10337
+ "output": object({
10338
+ "total": number().readonly(),
10339
+ "earliest": number().readonly(),
10340
+ "spillPaths": array(string()).readonly().optional()
10341
+ }).readonly()
10342
+ })).readonly()
10343
+ });
10344
+ const TYPERT_REMOTE$3 = {
10345
+ package: "@deepseek-ai/dsh-api-job-controller",
10346
+ descriptors: [
10347
+ {
10348
+ id: "@deepseek-ai/dsh-api-job-controller#job/follow",
10349
+ service: "jobController",
10350
+ namespace: "job",
10351
+ method: "follow",
10352
+ mode: "stream",
9645
10353
  invocation: { kind: "direct" },
9646
10354
  parameters: [{
9647
10355
  name: "request",
@@ -9649,26 +10357,27 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9649
10357
  source: "json",
9650
10358
  codec: {
9651
10359
  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
10360
+ typeSymbol: "@deepseek-ai/dsh-api-job-controller/types#JobFollowRequest",
10361
+ create: _deepseek_ai_dsh_api_job_controller_job_follow_parameter_0$schema
9654
10362
  }
9655
10363
  }],
10364
+ cancellation: { parameter: "signal" },
9656
10365
  result: {
9657
10366
  mode: "strict",
9658
- typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionSelectModelValue",
9659
- create: _deepseek_ai_dsh_api_session_controller_session_selectModel_result$schema
10367
+ typeSymbol: "@deepseek-ai/dsh-api-job-controller/types#JobFollowFrame",
10368
+ create: _deepseek_ai_dsh_api_job_controller_job_follow_result$schema
9660
10369
  },
9661
10370
  sourceLocation: {
9662
- "file": "packages/api/session-controller/src/index.ts",
9663
- "line": 255,
10371
+ "file": "packages/api/job-controller/src/index.ts",
10372
+ "line": 91,
9664
10373
  "column": 3
9665
10374
  }
9666
10375
  },
9667
10376
  {
9668
- id: "@deepseek-ai/dsh-api-session-controller#session/updateQueue",
9669
- service: "sessionController",
9670
- namespace: "session",
9671
- method: "updateQueue",
10377
+ id: "@deepseek-ai/dsh-api-job-controller#job/kill",
10378
+ service: "jobController",
10379
+ namespace: "job",
10380
+ method: "kill",
9672
10381
  invocation: { kind: "direct" },
9673
10382
  parameters: [{
9674
10383
  name: "request",
@@ -9676,26 +10385,27 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9676
10385
  source: "json",
9677
10386
  codec: {
9678
10387
  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
10388
+ typeSymbol: "@deepseek-ai/dsh-api-job-controller/types#JobKillRequest",
10389
+ create: _deepseek_ai_dsh_api_job_controller_job_kill_parameter_0$schema
9681
10390
  }
9682
10391
  }],
9683
10392
  result: {
9684
10393
  mode: "strict",
9685
- typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SessionUpdateQueueValue",
9686
- create: _deepseek_ai_dsh_api_session_controller_session_updateQueue_result$schema
10394
+ typeSymbol: "@deepseek-ai/dsh-api-job-controller/types#JobKillValue",
10395
+ create: _deepseek_ai_dsh_api_job_controller_job_kill_result$schema
9687
10396
  },
9688
10397
  sourceLocation: {
9689
- "file": "packages/api/session-controller/src/index.ts",
9690
- "line": 368,
10398
+ "file": "packages/api/job-controller/src/index.ts",
10399
+ "line": 110,
9691
10400
  "column": 3
9692
10401
  }
9693
10402
  },
9694
10403
  {
9695
- id: "@deepseek-ai/dsh-api-session-controller#skills/list",
9696
- service: "sessionSkillCatalog",
9697
- namespace: "skills",
10404
+ id: "@deepseek-ai/dsh-api-job-controller#job/list",
10405
+ service: "jobController",
10406
+ namespace: "job",
9698
10407
  method: "list",
10408
+ mode: "stream",
9699
10409
  invocation: { kind: "direct" },
9700
10410
  parameters: [{
9701
10411
  name: "request",
@@ -9703,20 +10413,20 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9703
10413
  source: "json",
9704
10414
  codec: {
9705
10415
  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
10416
+ typeSymbol: "@deepseek-ai/dsh-api-job-controller/types#JobListRequest",
10417
+ create: _deepseek_ai_dsh_api_job_controller_job_list_parameter_0$schema
9708
10418
  }
9709
10419
  }],
9710
10420
  cancellation: { parameter: "signal" },
9711
10421
  result: {
9712
10422
  mode: "strict",
9713
- typeSymbol: "@deepseek-ai/dsh-api-session-controller/types#SkillListValue",
9714
- create: _deepseek_ai_dsh_api_session_controller_skills_list_result$schema
10423
+ typeSymbol: "@deepseek-ai/dsh-api-job-controller/types#JobListFrame",
10424
+ create: _deepseek_ai_dsh_api_job_controller_job_list_result$schema
9715
10425
  },
9716
10426
  sourceLocation: {
9717
- "file": "packages/api/session-controller/src/skill-catalog.ts",
9718
- "line": 36,
9719
- "column": 9
10427
+ "file": "packages/api/job-controller/src/index.ts",
10428
+ "line": 76,
10429
+ "column": 3
9720
10430
  }
9721
10431
  }
9722
10432
  ]
@@ -9750,7 +10460,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9750
10460
  let _deepseek_ai_dsh_api_workspace_controller_directoryPicker_pick_result$schema$value;
9751
10461
  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
10462
  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() });
10463
+ 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({
10464
+ "sessionId": intersection(string(), unknown()).readonly(),
10465
+ "stopActivity": boolean().readonly().optional()
10466
+ });
9754
10467
  let _deepseek_ai_dsh_api_workspace_controller_workspace_archiveSession_result$schema$value;
9755
10468
  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
10469
  let _deepseek_ai_dsh_api_workspace_controller_workspace_create_parameter_0$schema$value;
@@ -9784,7 +10497,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9784
10497
  "createdAt": string().readonly(),
9785
10498
  "updatedAt": string().readonly()
9786
10499
  })).readonly(),
9787
- "archivedSessionIds": array(intersection(string(), unknown())).readonly()
10500
+ "archivedSessionIds": array(intersection(string(), unknown())).readonly(),
10501
+ "pinnedSessionIds": array(intersection(string(), unknown())).readonly()
9788
10502
  }).readonly()
9789
10503
  }),
9790
10504
  object({
@@ -9809,8 +10523,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9809
10523
  object({
9810
10524
  "type": literal("archived").readonly(),
9811
10525
  "archivedSessionIds": array(intersection(string(), unknown())).readonly()
10526
+ }),
10527
+ object({
10528
+ "type": literal("pinned").readonly(),
10529
+ "pinnedSessionIds": array(intersection(string(), unknown())).readonly()
9812
10530
  })
9813
10531
  ]);
10532
+ let _deepseek_ai_dsh_api_workspace_controller_workspace_initializeDefault_parameter_0$schema$value;
10533
+ 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({
10534
+ "directoryName": string().readonly(),
10535
+ "title": string().readonly()
10536
+ });
10537
+ let _deepseek_ai_dsh_api_workspace_controller_workspace_initializeDefault_result$schema$value;
10538
+ 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({
10539
+ "workspaceId": intersection(string(), unknown()).readonly(),
10540
+ "path": string().readonly(),
10541
+ "title": string().readonly(),
10542
+ "sessionIds": array(intersection(string(), unknown())).readonly(),
10543
+ "createdAt": string().readonly(),
10544
+ "updatedAt": string().readonly()
10545
+ }).readonly() })]);
9814
10546
  let _deepseek_ai_dsh_api_workspace_controller_workspace_insertBefore_parameter_0$schema$value;
9815
10547
  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
10548
  "workspaceId": intersection(string(), unknown()).readonly(),
@@ -9833,6 +10565,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9833
10565
  "createdAt": string().readonly(),
9834
10566
  "updatedAt": string().readonly()
9835
10567
  }).readonly() });
10568
+ let _deepseek_ai_dsh_api_workspace_controller_workspace_pinSession_parameter_0$schema$value;
10569
+ 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() });
10570
+ let _deepseek_ai_dsh_api_workspace_controller_workspace_pinSession_result$schema$value;
10571
+ 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
10572
  let _deepseek_ai_dsh_api_workspace_controller_workspace_rename_parameter_0$schema$value;
9837
10573
  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
10574
  "workspaceId": intersection(string(), unknown()).readonly(),
@@ -9851,6 +10587,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9851
10587
  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
10588
  let _deepseek_ai_dsh_api_workspace_controller_workspace_unarchiveSession_result$schema$value;
9853
10589
  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() });
10590
+ let _deepseek_ai_dsh_api_workspace_controller_workspace_unpinSession_parameter_0$schema$value;
10591
+ 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() });
10592
+ let _deepseek_ai_dsh_api_workspace_controller_workspace_unpinSession_result$schema$value;
10593
+ 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
10594
  const TYPERT_REMOTE$2 = {
9855
10595
  package: "@deepseek-ai/dsh-api-workspace-controller",
9856
10596
  descriptors: [
@@ -9961,7 +10701,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9961
10701
  },
9962
10702
  sourceLocation: {
9963
10703
  "file": "packages/api/workspace-controller/src/index.ts",
9964
- "line": 109,
10704
+ "line": 160,
9965
10705
  "column": 3
9966
10706
  }
9967
10707
  },
@@ -9988,7 +10728,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
9988
10728
  },
9989
10729
  sourceLocation: {
9990
10730
  "file": "packages/api/workspace-controller/src/index.ts",
9991
- "line": 59,
10731
+ "line": 87,
9992
10732
  "column": 3
9993
10733
  }
9994
10734
  },
@@ -10015,7 +10755,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10015
10755
  },
10016
10756
  sourceLocation: {
10017
10757
  "file": "packages/api/workspace-controller/src/index.ts",
10018
- "line": 79,
10758
+ "line": 130,
10019
10759
  "column": 3
10020
10760
  }
10021
10761
  },
@@ -10035,10 +10775,38 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10035
10775
  },
10036
10776
  sourceLocation: {
10037
10777
  "file": "packages/api/workspace-controller/src/index.ts",
10038
- "line": 129,
10778
+ "line": 200,
10039
10779
  "column": 3
10040
10780
  }
10041
10781
  },
10782
+ {
10783
+ id: "@deepseek-ai/dsh-api-workspace-controller#workspace/initializeDefault",
10784
+ service: "workspaceController",
10785
+ namespace: "workspace",
10786
+ method: "initializeDefault",
10787
+ invocation: { kind: "direct" },
10788
+ parameters: [{
10789
+ name: "request",
10790
+ wire: "request",
10791
+ source: "json",
10792
+ codec: {
10793
+ mode: "strict",
10794
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceInitializeDefaultRequest",
10795
+ create: _deepseek_ai_dsh_api_workspace_controller_workspace_initializeDefault_parameter_0$schema
10796
+ }
10797
+ }],
10798
+ cancellation: { parameter: "signal" },
10799
+ result: {
10800
+ mode: "strict",
10801
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller#workspace/initializeDefault:result",
10802
+ create: _deepseek_ai_dsh_api_workspace_controller_workspace_initializeDefault_result$schema
10803
+ },
10804
+ sourceLocation: {
10805
+ "file": "packages/api/workspace-controller/src/index.ts",
10806
+ "line": 98,
10807
+ "column": 9
10808
+ }
10809
+ },
10042
10810
  {
10043
10811
  id: "@deepseek-ai/dsh-api-workspace-controller#workspace/insertBefore",
10044
10812
  service: "workspaceController",
@@ -10062,7 +10830,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10062
10830
  },
10063
10831
  sourceLocation: {
10064
10832
  "file": "packages/api/workspace-controller/src/index.ts",
10065
- "line": 89,
10833
+ "line": 140,
10066
10834
  "column": 3
10067
10835
  }
10068
10836
  },
@@ -10089,7 +10857,34 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10089
10857
  },
10090
10858
  sourceLocation: {
10091
10859
  "file": "packages/api/workspace-controller/src/index.ts",
10092
- "line": 99,
10860
+ "line": 150,
10861
+ "column": 3
10862
+ }
10863
+ },
10864
+ {
10865
+ id: "@deepseek-ai/dsh-api-workspace-controller#workspace/pinSession",
10866
+ service: "workspaceController",
10867
+ namespace: "workspace",
10868
+ method: "pinSession",
10869
+ invocation: { kind: "direct" },
10870
+ parameters: [{
10871
+ name: "request",
10872
+ wire: "request",
10873
+ source: "json",
10874
+ codec: {
10875
+ mode: "strict",
10876
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspacePinSessionRequest",
10877
+ create: _deepseek_ai_dsh_api_workspace_controller_workspace_pinSession_parameter_0$schema
10878
+ }
10879
+ }],
10880
+ result: {
10881
+ mode: "strict",
10882
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspacePinValue",
10883
+ create: _deepseek_ai_dsh_api_workspace_controller_workspace_pinSession_result$schema
10884
+ },
10885
+ sourceLocation: {
10886
+ "file": "packages/api/workspace-controller/src/index.ts",
10887
+ "line": 180,
10093
10888
  "column": 3
10094
10889
  }
10095
10890
  },
@@ -10116,7 +10911,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10116
10911
  },
10117
10912
  sourceLocation: {
10118
10913
  "file": "packages/api/workspace-controller/src/index.ts",
10119
- "line": 69,
10914
+ "line": 120,
10120
10915
  "column": 3
10121
10916
  }
10122
10917
  },
@@ -10143,7 +10938,34 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10143
10938
  },
10144
10939
  sourceLocation: {
10145
10940
  "file": "packages/api/workspace-controller/src/index.ts",
10146
- "line": 119,
10941
+ "line": 170,
10942
+ "column": 3
10943
+ }
10944
+ },
10945
+ {
10946
+ id: "@deepseek-ai/dsh-api-workspace-controller#workspace/unpinSession",
10947
+ service: "workspaceController",
10948
+ namespace: "workspace",
10949
+ method: "unpinSession",
10950
+ invocation: { kind: "direct" },
10951
+ parameters: [{
10952
+ name: "request",
10953
+ wire: "request",
10954
+ source: "json",
10955
+ codec: {
10956
+ mode: "strict",
10957
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspaceUnpinSessionRequest",
10958
+ create: _deepseek_ai_dsh_api_workspace_controller_workspace_unpinSession_parameter_0$schema
10959
+ }
10960
+ }],
10961
+ result: {
10962
+ mode: "strict",
10963
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-controller/types#WorkspacePinValue",
10964
+ create: _deepseek_ai_dsh_api_workspace_controller_workspace_unpinSession_result$schema
10965
+ },
10966
+ sourceLocation: {
10967
+ "file": "packages/api/workspace-controller/src/index.ts",
10968
+ "line": 190,
10147
10969
  "column": 3
10148
10970
  }
10149
10971
  }
@@ -10179,8 +11001,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10179
11001
  "cols": number().readonly(),
10180
11002
  "rows": number().readonly(),
10181
11003
  "state": union([
10182
- literal("running"),
10183
11004
  literal("failed"),
11005
+ literal("running"),
10184
11006
  literal("exited")
10185
11007
  ]).readonly(),
10186
11008
  "exitCode": union([literal(null), number()]).readonly(),
@@ -10221,8 +11043,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10221
11043
  "cols": number().readonly(),
10222
11044
  "rows": number().readonly(),
10223
11045
  "state": union([
10224
- literal("running"),
10225
11046
  literal("failed"),
11047
+ literal("running"),
10226
11048
  literal("exited")
10227
11049
  ]).readonly(),
10228
11050
  "exitCode": union([literal(null), number()]).readonly(),
@@ -10249,8 +11071,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10249
11071
  "cols": number().readonly(),
10250
11072
  "rows": number().readonly(),
10251
11073
  "state": union([
10252
- literal("running"),
10253
11074
  literal("failed"),
11075
+ literal("running"),
10254
11076
  literal("exited")
10255
11077
  ]).readonly(),
10256
11078
  "exitCode": union([literal(null), number()]).readonly(),
@@ -10274,8 +11096,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10274
11096
  "cols": number().readonly(),
10275
11097
  "rows": number().readonly(),
10276
11098
  "state": union([
10277
- literal("running"),
10278
11099
  literal("failed"),
11100
+ literal("running"),
10279
11101
  literal("exited")
10280
11102
  ]).readonly(),
10281
11103
  "exitCode": union([literal(null), number()]).readonly(),
@@ -10797,6 +11619,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10797
11619
  //#region ../workspace-files/lib/typert.remote-client.js
10798
11620
  let _deepseek_ai_dsh_api_workspace_files_workspaceFiles_changes_parameter_0$schema$value;
10799
11621
  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());
11622
+ let _deepseek_ai_dsh_api_workspace_files_workspaceFiles_changes_parameter_1$schema$value;
11623
+ 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
11624
  let _deepseek_ai_dsh_api_workspace_files_workspaceFiles_changes_result$schema$value;
10801
11625
  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
11626
  "kind": literal("change").readonly(),
@@ -10845,47 +11669,22 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10845
11669
  "version": string().readonly(),
10846
11670
  "bytes": number().readonly().optional()
10847
11671
  });
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
11672
  let _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_parameter_0$schema$value;
10862
11673
  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
11674
  let _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_parameter_1$schema$value;
10864
11675
  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
11676
  let _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_parameter_2$schema$value;
10866
11677
  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()
11678
+ "range": object({
11679
+ "offset": number().readonly().optional(),
11680
+ "length": number().readonly().optional()
11681
+ }).readonly().optional(),
11682
+ "baseFile": string().readonly().optional()
10869
11683
  });
10870
11684
  let _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_result$schema$value;
10871
11685
  const _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_result$schema = () => _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_result$schema$value ??= object({
10872
11686
  "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(),
11687
+ "data": _instanceof(Uint8Array),
10889
11688
  "eof": boolean().readonly(),
10890
11689
  "absolutePath": string().readonly(),
10891
11690
  "version": string().readonly(),
@@ -10901,6 +11700,50 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10901
11700
  "version": string().readonly(),
10902
11701
  "bytes": number().readonly().optional()
10903
11702
  });
11703
+ const $resultSnapshot = (input, path) => {
11704
+ if (input === null || typeof input !== "object" || input instanceof Uint8Array) return input;
11705
+ const toJSON = input.toJSON;
11706
+ const value = typeof toJSON === "function" ? toJSON.call(input, path.at(-1)?.toString() ?? "value") : input;
11707
+ if (value === null || typeof value !== "object" || value instanceof Uint8Array) return value;
11708
+ if (Array.isArray(value)) {
11709
+ const items = [];
11710
+ for (let index = 0, length = value.length; index < length; index++) items.push(value[index]);
11711
+ return items;
11712
+ }
11713
+ const fields = {};
11714
+ for (const key of Object.keys(value)) {
11715
+ const item = key === "toJSON" && value === input ? toJSON : value[key];
11716
+ if (key === "toJSON" && typeof item === "function") continue;
11717
+ Object.defineProperty(fields, key, {
11718
+ value: item,
11719
+ enumerable: true,
11720
+ writable: true,
11721
+ configurable: true
11722
+ });
11723
+ }
11724
+ return fields;
11725
+ };
11726
+ const $resultContainer = (input, path, ancestors, project, snapshot) => {
11727
+ if (input === null || typeof input !== "object") return project(input);
11728
+ const owner = !ancestors.has(input);
11729
+ if (!owner && ancestors.get(input) !== path.length) throw new TypeError("Remote result contains a circular object");
11730
+ if (owner) ancestors.set(input, path.length);
11731
+ try {
11732
+ return project(snapshot ? $resultSnapshot(input, path) : input);
11733
+ } finally {
11734
+ if (owner) ancestors.delete(input);
11735
+ }
11736
+ };
11737
+ const $encode1 = (value, writeBytes, path, ancestors) => {
11738
+ return value instanceof Uint8Array ? writeBytes(value, path) : value;
11739
+ };
11740
+ const $encode0 = (value, writeBytes, path, ancestors) => {
11741
+ return $resultContainer(value, path, ancestors, (value) => {
11742
+ if (value === null || typeof value !== "object" || Array.isArray(value) || value instanceof Uint8Array) return value;
11743
+ if (Object.hasOwn(value, "data")) value["data"] = $encode1(value["data"], writeBytes, [...path, "data"], ancestors);
11744
+ return value;
11745
+ }, true);
11746
+ };
10904
11747
  const TYPERT_REMOTE = {
10905
11748
  package: "@deepseek-ai/dsh-api-workspace-files",
10906
11749
  descriptors: [
@@ -10921,6 +11764,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10921
11764
  typeSymbol: "@deepseek-ai/dsh-session/types#SessionId",
10922
11765
  create: _deepseek_ai_dsh_api_workspace_files_workspaceFiles_changes_parameter_0$schema
10923
11766
  }
11767
+ }, {
11768
+ name: "path",
11769
+ wire: "path",
11770
+ source: "json",
11771
+ codec: {
11772
+ mode: "strict",
11773
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-files#workspaceFiles/changes:path",
11774
+ create: _deepseek_ai_dsh_api_workspace_files_workspaceFiles_changes_parameter_1$schema
11775
+ }
10924
11776
  }],
10925
11777
  cancellation: { parameter: "signal" },
10926
11778
  result: {
@@ -10930,7 +11782,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10930
11782
  },
10931
11783
  sourceLocation: {
10932
11784
  "file": "packages/api/workspace-files/src/index.ts",
10933
- "line": 364,
11785
+ "line": 331,
10934
11786
  "column": 3
10935
11787
  }
10936
11788
  },
@@ -10968,7 +11820,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
10968
11820
  },
10969
11821
  sourceLocation: {
10970
11822
  "file": "packages/api/workspace-files/src/index.ts",
10971
- "line": 336,
11823
+ "line": 303,
10972
11824
  "column": 9
10973
11825
  }
10974
11826
  },
@@ -11019,45 +11871,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11019
11871
  },
11020
11872
  sourceLocation: {
11021
11873
  "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,
11874
+ "line": 233,
11061
11875
  "column": 9
11062
11876
  }
11063
11877
  },
@@ -11090,12 +11904,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11090
11904
  }
11091
11905
  },
11092
11906
  {
11093
- name: "range",
11094
- wire: "range",
11907
+ name: "options",
11908
+ wire: "options",
11095
11909
  source: "json",
11096
11910
  codec: {
11097
11911
  mode: "strict",
11098
- typeSymbol: "@deepseek-ai/dsh-api-workspace-files/types#WorkspaceByteRange",
11912
+ typeSymbol: "@deepseek-ai/dsh-api-workspace-files/types#WorkspaceByteReadOptions",
11099
11913
  create: _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_parameter_2$schema
11100
11914
  }
11101
11915
  }
@@ -11104,7 +11918,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11104
11918
  result: {
11105
11919
  mode: "strict",
11106
11920
  typeSymbol: "@deepseek-ai/dsh-api-workspace-files/types#WorkspaceFileBytes",
11107
- create: _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_result$schema
11921
+ create: _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_result$schema,
11922
+ decode: (value) => _deepseek_ai_dsh_api_workspace_files_workspaceFiles_readBytes_result$schema().parse(value),
11923
+ encode: (value, writeBytes) => $encode0(value, writeBytes, [], /* @__PURE__ */ new Map())
11108
11924
  },
11109
11925
  sourceLocation: {
11110
11926
  "file": "packages/api/workspace-files/src/index.ts",
@@ -11112,57 +11928,6 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11112
11928
  "column": 9
11113
11929
  }
11114
11930
  },
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
11931
  {
11167
11932
  id: "@deepseek-ai/dsh-api-workspace-files#workspaceFiles/stat",
11168
11933
  service: "workspaceFiles",
@@ -11197,7 +11962,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11197
11962
  },
11198
11963
  sourceLocation: {
11199
11964
  "file": "packages/api/workspace-files/src/index.ts",
11200
- "line": 323,
11965
+ "line": 290,
11201
11966
  "column": 9
11202
11967
  }
11203
11968
  }
@@ -11217,25 +11982,28 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
11217
11982
  const disposers = [];
11218
11983
  try {
11219
11984
  for (const contribution of [
11985
+ TYPERT_REMOTE$21,
11986
+ TYPERT_REMOTE$20,
11220
11987
  TYPERT_REMOTE$18,
11221
- TYPERT_REMOTE$17,
11988
+ TYPERT_REMOTE$19,
11222
11989
  TYPERT_REMOTE$16,
11990
+ TYPERT_REMOTE$15,
11223
11991
  TYPERT_REMOTE$14,
11992
+ TYPERT_REMOTE$11,
11224
11993
  TYPERT_REMOTE$13,
11225
11994
  TYPERT_REMOTE$12,
11226
11995
  TYPERT_REMOTE$10,
11227
- TYPERT_REMOTE$11,
11228
- TYPERT_REMOTE$9,
11996
+ TYPERT_REMOTE$8,
11229
11997
  TYPERT_REMOTE$7,
11230
11998
  TYPERT_REMOTE$6,
11999
+ TYPERT_REMOTE$9,
11231
12000
  TYPERT_REMOTE$5,
11232
- TYPERT_REMOTE$8,
11233
12001
  TYPERT_REMOTE$4,
11234
12002
  TYPERT_REMOTE$3,
11235
12003
  TYPERT_REMOTE$2,
11236
12004
  TYPERT_REMOTE,
11237
12005
  TYPERT_REMOTE$1,
11238
- TYPERT_REMOTE$15
12006
+ TYPERT_REMOTE$17
11239
12007
  ]) disposers.push(await ctx.remote.$mount(contribution));
11240
12008
  } catch (error) {
11241
12009
  for (const dispose of disposers.reverse()) await dispose();