@qilin-agent/experimental-agent-team 3.1.4 → 3.1.6
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/README.i18n.yaml +44 -44
- package/README.md +32 -28
- package/README.zh.md +33 -29
- package/lib/index.js +3 -7
- package/lib/typert.host.js +145 -26
- package/lib/typert.remote-client.d.ts +6 -2
- package/lib/typert.remote-client.js +77 -23
- package/lib/types/index.d.ts +1 -3
- package/lib/types/index.js +2 -6
- package/lib/types/journal.d.ts +1 -1
- package/lib/types/session-message.d.ts +1 -1
- package/lib/types/session-message.js +1 -1
- package/lib/types/types.d.ts +5 -5
- package/package.json +26 -26
package/lib/typert.host.js
CHANGED
|
@@ -1,66 +1,85 @@
|
|
|
1
1
|
/* Generated by @qilin-agent/typert-generator from FaceModel — do not edit. */
|
|
2
2
|
import { z } from 'zod'
|
|
3
3
|
|
|
4
|
+
import { createTypertRemoteInfo } from '@qilin-agent/typert-protocol/remote-info'
|
|
5
|
+
|
|
4
6
|
let _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0$schema$value
|
|
5
|
-
const _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0$schema$value ??= z.
|
|
7
|
+
const _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0$schema$value ??= z.string())
|
|
6
8
|
let _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_1$schema$value
|
|
7
9
|
const _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_1$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_1$schema$value ??= z.object({
|
|
8
10
|
'subject': z.string().readonly(),
|
|
9
11
|
'description': z.string().readonly(),
|
|
10
|
-
'blockedBy': z.array(z.
|
|
12
|
+
'blockedBy': z.array(z.string()).readonly().optional(),
|
|
11
13
|
'writeScopes': z.array(z.string()).readonly().optional(),
|
|
12
14
|
}))
|
|
13
15
|
let _qilin_agent_experimental_agent_team_agentTeams_createTask_result$schema$value
|
|
14
16
|
const _qilin_agent_experimental_agent_team_agentTeams_createTask_result$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_createTask_result$schema$value ??= z.object({
|
|
15
|
-
'id': z.
|
|
17
|
+
'id': z.string().readonly(),
|
|
16
18
|
'revision': z.number().readonly(),
|
|
17
19
|
'subject': z.string().readonly(),
|
|
18
20
|
'description': z.string().readonly(),
|
|
19
21
|
'status': z.union([z.literal("completed"), z.literal("pending"), z.literal("in_progress"), z.literal("deleted")]).readonly(),
|
|
20
|
-
'blockedBy': z.array(z.
|
|
22
|
+
'blockedBy': z.array(z.string()).readonly(),
|
|
21
23
|
'writeScopes': z.array(z.string()).readonly(),
|
|
22
24
|
'ownerName': z.string().readonly().optional(),
|
|
23
25
|
'ready': z.boolean().readonly(),
|
|
24
26
|
'writeScopeWarnings': z.array(z.string()).readonly(),
|
|
25
27
|
}))
|
|
26
28
|
let _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0$schema$value
|
|
27
|
-
const _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0$schema$value ??= z.
|
|
29
|
+
const _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0$schema$value ??= z.string())
|
|
28
30
|
let _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_1$schema$value
|
|
29
31
|
const _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_1$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_1$schema$value ??= z.object({
|
|
30
|
-
'taskId': z.
|
|
32
|
+
'taskId': z.string().readonly(),
|
|
31
33
|
'expectedRevision': z.number().readonly(),
|
|
32
34
|
'action': z.union([z.literal("complete"), z.literal("edit"), z.literal("claim"), z.literal("release"), z.literal("set_dependencies"), z.literal("reopen"), z.literal("reassign"), z.literal("delete")]).readonly(),
|
|
33
35
|
'subject': z.string().readonly().optional(),
|
|
34
36
|
'description': z.string().readonly().optional(),
|
|
35
|
-
'blockedBy': z.array(z.
|
|
37
|
+
'blockedBy': z.array(z.string()).readonly().optional(),
|
|
36
38
|
'writeScopes': z.array(z.string()).readonly().optional(),
|
|
37
39
|
'owner': z.string().readonly().optional(),
|
|
38
40
|
}))
|
|
39
41
|
let _qilin_agent_experimental_agent_team_agentTeams_updateTask_result$schema$value
|
|
40
42
|
const _qilin_agent_experimental_agent_team_agentTeams_updateTask_result$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_updateTask_result$schema$value ??= z.object({
|
|
41
|
-
'id': z.
|
|
43
|
+
'id': z.string().readonly(),
|
|
42
44
|
'revision': z.number().readonly(),
|
|
43
45
|
'subject': z.string().readonly(),
|
|
44
46
|
'description': z.string().readonly(),
|
|
45
47
|
'status': z.union([z.literal("completed"), z.literal("pending"), z.literal("in_progress"), z.literal("deleted")]).readonly(),
|
|
46
|
-
'blockedBy': z.array(z.
|
|
48
|
+
'blockedBy': z.array(z.string()).readonly(),
|
|
47
49
|
'writeScopes': z.array(z.string()).readonly(),
|
|
48
50
|
'ownerName': z.string().readonly().optional(),
|
|
49
51
|
'ready': z.boolean().readonly(),
|
|
50
52
|
'writeScopeWarnings': z.array(z.string()).readonly(),
|
|
51
53
|
}))
|
|
54
|
+
let _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0_strict$schema$value
|
|
55
|
+
const _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0_strict$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0_strict$schema$value ??= z.string())
|
|
56
|
+
let _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_1_strict$schema$value
|
|
57
|
+
const _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_1_strict$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_1_strict$schema$value ??= z.strictObject({
|
|
58
|
+
'subject': z.string().readonly(),
|
|
59
|
+
'description': z.string().readonly(),
|
|
60
|
+
'blockedBy': z.array(z.string()).readonly().optional(),
|
|
61
|
+
'writeScopes': z.array(z.string()).readonly().optional(),
|
|
62
|
+
}))
|
|
63
|
+
let _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0_strict$schema$value
|
|
64
|
+
const _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0_strict$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0_strict$schema$value ??= z.string())
|
|
65
|
+
let _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_1_strict$schema$value
|
|
66
|
+
const _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_1_strict$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_1_strict$schema$value ??= z.strictObject({
|
|
67
|
+
'taskId': z.string().readonly(),
|
|
68
|
+
'expectedRevision': z.number().readonly(),
|
|
69
|
+
'action': z.union([z.literal("complete"), z.literal("edit"), z.literal("claim"), z.literal("release"), z.literal("set_dependencies"), z.literal("reopen"), z.literal("reassign"), z.literal("delete")]).readonly(),
|
|
70
|
+
'subject': z.string().readonly().optional(),
|
|
71
|
+
'description': z.string().readonly().optional(),
|
|
72
|
+
'blockedBy': z.array(z.string()).readonly().optional(),
|
|
73
|
+
'writeScopes': z.array(z.string()).readonly().optional(),
|
|
74
|
+
'owner': z.string().readonly().optional(),
|
|
75
|
+
}))
|
|
52
76
|
|
|
53
|
-
|
|
77
|
+
const $remote = createTypertRemoteInfo({
|
|
54
78
|
package: '@qilin-agent/experimental-agent-team',
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
],
|
|
58
|
-
invocations: [
|
|
59
|
-
{
|
|
60
|
-
id: '@qilin-agent/experimental-agent-team#agentTeams/createTask',
|
|
79
|
+
methods: {
|
|
80
|
+
'agentTeams/createTask': {
|
|
61
81
|
service: 'agentTeams',
|
|
62
|
-
|
|
63
|
-
method: 'createTask',
|
|
82
|
+
description: 'Wire face of {@link TeamService.createTask}: create one shared task on a person\'s behalf through the browser write bridge.',
|
|
64
83
|
implementation: 'remoteCreateTask',
|
|
65
84
|
invocation: { kind: 'direct' },
|
|
66
85
|
scope: {
|
|
@@ -71,22 +90,37 @@ export const TYPERT = {
|
|
|
71
90
|
{
|
|
72
91
|
name: 'agent',
|
|
73
92
|
wire: 'agentId',
|
|
93
|
+
description: 'exact live Team member resolved from the wire identity.',
|
|
74
94
|
source: 'lookup',
|
|
75
95
|
lookup: 'agent',
|
|
76
96
|
codec: {
|
|
77
97
|
mode: 'strict',
|
|
78
98
|
typeSymbol: '@qilin-agent/session/types#SessionId',
|
|
79
99
|
create: _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0$schema,
|
|
100
|
+
jsonSchema: {"type":"string"},
|
|
101
|
+
},
|
|
102
|
+
strictCodec: {
|
|
103
|
+
mode: 'strict',
|
|
104
|
+
typeSymbol: '@qilin-agent/session/types#SessionId',
|
|
105
|
+
create: _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0_strict$schema,
|
|
106
|
+
jsonSchema: {"type":"string"},
|
|
80
107
|
},
|
|
81
108
|
},
|
|
82
109
|
{
|
|
83
110
|
name: 'request',
|
|
84
|
-
|
|
111
|
+
description: 'subject, description, optional blockers, and optional write scopes.',
|
|
85
112
|
source: 'json',
|
|
86
113
|
codec: {
|
|
87
114
|
mode: 'strict',
|
|
88
115
|
typeSymbol: '@qilin-agent/experimental-agent-team/types#CreateTeamTaskRequest',
|
|
89
116
|
create: _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_1$schema,
|
|
117
|
+
jsonSchema: {"type":"object","properties":{"subject":{"type":"string"},"description":{"type":"string"},"blockedBy":{"type":"array","items":{"type":"string"}},"writeScopes":{"type":"array","items":{"type":"string"}}},"required":["subject","description"],"additionalProperties":true},
|
|
118
|
+
},
|
|
119
|
+
strictCodec: {
|
|
120
|
+
mode: 'strict',
|
|
121
|
+
typeSymbol: '@qilin-agent/experimental-agent-team/types#CreateTeamTaskRequest',
|
|
122
|
+
create: _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_1_strict$schema,
|
|
123
|
+
jsonSchema: {"type":"object","properties":{"subject":{"type":"string"},"description":{"type":"string"},"blockedBy":{"type":"array","items":{"type":"string"}},"writeScopes":{"type":"array","items":{"type":"string"}}},"required":["subject","description"],"additionalProperties":false},
|
|
90
124
|
},
|
|
91
125
|
},
|
|
92
126
|
],
|
|
@@ -94,14 +128,14 @@ export const TYPERT = {
|
|
|
94
128
|
mode: 'strict',
|
|
95
129
|
typeSymbol: '@qilin-agent/experimental-agent-team/client#TeamTaskView',
|
|
96
130
|
create: _qilin_agent_experimental_agent_team_agentTeams_createTask_result$schema,
|
|
131
|
+
description: 'the revision-one task view.',
|
|
132
|
+
jsonSchema: {"type":"object","properties":{"id":{"type":"string"},"revision":{"type":"number"},"subject":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","enum":["completed","pending","in_progress","deleted"]},"blockedBy":{"type":"array","items":{"type":"string"}},"writeScopes":{"type":"array","items":{"type":"string"}},"ownerName":{"type":"string"},"ready":{"type":"boolean"},"writeScopeWarnings":{"type":"array","items":{"type":"string"}}},"required":["id","revision","subject","description","status","blockedBy","writeScopes","ready","writeScopeWarnings"],"additionalProperties":true},
|
|
97
133
|
},
|
|
98
134
|
sourceLocation: {"file":"packages/experimental/agent-team/src/index.ts","line":244,"column":9},
|
|
99
135
|
},
|
|
100
|
-
{
|
|
101
|
-
id: '@qilin-agent/experimental-agent-team#agentTeams/updateTask',
|
|
136
|
+
'agentTeams/updateTask': {
|
|
102
137
|
service: 'agentTeams',
|
|
103
|
-
|
|
104
|
-
method: 'updateTask',
|
|
138
|
+
description: 'Wire face of {@link TeamService.updateTask}: commit one compare-and-set task transition on a person\'s behalf. A committed mutation is durable and never undone by a later wire cancellation.',
|
|
105
139
|
implementation: 'remoteUpdateTask',
|
|
106
140
|
invocation: { kind: 'direct' },
|
|
107
141
|
scope: {
|
|
@@ -112,22 +146,37 @@ export const TYPERT = {
|
|
|
112
146
|
{
|
|
113
147
|
name: 'agent',
|
|
114
148
|
wire: 'agentId',
|
|
149
|
+
description: 'exact live Team member resolved from the wire identity.',
|
|
115
150
|
source: 'lookup',
|
|
116
151
|
lookup: 'agent',
|
|
117
152
|
codec: {
|
|
118
153
|
mode: 'strict',
|
|
119
154
|
typeSymbol: '@qilin-agent/session/types#SessionId',
|
|
120
155
|
create: _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0$schema,
|
|
156
|
+
jsonSchema: {"type":"string"},
|
|
157
|
+
},
|
|
158
|
+
strictCodec: {
|
|
159
|
+
mode: 'strict',
|
|
160
|
+
typeSymbol: '@qilin-agent/session/types#SessionId',
|
|
161
|
+
create: _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0_strict$schema,
|
|
162
|
+
jsonSchema: {"type":"string"},
|
|
121
163
|
},
|
|
122
164
|
},
|
|
123
165
|
{
|
|
124
166
|
name: 'request',
|
|
125
|
-
|
|
167
|
+
description: 'task identity, expected revision, action, and action fields.',
|
|
126
168
|
source: 'json',
|
|
127
169
|
codec: {
|
|
128
170
|
mode: 'strict',
|
|
129
171
|
typeSymbol: '@qilin-agent/experimental-agent-team/types#UpdateTeamTaskRequest',
|
|
130
172
|
create: _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_1$schema,
|
|
173
|
+
jsonSchema: {"type":"object","properties":{"taskId":{"type":"string"},"expectedRevision":{"type":"number"},"action":{"type":"string","enum":["complete","edit","claim","release","set_dependencies","reopen","reassign","delete"]},"subject":{"type":"string"},"description":{"type":"string"},"blockedBy":{"type":"array","items":{"type":"string"}},"writeScopes":{"type":"array","items":{"type":"string"}},"owner":{"type":"string"}},"required":["taskId","expectedRevision","action"],"additionalProperties":true},
|
|
174
|
+
},
|
|
175
|
+
strictCodec: {
|
|
176
|
+
mode: 'strict',
|
|
177
|
+
typeSymbol: '@qilin-agent/experimental-agent-team/types#UpdateTeamTaskRequest',
|
|
178
|
+
create: _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_1_strict$schema,
|
|
179
|
+
jsonSchema: {"type":"object","properties":{"taskId":{"type":"string"},"expectedRevision":{"type":"number"},"action":{"type":"string","enum":["complete","edit","claim","release","set_dependencies","reopen","reassign","delete"]},"subject":{"type":"string"},"description":{"type":"string"},"blockedBy":{"type":"array","items":{"type":"string"}},"writeScopes":{"type":"array","items":{"type":"string"}},"owner":{"type":"string"}},"required":["taskId","expectedRevision","action"],"additionalProperties":false},
|
|
131
180
|
},
|
|
132
181
|
},
|
|
133
182
|
],
|
|
@@ -135,10 +184,20 @@ export const TYPERT = {
|
|
|
135
184
|
mode: 'strict',
|
|
136
185
|
typeSymbol: '@qilin-agent/experimental-agent-team/client#TeamTaskView',
|
|
137
186
|
create: _qilin_agent_experimental_agent_team_agentTeams_updateTask_result$schema,
|
|
187
|
+
description: 'the committed next task view.',
|
|
188
|
+
jsonSchema: {"type":"object","properties":{"id":{"type":"string"},"revision":{"type":"number"},"subject":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","enum":["completed","pending","in_progress","deleted"]},"blockedBy":{"type":"array","items":{"type":"string"}},"writeScopes":{"type":"array","items":{"type":"string"}},"ownerName":{"type":"string"},"ready":{"type":"boolean"},"writeScopeWarnings":{"type":"array","items":{"type":"string"}}},"required":["id","revision","subject","description","status","blockedBy","writeScopes","ready","writeScopeWarnings"],"additionalProperties":true},
|
|
138
189
|
},
|
|
139
190
|
sourceLocation: {"file":"packages/experimental/agent-team/src/index.ts","line":264,"column":9},
|
|
140
191
|
},
|
|
192
|
+
},
|
|
193
|
+
}, z)
|
|
194
|
+
|
|
195
|
+
export const TYPERT = {
|
|
196
|
+
package: '@qilin-agent/experimental-agent-team',
|
|
197
|
+
face: 'host',
|
|
198
|
+
schemas: [
|
|
141
199
|
],
|
|
200
|
+
get invocations() { return $remote.descriptors },
|
|
142
201
|
model: {
|
|
143
202
|
"services": [
|
|
144
203
|
{
|
|
@@ -266,6 +325,10 @@ export const TYPERT = {
|
|
|
266
325
|
"name": "AgentStatus",
|
|
267
326
|
"declaration": "export type AgentStatus = 'idle' | 'running';"
|
|
268
327
|
},
|
|
328
|
+
{
|
|
329
|
+
"name": "AllowedModelRoute",
|
|
330
|
+
"declaration": "export interface AllowedModelRoute {\n readonly provider: string;\n readonly model: string;\n}"
|
|
331
|
+
},
|
|
269
332
|
{
|
|
270
333
|
"name": "ApprovalOutcome",
|
|
271
334
|
"declaration": "export type ApprovalOutcome = 'allowed-once' | 'rejected' | 'cancelled' | 'unavailable';"
|
|
@@ -462,6 +525,30 @@ export const TYPERT = {
|
|
|
462
525
|
"name": "InboxTarget",
|
|
463
526
|
"declaration": "export type InboxTarget = 'next-turn' | 'next-step';"
|
|
464
527
|
},
|
|
528
|
+
{
|
|
529
|
+
"name": "JobId",
|
|
530
|
+
"declaration": "export type JobId = Branded<'JobId'>;"
|
|
531
|
+
},
|
|
532
|
+
{
|
|
533
|
+
"name": "JobOutcome",
|
|
534
|
+
"declaration": "export interface JobOutcome {\n status: 'completed' | 'killed' | 'failed';\n detail?: string;\n result?: string;\n}"
|
|
535
|
+
},
|
|
536
|
+
{
|
|
537
|
+
"name": "JobRegisteredData",
|
|
538
|
+
"declaration": "export interface JobRegisteredData {\n readonly jobId: JobId;\n readonly owner: SessionId;\n readonly kind: string;\n readonly label: string;\n readonly startedAt: number;\n readonly toolCall?: JobToolCall;\n}"
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"name": "JobSettleCause",
|
|
542
|
+
"declaration": "export type JobSettleCause = 'producer' | 'kill' | 'teardown';"
|
|
543
|
+
},
|
|
544
|
+
{
|
|
545
|
+
"name": "JobSettledData",
|
|
546
|
+
"declaration": "export interface JobSettledData extends JobRegisteredData {\n readonly finishedAt: number;\n readonly status: JobOutcome['status'];\n readonly cause: JobSettleCause;\n readonly producerReported: boolean;\n readonly detail?: string;\n}"
|
|
547
|
+
},
|
|
548
|
+
{
|
|
549
|
+
"name": "JobToolCall",
|
|
550
|
+
"declaration": "export interface JobToolCall {\n readonly callId: SessionEventMap['tool/call']['callId'];\n readonly rootCallId: SessionEventMap['tool/call']['callId'];\n}"
|
|
551
|
+
},
|
|
465
552
|
{
|
|
466
553
|
"name": "JsonValue",
|
|
467
554
|
"declaration": "export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue; };"
|
|
@@ -498,6 +585,14 @@ export const TYPERT = {
|
|
|
498
585
|
"name": "LlmFailure",
|
|
499
586
|
"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}"
|
|
500
587
|
},
|
|
588
|
+
{
|
|
589
|
+
"name": "LlmRetryEventData",
|
|
590
|
+
"declaration": "export type LlmRetryEventData = { retryId: RetryId; turn: number; step: number; provider: string; mode: 'normal'; policyKey: string; retry: number; maxRetries: number; delayMs: number; failure: LlmFailure; } | { retryId: RetryId; turn: number; step: number; provider: string; mode: 'always'; policyKey: string; retry: number; delayMs: number; failure: LlmFailure; };"
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"name": "LlmRetryStartedEventData",
|
|
594
|
+
"declaration": "export interface LlmRetryStartedEventData {\n retryId: RetryId;\n turn: number;\n step: number;\n retry: number;\n}"
|
|
595
|
+
},
|
|
501
596
|
{
|
|
502
597
|
"name": "Message",
|
|
503
598
|
"declaration": "export type Message = MessageRoleMap[keyof MessageRoleMap];"
|
|
@@ -540,7 +635,7 @@ export const TYPERT = {
|
|
|
540
635
|
},
|
|
541
636
|
{
|
|
542
637
|
"name": "MessageSourceMap",
|
|
543
|
-
"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 'working-directory': { kind: 'working-directory'; };\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 '
|
|
638
|
+
"declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'runtime-context': { kind: 'runtime-context'; } & ContextFormed;\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'working-directory': { kind: 'working-directory'; };\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'tool-registry': { kind: 'tool-registry'; };\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; principal?: Principal; };\n 'sidechat-boundary': { kind: 'sidechat-boundary'; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'compact-checkpoint': CompactionCheckpointSource;\n 'team-message': TeamMessageSource;\n 'user-question-reply': { kind: 'user-question-reply'; callId: ToolCallId; outcome: 'answered'; };\n webhook: { readonly kind: 'webhook'; readonly provider: string; readonly source: WebhookSourceId; readonly deliveryId: WebhookDeliveryId; readonly ruleId: WebhookRuleId; readonly form: 'notice'; readonly summary: string; };\n goal: GoalMessageSource;\n 'kylin-host-runner': { kind: 'kylin-host-runner'; };\n 'plan-mode': { kind: 'plan-mode'; } & ContextFormed;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'session-reference': SessionReferenceSource;\n}"
|
|
544
639
|
},
|
|
545
640
|
{
|
|
546
641
|
"name": "ModelMessageSource",
|
|
@@ -562,6 +657,14 @@ export const TYPERT = {
|
|
|
562
657
|
"name": "OptionalSessionSeq",
|
|
563
658
|
"declaration": "export type OptionalSessionSeq = SessionSeq | null;"
|
|
564
659
|
},
|
|
660
|
+
{
|
|
661
|
+
"name": "Principal",
|
|
662
|
+
"declaration": "export type Principal = PrincipalMap[keyof PrincipalMap];"
|
|
663
|
+
},
|
|
664
|
+
{
|
|
665
|
+
"name": "PrincipalMap",
|
|
666
|
+
"declaration": "export interface PrincipalMap {\n owner: { readonly kind: 'owner'; };\n}"
|
|
667
|
+
},
|
|
565
668
|
{
|
|
566
669
|
"name": "ProviderRequestId",
|
|
567
670
|
"declaration": "export type ProviderRequestId = Branded<'ProviderRequestId'>;"
|
|
@@ -594,6 +697,10 @@ export const TYPERT = {
|
|
|
594
697
|
"name": "RequestHeaderReason",
|
|
595
698
|
"declaration": "export type RequestHeaderReason = 'initial' | 'resume' | 'change' | 'series';"
|
|
596
699
|
},
|
|
700
|
+
{
|
|
701
|
+
"name": "RetryId",
|
|
702
|
+
"declaration": "export type RetryId = Branded<'RetryId'>;"
|
|
703
|
+
},
|
|
597
704
|
{
|
|
598
705
|
"name": "SandboxMode",
|
|
599
706
|
"declaration": "export type SandboxMode = 'read-only' | 'workspace-write' | 'danger-full-access';"
|
|
@@ -636,7 +743,7 @@ export const TYPERT = {
|
|
|
636
743
|
},
|
|
637
744
|
{
|
|
638
745
|
"name": "SessionEventMap",
|
|
639
|
-
"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 'working-directory/change': { cwd: string; };\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 'permission/preset': { preset: string; };\n 'subagent/descriptor': SubagentDescriptorData;\n 'subagent/catalog': SubagentCatalogEvent;\n 'feedback/record': FeedbackRecord;\n '
|
|
746
|
+
"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 'working-directory/change': { cwd: string; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'agent-preset/selected': { agentPreset: string; };\n 'job/registered': JobRegisteredData;\n 'job/settled': JobSettledData;\n 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: import('@qilin-agent/session/types').SessionSeq; };\n 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'model/selection': ModelSelection;\n 'permission/preset': { preset: string; };\n 'subagent/descriptor': SubagentDescriptorData;\n 'subagent/catalog': SubagentCatalogEvent;\n 'feedback/record': FeedbackRecord;\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 'llm/retry': LlmRetryEventData;\n 'llm/retry-started': LlmRetryStartedEventData;\n 'team/member': { version: 2; teamId: TeamId; member: TeamMemberSnapshot; };\n 'team/task': { version: 2; teamId: TeamId; task: TeamTaskSnapshot; };\n 'team/message/queued': { version: 2; teamId: TeamId; message: TeamMessageSnapshot; };\n 'team/message/delivered': { version: 2; teamId: TeamId; messageId: TeamMessageId; targetId: SessionId; };\n 'goal/change': GoalChangeMeta;\n 'feedback/message-put': MessageFeedbackPut;\n 'feedback/message-delete': MessageFeedbackDelete;\n 'plan/mode': { active: boolean; };\n 'schedule/change': ScheduleChange;\n 'subagent/model-selection-policy': { allowedModels: AllowedModelRoute[]; };\n 'workspace/changes': { turn: number; };\n}"
|
|
640
747
|
},
|
|
641
748
|
{
|
|
642
749
|
"name": "SessionEventType",
|
|
@@ -865,6 +972,18 @@ export const TYPERT = {
|
|
|
865
972
|
{
|
|
866
973
|
"name": "UserMessage",
|
|
867
974
|
"declaration": "export interface UserMessage extends MessageBase {\n readonly role: 'user';\n}"
|
|
975
|
+
},
|
|
976
|
+
{
|
|
977
|
+
"name": "WebhookDeliveryId",
|
|
978
|
+
"declaration": "export type WebhookDeliveryId = Branded<'WebhookDeliveryId'>;"
|
|
979
|
+
},
|
|
980
|
+
{
|
|
981
|
+
"name": "WebhookRuleId",
|
|
982
|
+
"declaration": "export type WebhookRuleId = Branded<'WebhookRuleId'>;"
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
"name": "WebhookSourceId",
|
|
986
|
+
"declaration": "export type WebhookSourceId = Branded<'WebhookSourceId'>;"
|
|
868
987
|
}
|
|
869
988
|
]
|
|
870
989
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/* Generated by @qilin-agent/typert-generator from the Host FaceModel — do not edit. */
|
|
2
2
|
import type {
|
|
3
3
|
RemoteResult,
|
|
4
|
-
|
|
4
|
+
TypertRemoteInfo,
|
|
5
|
+
TypertRemoteMethod,
|
|
5
6
|
} from '@qilin-agent/typert-protocol'
|
|
6
7
|
import type { TeamTaskView } from '@qilin-agent/experimental-agent-team/client'
|
|
7
8
|
import type { CreateTeamTaskRequest, UpdateTeamTaskRequest } from '@qilin-agent/experimental-agent-team/types'
|
|
@@ -25,6 +26,9 @@ declare module '@qilin-agent/typert-protocol' {
|
|
|
25
26
|
}
|
|
26
27
|
}
|
|
27
28
|
|
|
28
|
-
export declare const TYPERT_REMOTE:
|
|
29
|
+
export declare const TYPERT_REMOTE: TypertRemoteInfo<{
|
|
30
|
+
readonly 'agentTeams/createTask': TypertRemoteMethod<{ readonly 'agentId': SessionId; readonly 'request': CreateTeamTaskRequest }, TeamTaskView>
|
|
31
|
+
readonly 'agentTeams/updateTask': TypertRemoteMethod<{ readonly 'agentId': SessionId; readonly 'request': UpdateTeamTaskRequest }, TeamTaskView>
|
|
32
|
+
}>
|
|
29
33
|
export default TYPERT_REMOTE
|
|
30
34
|
//# sourceMappingURL=typert.remote-client.d.ts.map
|
|
@@ -1,63 +1,85 @@
|
|
|
1
1
|
/* Generated by @qilin-agent/typert-generator from the Host FaceModel — do not edit. */
|
|
2
2
|
import { z } from 'zod'
|
|
3
3
|
|
|
4
|
+
import { createTypertRemoteInfo } from '@qilin-agent/typert-protocol/remote-info'
|
|
5
|
+
|
|
4
6
|
let _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0$schema$value
|
|
5
|
-
const _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0$schema$value ??= z.
|
|
7
|
+
const _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0$schema$value ??= z.string())
|
|
6
8
|
let _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_1$schema$value
|
|
7
9
|
const _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_1$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_1$schema$value ??= z.object({
|
|
8
10
|
'subject': z.string().readonly(),
|
|
9
11
|
'description': z.string().readonly(),
|
|
10
|
-
'blockedBy': z.array(z.
|
|
12
|
+
'blockedBy': z.array(z.string()).readonly().optional(),
|
|
11
13
|
'writeScopes': z.array(z.string()).readonly().optional(),
|
|
12
14
|
}))
|
|
13
15
|
let _qilin_agent_experimental_agent_team_agentTeams_createTask_result$schema$value
|
|
14
16
|
const _qilin_agent_experimental_agent_team_agentTeams_createTask_result$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_createTask_result$schema$value ??= z.object({
|
|
15
|
-
'id': z.
|
|
17
|
+
'id': z.string().readonly(),
|
|
16
18
|
'revision': z.number().readonly(),
|
|
17
19
|
'subject': z.string().readonly(),
|
|
18
20
|
'description': z.string().readonly(),
|
|
19
21
|
'status': z.union([z.literal("completed"), z.literal("pending"), z.literal("in_progress"), z.literal("deleted")]).readonly(),
|
|
20
|
-
'blockedBy': z.array(z.
|
|
22
|
+
'blockedBy': z.array(z.string()).readonly(),
|
|
21
23
|
'writeScopes': z.array(z.string()).readonly(),
|
|
22
24
|
'ownerName': z.string().readonly().optional(),
|
|
23
25
|
'ready': z.boolean().readonly(),
|
|
24
26
|
'writeScopeWarnings': z.array(z.string()).readonly(),
|
|
25
27
|
}))
|
|
26
28
|
let _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0$schema$value
|
|
27
|
-
const _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0$schema$value ??= z.
|
|
29
|
+
const _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0$schema$value ??= z.string())
|
|
28
30
|
let _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_1$schema$value
|
|
29
31
|
const _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_1$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_1$schema$value ??= z.object({
|
|
30
|
-
'taskId': z.
|
|
32
|
+
'taskId': z.string().readonly(),
|
|
31
33
|
'expectedRevision': z.number().readonly(),
|
|
32
34
|
'action': z.union([z.literal("complete"), z.literal("edit"), z.literal("claim"), z.literal("release"), z.literal("set_dependencies"), z.literal("reopen"), z.literal("reassign"), z.literal("delete")]).readonly(),
|
|
33
35
|
'subject': z.string().readonly().optional(),
|
|
34
36
|
'description': z.string().readonly().optional(),
|
|
35
|
-
'blockedBy': z.array(z.
|
|
37
|
+
'blockedBy': z.array(z.string()).readonly().optional(),
|
|
36
38
|
'writeScopes': z.array(z.string()).readonly().optional(),
|
|
37
39
|
'owner': z.string().readonly().optional(),
|
|
38
40
|
}))
|
|
39
41
|
let _qilin_agent_experimental_agent_team_agentTeams_updateTask_result$schema$value
|
|
40
42
|
const _qilin_agent_experimental_agent_team_agentTeams_updateTask_result$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_updateTask_result$schema$value ??= z.object({
|
|
41
|
-
'id': z.
|
|
43
|
+
'id': z.string().readonly(),
|
|
42
44
|
'revision': z.number().readonly(),
|
|
43
45
|
'subject': z.string().readonly(),
|
|
44
46
|
'description': z.string().readonly(),
|
|
45
47
|
'status': z.union([z.literal("completed"), z.literal("pending"), z.literal("in_progress"), z.literal("deleted")]).readonly(),
|
|
46
|
-
'blockedBy': z.array(z.
|
|
48
|
+
'blockedBy': z.array(z.string()).readonly(),
|
|
47
49
|
'writeScopes': z.array(z.string()).readonly(),
|
|
48
50
|
'ownerName': z.string().readonly().optional(),
|
|
49
51
|
'ready': z.boolean().readonly(),
|
|
50
52
|
'writeScopeWarnings': z.array(z.string()).readonly(),
|
|
51
53
|
}))
|
|
54
|
+
let _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0_strict$schema$value
|
|
55
|
+
const _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0_strict$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0_strict$schema$value ??= z.string())
|
|
56
|
+
let _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_1_strict$schema$value
|
|
57
|
+
const _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_1_strict$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_1_strict$schema$value ??= z.strictObject({
|
|
58
|
+
'subject': z.string().readonly(),
|
|
59
|
+
'description': z.string().readonly(),
|
|
60
|
+
'blockedBy': z.array(z.string()).readonly().optional(),
|
|
61
|
+
'writeScopes': z.array(z.string()).readonly().optional(),
|
|
62
|
+
}))
|
|
63
|
+
let _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0_strict$schema$value
|
|
64
|
+
const _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0_strict$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0_strict$schema$value ??= z.string())
|
|
65
|
+
let _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_1_strict$schema$value
|
|
66
|
+
const _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_1_strict$schema = () => (_qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_1_strict$schema$value ??= z.strictObject({
|
|
67
|
+
'taskId': z.string().readonly(),
|
|
68
|
+
'expectedRevision': z.number().readonly(),
|
|
69
|
+
'action': z.union([z.literal("complete"), z.literal("edit"), z.literal("claim"), z.literal("release"), z.literal("set_dependencies"), z.literal("reopen"), z.literal("reassign"), z.literal("delete")]).readonly(),
|
|
70
|
+
'subject': z.string().readonly().optional(),
|
|
71
|
+
'description': z.string().readonly().optional(),
|
|
72
|
+
'blockedBy': z.array(z.string()).readonly().optional(),
|
|
73
|
+
'writeScopes': z.array(z.string()).readonly().optional(),
|
|
74
|
+
'owner': z.string().readonly().optional(),
|
|
75
|
+
}))
|
|
52
76
|
|
|
53
|
-
export const TYPERT_REMOTE = {
|
|
77
|
+
export const TYPERT_REMOTE = createTypertRemoteInfo({
|
|
54
78
|
package: '@qilin-agent/experimental-agent-team',
|
|
55
|
-
|
|
56
|
-
{
|
|
57
|
-
id: '@qilin-agent/experimental-agent-team#agentTeams/createTask',
|
|
79
|
+
methods: {
|
|
80
|
+
'agentTeams/createTask': {
|
|
58
81
|
service: 'agentTeams',
|
|
59
|
-
|
|
60
|
-
method: 'createTask',
|
|
82
|
+
description: 'Wire face of {@link TeamService.createTask}: create one shared task on a person\'s behalf through the browser write bridge.',
|
|
61
83
|
implementation: 'remoteCreateTask',
|
|
62
84
|
invocation: { kind: 'direct' },
|
|
63
85
|
scope: {
|
|
@@ -68,22 +90,37 @@ export const TYPERT_REMOTE = {
|
|
|
68
90
|
{
|
|
69
91
|
name: 'agent',
|
|
70
92
|
wire: 'agentId',
|
|
93
|
+
description: 'exact live Team member resolved from the wire identity.',
|
|
71
94
|
source: 'lookup',
|
|
72
95
|
lookup: 'agent',
|
|
73
96
|
codec: {
|
|
74
97
|
mode: 'strict',
|
|
75
98
|
typeSymbol: '@qilin-agent/session/types#SessionId',
|
|
76
99
|
create: _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0$schema,
|
|
100
|
+
jsonSchema: {"type":"string"},
|
|
101
|
+
},
|
|
102
|
+
strictCodec: {
|
|
103
|
+
mode: 'strict',
|
|
104
|
+
typeSymbol: '@qilin-agent/session/types#SessionId',
|
|
105
|
+
create: _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_0_strict$schema,
|
|
106
|
+
jsonSchema: {"type":"string"},
|
|
77
107
|
},
|
|
78
108
|
},
|
|
79
109
|
{
|
|
80
110
|
name: 'request',
|
|
81
|
-
|
|
111
|
+
description: 'subject, description, optional blockers, and optional write scopes.',
|
|
82
112
|
source: 'json',
|
|
83
113
|
codec: {
|
|
84
114
|
mode: 'strict',
|
|
85
115
|
typeSymbol: '@qilin-agent/experimental-agent-team/types#CreateTeamTaskRequest',
|
|
86
116
|
create: _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_1$schema,
|
|
117
|
+
jsonSchema: {"type":"object","properties":{"subject":{"type":"string"},"description":{"type":"string"},"blockedBy":{"type":"array","items":{"type":"string"}},"writeScopes":{"type":"array","items":{"type":"string"}}},"required":["subject","description"],"additionalProperties":true},
|
|
118
|
+
},
|
|
119
|
+
strictCodec: {
|
|
120
|
+
mode: 'strict',
|
|
121
|
+
typeSymbol: '@qilin-agent/experimental-agent-team/types#CreateTeamTaskRequest',
|
|
122
|
+
create: _qilin_agent_experimental_agent_team_agentTeams_createTask_parameter_1_strict$schema,
|
|
123
|
+
jsonSchema: {"type":"object","properties":{"subject":{"type":"string"},"description":{"type":"string"},"blockedBy":{"type":"array","items":{"type":"string"}},"writeScopes":{"type":"array","items":{"type":"string"}}},"required":["subject","description"],"additionalProperties":false},
|
|
87
124
|
},
|
|
88
125
|
},
|
|
89
126
|
],
|
|
@@ -91,14 +128,14 @@ export const TYPERT_REMOTE = {
|
|
|
91
128
|
mode: 'strict',
|
|
92
129
|
typeSymbol: '@qilin-agent/experimental-agent-team/client#TeamTaskView',
|
|
93
130
|
create: _qilin_agent_experimental_agent_team_agentTeams_createTask_result$schema,
|
|
131
|
+
description: 'the revision-one task view.',
|
|
132
|
+
jsonSchema: {"type":"object","properties":{"id":{"type":"string"},"revision":{"type":"number"},"subject":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","enum":["completed","pending","in_progress","deleted"]},"blockedBy":{"type":"array","items":{"type":"string"}},"writeScopes":{"type":"array","items":{"type":"string"}},"ownerName":{"type":"string"},"ready":{"type":"boolean"},"writeScopeWarnings":{"type":"array","items":{"type":"string"}}},"required":["id","revision","subject","description","status","blockedBy","writeScopes","ready","writeScopeWarnings"],"additionalProperties":true},
|
|
94
133
|
},
|
|
95
134
|
sourceLocation: {"file":"packages/experimental/agent-team/src/index.ts","line":244,"column":9},
|
|
96
135
|
},
|
|
97
|
-
{
|
|
98
|
-
id: '@qilin-agent/experimental-agent-team#agentTeams/updateTask',
|
|
136
|
+
'agentTeams/updateTask': {
|
|
99
137
|
service: 'agentTeams',
|
|
100
|
-
|
|
101
|
-
method: 'updateTask',
|
|
138
|
+
description: 'Wire face of {@link TeamService.updateTask}: commit one compare-and-set task transition on a person\'s behalf. A committed mutation is durable and never undone by a later wire cancellation.',
|
|
102
139
|
implementation: 'remoteUpdateTask',
|
|
103
140
|
invocation: { kind: 'direct' },
|
|
104
141
|
scope: {
|
|
@@ -109,22 +146,37 @@ export const TYPERT_REMOTE = {
|
|
|
109
146
|
{
|
|
110
147
|
name: 'agent',
|
|
111
148
|
wire: 'agentId',
|
|
149
|
+
description: 'exact live Team member resolved from the wire identity.',
|
|
112
150
|
source: 'lookup',
|
|
113
151
|
lookup: 'agent',
|
|
114
152
|
codec: {
|
|
115
153
|
mode: 'strict',
|
|
116
154
|
typeSymbol: '@qilin-agent/session/types#SessionId',
|
|
117
155
|
create: _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0$schema,
|
|
156
|
+
jsonSchema: {"type":"string"},
|
|
157
|
+
},
|
|
158
|
+
strictCodec: {
|
|
159
|
+
mode: 'strict',
|
|
160
|
+
typeSymbol: '@qilin-agent/session/types#SessionId',
|
|
161
|
+
create: _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_0_strict$schema,
|
|
162
|
+
jsonSchema: {"type":"string"},
|
|
118
163
|
},
|
|
119
164
|
},
|
|
120
165
|
{
|
|
121
166
|
name: 'request',
|
|
122
|
-
|
|
167
|
+
description: 'task identity, expected revision, action, and action fields.',
|
|
123
168
|
source: 'json',
|
|
124
169
|
codec: {
|
|
125
170
|
mode: 'strict',
|
|
126
171
|
typeSymbol: '@qilin-agent/experimental-agent-team/types#UpdateTeamTaskRequest',
|
|
127
172
|
create: _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_1$schema,
|
|
173
|
+
jsonSchema: {"type":"object","properties":{"taskId":{"type":"string"},"expectedRevision":{"type":"number"},"action":{"type":"string","enum":["complete","edit","claim","release","set_dependencies","reopen","reassign","delete"]},"subject":{"type":"string"},"description":{"type":"string"},"blockedBy":{"type":"array","items":{"type":"string"}},"writeScopes":{"type":"array","items":{"type":"string"}},"owner":{"type":"string"}},"required":["taskId","expectedRevision","action"],"additionalProperties":true},
|
|
174
|
+
},
|
|
175
|
+
strictCodec: {
|
|
176
|
+
mode: 'strict',
|
|
177
|
+
typeSymbol: '@qilin-agent/experimental-agent-team/types#UpdateTeamTaskRequest',
|
|
178
|
+
create: _qilin_agent_experimental_agent_team_agentTeams_updateTask_parameter_1_strict$schema,
|
|
179
|
+
jsonSchema: {"type":"object","properties":{"taskId":{"type":"string"},"expectedRevision":{"type":"number"},"action":{"type":"string","enum":["complete","edit","claim","release","set_dependencies","reopen","reassign","delete"]},"subject":{"type":"string"},"description":{"type":"string"},"blockedBy":{"type":"array","items":{"type":"string"}},"writeScopes":{"type":"array","items":{"type":"string"}},"owner":{"type":"string"}},"required":["taskId","expectedRevision","action"],"additionalProperties":false},
|
|
128
180
|
},
|
|
129
181
|
},
|
|
130
182
|
],
|
|
@@ -132,10 +184,12 @@ export const TYPERT_REMOTE = {
|
|
|
132
184
|
mode: 'strict',
|
|
133
185
|
typeSymbol: '@qilin-agent/experimental-agent-team/client#TeamTaskView',
|
|
134
186
|
create: _qilin_agent_experimental_agent_team_agentTeams_updateTask_result$schema,
|
|
187
|
+
description: 'the committed next task view.',
|
|
188
|
+
jsonSchema: {"type":"object","properties":{"id":{"type":"string"},"revision":{"type":"number"},"subject":{"type":"string"},"description":{"type":"string"},"status":{"type":"string","enum":["completed","pending","in_progress","deleted"]},"blockedBy":{"type":"array","items":{"type":"string"}},"writeScopes":{"type":"array","items":{"type":"string"}},"ownerName":{"type":"string"},"ready":{"type":"boolean"},"writeScopeWarnings":{"type":"array","items":{"type":"string"}}},"required":["id","revision","subject","description","status","blockedBy","writeScopes","ready","writeScopeWarnings"],"additionalProperties":true},
|
|
135
189
|
},
|
|
136
190
|
sourceLocation: {"file":"packages/experimental/agent-team/src/index.ts","line":264,"column":9},
|
|
137
191
|
},
|
|
138
|
-
|
|
139
|
-
}
|
|
192
|
+
},
|
|
193
|
+
}, z)
|
|
140
194
|
|
|
141
195
|
export default TYPERT_REMOTE
|
package/lib/types/index.d.ts
CHANGED
|
@@ -137,10 +137,8 @@ export declare class TeamService extends TypertRemoteService {
|
|
|
137
137
|
* @returns Team membership, or undefined for non-Team subagents and stale identities.
|
|
138
138
|
*/
|
|
139
139
|
tryMembership(agent: Agent): TeamMembership | undefined;
|
|
140
|
-
/** Queue one contained
|
|
140
|
+
/** Queue one contained provisioning reconciliation after publication has unwound. */
|
|
141
141
|
private scheduleRecovery;
|
|
142
|
-
/** Reconcile roster provisioning when one Team member Session starts. */
|
|
143
|
-
private recoverFor;
|
|
144
142
|
/** Stop Team-owned live branches and release every waiter before service disposal completes. */
|
|
145
143
|
private disposeRuntime;
|
|
146
144
|
}
|