@qilin-agent/kylin-host-runner 0.0.0-stage → 3.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.i18n.yaml +70 -0
- package/README.md +150 -2
- package/README.zh.md +151 -0
- package/lib/index.js +2619 -0
- package/lib/typert.host.d.ts +3 -0
- package/lib/typert.host.js +2483 -0
- package/lib/typert.remote-client.d.ts +56 -0
- package/lib/typert.remote-client.js +819 -0
- package/lib/types/guard.d.ts +71 -0
- package/lib/types/guard.js +766 -0
- package/lib/types/index.d.ts +280 -0
- package/lib/types/index.js +1150 -0
- package/lib/types/inspect-registry.d.ts +78 -0
- package/lib/types/inspect-registry.js +237 -0
- package/lib/types/lifecycle.d.ts +29 -0
- package/lib/types/lifecycle.js +49 -0
- package/lib/types/registry.d.ts +225 -0
- package/lib/types/registry.js +131 -0
- package/lib/types/sandbox.d.ts +99 -0
- package/lib/types/sandbox.js +251 -0
- package/lib/types/types.d.ts +363 -0
- package/lib/types/types.js +6 -0
- package/package.json +73 -3
|
@@ -0,0 +1,2483 @@
|
|
|
1
|
+
/* Generated by @qilin-agent/typert-generator from FaceModel — do not edit. */
|
|
2
|
+
import { z } from 'zod'
|
|
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()))]))
|
|
12
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_getClientCode_parameter_0$schema$value
|
|
13
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_getClientCode_parameter_0$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_getClientCode_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
14
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_getClientCode_parameter_1$schema$value
|
|
15
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_getClientCode_parameter_1$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_getClientCode_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
16
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_getClientCode_parameter_2$schema$value
|
|
17
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_getClientCode_parameter_2$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_getClientCode_parameter_2$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
18
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_getClientCode_result$schema$value
|
|
19
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_getClientCode_result$schema = () => (_qilin_agent_kylin_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()),
|
|
25
|
+
}))
|
|
26
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_inventory_result$schema$value
|
|
27
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_inventory_result$schema = () => (_qilin_agent_kylin_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()),
|
|
30
|
+
'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(),
|
|
39
|
+
'activeRun': z.object({
|
|
40
|
+
'pluginRunId': z.intersection(z.string(), z.unknown()),
|
|
41
|
+
'packageId': z.intersection(z.string(), z.unknown()),
|
|
42
|
+
}).optional(),
|
|
43
|
+
'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("running"), z.literal("failed"), z.literal("cancelled"), 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(),
|
|
50
|
+
'host': z.object({
|
|
51
|
+
'status': z.union([z.literal("running"), z.literal("failed"), z.literal("pending"), z.literal("waiting"), z.literal("stopped"), z.literal("absent")]),
|
|
52
|
+
'waitingFor': z.array(z.string()),
|
|
53
|
+
'error': z.string().optional(),
|
|
54
|
+
}),
|
|
55
|
+
'client': z.object({
|
|
56
|
+
'status': z.union([z.literal("running"), z.literal("failed"), z.literal("pending"), z.literal("waiting"), z.literal("stopped"), z.literal("absent")]),
|
|
57
|
+
'waitingFor': z.array(z.string()),
|
|
58
|
+
'error': z.string().optional(),
|
|
59
|
+
}),
|
|
60
|
+
'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(),
|
|
69
|
+
})))
|
|
70
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_invoke_parameter_0$schema$value
|
|
71
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_invoke_parameter_0$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_invoke_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
72
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_invoke_parameter_1$schema$value
|
|
73
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_invoke_parameter_1$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_invoke_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
74
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_invoke_parameter_2$schema$value
|
|
75
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_invoke_parameter_2$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_invoke_parameter_2$schema$value ??= z.string())
|
|
76
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_invoke_parameter_3$schema$value
|
|
77
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_invoke_parameter_3$schema = () => (_qilin_agent_kylin_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()))]))
|
|
78
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_invoke_result$schema$value
|
|
79
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_invoke_result$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_invoke_result$schema$value ??= z.union([z.object({
|
|
80
|
+
'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({
|
|
83
|
+
'ok': z.literal(false),
|
|
84
|
+
'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
|
+
}))]))
|
|
89
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_0$schema$value
|
|
90
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_0$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
91
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_1$schema$value
|
|
92
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_1$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
93
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_2$schema$value
|
|
94
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_2$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_2$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
95
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_3$schema$value
|
|
96
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_3$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_3$schema$value ??= z.object({
|
|
97
|
+
'message': z.string(),
|
|
98
|
+
'stack': z.string().optional(),
|
|
99
|
+
}))
|
|
100
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportClientGuardFailure_result$schema$value
|
|
101
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportClientGuardFailure_result$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_reportClientGuardFailure_result$schema$value ??= z.literal(null))
|
|
102
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_0$schema$value
|
|
103
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_0$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
104
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_1$schema$value
|
|
105
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_1$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
106
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_2$schema$value
|
|
107
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_2$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_2$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
108
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_3$schema$value
|
|
109
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_3$schema = () => (_qilin_agent_kylin_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(),
|
|
114
|
+
}))
|
|
115
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportRenderFailure_result$schema$value
|
|
116
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportRenderFailure_result$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_reportRenderFailure_result$schema$value ??= z.literal(null))
|
|
117
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_0$schema$value
|
|
118
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_0$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
119
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_1$schema$value
|
|
120
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_1$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
121
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_2$schema$value
|
|
122
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_2$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_2$schema$value ??= z.union([z.object({
|
|
123
|
+
'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()))]),
|
|
125
|
+
}), z.object({
|
|
126
|
+
'ok': z.literal(false),
|
|
127
|
+
'reason': z.union([z.literal("cancelled"), z.literal("provider-missing"), z.literal("method-missing"), z.literal("invalid-input"), z.literal("provider-error")]),
|
|
128
|
+
'message': z.string(),
|
|
129
|
+
})]))
|
|
130
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveInspectQuery_result$schema$value
|
|
131
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveInspectQuery_result$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveInspectQuery_result$schema$value ??= z.object({
|
|
132
|
+
'accepted': z.boolean(),
|
|
133
|
+
}))
|
|
134
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_0$schema$value
|
|
135
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_0$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
136
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_1$schema$value
|
|
137
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_1$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_1$schema$value ??= z.union([z.object({
|
|
138
|
+
'ok': z.literal(true),
|
|
139
|
+
'pluginRunId': z.intersection(z.string(), z.unknown()),
|
|
140
|
+
'waitingFor': z.array(z.string()).optional(),
|
|
141
|
+
}), z.object({
|
|
142
|
+
'ok': z.literal(false),
|
|
143
|
+
'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(),
|
|
146
|
+
'message': z.string().optional(),
|
|
147
|
+
'stack': z.string().optional(),
|
|
148
|
+
})]))
|
|
149
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveRequestRun_result$schema$value
|
|
150
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveRequestRun_result$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveRequestRun_result$schema$value ??= z.object({
|
|
151
|
+
'accepted': z.boolean(),
|
|
152
|
+
}))
|
|
153
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_0$schema$value
|
|
154
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_0$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
155
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_1$schema$value
|
|
156
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_1$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
157
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_2$schema$value
|
|
158
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_2$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_2$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
159
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_3$schema$value
|
|
160
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_3$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_3$schema$value ??= z.union([z.literal("run"), z.literal("update")]))
|
|
161
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_4$schema$value
|
|
162
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_4$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_4$schema$value ??= z.union([z.literal(null), z.intersection(z.string(), z.unknown())]))
|
|
163
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_5$schema$value
|
|
164
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_5$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_5$schema$value ??= z.boolean())
|
|
165
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_result$schema$value
|
|
166
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_result$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_result$schema$value ??= z.union([z.object({
|
|
167
|
+
'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()),
|
|
171
|
+
'waitingFor': z.array(z.string()),
|
|
172
|
+
'startedHere': z.boolean(),
|
|
173
|
+
}), z.intersection(z.object({
|
|
174
|
+
'ok': z.literal(false),
|
|
175
|
+
}), z.object({
|
|
176
|
+
'message': z.string(),
|
|
177
|
+
'stack': z.string().optional(),
|
|
178
|
+
}))]))
|
|
179
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_settleUserRun_parameter_0$schema$value
|
|
180
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_settleUserRun_parameter_0$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_settleUserRun_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
181
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_settleUserRun_parameter_1$schema$value
|
|
182
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_settleUserRun_parameter_1$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_settleUserRun_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
183
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_settleUserRun_parameter_2$schema$value
|
|
184
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_settleUserRun_parameter_2$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_settleUserRun_parameter_2$schema$value ??= z.union([z.object({
|
|
185
|
+
'ok': z.literal(true),
|
|
186
|
+
'pluginRunId': z.intersection(z.string(), z.unknown()),
|
|
187
|
+
'waitingFor': z.array(z.string()).optional(),
|
|
188
|
+
}), z.object({
|
|
189
|
+
'ok': z.literal(false),
|
|
190
|
+
'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(),
|
|
193
|
+
'message': z.string().optional(),
|
|
194
|
+
'stack': z.string().optional(),
|
|
195
|
+
})]))
|
|
196
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_settleUserRun_result$schema$value
|
|
197
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_settleUserRun_result$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_settleUserRun_result$schema$value ??= z.union([z.object({
|
|
198
|
+
'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")]),
|
|
208
|
+
}), z.object({
|
|
209
|
+
'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")]),
|
|
211
|
+
'message': z.string(),
|
|
212
|
+
'stack': z.string().optional(),
|
|
213
|
+
})]))
|
|
214
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_stopFromPanel_parameter_0$schema$value
|
|
215
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_stopFromPanel_parameter_0$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_stopFromPanel_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
216
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_stopFromPanel_parameter_1$schema$value
|
|
217
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_stopFromPanel_parameter_1$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_stopFromPanel_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
218
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_stopFromPanel_result$schema$value
|
|
219
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_stopFromPanel_result$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_stopFromPanel_result$schema$value ??= z.union([z.object({
|
|
220
|
+
'ok': z.literal(true),
|
|
221
|
+
}), z.object({
|
|
222
|
+
'ok': z.literal(false),
|
|
223
|
+
'reason': z.union([z.literal("plugin-missing"), z.literal("not-running")]),
|
|
224
|
+
'message': z.string(),
|
|
225
|
+
})]))
|
|
226
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_syncInspectManifest_parameter_0$schema$value
|
|
227
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_syncInspectManifest_parameter_0$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_syncInspectManifest_parameter_0$schema$value ??= z.array(z.object({
|
|
228
|
+
'id': z.string(),
|
|
229
|
+
'description': z.string(),
|
|
230
|
+
'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
|
+
})),
|
|
236
|
+
})))
|
|
237
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_syncInspectManifest_result$schema$value
|
|
238
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_syncInspectManifest_result$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_syncInspectManifest_result$schema$value ??= z.literal(null))
|
|
239
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_0$schema$value
|
|
240
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_0$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
241
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_1$schema$value
|
|
242
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_1$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_1$schema$value ??= z.intersection(z.string(), z.unknown()))
|
|
243
|
+
let _qilin_agent_kylin_host_runner_dynamicCordisRunner_undefineFromPanel_result$schema$value
|
|
244
|
+
const _qilin_agent_kylin_host_runner_dynamicCordisRunner_undefineFromPanel_result$schema = () => (_qilin_agent_kylin_host_runner_dynamicCordisRunner_undefineFromPanel_result$schema$value ??= z.union([z.object({
|
|
245
|
+
'ok': z.literal(true),
|
|
246
|
+
'wasRunning': z.boolean(),
|
|
247
|
+
}), z.object({
|
|
248
|
+
'ok': z.literal(false),
|
|
249
|
+
'reason': z.literal("plugin-missing"),
|
|
250
|
+
'message': z.string(),
|
|
251
|
+
})]))
|
|
252
|
+
|
|
253
|
+
export const TYPERT = {
|
|
254
|
+
package: '@qilin-agent/kylin-host-runner',
|
|
255
|
+
face: 'host',
|
|
256
|
+
schemas: [
|
|
257
|
+
],
|
|
258
|
+
invocations: [
|
|
259
|
+
{
|
|
260
|
+
id: '@qilin-agent/kylin-host-runner#dynamicCordisRunner/getClientCode',
|
|
261
|
+
service: 'dynamicCordisRunner',
|
|
262
|
+
namespace: 'dynamicCordisRunner',
|
|
263
|
+
method: 'getClientCode',
|
|
264
|
+
invocation: { kind: 'direct' },
|
|
265
|
+
scope: {
|
|
266
|
+
context: 'agent',
|
|
267
|
+
wire: 'agentId',
|
|
268
|
+
},
|
|
269
|
+
parameters: [
|
|
270
|
+
{
|
|
271
|
+
name: 'agent',
|
|
272
|
+
wire: 'agentId',
|
|
273
|
+
source: 'lookup',
|
|
274
|
+
lookup: 'agent',
|
|
275
|
+
codec: {
|
|
276
|
+
mode: 'strict',
|
|
277
|
+
typeSymbol: '@qilin-agent/session/types#SessionId',
|
|
278
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_getClientCode_parameter_0$schema,
|
|
279
|
+
},
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
name: 'pluginId',
|
|
283
|
+
wire: 'pluginId',
|
|
284
|
+
source: 'json',
|
|
285
|
+
codec: {
|
|
286
|
+
mode: 'strict',
|
|
287
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#CordisDynamicPluginId',
|
|
288
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_getClientCode_parameter_1$schema,
|
|
289
|
+
},
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
name: 'pluginRunId',
|
|
293
|
+
wire: 'pluginRunId',
|
|
294
|
+
source: 'json',
|
|
295
|
+
codec: {
|
|
296
|
+
mode: 'strict',
|
|
297
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#CordisDynamicPluginRunId',
|
|
298
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_getClientCode_parameter_2$schema,
|
|
299
|
+
},
|
|
300
|
+
},
|
|
301
|
+
],
|
|
302
|
+
result: {
|
|
303
|
+
mode: 'strict',
|
|
304
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#DynamicCordisClientSource',
|
|
305
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_getClientCode_result$schema,
|
|
306
|
+
},
|
|
307
|
+
sourceLocation: {"file":"packages/extensions/kylin-host-runner/src/index.ts","line":393,"column":3},
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
id: '@qilin-agent/kylin-host-runner#dynamicCordisRunner/inventory',
|
|
311
|
+
service: 'dynamicCordisRunner',
|
|
312
|
+
namespace: 'dynamicCordisRunner',
|
|
313
|
+
method: 'inventory',
|
|
314
|
+
invocation: { kind: 'direct' },
|
|
315
|
+
parameters: [
|
|
316
|
+
],
|
|
317
|
+
result: {
|
|
318
|
+
mode: 'strict',
|
|
319
|
+
typeSymbol: '@qilin-agent/kylin-host-runner#dynamicCordisRunner/inventory:result',
|
|
320
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_inventory_result$schema,
|
|
321
|
+
},
|
|
322
|
+
sourceLocation: {"file":"packages/extensions/kylin-host-runner/src/index.ts","line":535,"column":3},
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
id: '@qilin-agent/kylin-host-runner#dynamicCordisRunner/invoke',
|
|
326
|
+
service: 'dynamicCordisRunner',
|
|
327
|
+
namespace: 'dynamicCordisRunner',
|
|
328
|
+
method: 'invoke',
|
|
329
|
+
invocation: { kind: 'direct' },
|
|
330
|
+
parameters: [
|
|
331
|
+
{
|
|
332
|
+
name: 'pluginId',
|
|
333
|
+
wire: 'pluginId',
|
|
334
|
+
source: 'json',
|
|
335
|
+
codec: {
|
|
336
|
+
mode: 'strict',
|
|
337
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#CordisDynamicPluginId',
|
|
338
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_invoke_parameter_0$schema,
|
|
339
|
+
},
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
name: 'pluginRunId',
|
|
343
|
+
wire: 'pluginRunId',
|
|
344
|
+
source: 'json',
|
|
345
|
+
codec: {
|
|
346
|
+
mode: 'strict',
|
|
347
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#CordisDynamicPluginRunId',
|
|
348
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_invoke_parameter_1$schema,
|
|
349
|
+
},
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
name: 'method',
|
|
353
|
+
wire: 'method',
|
|
354
|
+
source: 'json',
|
|
355
|
+
codec: {
|
|
356
|
+
mode: 'strict',
|
|
357
|
+
typeSymbol: '@qilin-agent/kylin-host-runner#dynamicCordisRunner/invoke:method',
|
|
358
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_invoke_parameter_2$schema,
|
|
359
|
+
},
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
name: 'args',
|
|
363
|
+
wire: 'args',
|
|
364
|
+
source: 'json',
|
|
365
|
+
codec: {
|
|
366
|
+
mode: 'strict',
|
|
367
|
+
typeSymbol: '@qilin-agent/util-values#JsonValue',
|
|
368
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_invoke_parameter_3$schema,
|
|
369
|
+
},
|
|
370
|
+
},
|
|
371
|
+
],
|
|
372
|
+
result: {
|
|
373
|
+
mode: 'strict',
|
|
374
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#DynamicCordisInvokeResult',
|
|
375
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_invoke_result$schema,
|
|
376
|
+
},
|
|
377
|
+
sourceLocation: {"file":"packages/extensions/kylin-host-runner/src/index.ts","line":751,"column":9},
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
id: '@qilin-agent/kylin-host-runner#dynamicCordisRunner/reportClientGuardFailure',
|
|
381
|
+
service: 'dynamicCordisRunner',
|
|
382
|
+
namespace: 'dynamicCordisRunner',
|
|
383
|
+
method: 'reportClientGuardFailure',
|
|
384
|
+
invocation: { kind: 'direct' },
|
|
385
|
+
scope: {
|
|
386
|
+
context: 'agent',
|
|
387
|
+
wire: 'agentId',
|
|
388
|
+
},
|
|
389
|
+
parameters: [
|
|
390
|
+
{
|
|
391
|
+
name: 'agent',
|
|
392
|
+
wire: 'agentId',
|
|
393
|
+
source: 'lookup',
|
|
394
|
+
lookup: 'agent',
|
|
395
|
+
codec: {
|
|
396
|
+
mode: 'strict',
|
|
397
|
+
typeSymbol: '@qilin-agent/session/types#SessionId',
|
|
398
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_0$schema,
|
|
399
|
+
},
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
name: 'pluginId',
|
|
403
|
+
wire: 'pluginId',
|
|
404
|
+
source: 'json',
|
|
405
|
+
codec: {
|
|
406
|
+
mode: 'strict',
|
|
407
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#CordisDynamicPluginId',
|
|
408
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_1$schema,
|
|
409
|
+
},
|
|
410
|
+
},
|
|
411
|
+
{
|
|
412
|
+
name: 'pluginRunId',
|
|
413
|
+
wire: 'pluginRunId',
|
|
414
|
+
source: 'json',
|
|
415
|
+
codec: {
|
|
416
|
+
mode: 'strict',
|
|
417
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#CordisDynamicPluginRunId',
|
|
418
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_2$schema,
|
|
419
|
+
},
|
|
420
|
+
},
|
|
421
|
+
{
|
|
422
|
+
name: 'failure',
|
|
423
|
+
wire: 'failure',
|
|
424
|
+
source: 'json',
|
|
425
|
+
codec: {
|
|
426
|
+
mode: 'strict',
|
|
427
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#CordisErrorDetails',
|
|
428
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportClientGuardFailure_parameter_3$schema,
|
|
429
|
+
},
|
|
430
|
+
},
|
|
431
|
+
],
|
|
432
|
+
result: {
|
|
433
|
+
mode: 'strict',
|
|
434
|
+
typeSymbol: '@qilin-agent/kylin-host-runner#dynamicCordisRunner/reportClientGuardFailure:result',
|
|
435
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportClientGuardFailure_result$schema,
|
|
436
|
+
},
|
|
437
|
+
sourceLocation: {"file":"packages/extensions/kylin-host-runner/src/index.ts","line":728,"column":9},
|
|
438
|
+
},
|
|
439
|
+
{
|
|
440
|
+
id: '@qilin-agent/kylin-host-runner#dynamicCordisRunner/reportRenderFailure',
|
|
441
|
+
service: 'dynamicCordisRunner',
|
|
442
|
+
namespace: 'dynamicCordisRunner',
|
|
443
|
+
method: 'reportRenderFailure',
|
|
444
|
+
invocation: { kind: 'direct' },
|
|
445
|
+
scope: {
|
|
446
|
+
context: 'agent',
|
|
447
|
+
wire: 'agentId',
|
|
448
|
+
},
|
|
449
|
+
parameters: [
|
|
450
|
+
{
|
|
451
|
+
name: 'agent',
|
|
452
|
+
wire: 'agentId',
|
|
453
|
+
source: 'lookup',
|
|
454
|
+
lookup: 'agent',
|
|
455
|
+
codec: {
|
|
456
|
+
mode: 'strict',
|
|
457
|
+
typeSymbol: '@qilin-agent/session/types#SessionId',
|
|
458
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_0$schema,
|
|
459
|
+
},
|
|
460
|
+
},
|
|
461
|
+
{
|
|
462
|
+
name: 'pluginId',
|
|
463
|
+
wire: 'pluginId',
|
|
464
|
+
source: 'json',
|
|
465
|
+
codec: {
|
|
466
|
+
mode: 'strict',
|
|
467
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#CordisDynamicPluginId',
|
|
468
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_1$schema,
|
|
469
|
+
},
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
name: 'pluginRunId',
|
|
473
|
+
wire: 'pluginRunId',
|
|
474
|
+
source: 'json',
|
|
475
|
+
codec: {
|
|
476
|
+
mode: 'strict',
|
|
477
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#CordisDynamicPluginRunId',
|
|
478
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_2$schema,
|
|
479
|
+
},
|
|
480
|
+
},
|
|
481
|
+
{
|
|
482
|
+
name: 'failure',
|
|
483
|
+
wire: 'failure',
|
|
484
|
+
source: 'json',
|
|
485
|
+
codec: {
|
|
486
|
+
mode: 'strict',
|
|
487
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#DynamicCordisRenderFailure',
|
|
488
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportRenderFailure_parameter_3$schema,
|
|
489
|
+
},
|
|
490
|
+
},
|
|
491
|
+
],
|
|
492
|
+
result: {
|
|
493
|
+
mode: 'strict',
|
|
494
|
+
typeSymbol: '@qilin-agent/kylin-host-runner#dynamicCordisRunner/reportRenderFailure:result',
|
|
495
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_reportRenderFailure_result$schema,
|
|
496
|
+
},
|
|
497
|
+
sourceLocation: {"file":"packages/extensions/kylin-host-runner/src/index.ts","line":694,"column":9},
|
|
498
|
+
},
|
|
499
|
+
{
|
|
500
|
+
id: '@qilin-agent/kylin-host-runner#dynamicCordisRunner/resolveInspectQuery',
|
|
501
|
+
service: 'dynamicCordisRunner',
|
|
502
|
+
namespace: 'dynamicCordisRunner',
|
|
503
|
+
method: 'resolveInspectQuery',
|
|
504
|
+
invocation: { kind: 'direct' },
|
|
505
|
+
scope: {
|
|
506
|
+
context: 'agent',
|
|
507
|
+
wire: 'agentId',
|
|
508
|
+
},
|
|
509
|
+
parameters: [
|
|
510
|
+
{
|
|
511
|
+
name: 'agent',
|
|
512
|
+
wire: 'agentId',
|
|
513
|
+
source: 'lookup',
|
|
514
|
+
lookup: 'agent',
|
|
515
|
+
codec: {
|
|
516
|
+
mode: 'strict',
|
|
517
|
+
typeSymbol: '@qilin-agent/session/types#SessionId',
|
|
518
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_0$schema,
|
|
519
|
+
},
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
name: 'requestId',
|
|
523
|
+
wire: 'requestId',
|
|
524
|
+
source: 'json',
|
|
525
|
+
codec: {
|
|
526
|
+
mode: 'strict',
|
|
527
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#CordisInspectRequestId',
|
|
528
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_1$schema,
|
|
529
|
+
},
|
|
530
|
+
},
|
|
531
|
+
{
|
|
532
|
+
name: 'resolution',
|
|
533
|
+
wire: 'resolution',
|
|
534
|
+
source: 'json',
|
|
535
|
+
codec: {
|
|
536
|
+
mode: 'strict',
|
|
537
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#CordisInspectQueryResolution',
|
|
538
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveInspectQuery_parameter_2$schema,
|
|
539
|
+
},
|
|
540
|
+
},
|
|
541
|
+
],
|
|
542
|
+
result: {
|
|
543
|
+
mode: 'strict',
|
|
544
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#CordisInspectResolveAck',
|
|
545
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveInspectQuery_result$schema,
|
|
546
|
+
},
|
|
547
|
+
sourceLocation: {"file":"packages/extensions/kylin-host-runner/src/index.ts","line":521,"column":3},
|
|
548
|
+
},
|
|
549
|
+
{
|
|
550
|
+
id: '@qilin-agent/kylin-host-runner#dynamicCordisRunner/resolveRequestRun',
|
|
551
|
+
service: 'dynamicCordisRunner',
|
|
552
|
+
namespace: 'dynamicCordisRunner',
|
|
553
|
+
method: 'resolveRequestRun',
|
|
554
|
+
invocation: { kind: 'direct' },
|
|
555
|
+
parameters: [
|
|
556
|
+
{
|
|
557
|
+
name: 'requestId',
|
|
558
|
+
wire: 'requestId',
|
|
559
|
+
source: 'json',
|
|
560
|
+
codec: {
|
|
561
|
+
mode: 'strict',
|
|
562
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#ApprovalRequestId',
|
|
563
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_0$schema,
|
|
564
|
+
},
|
|
565
|
+
},
|
|
566
|
+
{
|
|
567
|
+
name: 'resolution',
|
|
568
|
+
wire: 'resolution',
|
|
569
|
+
source: 'json',
|
|
570
|
+
codec: {
|
|
571
|
+
mode: 'strict',
|
|
572
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#DynamicCordisRunResolution',
|
|
573
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveRequestRun_parameter_1$schema,
|
|
574
|
+
},
|
|
575
|
+
},
|
|
576
|
+
],
|
|
577
|
+
result: {
|
|
578
|
+
mode: 'strict',
|
|
579
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#DynamicCordisResolveAck',
|
|
580
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_resolveRequestRun_result$schema,
|
|
581
|
+
},
|
|
582
|
+
sourceLocation: {"file":"packages/extensions/kylin-host-runner/src/index.ts","line":422,"column":9},
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
id: '@qilin-agent/kylin-host-runner#dynamicCordisRunner/runHostHalf',
|
|
586
|
+
service: 'dynamicCordisRunner',
|
|
587
|
+
namespace: 'dynamicCordisRunner',
|
|
588
|
+
method: 'runHostHalf',
|
|
589
|
+
invocation: { kind: 'direct' },
|
|
590
|
+
scope: {
|
|
591
|
+
context: 'agent',
|
|
592
|
+
wire: 'agentId',
|
|
593
|
+
},
|
|
594
|
+
parameters: [
|
|
595
|
+
{
|
|
596
|
+
name: 'agent',
|
|
597
|
+
wire: 'agentId',
|
|
598
|
+
source: 'lookup',
|
|
599
|
+
lookup: 'agent',
|
|
600
|
+
codec: {
|
|
601
|
+
mode: 'strict',
|
|
602
|
+
typeSymbol: '@qilin-agent/session/types#SessionId',
|
|
603
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_0$schema,
|
|
604
|
+
},
|
|
605
|
+
},
|
|
606
|
+
{
|
|
607
|
+
name: 'pluginId',
|
|
608
|
+
wire: 'pluginId',
|
|
609
|
+
source: 'json',
|
|
610
|
+
codec: {
|
|
611
|
+
mode: 'strict',
|
|
612
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#CordisDynamicPluginId',
|
|
613
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_1$schema,
|
|
614
|
+
},
|
|
615
|
+
},
|
|
616
|
+
{
|
|
617
|
+
name: 'packageId',
|
|
618
|
+
wire: 'packageId',
|
|
619
|
+
source: 'json',
|
|
620
|
+
codec: {
|
|
621
|
+
mode: 'strict',
|
|
622
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#CordisDynamicPackageId',
|
|
623
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_2$schema,
|
|
624
|
+
},
|
|
625
|
+
},
|
|
626
|
+
{
|
|
627
|
+
name: 'mode',
|
|
628
|
+
wire: 'mode',
|
|
629
|
+
source: 'json',
|
|
630
|
+
codec: {
|
|
631
|
+
mode: 'strict',
|
|
632
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#CordisDynamicRunMode',
|
|
633
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_3$schema,
|
|
634
|
+
},
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
name: 'requestId',
|
|
638
|
+
wire: 'requestId',
|
|
639
|
+
source: 'json',
|
|
640
|
+
codec: {
|
|
641
|
+
mode: 'strict',
|
|
642
|
+
typeSymbol: '@qilin-agent/kylin-host-runner#dynamicCordisRunner/runHostHalf:requestId',
|
|
643
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_4$schema,
|
|
644
|
+
},
|
|
645
|
+
},
|
|
646
|
+
{
|
|
647
|
+
name: 'approveFutureVersions',
|
|
648
|
+
wire: 'approveFutureVersions',
|
|
649
|
+
source: 'json',
|
|
650
|
+
codec: {
|
|
651
|
+
mode: 'strict',
|
|
652
|
+
typeSymbol: '@qilin-agent/kylin-host-runner#dynamicCordisRunner/runHostHalf:approveFutureVersions',
|
|
653
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_parameter_5$schema,
|
|
654
|
+
},
|
|
655
|
+
},
|
|
656
|
+
],
|
|
657
|
+
result: {
|
|
658
|
+
mode: 'strict',
|
|
659
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#DynamicCordisHostHalfResult',
|
|
660
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_runHostHalf_result$schema,
|
|
661
|
+
},
|
|
662
|
+
sourceLocation: {"file":"packages/extensions/kylin-host-runner/src/index.ts","line":334,"column":9},
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
id: '@qilin-agent/kylin-host-runner#dynamicCordisRunner/settleUserRun',
|
|
666
|
+
service: 'dynamicCordisRunner',
|
|
667
|
+
namespace: 'dynamicCordisRunner',
|
|
668
|
+
method: 'settleUserRun',
|
|
669
|
+
invocation: { kind: 'direct' },
|
|
670
|
+
scope: {
|
|
671
|
+
context: 'agent',
|
|
672
|
+
wire: 'agentId',
|
|
673
|
+
},
|
|
674
|
+
parameters: [
|
|
675
|
+
{
|
|
676
|
+
name: 'agent',
|
|
677
|
+
wire: 'agentId',
|
|
678
|
+
source: 'lookup',
|
|
679
|
+
lookup: 'agent',
|
|
680
|
+
codec: {
|
|
681
|
+
mode: 'strict',
|
|
682
|
+
typeSymbol: '@qilin-agent/session/types#SessionId',
|
|
683
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_settleUserRun_parameter_0$schema,
|
|
684
|
+
},
|
|
685
|
+
},
|
|
686
|
+
{
|
|
687
|
+
name: 'pluginId',
|
|
688
|
+
wire: 'pluginId',
|
|
689
|
+
source: 'json',
|
|
690
|
+
codec: {
|
|
691
|
+
mode: 'strict',
|
|
692
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#CordisDynamicPluginId',
|
|
693
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_settleUserRun_parameter_1$schema,
|
|
694
|
+
},
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
name: 'resolution',
|
|
698
|
+
wire: 'resolution',
|
|
699
|
+
source: 'json',
|
|
700
|
+
codec: {
|
|
701
|
+
mode: 'strict',
|
|
702
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#DynamicCordisRunResolution',
|
|
703
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_settleUserRun_parameter_2$schema,
|
|
704
|
+
},
|
|
705
|
+
},
|
|
706
|
+
],
|
|
707
|
+
result: {
|
|
708
|
+
mode: 'strict',
|
|
709
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#DynamicCordisRunResponse',
|
|
710
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_settleUserRun_result$schema,
|
|
711
|
+
},
|
|
712
|
+
sourceLocation: {"file":"packages/extensions/kylin-host-runner/src/index.ts","line":447,"column":9},
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
id: '@qilin-agent/kylin-host-runner#dynamicCordisRunner/stopFromPanel',
|
|
716
|
+
service: 'dynamicCordisRunner',
|
|
717
|
+
namespace: 'dynamicCordisRunner',
|
|
718
|
+
method: 'stopFromPanel',
|
|
719
|
+
invocation: { kind: 'direct' },
|
|
720
|
+
scope: {
|
|
721
|
+
context: 'agent',
|
|
722
|
+
wire: 'agentId',
|
|
723
|
+
},
|
|
724
|
+
parameters: [
|
|
725
|
+
{
|
|
726
|
+
name: 'agent',
|
|
727
|
+
wire: 'agentId',
|
|
728
|
+
source: 'lookup',
|
|
729
|
+
lookup: 'agent',
|
|
730
|
+
codec: {
|
|
731
|
+
mode: 'strict',
|
|
732
|
+
typeSymbol: '@qilin-agent/session/types#SessionId',
|
|
733
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_stopFromPanel_parameter_0$schema,
|
|
734
|
+
},
|
|
735
|
+
},
|
|
736
|
+
{
|
|
737
|
+
name: 'pluginId',
|
|
738
|
+
wire: 'pluginId',
|
|
739
|
+
source: 'json',
|
|
740
|
+
codec: {
|
|
741
|
+
mode: 'strict',
|
|
742
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#CordisDynamicPluginId',
|
|
743
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_stopFromPanel_parameter_1$schema,
|
|
744
|
+
},
|
|
745
|
+
},
|
|
746
|
+
],
|
|
747
|
+
result: {
|
|
748
|
+
mode: 'strict',
|
|
749
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#DynamicCordisStopResponse',
|
|
750
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_stopFromPanel_result$schema,
|
|
751
|
+
},
|
|
752
|
+
sourceLocation: {"file":"packages/extensions/kylin-host-runner/src/index.ts","line":489,"column":9},
|
|
753
|
+
},
|
|
754
|
+
{
|
|
755
|
+
id: '@qilin-agent/kylin-host-runner#dynamicCordisRunner/syncInspectManifest',
|
|
756
|
+
service: 'dynamicCordisRunner',
|
|
757
|
+
namespace: 'dynamicCordisRunner',
|
|
758
|
+
method: 'syncInspectManifest',
|
|
759
|
+
invocation: { kind: 'direct' },
|
|
760
|
+
parameters: [
|
|
761
|
+
{
|
|
762
|
+
name: 'providers',
|
|
763
|
+
wire: 'providers',
|
|
764
|
+
source: 'json',
|
|
765
|
+
codec: {
|
|
766
|
+
mode: 'strict',
|
|
767
|
+
typeSymbol: '@qilin-agent/kylin-host-runner#dynamicCordisRunner/syncInspectManifest:providers',
|
|
768
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_syncInspectManifest_parameter_0$schema,
|
|
769
|
+
},
|
|
770
|
+
},
|
|
771
|
+
],
|
|
772
|
+
result: {
|
|
773
|
+
mode: 'strict',
|
|
774
|
+
typeSymbol: '@qilin-agent/kylin-host-runner#dynamicCordisRunner/syncInspectManifest:result',
|
|
775
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_syncInspectManifest_result$schema,
|
|
776
|
+
},
|
|
777
|
+
sourceLocation: {"file":"packages/extensions/kylin-host-runner/src/index.ts","line":507,"column":3},
|
|
778
|
+
},
|
|
779
|
+
{
|
|
780
|
+
id: '@qilin-agent/kylin-host-runner#dynamicCordisRunner/undefineFromPanel',
|
|
781
|
+
service: 'dynamicCordisRunner',
|
|
782
|
+
namespace: 'dynamicCordisRunner',
|
|
783
|
+
method: 'undefineFromPanel',
|
|
784
|
+
invocation: { kind: 'direct' },
|
|
785
|
+
scope: {
|
|
786
|
+
context: 'agent',
|
|
787
|
+
wire: 'agentId',
|
|
788
|
+
},
|
|
789
|
+
parameters: [
|
|
790
|
+
{
|
|
791
|
+
name: 'agent',
|
|
792
|
+
wire: 'agentId',
|
|
793
|
+
source: 'lookup',
|
|
794
|
+
lookup: 'agent',
|
|
795
|
+
codec: {
|
|
796
|
+
mode: 'strict',
|
|
797
|
+
typeSymbol: '@qilin-agent/session/types#SessionId',
|
|
798
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_0$schema,
|
|
799
|
+
},
|
|
800
|
+
},
|
|
801
|
+
{
|
|
802
|
+
name: 'pluginId',
|
|
803
|
+
wire: 'pluginId',
|
|
804
|
+
source: 'json',
|
|
805
|
+
codec: {
|
|
806
|
+
mode: 'strict',
|
|
807
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#CordisDynamicPluginId',
|
|
808
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_undefineFromPanel_parameter_1$schema,
|
|
809
|
+
},
|
|
810
|
+
},
|
|
811
|
+
],
|
|
812
|
+
result: {
|
|
813
|
+
mode: 'strict',
|
|
814
|
+
typeSymbol: '@qilin-agent/kylin-host-runner/types#DynamicCordisUndefineReceipt',
|
|
815
|
+
create: _qilin_agent_kylin_host_runner_dynamicCordisRunner_undefineFromPanel_result$schema,
|
|
816
|
+
},
|
|
817
|
+
sourceLocation: {"file":"packages/extensions/kylin-host-runner/src/index.ts","line":236,"column":9},
|
|
818
|
+
},
|
|
819
|
+
],
|
|
820
|
+
model: {
|
|
821
|
+
"services": [
|
|
822
|
+
{
|
|
823
|
+
"description": "Registry and cross-page router behind the two model-facing inspect tools.",
|
|
824
|
+
"summary": "Registry and cross-page router behind the two model-facing inspect tools.",
|
|
825
|
+
"tags": [],
|
|
826
|
+
"jsDoc": "/** Registry and cross-page router behind the two model-facing inspect tools. */",
|
|
827
|
+
"key": "cordisInspect",
|
|
828
|
+
"exportName": "CordisInspectRegistryService",
|
|
829
|
+
"members": [
|
|
830
|
+
{
|
|
831
|
+
"kind": "method",
|
|
832
|
+
"name": "register",
|
|
833
|
+
"signature": "register(registration: HostCordisInspectProviderRegistration): () => void",
|
|
834
|
+
"summary": "Register one Host provider.",
|
|
835
|
+
"jsDoc": "/**\n * Register one Host provider.\n * @param registration - manifest and local query handler.\n * @returns idempotent disposer.\n */"
|
|
836
|
+
},
|
|
837
|
+
{
|
|
838
|
+
"kind": "method",
|
|
839
|
+
"name": "syncClientManifest",
|
|
840
|
+
"signature": "syncClientManifest(providers: readonly CordisInspectProviderManifest[]): void",
|
|
841
|
+
"summary": "Replace the mirrored Client provider directory.",
|
|
842
|
+
"jsDoc": "/**\n * Replace the mirrored Client provider directory.\n * @param providers - complete Client manifest snapshot.\n */"
|
|
843
|
+
},
|
|
844
|
+
{
|
|
845
|
+
"kind": "method",
|
|
846
|
+
"name": "list",
|
|
847
|
+
"signature": "list(): CordisInspectProviderView[]",
|
|
848
|
+
"summary": "Return the complete known Host and Client provider directory.",
|
|
849
|
+
"jsDoc": "/**\n * Return the complete known Host and Client provider directory.\n * @returns Host providers followed by the Client providers.\n */"
|
|
850
|
+
},
|
|
851
|
+
{
|
|
852
|
+
"kind": "method",
|
|
853
|
+
"name": "query",
|
|
854
|
+
"signature": "async query( platform: CordisInspectPlatform, providerId: string, methodName: string, input: JsonValue | undefined, agent: Agent, signal: AbortSignal, ): Promise<JsonValue>",
|
|
855
|
+
"summary": "Execute one provider query on its owning platform.",
|
|
856
|
+
"jsDoc": "/**\n * Execute one provider query on its owning platform.\n * @param platform - Host or Client runtime.\n * @param providerId - provider selected from {@link list}.\n * @param methodName - declared method name.\n * @param input - optional lossless JSON input.\n * @param agent - requesting Agent and scope.\n * @param signal - tool-call cancellation.\n * @returns provider JSON data; Client queries fail fast when Gateway has no live Client\n * and retain only the first observed failure diagnostic for timeout reporting.\n */"
|
|
857
|
+
},
|
|
858
|
+
{
|
|
859
|
+
"kind": "method",
|
|
860
|
+
"name": "resolveClientQuery",
|
|
861
|
+
"signature": "resolveClientQuery( agent: Agent, requestId: CordisInspectRequestId, resolution: CordisInspectQueryResolution, ): CordisInspectResolveAck",
|
|
862
|
+
"summary": "Accept the first valid Client response for a pending query.",
|
|
863
|
+
"jsDoc": "/**\n * Accept the first valid Client response for a pending query.\n * @param agent - Agent whose Session owns the query.\n * @param requestId - Pending Client query identity.\n * @param resolution - Client provider result or failure.\n * @returns acknowledgement with accepted true only for a success that settles the query; only the first failure diagnostic is retained.\n */"
|
|
864
|
+
}
|
|
865
|
+
],
|
|
866
|
+
"types": [
|
|
867
|
+
{
|
|
868
|
+
"name": "AfterScheduleRecord",
|
|
869
|
+
"declaration": "export interface AfterScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'after';\n readonly title: string;\n readonly prompt: string;\n readonly afterSeconds: number;\n readonly scheduledAt: string;\n}"
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
"name": "Agent",
|
|
873
|
+
"declaration": "export interface Agent {\n readonly id: SessionId;\n readonly options: AgentOptions;\n readonly session: Session;\n readonly inbox: Inbox;\n readonly status: AgentStatus;\n readonly ctx: Context;\n cancel(cause: AgentCancelCause, options?: CancelOptions): void;\n whenIdle(): Promise<void>;\n runMaintenance<T>(task: (signal: AbortSignal) => Promise<T>): Promise<T>;\n send(message: UserMessage, target: InboxTarget, wakeup: boolean): void;\n followup(message: UserMessage): void;\n steer(message: UserMessage): void;\n inject(message: UserMessage): void;\n}"
|
|
874
|
+
},
|
|
875
|
+
{
|
|
876
|
+
"name": "AgentCancelCause",
|
|
877
|
+
"declaration": "export type AgentCancelCause = { readonly kind: 'user'; } | { readonly kind: 'parent'; } | { readonly kind: 'hook'; readonly reason: string; } | { readonly kind: 'disposed'; };"
|
|
878
|
+
},
|
|
879
|
+
{
|
|
880
|
+
"name": "AgentMessageSource",
|
|
881
|
+
"declaration": "export interface AgentMessageSource {\n readonly kind: 'agent-message';\n readonly form: 'relay';\n readonly senderSessionId: SessionId;\n}"
|
|
882
|
+
},
|
|
883
|
+
{
|
|
884
|
+
"name": "AgentOptions",
|
|
885
|
+
"declaration": "export interface AgentOptions {\n provider?: string;\n model?: string;\n reasoningEffort?: ReasoningEffortId;\n maxTokens?: number;\n subagentDepth?: number;\n}"
|
|
886
|
+
},
|
|
887
|
+
{
|
|
888
|
+
"name": "AgentStatus",
|
|
889
|
+
"declaration": "export type AgentStatus = 'idle' | 'running';"
|
|
890
|
+
},
|
|
891
|
+
{
|
|
892
|
+
"name": "ApprovalOutcome",
|
|
893
|
+
"declaration": "export type ApprovalOutcome = 'allowed-once' | 'rejected' | 'cancelled' | 'unavailable';"
|
|
894
|
+
},
|
|
895
|
+
{
|
|
896
|
+
"name": "ApprovalPolicy",
|
|
897
|
+
"declaration": "export type ApprovalPolicy = 'ask' | 'never';"
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
"name": "ApprovalRequestId",
|
|
901
|
+
"declaration": "export type ApprovalRequestId = Branded<'ApprovalRequestId'>;"
|
|
902
|
+
},
|
|
903
|
+
{
|
|
904
|
+
"name": "AssistantMessage",
|
|
905
|
+
"declaration": "export interface AssistantMessage extends MessageBase {\n readonly role: 'assistant';\n readonly source: ModelMessageSource;\n}"
|
|
906
|
+
},
|
|
907
|
+
{
|
|
908
|
+
"name": "AssistantProviderMetadata",
|
|
909
|
+
"declaration": "export interface AssistantProviderMetadata {\n provider: string;\n model: string;\n replayState?: unknown;\n}"
|
|
910
|
+
},
|
|
911
|
+
{
|
|
912
|
+
"name": "AssistantStreamRecord",
|
|
913
|
+
"declaration": "export type AssistantStreamRecord = { readonly type: 'text-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly texts: readonly string[]; } | { readonly type: 'reasoning-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly texts: readonly string[]; } | { readonly type: 'tool-call-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly id: ToolCallId; readonly name?: string; readonly args: readonly string[]; } | { readonly type: 'chunk'; readonly time: number; readonly chunk: StreamChunk; };"
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
"name": "AtScheduleRecord",
|
|
917
|
+
"declaration": "export interface AtScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'at';\n readonly title: string;\n readonly prompt: string;\n readonly scheduledAt: string;\n}"
|
|
918
|
+
},
|
|
919
|
+
{
|
|
920
|
+
"name": "AttachmentId",
|
|
921
|
+
"declaration": "export type AttachmentId = Branded<'AttachmentId'>;"
|
|
922
|
+
},
|
|
923
|
+
{
|
|
924
|
+
"name": "Branded",
|
|
925
|
+
"declaration": "export type Branded<B extends string> = string & { readonly [BRAND]: B; };"
|
|
926
|
+
},
|
|
927
|
+
{
|
|
928
|
+
"name": "BrandedNumber",
|
|
929
|
+
"declaration": "export type BrandedNumber<B extends string> = number & { readonly [BRAND]: B; };"
|
|
930
|
+
},
|
|
931
|
+
{
|
|
932
|
+
"name": "CancelOptions",
|
|
933
|
+
"declaration": "export interface CancelOptions {\n keepInbox?: boolean | undefined;\n}"
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
"name": "CommandId",
|
|
937
|
+
"declaration": "export type CommandId = Branded<'CommandId'>;"
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
"name": "CommandSource",
|
|
941
|
+
"declaration": "export type CommandSource = CommandSourceMap[keyof CommandSourceMap];"
|
|
942
|
+
},
|
|
943
|
+
{
|
|
944
|
+
"name": "CommandSourceMap",
|
|
945
|
+
"declaration": "export interface CommandSourceMap {\n user: { kind: 'user'; };\n}"
|
|
946
|
+
},
|
|
947
|
+
{
|
|
948
|
+
"name": "CompactionCheckpointSource",
|
|
949
|
+
"declaration": "export type CompactionCheckpointSource = typeof COMPACT_CHECKPOINT_MARKER & { readonly compactionId: CompactionId; readonly sourceCommandId?: CommandId; };"
|
|
950
|
+
},
|
|
951
|
+
{
|
|
952
|
+
"name": "CompactionId",
|
|
953
|
+
"declaration": "export type CompactionId = Branded<'CompactionId'>;"
|
|
954
|
+
},
|
|
955
|
+
{
|
|
956
|
+
"name": "ContentBlock",
|
|
957
|
+
"declaration": "export type ContentBlock = ContentBlockMap[ContentBlockType];"
|
|
958
|
+
},
|
|
959
|
+
{
|
|
960
|
+
"name": "ContentBlockMap",
|
|
961
|
+
"declaration": "export interface ContentBlockMap {\n text: TextBlock;\n reasoning: ReasoningBlock;\n image: ImageBlock;\n file: FileBlock;\n 'tool-call': ToolCallBlock;\n 'tool-addition': ToolAdditionBlock;\n 'tool-removal': ToolRemovalBlock;\n}"
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
"name": "ContentBlockType",
|
|
965
|
+
"declaration": "export type ContentBlockType = keyof ContentBlockMap;"
|
|
966
|
+
},
|
|
967
|
+
{
|
|
968
|
+
"name": "ContextFormed",
|
|
969
|
+
"declaration": "export type ContextFormed = { readonly form?: never; } | { readonly form: 'instructions'; } | { readonly form: 'catalog'; } | { readonly form: 'snapshot'; readonly sections: readonly ContextSnapshotSection[]; } | { readonly form: 'notice'; readonly summary: string; } | { readonly form: 'relay'; } | { readonly form: 'recall'; };"
|
|
970
|
+
},
|
|
971
|
+
{
|
|
972
|
+
"name": "ContextSnapshotSection",
|
|
973
|
+
"declaration": "export interface ContextSnapshotSection {\n readonly name: string;\n readonly text: string;\n}"
|
|
974
|
+
},
|
|
975
|
+
{
|
|
976
|
+
"name": "ContinuableSubagentDescriptorData",
|
|
977
|
+
"declaration": "export interface ContinuableSubagentDescriptorData extends SubagentDescriptorBase {\n readonly mode: 'continuable';\n readonly label: string;\n readonly agentProvider?: string;\n readonly agentModel?: string;\n readonly agentReasoningEffort?: ReasoningEffortId;\n readonly persona?: string;\n readonly toolFilter?: ToolRestriction;\n}"
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
"name": "CordisInspectMethodManifest",
|
|
981
|
+
"declaration": "export interface CordisInspectMethodManifest {\n name: string;\n description: string;\n inputSchema: JsonValue;\n outputSchema: JsonValue;\n}"
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"name": "CordisInspectPlatform",
|
|
985
|
+
"declaration": "export type CordisInspectPlatform = 'host' | 'client';"
|
|
986
|
+
},
|
|
987
|
+
{
|
|
988
|
+
"name": "CordisInspectProviderManifest",
|
|
989
|
+
"declaration": "export interface CordisInspectProviderManifest {\n id: string;\n description: string;\n methods: readonly CordisInspectMethodManifest[];\n}"
|
|
990
|
+
},
|
|
991
|
+
{
|
|
992
|
+
"name": "CordisInspectProviderView",
|
|
993
|
+
"declaration": "export interface CordisInspectProviderView extends CordisInspectProviderManifest {\n platform: CordisInspectPlatform;\n}"
|
|
994
|
+
},
|
|
995
|
+
{
|
|
996
|
+
"name": "CordisInspectQueryResolution",
|
|
997
|
+
"declaration": "export type CordisInspectQueryResolution = { ok: true; data: JsonValue; } | { ok: false; reason: 'provider-missing' | 'method-missing' | 'invalid-input' | 'provider-error' | 'cancelled'; message: string; };"
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
"name": "CordisInspectRequestId",
|
|
1001
|
+
"declaration": "export type CordisInspectRequestId = Branded<'CordisInspectRequestId'>;"
|
|
1002
|
+
},
|
|
1003
|
+
{
|
|
1004
|
+
"name": "CordisInspectResolveAck",
|
|
1005
|
+
"declaration": "export interface CordisInspectResolveAck {\n accepted: boolean;\n}"
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
"name": "DeveloperMessage",
|
|
1009
|
+
"declaration": "export interface DeveloperMessage extends MessageBase {\n readonly role: 'developer';\n}"
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
"name": "EpochHeader",
|
|
1013
|
+
"declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n system?: never;\n}"
|
|
1014
|
+
},
|
|
1015
|
+
{
|
|
1016
|
+
"name": "EveryScheduleDispatchChange",
|
|
1017
|
+
"declaration": "export interface EveryScheduleDispatchChange {\n readonly version: 1;\n readonly operation: 'dispatch';\n readonly id: ScheduleId;\n readonly acceptedAt: string;\n}"
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
"name": "EveryScheduleRecord",
|
|
1021
|
+
"declaration": "export interface EveryScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'every';\n readonly title: string;\n readonly prompt: string;\n readonly everySeconds: number;\n readonly scheduledAt: string;\n}"
|
|
1022
|
+
},
|
|
1023
|
+
{
|
|
1024
|
+
"name": "FeedbackCategory",
|
|
1025
|
+
"declaration": "export type FeedbackCategory = 'task-result' | 'instruction-following' | 'product-interaction' | 'service-stability' | 'resource-cost' | 'security-privacy-permission' | 'other';"
|
|
1026
|
+
},
|
|
1027
|
+
{
|
|
1028
|
+
"name": "FeedbackRecord",
|
|
1029
|
+
"declaration": "export interface FeedbackRecord {\n readonly text?: string;\n readonly category?: FeedbackCategory;\n}"
|
|
1030
|
+
},
|
|
1031
|
+
{
|
|
1032
|
+
"name": "FileAttachmentRef",
|
|
1033
|
+
"declaration": "export interface FileAttachmentRef {\n attachmentId: AttachmentId;\n name: string;\n bytes: number;\n}"
|
|
1034
|
+
},
|
|
1035
|
+
{
|
|
1036
|
+
"name": "FileBlock",
|
|
1037
|
+
"declaration": "export interface FileBlock {\n type: 'file';\n attachment: FileAttachmentRef;\n}"
|
|
1038
|
+
},
|
|
1039
|
+
{
|
|
1040
|
+
"name": "FinishReason",
|
|
1041
|
+
"declaration": "export type FinishReason = FinishReasonMap[keyof FinishReasonMap];"
|
|
1042
|
+
},
|
|
1043
|
+
{
|
|
1044
|
+
"name": "FinishReasonMap",
|
|
1045
|
+
"declaration": "export interface FinishReasonMap {\n stop: { kind: 'stop'; };\n 'tool-calls': { kind: 'tool-calls'; };\n 'max-tokens': { kind: 'max-tokens'; };\n aborted: { kind: 'aborted'; failure: LlmFailure; };\n error: { kind: 'error'; failure: LlmFailure; };\n}"
|
|
1046
|
+
},
|
|
1047
|
+
{
|
|
1048
|
+
"name": "GoalBlockReason",
|
|
1049
|
+
"declaration": "export interface GoalBlockReason {\n readonly code: string;\n readonly message: string;\n}"
|
|
1050
|
+
},
|
|
1051
|
+
{
|
|
1052
|
+
"name": "GoalChangeMeta",
|
|
1053
|
+
"declaration": "export type GoalChangeMeta = GoalSnapshotChangeMeta | GoalClearChangeMeta;"
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
"name": "GoalClearChangeMeta",
|
|
1057
|
+
"declaration": "export interface GoalClearChangeMeta {\n readonly kind: 'goal/change';\n readonly version: 1;\n readonly operation: 'clear';\n readonly cleared: GoalRef;\n readonly clearedAt: number;\n}"
|
|
1058
|
+
},
|
|
1059
|
+
{
|
|
1060
|
+
"name": "GoalId",
|
|
1061
|
+
"declaration": "export type GoalId = Branded<'GoalId'>;"
|
|
1062
|
+
},
|
|
1063
|
+
{
|
|
1064
|
+
"name": "GoalMessageSource",
|
|
1065
|
+
"declaration": "export interface GoalMessageSource {\n readonly kind: 'goal';\n readonly goalId: GoalId;\n readonly revision: number;\n readonly round: number;\n}"
|
|
1066
|
+
},
|
|
1067
|
+
{
|
|
1068
|
+
"name": "GoalOperation",
|
|
1069
|
+
"declaration": "export type GoalOperation = 'create' | 'edit' | 'pause' | 'resume' | 'complete' | 'block' | 'clear';"
|
|
1070
|
+
},
|
|
1071
|
+
{
|
|
1072
|
+
"name": "GoalPhase",
|
|
1073
|
+
"declaration": "export type GoalPhase = 'active' | 'paused' | 'blocked' | 'complete';"
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
"name": "GoalRef",
|
|
1077
|
+
"declaration": "export interface GoalRef {\n readonly id: GoalId;\n readonly revision: number;\n}"
|
|
1078
|
+
},
|
|
1079
|
+
{
|
|
1080
|
+
"name": "GoalSnapshot",
|
|
1081
|
+
"declaration": "export interface GoalSnapshot extends GoalRef {\n readonly objective: string;\n readonly phase: GoalPhase;\n readonly blockedReason?: GoalBlockReason;\n readonly maxGoalRounds: number;\n}"
|
|
1082
|
+
},
|
|
1083
|
+
{
|
|
1084
|
+
"name": "GoalSnapshotChangeMeta",
|
|
1085
|
+
"declaration": "export interface GoalSnapshotChangeMeta {\n readonly kind: 'goal/change';\n readonly version: 1;\n readonly operation: Exclude<GoalOperation, 'clear'>;\n readonly goal: GoalSnapshot;\n readonly roundsStarted: number;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
|
|
1086
|
+
},
|
|
1087
|
+
{
|
|
1088
|
+
"name": "HostCordisInspectProviderRegistration",
|
|
1089
|
+
"declaration": "export interface HostCordisInspectProviderRegistration {\n manifest: CordisInspectProviderManifest;\n query(method: string, input: JsonValue | undefined, context: HostCordisInspectQueryContext): Promise<JsonValue>;\n}"
|
|
1090
|
+
},
|
|
1091
|
+
{
|
|
1092
|
+
"name": "HostCordisInspectQueryContext",
|
|
1093
|
+
"declaration": "export interface HostCordisInspectQueryContext {\n signal: AbortSignal;\n agent: Agent;\n}"
|
|
1094
|
+
},
|
|
1095
|
+
{
|
|
1096
|
+
"name": "ImageAttachmentRef",
|
|
1097
|
+
"declaration": "export interface ImageAttachmentRef {\n attachmentId: AttachmentId;\n mediaType: ImageMediaType;\n bytes: number;\n width: number;\n height: number;\n name?: string;\n originalDimensions?: { width: number; height: number; };\n}"
|
|
1098
|
+
},
|
|
1099
|
+
{
|
|
1100
|
+
"name": "ImageBlock",
|
|
1101
|
+
"declaration": "export interface ImageBlock {\n type: 'image';\n attachment: ImageAttachmentRef;\n offloaded?: true;\n}"
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
"name": "ImageMediaType",
|
|
1105
|
+
"declaration": "export type ImageMediaType = 'image/png' | 'image/jpeg' | 'image/webp' | 'image/gif';"
|
|
1106
|
+
},
|
|
1107
|
+
{
|
|
1108
|
+
"name": "ImageOffloadTarget",
|
|
1109
|
+
"declaration": "export interface ImageOffloadTarget {\n seq: SessionSeq;\n imageIndexes: number[];\n}"
|
|
1110
|
+
},
|
|
1111
|
+
{
|
|
1112
|
+
"name": "Inbox",
|
|
1113
|
+
"declaration": "export interface Inbox {\n readonly nextTurn: readonly UserMessage[];\n readonly nextStep: readonly UserMessage[];\n clear(): void;\n append(target: InboxTarget, message: UserMessage): void;\n prepend(target: InboxTarget, message: UserMessage): void;\n replace(messageId: MessageId, newMessage: UserMessage): boolean;\n remove(messageId: MessageId): boolean;\n splice(target: InboxTarget, start: number, deleteCount: number, inserted: UserMessage[]): UserMessage[];\n}"
|
|
1114
|
+
},
|
|
1115
|
+
{
|
|
1116
|
+
"name": "InboxTarget",
|
|
1117
|
+
"declaration": "export type InboxTarget = 'next-turn' | 'next-step';"
|
|
1118
|
+
},
|
|
1119
|
+
{
|
|
1120
|
+
"name": "JsonValue",
|
|
1121
|
+
"declaration": "export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue; };"
|
|
1122
|
+
},
|
|
1123
|
+
{
|
|
1124
|
+
"name": "KnownCatalogMode",
|
|
1125
|
+
"declaration": "export type KnownCatalogMode = { readonly mode: 'one-shot'; readonly label?: string; } | { readonly mode: 'continuable'; readonly label: string; };"
|
|
1126
|
+
},
|
|
1127
|
+
{
|
|
1128
|
+
"name": "LegacyAfterScheduleRecord",
|
|
1129
|
+
"declaration": "export interface LegacyAfterScheduleRecord extends Omit<AfterScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
1130
|
+
},
|
|
1131
|
+
{
|
|
1132
|
+
"name": "LegacyAtScheduleRecord",
|
|
1133
|
+
"declaration": "export interface LegacyAtScheduleRecord extends Omit<AtScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
1134
|
+
},
|
|
1135
|
+
{
|
|
1136
|
+
"name": "LegacyEveryScheduleRecord",
|
|
1137
|
+
"declaration": "export interface LegacyEveryScheduleRecord extends Omit<EveryScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
1138
|
+
},
|
|
1139
|
+
{
|
|
1140
|
+
"name": "LegacyScheduleRecord",
|
|
1141
|
+
"declaration": "export type LegacyScheduleRecord = LegacyAfterScheduleRecord | LegacyAtScheduleRecord | LegacyEveryScheduleRecord;"
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
"name": "LlmCallConfig",
|
|
1145
|
+
"declaration": "export interface LlmCallConfig {\n provider: string;\n model: string;\n reasoningEffort?: ReasoningEffortId;\n temperature?: number;\n maxTokens?: number;\n stop?: string[];\n}"
|
|
1146
|
+
},
|
|
1147
|
+
{
|
|
1148
|
+
"name": "LlmCallConfigAdapterDefaults",
|
|
1149
|
+
"declaration": "export interface LlmCallConfigAdapterDefaults {\n reasoningEffort?: true;\n maxTokens?: true;\n}"
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
"name": "LlmFailure",
|
|
1153
|
+
"declaration": "export interface LlmFailure {\n readonly message: string;\n readonly code: string;\n readonly status?: number;\n readonly providerRetryAfterMs?: number;\n readonly requestId?: ProviderRequestId;\n readonly offloadImages?: number;\n}"
|
|
1154
|
+
},
|
|
1155
|
+
{
|
|
1156
|
+
"name": "Message",
|
|
1157
|
+
"declaration": "export type Message = MessageRoleMap[keyof MessageRoleMap];"
|
|
1158
|
+
},
|
|
1159
|
+
{
|
|
1160
|
+
"name": "MessageBase",
|
|
1161
|
+
"declaration": "export interface MessageBase {\n readonly id: MessageId;\n readonly content: readonly ContentBlock[];\n readonly source: MessageSource;\n}"
|
|
1162
|
+
},
|
|
1163
|
+
{
|
|
1164
|
+
"name": "MessageFeedbackDelete",
|
|
1165
|
+
"declaration": "export interface MessageFeedbackDelete {\n readonly sessionId: SessionId;\n readonly messageId: MessageId;\n}"
|
|
1166
|
+
},
|
|
1167
|
+
{
|
|
1168
|
+
"name": "MessageFeedbackItem",
|
|
1169
|
+
"declaration": "export interface MessageFeedbackItem {\n readonly messageId: MessageId;\n readonly rating: MessageFeedbackRating;\n readonly note?: string;\n readonly category?: FeedbackCategory;\n readonly version: MessageFeedbackVersion;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
|
|
1170
|
+
},
|
|
1171
|
+
{
|
|
1172
|
+
"name": "MessageFeedbackPut",
|
|
1173
|
+
"declaration": "export interface MessageFeedbackPut {\n readonly sessionId: SessionId;\n readonly item: MessageFeedbackItem;\n}"
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"name": "MessageFeedbackRating",
|
|
1177
|
+
"declaration": "export type MessageFeedbackRating = 'positive' | 'negative';"
|
|
1178
|
+
},
|
|
1179
|
+
{
|
|
1180
|
+
"name": "MessageFeedbackVersion",
|
|
1181
|
+
"declaration": "export type MessageFeedbackVersion = Branded<'MessageFeedbackVersion'>;"
|
|
1182
|
+
},
|
|
1183
|
+
{
|
|
1184
|
+
"name": "MessageId",
|
|
1185
|
+
"declaration": "export type MessageId = Branded<'MessageId'>;"
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
"name": "MessageRoleMap",
|
|
1189
|
+
"declaration": "export interface MessageRoleMap {\n system: SystemMessage;\n developer: DeveloperMessage;\n user: UserMessage;\n assistant: AssistantMessage;\n tool: ToolResultMessage;\n}"
|
|
1190
|
+
},
|
|
1191
|
+
{
|
|
1192
|
+
"name": "MessageSource",
|
|
1193
|
+
"declaration": "export type MessageSource = MessageSourceMap[keyof MessageSourceMap];"
|
|
1194
|
+
},
|
|
1195
|
+
{
|
|
1196
|
+
"name": "MessageSourceMap",
|
|
1197
|
+
"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 '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 'sidechat-boundary': { kind: 'sidechat-boundary'; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'team-message': TeamMessageSource;\n goal: GoalMessageSource;\n 'kylin-host-runner': { kind: 'kylin-host-runner'; };\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'compact-checkpoint': CompactionCheckpointSource;\n 'session-reference': SessionReferenceSource;\n 'user-question-reply': { kind: 'user-question-reply'; callId: ToolCallId; outcome: 'answered'; };\n}"
|
|
1198
|
+
},
|
|
1199
|
+
{
|
|
1200
|
+
"name": "ModelMessageSource",
|
|
1201
|
+
"declaration": "export interface ModelMessageSource extends AssistantProviderMetadata {\n kind: 'model';\n}"
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
"name": "ModelSelection",
|
|
1205
|
+
"declaration": "export interface ModelSelection {\n readonly provider: string;\n readonly model: string;\n readonly reasoningEffort?: string;\n}"
|
|
1206
|
+
},
|
|
1207
|
+
{
|
|
1208
|
+
"name": "OneShotScheduleDispatchChange",
|
|
1209
|
+
"declaration": "export interface OneShotScheduleDispatchChange {\n readonly version: 1;\n readonly operation: 'dispatch';\n readonly id: ScheduleId;\n}"
|
|
1210
|
+
},
|
|
1211
|
+
{
|
|
1212
|
+
"name": "OneShotSubagentDescriptorData",
|
|
1213
|
+
"declaration": "export interface OneShotSubagentDescriptorData extends SubagentDescriptorBase {\n readonly mode: 'one-shot';\n readonly label?: string;\n}"
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
"name": "OptionalSessionSeq",
|
|
1217
|
+
"declaration": "export type OptionalSessionSeq = SessionSeq | null;"
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
"name": "ProviderRequestId",
|
|
1221
|
+
"declaration": "export type ProviderRequestId = Branded<'ProviderRequestId'>;"
|
|
1222
|
+
},
|
|
1223
|
+
{
|
|
1224
|
+
"name": "PtcDispatchEventData",
|
|
1225
|
+
"declaration": "export interface PtcDispatchEventData extends PtcDispatchStartEventData {\n isError: boolean;\n content: ContentBlock[];\n error?: { name: string; code: string; reason?: string; };\n}"
|
|
1226
|
+
},
|
|
1227
|
+
{
|
|
1228
|
+
"name": "PtcDispatchStartEventData",
|
|
1229
|
+
"declaration": "export interface PtcDispatchStartEventData {\n rootCallId: ToolCallId;\n parentCallId: ToolCallId;\n subCallId: ToolCallId;\n name: string;\n arguments: unknown;\n}"
|
|
1230
|
+
},
|
|
1231
|
+
{
|
|
1232
|
+
"name": "ReasoningBlock",
|
|
1233
|
+
"declaration": "export interface ReasoningBlock {\n type: 'reasoning';\n text: string;\n}"
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
"name": "ReasoningEffortId",
|
|
1237
|
+
"declaration": "export type ReasoningEffortId = Branded<'ReasoningEffortId'>;"
|
|
1238
|
+
},
|
|
1239
|
+
{
|
|
1240
|
+
"name": "ReplayEnvelope",
|
|
1241
|
+
"declaration": "export interface ReplayEnvelope {\n response: unknown;\n blocks?: readonly unknown[];\n}"
|
|
1242
|
+
},
|
|
1243
|
+
{
|
|
1244
|
+
"name": "RequestContext",
|
|
1245
|
+
"declaration": "export interface RequestContext {\n provider: string;\n model: string;\n contextWindow?: number;\n systemPromptUpdate?: SystemPromptUpdate;\n}"
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
"name": "RequestHeaderReason",
|
|
1249
|
+
"declaration": "export type RequestHeaderReason = 'initial' | 'resume' | 'change' | 'series';"
|
|
1250
|
+
},
|
|
1251
|
+
{
|
|
1252
|
+
"name": "SandboxMode",
|
|
1253
|
+
"declaration": "export type SandboxMode = 'read-only' | 'workspace-write' | 'danger-full-access';"
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
"name": "ScheduleChange",
|
|
1257
|
+
"declaration": "export type ScheduleChange = ScheduleCreateChange | ScheduleDeleteChange | ScheduleDispatchChange;"
|
|
1258
|
+
},
|
|
1259
|
+
{
|
|
1260
|
+
"name": "ScheduleCreateChange",
|
|
1261
|
+
"declaration": "export interface ScheduleCreateChange {\n readonly version: 1;\n readonly operation: 'create';\n readonly schedule: LegacyScheduleRecord;\n}"
|
|
1262
|
+
},
|
|
1263
|
+
{
|
|
1264
|
+
"name": "ScheduleDeleteChange",
|
|
1265
|
+
"declaration": "export interface ScheduleDeleteChange {\n readonly version: 1;\n readonly operation: 'delete';\n readonly id: ScheduleId;\n}"
|
|
1266
|
+
},
|
|
1267
|
+
{
|
|
1268
|
+
"name": "ScheduleDispatchChange",
|
|
1269
|
+
"declaration": "export type ScheduleDispatchChange = OneShotScheduleDispatchChange | EveryScheduleDispatchChange;"
|
|
1270
|
+
},
|
|
1271
|
+
{
|
|
1272
|
+
"name": "ScheduleId",
|
|
1273
|
+
"declaration": "export type ScheduleId = Branded<'ScheduleId'>;"
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
"name": "Session",
|
|
1277
|
+
"declaration": "export class Session {\n get surface(): SessionSurface;\n readonly header: SessionHeader;\n readonly inheritedEventCount: SessionLogOffset;\n get id(): SessionId;\n readonly firstLiveSeq: SessionLogOffset;\n readonly firstLifecycleSeq: SessionLogOffset;\n eventAt(seq: SessionSeq): SessionEvent | undefined;\n snapshotEvents(fromSeq: SessionLogOffset = SessionLogOffset(0), toSeqExclusive: SessionLogOffset = this.seq): readonly SessionEvent[];\n ownEvents(): readonly SessionEvent[];\n isOwnSeq(seq: SessionSeq): boolean;\n get seq(): SessionLogOffset;\n append<T extends SessionEventType>(type: T, data: SessionEventMap[T], ...opts: T extends SurfaceEventType ? [opts: SurfaceIntent<T>] : []): SessionEvent<T>;\n requestHeader(): EpochHeader | undefined;\n requestContext(): RequestContext | undefined;\n toolHistory(): ToolHistory;\n deriveMessages(): Message[];\n deriveEventMessage(event: SessionEvent): Message | null;\n}"
|
|
1278
|
+
},
|
|
1279
|
+
{
|
|
1280
|
+
"name": "SessionEvent",
|
|
1281
|
+
"declaration": "export type SessionEvent<T extends SessionEventType = SessionEventType> = { [K in SessionEventType]: { type: K; seq: SessionSeq; time: number; data: SessionEventMap[K]; ignorable?: true; } & (K extends SurfaceEventType ? SurfaceIntent<K> : { surfaceOp?: never; sourceEventSeqs?: never; }) }[T];"
|
|
1282
|
+
},
|
|
1283
|
+
{
|
|
1284
|
+
"name": "SessionEventMap",
|
|
1285
|
+
"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 '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('@qilin-agent/session/types').SessionSeq; };\n 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'model/selection': ModelSelection;\n 'subagent/descriptor': SubagentDescriptorData;\n 'permission/preset': { preset: string; };\n 'subagent/catalog': SubagentCatalogEvent;\n 'feedback/record': FeedbackRecord;\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 'schedule/change': ScheduleChange;\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}"
|
|
1286
|
+
},
|
|
1287
|
+
{
|
|
1288
|
+
"name": "SessionEventType",
|
|
1289
|
+
"declaration": "export type SessionEventType = keyof SessionEventMap;"
|
|
1290
|
+
},
|
|
1291
|
+
{
|
|
1292
|
+
"name": "SessionHeader",
|
|
1293
|
+
"declaration": "export interface SessionHeader {\n readonly version: typeof SESSION_FORMAT_VERSION;\n readonly id: SessionId;\n readonly createdAt: number;\n readonly cwd?: string;\n readonly parentSession?: SessionId;\n readonly isSeeded: boolean;\n readonly origin?: 'subagent';\n readonly delegationDepth?: number;\n readonly agentPreset?: string;\n}"
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
"name": "SessionId",
|
|
1297
|
+
"declaration": "export type SessionId = Branded<'SessionId'>;"
|
|
1298
|
+
},
|
|
1299
|
+
{
|
|
1300
|
+
"name": "SessionLogOffset",
|
|
1301
|
+
"declaration": "export type SessionLogOffset = BrandedNumber<'SessionLogOffset'>;"
|
|
1302
|
+
},
|
|
1303
|
+
{
|
|
1304
|
+
"name": "SessionReferenceSource",
|
|
1305
|
+
"declaration": "export interface SessionReferenceSource {\n kind: 'session-reference';\n form: 'recall';\n version: 1;\n references: { sessionId: string; label: string; capturedFormatVersion?: number; capturedThroughSeq: OptionalSessionSeq; compacted: boolean; originalMessages: number; retainedMessages: number; omittedMessages: number; omittedBytes: number; truncated: boolean; inputIndex: number; }[];\n}"
|
|
1306
|
+
},
|
|
1307
|
+
{
|
|
1308
|
+
"name": "SessionRequestId",
|
|
1309
|
+
"declaration": "export type SessionRequestId = Branded<'session-request-id'>;"
|
|
1310
|
+
},
|
|
1311
|
+
{
|
|
1312
|
+
"name": "SessionSeq",
|
|
1313
|
+
"declaration": "export type SessionSeq = BrandedNumber<'SessionSeq'>;"
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
"name": "SessionSurface",
|
|
1317
|
+
"declaration": "export interface SessionSurface {\n readonly nodes: readonly SessionSeq[];\n readonly replaceGeneration: number;\n readonly contentGeneration: number;\n}"
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
"name": "SessionTitleEventData",
|
|
1321
|
+
"declaration": "export interface SessionTitleEventData {\n readonly title: string;\n readonly messageSeqs: SessionSeq[];\n readonly source: SessionTitleSource;\n}"
|
|
1322
|
+
},
|
|
1323
|
+
{
|
|
1324
|
+
"name": "SessionTitleModelIdentity",
|
|
1325
|
+
"declaration": "export interface SessionTitleModelIdentity {\n readonly provider: string;\n readonly model: string;\n}"
|
|
1326
|
+
},
|
|
1327
|
+
{
|
|
1328
|
+
"name": "SessionTitleProviderId",
|
|
1329
|
+
"declaration": "export type SessionTitleProviderId = Branded<'SessionTitleProviderId'>;"
|
|
1330
|
+
},
|
|
1331
|
+
{
|
|
1332
|
+
"name": "SessionTitleSource",
|
|
1333
|
+
"declaration": "export type SessionTitleSource = { readonly kind: 'fallback'; } | { readonly kind: 'provider'; readonly provider: SessionTitleProviderId; readonly model?: SessionTitleModelIdentity; } | { readonly kind: 'user'; };"
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
"name": "SkillInvocationSource",
|
|
1337
|
+
"declaration": "export interface SkillInvocationSource {\n readonly kind: 'skill-invocation';\n readonly name: string;\n readonly form: 'instructions';\n}"
|
|
1338
|
+
},
|
|
1339
|
+
{
|
|
1340
|
+
"name": "StreamChunk",
|
|
1341
|
+
"declaration": "export type StreamChunk = { type: 'block-start'; index: number; blockType: ContentBlockType; } | { type: 'text-delta'; index: number; text: string; } | { type: 'reasoning-delta'; index: number; text: string; } | { type: 'tool-call-delta'; index: number; id: ToolCallId; name?: string; argumentsDelta: string; } | { type: 'block-end'; index: number; block: ContentBlock; } | { type: 'usage'; usage: TokenUsage; } | { type: 'finish'; reason: FinishReason; replayState?: ReplayEnvelope; };"
|
|
1342
|
+
},
|
|
1343
|
+
{
|
|
1344
|
+
"name": "SubagentCatalogEvent",
|
|
1345
|
+
"declaration": "export type SubagentCatalogEvent = { readonly childId: SessionId; readonly childCreatedAt: number; } & (({ readonly version: 0; } & KnownCatalogMode) | ({ readonly version: 1; } & (KnownCatalogMode | { readonly mode: 'unknown'; readonly label?: string; })));"
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
"name": "SubagentDescriptorBase",
|
|
1349
|
+
"declaration": "export interface SubagentDescriptorBase {\n readonly version: number;\n readonly mode: 'one-shot' | 'continuable';\n readonly provider: string;\n}"
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
"name": "SubagentDescriptorData",
|
|
1353
|
+
"declaration": "export type SubagentDescriptorData = OneShotSubagentDescriptorData | ContinuableSubagentDescriptorData;"
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
"name": "SubagentSettledMessageSource",
|
|
1357
|
+
"declaration": "export interface SubagentSettledMessageSource {\n readonly kind: 'subagent-settled';\n readonly form: 'notice';\n readonly summary: string;\n readonly senderSessionId: SessionId;\n}"
|
|
1358
|
+
},
|
|
1359
|
+
{
|
|
1360
|
+
"name": "SurfaceEventType",
|
|
1361
|
+
"declaration": "export type SurfaceEventType = 'system/message' | 'developer/message' | 'user/message' | 'assistant/message' | 'tool/result';"
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
"name": "SurfaceIntent",
|
|
1365
|
+
"declaration": "export type SurfaceIntent<T extends SurfaceEventType = SurfaceEventType> = { surfaceOp: SurfaceOp; } & (T extends 'assistant/message' ? { sourceEventSeqs?: never; } : { sourceEventSeqs?: SessionSeq[]; });"
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
"name": "SurfaceOp",
|
|
1369
|
+
"declaration": "export type SurfaceOp = 'append' | { op: 'replace'; startSeq: SessionSeq; endSeq: SessionSeq; };"
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
"name": "SystemMessage",
|
|
1373
|
+
"declaration": "export interface SystemMessage extends MessageBase {\n readonly role: 'system';\n readonly source: MessageSourceMap['system-prompt'];\n}"
|
|
1374
|
+
},
|
|
1375
|
+
{
|
|
1376
|
+
"name": "SystemPromptMessageSource",
|
|
1377
|
+
"declaration": "export interface SystemPromptMessageSource {\n kind: 'system-prompt';\n}"
|
|
1378
|
+
},
|
|
1379
|
+
{
|
|
1380
|
+
"name": "SystemPromptUpdate",
|
|
1381
|
+
"declaration": "export type SystemPromptUpdate = 'in-history';"
|
|
1382
|
+
},
|
|
1383
|
+
{
|
|
1384
|
+
"name": "TeamId",
|
|
1385
|
+
"declaration": "export type TeamId = Branded<'TeamId'>;"
|
|
1386
|
+
},
|
|
1387
|
+
{
|
|
1388
|
+
"name": "TeamMemberPhase",
|
|
1389
|
+
"declaration": "export type TeamMemberPhase = 'provisioning' | 'active' | 'failed';"
|
|
1390
|
+
},
|
|
1391
|
+
{
|
|
1392
|
+
"name": "TeamMemberSnapshot",
|
|
1393
|
+
"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}"
|
|
1394
|
+
},
|
|
1395
|
+
{
|
|
1396
|
+
"name": "TeamMessageId",
|
|
1397
|
+
"declaration": "export type TeamMessageId = Branded<'TeamMessageId'>;"
|
|
1398
|
+
},
|
|
1399
|
+
{
|
|
1400
|
+
"name": "TeamMessageSnapshot",
|
|
1401
|
+
"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}"
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
"name": "TeamMessageSource",
|
|
1405
|
+
"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}"
|
|
1406
|
+
},
|
|
1407
|
+
{
|
|
1408
|
+
"name": "TeamTaskId",
|
|
1409
|
+
"declaration": "export type TeamTaskId = Branded<'TeamTaskId'>;"
|
|
1410
|
+
},
|
|
1411
|
+
{
|
|
1412
|
+
"name": "TeamTaskSnapshot",
|
|
1413
|
+
"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}"
|
|
1414
|
+
},
|
|
1415
|
+
{
|
|
1416
|
+
"name": "TeamTaskStatus",
|
|
1417
|
+
"declaration": "export type TeamTaskStatus = 'pending' | 'in_progress' | 'completed' | 'deleted';"
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
"name": "TextBlock",
|
|
1421
|
+
"declaration": "export interface TextBlock {\n type: 'text';\n text: string;\n}"
|
|
1422
|
+
},
|
|
1423
|
+
{
|
|
1424
|
+
"name": "TodoItem",
|
|
1425
|
+
"declaration": "export interface TodoItem {\n content: string;\n status: 'pending' | 'in_progress' | 'completed';\n}"
|
|
1426
|
+
},
|
|
1427
|
+
{
|
|
1428
|
+
"name": "TokenUsage",
|
|
1429
|
+
"declaration": "export interface TokenUsage {\n inputTokens: number;\n outputTokens: number;\n totalTokens?: number;\n cacheReadTokens?: number;\n cacheWriteTokens?: number;\n reasoningTokens?: number;\n}"
|
|
1430
|
+
},
|
|
1431
|
+
{
|
|
1432
|
+
"name": "ToolAdditionBlock",
|
|
1433
|
+
"declaration": "export interface ToolAdditionBlock {\n type: 'tool-addition';\n toolName: string;\n tool?: never;\n}"
|
|
1434
|
+
},
|
|
1435
|
+
{
|
|
1436
|
+
"name": "ToolCallBlock",
|
|
1437
|
+
"declaration": "export interface ToolCallBlock {\n type: 'tool-call';\n id: ToolCallId;\n name: string;\n arguments: string;\n}"
|
|
1438
|
+
},
|
|
1439
|
+
{
|
|
1440
|
+
"name": "ToolCallId",
|
|
1441
|
+
"declaration": "export type ToolCallId = Branded<'ToolCallId'>;"
|
|
1442
|
+
},
|
|
1443
|
+
{
|
|
1444
|
+
"name": "ToolHistory",
|
|
1445
|
+
"declaration": "export interface ToolHistory {\n readonly tools: readonly ToolSchema[];\n readonly updates: readonly { readonly messageId: MessageId; readonly additions: readonly ToolSchema[]; }[];\n}"
|
|
1446
|
+
},
|
|
1447
|
+
{
|
|
1448
|
+
"name": "ToolMessageSource",
|
|
1449
|
+
"declaration": "export interface ToolMessageSource {\n kind: 'tool';\n callId: ToolCallId;\n}"
|
|
1450
|
+
},
|
|
1451
|
+
{
|
|
1452
|
+
"name": "ToolRemovalBlock",
|
|
1453
|
+
"declaration": "export interface ToolRemovalBlock {\n type: 'tool-removal';\n toolName: string;\n}"
|
|
1454
|
+
},
|
|
1455
|
+
{
|
|
1456
|
+
"name": "ToolRestriction",
|
|
1457
|
+
"declaration": "export interface ToolRestriction {\n readonly allow?: readonly string[];\n readonly deny?: readonly string[];\n}"
|
|
1458
|
+
},
|
|
1459
|
+
{
|
|
1460
|
+
"name": "ToolResultMessage",
|
|
1461
|
+
"declaration": "export interface ToolResultMessage extends MessageBase {\n readonly role: 'tool';\n readonly source: ToolMessageSource;\n readonly toolCallId: ToolCallId;\n readonly isError?: boolean;\n}"
|
|
1462
|
+
},
|
|
1463
|
+
{
|
|
1464
|
+
"name": "ToolSchema",
|
|
1465
|
+
"declaration": "export interface ToolSchema {\n deferLoading?: true;\n name: string;\n description: string;\n parameters: Record<string, unknown>;\n}"
|
|
1466
|
+
},
|
|
1467
|
+
{
|
|
1468
|
+
"name": "TurnEndCancelCause",
|
|
1469
|
+
"declaration": "export type TurnEndCancelCause = AgentCancelCause | { readonly kind: 'legacy'; };"
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
"name": "TurnEndReason",
|
|
1473
|
+
"declaration": "export type TurnEndReason = TurnEndReasonMap[keyof TurnEndReasonMap];"
|
|
1474
|
+
},
|
|
1475
|
+
{
|
|
1476
|
+
"name": "TurnEndReasonMap",
|
|
1477
|
+
"declaration": "export interface TurnEndReasonMap {\n completed: { kind: 'completed'; };\n aborted: { kind: 'aborted'; reason: TurnEndCancelCause; };\n blocked: { kind: 'blocked'; };\n error: { kind: 'error'; error: LlmFailure; };\n 'max-tokens': { kind: 'max-tokens'; };\n interrupted: { kind: 'interrupted'; };\n forked: { kind: 'forked'; };\n}"
|
|
1478
|
+
},
|
|
1479
|
+
{
|
|
1480
|
+
"name": "UserMessage",
|
|
1481
|
+
"declaration": "export interface UserMessage extends MessageBase {\n readonly role: 'user';\n}"
|
|
1482
|
+
}
|
|
1483
|
+
]
|
|
1484
|
+
},
|
|
1485
|
+
{
|
|
1486
|
+
"description": "Dynamic Plugin registry and Host-half lifecycle.",
|
|
1487
|
+
"summary": "Dynamic Plugin registry and Host-half lifecycle.",
|
|
1488
|
+
"tags": [],
|
|
1489
|
+
"jsDoc": "/** Dynamic Plugin registry and Host-half lifecycle. */",
|
|
1490
|
+
"key": "dynamicCordisRunner",
|
|
1491
|
+
"exportName": "DynamicCordisRunnerService",
|
|
1492
|
+
"members": [
|
|
1493
|
+
{
|
|
1494
|
+
"kind": "method",
|
|
1495
|
+
"name": "define",
|
|
1496
|
+
"signature": "define(request: DynamicCordisDefineRequest): DynamicCordisDefineReceipt",
|
|
1497
|
+
"summary": "Define a new Plugin's first Package or append a Package to an existing Plugin.",
|
|
1498
|
+
"jsDoc": "/**\n * Define a new Plugin's first Package or append a Package to an existing Plugin.\n * @param request - Session ownership, Plugin selection, metadata, and source code.\n * @returns Host-minted Plugin and Package identities with declared-half metadata.\n */"
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
"kind": "method",
|
|
1502
|
+
"name": "undefine",
|
|
1503
|
+
"signature": "async undefine(agent: Agent, pluginId: CordisDynamicPluginId): Promise<DynamicCordisUndefineReceipt>",
|
|
1504
|
+
"summary": "Remove a Plugin, its active run, and all immutable Packages.",
|
|
1505
|
+
"jsDoc": "/**\n * Remove a Plugin, its active run, and all immutable Packages.\n * @param agent - Agent whose Session must own the Plugin.\n * @param pluginId - Stable Plugin identity to remove.\n * @returns Whether removal succeeded and whether it stopped an active run.\n */"
|
|
1506
|
+
},
|
|
1507
|
+
{
|
|
1508
|
+
"kind": "method",
|
|
1509
|
+
"name": "undefineFromPanel",
|
|
1510
|
+
"signature": "@Remote('undefineFromPanel') async undefineFromPanel(agent: Agent, pluginId: CordisDynamicPluginId): Promise<DynamicCordisUndefineReceipt>",
|
|
1511
|
+
"summary": "Remove a Plugin from the user panel and queue the resulting state change for the model's next step.",
|
|
1512
|
+
"jsDoc": "/**\n * Remove a Plugin from the user panel and queue the resulting state change for the model's next step.\n * @param agent - Agent whose Session owns the Plugin and receives the context.\n * @param pluginId - Stable Plugin identity to remove.\n * @returns Whether removal succeeded and whether it stopped an active run.\n */"
|
|
1513
|
+
},
|
|
1514
|
+
{
|
|
1515
|
+
"kind": "method",
|
|
1516
|
+
"name": "run",
|
|
1517
|
+
"signature": "async run( agent: Agent, pluginId: CordisDynamicPluginId, packageId: CordisDynamicPackageId, mode: CordisDynamicRunMode, signal?: AbortSignal, ): Promise<DynamicCordisRunResponse>",
|
|
1518
|
+
"summary": "Start or update one Package for a model tool call.",
|
|
1519
|
+
"jsDoc": "/**\n * Start or update one Package for a model tool call. An unauthorized Client\n * Package waits for approval; Plugin-wide authorization covers later versions.\n * @param agent - Agent whose Session must own the Plugin.\n * @param pluginId - Stable Plugin identity to activate.\n * @param packageId - Immutable Package version to activate.\n * @param mode - Whether to run the current version or switch versions.\n * @param signal - Tool-call cancellation signal while the activation request is being created.\n * @returns The successful activation identity or an actionable refusal.\n */"
|
|
1520
|
+
},
|
|
1521
|
+
{
|
|
1522
|
+
"kind": "method",
|
|
1523
|
+
"name": "runHostHalf",
|
|
1524
|
+
"signature": "@Remote('runHostHalf') async runHostHalf( agent: Agent, pluginId: CordisDynamicPluginId, packageId: CordisDynamicPackageId, mode: CordisDynamicRunMode, requestId: ApprovalRequestId | null, approveFutureVersions: boolean, ): Promise<DynamicCordisHostHalfResult>",
|
|
1525
|
+
"summary": "Start Host code for an approved request or a direct panel gesture.",
|
|
1526
|
+
"jsDoc": "/**\n * Start Host code for an approved request or a direct panel gesture.\n * @param agent - Agent whose Session must own the Plugin.\n * @param pluginId - Stable Plugin identity to activate.\n * @param packageId - Immutable Package version to activate.\n * @param mode - Whether to run the current version or switch versions.\n * @param requestId - Model-driven request identity, or null for a direct user gesture.\n * @param approveFutureVersions - Whether this approval covers later Packages of the same Plugin.\n * @returns The exact Host activation or a failure message.\n */"
|
|
1527
|
+
},
|
|
1528
|
+
{
|
|
1529
|
+
"kind": "method",
|
|
1530
|
+
"name": "getClientCode",
|
|
1531
|
+
"signature": "@Remote('getClientCode') getClientCode( agent: Agent, pluginId: CordisDynamicPluginId, pluginRunId: CordisDynamicPluginRunId, ): DynamicCordisClientSource",
|
|
1532
|
+
"summary": "Fetch Client code for the exact active run.",
|
|
1533
|
+
"jsDoc": "/**\n * Fetch Client code for the exact active run.\n * @param agent - Agent whose Session must own the Plugin.\n * @param pluginId - Stable Plugin identity to read.\n * @param pluginRunId - Exact active run authorized to receive source.\n * @returns Client source and its Plugin, Package, and run identities.\n */"
|
|
1534
|
+
},
|
|
1535
|
+
{
|
|
1536
|
+
"kind": "method",
|
|
1537
|
+
"name": "resolveRequestRun",
|
|
1538
|
+
"signature": "@Remote('resolveRequestRun') async resolveRequestRun( requestId: ApprovalRequestId, resolution: DynamicCordisRunResolution, ): Promise<DynamicCordisResolveAck>",
|
|
1539
|
+
"summary": "Resolve one model-driven Client activation request.",
|
|
1540
|
+
"jsDoc": "/**\n * Resolve one model-driven Client activation request.\n * @param requestId - Request identity to settle once.\n * @param resolution - Browser refusal or exact Client activation result.\n * @returns Whether the still-pending request accepted this resolution.\n */"
|
|
1541
|
+
},
|
|
1542
|
+
{
|
|
1543
|
+
"kind": "method",
|
|
1544
|
+
"name": "settleUserRun",
|
|
1545
|
+
"signature": "@Remote('settleUserRun') async settleUserRun( agent: Agent, pluginId: CordisDynamicPluginId, resolution: DynamicCordisRunResolution, ): Promise<DynamicCordisRunResponse>",
|
|
1546
|
+
"summary": "Settle a direct panel run after this page loaded or failed its Client half.",
|
|
1547
|
+
"jsDoc": "/**\n * Settle a direct panel run after this page loaded or failed its Client half.\n * @param agent - Agent whose Session must own the Plugin.\n * @param pluginId - Stable Plugin identity being settled.\n * @param resolution - Exact Client activation result from the acting page.\n * @returns The committed activation or its failure.\n */"
|
|
1548
|
+
},
|
|
1549
|
+
{
|
|
1550
|
+
"kind": "method",
|
|
1551
|
+
"name": "stop",
|
|
1552
|
+
"signature": "async stop(agent: Agent, pluginId: CordisDynamicPluginId): Promise<DynamicCordisStopResponse>",
|
|
1553
|
+
"summary": "Stop the active run while retaining every Package version.",
|
|
1554
|
+
"jsDoc": "/**\n * Stop the active run while retaining every Package version.\n * @param agent - Agent whose Session must own the Plugin.\n * @param pluginId - Stable Plugin identity to stop.\n * @returns Success or the reason no run was stopped.\n */"
|
|
1555
|
+
},
|
|
1556
|
+
{
|
|
1557
|
+
"kind": "method",
|
|
1558
|
+
"name": "stopFromPanel",
|
|
1559
|
+
"signature": "@Remote('stopFromPanel') async stopFromPanel(agent: Agent, pluginId: CordisDynamicPluginId): Promise<DynamicCordisStopResponse>",
|
|
1560
|
+
"summary": "Stop a Plugin from the user panel and queue the resulting state change for the model's next step.",
|
|
1561
|
+
"jsDoc": "/**\n * Stop a Plugin from the user panel and queue the resulting state change for the model's next step.\n * @param agent - Agent whose Session owns the Plugin and receives the context.\n * @param pluginId - Stable Plugin identity to stop.\n * @returns Success or the reason no run was stopped.\n */"
|
|
1562
|
+
},
|
|
1563
|
+
{
|
|
1564
|
+
"kind": "method",
|
|
1565
|
+
"name": "syncInspectManifest",
|
|
1566
|
+
"signature": "@Remote('syncInspectManifest') syncInspectManifest(providers: readonly CordisInspectProviderManifest[]): null",
|
|
1567
|
+
"summary": "Replace the Host mirror of the Client inspect provider directory.",
|
|
1568
|
+
"jsDoc": "/**\n * Replace the Host mirror of the Client inspect provider directory.\n * @param providers - complete Client provider manifest.\n * @returns null after accepting the manifest.\n */"
|
|
1569
|
+
},
|
|
1570
|
+
{
|
|
1571
|
+
"kind": "method",
|
|
1572
|
+
"name": "resolveInspectQuery",
|
|
1573
|
+
"signature": "@Remote('resolveInspectQuery') resolveInspectQuery( agent: Agent, requestId: CordisInspectRequestId, resolution: CordisInspectQueryResolution, ): CordisInspectResolveAck",
|
|
1574
|
+
"summary": "Submit a Client inspect result or failure for a pending query.",
|
|
1575
|
+
"jsDoc": "/**\n * Submit a Client inspect result or failure for a pending query.\n * @param agent - Session that owns the query.\n * @param requestId - exact pending query identity.\n * @param resolution - provider result or structured refusal.\n * @returns acknowledgement with accepted true only for a valid success that settles the query;\n * pending-query failures return { accepted: false } and retain only the first diagnostic.\n */"
|
|
1576
|
+
},
|
|
1577
|
+
{
|
|
1578
|
+
"kind": "method",
|
|
1579
|
+
"name": "inventory",
|
|
1580
|
+
"signature": "@Remote('inventory') inventory(): DynamicCordisInventoryRow[]",
|
|
1581
|
+
"summary": "Frame-wide inventory, grouped as one row per stable Plugin.",
|
|
1582
|
+
"jsDoc": "/**\n * Frame-wide inventory, grouped as one row per stable Plugin.\n * @returns Source-free metadata for every process-local Plugin.\n */"
|
|
1583
|
+
},
|
|
1584
|
+
{
|
|
1585
|
+
"kind": "method",
|
|
1586
|
+
"name": "snapshot",
|
|
1587
|
+
"signature": "snapshot(agent: Agent): DynamicCordisSnapshotRow[]",
|
|
1588
|
+
"summary": "Read one Session's Host-rich state for inspection and result rendering.",
|
|
1589
|
+
"jsDoc": "/**\n * Read one Session's Host-rich state for inspection and result rendering.\n * @param agent - Agent whose Session selects visible Plugins.\n * @returns Plugin versions, active runs, Host fibers, and render failures.\n */"
|
|
1590
|
+
},
|
|
1591
|
+
{
|
|
1592
|
+
"kind": "method",
|
|
1593
|
+
"name": "reference",
|
|
1594
|
+
"signature": "reference(agent: Agent, pluginId: CordisDynamicPluginId): DynamicCordisReference | undefined",
|
|
1595
|
+
"summary": "Read source-free context for an explicit `@pluginId` user gesture.",
|
|
1596
|
+
"jsDoc": "/**\n * Read source-free context for an explicit `@pluginId` user gesture.\n * @param agent - Agent whose Session must own the Plugin.\n * @param pluginId - Stable Plugin identity referenced by the user.\n * @returns The preferred modification base, or undefined when unavailable.\n */"
|
|
1597
|
+
},
|
|
1598
|
+
{
|
|
1599
|
+
"kind": "method",
|
|
1600
|
+
"name": "listPlugins",
|
|
1601
|
+
"signature": "listPlugins(agent: Agent): DynamicCordisPluginInspection[]",
|
|
1602
|
+
"summary": "List source-free Plugin summaries owned by one Session.",
|
|
1603
|
+
"jsDoc": "/**\n * List source-free Plugin summaries owned by one Session.\n * @param agent - Agent whose Session selects visible Plugins.\n * @returns one summary per Plugin in creation order.\n */"
|
|
1604
|
+
},
|
|
1605
|
+
{
|
|
1606
|
+
"kind": "method",
|
|
1607
|
+
"name": "inspectPlugin",
|
|
1608
|
+
"signature": "inspectPlugin(agent: Agent, pluginId: CordisDynamicPluginId): DynamicCordisPluginInspection",
|
|
1609
|
+
"summary": "Inspect one Plugin without returning Package source.",
|
|
1610
|
+
"jsDoc": "/**\n * Inspect one Plugin without returning Package source.\n * @param agent - Agent whose Session must own the Plugin.\n * @param pluginId - stable Plugin identity.\n * @returns version pointers, latest run, and all Package summaries.\n */"
|
|
1611
|
+
},
|
|
1612
|
+
{
|
|
1613
|
+
"kind": "method",
|
|
1614
|
+
"name": "inspectPackage",
|
|
1615
|
+
"signature": "inspectPackage( agent: Agent, pluginId: CordisDynamicPluginId, packageId: CordisDynamicPackageId, ): DynamicCordisPackageInspection",
|
|
1616
|
+
"summary": "Read one exact immutable Package and its Host and Client source.",
|
|
1617
|
+
"jsDoc": "/**\n * Read one exact immutable Package and its Host and Client source.\n * @param agent - Agent whose Session must own the Plugin.\n * @param pluginId - Stable Plugin identity that owns the Package.\n * @param packageId - Exact immutable Package identity to inspect.\n * @returns Package metadata, source, and the Plugin's lifecycle pointers.\n */"
|
|
1618
|
+
},
|
|
1619
|
+
{
|
|
1620
|
+
"kind": "method",
|
|
1621
|
+
"name": "reportRenderFailure",
|
|
1622
|
+
"signature": "@Remote('reportRenderFailure') async reportRenderFailure( agent: Agent, pluginId: CordisDynamicPluginId, pluginRunId: CordisDynamicPluginRunId, failure: DynamicCordisRenderFailure, ): Promise<null>",
|
|
1623
|
+
"summary": "Record a post-load render failure for the exact active run.",
|
|
1624
|
+
"jsDoc": "/**\n * Record a post-load render failure for the exact active run.\n * @param agent - Agent whose Session must own the Plugin.\n * @param pluginId - Stable Plugin identity that rendered.\n * @param pluginRunId - Exact active run that produced the failure.\n * @param failure - Slot, message, and entry-retirement result.\n * @returns Null after recording or ignoring a stale report.\n */"
|
|
1625
|
+
},
|
|
1626
|
+
{
|
|
1627
|
+
"kind": "method",
|
|
1628
|
+
"name": "reportClientGuardFailure",
|
|
1629
|
+
"signature": "@Remote('reportClientGuardFailure') async reportClientGuardFailure( agent: Agent, pluginId: CordisDynamicPluginId, pluginRunId: CordisDynamicPluginRunId, failure: CordisErrorDetails, ): Promise<null>",
|
|
1630
|
+
"summary": "Report a Client guard rejection that happened after the Package completed activation.",
|
|
1631
|
+
"jsDoc": "/**\n * Report a Client guard rejection that happened after the Package completed activation.\n * @param agent - Agent whose Session must own the Plugin.\n * @param pluginId - Stable Plugin identity whose Client code was rejected.\n * @param pluginRunId - Exact active run that produced the rejection.\n * @param failure - Original guard message and stack.\n * @returns Null after reporting or ignoring a stale/startup failure.\n */"
|
|
1632
|
+
},
|
|
1633
|
+
{
|
|
1634
|
+
"kind": "method",
|
|
1635
|
+
"name": "invoke",
|
|
1636
|
+
"signature": "@Remote('invoke') async invoke( pluginId: CordisDynamicPluginId, pluginRunId: CordisDynamicPluginRunId, method: string, args: JsonValue, ): Promise<DynamicCordisInvokeResult>",
|
|
1637
|
+
"summary": "Invoke an active Host method while rejecting stale Client runs.",
|
|
1638
|
+
"jsDoc": "/**\n * Invoke an active Host method while rejecting stale Client runs.\n * @param pluginId - Stable Plugin identity that owns the method.\n * @param pluginRunId - Exact active run authorizing the call.\n * @param method - Registered Host handler name.\n * @param args - JSON argument delivered to the handler.\n * @returns The JSON result or a typed invocation failure.\n */"
|
|
1639
|
+
}
|
|
1640
|
+
],
|
|
1641
|
+
"types": [
|
|
1642
|
+
{
|
|
1643
|
+
"name": "AfterScheduleRecord",
|
|
1644
|
+
"declaration": "export interface AfterScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'after';\n readonly title: string;\n readonly prompt: string;\n readonly afterSeconds: number;\n readonly scheduledAt: string;\n}"
|
|
1645
|
+
},
|
|
1646
|
+
{
|
|
1647
|
+
"name": "Agent",
|
|
1648
|
+
"declaration": "export interface Agent {\n readonly id: SessionId;\n readonly options: AgentOptions;\n readonly session: Session;\n readonly inbox: Inbox;\n readonly status: AgentStatus;\n readonly ctx: Context;\n cancel(cause: AgentCancelCause, options?: CancelOptions): void;\n whenIdle(): Promise<void>;\n runMaintenance<T>(task: (signal: AbortSignal) => Promise<T>): Promise<T>;\n send(message: UserMessage, target: InboxTarget, wakeup: boolean): void;\n followup(message: UserMessage): void;\n steer(message: UserMessage): void;\n inject(message: UserMessage): void;\n}"
|
|
1649
|
+
},
|
|
1650
|
+
{
|
|
1651
|
+
"name": "AgentCancelCause",
|
|
1652
|
+
"declaration": "export type AgentCancelCause = { readonly kind: 'user'; } | { readonly kind: 'parent'; } | { readonly kind: 'hook'; readonly reason: string; } | { readonly kind: 'disposed'; };"
|
|
1653
|
+
},
|
|
1654
|
+
{
|
|
1655
|
+
"name": "AgentMessageSource",
|
|
1656
|
+
"declaration": "export interface AgentMessageSource {\n readonly kind: 'agent-message';\n readonly form: 'relay';\n readonly senderSessionId: SessionId;\n}"
|
|
1657
|
+
},
|
|
1658
|
+
{
|
|
1659
|
+
"name": "AgentOptions",
|
|
1660
|
+
"declaration": "export interface AgentOptions {\n provider?: string;\n model?: string;\n reasoningEffort?: ReasoningEffortId;\n maxTokens?: number;\n subagentDepth?: number;\n}"
|
|
1661
|
+
},
|
|
1662
|
+
{
|
|
1663
|
+
"name": "AgentStatus",
|
|
1664
|
+
"declaration": "export type AgentStatus = 'idle' | 'running';"
|
|
1665
|
+
},
|
|
1666
|
+
{
|
|
1667
|
+
"name": "ApprovalOutcome",
|
|
1668
|
+
"declaration": "export type ApprovalOutcome = 'allowed-once' | 'rejected' | 'cancelled' | 'unavailable';"
|
|
1669
|
+
},
|
|
1670
|
+
{
|
|
1671
|
+
"name": "ApprovalPolicy",
|
|
1672
|
+
"declaration": "export type ApprovalPolicy = 'ask' | 'never';"
|
|
1673
|
+
},
|
|
1674
|
+
{
|
|
1675
|
+
"name": "ApprovalRequestId",
|
|
1676
|
+
"declaration": "export type ApprovalRequestId = Branded<'ApprovalRequestId'>;"
|
|
1677
|
+
},
|
|
1678
|
+
{
|
|
1679
|
+
"name": "ApprovalRequestId",
|
|
1680
|
+
"declaration": "export type ApprovalRequestId = Branded<'ApprovalRequestId'>;"
|
|
1681
|
+
},
|
|
1682
|
+
{
|
|
1683
|
+
"name": "AssistantMessage",
|
|
1684
|
+
"declaration": "export interface AssistantMessage extends MessageBase {\n readonly role: 'assistant';\n readonly source: ModelMessageSource;\n}"
|
|
1685
|
+
},
|
|
1686
|
+
{
|
|
1687
|
+
"name": "AssistantProviderMetadata",
|
|
1688
|
+
"declaration": "export interface AssistantProviderMetadata {\n provider: string;\n model: string;\n replayState?: unknown;\n}"
|
|
1689
|
+
},
|
|
1690
|
+
{
|
|
1691
|
+
"name": "AssistantStreamRecord",
|
|
1692
|
+
"declaration": "export type AssistantStreamRecord = { readonly type: 'text-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly texts: readonly string[]; } | { readonly type: 'reasoning-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly texts: readonly string[]; } | { readonly type: 'tool-call-chunks'; readonly time0: number; readonly index: number; readonly dt: readonly number[]; readonly id: ToolCallId; readonly name?: string; readonly args: readonly string[]; } | { readonly type: 'chunk'; readonly time: number; readonly chunk: StreamChunk; };"
|
|
1693
|
+
},
|
|
1694
|
+
{
|
|
1695
|
+
"name": "AtScheduleRecord",
|
|
1696
|
+
"declaration": "export interface AtScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'at';\n readonly title: string;\n readonly prompt: string;\n readonly scheduledAt: string;\n}"
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
"name": "AttachmentId",
|
|
1700
|
+
"declaration": "export type AttachmentId = Branded<'AttachmentId'>;"
|
|
1701
|
+
},
|
|
1702
|
+
{
|
|
1703
|
+
"name": "Branded",
|
|
1704
|
+
"declaration": "export type Branded<B extends string> = string & { readonly [BRAND]: B; };"
|
|
1705
|
+
},
|
|
1706
|
+
{
|
|
1707
|
+
"name": "BrandedNumber",
|
|
1708
|
+
"declaration": "export type BrandedNumber<B extends string> = number & { readonly [BRAND]: B; };"
|
|
1709
|
+
},
|
|
1710
|
+
{
|
|
1711
|
+
"name": "CancelOptions",
|
|
1712
|
+
"declaration": "export interface CancelOptions {\n keepInbox?: boolean | undefined;\n}"
|
|
1713
|
+
},
|
|
1714
|
+
{
|
|
1715
|
+
"name": "CommandId",
|
|
1716
|
+
"declaration": "export type CommandId = Branded<'CommandId'>;"
|
|
1717
|
+
},
|
|
1718
|
+
{
|
|
1719
|
+
"name": "CommandSource",
|
|
1720
|
+
"declaration": "export type CommandSource = CommandSourceMap[keyof CommandSourceMap];"
|
|
1721
|
+
},
|
|
1722
|
+
{
|
|
1723
|
+
"name": "CommandSourceMap",
|
|
1724
|
+
"declaration": "export interface CommandSourceMap {\n user: { kind: 'user'; };\n}"
|
|
1725
|
+
},
|
|
1726
|
+
{
|
|
1727
|
+
"name": "CompactionCheckpointSource",
|
|
1728
|
+
"declaration": "export type CompactionCheckpointSource = typeof COMPACT_CHECKPOINT_MARKER & { readonly compactionId: CompactionId; readonly sourceCommandId?: CommandId; };"
|
|
1729
|
+
},
|
|
1730
|
+
{
|
|
1731
|
+
"name": "CompactionId",
|
|
1732
|
+
"declaration": "export type CompactionId = Branded<'CompactionId'>;"
|
|
1733
|
+
},
|
|
1734
|
+
{
|
|
1735
|
+
"name": "ContentBlock",
|
|
1736
|
+
"declaration": "export type ContentBlock = ContentBlockMap[ContentBlockType];"
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
"name": "ContentBlockMap",
|
|
1740
|
+
"declaration": "export interface ContentBlockMap {\n text: TextBlock;\n reasoning: ReasoningBlock;\n image: ImageBlock;\n file: FileBlock;\n 'tool-call': ToolCallBlock;\n 'tool-addition': ToolAdditionBlock;\n 'tool-removal': ToolRemovalBlock;\n}"
|
|
1741
|
+
},
|
|
1742
|
+
{
|
|
1743
|
+
"name": "ContentBlockType",
|
|
1744
|
+
"declaration": "export type ContentBlockType = keyof ContentBlockMap;"
|
|
1745
|
+
},
|
|
1746
|
+
{
|
|
1747
|
+
"name": "ContextFormed",
|
|
1748
|
+
"declaration": "export type ContextFormed = { readonly form?: never; } | { readonly form: 'instructions'; } | { readonly form: 'catalog'; } | { readonly form: 'snapshot'; readonly sections: readonly ContextSnapshotSection[]; } | { readonly form: 'notice'; readonly summary: string; } | { readonly form: 'relay'; } | { readonly form: 'recall'; };"
|
|
1749
|
+
},
|
|
1750
|
+
{
|
|
1751
|
+
"name": "ContextSnapshotSection",
|
|
1752
|
+
"declaration": "export interface ContextSnapshotSection {\n readonly name: string;\n readonly text: string;\n}"
|
|
1753
|
+
},
|
|
1754
|
+
{
|
|
1755
|
+
"name": "ContinuableSubagentDescriptorData",
|
|
1756
|
+
"declaration": "export interface ContinuableSubagentDescriptorData extends SubagentDescriptorBase {\n readonly mode: 'continuable';\n readonly label: string;\n readonly agentProvider?: string;\n readonly agentModel?: string;\n readonly agentReasoningEffort?: ReasoningEffortId;\n readonly persona?: string;\n readonly toolFilter?: ToolRestriction;\n}"
|
|
1757
|
+
},
|
|
1758
|
+
{
|
|
1759
|
+
"name": "CordisDynamicPackageId",
|
|
1760
|
+
"declaration": "export type CordisDynamicPackageId = Branded<'CordisDynamicPackageId'>;"
|
|
1761
|
+
},
|
|
1762
|
+
{
|
|
1763
|
+
"name": "CordisDynamicPluginId",
|
|
1764
|
+
"declaration": "export type CordisDynamicPluginId = Branded<'CordisDynamicPluginId'>;"
|
|
1765
|
+
},
|
|
1766
|
+
{
|
|
1767
|
+
"name": "CordisDynamicPluginRunId",
|
|
1768
|
+
"declaration": "export type CordisDynamicPluginRunId = Branded<'CordisDynamicPluginRunId'>;"
|
|
1769
|
+
},
|
|
1770
|
+
{
|
|
1771
|
+
"name": "CordisDynamicRunMode",
|
|
1772
|
+
"declaration": "export type CordisDynamicRunMode = 'run' | 'update';"
|
|
1773
|
+
},
|
|
1774
|
+
{
|
|
1775
|
+
"name": "CordisErrorDetails",
|
|
1776
|
+
"declaration": "export interface CordisErrorDetails {\n message: string;\n stack?: string;\n}"
|
|
1777
|
+
},
|
|
1778
|
+
{
|
|
1779
|
+
"name": "CordisHalfState",
|
|
1780
|
+
"declaration": "export interface CordisHalfState {\n status: 'absent' | 'pending' | 'stopped' | 'running' | 'waiting' | 'failed';\n waitingFor: readonly string[];\n error?: string;\n}"
|
|
1781
|
+
},
|
|
1782
|
+
{
|
|
1783
|
+
"name": "CordisInspectMethodManifest",
|
|
1784
|
+
"declaration": "export interface CordisInspectMethodManifest {\n name: string;\n description: string;\n inputSchema: JsonValue;\n outputSchema: JsonValue;\n}"
|
|
1785
|
+
},
|
|
1786
|
+
{
|
|
1787
|
+
"name": "CordisInspectProviderManifest",
|
|
1788
|
+
"declaration": "export interface CordisInspectProviderManifest {\n id: string;\n description: string;\n methods: readonly CordisInspectMethodManifest[];\n}"
|
|
1789
|
+
},
|
|
1790
|
+
{
|
|
1791
|
+
"name": "CordisInspectQueryResolution",
|
|
1792
|
+
"declaration": "export type CordisInspectQueryResolution = { ok: true; data: JsonValue; } | { ok: false; reason: 'provider-missing' | 'method-missing' | 'invalid-input' | 'provider-error' | 'cancelled'; message: string; };"
|
|
1793
|
+
},
|
|
1794
|
+
{
|
|
1795
|
+
"name": "CordisInspectRequestId",
|
|
1796
|
+
"declaration": "export type CordisInspectRequestId = Branded<'CordisInspectRequestId'>;"
|
|
1797
|
+
},
|
|
1798
|
+
{
|
|
1799
|
+
"name": "CordisInspectResolveAck",
|
|
1800
|
+
"declaration": "export interface CordisInspectResolveAck {\n accepted: boolean;\n}"
|
|
1801
|
+
},
|
|
1802
|
+
{
|
|
1803
|
+
"name": "CordisRunDiagnostic",
|
|
1804
|
+
"declaration": "export interface CordisRunDiagnostic {\n phase: 'approval' | 'host-load' | 'host-apply' | 'client-load' | 'client-apply' | 'client-render';\n message: string;\n stack?: string;\n pluginId: CordisDynamicPluginId;\n packageId: CordisDynamicPackageId;\n pluginRunId: CordisDynamicPluginRunId;\n}"
|
|
1805
|
+
},
|
|
1806
|
+
{
|
|
1807
|
+
"name": "CordisRunStatus",
|
|
1808
|
+
"declaration": "export type CordisRunStatus = 'awaiting-approval' | 'starting-host' | 'client-pending' | 'running' | 'waiting' | 'rejected' | 'failed' | 'cancelled' | 'stopped';"
|
|
1809
|
+
},
|
|
1810
|
+
{
|
|
1811
|
+
"name": "DeveloperMessage",
|
|
1812
|
+
"declaration": "export interface DeveloperMessage extends MessageBase {\n readonly role: 'developer';\n}"
|
|
1813
|
+
},
|
|
1814
|
+
{
|
|
1815
|
+
"name": "DynamicCordisClientSource",
|
|
1816
|
+
"declaration": "export interface DynamicCordisClientSource {\n code: string;\n name: string;\n pluginId: CordisDynamicPluginId;\n packageId: CordisDynamicPackageId;\n pluginRunId: CordisDynamicPluginRunId;\n}"
|
|
1817
|
+
},
|
|
1818
|
+
{
|
|
1819
|
+
"name": "DynamicCordisDefineReceipt",
|
|
1820
|
+
"declaration": "export interface DynamicCordisDefineReceipt {\n pluginId: CordisDynamicPluginId;\n packageId: CordisDynamicPackageId;\n name: string;\n purpose: string;\n hasHostHalf: boolean;\n hasClientHalf: boolean;\n}"
|
|
1821
|
+
},
|
|
1822
|
+
{
|
|
1823
|
+
"name": "DynamicCordisDefineRequest",
|
|
1824
|
+
"declaration": "export interface DynamicCordisDefineRequest {\n sessionId: SessionId;\n plugin: { kind: 'new'; idPrefix: string; } | { kind: 'existing'; pluginId: CordisDynamicPluginId; };\n name: string;\n purpose: string;\n code: { host?: string; client?: string; };\n}"
|
|
1825
|
+
},
|
|
1826
|
+
{
|
|
1827
|
+
"name": "DynamicCordisHostHalfResult",
|
|
1828
|
+
"declaration": "export type DynamicCordisHostHalfResult = { ok: true; pluginId: CordisDynamicPluginId; packageId: CordisDynamicPackageId; pluginRunId: CordisDynamicPluginRunId; waitingFor: readonly string[]; startedHere: boolean; } | ({ ok: false; } & CordisErrorDetails);"
|
|
1829
|
+
},
|
|
1830
|
+
{
|
|
1831
|
+
"name": "DynamicCordisInventoryPackage",
|
|
1832
|
+
"declaration": "export interface DynamicCordisInventoryPackage {\n packageId: CordisDynamicPackageId;\n name: string;\n purpose: string;\n hasHostHalf: boolean;\n hasClientHalf: boolean;\n}"
|
|
1833
|
+
},
|
|
1834
|
+
{
|
|
1835
|
+
"name": "DynamicCordisInventoryRow",
|
|
1836
|
+
"declaration": "export interface DynamicCordisInventoryRow {\n pluginId: CordisDynamicPluginId;\n agentId: SessionId;\n packages: readonly DynamicCordisInventoryPackage[];\n currentPackageId?: CordisDynamicPackageId;\n nextPackageId?: CordisDynamicPackageId;\n activeRun?: { pluginRunId: CordisDynamicPluginRunId; packageId: CordisDynamicPackageId; };\n latestRun?: DynamicCordisRunAttempt;\n}"
|
|
1837
|
+
},
|
|
1838
|
+
{
|
|
1839
|
+
"name": "DynamicCordisInvokeResult",
|
|
1840
|
+
"declaration": "export type DynamicCordisInvokeResult = { ok: true; value: JsonValue; } | ({ ok: false; code: 'plugin-not-running' | 'stale-run' | 'method-not-found' | 'handler-error'; } & CordisErrorDetails);"
|
|
1841
|
+
},
|
|
1842
|
+
{
|
|
1843
|
+
"name": "DynamicCordisPackageInspection",
|
|
1844
|
+
"declaration": "export interface DynamicCordisPackageInspection extends DynamicCordisReference {\n code: { host?: string; client?: string; };\n}"
|
|
1845
|
+
},
|
|
1846
|
+
{
|
|
1847
|
+
"name": "DynamicCordisPluginInspection",
|
|
1848
|
+
"declaration": "export interface DynamicCordisPluginInspection extends DynamicCordisReference {\n packages: Array<{ packageId: CordisDynamicPackageId; name: string; purpose: string; hasHostHalf: boolean; hasClientHalf: boolean; }>;\n}"
|
|
1849
|
+
},
|
|
1850
|
+
{
|
|
1851
|
+
"name": "DynamicCordisReference",
|
|
1852
|
+
"declaration": "export interface DynamicCordisReference {\n pluginId: CordisDynamicPluginId;\n packageId: CordisDynamicPackageId;\n name: string;\n purpose: string;\n currentPackageId?: CordisDynamicPackageId;\n nextPackageId?: CordisDynamicPackageId;\n activeRun?: { pluginRunId: CordisDynamicPluginRunId; packageId: CordisDynamicPackageId; };\n latestRun?: DynamicCordisRunAttempt;\n}"
|
|
1853
|
+
},
|
|
1854
|
+
{
|
|
1855
|
+
"name": "DynamicCordisRenderFailure",
|
|
1856
|
+
"declaration": "export interface DynamicCordisRenderFailure {\n slot: string;\n message: string;\n stack?: string;\n abdicated: boolean;\n}"
|
|
1857
|
+
},
|
|
1858
|
+
{
|
|
1859
|
+
"name": "DynamicCordisResolveAck",
|
|
1860
|
+
"declaration": "export interface DynamicCordisResolveAck {\n accepted: boolean;\n}"
|
|
1861
|
+
},
|
|
1862
|
+
{
|
|
1863
|
+
"name": "DynamicCordisRunAttempt",
|
|
1864
|
+
"declaration": "export interface DynamicCordisRunAttempt {\n pluginRunId: CordisDynamicPluginRunId;\n packageId: CordisDynamicPackageId;\n mode: CordisDynamicRunMode;\n status: CordisRunStatus;\n approvalRequestId?: ApprovalRequestId;\n requiresApproval?: boolean;\n host: CordisHalfState;\n client: CordisHalfState;\n error?: CordisRunDiagnostic;\n}"
|
|
1865
|
+
},
|
|
1866
|
+
{
|
|
1867
|
+
"name": "DynamicCordisRunResolution",
|
|
1868
|
+
"declaration": "export type DynamicCordisRunResolution = { ok: true; pluginRunId: CordisDynamicPluginRunId; waitingFor?: readonly string[]; } | { ok: false; reason: 'rejected' | 'host-half-failed' | 'client-half-failed'; pluginRunId?: CordisDynamicPluginRunId; startedHere?: boolean; message?: string; stack?: string; };"
|
|
1869
|
+
},
|
|
1870
|
+
{
|
|
1871
|
+
"name": "DynamicCordisRunResponse",
|
|
1872
|
+
"declaration": "export type DynamicCordisRunResponse = { ok: true; status: 'awaiting-approval' | 'starting' | 'running'; pluginId: CordisDynamicPluginId; packageId: CordisDynamicPackageId; pluginRunId: CordisDynamicPluginRunId; waitingFor: readonly string[]; clientWaitingFor?: readonly string[]; currentPackageId?: CordisDynamicPackageId; nextPackageId?: CordisDynamicPackageId; mode: CordisDynamicRunMode; } | { ok: false; reason: 'plugin-missing' | 'package-missing' | 'invalid-mode' | 'transition-in-flight' | 'host-half-failed' | 'client-half-failed' | 'rejected' | 'cancelled' | 'not-running'; message: string; stack?: string; };"
|
|
1873
|
+
},
|
|
1874
|
+
{
|
|
1875
|
+
"name": "DynamicCordisSnapshotRow",
|
|
1876
|
+
"declaration": "export interface DynamicCordisSnapshotRow {\n pluginId: CordisDynamicPluginId;\n currentPackageId?: CordisDynamicPackageId;\n nextPackageId?: CordisDynamicPackageId;\n packages: Array<{ packageId: CordisDynamicPackageId; name: string; purpose: string; hasHostHalf: boolean; hasClientHalf: boolean; }>;\n activeRun?: { pluginRunId: CordisDynamicPluginRunId; packageId: CordisDynamicPackageId; fiber?: Fiber; handlers: string[]; renderFailure?: DynamicCordisRenderFailure; };\n latestRun?: DynamicCordisRunAttempt;\n}"
|
|
1877
|
+
},
|
|
1878
|
+
{
|
|
1879
|
+
"name": "DynamicCordisStopResponse",
|
|
1880
|
+
"declaration": "export type DynamicCordisStopResponse = { ok: true; } | { ok: false; reason: 'plugin-missing' | 'not-running'; message: string; };"
|
|
1881
|
+
},
|
|
1882
|
+
{
|
|
1883
|
+
"name": "DynamicCordisUndefineReceipt",
|
|
1884
|
+
"declaration": "export type DynamicCordisUndefineReceipt = { ok: true; wasRunning: boolean; } | { ok: false; reason: 'plugin-missing'; message: string; };"
|
|
1885
|
+
},
|
|
1886
|
+
{
|
|
1887
|
+
"name": "EpochHeader",
|
|
1888
|
+
"declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n tools?: ToolSchema[];\n system?: never;\n}"
|
|
1889
|
+
},
|
|
1890
|
+
{
|
|
1891
|
+
"name": "EveryScheduleDispatchChange",
|
|
1892
|
+
"declaration": "export interface EveryScheduleDispatchChange {\n readonly version: 1;\n readonly operation: 'dispatch';\n readonly id: ScheduleId;\n readonly acceptedAt: string;\n}"
|
|
1893
|
+
},
|
|
1894
|
+
{
|
|
1895
|
+
"name": "EveryScheduleRecord",
|
|
1896
|
+
"declaration": "export interface EveryScheduleRecord {\n readonly id: ScheduleId;\n readonly kind: 'every';\n readonly title: string;\n readonly prompt: string;\n readonly everySeconds: number;\n readonly scheduledAt: string;\n}"
|
|
1897
|
+
},
|
|
1898
|
+
{
|
|
1899
|
+
"name": "FeedbackCategory",
|
|
1900
|
+
"declaration": "export type FeedbackCategory = 'task-result' | 'instruction-following' | 'product-interaction' | 'service-stability' | 'resource-cost' | 'security-privacy-permission' | 'other';"
|
|
1901
|
+
},
|
|
1902
|
+
{
|
|
1903
|
+
"name": "FeedbackRecord",
|
|
1904
|
+
"declaration": "export interface FeedbackRecord {\n readonly text?: string;\n readonly category?: FeedbackCategory;\n}"
|
|
1905
|
+
},
|
|
1906
|
+
{
|
|
1907
|
+
"name": "FileAttachmentRef",
|
|
1908
|
+
"declaration": "export interface FileAttachmentRef {\n attachmentId: AttachmentId;\n name: string;\n bytes: number;\n}"
|
|
1909
|
+
},
|
|
1910
|
+
{
|
|
1911
|
+
"name": "FileBlock",
|
|
1912
|
+
"declaration": "export interface FileBlock {\n type: 'file';\n attachment: FileAttachmentRef;\n}"
|
|
1913
|
+
},
|
|
1914
|
+
{
|
|
1915
|
+
"name": "FinishReason",
|
|
1916
|
+
"declaration": "export type FinishReason = FinishReasonMap[keyof FinishReasonMap];"
|
|
1917
|
+
},
|
|
1918
|
+
{
|
|
1919
|
+
"name": "FinishReasonMap",
|
|
1920
|
+
"declaration": "export interface FinishReasonMap {\n stop: { kind: 'stop'; };\n 'tool-calls': { kind: 'tool-calls'; };\n 'max-tokens': { kind: 'max-tokens'; };\n aborted: { kind: 'aborted'; failure: LlmFailure; };\n error: { kind: 'error'; failure: LlmFailure; };\n}"
|
|
1921
|
+
},
|
|
1922
|
+
{
|
|
1923
|
+
"name": "GoalBlockReason",
|
|
1924
|
+
"declaration": "export interface GoalBlockReason {\n readonly code: string;\n readonly message: string;\n}"
|
|
1925
|
+
},
|
|
1926
|
+
{
|
|
1927
|
+
"name": "GoalChangeMeta",
|
|
1928
|
+
"declaration": "export type GoalChangeMeta = GoalSnapshotChangeMeta | GoalClearChangeMeta;"
|
|
1929
|
+
},
|
|
1930
|
+
{
|
|
1931
|
+
"name": "GoalClearChangeMeta",
|
|
1932
|
+
"declaration": "export interface GoalClearChangeMeta {\n readonly kind: 'goal/change';\n readonly version: 1;\n readonly operation: 'clear';\n readonly cleared: GoalRef;\n readonly clearedAt: number;\n}"
|
|
1933
|
+
},
|
|
1934
|
+
{
|
|
1935
|
+
"name": "GoalId",
|
|
1936
|
+
"declaration": "export type GoalId = Branded<'GoalId'>;"
|
|
1937
|
+
},
|
|
1938
|
+
{
|
|
1939
|
+
"name": "GoalMessageSource",
|
|
1940
|
+
"declaration": "export interface GoalMessageSource {\n readonly kind: 'goal';\n readonly goalId: GoalId;\n readonly revision: number;\n readonly round: number;\n}"
|
|
1941
|
+
},
|
|
1942
|
+
{
|
|
1943
|
+
"name": "GoalOperation",
|
|
1944
|
+
"declaration": "export type GoalOperation = 'create' | 'edit' | 'pause' | 'resume' | 'complete' | 'block' | 'clear';"
|
|
1945
|
+
},
|
|
1946
|
+
{
|
|
1947
|
+
"name": "GoalPhase",
|
|
1948
|
+
"declaration": "export type GoalPhase = 'active' | 'paused' | 'blocked' | 'complete';"
|
|
1949
|
+
},
|
|
1950
|
+
{
|
|
1951
|
+
"name": "GoalRef",
|
|
1952
|
+
"declaration": "export interface GoalRef {\n readonly id: GoalId;\n readonly revision: number;\n}"
|
|
1953
|
+
},
|
|
1954
|
+
{
|
|
1955
|
+
"name": "GoalSnapshot",
|
|
1956
|
+
"declaration": "export interface GoalSnapshot extends GoalRef {\n readonly objective: string;\n readonly phase: GoalPhase;\n readonly blockedReason?: GoalBlockReason;\n readonly maxGoalRounds: number;\n}"
|
|
1957
|
+
},
|
|
1958
|
+
{
|
|
1959
|
+
"name": "GoalSnapshotChangeMeta",
|
|
1960
|
+
"declaration": "export interface GoalSnapshotChangeMeta {\n readonly kind: 'goal/change';\n readonly version: 1;\n readonly operation: Exclude<GoalOperation, 'clear'>;\n readonly goal: GoalSnapshot;\n readonly roundsStarted: number;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
|
|
1961
|
+
},
|
|
1962
|
+
{
|
|
1963
|
+
"name": "ImageAttachmentRef",
|
|
1964
|
+
"declaration": "export interface ImageAttachmentRef {\n attachmentId: AttachmentId;\n mediaType: ImageMediaType;\n bytes: number;\n width: number;\n height: number;\n name?: string;\n originalDimensions?: { width: number; height: number; };\n}"
|
|
1965
|
+
},
|
|
1966
|
+
{
|
|
1967
|
+
"name": "ImageBlock",
|
|
1968
|
+
"declaration": "export interface ImageBlock {\n type: 'image';\n attachment: ImageAttachmentRef;\n offloaded?: true;\n}"
|
|
1969
|
+
},
|
|
1970
|
+
{
|
|
1971
|
+
"name": "ImageMediaType",
|
|
1972
|
+
"declaration": "export type ImageMediaType = 'image/png' | 'image/jpeg' | 'image/webp' | 'image/gif';"
|
|
1973
|
+
},
|
|
1974
|
+
{
|
|
1975
|
+
"name": "ImageOffloadTarget",
|
|
1976
|
+
"declaration": "export interface ImageOffloadTarget {\n seq: SessionSeq;\n imageIndexes: number[];\n}"
|
|
1977
|
+
},
|
|
1978
|
+
{
|
|
1979
|
+
"name": "Inbox",
|
|
1980
|
+
"declaration": "export interface Inbox {\n readonly nextTurn: readonly UserMessage[];\n readonly nextStep: readonly UserMessage[];\n clear(): void;\n append(target: InboxTarget, message: UserMessage): void;\n prepend(target: InboxTarget, message: UserMessage): void;\n replace(messageId: MessageId, newMessage: UserMessage): boolean;\n remove(messageId: MessageId): boolean;\n splice(target: InboxTarget, start: number, deleteCount: number, inserted: UserMessage[]): UserMessage[];\n}"
|
|
1981
|
+
},
|
|
1982
|
+
{
|
|
1983
|
+
"name": "InboxTarget",
|
|
1984
|
+
"declaration": "export type InboxTarget = 'next-turn' | 'next-step';"
|
|
1985
|
+
},
|
|
1986
|
+
{
|
|
1987
|
+
"name": "JsonValue",
|
|
1988
|
+
"declaration": "export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue; };"
|
|
1989
|
+
},
|
|
1990
|
+
{
|
|
1991
|
+
"name": "KnownCatalogMode",
|
|
1992
|
+
"declaration": "export type KnownCatalogMode = { readonly mode: 'one-shot'; readonly label?: string; } | { readonly mode: 'continuable'; readonly label: string; };"
|
|
1993
|
+
},
|
|
1994
|
+
{
|
|
1995
|
+
"name": "LegacyAfterScheduleRecord",
|
|
1996
|
+
"declaration": "export interface LegacyAfterScheduleRecord extends Omit<AfterScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
1997
|
+
},
|
|
1998
|
+
{
|
|
1999
|
+
"name": "LegacyAtScheduleRecord",
|
|
2000
|
+
"declaration": "export interface LegacyAtScheduleRecord extends Omit<AtScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
2001
|
+
},
|
|
2002
|
+
{
|
|
2003
|
+
"name": "LegacyEveryScheduleRecord",
|
|
2004
|
+
"declaration": "export interface LegacyEveryScheduleRecord extends Omit<EveryScheduleRecord, 'title'> {\n readonly title?: string;\n}"
|
|
2005
|
+
},
|
|
2006
|
+
{
|
|
2007
|
+
"name": "LegacyScheduleRecord",
|
|
2008
|
+
"declaration": "export type LegacyScheduleRecord = LegacyAfterScheduleRecord | LegacyAtScheduleRecord | LegacyEveryScheduleRecord;"
|
|
2009
|
+
},
|
|
2010
|
+
{
|
|
2011
|
+
"name": "LlmCallConfig",
|
|
2012
|
+
"declaration": "export interface LlmCallConfig {\n provider: string;\n model: string;\n reasoningEffort?: ReasoningEffortId;\n temperature?: number;\n maxTokens?: number;\n stop?: string[];\n}"
|
|
2013
|
+
},
|
|
2014
|
+
{
|
|
2015
|
+
"name": "LlmCallConfigAdapterDefaults",
|
|
2016
|
+
"declaration": "export interface LlmCallConfigAdapterDefaults {\n reasoningEffort?: true;\n maxTokens?: true;\n}"
|
|
2017
|
+
},
|
|
2018
|
+
{
|
|
2019
|
+
"name": "LlmFailure",
|
|
2020
|
+
"declaration": "export interface LlmFailure {\n readonly message: string;\n readonly code: string;\n readonly status?: number;\n readonly providerRetryAfterMs?: number;\n readonly requestId?: ProviderRequestId;\n readonly offloadImages?: number;\n}"
|
|
2021
|
+
},
|
|
2022
|
+
{
|
|
2023
|
+
"name": "Message",
|
|
2024
|
+
"declaration": "export type Message = MessageRoleMap[keyof MessageRoleMap];"
|
|
2025
|
+
},
|
|
2026
|
+
{
|
|
2027
|
+
"name": "MessageBase",
|
|
2028
|
+
"declaration": "export interface MessageBase {\n readonly id: MessageId;\n readonly content: readonly ContentBlock[];\n readonly source: MessageSource;\n}"
|
|
2029
|
+
},
|
|
2030
|
+
{
|
|
2031
|
+
"name": "MessageFeedbackDelete",
|
|
2032
|
+
"declaration": "export interface MessageFeedbackDelete {\n readonly sessionId: SessionId;\n readonly messageId: MessageId;\n}"
|
|
2033
|
+
},
|
|
2034
|
+
{
|
|
2035
|
+
"name": "MessageFeedbackItem",
|
|
2036
|
+
"declaration": "export interface MessageFeedbackItem {\n readonly messageId: MessageId;\n readonly rating: MessageFeedbackRating;\n readonly note?: string;\n readonly category?: FeedbackCategory;\n readonly version: MessageFeedbackVersion;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
|
|
2037
|
+
},
|
|
2038
|
+
{
|
|
2039
|
+
"name": "MessageFeedbackPut",
|
|
2040
|
+
"declaration": "export interface MessageFeedbackPut {\n readonly sessionId: SessionId;\n readonly item: MessageFeedbackItem;\n}"
|
|
2041
|
+
},
|
|
2042
|
+
{
|
|
2043
|
+
"name": "MessageFeedbackRating",
|
|
2044
|
+
"declaration": "export type MessageFeedbackRating = 'positive' | 'negative';"
|
|
2045
|
+
},
|
|
2046
|
+
{
|
|
2047
|
+
"name": "MessageFeedbackVersion",
|
|
2048
|
+
"declaration": "export type MessageFeedbackVersion = Branded<'MessageFeedbackVersion'>;"
|
|
2049
|
+
},
|
|
2050
|
+
{
|
|
2051
|
+
"name": "MessageId",
|
|
2052
|
+
"declaration": "export type MessageId = Branded<'MessageId'>;"
|
|
2053
|
+
},
|
|
2054
|
+
{
|
|
2055
|
+
"name": "MessageRoleMap",
|
|
2056
|
+
"declaration": "export interface MessageRoleMap {\n system: SystemMessage;\n developer: DeveloperMessage;\n user: UserMessage;\n assistant: AssistantMessage;\n tool: ToolResultMessage;\n}"
|
|
2057
|
+
},
|
|
2058
|
+
{
|
|
2059
|
+
"name": "MessageSource",
|
|
2060
|
+
"declaration": "export type MessageSource = MessageSourceMap[keyof MessageSourceMap];"
|
|
2061
|
+
},
|
|
2062
|
+
{
|
|
2063
|
+
"name": "MessageSourceMap",
|
|
2064
|
+
"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 '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 'sidechat-boundary': { kind: 'sidechat-boundary'; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'team-message': TeamMessageSource;\n goal: GoalMessageSource;\n 'kylin-host-runner': { kind: 'kylin-host-runner'; };\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'compact-checkpoint': CompactionCheckpointSource;\n 'session-reference': SessionReferenceSource;\n 'user-question-reply': { kind: 'user-question-reply'; callId: ToolCallId; outcome: 'answered'; };\n}"
|
|
2065
|
+
},
|
|
2066
|
+
{
|
|
2067
|
+
"name": "ModelMessageSource",
|
|
2068
|
+
"declaration": "export interface ModelMessageSource extends AssistantProviderMetadata {\n kind: 'model';\n}"
|
|
2069
|
+
},
|
|
2070
|
+
{
|
|
2071
|
+
"name": "ModelSelection",
|
|
2072
|
+
"declaration": "export interface ModelSelection {\n readonly provider: string;\n readonly model: string;\n readonly reasoningEffort?: string;\n}"
|
|
2073
|
+
},
|
|
2074
|
+
{
|
|
2075
|
+
"name": "OneShotScheduleDispatchChange",
|
|
2076
|
+
"declaration": "export interface OneShotScheduleDispatchChange {\n readonly version: 1;\n readonly operation: 'dispatch';\n readonly id: ScheduleId;\n}"
|
|
2077
|
+
},
|
|
2078
|
+
{
|
|
2079
|
+
"name": "OneShotSubagentDescriptorData",
|
|
2080
|
+
"declaration": "export interface OneShotSubagentDescriptorData extends SubagentDescriptorBase {\n readonly mode: 'one-shot';\n readonly label?: string;\n}"
|
|
2081
|
+
},
|
|
2082
|
+
{
|
|
2083
|
+
"name": "OptionalSessionSeq",
|
|
2084
|
+
"declaration": "export type OptionalSessionSeq = SessionSeq | null;"
|
|
2085
|
+
},
|
|
2086
|
+
{
|
|
2087
|
+
"name": "ProviderRequestId",
|
|
2088
|
+
"declaration": "export type ProviderRequestId = Branded<'ProviderRequestId'>;"
|
|
2089
|
+
},
|
|
2090
|
+
{
|
|
2091
|
+
"name": "PtcDispatchEventData",
|
|
2092
|
+
"declaration": "export interface PtcDispatchEventData extends PtcDispatchStartEventData {\n isError: boolean;\n content: ContentBlock[];\n error?: { name: string; code: string; reason?: string; };\n}"
|
|
2093
|
+
},
|
|
2094
|
+
{
|
|
2095
|
+
"name": "PtcDispatchStartEventData",
|
|
2096
|
+
"declaration": "export interface PtcDispatchStartEventData {\n rootCallId: ToolCallId;\n parentCallId: ToolCallId;\n subCallId: ToolCallId;\n name: string;\n arguments: unknown;\n}"
|
|
2097
|
+
},
|
|
2098
|
+
{
|
|
2099
|
+
"name": "ReasoningBlock",
|
|
2100
|
+
"declaration": "export interface ReasoningBlock {\n type: 'reasoning';\n text: string;\n}"
|
|
2101
|
+
},
|
|
2102
|
+
{
|
|
2103
|
+
"name": "ReasoningEffortId",
|
|
2104
|
+
"declaration": "export type ReasoningEffortId = Branded<'ReasoningEffortId'>;"
|
|
2105
|
+
},
|
|
2106
|
+
{
|
|
2107
|
+
"name": "ReplayEnvelope",
|
|
2108
|
+
"declaration": "export interface ReplayEnvelope {\n response: unknown;\n blocks?: readonly unknown[];\n}"
|
|
2109
|
+
},
|
|
2110
|
+
{
|
|
2111
|
+
"name": "RequestContext",
|
|
2112
|
+
"declaration": "export interface RequestContext {\n provider: string;\n model: string;\n contextWindow?: number;\n systemPromptUpdate?: SystemPromptUpdate;\n}"
|
|
2113
|
+
},
|
|
2114
|
+
{
|
|
2115
|
+
"name": "RequestHeaderReason",
|
|
2116
|
+
"declaration": "export type RequestHeaderReason = 'initial' | 'resume' | 'change' | 'series';"
|
|
2117
|
+
},
|
|
2118
|
+
{
|
|
2119
|
+
"name": "SandboxMode",
|
|
2120
|
+
"declaration": "export type SandboxMode = 'read-only' | 'workspace-write' | 'danger-full-access';"
|
|
2121
|
+
},
|
|
2122
|
+
{
|
|
2123
|
+
"name": "ScheduleChange",
|
|
2124
|
+
"declaration": "export type ScheduleChange = ScheduleCreateChange | ScheduleDeleteChange | ScheduleDispatchChange;"
|
|
2125
|
+
},
|
|
2126
|
+
{
|
|
2127
|
+
"name": "ScheduleCreateChange",
|
|
2128
|
+
"declaration": "export interface ScheduleCreateChange {\n readonly version: 1;\n readonly operation: 'create';\n readonly schedule: LegacyScheduleRecord;\n}"
|
|
2129
|
+
},
|
|
2130
|
+
{
|
|
2131
|
+
"name": "ScheduleDeleteChange",
|
|
2132
|
+
"declaration": "export interface ScheduleDeleteChange {\n readonly version: 1;\n readonly operation: 'delete';\n readonly id: ScheduleId;\n}"
|
|
2133
|
+
},
|
|
2134
|
+
{
|
|
2135
|
+
"name": "ScheduleDispatchChange",
|
|
2136
|
+
"declaration": "export type ScheduleDispatchChange = OneShotScheduleDispatchChange | EveryScheduleDispatchChange;"
|
|
2137
|
+
},
|
|
2138
|
+
{
|
|
2139
|
+
"name": "ScheduleId",
|
|
2140
|
+
"declaration": "export type ScheduleId = Branded<'ScheduleId'>;"
|
|
2141
|
+
},
|
|
2142
|
+
{
|
|
2143
|
+
"name": "Session",
|
|
2144
|
+
"declaration": "export class Session {\n get surface(): SessionSurface;\n readonly header: SessionHeader;\n readonly inheritedEventCount: SessionLogOffset;\n get id(): SessionId;\n readonly firstLiveSeq: SessionLogOffset;\n readonly firstLifecycleSeq: SessionLogOffset;\n eventAt(seq: SessionSeq): SessionEvent | undefined;\n snapshotEvents(fromSeq: SessionLogOffset = SessionLogOffset(0), toSeqExclusive: SessionLogOffset = this.seq): readonly SessionEvent[];\n ownEvents(): readonly SessionEvent[];\n isOwnSeq(seq: SessionSeq): boolean;\n get seq(): SessionLogOffset;\n append<T extends SessionEventType>(type: T, data: SessionEventMap[T], ...opts: T extends SurfaceEventType ? [opts: SurfaceIntent<T>] : []): SessionEvent<T>;\n requestHeader(): EpochHeader | undefined;\n requestContext(): RequestContext | undefined;\n toolHistory(): ToolHistory;\n deriveMessages(): Message[];\n deriveEventMessage(event: SessionEvent): Message | null;\n}"
|
|
2145
|
+
},
|
|
2146
|
+
{
|
|
2147
|
+
"name": "SessionEvent",
|
|
2148
|
+
"declaration": "export type SessionEvent<T extends SessionEventType = SessionEventType> = { [K in SessionEventType]: { type: K; seq: SessionSeq; time: number; data: SessionEventMap[K]; ignorable?: true; } & (K extends SurfaceEventType ? SurfaceIntent<K> : { surfaceOp?: never; sourceEventSeqs?: never; }) }[T];"
|
|
2149
|
+
},
|
|
2150
|
+
{
|
|
2151
|
+
"name": "SessionEventMap",
|
|
2152
|
+
"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 '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('@qilin-agent/session/types').SessionSeq; };\n 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'model/selection': ModelSelection;\n 'subagent/descriptor': SubagentDescriptorData;\n 'permission/preset': { preset: string; };\n 'subagent/catalog': SubagentCatalogEvent;\n 'feedback/record': FeedbackRecord;\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 'schedule/change': ScheduleChange;\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}"
|
|
2153
|
+
},
|
|
2154
|
+
{
|
|
2155
|
+
"name": "SessionEventType",
|
|
2156
|
+
"declaration": "export type SessionEventType = keyof SessionEventMap;"
|
|
2157
|
+
},
|
|
2158
|
+
{
|
|
2159
|
+
"name": "SessionHeader",
|
|
2160
|
+
"declaration": "export interface SessionHeader {\n readonly version: typeof SESSION_FORMAT_VERSION;\n readonly id: SessionId;\n readonly createdAt: number;\n readonly cwd?: string;\n readonly parentSession?: SessionId;\n readonly isSeeded: boolean;\n readonly origin?: 'subagent';\n readonly delegationDepth?: number;\n readonly agentPreset?: string;\n}"
|
|
2161
|
+
},
|
|
2162
|
+
{
|
|
2163
|
+
"name": "SessionId",
|
|
2164
|
+
"declaration": "export type SessionId = Branded<'SessionId'>;"
|
|
2165
|
+
},
|
|
2166
|
+
{
|
|
2167
|
+
"name": "SessionLogOffset",
|
|
2168
|
+
"declaration": "export type SessionLogOffset = BrandedNumber<'SessionLogOffset'>;"
|
|
2169
|
+
},
|
|
2170
|
+
{
|
|
2171
|
+
"name": "SessionReferenceSource",
|
|
2172
|
+
"declaration": "export interface SessionReferenceSource {\n kind: 'session-reference';\n form: 'recall';\n version: 1;\n references: { sessionId: string; label: string; capturedFormatVersion?: number; capturedThroughSeq: OptionalSessionSeq; compacted: boolean; originalMessages: number; retainedMessages: number; omittedMessages: number; omittedBytes: number; truncated: boolean; inputIndex: number; }[];\n}"
|
|
2173
|
+
},
|
|
2174
|
+
{
|
|
2175
|
+
"name": "SessionRequestId",
|
|
2176
|
+
"declaration": "export type SessionRequestId = Branded<'session-request-id'>;"
|
|
2177
|
+
},
|
|
2178
|
+
{
|
|
2179
|
+
"name": "SessionSeq",
|
|
2180
|
+
"declaration": "export type SessionSeq = BrandedNumber<'SessionSeq'>;"
|
|
2181
|
+
},
|
|
2182
|
+
{
|
|
2183
|
+
"name": "SessionSurface",
|
|
2184
|
+
"declaration": "export interface SessionSurface {\n readonly nodes: readonly SessionSeq[];\n readonly replaceGeneration: number;\n readonly contentGeneration: number;\n}"
|
|
2185
|
+
},
|
|
2186
|
+
{
|
|
2187
|
+
"name": "SessionTitleEventData",
|
|
2188
|
+
"declaration": "export interface SessionTitleEventData {\n readonly title: string;\n readonly messageSeqs: SessionSeq[];\n readonly source: SessionTitleSource;\n}"
|
|
2189
|
+
},
|
|
2190
|
+
{
|
|
2191
|
+
"name": "SessionTitleModelIdentity",
|
|
2192
|
+
"declaration": "export interface SessionTitleModelIdentity {\n readonly provider: string;\n readonly model: string;\n}"
|
|
2193
|
+
},
|
|
2194
|
+
{
|
|
2195
|
+
"name": "SessionTitleProviderId",
|
|
2196
|
+
"declaration": "export type SessionTitleProviderId = Branded<'SessionTitleProviderId'>;"
|
|
2197
|
+
},
|
|
2198
|
+
{
|
|
2199
|
+
"name": "SessionTitleSource",
|
|
2200
|
+
"declaration": "export type SessionTitleSource = { readonly kind: 'fallback'; } | { readonly kind: 'provider'; readonly provider: SessionTitleProviderId; readonly model?: SessionTitleModelIdentity; } | { readonly kind: 'user'; };"
|
|
2201
|
+
},
|
|
2202
|
+
{
|
|
2203
|
+
"name": "SkillInvocationSource",
|
|
2204
|
+
"declaration": "export interface SkillInvocationSource {\n readonly kind: 'skill-invocation';\n readonly name: string;\n readonly form: 'instructions';\n}"
|
|
2205
|
+
},
|
|
2206
|
+
{
|
|
2207
|
+
"name": "StreamChunk",
|
|
2208
|
+
"declaration": "export type StreamChunk = { type: 'block-start'; index: number; blockType: ContentBlockType; } | { type: 'text-delta'; index: number; text: string; } | { type: 'reasoning-delta'; index: number; text: string; } | { type: 'tool-call-delta'; index: number; id: ToolCallId; name?: string; argumentsDelta: string; } | { type: 'block-end'; index: number; block: ContentBlock; } | { type: 'usage'; usage: TokenUsage; } | { type: 'finish'; reason: FinishReason; replayState?: ReplayEnvelope; };"
|
|
2209
|
+
},
|
|
2210
|
+
{
|
|
2211
|
+
"name": "SubagentCatalogEvent",
|
|
2212
|
+
"declaration": "export type SubagentCatalogEvent = { readonly childId: SessionId; readonly childCreatedAt: number; } & (({ readonly version: 0; } & KnownCatalogMode) | ({ readonly version: 1; } & (KnownCatalogMode | { readonly mode: 'unknown'; readonly label?: string; })));"
|
|
2213
|
+
},
|
|
2214
|
+
{
|
|
2215
|
+
"name": "SubagentDescriptorBase",
|
|
2216
|
+
"declaration": "export interface SubagentDescriptorBase {\n readonly version: number;\n readonly mode: 'one-shot' | 'continuable';\n readonly provider: string;\n}"
|
|
2217
|
+
},
|
|
2218
|
+
{
|
|
2219
|
+
"name": "SubagentDescriptorData",
|
|
2220
|
+
"declaration": "export type SubagentDescriptorData = OneShotSubagentDescriptorData | ContinuableSubagentDescriptorData;"
|
|
2221
|
+
},
|
|
2222
|
+
{
|
|
2223
|
+
"name": "SubagentSettledMessageSource",
|
|
2224
|
+
"declaration": "export interface SubagentSettledMessageSource {\n readonly kind: 'subagent-settled';\n readonly form: 'notice';\n readonly summary: string;\n readonly senderSessionId: SessionId;\n}"
|
|
2225
|
+
},
|
|
2226
|
+
{
|
|
2227
|
+
"name": "SurfaceEventType",
|
|
2228
|
+
"declaration": "export type SurfaceEventType = 'system/message' | 'developer/message' | 'user/message' | 'assistant/message' | 'tool/result';"
|
|
2229
|
+
},
|
|
2230
|
+
{
|
|
2231
|
+
"name": "SurfaceIntent",
|
|
2232
|
+
"declaration": "export type SurfaceIntent<T extends SurfaceEventType = SurfaceEventType> = { surfaceOp: SurfaceOp; } & (T extends 'assistant/message' ? { sourceEventSeqs?: never; } : { sourceEventSeqs?: SessionSeq[]; });"
|
|
2233
|
+
},
|
|
2234
|
+
{
|
|
2235
|
+
"name": "SurfaceOp",
|
|
2236
|
+
"declaration": "export type SurfaceOp = 'append' | { op: 'replace'; startSeq: SessionSeq; endSeq: SessionSeq; };"
|
|
2237
|
+
},
|
|
2238
|
+
{
|
|
2239
|
+
"name": "SystemMessage",
|
|
2240
|
+
"declaration": "export interface SystemMessage extends MessageBase {\n readonly role: 'system';\n readonly source: MessageSourceMap['system-prompt'];\n}"
|
|
2241
|
+
},
|
|
2242
|
+
{
|
|
2243
|
+
"name": "SystemPromptMessageSource",
|
|
2244
|
+
"declaration": "export interface SystemPromptMessageSource {\n kind: 'system-prompt';\n}"
|
|
2245
|
+
},
|
|
2246
|
+
{
|
|
2247
|
+
"name": "SystemPromptUpdate",
|
|
2248
|
+
"declaration": "export type SystemPromptUpdate = 'in-history';"
|
|
2249
|
+
},
|
|
2250
|
+
{
|
|
2251
|
+
"name": "TeamId",
|
|
2252
|
+
"declaration": "export type TeamId = Branded<'TeamId'>;"
|
|
2253
|
+
},
|
|
2254
|
+
{
|
|
2255
|
+
"name": "TeamMemberPhase",
|
|
2256
|
+
"declaration": "export type TeamMemberPhase = 'provisioning' | 'active' | 'failed';"
|
|
2257
|
+
},
|
|
2258
|
+
{
|
|
2259
|
+
"name": "TeamMemberSnapshot",
|
|
2260
|
+
"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}"
|
|
2261
|
+
},
|
|
2262
|
+
{
|
|
2263
|
+
"name": "TeamMessageId",
|
|
2264
|
+
"declaration": "export type TeamMessageId = Branded<'TeamMessageId'>;"
|
|
2265
|
+
},
|
|
2266
|
+
{
|
|
2267
|
+
"name": "TeamMessageSnapshot",
|
|
2268
|
+
"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}"
|
|
2269
|
+
},
|
|
2270
|
+
{
|
|
2271
|
+
"name": "TeamMessageSource",
|
|
2272
|
+
"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}"
|
|
2273
|
+
},
|
|
2274
|
+
{
|
|
2275
|
+
"name": "TeamTaskId",
|
|
2276
|
+
"declaration": "export type TeamTaskId = Branded<'TeamTaskId'>;"
|
|
2277
|
+
},
|
|
2278
|
+
{
|
|
2279
|
+
"name": "TeamTaskSnapshot",
|
|
2280
|
+
"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}"
|
|
2281
|
+
},
|
|
2282
|
+
{
|
|
2283
|
+
"name": "TeamTaskStatus",
|
|
2284
|
+
"declaration": "export type TeamTaskStatus = 'pending' | 'in_progress' | 'completed' | 'deleted';"
|
|
2285
|
+
},
|
|
2286
|
+
{
|
|
2287
|
+
"name": "TextBlock",
|
|
2288
|
+
"declaration": "export interface TextBlock {\n type: 'text';\n text: string;\n}"
|
|
2289
|
+
},
|
|
2290
|
+
{
|
|
2291
|
+
"name": "TodoItem",
|
|
2292
|
+
"declaration": "export interface TodoItem {\n content: string;\n status: 'pending' | 'in_progress' | 'completed';\n}"
|
|
2293
|
+
},
|
|
2294
|
+
{
|
|
2295
|
+
"name": "TokenUsage",
|
|
2296
|
+
"declaration": "export interface TokenUsage {\n inputTokens: number;\n outputTokens: number;\n totalTokens?: number;\n cacheReadTokens?: number;\n cacheWriteTokens?: number;\n reasoningTokens?: number;\n}"
|
|
2297
|
+
},
|
|
2298
|
+
{
|
|
2299
|
+
"name": "ToolAdditionBlock",
|
|
2300
|
+
"declaration": "export interface ToolAdditionBlock {\n type: 'tool-addition';\n toolName: string;\n tool?: never;\n}"
|
|
2301
|
+
},
|
|
2302
|
+
{
|
|
2303
|
+
"name": "ToolCallBlock",
|
|
2304
|
+
"declaration": "export interface ToolCallBlock {\n type: 'tool-call';\n id: ToolCallId;\n name: string;\n arguments: string;\n}"
|
|
2305
|
+
},
|
|
2306
|
+
{
|
|
2307
|
+
"name": "ToolCallId",
|
|
2308
|
+
"declaration": "export type ToolCallId = Branded<'ToolCallId'>;"
|
|
2309
|
+
},
|
|
2310
|
+
{
|
|
2311
|
+
"name": "ToolHistory",
|
|
2312
|
+
"declaration": "export interface ToolHistory {\n readonly tools: readonly ToolSchema[];\n readonly updates: readonly { readonly messageId: MessageId; readonly additions: readonly ToolSchema[]; }[];\n}"
|
|
2313
|
+
},
|
|
2314
|
+
{
|
|
2315
|
+
"name": "ToolMessageSource",
|
|
2316
|
+
"declaration": "export interface ToolMessageSource {\n kind: 'tool';\n callId: ToolCallId;\n}"
|
|
2317
|
+
},
|
|
2318
|
+
{
|
|
2319
|
+
"name": "ToolRemovalBlock",
|
|
2320
|
+
"declaration": "export interface ToolRemovalBlock {\n type: 'tool-removal';\n toolName: string;\n}"
|
|
2321
|
+
},
|
|
2322
|
+
{
|
|
2323
|
+
"name": "ToolRestriction",
|
|
2324
|
+
"declaration": "export interface ToolRestriction {\n readonly allow?: readonly string[];\n readonly deny?: readonly string[];\n}"
|
|
2325
|
+
},
|
|
2326
|
+
{
|
|
2327
|
+
"name": "ToolResultMessage",
|
|
2328
|
+
"declaration": "export interface ToolResultMessage extends MessageBase {\n readonly role: 'tool';\n readonly source: ToolMessageSource;\n readonly toolCallId: ToolCallId;\n readonly isError?: boolean;\n}"
|
|
2329
|
+
},
|
|
2330
|
+
{
|
|
2331
|
+
"name": "ToolSchema",
|
|
2332
|
+
"declaration": "export interface ToolSchema {\n deferLoading?: true;\n name: string;\n description: string;\n parameters: Record<string, unknown>;\n}"
|
|
2333
|
+
},
|
|
2334
|
+
{
|
|
2335
|
+
"name": "TurnEndCancelCause",
|
|
2336
|
+
"declaration": "export type TurnEndCancelCause = AgentCancelCause | { readonly kind: 'legacy'; };"
|
|
2337
|
+
},
|
|
2338
|
+
{
|
|
2339
|
+
"name": "TurnEndReason",
|
|
2340
|
+
"declaration": "export type TurnEndReason = TurnEndReasonMap[keyof TurnEndReasonMap];"
|
|
2341
|
+
},
|
|
2342
|
+
{
|
|
2343
|
+
"name": "TurnEndReasonMap",
|
|
2344
|
+
"declaration": "export interface TurnEndReasonMap {\n completed: { kind: 'completed'; };\n aborted: { kind: 'aborted'; reason: TurnEndCancelCause; };\n blocked: { kind: 'blocked'; };\n error: { kind: 'error'; error: LlmFailure; };\n 'max-tokens': { kind: 'max-tokens'; };\n interrupted: { kind: 'interrupted'; };\n forked: { kind: 'forked'; };\n}"
|
|
2345
|
+
},
|
|
2346
|
+
{
|
|
2347
|
+
"name": "UserMessage",
|
|
2348
|
+
"declaration": "export interface UserMessage extends MessageBase {\n readonly role: 'user';\n}"
|
|
2349
|
+
}
|
|
2350
|
+
]
|
|
2351
|
+
}
|
|
2352
|
+
],
|
|
2353
|
+
"events": [
|
|
2354
|
+
{
|
|
2355
|
+
"description": "One exact Plugin/Package activation is now live in the Host.",
|
|
2356
|
+
"summary": "One exact Plugin/Package activation is now live in the Host.",
|
|
2357
|
+
"tags": [
|
|
2358
|
+
{
|
|
2359
|
+
"name": "param",
|
|
2360
|
+
"argument": "pkg",
|
|
2361
|
+
"comment": "- stable plugin, immutable package, run identity, and label.",
|
|
2362
|
+
"text": "@param pkg - stable plugin, immutable package, run identity, and label.\n *"
|
|
2363
|
+
},
|
|
2364
|
+
{
|
|
2365
|
+
"name": "mode",
|
|
2366
|
+
"comment": "emit",
|
|
2367
|
+
"text": "@mode emit"
|
|
2368
|
+
}
|
|
2369
|
+
],
|
|
2370
|
+
"jsDoc": "/**\n * One exact Plugin/Package activation is now live in the Host.\n * @param pkg - stable plugin, immutable package, run identity, and label.\n * @mode emit\n */",
|
|
2371
|
+
"name": "cordis/dynamic-package",
|
|
2372
|
+
"mode": "emit",
|
|
2373
|
+
"signature": "'cordis/dynamic-package'(pkg: DynamicCordisPackage): void"
|
|
2374
|
+
},
|
|
2375
|
+
{
|
|
2376
|
+
"description": "One exact activation was withdrawn.",
|
|
2377
|
+
"summary": "One exact activation was withdrawn.",
|
|
2378
|
+
"tags": [
|
|
2379
|
+
{
|
|
2380
|
+
"name": "param",
|
|
2381
|
+
"argument": "retracted",
|
|
2382
|
+
"comment": "- plugin, package, and run identity.",
|
|
2383
|
+
"text": "@param retracted - plugin, package, and run identity.\n *"
|
|
2384
|
+
},
|
|
2385
|
+
{
|
|
2386
|
+
"name": "mode",
|
|
2387
|
+
"comment": "emit",
|
|
2388
|
+
"text": "@mode emit"
|
|
2389
|
+
}
|
|
2390
|
+
],
|
|
2391
|
+
"jsDoc": "/**\n * One exact activation was withdrawn.\n * @param retracted - plugin, package, and run identity.\n * @mode emit\n */",
|
|
2392
|
+
"name": "cordis/dynamic-retract",
|
|
2393
|
+
"mode": "emit",
|
|
2394
|
+
"signature": "'cordis/dynamic-retract'(retracted: DynamicCordisRetracted): void"
|
|
2395
|
+
},
|
|
2396
|
+
{
|
|
2397
|
+
"description": "Request a live read-only query from the Client inspect registry.",
|
|
2398
|
+
"summary": "Request a live read-only query from the Client inspect registry.",
|
|
2399
|
+
"tags": [
|
|
2400
|
+
{
|
|
2401
|
+
"name": "param",
|
|
2402
|
+
"argument": "request",
|
|
2403
|
+
"comment": "- correlation, Session, provider, method, and JSON input.",
|
|
2404
|
+
"text": "@param request - correlation, Session, provider, method, and JSON input.\n *"
|
|
2405
|
+
},
|
|
2406
|
+
{
|
|
2407
|
+
"name": "mode",
|
|
2408
|
+
"comment": "emit",
|
|
2409
|
+
"text": "@mode emit"
|
|
2410
|
+
}
|
|
2411
|
+
],
|
|
2412
|
+
"jsDoc": "/**\n * Request a live read-only query from the Client inspect registry.\n * @param request - correlation, Session, provider, method, and JSON input.\n * @mode emit\n */",
|
|
2413
|
+
"name": "cordis/inspect-query",
|
|
2414
|
+
"mode": "emit",
|
|
2415
|
+
"signature": "'cordis/inspect-query'(request: CordisInspectQueryRequest): void"
|
|
2416
|
+
},
|
|
2417
|
+
{
|
|
2418
|
+
"description": "Notify every Client that an inspect query has settled or been cancelled.",
|
|
2419
|
+
"summary": "Notify every Client that an inspect query has settled or been cancelled.",
|
|
2420
|
+
"tags": [
|
|
2421
|
+
{
|
|
2422
|
+
"name": "param",
|
|
2423
|
+
"argument": "resolved",
|
|
2424
|
+
"comment": "- exact query identity that is no longer answerable.",
|
|
2425
|
+
"text": "@param resolved - exact query identity that is no longer answerable.\n *"
|
|
2426
|
+
},
|
|
2427
|
+
{
|
|
2428
|
+
"name": "mode",
|
|
2429
|
+
"comment": "emit",
|
|
2430
|
+
"text": "@mode emit"
|
|
2431
|
+
}
|
|
2432
|
+
],
|
|
2433
|
+
"jsDoc": "/**\n * Notify every Client that an inspect query has settled or been cancelled.\n * @param resolved - exact query identity that is no longer answerable.\n * @mode emit\n */",
|
|
2434
|
+
"name": "cordis/inspect-query-resolved",
|
|
2435
|
+
"mode": "emit",
|
|
2436
|
+
"signature": "'cordis/inspect-query-resolved'(resolved: CordisInspectQueryResolved): void"
|
|
2437
|
+
},
|
|
2438
|
+
{
|
|
2439
|
+
"description": "A Client-bearing activation needs a browser page, and may require a user decision.",
|
|
2440
|
+
"summary": "A Client-bearing activation needs a browser page, and may require a user decision.",
|
|
2441
|
+
"tags": [
|
|
2442
|
+
{
|
|
2443
|
+
"name": "param",
|
|
2444
|
+
"argument": "request",
|
|
2445
|
+
"comment": "- correlation identity, owner, target version, mode, and approval requirement.",
|
|
2446
|
+
"text": "@param request - correlation identity, owner, target version, mode, and approval requirement.\n *"
|
|
2447
|
+
},
|
|
2448
|
+
{
|
|
2449
|
+
"name": "mode",
|
|
2450
|
+
"comment": "emit",
|
|
2451
|
+
"text": "@mode emit"
|
|
2452
|
+
}
|
|
2453
|
+
],
|
|
2454
|
+
"jsDoc": "/**\n * A Client-bearing activation needs a browser page, and may require a user decision.\n * @param request - correlation identity, owner, target version, mode, and approval requirement.\n * @mode emit\n */",
|
|
2455
|
+
"name": "cordis/request-run",
|
|
2456
|
+
"mode": "emit",
|
|
2457
|
+
"signature": "'cordis/request-run'(request: DynamicCordisRunRequest): void"
|
|
2458
|
+
},
|
|
2459
|
+
{
|
|
2460
|
+
"description": "A pending Client activation request left the answerable state.",
|
|
2461
|
+
"summary": "A pending Client activation request left the answerable state.",
|
|
2462
|
+
"tags": [
|
|
2463
|
+
{
|
|
2464
|
+
"name": "param",
|
|
2465
|
+
"argument": "resolved",
|
|
2466
|
+
"comment": "- request identity and outcome.",
|
|
2467
|
+
"text": "@param resolved - request identity and outcome.\n *"
|
|
2468
|
+
},
|
|
2469
|
+
{
|
|
2470
|
+
"name": "mode",
|
|
2471
|
+
"comment": "emit",
|
|
2472
|
+
"text": "@mode emit"
|
|
2473
|
+
}
|
|
2474
|
+
],
|
|
2475
|
+
"jsDoc": "/**\n * A pending Client activation request left the answerable state.\n * @param resolved - request identity and outcome.\n * @mode emit\n */",
|
|
2476
|
+
"name": "cordis/request-run-resolved",
|
|
2477
|
+
"mode": "emit",
|
|
2478
|
+
"signature": "'cordis/request-run-resolved'(resolved: DynamicCordisRequestResolved): void"
|
|
2479
|
+
}
|
|
2480
|
+
],
|
|
2481
|
+
"objects": []
|
|
2482
|
+
},
|
|
2483
|
+
}
|