@deepseek-ai/dsh-cordis-host-runner 0.2.1-alpha.2 → 0.2.1-alpha.4

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.
@@ -1,127 +1,120 @@
1
1
  /* Generated by @deepseek-ai/dsh-typert-generator from FaceModel — do not edit. */
2
2
  import { z } from 'zod'
3
3
 
4
- let JsonValueRemoteCodec$schema$value
5
- const JsonValueRemoteCodec$schema = () => (JsonValueRemoteCodec$schema$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema()))]))
6
- let JsonValueRemoteCodec$schema2$value
7
- const JsonValueRemoteCodec$schema2 = () => (JsonValueRemoteCodec$schema2$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema2())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema2()))]))
8
- let JsonValueRemoteCodec$schema3$value
9
- const JsonValueRemoteCodec$schema3 = () => (JsonValueRemoteCodec$schema3$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema3())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema3()))]))
10
- let JsonValueRemoteCodec$schema4$value
11
- const JsonValueRemoteCodec$schema4 = () => (JsonValueRemoteCodec$schema4$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema4())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema4()))]))
4
+ import { createTypertRemoteInfo } from '@deepseek-ai/dsh-typert-protocol/remote-info'
5
+
12
6
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_0$schema$value
13
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_0$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
7
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_0$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_0$schema$value ??= z.string())
14
8
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_1$schema$value
15
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_1$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
9
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_1$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_1$schema$value ??= z.string())
16
10
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_2$schema$value
17
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_2$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_2$schema$value ??= z.intersection(z.string(), z.unknown()))
11
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_2$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_2$schema$value ??= z.string())
18
12
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_result$schema$value
19
13
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_result$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_result$schema$value ??= z.object({
20
- 'code': z.string(),
21
- 'name': z.string(),
22
- 'pluginId': z.intersection(z.string(), z.unknown()),
23
- 'packageId': z.intersection(z.string(), z.unknown()),
24
- 'pluginRunId': z.intersection(z.string(), z.unknown()),
14
+ 'code': z.string().describe('Browser JavaScript body.'),
15
+ 'name': z.string().describe('Package label.'),
16
+ 'pluginId': z.string().describe('Stable plugin instance.'),
17
+ 'packageId': z.string().describe('Immutable source version.'),
18
+ 'pluginRunId': z.string().describe('Exact activation the source belongs to.'),
25
19
  }))
26
20
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_inventory_result$schema$value
27
21
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_inventory_result$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_inventory_result$schema$value ??= z.array(z.object({
28
- 'pluginId': z.intersection(z.string(), z.unknown()),
29
- 'agentId': z.intersection(z.string(), z.unknown()),
22
+ 'pluginId': z.string().describe('Stable plugin instance.'),
23
+ 'agentId': z.string().describe('Session that owns this plugin.'),
30
24
  'packages': z.array(z.object({
31
- 'packageId': z.intersection(z.string(), z.unknown()),
32
- 'name': z.string(),
33
- 'purpose': z.string(),
34
- 'hasHostHalf': z.boolean(),
35
- 'hasClientHalf': z.boolean(),
36
- })),
37
- 'currentPackageId': z.intersection(z.string(), z.unknown()).optional(),
38
- 'nextPackageId': z.intersection(z.string(), z.unknown()).optional(),
25
+ 'packageId': z.string().describe('Immutable package version.'),
26
+ 'name': z.string().describe('Package label.'),
27
+ 'purpose': z.string().describe('User-facing purpose.'),
28
+ 'hasHostHalf': z.boolean().describe('Whether this version contains Host code.'),
29
+ 'hasClientHalf': z.boolean().describe('Whether this version contains Client code.'),
30
+ })).describe('Immutable versions in define order.'),
31
+ 'currentPackageId': z.string().optional().describe('Last package that completed activation successfully.'),
32
+ 'nextPackageId': z.string().optional().describe('Package selected for a failed or in-progress transition.'),
39
33
  'activeRun': z.object({
40
- 'pluginRunId': z.intersection(z.string(), z.unknown()),
41
- 'packageId': z.intersection(z.string(), z.unknown()),
42
- }).optional(),
34
+ 'pluginRunId': z.string(),
35
+ 'packageId': z.string(),
36
+ }).optional().describe('Current activation, absent while stopped.'),
43
37
  'latestRun': z.object({
44
- 'pluginRunId': z.intersection(z.string(), z.unknown()),
45
- 'packageId': z.intersection(z.string(), z.unknown()),
46
- 'mode': z.union([z.literal("run"), z.literal("update")]),
47
- 'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("rejected"), z.literal("awaiting-approval"), z.literal("starting-host"), z.literal("client-pending"), z.literal("waiting"), z.literal("stopped")]),
48
- 'approvalRequestId': z.intersection(z.string(), z.unknown()).optional(),
49
- 'requiresApproval': z.boolean().optional(),
38
+ 'pluginRunId': z.string().describe('Exact attempt identity.'),
39
+ 'packageId': z.string().describe('Target Package.'),
40
+ 'mode': z.union([z.literal("run"), z.literal("update")]).describe('Explicit run/update intent.'),
41
+ 'status': z.union([z.literal("cancelled"), z.literal("failed"), z.literal("running"), z.literal("rejected"), z.literal("awaiting-approval"), z.literal("starting-host"), z.literal("client-pending"), z.literal("waiting"), z.literal("stopped")]).describe('Current attempt state.'),
42
+ 'approvalRequestId': z.string().optional().describe('Pending Client activation request; it represents approval only when `requiresApproval` is true.'),
43
+ 'requiresApproval': z.boolean().optional().describe('Whether the pending Client activation requires a user decision.'),
50
44
  'host': z.object({
51
- 'status': z.union([z.literal("failed"), z.literal("running"), z.literal("pending"), z.literal("waiting"), z.literal("stopped"), z.literal("absent")]),
52
- 'waitingFor': z.array(z.string()),
53
- 'error': z.string().optional(),
54
- }),
45
+ 'status': z.union([z.literal("failed"), z.literal("running"), z.literal("pending"), z.literal("waiting"), z.literal("stopped"), z.literal("absent")]).describe('Lifecycle state of this half.'),
46
+ 'waitingFor': z.array(z.string()).describe('Services still needed by a successfully created Fiber.'),
47
+ 'error': z.string().optional().describe('Failure text for this half.'),
48
+ }).describe('Host-half state.'),
55
49
  'client': z.object({
56
- 'status': z.union([z.literal("failed"), z.literal("running"), z.literal("pending"), z.literal("waiting"), z.literal("stopped"), z.literal("absent")]),
57
- 'waitingFor': z.array(z.string()),
58
- 'error': z.string().optional(),
59
- }),
50
+ 'status': z.union([z.literal("failed"), z.literal("running"), z.literal("pending"), z.literal("waiting"), z.literal("stopped"), z.literal("absent")]).describe('Lifecycle state of this half.'),
51
+ 'waitingFor': z.array(z.string()).describe('Services still needed by a successfully created Fiber.'),
52
+ 'error': z.string().optional().describe('Failure text for this half.'),
53
+ }).describe('Client-half state.'),
60
54
  'error': z.object({
61
- 'phase': z.union([z.literal("approval"), z.literal("host-load"), z.literal("host-apply"), z.literal("client-load"), z.literal("client-apply"), z.literal("client-render")]),
62
- 'message': z.string(),
63
- 'stack': z.string().optional(),
64
- 'pluginId': z.intersection(z.string(), z.unknown()),
65
- 'packageId': z.intersection(z.string(), z.unknown()),
66
- 'pluginRunId': z.intersection(z.string(), z.unknown()),
67
- }).optional(),
68
- }).optional(),
55
+ 'phase': z.union([z.literal("approval"), z.literal("host-load"), z.literal("host-apply"), z.literal("client-load"), z.literal("client-apply"), z.literal("client-render")]).describe('Stage that failed.'),
56
+ 'message': z.string().describe('Original failure text.'),
57
+ 'stack': z.string().optional().describe('Original failure stack when available.'),
58
+ 'pluginId': z.string().describe('Stable Plugin identity.'),
59
+ 'packageId': z.string().describe('Immutable Package identity.'),
60
+ 'pluginRunId': z.string().describe('Exact attempt identity.'),
61
+ }).optional().describe('Most recent failure.'),
62
+ }).optional().describe('Latest activation attempt, including pending approval and diagnostics.'),
69
63
  })))
70
64
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_0$schema$value
71
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_0$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
65
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_0$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_0$schema$value ??= z.string())
72
66
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_1$schema$value
73
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_1$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
67
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_1$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_1$schema$value ??= z.string())
74
68
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_2$schema$value
75
69
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_2$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_2$schema$value ??= z.string())
76
70
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_3$schema$value
77
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_3$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_3$schema$value ??= z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema3())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema3()))]))
71
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_3$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_3$schema$value ??= z.json())
78
72
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_result$schema$value
79
73
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_result$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_result$schema$value ??= z.union([z.object({
80
74
  'ok': z.literal(true),
81
- 'value': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema4())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema4()))]),
82
- }), z.intersection(z.object({
75
+ 'value': z.json(),
76
+ }), z.object({
83
77
  'ok': z.literal(false),
84
78
  'code': z.union([z.literal("plugin-not-running"), z.literal("stale-run"), z.literal("method-not-found"), z.literal("handler-error")]),
85
- }), z.object({
86
- 'message': z.string(),
87
- 'stack': z.string().optional(),
88
- }))]))
79
+ 'message': z.string().describe('Original error message.'),
80
+ 'stack': z.string().optional().describe('Original stack when the thrown value supplied one.'),
81
+ })]))
89
82
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_0$schema$value
90
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_0$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
83
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_0$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_0$schema$value ??= z.string())
91
84
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_1$schema$value
92
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_1$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
85
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_1$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_1$schema$value ??= z.string())
93
86
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_2$schema$value
94
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_2$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_2$schema$value ??= z.intersection(z.string(), z.unknown()))
87
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_2$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_2$schema$value ??= z.string())
95
88
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_3$schema$value
96
89
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_3$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_3$schema$value ??= z.object({
97
- 'message': z.string(),
98
- 'stack': z.string().optional(),
90
+ 'message': z.string().describe('Original error message.'),
91
+ 'stack': z.string().optional().describe('Original stack when the thrown value supplied one.'),
99
92
  }))
100
93
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_result$schema$value
101
94
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_result$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_result$schema$value ??= z.literal(null))
102
95
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_0$schema$value
103
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_0$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
96
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_0$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_0$schema$value ??= z.string())
104
97
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_1$schema$value
105
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_1$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
98
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_1$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_1$schema$value ??= z.string())
106
99
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_2$schema$value
107
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_2$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_2$schema$value ??= z.intersection(z.string(), z.unknown()))
100
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_2$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_2$schema$value ??= z.string())
108
101
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_3$schema$value
109
102
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_3$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_3$schema$value ??= z.object({
110
- 'slot': z.string(),
111
- 'message': z.string(),
112
- 'stack': z.string().optional(),
113
- 'abdicated': z.boolean(),
103
+ 'slot': z.string().describe('Slot whose component failed.'),
104
+ 'message': z.string().describe('Render failure text.'),
105
+ 'stack': z.string().optional().describe('Original render failure stack when available.'),
106
+ 'abdicated': z.boolean().describe('Whether the failing contribution relinquished its slot.'),
114
107
  }))
115
108
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_result$schema$value
116
109
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_result$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_result$schema$value ??= z.literal(null))
117
110
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_0$schema$value
118
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_0$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
111
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_0$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_0$schema$value ??= z.string())
119
112
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_1$schema$value
120
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_1$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
113
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_1$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_1$schema$value ??= z.string())
121
114
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_2$schema$value
122
115
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_2$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_2$schema$value ??= z.union([z.object({
123
116
  'ok': z.literal(true),
124
- 'data': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema2())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema2()))]),
117
+ 'data': z.json(),
125
118
  }), z.object({
126
119
  'ok': z.literal(false),
127
120
  'reason': z.union([z.literal("cancelled"), z.literal("provider-missing"), z.literal("method-missing"), z.literal("invalid-input"), z.literal("provider-error")]),
@@ -129,117 +122,116 @@ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuer
129
122
  })]))
130
123
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_result$schema$value
131
124
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_result$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_result$schema$value ??= z.object({
132
- 'accepted': z.boolean(),
125
+ 'accepted': z.boolean().describe('True only for a valid success that settles the query; false for retained failures and unknown, timed out, cancelled, or late answers.'),
133
126
  }))
134
127
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_0$schema$value
135
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_0$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
128
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_0$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_0$schema$value ??= z.string())
136
129
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_1$schema$value
137
130
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_1$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_1$schema$value ??= z.union([z.object({
138
131
  'ok': z.literal(true),
139
- 'pluginRunId': z.intersection(z.string(), z.unknown()),
132
+ 'pluginRunId': z.string(),
140
133
  'waitingFor': z.array(z.string()).optional(),
141
134
  }), z.object({
142
135
  'ok': z.literal(false),
143
136
  'reason': z.union([z.literal("rejected"), z.literal("host-half-failed"), z.literal("client-half-failed")]),
144
- 'pluginRunId': z.intersection(z.string(), z.unknown()).optional(),
145
- 'startedHere': z.boolean().optional(),
137
+ 'pluginRunId': z.string().optional().describe('Activation that failed; absent for a refusal before activation.'),
138
+ 'startedHere': z.boolean().optional().describe('Whether this page created the failed activation instead of attaching to it.'),
146
139
  'message': z.string().optional(),
147
140
  'stack': z.string().optional(),
148
141
  })]))
149
142
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_result$schema$value
150
143
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_result$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_result$schema$value ??= z.object({
151
- 'accepted': z.boolean(),
144
+ 'accepted': z.boolean().describe('False for late, unknown, or stale answers.'),
152
145
  }))
153
146
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_0$schema$value
154
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_0$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
147
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_0$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_0$schema$value ??= z.string())
155
148
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_1$schema$value
156
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_1$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
149
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_1$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_1$schema$value ??= z.string())
157
150
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_2$schema$value
158
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_2$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_2$schema$value ??= z.intersection(z.string(), z.unknown()))
151
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_2$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_2$schema$value ??= z.string())
159
152
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_3$schema$value
160
153
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_3$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_3$schema$value ??= z.union([z.literal("run"), z.literal("update")]))
161
154
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_4$schema$value
162
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_4$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_4$schema$value ??= z.union([z.literal(null), z.intersection(z.string(), z.unknown())]))
155
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_4$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_4$schema$value ??= z.union([z.literal(null), z.string()]))
163
156
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_5$schema$value
164
157
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_5$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_5$schema$value ??= z.boolean())
165
158
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_result$schema$value
166
159
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_result$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_result$schema$value ??= z.union([z.object({
167
160
  'ok': z.literal(true),
168
- 'pluginId': z.intersection(z.string(), z.unknown()),
169
- 'packageId': z.intersection(z.string(), z.unknown()),
170
- 'pluginRunId': z.intersection(z.string(), z.unknown()),
161
+ 'pluginId': z.string(),
162
+ 'packageId': z.string(),
163
+ 'pluginRunId': z.string(),
171
164
  'waitingFor': z.array(z.string()),
172
- 'startedHere': z.boolean(),
173
- }), z.intersection(z.object({
174
- 'ok': z.literal(false),
165
+ 'startedHere': z.boolean().describe('False when a panel merely attaches this page to an already active run.'),
175
166
  }), z.object({
176
- 'message': z.string(),
177
- 'stack': z.string().optional(),
178
- }))]))
167
+ 'ok': z.literal(false),
168
+ 'message': z.string().describe('Original error message.'),
169
+ 'stack': z.string().optional().describe('Original stack when the thrown value supplied one.'),
170
+ })]))
179
171
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_0$schema$value
180
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_0$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
172
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_0$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_0$schema$value ??= z.string())
181
173
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_1$schema$value
182
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_1$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
174
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_1$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_1$schema$value ??= z.string())
183
175
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_2$schema$value
184
176
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_2$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_2$schema$value ??= z.union([z.object({
185
177
  'ok': z.literal(true),
186
- 'pluginRunId': z.intersection(z.string(), z.unknown()),
178
+ 'pluginRunId': z.string(),
187
179
  'waitingFor': z.array(z.string()).optional(),
188
180
  }), z.object({
189
181
  'ok': z.literal(false),
190
182
  'reason': z.union([z.literal("rejected"), z.literal("host-half-failed"), z.literal("client-half-failed")]),
191
- 'pluginRunId': z.intersection(z.string(), z.unknown()).optional(),
192
- 'startedHere': z.boolean().optional(),
183
+ 'pluginRunId': z.string().optional().describe('Activation that failed; absent for a refusal before activation.'),
184
+ 'startedHere': z.boolean().optional().describe('Whether this page created the failed activation instead of attaching to it.'),
193
185
  'message': z.string().optional(),
194
186
  'stack': z.string().optional(),
195
187
  })]))
196
188
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_result$schema$value
197
189
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_result$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_result$schema$value ??= z.union([z.object({
198
190
  'ok': z.literal(true),
199
- 'status': z.union([z.literal("running"), z.literal("awaiting-approval"), z.literal("starting")]),
200
- 'pluginId': z.intersection(z.string(), z.unknown()),
201
- 'packageId': z.intersection(z.string(), z.unknown()),
202
- 'pluginRunId': z.intersection(z.string(), z.unknown()),
203
- 'waitingFor': z.array(z.string()),
204
- 'clientWaitingFor': z.array(z.string()).optional(),
205
- 'currentPackageId': z.intersection(z.string(), z.unknown()).optional(),
206
- 'nextPackageId': z.intersection(z.string(), z.unknown()).optional(),
207
- 'mode': z.union([z.literal("run"), z.literal("update")]),
191
+ 'status': z.union([z.literal("running"), z.literal("awaiting-approval"), z.literal("starting")]).describe('Whether activation completed synchronously, is starting in a Client, or awaits user approval.'),
192
+ 'pluginId': z.string(),
193
+ 'packageId': z.string(),
194
+ 'pluginRunId': z.string(),
195
+ 'waitingFor': z.array(z.string()).describe('Missing Host services; a parked Fiber is a successful activation.'),
196
+ 'clientWaitingFor': z.array(z.string()).optional().describe('Missing Client services reported by the approving page.'),
197
+ 'currentPackageId': z.string().optional().describe('Last fully successful Package.'),
198
+ 'nextPackageId': z.string().optional().describe('Selected transition target.'),
199
+ 'mode': z.union([z.literal("run"), z.literal("update")]).describe('Explicit lifecycle intent.'),
208
200
  }), z.object({
209
201
  'ok': z.literal(false),
210
- 'reason': z.union([z.literal("cancelled"), z.literal("plugin-missing"), z.literal("rejected"), z.literal("host-half-failed"), z.literal("client-half-failed"), z.literal("package-missing"), z.literal("invalid-mode"), z.literal("transition-in-flight"), z.literal("not-running")]),
202
+ 'reason': z.union([z.literal("cancelled"), z.literal("not-running"), z.literal("plugin-missing"), z.literal("rejected"), z.literal("host-half-failed"), z.literal("client-half-failed"), z.literal("package-missing"), z.literal("invalid-mode"), z.literal("transition-in-flight")]),
211
203
  'message': z.string(),
212
- 'stack': z.string().optional(),
204
+ 'stack': z.string().optional().describe('Original failure stack when available.'),
213
205
  })]))
214
206
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_0$schema$value
215
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_0$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
207
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_0$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_0$schema$value ??= z.string())
216
208
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_1$schema$value
217
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_1$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
209
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_1$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_1$schema$value ??= z.string())
218
210
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_result$schema$value
219
211
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_result$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_result$schema$value ??= z.union([z.object({
220
212
  'ok': z.literal(true),
221
213
  }), z.object({
222
214
  'ok': z.literal(false),
223
- 'reason': z.union([z.literal("plugin-missing"), z.literal("not-running")]),
215
+ 'reason': z.union([z.literal("not-running"), z.literal("plugin-missing")]),
224
216
  'message': z.string(),
225
217
  })]))
226
218
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_syncInspectManifest_parameter_0$schema$value
227
219
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_syncInspectManifest_parameter_0$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_syncInspectManifest_parameter_0$schema$value ??= z.array(z.object({
228
- 'id': z.string(),
229
- 'description': z.string(),
220
+ 'id': z.string().describe('Provider identity, unique within one platform.'),
221
+ 'description': z.string().describe('Capability described by this provider.'),
230
222
  'methods': z.array(z.object({
231
- 'name': z.string(),
232
- 'description': z.string(),
233
- 'inputSchema': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema()))]),
234
- 'outputSchema': z.union([z.literal(null), z.string(), z.number(), z.literal(false), z.literal(true), z.array(z.lazy(() => JsonValueRemoteCodec$schema())), z.record(z.string(), z.lazy(() => JsonValueRemoteCodec$schema()))]),
235
- })),
223
+ 'name': z.string().describe('Method name, unique within its provider.'),
224
+ 'description': z.string().describe('What the query returns and when to use it.'),
225
+ 'inputSchema': z.json().describe('JSON Schema accepted by the query.'),
226
+ 'outputSchema': z.json().describe('JSON Schema produced by the query.'),
227
+ })).describe('Explicit read-only queries.'),
236
228
  })))
237
229
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_syncInspectManifest_result$schema$value
238
230
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_syncInspectManifest_result$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_syncInspectManifest_result$schema$value ??= z.literal(null))
239
231
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_0$schema$value
240
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_0$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
232
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_0$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_0$schema$value ??= z.string())
241
233
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_1$schema$value
242
- const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_1$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
234
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_1$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_1$schema$value ??= z.string())
243
235
  let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_result$schema$value
244
236
  const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_result$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_result$schema$value ??= z.union([z.object({
245
237
  'ok': z.literal(true),
@@ -249,18 +241,127 @@ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_
249
241
  'reason': z.literal("plugin-missing"),
250
242
  'message': z.string(),
251
243
  })]))
244
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_0_strict$schema$value
245
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_0_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_0_strict$schema$value ??= z.string())
246
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_1_strict$schema$value
247
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_1_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_1_strict$schema$value ??= z.string())
248
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_2_strict$schema$value
249
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_2_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_2_strict$schema$value ??= z.string())
250
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_0_strict$schema$value
251
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_0_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_0_strict$schema$value ??= z.string())
252
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_1_strict$schema$value
253
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_1_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_1_strict$schema$value ??= z.string())
254
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_2_strict$schema$value
255
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_2_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_2_strict$schema$value ??= z.string())
256
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_3_strict$schema$value
257
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_3_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_3_strict$schema$value ??= z.json())
258
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_0_strict$schema$value
259
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_0_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_0_strict$schema$value ??= z.string())
260
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_1_strict$schema$value
261
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_1_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_1_strict$schema$value ??= z.string())
262
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_2_strict$schema$value
263
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_2_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_2_strict$schema$value ??= z.string())
264
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_3_strict$schema$value
265
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_3_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_3_strict$schema$value ??= z.strictObject({
266
+ 'message': z.string().describe('Original error message.'),
267
+ 'stack': z.string().optional().describe('Original stack when the thrown value supplied one.'),
268
+ }))
269
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_0_strict$schema$value
270
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_0_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_0_strict$schema$value ??= z.string())
271
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_1_strict$schema$value
272
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_1_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_1_strict$schema$value ??= z.string())
273
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_2_strict$schema$value
274
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_2_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_2_strict$schema$value ??= z.string())
275
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_3_strict$schema$value
276
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_3_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_3_strict$schema$value ??= z.strictObject({
277
+ 'slot': z.string().describe('Slot whose component failed.'),
278
+ 'message': z.string().describe('Render failure text.'),
279
+ 'stack': z.string().optional().describe('Original render failure stack when available.'),
280
+ 'abdicated': z.boolean().describe('Whether the failing contribution relinquished its slot.'),
281
+ }))
282
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_0_strict$schema$value
283
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_0_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_0_strict$schema$value ??= z.string())
284
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_1_strict$schema$value
285
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_1_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_1_strict$schema$value ??= z.string())
286
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_2_strict$schema$value
287
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_2_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_2_strict$schema$value ??= z.union([z.strictObject({
288
+ 'ok': z.literal(true),
289
+ 'data': z.json(),
290
+ }), z.strictObject({
291
+ 'ok': z.literal(false),
292
+ 'reason': z.union([z.literal("cancelled"), z.literal("provider-missing"), z.literal("method-missing"), z.literal("invalid-input"), z.literal("provider-error")]),
293
+ 'message': z.string(),
294
+ })]))
295
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_0_strict$schema$value
296
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_0_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_0_strict$schema$value ??= z.string())
297
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_1_strict$schema$value
298
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_1_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_1_strict$schema$value ??= z.union([z.strictObject({
299
+ 'ok': z.literal(true),
300
+ 'pluginRunId': z.string(),
301
+ 'waitingFor': z.array(z.string()).optional(),
302
+ }), z.strictObject({
303
+ 'ok': z.literal(false),
304
+ 'reason': z.union([z.literal("rejected"), z.literal("host-half-failed"), z.literal("client-half-failed")]),
305
+ 'pluginRunId': z.string().optional().describe('Activation that failed; absent for a refusal before activation.'),
306
+ 'startedHere': z.boolean().optional().describe('Whether this page created the failed activation instead of attaching to it.'),
307
+ 'message': z.string().optional(),
308
+ 'stack': z.string().optional(),
309
+ })]))
310
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_0_strict$schema$value
311
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_0_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_0_strict$schema$value ??= z.string())
312
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_1_strict$schema$value
313
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_1_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_1_strict$schema$value ??= z.string())
314
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_2_strict$schema$value
315
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_2_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_2_strict$schema$value ??= z.string())
316
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_3_strict$schema$value
317
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_3_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_3_strict$schema$value ??= z.union([z.literal("run"), z.literal("update")]))
318
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_4_strict$schema$value
319
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_4_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_4_strict$schema$value ??= z.union([z.literal(null), z.string()]))
320
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_5_strict$schema$value
321
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_5_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_5_strict$schema$value ??= z.boolean())
322
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_0_strict$schema$value
323
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_0_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_0_strict$schema$value ??= z.string())
324
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_1_strict$schema$value
325
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_1_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_1_strict$schema$value ??= z.string())
326
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_2_strict$schema$value
327
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_2_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_2_strict$schema$value ??= z.union([z.strictObject({
328
+ 'ok': z.literal(true),
329
+ 'pluginRunId': z.string(),
330
+ 'waitingFor': z.array(z.string()).optional(),
331
+ }), z.strictObject({
332
+ 'ok': z.literal(false),
333
+ 'reason': z.union([z.literal("rejected"), z.literal("host-half-failed"), z.literal("client-half-failed")]),
334
+ 'pluginRunId': z.string().optional().describe('Activation that failed; absent for a refusal before activation.'),
335
+ 'startedHere': z.boolean().optional().describe('Whether this page created the failed activation instead of attaching to it.'),
336
+ 'message': z.string().optional(),
337
+ 'stack': z.string().optional(),
338
+ })]))
339
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_0_strict$schema$value
340
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_0_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_0_strict$schema$value ??= z.string())
341
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_1_strict$schema$value
342
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_1_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_1_strict$schema$value ??= z.string())
343
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_syncInspectManifest_parameter_0_strict$schema$value
344
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_syncInspectManifest_parameter_0_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_syncInspectManifest_parameter_0_strict$schema$value ??= z.array(z.strictObject({
345
+ 'id': z.string().describe('Provider identity, unique within one platform.'),
346
+ 'description': z.string().describe('Capability described by this provider.'),
347
+ 'methods': z.array(z.strictObject({
348
+ 'name': z.string().describe('Method name, unique within its provider.'),
349
+ 'description': z.string().describe('What the query returns and when to use it.'),
350
+ 'inputSchema': z.json().describe('JSON Schema accepted by the query.'),
351
+ 'outputSchema': z.json().describe('JSON Schema produced by the query.'),
352
+ })).describe('Explicit read-only queries.'),
353
+ })))
354
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_0_strict$schema$value
355
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_0_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_0_strict$schema$value ??= z.string())
356
+ let _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_1_strict$schema$value
357
+ const _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_1_strict$schema = () => (_deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_1_strict$schema$value ??= z.string())
252
358
 
253
- export const TYPERT = {
359
+ const $remote = createTypertRemoteInfo({
254
360
  package: '@deepseek-ai/dsh-cordis-host-runner',
255
- face: 'host',
256
- schemas: [
257
- ],
258
- invocations: [
259
- {
260
- id: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/getClientCode',
361
+ methods: {
362
+ 'dynamicCordisRunner/getClientCode': {
261
363
  service: 'dynamicCordisRunner',
262
- namespace: 'dynamicCordisRunner',
263
- method: 'getClientCode',
364
+ description: 'Fetch Client code for the exact active run.',
264
365
  invocation: { kind: 'direct' },
265
366
  scope: {
266
367
  context: 'agent',
@@ -270,32 +371,54 @@ export const TYPERT = {
270
371
  {
271
372
  name: 'agent',
272
373
  wire: 'agentId',
374
+ description: 'Agent whose Session must own the Plugin.',
273
375
  source: 'lookup',
274
376
  lookup: 'agent',
275
377
  codec: {
276
378
  mode: 'strict',
277
379
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
278
380
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_0$schema,
381
+ jsonSchema: {"type":"string"},
382
+ },
383
+ strictCodec: {
384
+ mode: 'strict',
385
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
386
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_0_strict$schema,
387
+ jsonSchema: {"type":"string"},
279
388
  },
280
389
  },
281
390
  {
282
391
  name: 'pluginId',
283
- wire: 'pluginId',
392
+ description: 'Stable Plugin identity to read.',
284
393
  source: 'json',
285
394
  codec: {
286
395
  mode: 'strict',
287
396
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId',
288
397
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_1$schema,
398
+ jsonSchema: {"type":"string"},
399
+ },
400
+ strictCodec: {
401
+ mode: 'strict',
402
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId',
403
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_1_strict$schema,
404
+ jsonSchema: {"type":"string"},
289
405
  },
290
406
  },
291
407
  {
292
408
  name: 'pluginRunId',
293
- wire: 'pluginRunId',
409
+ description: 'Exact active run authorized to receive source.',
294
410
  source: 'json',
295
411
  codec: {
296
412
  mode: 'strict',
297
413
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginRunId',
298
414
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_2$schema,
415
+ jsonSchema: {"type":"string"},
416
+ },
417
+ strictCodec: {
418
+ mode: 'strict',
419
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginRunId',
420
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_parameter_2_strict$schema,
421
+ jsonSchema: {"type":"string"},
299
422
  },
300
423
  },
301
424
  ],
@@ -303,14 +426,14 @@ export const TYPERT = {
303
426
  mode: 'strict',
304
427
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisClientSource',
305
428
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_getClientCode_result$schema,
429
+ description: 'Client source and its Plugin, Package, and run identities.',
430
+ jsonSchema: {"type":"object","properties":{"code":{"type":"string","description":"Browser JavaScript body."},"name":{"type":"string","description":"Package label."},"pluginId":{"type":"string","description":"Stable plugin instance."},"packageId":{"type":"string","description":"Immutable source version."},"pluginRunId":{"type":"string","description":"Exact activation the source belongs to."}},"required":["code","name","pluginId","packageId","pluginRunId"],"additionalProperties":true},
306
431
  },
307
432
  sourceLocation: {"file":"packages/extensions/cordis-host-runner/src/index.ts","line":402,"column":3},
308
433
  },
309
- {
310
- id: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/inventory',
434
+ 'dynamicCordisRunner/inventory': {
311
435
  service: 'dynamicCordisRunner',
312
- namespace: 'dynamicCordisRunner',
313
- method: 'inventory',
436
+ description: 'Frame-wide inventory, grouped as one row per stable Plugin.',
314
437
  invocation: { kind: 'direct' },
315
438
  parameters: [
316
439
  ],
@@ -318,54 +441,82 @@ export const TYPERT = {
318
441
  mode: 'strict',
319
442
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/inventory:result',
320
443
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_inventory_result$schema,
444
+ description: 'Source-free metadata for every process-local Plugin.',
445
+ jsonSchema: {"type":"array","items":{"type":"object","properties":{"pluginId":{"type":"string","description":"Stable plugin instance."},"agentId":{"type":"string","description":"Session that owns this plugin."},"packages":{"type":"array","items":{"type":"object","properties":{"packageId":{"type":"string","description":"Immutable package version."},"name":{"type":"string","description":"Package label."},"purpose":{"type":"string","description":"User-facing purpose."},"hasHostHalf":{"type":"boolean","description":"Whether this version contains Host code."},"hasClientHalf":{"type":"boolean","description":"Whether this version contains Client code."}},"required":["packageId","name","purpose","hasHostHalf","hasClientHalf"],"additionalProperties":true},"description":"Immutable versions in define order."},"currentPackageId":{"type":"string","description":"Last package that completed activation successfully."},"nextPackageId":{"type":"string","description":"Package selected for a failed or in-progress transition."},"activeRun":{"type":"object","properties":{"pluginRunId":{"type":"string"},"packageId":{"type":"string"}},"required":["pluginRunId","packageId"],"additionalProperties":true,"description":"Current activation, absent while stopped."},"latestRun":{"type":"object","properties":{"pluginRunId":{"type":"string","description":"Exact attempt identity."},"packageId":{"type":"string","description":"Target Package."},"mode":{"type":"string","enum":["run","update"],"description":"Explicit run/update intent."},"status":{"type":"string","enum":["cancelled","failed","running","rejected","awaiting-approval","starting-host","client-pending","waiting","stopped"],"description":"Current attempt state."},"approvalRequestId":{"type":"string","description":"Pending Client activation request; it represents approval only when `requiresApproval` is true."},"requiresApproval":{"type":"boolean","description":"Whether the pending Client activation requires a user decision."},"host":{"type":"object","properties":{"status":{"type":"string","enum":["failed","running","pending","waiting","stopped","absent"],"description":"Lifecycle state of this half."},"waitingFor":{"type":"array","items":{"type":"string"},"description":"Services still needed by a successfully created Fiber."},"error":{"type":"string","description":"Failure text for this half."}},"required":["status","waitingFor"],"additionalProperties":true,"description":"Host-half state."},"client":{"type":"object","properties":{"status":{"type":"string","enum":["failed","running","pending","waiting","stopped","absent"],"description":"Lifecycle state of this half."},"waitingFor":{"type":"array","items":{"type":"string"},"description":"Services still needed by a successfully created Fiber."},"error":{"type":"string","description":"Failure text for this half."}},"required":["status","waitingFor"],"additionalProperties":true,"description":"Client-half state."},"error":{"type":"object","properties":{"phase":{"type":"string","enum":["approval","host-load","host-apply","client-load","client-apply","client-render"],"description":"Stage that failed."},"message":{"type":"string","description":"Original failure text."},"stack":{"type":"string","description":"Original failure stack when available."},"pluginId":{"type":"string","description":"Stable Plugin identity."},"packageId":{"type":"string","description":"Immutable Package identity."},"pluginRunId":{"type":"string","description":"Exact attempt identity."}},"required":["phase","message","pluginId","packageId","pluginRunId"],"additionalProperties":true,"description":"Most recent failure."}},"required":["pluginRunId","packageId","mode","status","host","client"],"additionalProperties":true,"description":"Latest activation attempt, including pending approval and diagnostics."}},"required":["pluginId","agentId","packages"],"additionalProperties":true}},
321
446
  },
322
447
  sourceLocation: {"file":"packages/extensions/cordis-host-runner/src/index.ts","line":544,"column":3},
323
448
  },
324
- {
325
- id: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/invoke',
449
+ 'dynamicCordisRunner/invoke': {
326
450
  service: 'dynamicCordisRunner',
327
- namespace: 'dynamicCordisRunner',
328
- method: 'invoke',
451
+ description: 'Invoke an active Host method while rejecting stale Client runs.',
329
452
  invocation: { kind: 'direct' },
330
453
  parameters: [
331
454
  {
332
455
  name: 'pluginId',
333
- wire: 'pluginId',
456
+ description: 'Stable Plugin identity that owns the method.',
334
457
  source: 'json',
335
458
  codec: {
336
459
  mode: 'strict',
337
460
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId',
338
461
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_0$schema,
462
+ jsonSchema: {"type":"string"},
463
+ },
464
+ strictCodec: {
465
+ mode: 'strict',
466
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId',
467
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_0_strict$schema,
468
+ jsonSchema: {"type":"string"},
339
469
  },
340
470
  },
341
471
  {
342
472
  name: 'pluginRunId',
343
- wire: 'pluginRunId',
473
+ description: 'Exact active run authorizing the call.',
344
474
  source: 'json',
345
475
  codec: {
346
476
  mode: 'strict',
347
477
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginRunId',
348
478
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_1$schema,
479
+ jsonSchema: {"type":"string"},
480
+ },
481
+ strictCodec: {
482
+ mode: 'strict',
483
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginRunId',
484
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_1_strict$schema,
485
+ jsonSchema: {"type":"string"},
349
486
  },
350
487
  },
351
488
  {
352
489
  name: 'method',
353
- wire: 'method',
490
+ description: 'Registered Host handler name.',
354
491
  source: 'json',
355
492
  codec: {
356
493
  mode: 'strict',
357
494
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/invoke:method',
358
495
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_2$schema,
496
+ jsonSchema: {"type":"string"},
497
+ },
498
+ strictCodec: {
499
+ mode: 'strict',
500
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/invoke:method',
501
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_2_strict$schema,
502
+ jsonSchema: {"type":"string"},
359
503
  },
360
504
  },
361
505
  {
362
506
  name: 'args',
363
- wire: 'args',
507
+ description: 'JSON argument delivered to the handler.',
364
508
  source: 'json',
365
509
  codec: {
366
510
  mode: 'strict',
367
511
  typeSymbol: '@deepseek-ai/dsh-util-values#JsonValue',
368
512
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_3$schema,
513
+ jsonSchema: {},
514
+ },
515
+ strictCodec: {
516
+ mode: 'strict',
517
+ typeSymbol: '@deepseek-ai/dsh-util-values#JsonValue',
518
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_parameter_3_strict$schema,
519
+ jsonSchema: {},
369
520
  },
370
521
  },
371
522
  ],
@@ -373,14 +524,14 @@ export const TYPERT = {
373
524
  mode: 'strict',
374
525
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisInvokeResult',
375
526
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_invoke_result$schema,
527
+ description: 'The JSON result or a typed invocation failure.',
528
+ jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"value":{}},"required":["ok","value"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"code":{"type":"string","enum":["plugin-not-running","stale-run","method-not-found","handler-error"]},"message":{"type":"string","description":"Original error message."},"stack":{"type":"string","description":"Original stack when the thrown value supplied one."}},"required":["ok","code","message"],"additionalProperties":true}]},
376
529
  },
377
530
  sourceLocation: {"file":"packages/extensions/cordis-host-runner/src/index.ts","line":760,"column":9},
378
531
  },
379
- {
380
- id: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/reportClientGuardFailure',
532
+ 'dynamicCordisRunner/reportClientGuardFailure': {
381
533
  service: 'dynamicCordisRunner',
382
- namespace: 'dynamicCordisRunner',
383
- method: 'reportClientGuardFailure',
534
+ description: 'Report a Client guard rejection that happened after the Package completed activation.',
384
535
  invocation: { kind: 'direct' },
385
536
  scope: {
386
537
  context: 'agent',
@@ -390,42 +541,71 @@ export const TYPERT = {
390
541
  {
391
542
  name: 'agent',
392
543
  wire: 'agentId',
544
+ description: 'Agent whose Session must own the Plugin.',
393
545
  source: 'lookup',
394
546
  lookup: 'agent',
395
547
  codec: {
396
548
  mode: 'strict',
397
549
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
398
550
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_0$schema,
551
+ jsonSchema: {"type":"string"},
552
+ },
553
+ strictCodec: {
554
+ mode: 'strict',
555
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
556
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_0_strict$schema,
557
+ jsonSchema: {"type":"string"},
399
558
  },
400
559
  },
401
560
  {
402
561
  name: 'pluginId',
403
- wire: 'pluginId',
562
+ description: 'Stable Plugin identity whose Client code was rejected.',
404
563
  source: 'json',
405
564
  codec: {
406
565
  mode: 'strict',
407
566
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId',
408
567
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_1$schema,
568
+ jsonSchema: {"type":"string"},
569
+ },
570
+ strictCodec: {
571
+ mode: 'strict',
572
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId',
573
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_1_strict$schema,
574
+ jsonSchema: {"type":"string"},
409
575
  },
410
576
  },
411
577
  {
412
578
  name: 'pluginRunId',
413
- wire: 'pluginRunId',
579
+ description: 'Exact active run that produced the rejection.',
414
580
  source: 'json',
415
581
  codec: {
416
582
  mode: 'strict',
417
583
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginRunId',
418
584
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_2$schema,
585
+ jsonSchema: {"type":"string"},
586
+ },
587
+ strictCodec: {
588
+ mode: 'strict',
589
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginRunId',
590
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_2_strict$schema,
591
+ jsonSchema: {"type":"string"},
419
592
  },
420
593
  },
421
594
  {
422
595
  name: 'failure',
423
- wire: 'failure',
596
+ description: 'Original guard message and stack.',
424
597
  source: 'json',
425
598
  codec: {
426
599
  mode: 'strict',
427
600
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisErrorDetails',
428
601
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_3$schema,
602
+ jsonSchema: {"type":"object","properties":{"message":{"type":"string","description":"Original error message."},"stack":{"type":"string","description":"Original stack when the thrown value supplied one."}},"required":["message"],"additionalProperties":true},
603
+ },
604
+ strictCodec: {
605
+ mode: 'strict',
606
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisErrorDetails',
607
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_3_strict$schema,
608
+ jsonSchema: {"type":"object","properties":{"message":{"type":"string","description":"Original error message."},"stack":{"type":"string","description":"Original stack when the thrown value supplied one."}},"required":["message"],"additionalProperties":false},
429
609
  },
430
610
  },
431
611
  ],
@@ -433,14 +613,14 @@ export const TYPERT = {
433
613
  mode: 'strict',
434
614
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/reportClientGuardFailure:result',
435
615
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportClientGuardFailure_result$schema,
616
+ description: 'Null after reporting or ignoring a stale/startup failure.',
617
+ jsonSchema: {"type":"null","const":null},
436
618
  },
437
619
  sourceLocation: {"file":"packages/extensions/cordis-host-runner/src/index.ts","line":737,"column":9},
438
620
  },
439
- {
440
- id: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/reportRenderFailure',
621
+ 'dynamicCordisRunner/reportRenderFailure': {
441
622
  service: 'dynamicCordisRunner',
442
- namespace: 'dynamicCordisRunner',
443
- method: 'reportRenderFailure',
623
+ description: 'Record a post-load render failure for the exact active run.',
444
624
  invocation: { kind: 'direct' },
445
625
  scope: {
446
626
  context: 'agent',
@@ -450,42 +630,71 @@ export const TYPERT = {
450
630
  {
451
631
  name: 'agent',
452
632
  wire: 'agentId',
633
+ description: 'Agent whose Session must own the Plugin.',
453
634
  source: 'lookup',
454
635
  lookup: 'agent',
455
636
  codec: {
456
637
  mode: 'strict',
457
638
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
458
639
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_0$schema,
640
+ jsonSchema: {"type":"string"},
641
+ },
642
+ strictCodec: {
643
+ mode: 'strict',
644
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
645
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_0_strict$schema,
646
+ jsonSchema: {"type":"string"},
459
647
  },
460
648
  },
461
649
  {
462
650
  name: 'pluginId',
463
- wire: 'pluginId',
651
+ description: 'Stable Plugin identity that rendered.',
464
652
  source: 'json',
465
653
  codec: {
466
654
  mode: 'strict',
467
655
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId',
468
656
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_1$schema,
657
+ jsonSchema: {"type":"string"},
658
+ },
659
+ strictCodec: {
660
+ mode: 'strict',
661
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId',
662
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_1_strict$schema,
663
+ jsonSchema: {"type":"string"},
469
664
  },
470
665
  },
471
666
  {
472
667
  name: 'pluginRunId',
473
- wire: 'pluginRunId',
668
+ description: 'Exact active run that produced the failure.',
474
669
  source: 'json',
475
670
  codec: {
476
671
  mode: 'strict',
477
672
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginRunId',
478
673
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_2$schema,
674
+ jsonSchema: {"type":"string"},
675
+ },
676
+ strictCodec: {
677
+ mode: 'strict',
678
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginRunId',
679
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_2_strict$schema,
680
+ jsonSchema: {"type":"string"},
479
681
  },
480
682
  },
481
683
  {
482
684
  name: 'failure',
483
- wire: 'failure',
685
+ description: 'Slot, message, and entry-retirement result.',
484
686
  source: 'json',
485
687
  codec: {
486
688
  mode: 'strict',
487
689
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisRenderFailure',
488
690
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_3$schema,
691
+ jsonSchema: {"type":"object","properties":{"slot":{"type":"string","description":"Slot whose component failed."},"message":{"type":"string","description":"Render failure text."},"stack":{"type":"string","description":"Original render failure stack when available."},"abdicated":{"type":"boolean","description":"Whether the failing contribution relinquished its slot."}},"required":["slot","message","abdicated"],"additionalProperties":true},
692
+ },
693
+ strictCodec: {
694
+ mode: 'strict',
695
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisRenderFailure',
696
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_3_strict$schema,
697
+ jsonSchema: {"type":"object","properties":{"slot":{"type":"string","description":"Slot whose component failed."},"message":{"type":"string","description":"Render failure text."},"stack":{"type":"string","description":"Original render failure stack when available."},"abdicated":{"type":"boolean","description":"Whether the failing contribution relinquished its slot."}},"required":["slot","message","abdicated"],"additionalProperties":false},
489
698
  },
490
699
  },
491
700
  ],
@@ -493,14 +702,14 @@ export const TYPERT = {
493
702
  mode: 'strict',
494
703
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/reportRenderFailure:result',
495
704
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_reportRenderFailure_result$schema,
705
+ description: 'Null after recording or ignoring a stale report.',
706
+ jsonSchema: {"type":"null","const":null},
496
707
  },
497
708
  sourceLocation: {"file":"packages/extensions/cordis-host-runner/src/index.ts","line":703,"column":9},
498
709
  },
499
- {
500
- id: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/resolveInspectQuery',
710
+ 'dynamicCordisRunner/resolveInspectQuery': {
501
711
  service: 'dynamicCordisRunner',
502
- namespace: 'dynamicCordisRunner',
503
- method: 'resolveInspectQuery',
712
+ description: 'Submit a Client inspect result or failure for a pending query.',
504
713
  invocation: { kind: 'direct' },
505
714
  scope: {
506
715
  context: 'agent',
@@ -510,32 +719,54 @@ export const TYPERT = {
510
719
  {
511
720
  name: 'agent',
512
721
  wire: 'agentId',
722
+ description: 'Session that owns the query.',
513
723
  source: 'lookup',
514
724
  lookup: 'agent',
515
725
  codec: {
516
726
  mode: 'strict',
517
727
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
518
728
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_0$schema,
729
+ jsonSchema: {"type":"string"},
730
+ },
731
+ strictCodec: {
732
+ mode: 'strict',
733
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
734
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_0_strict$schema,
735
+ jsonSchema: {"type":"string"},
519
736
  },
520
737
  },
521
738
  {
522
739
  name: 'requestId',
523
- wire: 'requestId',
740
+ description: 'exact pending query identity.',
524
741
  source: 'json',
525
742
  codec: {
526
743
  mode: 'strict',
527
744
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisInspectRequestId',
528
745
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_1$schema,
746
+ jsonSchema: {"type":"string"},
747
+ },
748
+ strictCodec: {
749
+ mode: 'strict',
750
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisInspectRequestId',
751
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_1_strict$schema,
752
+ jsonSchema: {"type":"string"},
529
753
  },
530
754
  },
531
755
  {
532
756
  name: 'resolution',
533
- wire: 'resolution',
757
+ description: 'provider result or structured refusal.',
534
758
  source: 'json',
535
759
  codec: {
536
760
  mode: 'strict',
537
761
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisInspectQueryResolution',
538
762
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_2$schema,
763
+ jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"data":{}},"required":["ok","data"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"reason":{"type":"string","enum":["cancelled","provider-missing","method-missing","invalid-input","provider-error"]},"message":{"type":"string"}},"required":["ok","reason","message"],"additionalProperties":true}]},
764
+ },
765
+ strictCodec: {
766
+ mode: 'strict',
767
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisInspectQueryResolution',
768
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_2_strict$schema,
769
+ jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"data":{}},"required":["ok","data"],"additionalProperties":false},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"reason":{"type":"string","enum":["cancelled","provider-missing","method-missing","invalid-input","provider-error"]},"message":{"type":"string"}},"required":["ok","reason","message"],"additionalProperties":false}]},
539
770
  },
540
771
  },
541
772
  ],
@@ -543,34 +774,48 @@ export const TYPERT = {
543
774
  mode: 'strict',
544
775
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisInspectResolveAck',
545
776
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveInspectQuery_result$schema,
777
+ description: 'acknowledgement with accepted true only for a valid success that settles the query; pending-query failures return { accepted: false } and retain only the first diagnostic.',
778
+ jsonSchema: {"type":"object","properties":{"accepted":{"type":"boolean","description":"True only for a valid success that settles the query; false for retained failures and unknown, timed out, cancelled, or late answers."}},"required":["accepted"],"additionalProperties":true},
546
779
  },
547
780
  sourceLocation: {"file":"packages/extensions/cordis-host-runner/src/index.ts","line":530,"column":3},
548
781
  },
549
- {
550
- id: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/resolveRequestRun',
782
+ 'dynamicCordisRunner/resolveRequestRun': {
551
783
  service: 'dynamicCordisRunner',
552
- namespace: 'dynamicCordisRunner',
553
- method: 'resolveRequestRun',
784
+ description: 'Resolve one model-driven Client activation request.',
554
785
  invocation: { kind: 'direct' },
555
786
  parameters: [
556
787
  {
557
788
  name: 'requestId',
558
- wire: 'requestId',
789
+ description: 'Request identity to settle once.',
559
790
  source: 'json',
560
791
  codec: {
561
792
  mode: 'strict',
562
793
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#ApprovalRequestId',
563
794
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_0$schema,
795
+ jsonSchema: {"type":"string"},
796
+ },
797
+ strictCodec: {
798
+ mode: 'strict',
799
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#ApprovalRequestId',
800
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_0_strict$schema,
801
+ jsonSchema: {"type":"string"},
564
802
  },
565
803
  },
566
804
  {
567
805
  name: 'resolution',
568
- wire: 'resolution',
806
+ description: 'Browser refusal or exact Client activation result.',
569
807
  source: 'json',
570
808
  codec: {
571
809
  mode: 'strict',
572
810
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisRunResolution',
573
811
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_1$schema,
812
+ jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"pluginRunId":{"type":"string"},"waitingFor":{"type":"array","items":{"type":"string"}}},"required":["ok","pluginRunId"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"reason":{"type":"string","enum":["rejected","host-half-failed","client-half-failed"]},"pluginRunId":{"type":"string","description":"Activation that failed; absent for a refusal before activation."},"startedHere":{"type":"boolean","description":"Whether this page created the failed activation instead of attaching to it."},"message":{"type":"string"},"stack":{"type":"string"}},"required":["ok","reason"],"additionalProperties":true}]},
813
+ },
814
+ strictCodec: {
815
+ mode: 'strict',
816
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisRunResolution',
817
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_1_strict$schema,
818
+ jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"pluginRunId":{"type":"string"},"waitingFor":{"type":"array","items":{"type":"string"}}},"required":["ok","pluginRunId"],"additionalProperties":false},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"reason":{"type":"string","enum":["rejected","host-half-failed","client-half-failed"]},"pluginRunId":{"type":"string","description":"Activation that failed; absent for a refusal before activation."},"startedHere":{"type":"boolean","description":"Whether this page created the failed activation instead of attaching to it."},"message":{"type":"string"},"stack":{"type":"string"}},"required":["ok","reason"],"additionalProperties":false}]},
574
819
  },
575
820
  },
576
821
  ],
@@ -578,14 +823,14 @@ export const TYPERT = {
578
823
  mode: 'strict',
579
824
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisResolveAck',
580
825
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_resolveRequestRun_result$schema,
826
+ description: 'Whether the still-pending request accepted this resolution.',
827
+ jsonSchema: {"type":"object","properties":{"accepted":{"type":"boolean","description":"False for late, unknown, or stale answers."}},"required":["accepted"],"additionalProperties":true},
581
828
  },
582
829
  sourceLocation: {"file":"packages/extensions/cordis-host-runner/src/index.ts","line":431,"column":9},
583
830
  },
584
- {
585
- id: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/runHostHalf',
831
+ 'dynamicCordisRunner/runHostHalf': {
586
832
  service: 'dynamicCordisRunner',
587
- namespace: 'dynamicCordisRunner',
588
- method: 'runHostHalf',
833
+ description: 'Start Host code for an approved request or a direct panel gesture.',
589
834
  invocation: { kind: 'direct' },
590
835
  scope: {
591
836
  context: 'agent',
@@ -595,62 +840,105 @@ export const TYPERT = {
595
840
  {
596
841
  name: 'agent',
597
842
  wire: 'agentId',
843
+ description: 'Agent whose Session must own the Plugin.',
598
844
  source: 'lookup',
599
845
  lookup: 'agent',
600
846
  codec: {
601
847
  mode: 'strict',
602
848
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
603
849
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_0$schema,
850
+ jsonSchema: {"type":"string"},
851
+ },
852
+ strictCodec: {
853
+ mode: 'strict',
854
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
855
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_0_strict$schema,
856
+ jsonSchema: {"type":"string"},
604
857
  },
605
858
  },
606
859
  {
607
860
  name: 'pluginId',
608
- wire: 'pluginId',
861
+ description: 'Stable Plugin identity to activate.',
609
862
  source: 'json',
610
863
  codec: {
611
864
  mode: 'strict',
612
865
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId',
613
866
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_1$schema,
867
+ jsonSchema: {"type":"string"},
868
+ },
869
+ strictCodec: {
870
+ mode: 'strict',
871
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId',
872
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_1_strict$schema,
873
+ jsonSchema: {"type":"string"},
614
874
  },
615
875
  },
616
876
  {
617
877
  name: 'packageId',
618
- wire: 'packageId',
878
+ description: 'Immutable Package version to activate.',
619
879
  source: 'json',
620
880
  codec: {
621
881
  mode: 'strict',
622
882
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPackageId',
623
883
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_2$schema,
884
+ jsonSchema: {"type":"string"},
885
+ },
886
+ strictCodec: {
887
+ mode: 'strict',
888
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPackageId',
889
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_2_strict$schema,
890
+ jsonSchema: {"type":"string"},
624
891
  },
625
892
  },
626
893
  {
627
894
  name: 'mode',
628
- wire: 'mode',
895
+ description: 'Whether to run the current version or switch versions.',
629
896
  source: 'json',
630
897
  codec: {
631
898
  mode: 'strict',
632
899
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicRunMode',
633
900
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_3$schema,
901
+ jsonSchema: {"type":"string","enum":["run","update"]},
902
+ },
903
+ strictCodec: {
904
+ mode: 'strict',
905
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicRunMode',
906
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_3_strict$schema,
907
+ jsonSchema: {"type":"string","enum":["run","update"]},
634
908
  },
635
909
  },
636
910
  {
637
911
  name: 'requestId',
638
- wire: 'requestId',
912
+ description: 'Model-driven request identity, or null for a direct user gesture.',
639
913
  source: 'json',
640
914
  codec: {
641
915
  mode: 'strict',
642
916
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/runHostHalf:requestId',
643
917
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_4$schema,
918
+ jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"string"}]},
919
+ },
920
+ strictCodec: {
921
+ mode: 'strict',
922
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/runHostHalf:requestId',
923
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_4_strict$schema,
924
+ jsonSchema: {"oneOf":[{"type":"null","const":null},{"type":"string"}]},
644
925
  },
645
926
  },
646
927
  {
647
928
  name: 'approveFutureVersions',
648
- wire: 'approveFutureVersions',
929
+ description: 'Whether this approval covers later Packages of the same Plugin.',
649
930
  source: 'json',
650
931
  codec: {
651
932
  mode: 'strict',
652
933
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/runHostHalf:approveFutureVersions',
653
934
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_5$schema,
935
+ jsonSchema: {"type":"boolean"},
936
+ },
937
+ strictCodec: {
938
+ mode: 'strict',
939
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/runHostHalf:approveFutureVersions',
940
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_parameter_5_strict$schema,
941
+ jsonSchema: {"type":"boolean"},
654
942
  },
655
943
  },
656
944
  ],
@@ -658,14 +946,14 @@ export const TYPERT = {
658
946
  mode: 'strict',
659
947
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisHostHalfResult',
660
948
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_runHostHalf_result$schema,
949
+ description: 'The exact Host activation or a failure message.',
950
+ jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"pluginId":{"type":"string"},"packageId":{"type":"string"},"pluginRunId":{"type":"string"},"waitingFor":{"type":"array","items":{"type":"string"}},"startedHere":{"type":"boolean","description":"False when a panel merely attaches this page to an already active run."}},"required":["ok","pluginId","packageId","pluginRunId","waitingFor","startedHere"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"message":{"type":"string","description":"Original error message."},"stack":{"type":"string","description":"Original stack when the thrown value supplied one."}},"required":["ok","message"],"additionalProperties":true}]},
661
951
  },
662
952
  sourceLocation: {"file":"packages/extensions/cordis-host-runner/src/index.ts","line":343,"column":9},
663
953
  },
664
- {
665
- id: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/settleUserRun',
954
+ 'dynamicCordisRunner/settleUserRun': {
666
955
  service: 'dynamicCordisRunner',
667
- namespace: 'dynamicCordisRunner',
668
- method: 'settleUserRun',
956
+ description: 'Settle a direct panel run after this page loaded or failed its Client half.',
669
957
  invocation: { kind: 'direct' },
670
958
  scope: {
671
959
  context: 'agent',
@@ -675,32 +963,54 @@ export const TYPERT = {
675
963
  {
676
964
  name: 'agent',
677
965
  wire: 'agentId',
966
+ description: 'Agent whose Session must own the Plugin.',
678
967
  source: 'lookup',
679
968
  lookup: 'agent',
680
969
  codec: {
681
970
  mode: 'strict',
682
971
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
683
972
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_0$schema,
973
+ jsonSchema: {"type":"string"},
974
+ },
975
+ strictCodec: {
976
+ mode: 'strict',
977
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
978
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_0_strict$schema,
979
+ jsonSchema: {"type":"string"},
684
980
  },
685
981
  },
686
982
  {
687
983
  name: 'pluginId',
688
- wire: 'pluginId',
984
+ description: 'Stable Plugin identity being settled.',
689
985
  source: 'json',
690
986
  codec: {
691
987
  mode: 'strict',
692
988
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId',
693
989
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_1$schema,
990
+ jsonSchema: {"type":"string"},
991
+ },
992
+ strictCodec: {
993
+ mode: 'strict',
994
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId',
995
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_1_strict$schema,
996
+ jsonSchema: {"type":"string"},
694
997
  },
695
998
  },
696
999
  {
697
1000
  name: 'resolution',
698
- wire: 'resolution',
1001
+ description: 'Exact Client activation result from the acting page.',
699
1002
  source: 'json',
700
1003
  codec: {
701
1004
  mode: 'strict',
702
1005
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisRunResolution',
703
1006
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_2$schema,
1007
+ jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"pluginRunId":{"type":"string"},"waitingFor":{"type":"array","items":{"type":"string"}}},"required":["ok","pluginRunId"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"reason":{"type":"string","enum":["rejected","host-half-failed","client-half-failed"]},"pluginRunId":{"type":"string","description":"Activation that failed; absent for a refusal before activation."},"startedHere":{"type":"boolean","description":"Whether this page created the failed activation instead of attaching to it."},"message":{"type":"string"},"stack":{"type":"string"}},"required":["ok","reason"],"additionalProperties":true}]},
1008
+ },
1009
+ strictCodec: {
1010
+ mode: 'strict',
1011
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisRunResolution',
1012
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_parameter_2_strict$schema,
1013
+ jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"pluginRunId":{"type":"string"},"waitingFor":{"type":"array","items":{"type":"string"}}},"required":["ok","pluginRunId"],"additionalProperties":false},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"reason":{"type":"string","enum":["rejected","host-half-failed","client-half-failed"]},"pluginRunId":{"type":"string","description":"Activation that failed; absent for a refusal before activation."},"startedHere":{"type":"boolean","description":"Whether this page created the failed activation instead of attaching to it."},"message":{"type":"string"},"stack":{"type":"string"}},"required":["ok","reason"],"additionalProperties":false}]},
704
1014
  },
705
1015
  },
706
1016
  ],
@@ -708,14 +1018,14 @@ export const TYPERT = {
708
1018
  mode: 'strict',
709
1019
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisRunResponse',
710
1020
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_settleUserRun_result$schema,
1021
+ description: 'The committed activation or its failure.',
1022
+ jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"status":{"type":"string","enum":["running","awaiting-approval","starting"],"description":"Whether activation completed synchronously, is starting in a Client, or awaits user approval."},"pluginId":{"type":"string"},"packageId":{"type":"string"},"pluginRunId":{"type":"string"},"waitingFor":{"type":"array","items":{"type":"string"},"description":"Missing Host services; a parked Fiber is a successful activation."},"clientWaitingFor":{"type":"array","items":{"type":"string"},"description":"Missing Client services reported by the approving page."},"currentPackageId":{"type":"string","description":"Last fully successful Package."},"nextPackageId":{"type":"string","description":"Selected transition target."},"mode":{"type":"string","enum":["run","update"],"description":"Explicit lifecycle intent."}},"required":["ok","status","pluginId","packageId","pluginRunId","waitingFor","mode"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"reason":{"type":"string","enum":["cancelled","not-running","plugin-missing","rejected","host-half-failed","client-half-failed","package-missing","invalid-mode","transition-in-flight"]},"message":{"type":"string"},"stack":{"type":"string","description":"Original failure stack when available."}},"required":["ok","reason","message"],"additionalProperties":true}]},
711
1023
  },
712
1024
  sourceLocation: {"file":"packages/extensions/cordis-host-runner/src/index.ts","line":456,"column":9},
713
1025
  },
714
- {
715
- id: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/stopFromPanel',
1026
+ 'dynamicCordisRunner/stopFromPanel': {
716
1027
  service: 'dynamicCordisRunner',
717
- namespace: 'dynamicCordisRunner',
718
- method: 'stopFromPanel',
1028
+ description: 'Stop a Plugin from the user panel and queue the resulting state change for the model\'s next step.',
719
1029
  invocation: { kind: 'direct' },
720
1030
  scope: {
721
1031
  context: 'agent',
@@ -725,22 +1035,37 @@ export const TYPERT = {
725
1035
  {
726
1036
  name: 'agent',
727
1037
  wire: 'agentId',
1038
+ description: 'Agent whose Session owns the Plugin and receives the context.',
728
1039
  source: 'lookup',
729
1040
  lookup: 'agent',
730
1041
  codec: {
731
1042
  mode: 'strict',
732
1043
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
733
1044
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_0$schema,
1045
+ jsonSchema: {"type":"string"},
1046
+ },
1047
+ strictCodec: {
1048
+ mode: 'strict',
1049
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1050
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_0_strict$schema,
1051
+ jsonSchema: {"type":"string"},
734
1052
  },
735
1053
  },
736
1054
  {
737
1055
  name: 'pluginId',
738
- wire: 'pluginId',
1056
+ description: 'Stable Plugin identity to stop.',
739
1057
  source: 'json',
740
1058
  codec: {
741
1059
  mode: 'strict',
742
1060
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId',
743
1061
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_1$schema,
1062
+ jsonSchema: {"type":"string"},
1063
+ },
1064
+ strictCodec: {
1065
+ mode: 'strict',
1066
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId',
1067
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_parameter_1_strict$schema,
1068
+ jsonSchema: {"type":"string"},
744
1069
  },
745
1070
  },
746
1071
  ],
@@ -748,24 +1073,31 @@ export const TYPERT = {
748
1073
  mode: 'strict',
749
1074
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisStopResponse',
750
1075
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_stopFromPanel_result$schema,
1076
+ description: 'Success or the reason no run was stopped.',
1077
+ jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"reason":{"type":"string","enum":["not-running","plugin-missing"]},"message":{"type":"string"}},"required":["ok","reason","message"],"additionalProperties":true}]},
751
1078
  },
752
1079
  sourceLocation: {"file":"packages/extensions/cordis-host-runner/src/index.ts","line":498,"column":9},
753
1080
  },
754
- {
755
- id: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/syncInspectManifest',
1081
+ 'dynamicCordisRunner/syncInspectManifest': {
756
1082
  service: 'dynamicCordisRunner',
757
- namespace: 'dynamicCordisRunner',
758
- method: 'syncInspectManifest',
1083
+ description: 'Replace the Host mirror of the Client inspect provider directory.',
759
1084
  invocation: { kind: 'direct' },
760
1085
  parameters: [
761
1086
  {
762
1087
  name: 'providers',
763
- wire: 'providers',
1088
+ description: 'complete Client provider manifest.',
764
1089
  source: 'json',
765
1090
  codec: {
766
1091
  mode: 'strict',
767
1092
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/syncInspectManifest:providers',
768
1093
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_syncInspectManifest_parameter_0$schema,
1094
+ jsonSchema: {"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Provider identity, unique within one platform."},"description":{"type":"string","description":"Capability described by this provider."},"methods":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Method name, unique within its provider."},"description":{"type":"string","description":"What the query returns and when to use it."},"inputSchema":{"description":"JSON Schema accepted by the query."},"outputSchema":{"description":"JSON Schema produced by the query."}},"required":["name","description","inputSchema","outputSchema"],"additionalProperties":true},"description":"Explicit read-only queries."}},"required":["id","description","methods"],"additionalProperties":true}},
1095
+ },
1096
+ strictCodec: {
1097
+ mode: 'strict',
1098
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/syncInspectManifest:providers',
1099
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_syncInspectManifest_parameter_0_strict$schema,
1100
+ jsonSchema: {"type":"array","items":{"type":"object","properties":{"id":{"type":"string","description":"Provider identity, unique within one platform."},"description":{"type":"string","description":"Capability described by this provider."},"methods":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Method name, unique within its provider."},"description":{"type":"string","description":"What the query returns and when to use it."},"inputSchema":{"description":"JSON Schema accepted by the query."},"outputSchema":{"description":"JSON Schema produced by the query."}},"required":["name","description","inputSchema","outputSchema"],"additionalProperties":false},"description":"Explicit read-only queries."}},"required":["id","description","methods"],"additionalProperties":false}},
769
1101
  },
770
1102
  },
771
1103
  ],
@@ -773,14 +1105,14 @@ export const TYPERT = {
773
1105
  mode: 'strict',
774
1106
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/syncInspectManifest:result',
775
1107
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_syncInspectManifest_result$schema,
1108
+ description: 'null after accepting the manifest.',
1109
+ jsonSchema: {"type":"null","const":null},
776
1110
  },
777
1111
  sourceLocation: {"file":"packages/extensions/cordis-host-runner/src/index.ts","line":516,"column":3},
778
1112
  },
779
- {
780
- id: '@deepseek-ai/dsh-cordis-host-runner#dynamicCordisRunner/undefineFromPanel',
1113
+ 'dynamicCordisRunner/undefineFromPanel': {
781
1114
  service: 'dynamicCordisRunner',
782
- namespace: 'dynamicCordisRunner',
783
- method: 'undefineFromPanel',
1115
+ description: 'Remove a Plugin from the user panel and queue the resulting state change for the model\'s next step.',
784
1116
  invocation: { kind: 'direct' },
785
1117
  scope: {
786
1118
  context: 'agent',
@@ -790,22 +1122,37 @@ export const TYPERT = {
790
1122
  {
791
1123
  name: 'agent',
792
1124
  wire: 'agentId',
1125
+ description: 'Agent whose Session owns the Plugin and receives the context.',
793
1126
  source: 'lookup',
794
1127
  lookup: 'agent',
795
1128
  codec: {
796
1129
  mode: 'strict',
797
1130
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
798
1131
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_0$schema,
1132
+ jsonSchema: {"type":"string"},
1133
+ },
1134
+ strictCodec: {
1135
+ mode: 'strict',
1136
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
1137
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_0_strict$schema,
1138
+ jsonSchema: {"type":"string"},
799
1139
  },
800
1140
  },
801
1141
  {
802
1142
  name: 'pluginId',
803
- wire: 'pluginId',
1143
+ description: 'Stable Plugin identity to remove.',
804
1144
  source: 'json',
805
1145
  codec: {
806
1146
  mode: 'strict',
807
1147
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId',
808
1148
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_1$schema,
1149
+ jsonSchema: {"type":"string"},
1150
+ },
1151
+ strictCodec: {
1152
+ mode: 'strict',
1153
+ typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#CordisDynamicPluginId',
1154
+ create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_1_strict$schema,
1155
+ jsonSchema: {"type":"string"},
809
1156
  },
810
1157
  },
811
1158
  ],
@@ -813,10 +1160,20 @@ export const TYPERT = {
813
1160
  mode: 'strict',
814
1161
  typeSymbol: '@deepseek-ai/dsh-cordis-host-runner/types#DynamicCordisUndefineReceipt',
815
1162
  create: _deepseek_ai_dsh_cordis_host_runner_dynamicCordisRunner_undefineFromPanel_result$schema,
1163
+ description: 'Whether removal succeeded and whether it stopped an active run.',
1164
+ jsonSchema: {"oneOf":[{"type":"object","properties":{"ok":{"type":"boolean","const":true},"wasRunning":{"type":"boolean"}},"required":["ok","wasRunning"],"additionalProperties":true},{"type":"object","properties":{"ok":{"type":"boolean","const":false},"reason":{"type":"string","const":"plugin-missing"},"message":{"type":"string"}},"required":["ok","reason","message"],"additionalProperties":true}]},
816
1165
  },
817
1166
  sourceLocation: {"file":"packages/extensions/cordis-host-runner/src/index.ts","line":245,"column":9},
818
1167
  },
1168
+ },
1169
+ }, z)
1170
+
1171
+ export const TYPERT = {
1172
+ package: '@deepseek-ai/dsh-cordis-host-runner',
1173
+ face: 'host',
1174
+ schemas: [
819
1175
  ],
1176
+ get invocations() { return $remote.descriptors },
820
1177
  model: {
821
1178
  "services": [
822
1179
  {
@@ -888,6 +1245,10 @@ export const TYPERT = {
888
1245
  "name": "AgentStatus",
889
1246
  "declaration": "export type AgentStatus = 'idle' | 'running';"
890
1247
  },
1248
+ {
1249
+ "name": "AllowedModelRoute",
1250
+ "declaration": "export interface AllowedModelRoute {\n readonly provider: string;\n readonly model: string;\n}"
1251
+ },
891
1252
  {
892
1253
  "name": "ApprovalOutcome",
893
1254
  "declaration": "export type ApprovalOutcome = 'allowed-once' | 'rejected' | 'cancelled' | 'unavailable';"
@@ -1116,6 +1477,30 @@ export const TYPERT = {
1116
1477
  "name": "InboxTarget",
1117
1478
  "declaration": "export type InboxTarget = 'next-turn' | 'next-step';"
1118
1479
  },
1480
+ {
1481
+ "name": "JobId",
1482
+ "declaration": "export type JobId = Branded<'JobId'>;"
1483
+ },
1484
+ {
1485
+ "name": "JobOutcome",
1486
+ "declaration": "export interface JobOutcome {\n status: 'completed' | 'killed' | 'failed';\n detail?: string;\n result?: string;\n}"
1487
+ },
1488
+ {
1489
+ "name": "JobRegisteredData",
1490
+ "declaration": "export interface JobRegisteredData {\n readonly jobId: JobId;\n readonly owner: SessionId;\n readonly kind: string;\n readonly label: string;\n readonly startedAt: number;\n readonly toolCall?: JobToolCall;\n}"
1491
+ },
1492
+ {
1493
+ "name": "JobSettleCause",
1494
+ "declaration": "export type JobSettleCause = 'producer' | 'kill' | 'teardown';"
1495
+ },
1496
+ {
1497
+ "name": "JobSettledData",
1498
+ "declaration": "export interface JobSettledData extends JobRegisteredData {\n readonly finishedAt: number;\n readonly status: JobOutcome['status'];\n readonly cause: JobSettleCause;\n readonly producerReported: boolean;\n readonly detail?: string;\n}"
1499
+ },
1500
+ {
1501
+ "name": "JobToolCall",
1502
+ "declaration": "export interface JobToolCall {\n readonly callId: SessionEventMap['tool/call']['callId'];\n readonly rootCallId: SessionEventMap['tool/call']['callId'];\n}"
1503
+ },
1119
1504
  {
1120
1505
  "name": "JsonValue",
1121
1506
  "declaration": "export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue; };"
@@ -1206,7 +1591,7 @@ export const TYPERT = {
1206
1591
  },
1207
1592
  {
1208
1593
  "name": "MessageSourceMap",
1209
- "declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'working-directory': { kind: 'working-directory'; };\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'tool-registry': { kind: 'tool-registry'; };\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'cordis-host-runner': { kind: 'cordis-host-runner'; };\n 'compact-checkpoint': CompactionCheckpointSource;\n 'user-question-reply': { kind: 'user-question-reply'; callId: ToolCallId; outcome: 'answered'; };\n goal: GoalMessageSource;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'session-reference': SessionReferenceSource;\n}"
1594
+ "declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'runtime-context': { kind: 'runtime-context'; } & ContextFormed;\n 'working-directory': { kind: 'working-directory'; };\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'tool-registry': { kind: 'tool-registry'; };\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; principal?: Principal; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'compact-checkpoint': CompactionCheckpointSource;\n 'cordis-host-runner': { kind: 'cordis-host-runner'; };\n 'team-message': TeamMessageSource;\n 'user-question-reply': { kind: 'user-question-reply'; callId: ToolCallId; outcome: 'answered'; };\n goal: GoalMessageSource;\n 'plan-mode': { kind: 'plan-mode'; } & ContextFormed;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'session-reference': SessionReferenceSource;\n webhook: { readonly kind: 'webhook'; readonly provider: string; readonly source: WebhookSourceId; readonly deliveryId: WebhookDeliveryId; readonly ruleId: WebhookRuleId; readonly form: 'notice'; readonly summary: string; };\n}"
1210
1595
  },
1211
1596
  {
1212
1597
  "name": "ModelMessageSource",
@@ -1228,6 +1613,14 @@ export const TYPERT = {
1228
1613
  "name": "OptionalSessionSeq",
1229
1614
  "declaration": "export type OptionalSessionSeq = SessionSeq | null;"
1230
1615
  },
1616
+ {
1617
+ "name": "Principal",
1618
+ "declaration": "export type Principal = PrincipalMap[keyof PrincipalMap];"
1619
+ },
1620
+ {
1621
+ "name": "PrincipalMap",
1622
+ "declaration": "export interface PrincipalMap {\n owner: { readonly kind: 'owner'; };\n}"
1623
+ },
1231
1624
  {
1232
1625
  "name": "ProviderRequestId",
1233
1626
  "declaration": "export type ProviderRequestId = Branded<'ProviderRequestId'>;"
@@ -1298,7 +1691,7 @@ export const TYPERT = {
1298
1691
  },
1299
1692
  {
1300
1693
  "name": "SessionEventMap",
1301
- "declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'developer/message': { turn: number; step: number; message: DeveloperMessage; headerSeq?: SessionSeq; };\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; reason?: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'working-directory/change': { cwd: string; };\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'agent-preset/selected': { agentPreset: string; };\n 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'model/selection': ModelSelection;\n 'permission/preset': { preset: string; };\n 'subagent/descriptor': SubagentDescriptorData;\n 'subagent/catalog': SubagentCatalogEvent;\n 'compaction/start': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; };\n 'compaction/summary': { compactionId: CompactionId; sourceCommandId?: CommandId; summary: ContentBlock[]; shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; provider: string; model: string; maxTokens?: number; usage?: TokenUsage; } & ({ rawOutput: ContentBlock[]; llmStreamCall: true; } | { rawOutput?: ContentBlock[]; llmStreamCall?: never; });\n 'compaction/end': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; error?: string; };\n 'compaction/prune': { shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; };\n 'feedback/record': FeedbackRecord;\n 'llm/retry': LlmRetryEventData;\n 'llm/retry-started': LlmRetryStartedEventData;\n 'goal/change': GoalChangeMeta;\n 'feedback/message-put': MessageFeedbackPut;\n 'feedback/message-delete': MessageFeedbackDelete;\n 'schedule/change': ScheduleChange;\n}"
1694
+ "declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'developer/message': { turn: number; step: number; message: DeveloperMessage; headerSeq?: SessionSeq; };\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; reason?: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'working-directory/change': { cwd: string; };\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'agent-preset/selected': { agentPreset: string; };\n 'job/registered': JobRegisteredData;\n 'job/settled': JobSettledData;\n 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'model/selection': ModelSelection;\n 'permission/preset': { preset: string; };\n 'subagent/descriptor': SubagentDescriptorData;\n 'subagent/catalog': SubagentCatalogEvent;\n 'compaction/start': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; };\n 'compaction/summary': { compactionId: CompactionId; sourceCommandId?: CommandId; summary: ContentBlock[]; shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; provider: string; model: string; maxTokens?: number; usage?: TokenUsage; } & ({ rawOutput: ContentBlock[]; llmStreamCall: true; } | { rawOutput?: ContentBlock[]; llmStreamCall?: never; });\n 'compaction/end': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; error?: string; };\n 'compaction/prune': { shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; };\n 'feedback/record': FeedbackRecord;\n 'llm/retry': LlmRetryEventData;\n 'llm/retry-started': LlmRetryStartedEventData;\n 'team/member': { version: 2; teamId: TeamId; member: TeamMemberSnapshot; };\n 'team/task': { version: 2; teamId: TeamId; task: TeamTaskSnapshot; };\n 'team/message/queued': { version: 2; teamId: TeamId; message: TeamMessageSnapshot; };\n 'team/message/delivered': { version: 2; teamId: TeamId; messageId: TeamMessageId; targetId: SessionId; };\n 'goal/change': GoalChangeMeta;\n 'feedback/message-put': MessageFeedbackPut;\n 'feedback/message-delete': MessageFeedbackDelete;\n 'plan/mode': { active: boolean; };\n 'schedule/change': ScheduleChange;\n 'subagent/model-selection-policy': { allowedModels: AllowedModelRoute[]; };\n 'workspace/changes': { turn: number; };\n}"
1302
1695
  },
1303
1696
  {
1304
1697
  "name": "SessionEventType",
@@ -1396,6 +1789,42 @@ export const TYPERT = {
1396
1789
  "name": "SystemPromptUpdate",
1397
1790
  "declaration": "export type SystemPromptUpdate = 'in-history';"
1398
1791
  },
1792
+ {
1793
+ "name": "TeamId",
1794
+ "declaration": "export type TeamId = Branded<'TeamId'>;"
1795
+ },
1796
+ {
1797
+ "name": "TeamMemberPhase",
1798
+ "declaration": "export type TeamMemberPhase = 'provisioning' | 'active' | 'failed';"
1799
+ },
1800
+ {
1801
+ "name": "TeamMemberSnapshot",
1802
+ "declaration": "export interface TeamMemberSnapshot {\n readonly id: SessionId;\n readonly name: string;\n readonly description: string;\n readonly provider: string;\n readonly context: 'fresh' | 'fork';\n readonly phase: TeamMemberPhase;\n readonly error?: string;\n}"
1803
+ },
1804
+ {
1805
+ "name": "TeamMessageId",
1806
+ "declaration": "export type TeamMessageId = Branded<'TeamMessageId'>;"
1807
+ },
1808
+ {
1809
+ "name": "TeamMessageSnapshot",
1810
+ "declaration": "export interface TeamMessageSnapshot {\n readonly id: TeamMessageId;\n readonly senderId: SessionId;\n readonly senderName: string;\n readonly targetId: SessionId;\n readonly content: ContentBlock[];\n}"
1811
+ },
1812
+ {
1813
+ "name": "TeamMessageSource",
1814
+ "declaration": "export interface TeamMessageSource {\n readonly kind: 'team-message';\n readonly teamId: TeamId;\n readonly messageId: TeamMessageId;\n readonly senderId: SessionId;\n readonly senderName: string;\n}"
1815
+ },
1816
+ {
1817
+ "name": "TeamTaskId",
1818
+ "declaration": "export type TeamTaskId = Branded<'TeamTaskId'>;"
1819
+ },
1820
+ {
1821
+ "name": "TeamTaskSnapshot",
1822
+ "declaration": "export interface TeamTaskSnapshot {\n readonly id: TeamTaskId;\n readonly revision: number;\n readonly subject: string;\n readonly description: string;\n readonly status: TeamTaskStatus;\n readonly ownerId?: SessionId;\n readonly blockedBy: TeamTaskId[];\n readonly writeScopes: string[];\n}"
1823
+ },
1824
+ {
1825
+ "name": "TeamTaskStatus",
1826
+ "declaration": "export type TeamTaskStatus = 'pending' | 'in_progress' | 'completed' | 'deleted';"
1827
+ },
1399
1828
  {
1400
1829
  "name": "TextBlock",
1401
1830
  "declaration": "export interface TextBlock {\n type: 'text';\n text: string;\n}"
@@ -1459,6 +1888,18 @@ export const TYPERT = {
1459
1888
  {
1460
1889
  "name": "UserMessage",
1461
1890
  "declaration": "export interface UserMessage extends MessageBase {\n readonly role: 'user';\n}"
1891
+ },
1892
+ {
1893
+ "name": "WebhookDeliveryId",
1894
+ "declaration": "export type WebhookDeliveryId = Branded<'WebhookDeliveryId'>;"
1895
+ },
1896
+ {
1897
+ "name": "WebhookRuleId",
1898
+ "declaration": "export type WebhookRuleId = Branded<'WebhookRuleId'>;"
1899
+ },
1900
+ {
1901
+ "name": "WebhookSourceId",
1902
+ "declaration": "export type WebhookSourceId = Branded<'WebhookSourceId'>;"
1462
1903
  }
1463
1904
  ]
1464
1905
  },
@@ -1643,6 +2084,10 @@ export const TYPERT = {
1643
2084
  "name": "AgentStatus",
1644
2085
  "declaration": "export type AgentStatus = 'idle' | 'running';"
1645
2086
  },
2087
+ {
2088
+ "name": "AllowedModelRoute",
2089
+ "declaration": "export interface AllowedModelRoute {\n readonly provider: string;\n readonly model: string;\n}"
2090
+ },
1646
2091
  {
1647
2092
  "name": "ApprovalOutcome",
1648
2093
  "declaration": "export type ApprovalOutcome = 'allowed-once' | 'rejected' | 'cancelled' | 'unavailable';"
@@ -1963,6 +2408,30 @@ export const TYPERT = {
1963
2408
  "name": "InboxTarget",
1964
2409
  "declaration": "export type InboxTarget = 'next-turn' | 'next-step';"
1965
2410
  },
2411
+ {
2412
+ "name": "JobId",
2413
+ "declaration": "export type JobId = Branded<'JobId'>;"
2414
+ },
2415
+ {
2416
+ "name": "JobOutcome",
2417
+ "declaration": "export interface JobOutcome {\n status: 'completed' | 'killed' | 'failed';\n detail?: string;\n result?: string;\n}"
2418
+ },
2419
+ {
2420
+ "name": "JobRegisteredData",
2421
+ "declaration": "export interface JobRegisteredData {\n readonly jobId: JobId;\n readonly owner: SessionId;\n readonly kind: string;\n readonly label: string;\n readonly startedAt: number;\n readonly toolCall?: JobToolCall;\n}"
2422
+ },
2423
+ {
2424
+ "name": "JobSettleCause",
2425
+ "declaration": "export type JobSettleCause = 'producer' | 'kill' | 'teardown';"
2426
+ },
2427
+ {
2428
+ "name": "JobSettledData",
2429
+ "declaration": "export interface JobSettledData extends JobRegisteredData {\n readonly finishedAt: number;\n readonly status: JobOutcome['status'];\n readonly cause: JobSettleCause;\n readonly producerReported: boolean;\n readonly detail?: string;\n}"
2430
+ },
2431
+ {
2432
+ "name": "JobToolCall",
2433
+ "declaration": "export interface JobToolCall {\n readonly callId: SessionEventMap['tool/call']['callId'];\n readonly rootCallId: SessionEventMap['tool/call']['callId'];\n}"
2434
+ },
1966
2435
  {
1967
2436
  "name": "JsonValue",
1968
2437
  "declaration": "export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue; };"
@@ -2053,7 +2522,7 @@ export const TYPERT = {
2053
2522
  },
2054
2523
  {
2055
2524
  "name": "MessageSourceMap",
2056
- "declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'working-directory': { kind: 'working-directory'; };\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'tool-registry': { kind: 'tool-registry'; };\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'cordis-host-runner': { kind: 'cordis-host-runner'; };\n 'compact-checkpoint': CompactionCheckpointSource;\n 'user-question-reply': { kind: 'user-question-reply'; callId: ToolCallId; outcome: 'answered'; };\n goal: GoalMessageSource;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'session-reference': SessionReferenceSource;\n}"
2525
+ "declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'runtime-context': { kind: 'runtime-context'; } & ContextFormed;\n 'working-directory': { kind: 'working-directory'; };\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'tool-registry': { kind: 'tool-registry'; };\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; principal?: Principal; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'compact-checkpoint': CompactionCheckpointSource;\n 'cordis-host-runner': { kind: 'cordis-host-runner'; };\n 'team-message': TeamMessageSource;\n 'user-question-reply': { kind: 'user-question-reply'; callId: ToolCallId; outcome: 'answered'; };\n goal: GoalMessageSource;\n 'plan-mode': { kind: 'plan-mode'; } & ContextFormed;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'session-reference': SessionReferenceSource;\n webhook: { readonly kind: 'webhook'; readonly provider: string; readonly source: WebhookSourceId; readonly deliveryId: WebhookDeliveryId; readonly ruleId: WebhookRuleId; readonly form: 'notice'; readonly summary: string; };\n}"
2057
2526
  },
2058
2527
  {
2059
2528
  "name": "ModelMessageSource",
@@ -2075,6 +2544,14 @@ export const TYPERT = {
2075
2544
  "name": "OptionalSessionSeq",
2076
2545
  "declaration": "export type OptionalSessionSeq = SessionSeq | null;"
2077
2546
  },
2547
+ {
2548
+ "name": "Principal",
2549
+ "declaration": "export type Principal = PrincipalMap[keyof PrincipalMap];"
2550
+ },
2551
+ {
2552
+ "name": "PrincipalMap",
2553
+ "declaration": "export interface PrincipalMap {\n owner: { readonly kind: 'owner'; };\n}"
2554
+ },
2078
2555
  {
2079
2556
  "name": "ProviderRequestId",
2080
2557
  "declaration": "export type ProviderRequestId = Branded<'ProviderRequestId'>;"
@@ -2145,7 +2622,7 @@ export const TYPERT = {
2145
2622
  },
2146
2623
  {
2147
2624
  "name": "SessionEventMap",
2148
- "declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'developer/message': { turn: number; step: number; message: DeveloperMessage; headerSeq?: SessionSeq; };\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; reason?: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'working-directory/change': { cwd: string; };\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'agent-preset/selected': { agentPreset: string; };\n 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'model/selection': ModelSelection;\n 'permission/preset': { preset: string; };\n 'subagent/descriptor': SubagentDescriptorData;\n 'subagent/catalog': SubagentCatalogEvent;\n 'compaction/start': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; };\n 'compaction/summary': { compactionId: CompactionId; sourceCommandId?: CommandId; summary: ContentBlock[]; shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; provider: string; model: string; maxTokens?: number; usage?: TokenUsage; } & ({ rawOutput: ContentBlock[]; llmStreamCall: true; } | { rawOutput?: ContentBlock[]; llmStreamCall?: never; });\n 'compaction/end': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; error?: string; };\n 'compaction/prune': { shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; };\n 'feedback/record': FeedbackRecord;\n 'llm/retry': LlmRetryEventData;\n 'llm/retry-started': LlmRetryStartedEventData;\n 'goal/change': GoalChangeMeta;\n 'feedback/message-put': MessageFeedbackPut;\n 'feedback/message-delete': MessageFeedbackDelete;\n 'schedule/change': ScheduleChange;\n}"
2625
+ "declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'developer/message': { turn: number; step: number; message: DeveloperMessage; headerSeq?: SessionSeq; };\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; reason?: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'working-directory/change': { cwd: string; };\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'agent-preset/selected': { agentPreset: string; };\n 'job/registered': JobRegisteredData;\n 'job/settled': JobSettledData;\n 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'model/selection': ModelSelection;\n 'permission/preset': { preset: string; };\n 'subagent/descriptor': SubagentDescriptorData;\n 'subagent/catalog': SubagentCatalogEvent;\n 'compaction/start': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; };\n 'compaction/summary': { compactionId: CompactionId; sourceCommandId?: CommandId; summary: ContentBlock[]; shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; provider: string; model: string; maxTokens?: number; usage?: TokenUsage; } & ({ rawOutput: ContentBlock[]; llmStreamCall: true; } | { rawOutput?: ContentBlock[]; llmStreamCall?: never; });\n 'compaction/end': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; error?: string; };\n 'compaction/prune': { shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; };\n 'feedback/record': FeedbackRecord;\n 'llm/retry': LlmRetryEventData;\n 'llm/retry-started': LlmRetryStartedEventData;\n 'team/member': { version: 2; teamId: TeamId; member: TeamMemberSnapshot; };\n 'team/task': { version: 2; teamId: TeamId; task: TeamTaskSnapshot; };\n 'team/message/queued': { version: 2; teamId: TeamId; message: TeamMessageSnapshot; };\n 'team/message/delivered': { version: 2; teamId: TeamId; messageId: TeamMessageId; targetId: SessionId; };\n 'goal/change': GoalChangeMeta;\n 'feedback/message-put': MessageFeedbackPut;\n 'feedback/message-delete': MessageFeedbackDelete;\n 'plan/mode': { active: boolean; };\n 'schedule/change': ScheduleChange;\n 'subagent/model-selection-policy': { allowedModels: AllowedModelRoute[]; };\n 'workspace/changes': { turn: number; };\n}"
2149
2626
  },
2150
2627
  {
2151
2628
  "name": "SessionEventType",
@@ -2243,6 +2720,42 @@ export const TYPERT = {
2243
2720
  "name": "SystemPromptUpdate",
2244
2721
  "declaration": "export type SystemPromptUpdate = 'in-history';"
2245
2722
  },
2723
+ {
2724
+ "name": "TeamId",
2725
+ "declaration": "export type TeamId = Branded<'TeamId'>;"
2726
+ },
2727
+ {
2728
+ "name": "TeamMemberPhase",
2729
+ "declaration": "export type TeamMemberPhase = 'provisioning' | 'active' | 'failed';"
2730
+ },
2731
+ {
2732
+ "name": "TeamMemberSnapshot",
2733
+ "declaration": "export interface TeamMemberSnapshot {\n readonly id: SessionId;\n readonly name: string;\n readonly description: string;\n readonly provider: string;\n readonly context: 'fresh' | 'fork';\n readonly phase: TeamMemberPhase;\n readonly error?: string;\n}"
2734
+ },
2735
+ {
2736
+ "name": "TeamMessageId",
2737
+ "declaration": "export type TeamMessageId = Branded<'TeamMessageId'>;"
2738
+ },
2739
+ {
2740
+ "name": "TeamMessageSnapshot",
2741
+ "declaration": "export interface TeamMessageSnapshot {\n readonly id: TeamMessageId;\n readonly senderId: SessionId;\n readonly senderName: string;\n readonly targetId: SessionId;\n readonly content: ContentBlock[];\n}"
2742
+ },
2743
+ {
2744
+ "name": "TeamMessageSource",
2745
+ "declaration": "export interface TeamMessageSource {\n readonly kind: 'team-message';\n readonly teamId: TeamId;\n readonly messageId: TeamMessageId;\n readonly senderId: SessionId;\n readonly senderName: string;\n}"
2746
+ },
2747
+ {
2748
+ "name": "TeamTaskId",
2749
+ "declaration": "export type TeamTaskId = Branded<'TeamTaskId'>;"
2750
+ },
2751
+ {
2752
+ "name": "TeamTaskSnapshot",
2753
+ "declaration": "export interface TeamTaskSnapshot {\n readonly id: TeamTaskId;\n readonly revision: number;\n readonly subject: string;\n readonly description: string;\n readonly status: TeamTaskStatus;\n readonly ownerId?: SessionId;\n readonly blockedBy: TeamTaskId[];\n readonly writeScopes: string[];\n}"
2754
+ },
2755
+ {
2756
+ "name": "TeamTaskStatus",
2757
+ "declaration": "export type TeamTaskStatus = 'pending' | 'in_progress' | 'completed' | 'deleted';"
2758
+ },
2246
2759
  {
2247
2760
  "name": "TextBlock",
2248
2761
  "declaration": "export interface TextBlock {\n type: 'text';\n text: string;\n}"
@@ -2306,6 +2819,18 @@ export const TYPERT = {
2306
2819
  {
2307
2820
  "name": "UserMessage",
2308
2821
  "declaration": "export interface UserMessage extends MessageBase {\n readonly role: 'user';\n}"
2822
+ },
2823
+ {
2824
+ "name": "WebhookDeliveryId",
2825
+ "declaration": "export type WebhookDeliveryId = Branded<'WebhookDeliveryId'>;"
2826
+ },
2827
+ {
2828
+ "name": "WebhookRuleId",
2829
+ "declaration": "export type WebhookRuleId = Branded<'WebhookRuleId'>;"
2830
+ },
2831
+ {
2832
+ "name": "WebhookSourceId",
2833
+ "declaration": "export type WebhookSourceId = Branded<'WebhookSourceId'>;"
2309
2834
  }
2310
2835
  ]
2311
2836
  }