dsh-autotier 0.1.0 → 0.2.0

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.
Files changed (62) hide show
  1. package/AGENTS.md +26 -3
  2. package/CHANGELOG.md +59 -0
  3. package/README.es.md +6 -2
  4. package/README.hi.md +7 -2
  5. package/README.md +7 -2
  6. package/README.pt.md +6 -2
  7. package/README.zh.md +6 -2
  8. package/THIRD_PARTY_NOTICES.md +31 -0
  9. package/docs/roadmap-v0.2.md +114 -0
  10. package/lib/client.js +5956 -0
  11. package/lib/client.js.map +1 -0
  12. package/lib/index.js +274 -58
  13. package/lib/typert.host.js +26 -0
  14. package/lib/types/client/TierPill.d.ts +24 -0
  15. package/lib/types/client/TierPill.d.ts.map +1 -0
  16. package/lib/types/client/TierSettingsCard.d.ts +31 -0
  17. package/lib/types/client/TierSettingsCard.d.ts.map +1 -0
  18. package/lib/types/client/index.d.ts +30 -0
  19. package/lib/types/client/index.d.ts.map +1 -0
  20. package/lib/types/client/locales.d.ts +60 -0
  21. package/lib/types/client/locales.d.ts.map +1 -0
  22. package/lib/types/client/present.d.ts +61 -0
  23. package/lib/types/client/present.d.ts.map +1 -0
  24. package/lib/types/client/remote.d.ts +313 -0
  25. package/lib/types/client/remote.d.ts.map +1 -0
  26. package/lib/types/client/styles.d.ts +12 -0
  27. package/lib/types/client/styles.d.ts.map +1 -0
  28. package/lib/types/command.d.ts.map +1 -1
  29. package/lib/types/index.d.ts +4 -0
  30. package/lib/types/index.d.ts.map +1 -1
  31. package/lib/types/policy.d.ts +4 -0
  32. package/lib/types/policy.d.ts.map +1 -1
  33. package/lib/types/preflight.d.ts +48 -0
  34. package/lib/types/preflight.d.ts.map +1 -0
  35. package/lib/types/routing.d.ts +2 -0
  36. package/lib/types/routing.d.ts.map +1 -1
  37. package/lib/types/selection.d.ts +50 -0
  38. package/lib/types/selection.d.ts.map +1 -0
  39. package/lib/types/tier-remote.d.ts +79 -0
  40. package/lib/types/tier-remote.d.ts.map +1 -0
  41. package/lib/types/typert.host.d.ts +300 -0
  42. package/lib/types/typert.host.d.ts.map +1 -0
  43. package/lib/types/wire.d.ts +804 -0
  44. package/lib/types/wire.d.ts.map +1 -0
  45. package/lib/wire-BpKSOHgo.js +5193 -0
  46. package/package.json +63 -11
  47. package/src/client/TierPill.tsx +83 -0
  48. package/src/client/TierSettingsCard.tsx +175 -0
  49. package/src/client/index.ts +146 -0
  50. package/src/client/locales.ts +107 -0
  51. package/src/client/present.ts +124 -0
  52. package/src/client/remote.ts +39 -0
  53. package/src/client/styles.ts +174 -0
  54. package/src/command.ts +1 -0
  55. package/src/index.ts +43 -0
  56. package/src/policy.ts +6 -0
  57. package/src/preflight.ts +105 -0
  58. package/src/routing.ts +28 -1
  59. package/src/selection.ts +124 -0
  60. package/src/tier-remote.ts +139 -0
  61. package/src/typert.host.ts +25 -0
  62. package/src/wire.ts +248 -0
@@ -0,0 +1,300 @@
1
+ /**
2
+ * The hand-written Typert HOST manifest for `dsh-autotier`, exported as
3
+ * `./typert` so the harness's typert-loader registers the `tier`
4
+ * status/catalog/setMode invocations automatically when this plugin mounts.
5
+ * Same shape as a generator output (validated by the loader): package face,
6
+ * empty model and schemas, and the canonical invocation list shared with the
7
+ * client Remote contribution (`src/wire.ts`).
8
+ *
9
+ * @module dsh-autotier/typert
10
+ */
11
+ /** Host Typert manifest (validated by `@deepseek-ai/dsh-typert-loader`). */
12
+ export declare const TYPERT: Readonly<{
13
+ package: "dsh-autotier";
14
+ face: "host";
15
+ schemas: readonly never[];
16
+ invocations: readonly (Readonly<{
17
+ readonly id: "dsh-autotier#tier/status";
18
+ readonly service: "tier";
19
+ readonly namespace: "tier";
20
+ readonly method: "status";
21
+ readonly invocation: Readonly<{
22
+ kind: "direct";
23
+ }>;
24
+ readonly parameters: readonly Readonly<{
25
+ name: string;
26
+ wire: string;
27
+ source: "json";
28
+ codec: Readonly<{
29
+ mode: "strict";
30
+ typeSymbol: "dsh-autotier/wire#TierAgentId";
31
+ schema: import("zod").ZodOptional<import("zod").ZodString>;
32
+ }>;
33
+ acceptsUndefined: true;
34
+ }>[];
35
+ readonly result: Readonly<{
36
+ mode: "strict";
37
+ typeSymbol: string;
38
+ schema: import("zod").ZodObject<{
39
+ mode: import("zod").ZodEnum<{
40
+ strong: "strong";
41
+ cheap: "cheap";
42
+ off: "off";
43
+ auto: "auto";
44
+ delegated: "delegated";
45
+ }>;
46
+ tiers: import("zod").ZodObject<{
47
+ strong: import("zod").ZodObject<{
48
+ provider: import("zod").ZodString;
49
+ model: import("zod").ZodString;
50
+ effort: import("zod").ZodOptional<import("zod").ZodEnum<{
51
+ off: "off";
52
+ low: "low";
53
+ high: "high";
54
+ max: "max";
55
+ }>>;
56
+ }, import("zod/v4/core").$strip>;
57
+ cheap: import("zod").ZodObject<{
58
+ provider: import("zod").ZodString;
59
+ model: import("zod").ZodString;
60
+ effort: import("zod").ZodOptional<import("zod").ZodEnum<{
61
+ off: "off";
62
+ low: "low";
63
+ high: "high";
64
+ max: "max";
65
+ }>>;
66
+ }, import("zod/v4/core").$strip>;
67
+ vision: import("zod").ZodObject<{
68
+ provider: import("zod").ZodString;
69
+ model: import("zod").ZodString;
70
+ effort: import("zod").ZodOptional<import("zod").ZodEnum<{
71
+ off: "off";
72
+ low: "low";
73
+ high: "high";
74
+ max: "max";
75
+ }>>;
76
+ }, import("zod/v4/core").$strip>;
77
+ }, import("zod/v4/core").$strip>;
78
+ guard: import("zod").ZodObject<{
79
+ enabled: import("zod").ZodBoolean;
80
+ tiers: import("zod").ZodArray<import("zod").ZodEnum<{
81
+ strong: "strong";
82
+ cheap: "cheap";
83
+ }>>;
84
+ }, import("zod/v4/core").$strip>;
85
+ escalation: import("zod").ZodObject<{
86
+ threshold: import("zod").ZodNumber;
87
+ windowMs: import("zod").ZodNumber;
88
+ ttlMs: import("zod").ZodNumber;
89
+ fallbackTtlMs: import("zod").ZodNumber;
90
+ signature: import("zod").ZodBoolean;
91
+ }, import("zod/v4/core").$strip>;
92
+ session: import("zod").ZodObject<{
93
+ agentId: import("zod").ZodNullable<import("zod").ZodString>;
94
+ override: import("zod").ZodNullable<import("zod").ZodEnum<{
95
+ strong: "strong";
96
+ cheap: "cheap";
97
+ off: "off";
98
+ auto: "auto";
99
+ delegated: "delegated";
100
+ }>>;
101
+ mode: import("zod").ZodEnum<{
102
+ strong: "strong";
103
+ cheap: "cheap";
104
+ off: "off";
105
+ auto: "auto";
106
+ delegated: "delegated";
107
+ }>;
108
+ appliedTier: import("zod").ZodNullable<import("zod").ZodEnum<{
109
+ strong: "strong";
110
+ cheap: "cheap";
111
+ }>>;
112
+ appliedSource: import("zod").ZodNullable<import("zod").ZodEnum<{
113
+ manual: "manual";
114
+ rule: "rule";
115
+ judge: "judge";
116
+ posterior: "posterior";
117
+ "plan-mode": "plan-mode";
118
+ guard: "guard";
119
+ escalation: "escalation";
120
+ fallback: "fallback";
121
+ default: "default";
122
+ }>>;
123
+ escalation: import("zod").ZodBoolean;
124
+ plan: import("zod").ZodBoolean;
125
+ denials: import("zod").ZodNumber;
126
+ }, import("zod/v4/core").$strip>;
127
+ }, import("zod/v4/core").$strip>;
128
+ }>;
129
+ readonly sourceLocation: Readonly<{
130
+ file: "src/wire.ts";
131
+ line: 1;
132
+ column: 1;
133
+ }>;
134
+ }> | Readonly<{
135
+ readonly id: "dsh-autotier#tier/catalog";
136
+ readonly service: "tier";
137
+ readonly namespace: "tier";
138
+ readonly method: "catalog";
139
+ readonly invocation: Readonly<{
140
+ kind: "direct";
141
+ }>;
142
+ readonly parameters: readonly never[];
143
+ readonly result: Readonly<{
144
+ mode: "strict";
145
+ typeSymbol: "dsh-autotier/wire#TierCatalog";
146
+ schema: import("zod").ZodArray<import("zod").ZodObject<{
147
+ provider: import("zod").ZodString;
148
+ models: import("zod").ZodArray<import("zod").ZodObject<{
149
+ id: import("zod").ZodString;
150
+ name: import("zod").ZodString;
151
+ inputModalities: import("zod").ZodArray<import("zod").ZodString>;
152
+ }, import("zod/v4/core").$strip>>;
153
+ }, import("zod/v4/core").$strip>>;
154
+ }>;
155
+ readonly sourceLocation: Readonly<{
156
+ file: "src/wire.ts";
157
+ line: 1;
158
+ column: 1;
159
+ }>;
160
+ }> | Readonly<{
161
+ readonly id: "dsh-autotier#tier/setMode";
162
+ readonly service: "tier";
163
+ readonly namespace: "tier";
164
+ readonly method: "setMode";
165
+ readonly invocation: Readonly<{
166
+ kind: "direct";
167
+ }>;
168
+ readonly parameters: readonly (Readonly<{
169
+ name: string;
170
+ wire: string;
171
+ source: "json";
172
+ codec: Readonly<{
173
+ mode: "strict";
174
+ typeSymbol: "dsh-autotier/wire#TierAgentId";
175
+ schema: import("zod").ZodOptional<import("zod").ZodString>;
176
+ }>;
177
+ acceptsUndefined: true;
178
+ }> | Readonly<{
179
+ name: string;
180
+ wire: string;
181
+ source: "json";
182
+ codec: Readonly<{
183
+ mode: "strict";
184
+ typeSymbol: "dsh-autotier/types#RoutingMode";
185
+ schema: import("zod").ZodEnum<{
186
+ strong: "strong";
187
+ cheap: "cheap";
188
+ off: "off";
189
+ auto: "auto";
190
+ delegated: "delegated";
191
+ }>;
192
+ }>;
193
+ }>)[];
194
+ readonly result: Readonly<{
195
+ mode: "strict";
196
+ typeSymbol: string;
197
+ schema: import("zod").ZodObject<{
198
+ mode: import("zod").ZodEnum<{
199
+ strong: "strong";
200
+ cheap: "cheap";
201
+ off: "off";
202
+ auto: "auto";
203
+ delegated: "delegated";
204
+ }>;
205
+ tiers: import("zod").ZodObject<{
206
+ strong: import("zod").ZodObject<{
207
+ provider: import("zod").ZodString;
208
+ model: import("zod").ZodString;
209
+ effort: import("zod").ZodOptional<import("zod").ZodEnum<{
210
+ off: "off";
211
+ low: "low";
212
+ high: "high";
213
+ max: "max";
214
+ }>>;
215
+ }, import("zod/v4/core").$strip>;
216
+ cheap: import("zod").ZodObject<{
217
+ provider: import("zod").ZodString;
218
+ model: import("zod").ZodString;
219
+ effort: import("zod").ZodOptional<import("zod").ZodEnum<{
220
+ off: "off";
221
+ low: "low";
222
+ high: "high";
223
+ max: "max";
224
+ }>>;
225
+ }, import("zod/v4/core").$strip>;
226
+ vision: import("zod").ZodObject<{
227
+ provider: import("zod").ZodString;
228
+ model: import("zod").ZodString;
229
+ effort: import("zod").ZodOptional<import("zod").ZodEnum<{
230
+ off: "off";
231
+ low: "low";
232
+ high: "high";
233
+ max: "max";
234
+ }>>;
235
+ }, import("zod/v4/core").$strip>;
236
+ }, import("zod/v4/core").$strip>;
237
+ guard: import("zod").ZodObject<{
238
+ enabled: import("zod").ZodBoolean;
239
+ tiers: import("zod").ZodArray<import("zod").ZodEnum<{
240
+ strong: "strong";
241
+ cheap: "cheap";
242
+ }>>;
243
+ }, import("zod/v4/core").$strip>;
244
+ escalation: import("zod").ZodObject<{
245
+ threshold: import("zod").ZodNumber;
246
+ windowMs: import("zod").ZodNumber;
247
+ ttlMs: import("zod").ZodNumber;
248
+ fallbackTtlMs: import("zod").ZodNumber;
249
+ signature: import("zod").ZodBoolean;
250
+ }, import("zod/v4/core").$strip>;
251
+ session: import("zod").ZodObject<{
252
+ agentId: import("zod").ZodNullable<import("zod").ZodString>;
253
+ override: import("zod").ZodNullable<import("zod").ZodEnum<{
254
+ strong: "strong";
255
+ cheap: "cheap";
256
+ off: "off";
257
+ auto: "auto";
258
+ delegated: "delegated";
259
+ }>>;
260
+ mode: import("zod").ZodEnum<{
261
+ strong: "strong";
262
+ cheap: "cheap";
263
+ off: "off";
264
+ auto: "auto";
265
+ delegated: "delegated";
266
+ }>;
267
+ appliedTier: import("zod").ZodNullable<import("zod").ZodEnum<{
268
+ strong: "strong";
269
+ cheap: "cheap";
270
+ }>>;
271
+ appliedSource: import("zod").ZodNullable<import("zod").ZodEnum<{
272
+ manual: "manual";
273
+ rule: "rule";
274
+ judge: "judge";
275
+ posterior: "posterior";
276
+ "plan-mode": "plan-mode";
277
+ guard: "guard";
278
+ escalation: "escalation";
279
+ fallback: "fallback";
280
+ default: "default";
281
+ }>>;
282
+ escalation: import("zod").ZodBoolean;
283
+ plan: import("zod").ZodBoolean;
284
+ denials: import("zod").ZodNumber;
285
+ }, import("zod/v4/core").$strip>;
286
+ }, import("zod/v4/core").$strip>;
287
+ }>;
288
+ readonly sourceLocation: Readonly<{
289
+ file: "src/wire.ts";
290
+ line: 1;
291
+ column: 1;
292
+ }>;
293
+ }>)[];
294
+ model: Readonly<{
295
+ services: readonly never[];
296
+ events: readonly never[];
297
+ objects: readonly never[];
298
+ }>;
299
+ }>;
300
+ //# sourceMappingURL=typert.host.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typert.host.d.ts","sourceRoot":"","sources":["../../src/typert.host.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,4EAA4E;AAC5E,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUjB,CAAA"}