@plurnk/plurnk-grammar 0.64.0 → 0.67.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.
@@ -1,61 +1,3 @@
1
- export interface Agent {
2
- version: number;
3
- provider: ProviderDeclaration;
4
- /**
5
- * Agent-wide default scheme registrations. The v0 inventory ships with `plurnk`, `known`, `unknown`; everything else is plugin-registered.
6
- */
7
- scheme_registry: SchemeRegistration[];
8
- }
9
- /**
10
- * Declaration of the active provider for an agent. The grammar package owns these four fields; auth/connection config lives in the agent repo.
11
- */
12
- export interface ProviderDeclaration {
13
- /**
14
- * API vendor identifier (e.g. "local", "openrouter", "anthropic", "openai").
15
- */
16
- provider: string;
17
- /**
18
- * Model family (e.g. "gemma", "llama", "qwen", "claude", "gpt", "gemini").
19
- */
20
- family: string;
21
- /**
22
- * Specific model id (e.g. "gemma3-12b").
23
- */
24
- model: string;
25
- /**
26
- * Total context window in tokens.
27
- */
28
- contextSize: number;
29
- /**
30
- * ISO 4217 code; the unit `cost_pico` is denominated in.
31
- */
32
- currency: string;
33
- }
34
- /**
35
- * A scheme entry in the agent's scheme registry. Defines what `<name>://` resolves to and how it's accessible.
36
- */
37
- export interface SchemeRegistration {
38
- /**
39
- * Scheme name without `://`. Matches the URL scheme character class.
40
- */
41
- name: string;
42
- model_visible: boolean;
43
- category: string;
44
- default_scope: ("agent" | "session");
45
- /**
46
- * Channel name selected when an op against this scheme has no fragment. Conventionally `body`; executor schemes (`{tag}://`) typically declare `stdout`.
47
- */
48
- default_channel: string;
49
- /**
50
- * Per-channel content-orientation hints. `head` = whole-document or front-anchored (readers care about the beginning); `tail` = append-temporal stream (readers care about the latest content). Channels not listed default to `head`. Renderers use this to pick truncation direction; the amount to render is a core/runtime concern, not a contract field.
51
- */
52
- channel_orientations?: {
53
- [k: string]: ("head" | "tail");
54
- };
55
- writable_by: ("model" | "client" | "system" | "plugin")[];
56
- volatile: boolean;
57
- handler: (string | null);
58
- }
59
1
  export interface ChannelContent {
60
2
  /**
61
3
  * Raw content bytes/string for this channel. Binary content awaits a future encoding pass (see AGENTS.md).
@@ -67,117 +9,12 @@ export interface ChannelContent {
67
9
  */
68
10
  tokens: number;
69
11
  }
70
- export type Entry = ({
71
- [k: string]: unknown;
72
- } & {
73
- id: number;
74
- version: number;
75
- scope: ("agent" | "session");
76
- session_id: (number | null);
77
- scheme: (string | null);
78
- username: (string | null);
79
- password: (string | null);
80
- hostname: (string | null);
81
- port: (number | null);
82
- pathname: string;
83
- params: (Params | null);
84
- /**
85
- * Named channels on this entry. Keys are channel names (lowercase identifiers); values are ChannelContent. Must be non-empty. The scheme registry declares which channel is the default for unspecified ops.
86
- */
87
- channels: {
88
- [k: string]: ChannelContent;
89
- };
90
- attributes: {};
91
- tags: string[];
92
- });
93
- /**
94
- * URL query parameters parsed into a JSON object. Single-value keys map to strings; multi-value keys (repeated in the original query string) map to arrays of strings. Empty object when the URL has no query string; nullable usages wrap this schema in a oneOf with null.
95
- */
96
- export interface Params {
97
- [k: string]: (string | string[]);
98
- }
99
- /**
100
- * One named stream of content on an entry. Channels carry distinct, parallel views of an entry (e.g. `stdout` and `stderr` on an executor scheme like `node://`/`sh://`; `body` and `headers` on `https://`; `body` and `symbols` on a code file). Each channel has its own content bytes, mimetype, and token count.
101
- */
102
12
  export interface LineMarker {
103
13
  /**
104
14
  * @minItems 1
105
15
  */
106
16
  marks: [number, ...(number)[]];
107
17
  }
108
- export type LogEntry = ({
109
- [k: string]: unknown;
110
- } & {
111
- id: number;
112
- version: number;
113
- run_id: number;
114
- loop_id: number;
115
- turn_id: number;
116
- /**
117
- * 1-based within the turn; resets at each new turn.
118
- */
119
- sequence: number;
120
- at: string;
121
- origin: ("model" | "client" | "system" | "plugin");
122
- op: ("FIND" | "READ" | "EDIT" | "COPY" | "MOVE" | "OPEN" | "FOLD" | "SEND" | "EXEC" | "KILL" | "PLAN");
123
- suffix: string;
124
- signal: (string[] | number | string | null);
125
- scheme: (string | null);
126
- username: (string | null);
127
- password: (string | null);
128
- hostname: (string | null);
129
- port: (number | null);
130
- pathname: (string | null);
131
- params: (Params | null);
132
- /**
133
- * Channel selector at request time. Names the channel the op targeted; null when the op used the scheme's default channel.
134
- */
135
- fragment: (string | null);
136
- lineMarker: (LineMarker | null);
137
- /**
138
- * Raw request payload. For origin=model: the literal plurnk DSL substring of assistant.content. For origin=system/client/plugin: whatever the originator emitted, with `mimetype_tx` declaring the structure.
139
- */
140
- tx: string;
141
- /**
142
- * Mimetype of `tx`. Typically `text/vnd.plurnk` for model-origin rows; arbitrary per-origin for system/client/plugin.
143
- */
144
- mimetype_tx: string;
145
- /**
146
- * Raw response payload bytes/string.
147
- */
148
- rx: string;
149
- mimetype_rx: string;
150
- status_rx: number;
151
- /**
152
- * Lifecycle position; orthogonal to status_rx. status_rx is the HTTP-aligned outcome of the network call; state is where the entry sits in the proposal lifecycle. Side-effecting ops that route through a proposal flow transition proposed → {resolved | failed | cancelled}; non-proposing ops settle at 'resolved' on first write.
153
- */
154
- state: ("proposed" | "resolved" | "failed" | "cancelled");
155
- /**
156
- * Short reason string when state ∈ {failed, cancelled}; null otherwise. Common values: rejected, loop_aborted, timeout, policy_veto, apply_failed, write_failed. Open vocabulary — schemes mint their own as needed.
157
- */
158
- outcome: (string | null);
159
- tokens: number;
160
- });
161
- /**
162
- * URL query parameters parsed into a JSON object. Single-value keys map to strings; multi-value keys (repeated in the original query string) map to arrays of strings. Empty object when the URL has no query string; nullable usages wrap this schema in a oneOf with null.
163
- */
164
- export interface Loop {
165
- id: number;
166
- version: number;
167
- run_id: number;
168
- /**
169
- * 1-based within the run.
170
- */
171
- sequence: number;
172
- /**
173
- * Persisted loop status. Model-emittable: 100 = created (not yet started); 102 = continuing; 200 = terminal success; 499 = terminal give-up/cancellation. Engine-imposed (never a model SEND): 413 = budget overflow; 429 = max turns; 500 = failed (strike-out); 508 = loop detected (cycle).
174
- */
175
- status: (100 | 102 | 200 | 413 | 429 | 499 | 500 | 508);
176
- /**
177
- * The original user prompt for this loop, replayed on every turn.
178
- */
179
- prompt: string;
180
- }
181
18
  export type MatcherBody = (XPathBody | RegexBody | JsonPathBody | SemanticBody | GraphBody | GlobBody);
182
19
  /**
183
20
  * XPath 1.0 expression. Validated at parse time via the xpath library.
@@ -223,119 +60,10 @@ export interface GlobBody {
223
60
  dialect: "glob";
224
61
  raw: string;
225
62
  }
226
- export type PlurnkStatement = (FindStatement | ReadStatement | OpenStatement | FoldStatement | EditStatement | CopyStatement | MoveStatement | SendStatement | ExecStatement | KillStatement | PlanStatement);
227
- /**
228
- * A parsed path slot from a plurnk statement. Discriminated on `kind`: a bare local path (no scheme), a fully decomposed URL, or a path-name regex (`#pattern#flags`) that matches entries by path rather than addressing one.
229
- */
230
- export type ParsedPath = (LocalPath | UrlPath | RegexPath);
231
- /**
232
- * Parsed body of a FIND/READ/OPEN/FOLD statement, discriminated on `dialect`. The dialect is determined by the body's leading characters (`//` xpath, `#` regex, `$` jsonpath, `~` semantic, `@` graph, else glob). The regex variant carries pattern/flags split out of the `#pattern#flags` literal; the compiled `RegExp` object on the in-memory AST is a runtime ergonomic only and is not part of the persisted/wire contract.
233
- */
234
- export interface Packet {
235
- /**
236
- * Total packet tokens — sum of section subtotals.
237
- */
238
- tokens: number;
239
- system: {
240
- tokens: number;
241
- /**
242
- * text/markdown — plurnk grammar + scheme registry refs.
243
- */
244
- system_definition: string;
245
- /**
246
- * text/markdown — identity / mission.
247
- */
248
- persona: string;
249
- log: LogEntry[];
250
- };
251
- user: {
252
- tokens: number;
253
- /**
254
- * Copy of loop.prompt — never null on a continuation turn.
255
- */
256
- prompt: string;
257
- /**
258
- * Per-turn instrumentation surfaced to the model. `budget` is renderer-provided markdown describing remaining context / cost / etc. `events` carries the cross-ecosystem error/telemetry stream (parser errors, scheme dispatch failures, engine rail signals, provider faults) — consumers route on each event's `source` + `kind` discriminator.
259
- */
260
- telemetry: {
261
- /**
262
- * text/markdown — budget surface (token/cost/etc. left to spend). Empty string when nothing to surface.
263
- */
264
- budget: string;
265
- /**
266
- * TelemetryEvent[]. Empty array when nothing to surface.
267
- */
268
- events: TelemetryEvent[];
269
- };
270
- /**
271
- * text/markdown — per-turn rules.
272
- */
273
- system_requirements: string;
274
- };
275
- assistant: {
276
- /**
277
- * Raw DSL string emitted by the model.
278
- */
279
- content: string;
280
- /**
281
- * Parsed PlurnkStatement[] derived from `content`.
282
- */
283
- ops: PlurnkStatement[];
284
- /**
285
- * text/plain — provider-exposed CoT when present, null otherwise.
286
- */
287
- reasoning: (string | null);
288
- [k: string]: unknown;
289
- };
290
- assistantRaw: unknown;
291
- }
292
- /**
293
- * URL query parameters parsed into a JSON object. Single-value keys map to strings; multi-value keys (repeated in the original query string) map to arrays of strings. Empty object when the URL has no query string; nullable usages wrap this schema in a oneOf with null.
294
- */
295
- export interface TelemetryEvent {
296
- /**
297
- * Producer identifier. Top-level for self-contained subsystems (`grammar`, `engine:rail`); colon-namespaced for parameterized producers (`scheme:wiki`, `provider:openai`).
298
- */
299
- source: string;
300
- /**
301
- * Discriminator within a source. Open vocabulary — each producer mints kinds as needed. Examples: `parse_error` (grammar), `strike`/`cycle`/`sudden_death`/`no_ops`/`max_commands_exceeded` (engine:rail), `dispatch_failure` (scheme:*), `rate_limit` (provider:*).
302
- */
303
- kind: string;
304
- /**
305
- * Terse, factual message when present. Optional — engine rail kinds (strike, cycle) carry no human-meaningful message; the kind discriminator is the signal. Grammar/scheme/provider kinds typically include a message.
306
- */
307
- message?: (string | null);
308
- /**
309
- * Optional typed position. ContentOffset points into the model's prior assistant.content (parser errors); LogCoordinate points at a specific log row (action failures). Tagged union extensible: future variants for entry-coordinate, channel-coordinate, range-coordinate.
310
- */
311
- position?: (ContentOffset | LogCoordinate | null);
312
- [k: string]: unknown;
313
- }
314
- export interface ContentOffset {
315
- type: "content-offset";
316
- line: number;
317
- column: number;
318
- }
319
- export interface LogCoordinate {
320
- type: "log-coordinate";
321
- /**
322
- * Log row identity, typically `log://<loop>/<turn>/<sequence>`.
323
- */
324
- coordinate: string;
325
- /**
326
- * Optional op token (FIND/READ/EDIT/...) at the coordinate, for human-readable rendering.
327
- */
328
- op?: string;
329
- }
330
- export interface FindStatement {
331
- op: "FIND";
332
- suffix: string;
333
- signal: (string[] | null);
334
- target: (ParsedPath | null);
335
- lineMarker: (LineMarker | null);
336
- body: (MatcherBody | null);
337
- position: Position;
63
+ export interface Params {
64
+ [k: string]: (string | string[]);
338
65
  }
66
+ export type ParsedPath = (LocalPath | UrlPath | RegexPath);
339
67
  /**
340
68
  * A bare local path with no `scheme://` prefix. The raw string is stored verbatim; resolution is the runtime's job.
341
69
  */
@@ -359,7 +87,7 @@ export interface UrlPath {
359
87
  fragment: (string | null);
360
88
  }
361
89
  /**
362
- * A path-name regex `#pattern#flags` in the target slot matches entries whose path matches the pattern, rather than addressing a single path. The leading `#` is the dispatch key (collision-free: `#channel` is a postfix, never a leading form). Pattern and flags are split out for direct use; `raw` preserves the literal.
90
+ * URL query parameters parsed into a JSON object. Single-value keys map to strings; multi-value keys (repeated in the original query string) map to arrays of strings. Empty object when the URL has no query string; nullable usages wrap this schema in a oneOf with null.
363
91
  */
364
92
  export interface RegexPath {
365
93
  kind: "regex";
@@ -367,8 +95,29 @@ export interface RegexPath {
367
95
  pattern: string;
368
96
  flags: string;
369
97
  }
98
+ export type PlurnkStatement = (FindStatement | ReadStatement | OpenStatement | FoldStatement | EditStatement | CopyStatement | MoveStatement | SendStatement | ExecStatement | KillStatement | PlanStatement);
99
+ export type TagSignal = (string[] | null);
100
+ export type PathOrNull = (ParsedPath | null);
370
101
  /**
371
- * XPath 1.0 expression. Validated at parse time via the xpath library.
102
+ * A parsed path slot from a plurnk statement. Discriminated on `kind`: a bare local path (no scheme), a fully decomposed URL, or a path-name regex (`#pattern#flags`) that matches entries by path rather than addressing one.
103
+ */
104
+ export type LineMarkerOrNull = (LineMarker | null);
105
+ export type MatcherBodyOrNull = (MatcherBody | null);
106
+ /**
107
+ * Parsed body of a FIND/READ/OPEN/FOLD statement, discriminated on `dialect`. The dialect is determined by the body's leading characters (`//` xpath, `#` regex, `$` jsonpath, `~` semantic, `@` graph, else glob). The regex variant carries pattern/flags split out of the `#pattern#flags` literal; the compiled `RegExp` object on the in-memory AST is a runtime ergonomic only and is not part of the persisted/wire contract.
108
+ */
109
+ export type SendBodyOrNull = (SendBody | null);
110
+ export interface FindStatement {
111
+ op: "FIND";
112
+ suffix: string;
113
+ signal: TagSignal;
114
+ target: PathOrNull;
115
+ lineMarker: LineMarkerOrNull;
116
+ body: MatcherBodyOrNull;
117
+ position: Position;
118
+ }
119
+ /**
120
+ * A bare local path with no `scheme://` prefix. The raw string is stored verbatim; resolution is the runtime's job.
372
121
  */
373
122
  export interface Position {
374
123
  line: number;
@@ -377,64 +126,64 @@ export interface Position {
377
126
  export interface ReadStatement {
378
127
  op: "READ";
379
128
  suffix: string;
380
- signal: (string[] | null);
381
- target: (ParsedPath | null);
382
- lineMarker: (LineMarker | null);
383
- body: (MatcherBody | null);
129
+ signal: TagSignal;
130
+ target: PathOrNull;
131
+ lineMarker: LineMarkerOrNull;
132
+ body: MatcherBodyOrNull;
384
133
  position: Position;
385
134
  }
386
135
  export interface OpenStatement {
387
136
  op: "OPEN";
388
137
  suffix: string;
389
- signal: (string[] | null);
390
- target: (ParsedPath | null);
391
- lineMarker: (LineMarker | null);
392
- body: (MatcherBody | null);
138
+ signal: TagSignal;
139
+ target: PathOrNull;
140
+ lineMarker: LineMarkerOrNull;
141
+ body: MatcherBodyOrNull;
393
142
  position: Position;
394
143
  }
395
144
  export interface FoldStatement {
396
145
  op: "FOLD";
397
146
  suffix: string;
398
- signal: (string[] | null);
399
- target: (ParsedPath | null);
400
- lineMarker: (LineMarker | null);
401
- body: (MatcherBody | null);
147
+ signal: TagSignal;
148
+ target: PathOrNull;
149
+ lineMarker: LineMarkerOrNull;
150
+ body: MatcherBodyOrNull;
402
151
  position: Position;
403
152
  }
404
153
  export interface EditStatement {
405
154
  op: "EDIT";
406
155
  suffix: string;
407
- signal: (string[] | null);
408
- target: (ParsedPath | null);
409
- lineMarker: (LineMarker | null);
156
+ signal: TagSignal;
157
+ target: PathOrNull;
158
+ lineMarker: LineMarkerOrNull;
410
159
  body: (string | null);
411
160
  position: Position;
412
161
  }
413
162
  export interface CopyStatement {
414
163
  op: "COPY";
415
164
  suffix: string;
416
- signal: (string[] | null);
417
- target: (ParsedPath | null);
418
- lineMarker: (LineMarker | null);
165
+ signal: TagSignal;
166
+ target: PathOrNull;
167
+ lineMarker: LineMarkerOrNull;
419
168
  body: (string | null);
420
169
  position: Position;
421
170
  }
422
171
  export interface MoveStatement {
423
172
  op: "MOVE";
424
173
  suffix: string;
425
- signal: (string[] | null);
426
- target: (ParsedPath | null);
427
- lineMarker: (LineMarker | null);
428
- body: (ParsedPath | null);
174
+ signal: TagSignal;
175
+ target: PathOrNull;
176
+ lineMarker: LineMarkerOrNull;
177
+ body: PathOrNull;
429
178
  position: Position;
430
179
  }
431
180
  export interface SendStatement {
432
181
  op: "SEND";
433
182
  suffix: string;
434
183
  signal: (number | null);
435
- target: (ParsedPath | null);
184
+ target: PathOrNull;
436
185
  lineMarker: null;
437
- body: (SendBody | null);
186
+ body: SendBodyOrNull;
438
187
  position: Position;
439
188
  }
440
189
  /**
@@ -448,7 +197,7 @@ export interface ExecStatement {
448
197
  op: "EXEC";
449
198
  suffix: string;
450
199
  signal: (string | null);
451
- target: (ParsedPath | null);
200
+ target: PathOrNull;
452
201
  lineMarker: null;
453
202
  body: (string | null);
454
203
  position: Position;
@@ -457,7 +206,7 @@ export interface KillStatement {
457
206
  op: "KILL";
458
207
  suffix: string;
459
208
  signal: (number | null);
460
- target: (ParsedPath | null);
209
+ target: PathOrNull;
461
210
  lineMarker: null;
462
211
  body: (string | null);
463
212
  position: Position;
@@ -465,91 +214,89 @@ export interface KillStatement {
465
214
  export interface PlanStatement {
466
215
  op: "PLAN";
467
216
  suffix: string;
468
- signal: (string[] | null);
469
- target: (ParsedPath | null);
470
- lineMarker: (LineMarker | null);
217
+ signal: TagSignal;
218
+ target: PathOrNull;
219
+ lineMarker: LineMarkerOrNull;
471
220
  body: (string | null);
472
221
  position: Position;
473
222
  }
474
- export type TagSignal = (string[] | null);
475
- export type PathOrNull = (ParsedPath | null);
476
- /**
477
- * A parsed path slot from a plurnk statement. Discriminated on `kind`: a bare local path (no scheme), a fully decomposed URL, or a path-name regex (`#pattern#flags`) that matches entries by path rather than addressing one.
478
- */
479
- export type LineMarkerOrNull = (LineMarker | null);
480
- export type MatcherBodyOrNull = (MatcherBody | null);
481
- /**
482
- * Parsed body of a FIND/READ/OPEN/FOLD statement, discriminated on `dialect`. The dialect is determined by the body's leading characters (`//` xpath, `#` regex, `$` jsonpath, `~` semantic, `@` graph, else glob). The regex variant carries pattern/flags split out of the `#pattern#flags` literal; the compiled `RegExp` object on the in-memory AST is a runtime ergonomic only and is not part of the persisted/wire contract.
483
- */
484
- export type SendBodyOrNull = (SendBody | null);
485
- export interface Run {
486
- id: number;
487
- version: number;
488
- session_id: number;
223
+ export interface ProviderDeclaration {
489
224
  /**
490
- * Unique within the session. Auto-populated default form `run-{unixtime}` until renamed. Clients display this; cross-table references use `id` so renames don't cascade-break.
225
+ * API vendor identifier (e.g. "local", "openrouter", "anthropic", "openai").
491
226
  */
492
- name: string;
493
- created_at: string;
227
+ provider: string;
228
+ /**
229
+ * Model family (e.g. "gemma", "llama", "qwen", "claude", "gpt", "gemini").
230
+ */
231
+ family: string;
494
232
  /**
495
- * FK to parent run when this is a fork; null for the trunk run.
233
+ * Specific model id (e.g. "gemma3-12b").
234
+ */
235
+ model: string;
236
+ /**
237
+ * Total context window in tokens.
496
238
  */
497
- parent_run_id: (number | null);
239
+ contextSize: number;
498
240
  /**
499
- * Cumulative cost across this run's turns, in pico-units of the active provider's currency.
241
+ * ISO 4217 code; the unit `cost_pico` is denominated in.
500
242
  */
501
- cost_pico: number;
243
+ currency: string;
502
244
  }
503
- export interface Session {
504
- id: number;
505
- version: number;
245
+ export interface SchemeRegistration {
506
246
  /**
507
- * Unique within the agent. Auto-populated default form `session-{unixtime}` until renamed. Clients display this; cross-table references use `id` so renames don't cascade-break.
247
+ * Scheme name without `://`. Matches the URL scheme character class.
508
248
  */
509
249
  name: string;
510
- created_at: string;
250
+ model_visible: boolean;
251
+ category: string;
252
+ default_scope: ("session" | "run");
253
+ /**
254
+ * Channel name selected when an op against this scheme has no fragment. Conventionally `body`; executor schemes (`{tag}://`) typically declare `stdout`.
255
+ */
256
+ default_channel: string;
511
257
  /**
512
- * Cumulative cost across this session's runs.
258
+ * Per-channel content-orientation hints. `head` = whole-document or front-anchored (readers care about the beginning); `tail` = append-temporal stream (readers care about the latest content). Channels not listed default to `head`. Renderers use this to pick truncation direction; the amount to render is a core/runtime concern, not a contract field.
513
259
  */
514
- cost_pico: number;
515
- scheme_registry_additions: SchemeRegistration[];
260
+ channel_orientations?: {
261
+ [k: string]: ("head" | "tail");
262
+ };
263
+ writable_by: ("model" | "client" | "system" | "plugin")[];
264
+ volatile: boolean;
265
+ handler: (string | null);
516
266
  }
517
- /**
518
- * A scheme entry in the agent's scheme registry. Defines what `<name>://` resolves to and how it's accessible.
519
- */
520
- export interface Turn {
521
- id: number;
522
- version: number;
523
- loop_id: number;
267
+ export interface TelemetryEvent {
524
268
  /**
525
- * 1-based within the loop; resets at each new loop.
269
+ * Producer identifier. Top-level for self-contained subsystems (`grammar`, `engine:rail`); colon-namespaced for parameterized producers (`scheme:wiki`, `provider:openai`).
526
270
  */
527
- sequence: number;
528
- timestamp: string;
529
- status: number;
271
+ source: string;
530
272
  /**
531
- * Provider-returned token counts and computed cost.
273
+ * Discriminator within a source. Open vocabulary — each producer mints kinds as needed. Examples: `parse_error` (grammar), `strike`/`cycle`/`sudden_death`/`no_ops`/`max_commands_exceeded` (engine:rail), `dispatch_failure` (scheme:*), `rate_limit` (provider:*).
532
274
  */
533
- usage: {
534
- prompt: number;
535
- completion: number;
536
- cached: number;
537
- /**
538
- * Per-turn cost in pico-units of the active provider's currency.
539
- */
540
- cost_pico: number;
541
- };
275
+ kind: string;
542
276
  /**
543
- * Provider-reported completion-state token (`stop` | `length` | `tool_calls` | `content_filter` | provider-specific). Null when not reported. Distinct from `status` (HTTP-aligned turn outcome); `finish_reason` describes how the model stopped, `status` describes how the turn resolved.
277
+ * Terse, factual message when present. Optional engine rail kinds (strike, cycle) carry no human-meaningful message; the kind discriminator is the signal. Grammar/scheme/provider kinds typically include a message.
544
278
  */
545
- finish_reason: (string | null);
279
+ message?: (string | null);
546
280
  /**
547
- * Wire-reported model identifier. May differ from `agent.provider.model` for routing-relay providers (OpenRouter, etc.); the verification surface for served-vs-requested alignment.
281
+ * Optional typed position. ContentOffset points into the model's prior assistant.content (parser errors); LogCoordinate points at a specific log row (action failures). Tagged union extensible: future variants for entry-coordinate, channel-coordinate, range-coordinate.
548
282
  */
549
- model: string;
550
- packet: Packet;
283
+ position?: (ContentOffset | LogCoordinate | null);
284
+ [k: string]: unknown;
285
+ }
286
+ export interface ContentOffset {
287
+ type: "content-offset";
288
+ line: number;
289
+ column: number;
290
+ }
291
+ export interface LogCoordinate {
292
+ type: "log-coordinate";
293
+ /**
294
+ * Log row identity, typically `log://<loop>/<turn>/<sequence>`.
295
+ */
296
+ coordinate: string;
297
+ /**
298
+ * Optional op token (FIND/READ/EDIT/...) at the coordinate, for human-readable rendering.
299
+ */
300
+ op?: string;
551
301
  }
552
- /**
553
- * One turn's full exchange with the provider: { system, user, assistant, assistantRaw }. system aggregates durable + accumulating context (definition, persona, in-scope log rows). user carries the per-turn ephemera. assistant is the provider-normalized output. assistantRaw is opaque.
554
- */
555
302
  //# sourceMappingURL=types.generated.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.generated.d.ts","sourceRoot":"","sources":["../../src/types.generated.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,KAAK;IACtB,OAAO,EAAE,MAAM,CAAA;IACf,QAAQ,EAAE,mBAAmB,CAAA;IAC7B;;OAEG;IACH,eAAe,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AAA;IACZ,aAAa,EAAE,OAAO,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,aAAa,EAAE,CAAC,SAAS,GAAG,KAAK,CAAC,CAAA;IAClC;;OAEG;IACH,eAAe,EAAE,MAAM,CAAA;IACvB;;OAEG;IACH,oBAAoB,CAAC,EAAE;QACvB,CAAC,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,GAAG,MAAM,CAAC,CAAA;KAC7B,CAAA;IACD,WAAW,EAAE,CAAC,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC,EAAE,CAAA;IACzD,QAAQ,EAAE,OAAO,CAAA;IACjB,OAAO,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;CACvB;AAED,MAAM,WAAW,cAAc;IAC/B;;OAEG;IACH,MAAM,EAAE,MAAM,CAAA;IACd;;OAEG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;OAEG;IACH,OAAO,CAAC,EAAE,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IACzB;;OAEG;IACH,QAAQ,CAAC,EAAE,CAAC,aAAa,GAAG,aAAa,GAAG,IAAI,CAAC,CAAA;IACjD,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACnB;AAED,MAAM,WAAW,aAAa;IAC9B,IAAI,EAAE,gBAAgB,CAAA;IACtB,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,aAAa;IAC9B,IAAI,EAAE,gBAAgB,CAAA;IACtB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,CAAA;CACV"}
@@ -1,7 +1,4 @@
1
1
  // @generated by scriptify/generate-types.ts from schema/*.json
2
2
  // DO NOT EDIT — run `npm run build:types` to regenerate.
3
3
  export {};
4
- /**
5
- * One turn's full exchange with the provider: { system, user, assistant, assistantRaw }. system aggregates durable + accumulating context (definition, persona, in-scope log rows). user carries the per-turn ephemera. assistant is the provider-normalized output. assistantRaw is opaque.
6
- */
7
4
  //# sourceMappingURL=types.generated.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.generated.js","sourceRoot":"","sources":["../../src/types.generated.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,yDAAyD;;AA2lBzD;;GAEG"}
1
+ {"version":3,"file":"types.generated.js","sourceRoot":"","sources":["../../src/types.generated.ts"],"names":[],"mappings":"AAAA,+DAA+D;AAC/D,yDAAyD"}