@deepseek-ai/dsh-goal 0.2.1-alpha.2 → 0.2.1-alpha.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.
@@ -1,43 +1,45 @@
1
1
  /* Generated by @deepseek-ai/dsh-typert-generator from FaceModel — do not edit. */
2
2
  import { z } from 'zod'
3
3
 
4
+ import { createTypertRemoteInfo } from '@deepseek-ai/dsh-typert-protocol/remote-info'
5
+
4
6
  let _deepseek_ai_dsh_goal_goals_clear_parameter_0$schema$value
5
- const _deepseek_ai_dsh_goal_goals_clear_parameter_0$schema = () => (_deepseek_ai_dsh_goal_goals_clear_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
7
+ const _deepseek_ai_dsh_goal_goals_clear_parameter_0$schema = () => (_deepseek_ai_dsh_goal_goals_clear_parameter_0$schema$value ??= z.string())
6
8
  let _deepseek_ai_dsh_goal_goals_clear_parameter_1$schema$value
7
9
  const _deepseek_ai_dsh_goal_goals_clear_parameter_1$schema = () => (_deepseek_ai_dsh_goal_goals_clear_parameter_1$schema$value ??= z.object({
8
- 'id': z.intersection(z.string(), z.unknown()).readonly(),
9
- 'revision': z.number().readonly(),
10
+ 'id': z.string().readonly().describe('Stable goal identity.'),
11
+ 'revision': z.number().readonly().describe('Positive revision; every durable mutation increments it.'),
10
12
  }))
11
13
  let _deepseek_ai_dsh_goal_goals_clear_result$schema$value
12
14
  const _deepseek_ai_dsh_goal_goals_clear_result$schema = () => (_deepseek_ai_dsh_goal_goals_clear_result$schema$value ??= z.object({
13
- 'id': z.intersection(z.string(), z.unknown()).readonly(),
14
- 'revision': z.number().readonly(),
15
+ 'id': z.string().readonly().describe('Stable goal identity.'),
16
+ 'revision': z.number().readonly().describe('Positive revision; every durable mutation increments it.'),
15
17
  }))
16
18
  let _deepseek_ai_dsh_goal_goals_complete_parameter_0$schema$value
17
- const _deepseek_ai_dsh_goal_goals_complete_parameter_0$schema = () => (_deepseek_ai_dsh_goal_goals_complete_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
19
+ const _deepseek_ai_dsh_goal_goals_complete_parameter_0$schema = () => (_deepseek_ai_dsh_goal_goals_complete_parameter_0$schema$value ??= z.string())
18
20
  let _deepseek_ai_dsh_goal_goals_complete_parameter_1$schema$value
19
21
  const _deepseek_ai_dsh_goal_goals_complete_parameter_1$schema = () => (_deepseek_ai_dsh_goal_goals_complete_parameter_1$schema$value ??= z.object({
20
- 'id': z.intersection(z.string(), z.unknown()).readonly(),
21
- 'revision': z.number().readonly(),
22
+ 'id': z.string().readonly().describe('Stable goal identity.'),
23
+ 'revision': z.number().readonly().describe('Positive revision; every durable mutation increments it.'),
22
24
  }))
23
25
  let _deepseek_ai_dsh_goal_goals_complete_result$schema$value
24
26
  const _deepseek_ai_dsh_goal_goals_complete_result$schema = () => (_deepseek_ai_dsh_goal_goals_complete_result$schema$value ??= z.object({
25
- 'roundsStarted': z.number().readonly(),
26
- 'createdAt': z.number().readonly(),
27
- 'updatedAt': z.number().readonly(),
28
- 'activation': z.union([z.literal("armed"), z.literal("disarmed")]).readonly(),
29
- 'objective': z.string().readonly(),
30
- 'phase': z.union([z.literal("active"), z.literal("paused"), z.literal("blocked"), z.literal("complete")]).readonly(),
27
+ 'roundsStarted': z.number().readonly().describe('Highest admitted round number for this goal.'),
28
+ 'createdAt': z.number().readonly().describe('Epoch milliseconds of the create mutation.'),
29
+ 'updatedAt': z.number().readonly().describe('Epoch milliseconds of the latest mutation.'),
30
+ 'activation': z.union([z.literal("armed"), z.literal("disarmed")]).readonly().describe('Process-local continuation eligibility; never persisted.'),
31
+ 'objective': z.string().readonly().describe('Human-requested completion objective.'),
32
+ 'phase': z.union([z.literal("active"), z.literal("paused"), z.literal("blocked"), z.literal("complete")]).readonly().describe('Durable lifecycle phase.'),
31
33
  'blockedReason': z.object({
32
- 'code': z.string().readonly(),
33
- 'message': z.string().readonly(),
34
- }).readonly().optional(),
35
- 'maxGoalRounds': z.number().readonly(),
36
- 'id': z.intersection(z.string(), z.unknown()).readonly(),
37
- 'revision': z.number().readonly(),
34
+ 'code': z.string().readonly().describe('Stable lower-kebab-case classification chosen by the blocking policy.'),
35
+ 'message': z.string().readonly().describe('Non-empty explanation shown to humans and models.'),
36
+ }).readonly().optional().describe('Present exactly while `phase` is `blocked`.'),
37
+ 'maxGoalRounds': z.number().readonly().describe('Total admitted goal-round cap.'),
38
+ 'id': z.string().readonly().describe('Stable goal identity.'),
39
+ 'revision': z.number().readonly().describe('Positive revision; every durable mutation increments it.'),
38
40
  }))
39
41
  let _deepseek_ai_dsh_goal_goals_create_parameter_0$schema$value
40
- const _deepseek_ai_dsh_goal_goals_create_parameter_0$schema = () => (_deepseek_ai_dsh_goal_goals_create_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
42
+ const _deepseek_ai_dsh_goal_goals_create_parameter_0$schema = () => (_deepseek_ai_dsh_goal_goals_create_parameter_0$schema$value ??= z.string())
41
43
  let _deepseek_ai_dsh_goal_goals_create_parameter_1$schema$value
42
44
  const _deepseek_ai_dsh_goal_goals_create_parameter_1$schema = () => (_deepseek_ai_dsh_goal_goals_create_parameter_1$schema$value ??= z.object({
43
45
  'objective': z.string().readonly(),
@@ -46,16 +48,16 @@ const _deepseek_ai_dsh_goal_goals_create_parameter_1$schema = () => (_deepseek_a
46
48
  let _deepseek_ai_dsh_goal_goals_create_result$schema$value
47
49
  const _deepseek_ai_dsh_goal_goals_create_result$schema = () => (_deepseek_ai_dsh_goal_goals_create_result$schema$value ??= z.object({
48
50
  'ref': z.object({
49
- 'id': z.intersection(z.string(), z.unknown()).readonly(),
50
- 'revision': z.number().readonly(),
51
+ 'id': z.string().readonly().describe('Stable goal identity.'),
52
+ 'revision': z.number().readonly().describe('Positive revision; every durable mutation increments it.'),
51
53
  }).readonly(),
52
54
  }))
53
55
  let _deepseek_ai_dsh_goal_goals_edit_parameter_0$schema$value
54
- const _deepseek_ai_dsh_goal_goals_edit_parameter_0$schema = () => (_deepseek_ai_dsh_goal_goals_edit_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
56
+ const _deepseek_ai_dsh_goal_goals_edit_parameter_0$schema = () => (_deepseek_ai_dsh_goal_goals_edit_parameter_0$schema$value ??= z.string())
55
57
  let _deepseek_ai_dsh_goal_goals_edit_parameter_1$schema$value
56
58
  const _deepseek_ai_dsh_goal_goals_edit_parameter_1$schema = () => (_deepseek_ai_dsh_goal_goals_edit_parameter_1$schema$value ??= z.object({
57
- 'id': z.intersection(z.string(), z.unknown()).readonly(),
58
- 'revision': z.number().readonly(),
59
+ 'id': z.string().readonly().describe('Stable goal identity.'),
60
+ 'revision': z.number().readonly().describe('Positive revision; every durable mutation increments it.'),
59
61
  }))
60
62
  let _deepseek_ai_dsh_goal_goals_edit_parameter_2$schema$value
61
63
  const _deepseek_ai_dsh_goal_goals_edit_parameter_2$schema = () => (_deepseek_ai_dsh_goal_goals_edit_parameter_2$schema$value ??= z.object({
@@ -64,96 +66,140 @@ const _deepseek_ai_dsh_goal_goals_edit_parameter_2$schema = () => (_deepseek_ai_
64
66
  }))
65
67
  let _deepseek_ai_dsh_goal_goals_edit_result$schema$value
66
68
  const _deepseek_ai_dsh_goal_goals_edit_result$schema = () => (_deepseek_ai_dsh_goal_goals_edit_result$schema$value ??= z.object({
67
- 'roundsStarted': z.number().readonly(),
68
- 'createdAt': z.number().readonly(),
69
- 'updatedAt': z.number().readonly(),
70
- 'activation': z.union([z.literal("armed"), z.literal("disarmed")]).readonly(),
71
- 'objective': z.string().readonly(),
72
- 'phase': z.union([z.literal("active"), z.literal("paused"), z.literal("blocked"), z.literal("complete")]).readonly(),
69
+ 'roundsStarted': z.number().readonly().describe('Highest admitted round number for this goal.'),
70
+ 'createdAt': z.number().readonly().describe('Epoch milliseconds of the create mutation.'),
71
+ 'updatedAt': z.number().readonly().describe('Epoch milliseconds of the latest mutation.'),
72
+ 'activation': z.union([z.literal("armed"), z.literal("disarmed")]).readonly().describe('Process-local continuation eligibility; never persisted.'),
73
+ 'objective': z.string().readonly().describe('Human-requested completion objective.'),
74
+ 'phase': z.union([z.literal("active"), z.literal("paused"), z.literal("blocked"), z.literal("complete")]).readonly().describe('Durable lifecycle phase.'),
73
75
  'blockedReason': z.object({
74
- 'code': z.string().readonly(),
75
- 'message': z.string().readonly(),
76
- }).readonly().optional(),
77
- 'maxGoalRounds': z.number().readonly(),
78
- 'id': z.intersection(z.string(), z.unknown()).readonly(),
79
- 'revision': z.number().readonly(),
76
+ 'code': z.string().readonly().describe('Stable lower-kebab-case classification chosen by the blocking policy.'),
77
+ 'message': z.string().readonly().describe('Non-empty explanation shown to humans and models.'),
78
+ }).readonly().optional().describe('Present exactly while `phase` is `blocked`.'),
79
+ 'maxGoalRounds': z.number().readonly().describe('Total admitted goal-round cap.'),
80
+ 'id': z.string().readonly().describe('Stable goal identity.'),
81
+ 'revision': z.number().readonly().describe('Positive revision; every durable mutation increments it.'),
80
82
  }))
81
83
  let _deepseek_ai_dsh_goal_goals_get_parameter_0$schema$value
82
- const _deepseek_ai_dsh_goal_goals_get_parameter_0$schema = () => (_deepseek_ai_dsh_goal_goals_get_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
84
+ const _deepseek_ai_dsh_goal_goals_get_parameter_0$schema = () => (_deepseek_ai_dsh_goal_goals_get_parameter_0$schema$value ??= z.string())
83
85
  let _deepseek_ai_dsh_goal_goals_get_result$schema$value
84
86
  const _deepseek_ai_dsh_goal_goals_get_result$schema = () => (_deepseek_ai_dsh_goal_goals_get_result$schema$value ??= z.union([z.undefined(), z.object({
85
- 'roundsStarted': z.number().readonly(),
86
- 'createdAt': z.number().readonly(),
87
- 'updatedAt': z.number().readonly(),
88
- 'activation': z.union([z.literal("armed"), z.literal("disarmed")]).readonly(),
89
- 'objective': z.string().readonly(),
90
- 'phase': z.union([z.literal("active"), z.literal("paused"), z.literal("blocked"), z.literal("complete")]).readonly(),
87
+ 'roundsStarted': z.number().readonly().describe('Highest admitted round number for this goal.'),
88
+ 'createdAt': z.number().readonly().describe('Epoch milliseconds of the create mutation.'),
89
+ 'updatedAt': z.number().readonly().describe('Epoch milliseconds of the latest mutation.'),
90
+ 'activation': z.union([z.literal("armed"), z.literal("disarmed")]).readonly().describe('Process-local continuation eligibility; never persisted.'),
91
+ 'objective': z.string().readonly().describe('Human-requested completion objective.'),
92
+ 'phase': z.union([z.literal("active"), z.literal("paused"), z.literal("blocked"), z.literal("complete")]).readonly().describe('Durable lifecycle phase.'),
91
93
  'blockedReason': z.object({
92
- 'code': z.string().readonly(),
93
- 'message': z.string().readonly(),
94
- }).readonly().optional(),
95
- 'maxGoalRounds': z.number().readonly(),
96
- 'id': z.intersection(z.string(), z.unknown()).readonly(),
97
- 'revision': z.number().readonly(),
94
+ 'code': z.string().readonly().describe('Stable lower-kebab-case classification chosen by the blocking policy.'),
95
+ 'message': z.string().readonly().describe('Non-empty explanation shown to humans and models.'),
96
+ }).readonly().optional().describe('Present exactly while `phase` is `blocked`.'),
97
+ 'maxGoalRounds': z.number().readonly().describe('Total admitted goal-round cap.'),
98
+ 'id': z.string().readonly().describe('Stable goal identity.'),
99
+ 'revision': z.number().readonly().describe('Positive revision; every durable mutation increments it.'),
98
100
  })]))
99
101
  let _deepseek_ai_dsh_goal_goals_pause_parameter_0$schema$value
100
- const _deepseek_ai_dsh_goal_goals_pause_parameter_0$schema = () => (_deepseek_ai_dsh_goal_goals_pause_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
102
+ const _deepseek_ai_dsh_goal_goals_pause_parameter_0$schema = () => (_deepseek_ai_dsh_goal_goals_pause_parameter_0$schema$value ??= z.string())
101
103
  let _deepseek_ai_dsh_goal_goals_pause_parameter_1$schema$value
102
104
  const _deepseek_ai_dsh_goal_goals_pause_parameter_1$schema = () => (_deepseek_ai_dsh_goal_goals_pause_parameter_1$schema$value ??= z.object({
103
- 'id': z.intersection(z.string(), z.unknown()).readonly(),
104
- 'revision': z.number().readonly(),
105
+ 'id': z.string().readonly().describe('Stable goal identity.'),
106
+ 'revision': z.number().readonly().describe('Positive revision; every durable mutation increments it.'),
105
107
  }))
106
108
  let _deepseek_ai_dsh_goal_goals_pause_result$schema$value
107
109
  const _deepseek_ai_dsh_goal_goals_pause_result$schema = () => (_deepseek_ai_dsh_goal_goals_pause_result$schema$value ??= z.object({
108
- 'roundsStarted': z.number().readonly(),
109
- 'createdAt': z.number().readonly(),
110
- 'updatedAt': z.number().readonly(),
111
- 'activation': z.union([z.literal("armed"), z.literal("disarmed")]).readonly(),
112
- 'objective': z.string().readonly(),
113
- 'phase': z.union([z.literal("active"), z.literal("paused"), z.literal("blocked"), z.literal("complete")]).readonly(),
110
+ 'roundsStarted': z.number().readonly().describe('Highest admitted round number for this goal.'),
111
+ 'createdAt': z.number().readonly().describe('Epoch milliseconds of the create mutation.'),
112
+ 'updatedAt': z.number().readonly().describe('Epoch milliseconds of the latest mutation.'),
113
+ 'activation': z.union([z.literal("armed"), z.literal("disarmed")]).readonly().describe('Process-local continuation eligibility; never persisted.'),
114
+ 'objective': z.string().readonly().describe('Human-requested completion objective.'),
115
+ 'phase': z.union([z.literal("active"), z.literal("paused"), z.literal("blocked"), z.literal("complete")]).readonly().describe('Durable lifecycle phase.'),
114
116
  'blockedReason': z.object({
115
- 'code': z.string().readonly(),
116
- 'message': z.string().readonly(),
117
- }).readonly().optional(),
118
- 'maxGoalRounds': z.number().readonly(),
119
- 'id': z.intersection(z.string(), z.unknown()).readonly(),
120
- 'revision': z.number().readonly(),
117
+ 'code': z.string().readonly().describe('Stable lower-kebab-case classification chosen by the blocking policy.'),
118
+ 'message': z.string().readonly().describe('Non-empty explanation shown to humans and models.'),
119
+ }).readonly().optional().describe('Present exactly while `phase` is `blocked`.'),
120
+ 'maxGoalRounds': z.number().readonly().describe('Total admitted goal-round cap.'),
121
+ 'id': z.string().readonly().describe('Stable goal identity.'),
122
+ 'revision': z.number().readonly().describe('Positive revision; every durable mutation increments it.'),
121
123
  }))
122
124
  let _deepseek_ai_dsh_goal_goals_resume_parameter_0$schema$value
123
- const _deepseek_ai_dsh_goal_goals_resume_parameter_0$schema = () => (_deepseek_ai_dsh_goal_goals_resume_parameter_0$schema$value ??= z.intersection(z.string(), z.unknown()))
125
+ const _deepseek_ai_dsh_goal_goals_resume_parameter_0$schema = () => (_deepseek_ai_dsh_goal_goals_resume_parameter_0$schema$value ??= z.string())
124
126
  let _deepseek_ai_dsh_goal_goals_resume_parameter_1$schema$value
125
127
  const _deepseek_ai_dsh_goal_goals_resume_parameter_1$schema = () => (_deepseek_ai_dsh_goal_goals_resume_parameter_1$schema$value ??= z.object({
126
- 'id': z.intersection(z.string(), z.unknown()).readonly(),
127
- 'revision': z.number().readonly(),
128
+ 'id': z.string().readonly().describe('Stable goal identity.'),
129
+ 'revision': z.number().readonly().describe('Positive revision; every durable mutation increments it.'),
128
130
  }))
129
131
  let _deepseek_ai_dsh_goal_goals_resume_result$schema$value
130
132
  const _deepseek_ai_dsh_goal_goals_resume_result$schema = () => (_deepseek_ai_dsh_goal_goals_resume_result$schema$value ??= z.object({
131
- 'roundsStarted': z.number().readonly(),
132
- 'createdAt': z.number().readonly(),
133
- 'updatedAt': z.number().readonly(),
134
- 'activation': z.union([z.literal("armed"), z.literal("disarmed")]).readonly(),
135
- 'objective': z.string().readonly(),
136
- 'phase': z.union([z.literal("active"), z.literal("paused"), z.literal("blocked"), z.literal("complete")]).readonly(),
133
+ 'roundsStarted': z.number().readonly().describe('Highest admitted round number for this goal.'),
134
+ 'createdAt': z.number().readonly().describe('Epoch milliseconds of the create mutation.'),
135
+ 'updatedAt': z.number().readonly().describe('Epoch milliseconds of the latest mutation.'),
136
+ 'activation': z.union([z.literal("armed"), z.literal("disarmed")]).readonly().describe('Process-local continuation eligibility; never persisted.'),
137
+ 'objective': z.string().readonly().describe('Human-requested completion objective.'),
138
+ 'phase': z.union([z.literal("active"), z.literal("paused"), z.literal("blocked"), z.literal("complete")]).readonly().describe('Durable lifecycle phase.'),
137
139
  'blockedReason': z.object({
138
- 'code': z.string().readonly(),
139
- 'message': z.string().readonly(),
140
- }).readonly().optional(),
141
- 'maxGoalRounds': z.number().readonly(),
142
- 'id': z.intersection(z.string(), z.unknown()).readonly(),
143
- 'revision': z.number().readonly(),
140
+ 'code': z.string().readonly().describe('Stable lower-kebab-case classification chosen by the blocking policy.'),
141
+ 'message': z.string().readonly().describe('Non-empty explanation shown to humans and models.'),
142
+ }).readonly().optional().describe('Present exactly while `phase` is `blocked`.'),
143
+ 'maxGoalRounds': z.number().readonly().describe('Total admitted goal-round cap.'),
144
+ 'id': z.string().readonly().describe('Stable goal identity.'),
145
+ 'revision': z.number().readonly().describe('Positive revision; every durable mutation increments it.'),
146
+ }))
147
+ let _deepseek_ai_dsh_goal_goals_clear_parameter_0_strict$schema$value
148
+ const _deepseek_ai_dsh_goal_goals_clear_parameter_0_strict$schema = () => (_deepseek_ai_dsh_goal_goals_clear_parameter_0_strict$schema$value ??= z.string())
149
+ let _deepseek_ai_dsh_goal_goals_clear_parameter_1_strict$schema$value
150
+ const _deepseek_ai_dsh_goal_goals_clear_parameter_1_strict$schema = () => (_deepseek_ai_dsh_goal_goals_clear_parameter_1_strict$schema$value ??= z.strictObject({
151
+ 'id': z.string().readonly().describe('Stable goal identity.'),
152
+ 'revision': z.number().readonly().describe('Positive revision; every durable mutation increments it.'),
153
+ }))
154
+ let _deepseek_ai_dsh_goal_goals_complete_parameter_0_strict$schema$value
155
+ const _deepseek_ai_dsh_goal_goals_complete_parameter_0_strict$schema = () => (_deepseek_ai_dsh_goal_goals_complete_parameter_0_strict$schema$value ??= z.string())
156
+ let _deepseek_ai_dsh_goal_goals_complete_parameter_1_strict$schema$value
157
+ const _deepseek_ai_dsh_goal_goals_complete_parameter_1_strict$schema = () => (_deepseek_ai_dsh_goal_goals_complete_parameter_1_strict$schema$value ??= z.strictObject({
158
+ 'id': z.string().readonly().describe('Stable goal identity.'),
159
+ 'revision': z.number().readonly().describe('Positive revision; every durable mutation increments it.'),
160
+ }))
161
+ let _deepseek_ai_dsh_goal_goals_create_parameter_0_strict$schema$value
162
+ const _deepseek_ai_dsh_goal_goals_create_parameter_0_strict$schema = () => (_deepseek_ai_dsh_goal_goals_create_parameter_0_strict$schema$value ??= z.string())
163
+ let _deepseek_ai_dsh_goal_goals_create_parameter_1_strict$schema$value
164
+ const _deepseek_ai_dsh_goal_goals_create_parameter_1_strict$schema = () => (_deepseek_ai_dsh_goal_goals_create_parameter_1_strict$schema$value ??= z.strictObject({
165
+ 'objective': z.string().readonly(),
166
+ 'maxGoalRounds': z.number().readonly().optional(),
167
+ }))
168
+ let _deepseek_ai_dsh_goal_goals_edit_parameter_0_strict$schema$value
169
+ const _deepseek_ai_dsh_goal_goals_edit_parameter_0_strict$schema = () => (_deepseek_ai_dsh_goal_goals_edit_parameter_0_strict$schema$value ??= z.string())
170
+ let _deepseek_ai_dsh_goal_goals_edit_parameter_1_strict$schema$value
171
+ const _deepseek_ai_dsh_goal_goals_edit_parameter_1_strict$schema = () => (_deepseek_ai_dsh_goal_goals_edit_parameter_1_strict$schema$value ??= z.strictObject({
172
+ 'id': z.string().readonly().describe('Stable goal identity.'),
173
+ 'revision': z.number().readonly().describe('Positive revision; every durable mutation increments it.'),
174
+ }))
175
+ let _deepseek_ai_dsh_goal_goals_edit_parameter_2_strict$schema$value
176
+ const _deepseek_ai_dsh_goal_goals_edit_parameter_2_strict$schema = () => (_deepseek_ai_dsh_goal_goals_edit_parameter_2_strict$schema$value ??= z.strictObject({
177
+ 'objective': z.string().readonly().optional(),
178
+ 'maxGoalRounds': z.number().readonly().optional(),
179
+ }))
180
+ let _deepseek_ai_dsh_goal_goals_get_parameter_0_strict$schema$value
181
+ const _deepseek_ai_dsh_goal_goals_get_parameter_0_strict$schema = () => (_deepseek_ai_dsh_goal_goals_get_parameter_0_strict$schema$value ??= z.string())
182
+ let _deepseek_ai_dsh_goal_goals_pause_parameter_0_strict$schema$value
183
+ const _deepseek_ai_dsh_goal_goals_pause_parameter_0_strict$schema = () => (_deepseek_ai_dsh_goal_goals_pause_parameter_0_strict$schema$value ??= z.string())
184
+ let _deepseek_ai_dsh_goal_goals_pause_parameter_1_strict$schema$value
185
+ const _deepseek_ai_dsh_goal_goals_pause_parameter_1_strict$schema = () => (_deepseek_ai_dsh_goal_goals_pause_parameter_1_strict$schema$value ??= z.strictObject({
186
+ 'id': z.string().readonly().describe('Stable goal identity.'),
187
+ 'revision': z.number().readonly().describe('Positive revision; every durable mutation increments it.'),
188
+ }))
189
+ let _deepseek_ai_dsh_goal_goals_resume_parameter_0_strict$schema$value
190
+ const _deepseek_ai_dsh_goal_goals_resume_parameter_0_strict$schema = () => (_deepseek_ai_dsh_goal_goals_resume_parameter_0_strict$schema$value ??= z.string())
191
+ let _deepseek_ai_dsh_goal_goals_resume_parameter_1_strict$schema$value
192
+ const _deepseek_ai_dsh_goal_goals_resume_parameter_1_strict$schema = () => (_deepseek_ai_dsh_goal_goals_resume_parameter_1_strict$schema$value ??= z.strictObject({
193
+ 'id': z.string().readonly().describe('Stable goal identity.'),
194
+ 'revision': z.number().readonly().describe('Positive revision; every durable mutation increments it.'),
144
195
  }))
145
196
 
146
- export const TYPERT = {
197
+ const $remote = createTypertRemoteInfo({
147
198
  package: '@deepseek-ai/dsh-goal',
148
- face: 'host',
149
- schemas: [
150
- ],
151
- invocations: [
152
- {
153
- id: '@deepseek-ai/dsh-goal#goals/clear',
199
+ methods: {
200
+ 'goals/clear': {
154
201
  service: 'goals',
155
- namespace: 'goals',
156
- method: 'clear',
202
+ description: 'Clear the current goal while retaining a durable tombstone and history.',
157
203
  invocation: { kind: 'direct' },
158
204
  scope: {
159
205
  context: 'agent',
@@ -163,22 +209,37 @@ export const TYPERT = {
163
209
  {
164
210
  name: 'agent',
165
211
  wire: 'agentId',
212
+ description: 'owning live agent.',
166
213
  source: 'lookup',
167
214
  lookup: 'agent',
168
215
  codec: {
169
216
  mode: 'strict',
170
217
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
171
218
  create: _deepseek_ai_dsh_goal_goals_clear_parameter_0$schema,
219
+ jsonSchema: {"type":"string"},
220
+ },
221
+ strictCodec: {
222
+ mode: 'strict',
223
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
224
+ create: _deepseek_ai_dsh_goal_goals_clear_parameter_0_strict$schema,
225
+ jsonSchema: {"type":"string"},
172
226
  },
173
227
  },
174
228
  {
175
229
  name: 'ref',
176
- wire: 'ref',
230
+ description: 'expected current revision.',
177
231
  source: 'json',
178
232
  codec: {
179
233
  mode: 'strict',
180
234
  typeSymbol: '@deepseek-ai/dsh-goal/client#GoalRef',
181
235
  create: _deepseek_ai_dsh_goal_goals_clear_parameter_1$schema,
236
+ jsonSchema: {"type":"object","properties":{"id":{"type":"string","description":"Stable goal identity."},"revision":{"type":"number","description":"Positive revision; every durable mutation increments it."}},"required":["id","revision"],"additionalProperties":true},
237
+ },
238
+ strictCodec: {
239
+ mode: 'strict',
240
+ typeSymbol: '@deepseek-ai/dsh-goal/client#GoalRef',
241
+ create: _deepseek_ai_dsh_goal_goals_clear_parameter_1_strict$schema,
242
+ jsonSchema: {"type":"object","properties":{"id":{"type":"string","description":"Stable goal identity."},"revision":{"type":"number","description":"Positive revision; every durable mutation increments it."}},"required":["id","revision"],"additionalProperties":false},
182
243
  },
183
244
  },
184
245
  ],
@@ -186,14 +247,14 @@ export const TYPERT = {
186
247
  mode: 'strict',
187
248
  typeSymbol: '@deepseek-ai/dsh-goal/client#GoalRef',
188
249
  create: _deepseek_ai_dsh_goal_goals_clear_result$schema,
250
+ description: 'the tombstone ref whose revision is one past the cleared snapshot.',
251
+ jsonSchema: {"type":"object","properties":{"id":{"type":"string","description":"Stable goal identity."},"revision":{"type":"number","description":"Positive revision; every durable mutation increments it."}},"required":["id","revision"],"additionalProperties":true},
189
252
  },
190
253
  sourceLocation: {"file":"packages/goal/goal/src/index.ts","line":433,"column":3},
191
254
  },
192
- {
193
- id: '@deepseek-ai/dsh-goal#goals/complete',
255
+ 'goals/complete': {
194
256
  service: 'goals',
195
- namespace: 'goals',
196
- method: 'complete',
257
+ description: 'Mark a current non-complete goal complete and disarm it.',
197
258
  invocation: { kind: 'direct' },
198
259
  scope: {
199
260
  context: 'agent',
@@ -203,22 +264,37 @@ export const TYPERT = {
203
264
  {
204
265
  name: 'agent',
205
266
  wire: 'agentId',
267
+ description: 'owning live agent.',
206
268
  source: 'lookup',
207
269
  lookup: 'agent',
208
270
  codec: {
209
271
  mode: 'strict',
210
272
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
211
273
  create: _deepseek_ai_dsh_goal_goals_complete_parameter_0$schema,
274
+ jsonSchema: {"type":"string"},
275
+ },
276
+ strictCodec: {
277
+ mode: 'strict',
278
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
279
+ create: _deepseek_ai_dsh_goal_goals_complete_parameter_0_strict$schema,
280
+ jsonSchema: {"type":"string"},
212
281
  },
213
282
  },
214
283
  {
215
284
  name: 'ref',
216
- wire: 'ref',
285
+ description: 'expected current revision.',
217
286
  source: 'json',
218
287
  codec: {
219
288
  mode: 'strict',
220
289
  typeSymbol: '@deepseek-ai/dsh-goal/client#GoalRef',
221
290
  create: _deepseek_ai_dsh_goal_goals_complete_parameter_1$schema,
291
+ jsonSchema: {"type":"object","properties":{"id":{"type":"string","description":"Stable goal identity."},"revision":{"type":"number","description":"Positive revision; every durable mutation increments it."}},"required":["id","revision"],"additionalProperties":true},
292
+ },
293
+ strictCodec: {
294
+ mode: 'strict',
295
+ typeSymbol: '@deepseek-ai/dsh-goal/client#GoalRef',
296
+ create: _deepseek_ai_dsh_goal_goals_complete_parameter_1_strict$schema,
297
+ jsonSchema: {"type":"object","properties":{"id":{"type":"string","description":"Stable goal identity."},"revision":{"type":"number","description":"Positive revision; every durable mutation increments it."}},"required":["id","revision"],"additionalProperties":false},
222
298
  },
223
299
  },
224
300
  ],
@@ -226,14 +302,14 @@ export const TYPERT = {
226
302
  mode: 'strict',
227
303
  typeSymbol: '@deepseek-ai/dsh-goal/client#GoalView',
228
304
  create: _deepseek_ai_dsh_goal_goals_complete_result$schema,
305
+ description: 'the completed view.',
306
+ jsonSchema: {"type":"object","properties":{"roundsStarted":{"type":"number","description":"Highest admitted round number for this goal."},"createdAt":{"type":"number","description":"Epoch milliseconds of the create mutation."},"updatedAt":{"type":"number","description":"Epoch milliseconds of the latest mutation."},"activation":{"type":"string","enum":["armed","disarmed"],"description":"Process-local continuation eligibility; never persisted."},"objective":{"type":"string","description":"Human-requested completion objective."},"phase":{"type":"string","enum":["active","paused","blocked","complete"],"description":"Durable lifecycle phase."},"blockedReason":{"type":"object","properties":{"code":{"type":"string","description":"Stable lower-kebab-case classification chosen by the blocking policy."},"message":{"type":"string","description":"Non-empty explanation shown to humans and models."}},"required":["code","message"],"additionalProperties":true,"description":"Present exactly while `phase` is `blocked`."},"maxGoalRounds":{"type":"number","description":"Total admitted goal-round cap."},"id":{"type":"string","description":"Stable goal identity."},"revision":{"type":"number","description":"Positive revision; every durable mutation increments it."}},"required":["roundsStarted","createdAt","updatedAt","activation","objective","phase","maxGoalRounds","id","revision"],"additionalProperties":true},
229
307
  },
230
308
  sourceLocation: {"file":"packages/goal/goal/src/index.ts","line":391,"column":3},
231
309
  },
232
- {
233
- id: '@deepseek-ai/dsh-goal#goals/create',
310
+ 'goals/create': {
234
311
  service: 'goals',
235
- namespace: 'goals',
236
- method: 'create',
312
+ description: 'Create one Goal through the remote boundary.',
237
313
  implementation: 'remoteExportCreate',
238
314
  invocation: { kind: 'direct' },
239
315
  scope: {
@@ -244,22 +320,37 @@ export const TYPERT = {
244
320
  {
245
321
  name: 'agent',
246
322
  wire: 'agentId',
323
+ description: 'exact live Agent resolved from the wire identity.',
247
324
  source: 'lookup',
248
325
  lookup: 'agent',
249
326
  codec: {
250
327
  mode: 'strict',
251
328
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
252
329
  create: _deepseek_ai_dsh_goal_goals_create_parameter_0$schema,
330
+ jsonSchema: {"type":"string"},
331
+ },
332
+ strictCodec: {
333
+ mode: 'strict',
334
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
335
+ create: _deepseek_ai_dsh_goal_goals_create_parameter_0_strict$schema,
336
+ jsonSchema: {"type":"string"},
253
337
  },
254
338
  },
255
339
  {
256
340
  name: 'request',
257
- wire: 'request',
341
+ description: 'objective and optional round cap.',
258
342
  source: 'json',
259
343
  codec: {
260
344
  mode: 'strict',
261
345
  typeSymbol: '@deepseek-ai/dsh-goal/client#CreateGoalRequest',
262
346
  create: _deepseek_ai_dsh_goal_goals_create_parameter_1$schema,
347
+ jsonSchema: {"type":"object","properties":{"objective":{"type":"string"},"maxGoalRounds":{"type":"number"}},"required":["objective"],"additionalProperties":true},
348
+ },
349
+ strictCodec: {
350
+ mode: 'strict',
351
+ typeSymbol: '@deepseek-ai/dsh-goal/client#CreateGoalRequest',
352
+ create: _deepseek_ai_dsh_goal_goals_create_parameter_1_strict$schema,
353
+ jsonSchema: {"type":"object","properties":{"objective":{"type":"string"},"maxGoalRounds":{"type":"number"}},"required":["objective"],"additionalProperties":false},
263
354
  },
264
355
  },
265
356
  ],
@@ -267,14 +358,14 @@ export const TYPERT = {
267
358
  mode: 'strict',
268
359
  typeSymbol: '@deepseek-ai/dsh-goal/client#CreateGoalResult',
269
360
  create: _deepseek_ai_dsh_goal_goals_create_result$schema,
361
+ description: 'the created Goal identity.',
362
+ jsonSchema: {"type":"object","properties":{"ref":{"type":"object","properties":{"id":{"type":"string","description":"Stable goal identity."},"revision":{"type":"number","description":"Positive revision; every durable mutation increments it."}},"required":["id","revision"],"additionalProperties":true}},"required":["ref"],"additionalProperties":true},
270
363
  },
271
364
  sourceLocation: {"file":"packages/goal/goal/src/index.ts","line":647,"column":3},
272
365
  },
273
- {
274
- id: '@deepseek-ai/dsh-goal#goals/edit',
366
+ 'goals/edit': {
275
367
  service: 'goals',
276
- namespace: 'goals',
277
- method: 'edit',
368
+ description: 'Edit objective and/or round cap without changing phase.',
278
369
  invocation: { kind: 'direct' },
279
370
  scope: {
280
371
  context: 'agent',
@@ -284,32 +375,54 @@ export const TYPERT = {
284
375
  {
285
376
  name: 'agent',
286
377
  wire: 'agentId',
378
+ description: 'owning live agent.',
287
379
  source: 'lookup',
288
380
  lookup: 'agent',
289
381
  codec: {
290
382
  mode: 'strict',
291
383
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
292
384
  create: _deepseek_ai_dsh_goal_goals_edit_parameter_0$schema,
385
+ jsonSchema: {"type":"string"},
386
+ },
387
+ strictCodec: {
388
+ mode: 'strict',
389
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
390
+ create: _deepseek_ai_dsh_goal_goals_edit_parameter_0_strict$schema,
391
+ jsonSchema: {"type":"string"},
293
392
  },
294
393
  },
295
394
  {
296
395
  name: 'ref',
297
- wire: 'ref',
396
+ description: 'expected current revision.',
298
397
  source: 'json',
299
398
  codec: {
300
399
  mode: 'strict',
301
400
  typeSymbol: '@deepseek-ai/dsh-goal/client#GoalRef',
302
401
  create: _deepseek_ai_dsh_goal_goals_edit_parameter_1$schema,
402
+ jsonSchema: {"type":"object","properties":{"id":{"type":"string","description":"Stable goal identity."},"revision":{"type":"number","description":"Positive revision; every durable mutation increments it."}},"required":["id","revision"],"additionalProperties":true},
403
+ },
404
+ strictCodec: {
405
+ mode: 'strict',
406
+ typeSymbol: '@deepseek-ai/dsh-goal/client#GoalRef',
407
+ create: _deepseek_ai_dsh_goal_goals_edit_parameter_1_strict$schema,
408
+ jsonSchema: {"type":"object","properties":{"id":{"type":"string","description":"Stable goal identity."},"revision":{"type":"number","description":"Positive revision; every durable mutation increments it."}},"required":["id","revision"],"additionalProperties":false},
303
409
  },
304
410
  },
305
411
  {
306
412
  name: 'request',
307
- wire: 'request',
413
+ description: 'at least one replacement field.',
308
414
  source: 'json',
309
415
  codec: {
310
416
  mode: 'strict',
311
417
  typeSymbol: '@deepseek-ai/dsh-goal/client#EditGoalRequest',
312
418
  create: _deepseek_ai_dsh_goal_goals_edit_parameter_2$schema,
419
+ jsonSchema: {"type":"object","properties":{"objective":{"type":"string"},"maxGoalRounds":{"type":"number"}},"required":[],"additionalProperties":true},
420
+ },
421
+ strictCodec: {
422
+ mode: 'strict',
423
+ typeSymbol: '@deepseek-ai/dsh-goal/client#EditGoalRequest',
424
+ create: _deepseek_ai_dsh_goal_goals_edit_parameter_2_strict$schema,
425
+ jsonSchema: {"type":"object","properties":{"objective":{"type":"string"},"maxGoalRounds":{"type":"number"}},"required":[],"additionalProperties":false},
313
426
  },
314
427
  },
315
428
  ],
@@ -317,14 +430,14 @@ export const TYPERT = {
317
430
  mode: 'strict',
318
431
  typeSymbol: '@deepseek-ai/dsh-goal/client#GoalView',
319
432
  create: _deepseek_ai_dsh_goal_goals_edit_result$schema,
433
+ description: 'the edited view.',
434
+ jsonSchema: {"type":"object","properties":{"roundsStarted":{"type":"number","description":"Highest admitted round number for this goal."},"createdAt":{"type":"number","description":"Epoch milliseconds of the create mutation."},"updatedAt":{"type":"number","description":"Epoch milliseconds of the latest mutation."},"activation":{"type":"string","enum":["armed","disarmed"],"description":"Process-local continuation eligibility; never persisted."},"objective":{"type":"string","description":"Human-requested completion objective."},"phase":{"type":"string","enum":["active","paused","blocked","complete"],"description":"Durable lifecycle phase."},"blockedReason":{"type":"object","properties":{"code":{"type":"string","description":"Stable lower-kebab-case classification chosen by the blocking policy."},"message":{"type":"string","description":"Non-empty explanation shown to humans and models."}},"required":["code","message"],"additionalProperties":true,"description":"Present exactly while `phase` is `blocked`."},"maxGoalRounds":{"type":"number","description":"Total admitted goal-round cap."},"id":{"type":"string","description":"Stable goal identity."},"revision":{"type":"number","description":"Positive revision; every durable mutation increments it."}},"required":["roundsStarted","createdAt","updatedAt","activation","objective","phase","maxGoalRounds","id","revision"],"additionalProperties":true},
320
435
  },
321
436
  sourceLocation: {"file":"packages/goal/goal/src/index.ts","line":329,"column":3},
322
437
  },
323
- {
324
- id: '@deepseek-ai/dsh-goal#goals/get',
438
+ 'goals/get': {
325
439
  service: 'goals',
326
- namespace: 'goals',
327
- method: 'get',
440
+ description: 'Read the current goal for one exact live agent.',
328
441
  invocation: { kind: 'direct' },
329
442
  scope: {
330
443
  context: 'agent',
@@ -334,12 +447,20 @@ export const TYPERT = {
334
447
  {
335
448
  name: 'agent',
336
449
  wire: 'agentId',
450
+ description: 'owning live agent.',
337
451
  source: 'lookup',
338
452
  lookup: 'agent',
339
453
  codec: {
340
454
  mode: 'strict',
341
455
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
342
456
  create: _deepseek_ai_dsh_goal_goals_get_parameter_0$schema,
457
+ jsonSchema: {"type":"string"},
458
+ },
459
+ strictCodec: {
460
+ mode: 'strict',
461
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
462
+ create: _deepseek_ai_dsh_goal_goals_get_parameter_0_strict$schema,
463
+ jsonSchema: {"type":"string"},
343
464
  },
344
465
  },
345
466
  ],
@@ -347,14 +468,14 @@ export const TYPERT = {
347
468
  mode: 'strict',
348
469
  typeSymbol: '@deepseek-ai/dsh-goal#goals/get:result',
349
470
  create: _deepseek_ai_dsh_goal_goals_get_result$schema,
471
+ description: 'a fresh view or `undefined` when no goal is current.',
472
+ jsonSchemaError: 'typert tool schema: unsupported undefined value',
350
473
  },
351
474
  sourceLocation: {"file":"packages/goal/goal/src/index.ts","line":277,"column":3},
352
475
  },
353
- {
354
- id: '@deepseek-ai/dsh-goal#goals/pause',
476
+ 'goals/pause': {
355
477
  service: 'goals',
356
- namespace: 'goals',
357
- method: 'pause',
478
+ description: 'Pause an active goal and disarm automatic continuation.',
358
479
  invocation: { kind: 'direct' },
359
480
  scope: {
360
481
  context: 'agent',
@@ -364,22 +485,37 @@ export const TYPERT = {
364
485
  {
365
486
  name: 'agent',
366
487
  wire: 'agentId',
488
+ description: 'owning live agent.',
367
489
  source: 'lookup',
368
490
  lookup: 'agent',
369
491
  codec: {
370
492
  mode: 'strict',
371
493
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
372
494
  create: _deepseek_ai_dsh_goal_goals_pause_parameter_0$schema,
495
+ jsonSchema: {"type":"string"},
496
+ },
497
+ strictCodec: {
498
+ mode: 'strict',
499
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
500
+ create: _deepseek_ai_dsh_goal_goals_pause_parameter_0_strict$schema,
501
+ jsonSchema: {"type":"string"},
373
502
  },
374
503
  },
375
504
  {
376
505
  name: 'ref',
377
- wire: 'ref',
506
+ description: 'expected current revision.',
378
507
  source: 'json',
379
508
  codec: {
380
509
  mode: 'strict',
381
510
  typeSymbol: '@deepseek-ai/dsh-goal/client#GoalRef',
382
511
  create: _deepseek_ai_dsh_goal_goals_pause_parameter_1$schema,
512
+ jsonSchema: {"type":"object","properties":{"id":{"type":"string","description":"Stable goal identity."},"revision":{"type":"number","description":"Positive revision; every durable mutation increments it."}},"required":["id","revision"],"additionalProperties":true},
513
+ },
514
+ strictCodec: {
515
+ mode: 'strict',
516
+ typeSymbol: '@deepseek-ai/dsh-goal/client#GoalRef',
517
+ create: _deepseek_ai_dsh_goal_goals_pause_parameter_1_strict$schema,
518
+ jsonSchema: {"type":"object","properties":{"id":{"type":"string","description":"Stable goal identity."},"revision":{"type":"number","description":"Positive revision; every durable mutation increments it."}},"required":["id","revision"],"additionalProperties":false},
383
519
  },
384
520
  },
385
521
  ],
@@ -387,14 +523,14 @@ export const TYPERT = {
387
523
  mode: 'strict',
388
524
  typeSymbol: '@deepseek-ai/dsh-goal/client#GoalView',
389
525
  create: _deepseek_ai_dsh_goal_goals_pause_result$schema,
526
+ description: 'the paused view.',
527
+ jsonSchema: {"type":"object","properties":{"roundsStarted":{"type":"number","description":"Highest admitted round number for this goal."},"createdAt":{"type":"number","description":"Epoch milliseconds of the create mutation."},"updatedAt":{"type":"number","description":"Epoch milliseconds of the latest mutation."},"activation":{"type":"string","enum":["armed","disarmed"],"description":"Process-local continuation eligibility; never persisted."},"objective":{"type":"string","description":"Human-requested completion objective."},"phase":{"type":"string","enum":["active","paused","blocked","complete"],"description":"Durable lifecycle phase."},"blockedReason":{"type":"object","properties":{"code":{"type":"string","description":"Stable lower-kebab-case classification chosen by the blocking policy."},"message":{"type":"string","description":"Non-empty explanation shown to humans and models."}},"required":["code","message"],"additionalProperties":true,"description":"Present exactly while `phase` is `blocked`."},"maxGoalRounds":{"type":"number","description":"Total admitted goal-round cap."},"id":{"type":"string","description":"Stable goal identity."},"revision":{"type":"number","description":"Positive revision; every durable mutation increments it."}},"required":["roundsStarted","createdAt","updatedAt","activation","objective","phase","maxGoalRounds","id","revision"],"additionalProperties":true},
390
528
  },
391
529
  sourceLocation: {"file":"packages/goal/goal/src/index.ts","line":352,"column":3},
392
530
  },
393
- {
394
- id: '@deepseek-ai/dsh-goal#goals/resume',
531
+ 'goals/resume': {
395
532
  service: 'goals',
396
- namespace: 'goals',
397
- method: 'resume',
533
+ description: 'Resume and arm a stopped goal, or rearm an active goal after a session-start edge, while its round budget still has capacity.',
398
534
  invocation: { kind: 'direct' },
399
535
  scope: {
400
536
  context: 'agent',
@@ -404,22 +540,37 @@ export const TYPERT = {
404
540
  {
405
541
  name: 'agent',
406
542
  wire: 'agentId',
543
+ description: 'owning live agent.',
407
544
  source: 'lookup',
408
545
  lookup: 'agent',
409
546
  codec: {
410
547
  mode: 'strict',
411
548
  typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
412
549
  create: _deepseek_ai_dsh_goal_goals_resume_parameter_0$schema,
550
+ jsonSchema: {"type":"string"},
551
+ },
552
+ strictCodec: {
553
+ mode: 'strict',
554
+ typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
555
+ create: _deepseek_ai_dsh_goal_goals_resume_parameter_0_strict$schema,
556
+ jsonSchema: {"type":"string"},
413
557
  },
414
558
  },
415
559
  {
416
560
  name: 'ref',
417
- wire: 'ref',
561
+ description: 'expected current revision.',
418
562
  source: 'json',
419
563
  codec: {
420
564
  mode: 'strict',
421
565
  typeSymbol: '@deepseek-ai/dsh-goal/client#GoalRef',
422
566
  create: _deepseek_ai_dsh_goal_goals_resume_parameter_1$schema,
567
+ jsonSchema: {"type":"object","properties":{"id":{"type":"string","description":"Stable goal identity."},"revision":{"type":"number","description":"Positive revision; every durable mutation increments it."}},"required":["id","revision"],"additionalProperties":true},
568
+ },
569
+ strictCodec: {
570
+ mode: 'strict',
571
+ typeSymbol: '@deepseek-ai/dsh-goal/client#GoalRef',
572
+ create: _deepseek_ai_dsh_goal_goals_resume_parameter_1_strict$schema,
573
+ jsonSchema: {"type":"object","properties":{"id":{"type":"string","description":"Stable goal identity."},"revision":{"type":"number","description":"Positive revision; every durable mutation increments it."}},"required":["id","revision"],"additionalProperties":false},
423
574
  },
424
575
  },
425
576
  ],
@@ -427,10 +578,20 @@ export const TYPERT = {
427
578
  mode: 'strict',
428
579
  typeSymbol: '@deepseek-ai/dsh-goal/client#GoalView',
429
580
  create: _deepseek_ai_dsh_goal_goals_resume_result$schema,
581
+ description: 'the active view.',
582
+ jsonSchema: {"type":"object","properties":{"roundsStarted":{"type":"number","description":"Highest admitted round number for this goal."},"createdAt":{"type":"number","description":"Epoch milliseconds of the create mutation."},"updatedAt":{"type":"number","description":"Epoch milliseconds of the latest mutation."},"activation":{"type":"string","enum":["armed","disarmed"],"description":"Process-local continuation eligibility; never persisted."},"objective":{"type":"string","description":"Human-requested completion objective."},"phase":{"type":"string","enum":["active","paused","blocked","complete"],"description":"Durable lifecycle phase."},"blockedReason":{"type":"object","properties":{"code":{"type":"string","description":"Stable lower-kebab-case classification chosen by the blocking policy."},"message":{"type":"string","description":"Non-empty explanation shown to humans and models."}},"required":["code","message"],"additionalProperties":true,"description":"Present exactly while `phase` is `blocked`."},"maxGoalRounds":{"type":"number","description":"Total admitted goal-round cap."},"id":{"type":"string","description":"Stable goal identity."},"revision":{"type":"number","description":"Positive revision; every durable mutation increments it."}},"required":["roundsStarted","createdAt","updatedAt","activation","objective","phase","maxGoalRounds","id","revision"],"additionalProperties":true},
430
583
  },
431
584
  sourceLocation: {"file":"packages/goal/goal/src/index.ts","line":364,"column":3},
432
585
  },
586
+ },
587
+ }, z)
588
+
589
+ export const TYPERT = {
590
+ package: '@deepseek-ai/dsh-goal',
591
+ face: 'host',
592
+ schemas: [
433
593
  ],
594
+ get invocations() { return $remote.descriptors },
434
595
  model: {
435
596
  "services": [
436
597
  {
@@ -537,6 +698,10 @@ export const TYPERT = {
537
698
  "name": "AgentStatus",
538
699
  "declaration": "export type AgentStatus = 'idle' | 'running';"
539
700
  },
701
+ {
702
+ "name": "AllowedModelRoute",
703
+ "declaration": "export interface AllowedModelRoute {\n readonly provider: string;\n readonly model: string;\n}"
704
+ },
540
705
  {
541
706
  "name": "ApprovalOutcome",
542
707
  "declaration": "export type ApprovalOutcome = 'allowed-once' | 'rejected' | 'cancelled' | 'unavailable';"
@@ -749,6 +914,30 @@ export const TYPERT = {
749
914
  "name": "InboxTarget",
750
915
  "declaration": "export type InboxTarget = 'next-turn' | 'next-step';"
751
916
  },
917
+ {
918
+ "name": "JobId",
919
+ "declaration": "export type JobId = Branded<'JobId'>;"
920
+ },
921
+ {
922
+ "name": "JobOutcome",
923
+ "declaration": "export interface JobOutcome {\n status: 'completed' | 'killed' | 'failed';\n detail?: string;\n result?: string;\n}"
924
+ },
925
+ {
926
+ "name": "JobRegisteredData",
927
+ "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}"
928
+ },
929
+ {
930
+ "name": "JobSettleCause",
931
+ "declaration": "export type JobSettleCause = 'producer' | 'kill' | 'teardown';"
932
+ },
933
+ {
934
+ "name": "JobSettledData",
935
+ "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}"
936
+ },
937
+ {
938
+ "name": "JobToolCall",
939
+ "declaration": "export interface JobToolCall {\n readonly callId: SessionEventMap['tool/call']['callId'];\n readonly rootCallId: SessionEventMap['tool/call']['callId'];\n}"
940
+ },
752
941
  {
753
942
  "name": "JsonValue",
754
943
  "declaration": "export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue; };"
@@ -839,7 +1028,7 @@ export const TYPERT = {
839
1028
  },
840
1029
  {
841
1030
  "name": "MessageSourceMap",
842
- "declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'working-directory': { kind: 'working-directory'; };\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'tool-registry': { kind: 'tool-registry'; };\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'cordis-host-runner': { kind: 'cordis-host-runner'; };\n 'compact-checkpoint': CompactionCheckpointSource;\n 'user-question-reply': { kind: 'user-question-reply'; callId: ToolCallId; outcome: 'answered'; };\n goal: GoalMessageSource;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'session-reference': SessionReferenceSource;\n}"
1031
+ "declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n model: ModelMessageSource;\n tool: ToolMessageSource;\n 'system-prompt': SystemPromptMessageSource;\n 'model-selection': { kind: 'model-selection'; } & ContextFormed;\n 'runtime-context': { kind: 'runtime-context'; } & ContextFormed;\n 'working-directory': { kind: 'working-directory'; };\n 'user-approval': { kind: 'user-approval'; } & ContextFormed;\n 'ptc-mode': { kind: 'ptc-mode'; };\n 'tool-registry': { kind: 'tool-registry'; };\n 'user-rpc': { kind: 'user'; rpcId: SessionRequestId; clientTimeZone?: string; principal?: Principal; };\n 'agent-message': AgentMessageSource;\n 'subagent-settled': SubagentSettledMessageSource;\n 'skill-invocation': SkillInvocationSource;\n 'compact-checkpoint': CompactionCheckpointSource;\n 'cordis-host-runner': { kind: 'cordis-host-runner'; };\n 'team-message': TeamMessageSource;\n 'user-question-reply': { kind: 'user-question-reply'; callId: ToolCallId; outcome: 'answered'; };\n goal: GoalMessageSource;\n 'plan-mode': { kind: 'plan-mode'; } & ContextFormed;\n schedule: { kind: 'schedule'; } & ContextFormed;\n 'session-reference': SessionReferenceSource;\n webhook: { readonly kind: 'webhook'; readonly provider: string; readonly source: WebhookSourceId; readonly deliveryId: WebhookDeliveryId; readonly ruleId: WebhookRuleId; readonly form: 'notice'; readonly summary: string; };\n}"
843
1032
  },
844
1033
  {
845
1034
  "name": "ModelMessageSource",
@@ -861,6 +1050,14 @@ export const TYPERT = {
861
1050
  "name": "OptionalSessionSeq",
862
1051
  "declaration": "export type OptionalSessionSeq = SessionSeq | null;"
863
1052
  },
1053
+ {
1054
+ "name": "Principal",
1055
+ "declaration": "export type Principal = PrincipalMap[keyof PrincipalMap];"
1056
+ },
1057
+ {
1058
+ "name": "PrincipalMap",
1059
+ "declaration": "export interface PrincipalMap {\n owner: { readonly kind: 'owner'; };\n}"
1060
+ },
864
1061
  {
865
1062
  "name": "ProviderRequestId",
866
1063
  "declaration": "export type ProviderRequestId = Branded<'ProviderRequestId'>;"
@@ -931,7 +1128,7 @@ export const TYPERT = {
931
1128
  },
932
1129
  {
933
1130
  "name": "SessionEventMap",
934
- "declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'developer/message': { turn: number; step: number; message: DeveloperMessage; headerSeq?: SessionSeq; };\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; reason?: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'working-directory/change': { cwd: string; };\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'agent-preset/selected': { agentPreset: string; };\n 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'model/selection': ModelSelection;\n 'permission/preset': { preset: string; };\n 'subagent/descriptor': SubagentDescriptorData;\n 'subagent/catalog': SubagentCatalogEvent;\n 'compaction/start': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; };\n 'compaction/summary': { compactionId: CompactionId; sourceCommandId?: CommandId; summary: ContentBlock[]; shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; provider: string; model: string; maxTokens?: number; usage?: TokenUsage; } & ({ rawOutput: ContentBlock[]; llmStreamCall: true; } | { rawOutput?: ContentBlock[]; llmStreamCall?: never; });\n 'compaction/end': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; error?: string; };\n 'compaction/prune': { shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; };\n 'feedback/record': FeedbackRecord;\n 'llm/retry': LlmRetryEventData;\n 'llm/retry-started': LlmRetryStartedEventData;\n 'goal/change': GoalChangeMeta;\n 'feedback/message-put': MessageFeedbackPut;\n 'feedback/message-delete': MessageFeedbackDelete;\n 'schedule/change': ScheduleChange;\n}"
1131
+ "declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'developer/message': { turn: number; step: number; message: DeveloperMessage; headerSeq?: SessionSeq; };\n 'system/message': { turn: number; step: number; message: SystemMessage; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; stream: AssistantStreamRecord[]; usage?: TokenUsage; interrupted?: true; };\n 'assistant/attempt': { turn: number; step: number; stream: AssistantStreamRecord[]; };\n 'tool/call': { turn: number; step: number; callId: ToolCallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; reason?: string; }; meta?: JsonValue; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; startsSeries?: true; };\n 'request/context': RequestContext;\n 'session/end-seed': { inherited?: true; };\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'working-directory/change': { cwd: string; };\n 'sandbox/mode': { mode: SandboxMode; source?: 'delegation'; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: ToolCallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'tool/ptc-dispatch-start': PtcDispatchStartEventData;\n 'tool/ptc-dispatch': PtcDispatchEventData;\n 'agent-preset/selected': { agentPreset: string; };\n 'job/registered': JobRegisteredData;\n 'job/settled': JobSettledData;\n 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: import('@deepseek-ai/dsh-session/types').SessionSeq; };\n 'image/offload': { targets: ImageOffloadTarget[]; };\n 'session/title': SessionTitleEventData;\n 'todo/write': { todos: TodoItem[]; };\n 'model/selection': ModelSelection;\n 'permission/preset': { preset: string; };\n 'subagent/descriptor': SubagentDescriptorData;\n 'subagent/catalog': SubagentCatalogEvent;\n 'compaction/start': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; };\n 'compaction/summary': { compactionId: CompactionId; sourceCommandId?: CommandId; summary: ContentBlock[]; shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; provider: string; model: string; maxTokens?: number; usage?: TokenUsage; } & ({ rawOutput: ContentBlock[]; llmStreamCall: true; } | { rawOutput?: ContentBlock[]; llmStreamCall?: never; });\n 'compaction/end': { compactionId: CompactionId; sourceCommandId?: CommandId; turn: number | null; error?: string; };\n 'compaction/prune': { shadowedRange: { start: SessionSeq; end: SessionSeq; }; shadowedSeqs: SessionSeq[]; shadowedTokenCount: number; };\n 'feedback/record': FeedbackRecord;\n 'llm/retry': LlmRetryEventData;\n 'llm/retry-started': LlmRetryStartedEventData;\n 'team/member': { version: 2; teamId: TeamId; member: TeamMemberSnapshot; };\n 'team/task': { version: 2; teamId: TeamId; task: TeamTaskSnapshot; };\n 'team/message/queued': { version: 2; teamId: TeamId; message: TeamMessageSnapshot; };\n 'team/message/delivered': { version: 2; teamId: TeamId; messageId: TeamMessageId; targetId: SessionId; };\n 'goal/change': GoalChangeMeta;\n 'feedback/message-put': MessageFeedbackPut;\n 'feedback/message-delete': MessageFeedbackDelete;\n 'plan/mode': { active: boolean; };\n 'schedule/change': ScheduleChange;\n 'subagent/model-selection-policy': { allowedModels: AllowedModelRoute[]; };\n 'workspace/changes': { turn: number; };\n}"
935
1132
  },
936
1133
  {
937
1134
  "name": "SessionEventType",
@@ -1029,6 +1226,42 @@ export const TYPERT = {
1029
1226
  "name": "SystemPromptUpdate",
1030
1227
  "declaration": "export type SystemPromptUpdate = 'in-history';"
1031
1228
  },
1229
+ {
1230
+ "name": "TeamId",
1231
+ "declaration": "export type TeamId = Branded<'TeamId'>;"
1232
+ },
1233
+ {
1234
+ "name": "TeamMemberPhase",
1235
+ "declaration": "export type TeamMemberPhase = 'provisioning' | 'active' | 'failed';"
1236
+ },
1237
+ {
1238
+ "name": "TeamMemberSnapshot",
1239
+ "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}"
1240
+ },
1241
+ {
1242
+ "name": "TeamMessageId",
1243
+ "declaration": "export type TeamMessageId = Branded<'TeamMessageId'>;"
1244
+ },
1245
+ {
1246
+ "name": "TeamMessageSnapshot",
1247
+ "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}"
1248
+ },
1249
+ {
1250
+ "name": "TeamMessageSource",
1251
+ "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}"
1252
+ },
1253
+ {
1254
+ "name": "TeamTaskId",
1255
+ "declaration": "export type TeamTaskId = Branded<'TeamTaskId'>;"
1256
+ },
1257
+ {
1258
+ "name": "TeamTaskSnapshot",
1259
+ "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}"
1260
+ },
1261
+ {
1262
+ "name": "TeamTaskStatus",
1263
+ "declaration": "export type TeamTaskStatus = 'pending' | 'in_progress' | 'completed' | 'deleted';"
1264
+ },
1032
1265
  {
1033
1266
  "name": "TextBlock",
1034
1267
  "declaration": "export interface TextBlock {\n type: 'text';\n text: string;\n}"
@@ -1092,6 +1325,18 @@ export const TYPERT = {
1092
1325
  {
1093
1326
  "name": "UserMessage",
1094
1327
  "declaration": "export interface UserMessage extends MessageBase {\n readonly role: 'user';\n}"
1328
+ },
1329
+ {
1330
+ "name": "WebhookDeliveryId",
1331
+ "declaration": "export type WebhookDeliveryId = Branded<'WebhookDeliveryId'>;"
1332
+ },
1333
+ {
1334
+ "name": "WebhookRuleId",
1335
+ "declaration": "export type WebhookRuleId = Branded<'WebhookRuleId'>;"
1336
+ },
1337
+ {
1338
+ "name": "WebhookSourceId",
1339
+ "declaration": "export type WebhookSourceId = Branded<'WebhookSourceId'>;"
1095
1340
  }
1096
1341
  ]
1097
1342
  }