ytdb-slate 0.19.0 → 0.20.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.
- package/CHANGELOG.md +6 -0
- package/README.md +1 -1
- package/docs/configuration.md +7 -3
- package/docs/context-budget.md +100 -112
- package/docs/model-routing.md +6 -2
- package/docs/safety-and-trust.md +1 -1
- package/extension/handoff.ts +14 -18
- package/extension/logical-model-definitions.ts +5 -3
- package/extension/mode.ts +1 -1
- package/extension/model-default.ts +3 -3
- package/extension/notification-native.ts +8 -2
- package/extension/state.ts +1 -1
- package/extension/tools.ts +167 -48
- package/extension/worker.ts +6 -6
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Approved update notes for Slate releases appear here.
|
|
4
4
|
|
|
5
|
+
## [0.20.0]
|
|
6
|
+
|
|
7
|
+
Slate now uses a default `contextBudget` of 400,000 tokens for every provider. Sessions with a provider other than Anthropic can run longer before a handoff to a new session. The `threads` tool now returns short pages and uses less context. Native notifications on Windows now find Windows PowerShell under a different Start menu name. Use pi 1.6.0 or later.
|
|
8
|
+
|
|
9
|
+
https://github.com/JetBrains/ytdb-slate/releases/tag/v0.20.0
|
|
10
|
+
|
|
5
11
|
## [0.19.0]
|
|
6
12
|
|
|
7
13
|
Slate now recommends Sol 6.2 for most worker tasks, Astra 6.2 for design reviews, and Fable 5.2 to diagnose repeated implementation failures. Use pi 1.5.2 or later. Check your model list before updating. Slate now sends worker output to OpenAI for summaries by default. You can keep Anthropic Sonnet 5.5 in `router.compressor.models`.
|
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ Slate comes from the [YouTrackDB](https://github.com/JetBrains/youtrackdb) team,
|
|
|
17
17
|
|
|
18
18
|
## Quick start
|
|
19
19
|
|
|
20
|
-
Use pi 1.
|
|
20
|
+
Use pi 1.6.0 or later. Older pi can load Slate but is unsupported. Slate has no runtime version warning. Install and authenticate [pi](https://pi.dev/docs/latest/quickstart), then pin Slate in your project:
|
|
21
21
|
|
|
22
22
|
```bash
|
|
23
23
|
pi install -l npm:ytdb-slate@<version>
|
package/docs/configuration.md
CHANGED
|
@@ -67,7 +67,7 @@ The project must be trusted before Slate reads this file. Start a new session af
|
|
|
67
67
|
| `requestThrottle.baseWaitMs` | number | `1000` | Base delay before a blocked request rechecks capacity. The value must be a whole number from 1 through 60000. A positive minimum prevents a repeated zero-delay loop. |
|
|
68
68
|
| `requestThrottle.jitterMs` | number | `1000` | Uniform random extra delay from zero through this inclusive bound before a blocked request rechecks. The value must be a whole number from 0 through 60000. Admission is approximately fair. It is not first-in-first-out and does not promise a bounded wait. |
|
|
69
69
|
| `maxConcurrent` | number | `8` | Maximum concurrent worker actions per manager. Accepts positive safe integers only. Invalid input warns and selects 8. Excess actions wait for a slot. Every action has its own thread. See the worker-limit guidance below and `docs/design-principles.md` §5. |
|
|
70
|
-
| `contextBudget` | number \| object | `
|
|
70
|
+
| `contextBudget` | number \| object | `400000` | Sets the orchestrator's pause threshold in tokens. Slate lowers the threshold when the model's context window requires it. See [Orchestrator context budget](context-budget.md) for the handoff and per-model overrides. |
|
|
71
71
|
| `orchestratorPromptDocs` | string[] | `[]` | Markdown files whose paths follow the source rules above and whose **contents** are appended to the orchestrator system prompt. |
|
|
72
72
|
| `workerPromptDocs` | string[] | `[]` | Markdown files whose **contents** are appended to every worker-thread system prompt. |
|
|
73
73
|
| `workflow.draftPRs` | boolean | `false` | Enable one draft pull request for the whole change on one branch. See [pr-publishing.md](pr-publishing.md) § One draft pull request and § Creation. |
|
|
@@ -381,9 +381,13 @@ A native failure does not stop other channels.
|
|
|
381
381
|
| --- | --- | --- |
|
|
382
382
|
| Linux | `notify-send` from an absolute search-path directory outside the project and `node_modules`. A desktop display and a user notification service must be available in pi's environment. | 5,000 milliseconds |
|
|
383
383
|
| macOS | `/usr/bin/osascript` uses the user's notification service. Check the notification permission for the sender on your machine. | 5,000 milliseconds |
|
|
384
|
-
| Windows | Windows PowerShell 5.1 at the system path. Slate
|
|
384
|
+
| Windows | Windows PowerShell 5.1 at the system path. Slate needs a registered entry in the Start applications folder. | 10,000 milliseconds |
|
|
385
385
|
|
|
386
|
-
|
|
386
|
+
Slate selects the first entry named `Windows PowerShell`, ignoring case.
|
|
387
|
+
If no entry has that name, Slate compares each entry's registered application identity with one fixed value.
|
|
388
|
+
That value is the identity Windows registers for the system Windows PowerShell executable.
|
|
389
|
+
Slate selects the first match.
|
|
390
|
+
Slate does not inspect shortcut targets.
|
|
387
391
|
The Start applications folder is the application list that `Get-StartApps` enumerates.
|
|
388
392
|
The production helper reads that folder directly and disables PowerShell module auto-loading.
|
|
389
393
|
|
package/docs/context-budget.md
CHANGED
|
@@ -17,7 +17,7 @@ For example, 40% of the `anthropic/claude-sonnet-5-5` window is 400,000 tokens.
|
|
|
17
17
|
For `openai/gpt-6.1-sol`, 40% is 108,800 tokens.
|
|
18
18
|
An absolute budget states the token count directly.
|
|
19
19
|
|
|
20
|
-
##
|
|
20
|
+
## OpenAI long-context pricing
|
|
21
21
|
|
|
22
22
|
For `openai/gpt-6.1-sol`, a request above 272,000 input tokens uses long-context
|
|
23
23
|
rates for the full request. The input and cache rates double.
|
|
@@ -32,18 +32,14 @@ The registered rates in dollars per million tokens are:
|
|
|
32
32
|
| Cache write | 2.50 | 5 |
|
|
33
33
|
|
|
34
34
|
An agent loop resends the conversation on each turn.
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
pause the orchestrator before a request crosses this boundary.
|
|
35
|
+
A prompt cache hit can lower the cost of reused input tokens.
|
|
36
|
+
Cached tokens still count toward the pricing boundary and the context window.
|
|
38
37
|
|
|
39
|
-
##
|
|
38
|
+
## Default
|
|
40
39
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
- **`anthropic/.*` → 400,000** — a built-in override for Anthropic
|
|
45
|
-
models, preserving continuity with the previous 40%-of-1M default
|
|
46
|
-
on flagship Claude.
|
|
40
|
+
The built-in budget is **400,000 tokens** for every provider.
|
|
41
|
+
The [clamp](#the-clamp) can lower the effective budget for smaller windows.
|
|
42
|
+
The budget is a pause threshold, not a price limit.
|
|
47
43
|
|
|
48
44
|
## Configuration
|
|
49
45
|
|
|
@@ -60,38 +56,32 @@ or an object:
|
|
|
60
56
|
```json
|
|
61
57
|
{
|
|
62
58
|
"contextBudget": {
|
|
63
|
-
"tokens":
|
|
59
|
+
"tokens": 350000,
|
|
64
60
|
"overrides": [
|
|
65
|
-
{ "match": "openai/gpt-6\\.1-sol", "tokens": 240000 }
|
|
66
|
-
{ "match": "anthropic/.*", "tokens": 400000 }
|
|
61
|
+
{ "match": "openai/gpt-6\\.1-sol", "tokens": 240000 }
|
|
67
62
|
]
|
|
68
63
|
}
|
|
69
64
|
}
|
|
70
65
|
```
|
|
71
66
|
|
|
72
|
-
Each override's `match` is
|
|
73
|
-
`provider/id`
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
warned about and never silently changes behavior; what applies
|
|
77
|
-
afterwards depends on where the damage is:
|
|
67
|
+
Each override's `match` is a regular expression that matches the full
|
|
68
|
+
`provider/id` value. Slate uses the first matching override in file order.
|
|
69
|
+
Without a match, Slate uses `tokens` if set, or the built-in default.
|
|
70
|
+
Slate warns about invalid input:
|
|
78
71
|
|
|
79
72
|
- An invalid WHOLE value (bad number, wrong type) is treated as if
|
|
80
73
|
`contextBudget` were unset: legacy percent mode if
|
|
81
|
-
`pauseThresholdPercent` is configured, built-in budget
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
fill the scalar layer.
|
|
86
|
-
- An invalid override entry is skipped — the next layer of the
|
|
87
|
-
precedence chain applies.
|
|
74
|
+
`pauseThresholdPercent` is configured, or the built-in budget otherwise.
|
|
75
|
+
- Slate drops an invalid `tokens` value from an otherwise valid object.
|
|
76
|
+
The object still selects budget mode.
|
|
77
|
+
- Slate skips an invalid override entry.
|
|
88
78
|
|
|
89
79
|
Legacy note: `pauseThresholdPercent` is deprecated; it keeps its
|
|
90
80
|
exact old semantics only when it is set AND `contextBudget` is
|
|
91
81
|
absent or entirely invalid — an invalid budget sanitizes to absent
|
|
92
82
|
and never disables the percent. A PARTIALLY invalid object (e.g.
|
|
93
83
|
`{"tokens": -1}`) remains a valid budget object: budget mode with
|
|
94
|
-
built-in
|
|
84
|
+
the built-in budget, percent ignored.
|
|
95
85
|
|
|
96
86
|
## The clamp
|
|
97
87
|
|
|
@@ -113,16 +103,20 @@ immediately but mid-session settings-file edits do not. If the settings reader
|
|
|
113
103
|
fails, Slate keeps its fallback of 16,384. The formula and half-window floor
|
|
114
104
|
above remain unchanged.
|
|
115
105
|
|
|
116
|
-
|
|
106
|
+
With the built-in budget and the default compaction reserve:
|
|
107
|
+
|
|
108
|
+
| Context window (tokens) | Effective budget (tokens) |
|
|
117
109
|
| --- | --- |
|
|
118
|
-
|
|
|
119
|
-
|
|
|
120
|
-
|
|
|
121
|
-
|
|
|
110
|
+
| 200,000 | 150,848 |
|
|
111
|
+
| 272,000 | 222,848 |
|
|
112
|
+
| 400,000 | 350,848 |
|
|
113
|
+
| 1,000,000 | 400,000 |
|
|
122
114
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
115
|
+
The clamp subtracts a 32,768-token margin from Pi's compaction threshold
|
|
116
|
+
(the context window minus the reserve). The half-window floor can reduce
|
|
117
|
+
this margin. With a large reserve, the floor can put the pause threshold
|
|
118
|
+
above Pi's compaction threshold. Slate can cancel the first threshold
|
|
119
|
+
compaction and pause instead. This does not guarantee room for the brief.
|
|
126
120
|
|
|
127
121
|
## Writing-reminder cadence
|
|
128
122
|
|
|
@@ -203,28 +197,28 @@ characters. Tool names use 64 characters. Descriptions use 140 characters.
|
|
|
203
197
|
|
|
204
198
|
| fixture | paths | portable characters | lines |
|
|
205
199
|
| --- | ---: | ---: | ---: |
|
|
206
|
-
| shipped logical section | 0 |
|
|
207
|
-
| trusted shipped-default doctrine | 5 |
|
|
200
|
+
| shipped logical section | 0 | 4,528 | 9 |
|
|
201
|
+
| trusted shipped-default doctrine | 5 | 9,336 | 72 |
|
|
208
202
|
| untrusted doctrine without a home configuration file | 4 | 2,711 | 33 |
|
|
209
|
-
| draft pull requests, shipped policy | 6 |
|
|
210
|
-
| capped workers, shipped policy | 5 |
|
|
211
|
-
| draft plus capped workers | 6 | 10,
|
|
212
|
-
| deferred issues plus capped workers | 5 | 10,
|
|
213
|
-
| routing recommendations plus capped workers | 5 | 10,
|
|
214
|
-
| draft plus deferred issues and capped workers | 6 | 10,
|
|
215
|
-
| draft plus routing recommendations and capped workers | 6 | 10,
|
|
216
|
-
| deferred issues plus routing recommendations and capped workers | 5 | 10,
|
|
217
|
-
| canonical maximal baseline with all workflow options | 6 | 10,
|
|
218
|
-
| maximal baseline with an open change | 6 |
|
|
219
|
-
| maximal baseline with source and legacy root log | 6 |
|
|
220
|
-
| dogfood `.pi/slate.json` and its two extension units | 6 |
|
|
203
|
+
| draft pull requests, shipped policy | 6 | 9,406 | 73 |
|
|
204
|
+
| capped workers, shipped policy | 5 | 10,683 | 82 |
|
|
205
|
+
| draft plus capped workers | 6 | 10,753 | 83 |
|
|
206
|
+
| deferred issues plus capped workers | 5 | 10,757 | 83 |
|
|
207
|
+
| routing recommendations plus capped workers | 5 | 10,736 | 83 |
|
|
208
|
+
| draft plus deferred issues and capped workers | 6 | 10,827 | 84 |
|
|
209
|
+
| draft plus routing recommendations and capped workers | 6 | 10,802 | 84 |
|
|
210
|
+
| deferred issues plus routing recommendations and capped workers | 5 | 10,810 | 84 |
|
|
211
|
+
| canonical maximal baseline with all workflow options | 6 | 10,876 | 85 |
|
|
212
|
+
| maximal baseline with an open change | 6 | 11,074 | 86 |
|
|
213
|
+
| maximal baseline with source and legacy root log | 6 | 11,304 | 88 |
|
|
214
|
+
| dogfood `.pi/slate.json` and its two extension units | 6 | 10,001 | 84 |
|
|
221
215
|
| runtime boundary plus draft and capped workers, source and legacy log | 6 | 26,053 | 86 |
|
|
222
216
|
| runtime boundary plus draft and deferred issues, source and legacy log | 6 | 26,127 | 87 |
|
|
223
217
|
| runtime boundary plus routing recommendations, source and legacy log | 5 | 26,036 | 86 |
|
|
224
218
|
| runtime boundary plus deferred issues and routing recommendations, source and legacy log | 5 | 26,110 | 87 |
|
|
225
219
|
| runtime boundary plus draft and routing recommendations, source and legacy log | 6 | 26,102 | 87 |
|
|
226
220
|
| same boundary composition plus deferred issues | 6 | 26,176 | 88 |
|
|
227
|
-
| valid shipped policy plus 88 capped worker tools, source and legacy log | 6 | 28,
|
|
221
|
+
| valid shipped policy plus 88 capped worker tools, source and legacy log | 6 | 28,978 | 171 |
|
|
228
222
|
|
|
229
223
|
An untrusted session with an empty home `slate.json` receives the same doctrine
|
|
230
224
|
as the trusted shipped-default fixture above. It includes routing and writing
|
|
@@ -235,7 +229,7 @@ project preferences can.
|
|
|
235
229
|
The canonical maximal baseline uses all four default logical models, all
|
|
236
230
|
three workflow options, and the fixed capped worker roster. Its largest variant
|
|
237
231
|
has an open change, one direct source folder, and a legacy root log. Its
|
|
238
|
-
five-percent requirement is `ceil(
|
|
232
|
+
five-percent requirement is `ceil(11,304 × 1.05) = 11,870`.
|
|
239
233
|
The 26,300 whole-doctrine ceiling exceeds it. The table pins all eight
|
|
240
234
|
combinations of the three workflow options with the capped worker roster. The
|
|
241
235
|
dogfood row reads the actual project configuration. A change to `.pi/slate.json` requires a fresh render.
|
|
@@ -252,8 +246,8 @@ the first value beyond the ceiling.
|
|
|
252
246
|
|
|
253
247
|
The over-cap counterfactual uses a valid shipped logical policy and one supported
|
|
254
248
|
worker-extension unit with 88 capped tools. It also includes an open change,
|
|
255
|
-
its source, and the legacy root log. Its 28,
|
|
256
|
-
the whole-doctrine ceiling by
|
|
249
|
+
its source, and the legacy root log. Its 28,978 portable characters exceed
|
|
250
|
+
the whole-doctrine ceiling by 2,678. The check therefore detects whole-doctrine
|
|
257
251
|
growth without using a retired model-row shape or an assumed per-tool increment.
|
|
258
252
|
Worker-extension doctrine has no runtime size cap, so the fixture reaches the
|
|
259
253
|
whole-doctrine guard rather than failing logical-policy validation first.
|
|
@@ -268,8 +262,8 @@ Check the phase-row table with `test/workflow-context-budget.test.ts`.
|
|
|
268
262
|
The logical-section limits remain 19,400 characters and 105 lines. The
|
|
269
263
|
all-tail limit remains 24,600 characters. The whole-doctrine ceiling is 26,300 characters.
|
|
270
264
|
|
|
271
|
-
The shipped model policy section has a separate limit of
|
|
272
|
-
characters and 9 lines. The character limit is the measured
|
|
265
|
+
The shipped model policy section has a separate limit of 4,755 portable
|
|
266
|
+
characters and 9 lines. The character limit is the measured 4,528 characters
|
|
273
267
|
plus five percent reserve, rounded up. The line limit has no reserve.
|
|
274
268
|
A fifth default model needs a new user approval. A higher limit requires a new user
|
|
275
269
|
approval.
|
|
@@ -516,26 +510,20 @@ compression request uses a context window of at least 1,050,000 tokens, as
|
|
|
516
510
|
|
|
517
511
|
## Accepted limitations
|
|
518
512
|
|
|
519
|
-
-
|
|
520
|
-
|
|
521
|
-
This
|
|
522
|
-
|
|
523
|
-
With the default
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
the
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
of the clamp binds (context window ≥ ~98K with the default
|
|
534
|
-
16,384-token reserve); on smaller, floor-clamped windows the
|
|
535
|
-
pre-compaction margin is narrower. Beyond the margin a pass-through
|
|
536
|
-
compaction can land in the same cycle and the handoff brief is
|
|
537
|
-
written from compacted context — episodes and thread state survive
|
|
538
|
-
on disk, so handoff still functions.
|
|
513
|
+
- If the effective pause threshold exceeds the active model's pricing
|
|
514
|
+
boundary, a request can use the higher rates before Slate pauses.
|
|
515
|
+
This can happen with an expanded window or a larger registered window.
|
|
516
|
+
For example, Pi registers `openai-codex/gpt-6.1-sol` with a 500,000-token
|
|
517
|
+
window. With the default reserve, the built-in pause threshold is 400,000
|
|
518
|
+
tokens, above the pricing boundary of 272,000 input tokens.
|
|
519
|
+
To leave more room before the boundary, set a lower budget, such as
|
|
520
|
+
240,000 tokens. Match the override to the active `provider/id`.
|
|
521
|
+
The example override matches only `openai/gpt-6.1-sol`.
|
|
522
|
+
One large turn can still cross the pricing boundary before the pause.
|
|
523
|
+
- A large turn can cross both the pause and compaction thresholds.
|
|
524
|
+
If Slate has already paused, Pi can compact the context before the
|
|
525
|
+
orchestrator writes the handoff brief. Episodes and thread state remain
|
|
526
|
+
on disk.
|
|
539
527
|
- The doctrine sizes above cover the stated fixtures only. A project that
|
|
540
528
|
injects `doctrineExtraPath` or `orchestratorPromptDocs` pays for those on top.
|
|
541
529
|
A larger worker-extension roster also adds context beyond the representative
|
|
@@ -581,42 +569,42 @@ reads. Any subset fits because removing ranges cannot increase union size.
|
|
|
581
569
|
|
|
582
570
|
| Phase | Publishing | Plan | Required bytes | Estimated tokens | Byte limit | Token limit | Conditional maximum bytes | Estimated tokens | Byte limit | Token limit |
|
|
583
571
|
| --- | --- | --- | ---: | ---: | ---: | ---: | ---: | ---: | ---: | ---: |
|
|
584
|
-
| 1. Research | off | ordinary |
|
|
585
|
-
| 1. Research | off | nested |
|
|
586
|
-
| 1. Research | on | ordinary |
|
|
587
|
-
| 1. Research | on | nested |
|
|
588
|
-
| 2. Risk assessment | off | ordinary |
|
|
589
|
-
| 2. Risk assessment | off | nested |
|
|
590
|
-
| 2. Risk assessment | on | ordinary |
|
|
591
|
-
| 2. Risk assessment | on | nested |
|
|
592
|
-
| 3. Design validation | off | ordinary |
|
|
593
|
-
| 3. Design validation | off | nested |
|
|
594
|
-
| 3. Design validation | on | ordinary |
|
|
595
|
-
| 3. Design validation | on | nested |
|
|
596
|
-
| 4. Focus reconfirmation | off | ordinary |
|
|
597
|
-
| 4. Focus reconfirmation | off | nested |
|
|
598
|
-
| 4. Focus reconfirmation | on | ordinary |
|
|
599
|
-
| 4. Focus reconfirmation | on | nested |
|
|
600
|
-
| 5. Adversarial design review | off | ordinary |
|
|
601
|
-
| 5. Adversarial design review | off | nested |
|
|
602
|
-
| 5. Adversarial design review | on | ordinary |
|
|
603
|
-
| 5. Adversarial design review | on | nested |
|
|
604
|
-
| 6. Final design approval | off | ordinary |
|
|
605
|
-
| 6. Final design approval | off | nested |
|
|
606
|
-
| 6. Final design approval | on | ordinary |
|
|
607
|
-
| 6. Final design approval | on | nested |
|
|
608
|
-
| 7. Track loop | off | ordinary |
|
|
609
|
-
| 7. Track loop | off | nested |
|
|
610
|
-
| 7. Track loop | on | ordinary |
|
|
611
|
-
| 7. Track loop | on | nested |
|
|
612
|
-
| 8. Final acceptance | off | ordinary |
|
|
613
|
-
| 8. Final acceptance | off | nested |
|
|
614
|
-
| 8. Final acceptance | on | ordinary |
|
|
615
|
-
| 8. Final acceptance | on | nested |
|
|
616
|
-
| 9. Delivery | off | ordinary |
|
|
617
|
-
| 9. Delivery | off | nested |
|
|
618
|
-
| 9. Delivery | on | ordinary |
|
|
619
|
-
| 9. Delivery | on | nested |
|
|
572
|
+
| 1. Research | off | ordinary | 76439 | 19110 | 76835 | 19209 | 145422 | 36356 | 145471 | 36368 |
|
|
573
|
+
| 1. Research | off | nested | 91724 | 22931 | 129137 | 32285 | 160707 | 40177 | 197773 | 49444 |
|
|
574
|
+
| 1. Research | on | ordinary | 87951 | 21988 | 92700 | 23175 | 156934 | 39234 | 161336 | 40334 |
|
|
575
|
+
| 1. Research | on | nested | 103236 | 25809 | 145981 | 36496 | 172219 | 43055 | 214617 | 53655 |
|
|
576
|
+
| 2. Risk assessment | off | ordinary | 112832 | 28208 | 114401 | 28601 | 181815 | 45454 | 183038 | 45760 |
|
|
577
|
+
| 2. Risk assessment | off | nested | 128117 | 32030 | 167682 | 41921 | 197100 | 49275 | 236319 | 59080 |
|
|
578
|
+
| 2. Risk assessment | on | ordinary | 124344 | 31086 | 131245 | 32812 | 193327 | 48332 | 199882 | 49971 |
|
|
579
|
+
| 2. Risk assessment | on | nested | 139629 | 34908 | 184526 | 46132 | 208612 | 52153 | 253163 | 63291 |
|
|
580
|
+
| 3. Design validation | off | ordinary | 112832 | 28208 | 114401 | 28601 | 181815 | 45454 | 183038 | 45760 |
|
|
581
|
+
| 3. Design validation | off | nested | 128117 | 32030 | 167682 | 41921 | 197100 | 49275 | 236319 | 59080 |
|
|
582
|
+
| 3. Design validation | on | ordinary | 124344 | 31086 | 131245 | 32812 | 193327 | 48332 | 199882 | 49971 |
|
|
583
|
+
| 3. Design validation | on | nested | 139629 | 34908 | 184526 | 46132 | 208612 | 52153 | 253163 | 63291 |
|
|
584
|
+
| 4. Focus reconfirmation | off | ordinary | 112832 | 28208 | 114401 | 28601 | 181815 | 45454 | 183038 | 45760 |
|
|
585
|
+
| 4. Focus reconfirmation | off | nested | 128117 | 32030 | 167682 | 41921 | 197100 | 49275 | 236319 | 59080 |
|
|
586
|
+
| 4. Focus reconfirmation | on | ordinary | 124344 | 31086 | 131245 | 32812 | 193327 | 48332 | 199882 | 49971 |
|
|
587
|
+
| 4. Focus reconfirmation | on | nested | 139629 | 34908 | 184526 | 46132 | 208612 | 52153 | 253163 | 63291 |
|
|
588
|
+
| 5. Adversarial design review | off | ordinary | 135747 | 33937 | 138753 | 34689 | 232514 | 58129 | 236562 | 59141 |
|
|
589
|
+
| 5. Adversarial design review | off | nested | 151032 | 37758 | 192034 | 48009 | 247799 | 61950 | 289844 | 72461 |
|
|
590
|
+
| 5. Adversarial design review | on | ordinary | 147259 | 36815 | 155597 | 38900 | 244026 | 61007 | 253406 | 63352 |
|
|
591
|
+
| 5. Adversarial design review | on | nested | 162544 | 40636 | 208878 | 52220 | 259311 | 64828 | 306688 | 76672 |
|
|
592
|
+
| 6. Final design approval | off | ordinary | 135747 | 33937 | 138753 | 34689 | 232514 | 58129 | 236562 | 59141 |
|
|
593
|
+
| 6. Final design approval | off | nested | 151032 | 37758 | 192034 | 48009 | 247799 | 61950 | 289844 | 72461 |
|
|
594
|
+
| 6. Final design approval | on | ordinary | 147259 | 36815 | 155597 | 38900 | 244026 | 61007 | 253406 | 63352 |
|
|
595
|
+
| 6. Final design approval | on | nested | 162544 | 40636 | 208878 | 52220 | 259311 | 64828 | 306688 | 76672 |
|
|
596
|
+
| 7. Track loop | off | ordinary | 158942 | 39736 | 163384 | 40846 | 260346 | 65087 | 302924 | 75731 |
|
|
597
|
+
| 7. Track loop | off | nested | 174227 | 43557 | 216665 | 54167 | 260346 | 65087 | 302924 | 75731 |
|
|
598
|
+
| 7. Track loop | on | ordinary | 170454 | 42614 | 180228 | 45057 | 271858 | 67965 | 319769 | 79943 |
|
|
599
|
+
| 7. Track loop | on | nested | 185739 | 46435 | 233509 | 58378 | 271858 | 67965 | 319769 | 79943 |
|
|
600
|
+
| 8. Final acceptance | off | ordinary | 158942 | 39736 | 163384 | 40846 | 260346 | 65087 | 302924 | 75731 |
|
|
601
|
+
| 8. Final acceptance | off | nested | 174227 | 43557 | 216665 | 54167 | 260346 | 65087 | 302924 | 75731 |
|
|
602
|
+
| 8. Final acceptance | on | ordinary | 170454 | 42614 | 180228 | 45057 | 271858 | 67965 | 319769 | 79943 |
|
|
603
|
+
| 8. Final acceptance | on | nested | 185739 | 46435 | 233509 | 58378 | 271858 | 67965 | 319769 | 79943 |
|
|
604
|
+
| 9. Delivery | off | ordinary | 158942 | 39736 | 163384 | 40846 | 260346 | 65087 | 302924 | 75731 |
|
|
605
|
+
| 9. Delivery | off | nested | 174227 | 43557 | 216665 | 54167 | 260346 | 65087 | 302924 | 75731 |
|
|
606
|
+
| 9. Delivery | on | ordinary | 170454 | 42614 | 180228 | 45057 | 271858 | 67965 | 319769 | 79943 |
|
|
607
|
+
| 9. Delivery | on | nested | 185739 | 46435 | 233509 | 58378 | 271858 | 67965 | 319769 | 79943 |
|
|
620
608
|
|
|
621
609
|
Conditional sets have the following whole-document costs. Early notes cost
|
|
622
610
|
zero extra after required notes enter phase 7. Unusual prose costs zero extra
|
package/docs/model-routing.md
CHANGED
|
@@ -100,8 +100,10 @@ Luna uses these cautions in order:
|
|
|
100
100
|
2. `Do not use Luna to handle complex texts.`
|
|
101
101
|
3. `May shorten long file paths in tool calls. Give the full path and require a read-back of the edited lines.`
|
|
102
102
|
4. `May undo its own checked writes before it ends. Check the final file state after every record task.`
|
|
103
|
-
5. `For an append, anchor one single-block edit on the exact current last line, then read back the tail.`
|
|
103
|
+
5. `For an append outside a research log or implementer report, anchor one single-block edit on the exact current last line, then read back the tail.`
|
|
104
104
|
6. `May report state outside the task scope incorrectly. Verify such a claim before acting on it.`
|
|
105
|
+
7. `May change apostrophe or backslash characters, or omit text, when it stages supplied text. Its own comparison with the staged file cannot detect this. Require a quoted heredoc or the file-writing tool, a stated line count and a read-back against the task text.`
|
|
106
|
+
8. `For an append with cat, name exactly one source file in the command.`
|
|
105
107
|
|
|
106
108
|
Sol uses these cautions in order:
|
|
107
109
|
|
|
@@ -109,6 +111,8 @@ Sol uses these cautions in order:
|
|
|
109
111
|
2. `Broad searches can return text from excluded private paths. State path limits in the task and use path-limited commands.`
|
|
110
112
|
3. `For cross-runtime process and networking fixes, verify exit, slot ownership and silent output on every supported runtime before closing the repair.`
|
|
111
113
|
4. `When shortening text to fit a size budget, may drop or weaken duties. Require a duty-by-duty comparison of the text before and after the cut.`
|
|
114
|
+
5. `As reviewer or fix gate, may judge runtime behavior from source reading alone. When a run is available, name it in the task and require a reproduced run for each blocker or major runtime claim.`
|
|
115
|
+
6. `For verify-then-edit work, may edit first or accept a related passing check as proof. Require the measured evidence for each claim before the edit.`
|
|
112
116
|
|
|
113
117
|
Flash uses this caution: `Do not use as a reviewer. It relies too much on passing tests and exact-size assertions. Verify source citations and distinguish proposed behavior from existing behavior.`
|
|
114
118
|
|
|
@@ -388,7 +392,7 @@ for an unknown or ambiguous route. Main recovery stays available during handoff
|
|
|
388
392
|
pause. An unresolved stop keeps worker dispatch paused while brief writing waits
|
|
389
393
|
for the user choice.
|
|
390
394
|
|
|
391
|
-
Pi 1.
|
|
395
|
+
Pi 1.6.0 model and effort switches are session-only unless the caller explicitly
|
|
392
396
|
requests persistence. Slate retains shared saved-default ownership and its
|
|
393
397
|
compatibility restoration guard. The guard covers explicit persistence and
|
|
394
398
|
hosts that persist switches. A restoration failure is visible and can leave the
|
package/docs/safety-and-trust.md
CHANGED
|
@@ -37,7 +37,7 @@ Main recovery sends hidden `slate-failover` instructions with a unique `details.
|
|
|
37
37
|
Only the matching message start produces the continuation status, at most once.
|
|
38
38
|
Aborted, cancelled, replaced, or paused attempts produce no such status.
|
|
39
39
|
The acknowledgement does not itself prove recovery success or release recovery ownership.
|
|
40
|
-
Pi 1.
|
|
40
|
+
Pi 1.6.0's ordinary extension send returns no delivery promise.
|
|
41
41
|
A deferred preparation failure can escape extension observation.
|
|
42
42
|
Remote procedure call (RPC) mode can suppress that late caller error.
|
|
43
43
|
Slate does not claim all-mode detection of a continuation that never starts.
|
package/extension/handoff.ts
CHANGED
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
* Auto-pause + handoff: context-budget discipline for the orchestrator.
|
|
3
3
|
*
|
|
4
4
|
* Monitoring: after every turn, when orchestrator mode is on and context
|
|
5
|
-
* usage
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
5
|
+
* usage reaches the absolute token budget, Slate pauses the orchestrator.
|
|
6
|
+
* The built-in budget is 400,000 tokens for every model. The clamp subtracts
|
|
7
|
+
* the compaction reserve and a margin from the window. A large reserve can
|
|
8
|
+
* make the half-window floor put the pause threshold above Pi's compaction threshold.
|
|
9
|
+
* Orchestrator worker dispatches remain available, but the input hook
|
|
10
|
+
* refuses new user prompts. Slate asks the orchestrator to prepare a handoff
|
|
11
|
+
* brief for the user. Threshold auto-compactions are intercepted the same way
|
|
11
12
|
* (session_before_compact → pause + cancel); once paused they pass through
|
|
12
13
|
* as the escape valve. The DEPRECATED pauseThresholdPercent keeps its exact
|
|
13
14
|
* legacy percent behavior (compaction untouched) when set WITHOUT
|
|
@@ -57,11 +58,7 @@ import {
|
|
|
57
58
|
|
|
58
59
|
/** Legacy percent mode only (DEPRECATED pauseThresholdPercent without contextBudget). */
|
|
59
60
|
const DEFAULT_PAUSE_THRESHOLD_PERCENT = 40;
|
|
60
|
-
|
|
61
|
-
const DEFAULT_CONTEXT_BUDGET_TOKENS = 256_000;
|
|
62
|
-
/** Built-in override: anthropic/* models get a larger default budget. */
|
|
63
|
-
const ANTHROPIC_DEFAULT_BUDGET_TOKENS = 400_000;
|
|
64
|
-
const ANTHROPIC_MODEL_RE = /^anthropic\/.*/;
|
|
61
|
+
const DEFAULT_CONTEXT_BUDGET_TOKENS = 400_000;
|
|
65
62
|
/**
|
|
66
63
|
* Head-room subtracted (together with pi's compaction reserveTokens) from the
|
|
67
64
|
* context window when clamping the budget: the pause must land with enough
|
|
@@ -210,8 +207,8 @@ function budgetModeActive(config: SlateConfig): boolean {
|
|
|
210
207
|
}
|
|
211
208
|
|
|
212
209
|
/**
|
|
213
|
-
* Resolve the budget for one "provider/id" spec.
|
|
214
|
-
*
|
|
210
|
+
* Resolve the budget for one "provider/id" spec. Use the first matching
|
|
211
|
+
* override, then the configured token count, then the built-in default.
|
|
215
212
|
* Runs against the LIVE model on EVERY check — failover, /model, and handoff
|
|
216
213
|
* restore can all swap models mid-session, so the result is never cached.
|
|
217
214
|
*/
|
|
@@ -221,7 +218,6 @@ function resolveBudgetTokens(budget: ContextBudgetObject | undefined, modelSpec:
|
|
|
221
218
|
if (new RegExp(`^(?:${o.match})$`).test(modelSpec)) return o.tokens;
|
|
222
219
|
}
|
|
223
220
|
if (budget?.tokens !== undefined) return budget.tokens;
|
|
224
|
-
if (ANTHROPIC_MODEL_RE.test(modelSpec)) return ANTHROPIC_DEFAULT_BUDGET_TOKENS;
|
|
225
221
|
return DEFAULT_CONTEXT_BUDGET_TOKENS;
|
|
226
222
|
}
|
|
227
223
|
|
|
@@ -288,8 +284,8 @@ function buildKickoff(cwd: string, trusted: boolean, brief: string, focus?: stri
|
|
|
288
284
|
if (!base) {
|
|
289
285
|
base = [
|
|
290
286
|
"Slate orchestrator handoff.",
|
|
291
|
-
"Orchestrator mode and all worker threads
|
|
292
|
-
"
|
|
287
|
+
"Orchestrator mode and all worker threads and episodes from the previous session are restored.",
|
|
288
|
+
"Continue the work.",
|
|
293
289
|
].join("\n");
|
|
294
290
|
}
|
|
295
291
|
const parts = [base];
|
|
@@ -590,7 +586,7 @@ export function registerSlateHandoff(
|
|
|
590
586
|
let adopted = false;
|
|
591
587
|
try {
|
|
592
588
|
// Keep the whole adoption block inside the compatibility restore guard.
|
|
593
|
-
// Pi 1.
|
|
589
|
+
// Pi 1.6.0 extension setters are session-only, so this is normally a
|
|
594
590
|
// zero-write no-op. The guard covers hosts that persist switches,
|
|
595
591
|
// including a thinking-level-only write.
|
|
596
592
|
await withGlobalModelDefaultRestored(
|
|
@@ -599,7 +595,7 @@ export function registerSlateHandoff(
|
|
|
599
595
|
getConfig(),
|
|
600
596
|
{ provider, id },
|
|
601
597
|
async () => {
|
|
602
|
-
// True once a Pi setter has been called. Pi 1.
|
|
598
|
+
// True once a Pi setter has been called. Pi 1.6.0 does not persist
|
|
603
599
|
// this call. The compatibility guard also covers hosts where the call
|
|
604
600
|
// can write a default.
|
|
605
601
|
let calledSetter = false;
|
|
@@ -60,6 +60,8 @@ function deepFreeze<T>(value: T): T {
|
|
|
60
60
|
|
|
61
61
|
const SONNET_OPUS_CAUTION = "May exceed explicit scope or infer permission from earlier requests. Check changes against stated exclusions and approval requirements.";
|
|
62
62
|
const SOL_CAUTION = "When blocked, may substitute unapproved resources or perform destructive cleanup. Require permission before either action. Do not run a dependency install that the project rules forbid. Ask first.";
|
|
63
|
+
const SOL_REVIEW_CAUTION = "As reviewer or fix gate, may judge runtime behavior from source reading alone. When a run is available, name it in the task and require a reproduced run for each blocker or major runtime claim.";
|
|
64
|
+
const SOL_VERIFY_CAUTION = "For verify-then-edit work, may edit first or accept a related passing check as proof. Require the measured evidence for each claim before the edit.";
|
|
63
65
|
const LUNA_CAUTION = "May treat supplied repair context as permission to implement despite explicit task limits. Restrict write access for record-only work and verify the changed files.";
|
|
64
66
|
const FLASH_CAUTION = "Do not use as a reviewer. It relies too much on passing tests and exact-size assertions. Verify source citations and distinguish proposed behavior from existing behavior.";
|
|
65
67
|
|
|
@@ -93,7 +95,7 @@ const SHIPPED_DEFINITIONS: LogicalModelDefinition[] = [
|
|
|
93
95
|
model: "luna-6", capabilityRating: 35, effort: "max", costRating: 2,
|
|
94
96
|
preferredProvider: "openai", providers: providers("openai", "gpt-6-luna"),
|
|
95
97
|
guidelines: ["auxiliary tasks only, such as file location, check-result collection, or routine text management such as modifying research logs", "never primary research, implementation, design, or review", "consumer-contract work only when auxiliary"],
|
|
96
|
-
cautions: [LUNA_CAUTION, "Do not use Luna to handle complex texts.", "May shorten long file paths in tool calls. Give the full path and require a read-back of the edited lines.", "May undo its own checked writes before it ends. Check the final file state after every record task.", "For an append, anchor one single-block edit on the exact current last line, then read back the tail.", "May report state outside the task scope incorrectly. Verify such a claim before acting on it."], source: source(),
|
|
98
|
+
cautions: [LUNA_CAUTION, "Do not use Luna to handle complex texts.", "May shorten long file paths in tool calls. Give the full path and require a read-back of the edited lines.", "May undo its own checked writes before it ends. Check the final file state after every record task.", "For an append outside a research log or implementer report, anchor one single-block edit on the exact current last line, then read back the tail.", "May report state outside the task scope incorrectly. Verify such a claim before acting on it.", "May change apostrophe or backslash characters, or omit text, when it stages supplied text. Its own comparison with the staged file cannot detect this. Require a quoted heredoc or the file-writing tool, a stated line count and a read-back against the task text.", "For an append with cat, name exactly one source file in the command."], source: source(),
|
|
97
99
|
},
|
|
98
100
|
{
|
|
99
101
|
model: "claude-sonnet-5.5", capabilityRating: 35, effort: "high", costRating: 25,
|
|
@@ -103,7 +105,7 @@ const SHIPPED_DEFINITIONS: LogicalModelDefinition[] = [
|
|
|
103
105
|
{
|
|
104
106
|
model: "sol-6.1", capabilityRating: 66, effort: "high", costRating: 9,
|
|
105
107
|
preferredProvider: "openai", providers: providers("openai", "gpt-6.1-sol"),
|
|
106
|
-
guidelines: ["default thread choice"], cautions: [SOL_CAUTION, "Broad searches can return text from excluded private paths. State path limits in the task and use path-limited commands.", "For cross-runtime process and networking fixes, verify exit, slot ownership and silent output on every supported runtime before closing the repair.", "When shortening text to fit a size budget, may drop or weaken duties. Require a duty-by-duty comparison of the text before and after the cut."], source: source(true),
|
|
108
|
+
guidelines: ["default thread choice"], cautions: [SOL_CAUTION, "Broad searches can return text from excluded private paths. State path limits in the task and use path-limited commands.", "For cross-runtime process and networking fixes, verify exit, slot ownership and silent output on every supported runtime before closing the repair.", "When shortening text to fit a size budget, may drop or weaken duties. Require a duty-by-duty comparison of the text before and after the cut.", SOL_REVIEW_CAUTION, SOL_VERIFY_CAUTION], source: source(true),
|
|
107
109
|
},
|
|
108
110
|
{
|
|
109
111
|
model: "gemini-3.8-flash", capabilityRating: 43, effort: "medium", costRating: 14,
|
|
@@ -130,7 +132,7 @@ const SHIPPED_DEFINITIONS: LogicalModelDefinition[] = [
|
|
|
130
132
|
{
|
|
131
133
|
model: "sol-6.2", capabilityRating: 73, effort: "high", costRating: 9,
|
|
132
134
|
preferredProvider: "openai", providers: providers("openai", "gpt-6.2-sol"),
|
|
133
|
-
guidelines: ["default thread choice"], cautions: [SOL_CAUTION, "Broad searches can return text from excluded private paths. State path limits in the task and use path-limited commands.", "For cross-runtime process and networking fixes, verify exit, slot ownership and silent output on every supported runtime before closing the repair.", "When shortening text to fit a size budget, may drop or weaken duties. Require a duty-by-duty comparison of the text before and after the cut."], source: { capabilityRating: { publisher: "Slate project", decided: "2026-11-18", basis: "Project judgment scaled from Sol 6.1 without a benchmark source" }, costRating: { publisher: "Slate project", decided: "2026-11-18", basis: "Project judgment copied from Sol 6.1 without a benchmark source" }, guidelines: fieldSource() },
|
|
135
|
+
guidelines: ["default thread choice"], cautions: [SOL_CAUTION, "Broad searches can return text from excluded private paths. State path limits in the task and use path-limited commands.", "For cross-runtime process and networking fixes, verify exit, slot ownership and silent output on every supported runtime before closing the repair.", "When shortening text to fit a size budget, may drop or weaken duties. Require a duty-by-duty comparison of the text before and after the cut.", SOL_REVIEW_CAUTION, SOL_VERIFY_CAUTION], source: { capabilityRating: { publisher: "Slate project", decided: "2026-11-18", basis: "Project judgment scaled from Sol 6.1 without a benchmark source" }, costRating: { publisher: "Slate project", decided: "2026-11-18", basis: "Project judgment copied from Sol 6.1 without a benchmark source" }, guidelines: fieldSource() },
|
|
134
136
|
},
|
|
135
137
|
{
|
|
136
138
|
model: "astra-6.2", capabilityRating: 80, effort: "high", costRating: 19,
|
package/extension/mode.ts
CHANGED
|
@@ -586,7 +586,7 @@ export function registerSlateMode(
|
|
|
586
586
|
if (store.orchestratorMode && choice.enabled) displaySummary(ctx);
|
|
587
587
|
};
|
|
588
588
|
|
|
589
|
-
// In pinned pi 1.
|
|
589
|
+
// In pinned pi 1.6.0, AgentSession.prompt() handles registered extension
|
|
590
590
|
// commands before the input event. It returns when a command claims the text.
|
|
591
591
|
// /slate resume and /slate handoff therefore never reach this handler.
|
|
592
592
|
// Command matching is exact and case-sensitive. sendUserMessage() skips
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Global model-default restore: put the user's GLOBAL pi defaults back after a
|
|
3
3
|
* slate-initiated model switch.
|
|
4
4
|
*
|
|
5
|
-
* Pi 1.
|
|
5
|
+
* Pi 1.6.0 keeps ordinary extension model and thinking-level switches inside
|
|
6
6
|
* the current session. AgentSession changes global defaults only when a caller
|
|
7
7
|
* explicitly requests persistence. Slate requests no persistence. This guard
|
|
8
8
|
* covers explicit persistence fixtures and hosts that persist switches. If a
|
|
@@ -86,7 +86,7 @@ type ThinkingLevel = ReturnType<ExtensionAPI["getThinkingLevel"]>;
|
|
|
86
86
|
* busy-waits SYNCHRONOUSLY, so an attempt's cost is set by contention, not by
|
|
87
87
|
* slate — a count-based bound would leave the stall unbounded.
|
|
88
88
|
*
|
|
89
|
-
* WORST-CASE STALL, derived from this file as written (pi 1.
|
|
89
|
+
* WORST-CASE STALL, derived from this file as written (pi 1.6.0: a contended
|
|
90
90
|
* acquisition makes ten attempts with nine 20 ms waits, about 180 ms):
|
|
91
91
|
* five lock acquisitions per attempt — post-switch read (construction IS a
|
|
92
92
|
* read), write-manager construction, the pair write, the separate
|
|
@@ -517,7 +517,7 @@ function switchMayHavePersisted<T>(predicate: ((result: T) => boolean) | undefin
|
|
|
517
517
|
* `performSwitch` must contain every setter call for that switch.
|
|
518
518
|
* The post-switch read must follow the last write.
|
|
519
519
|
* Explicit persistence or a host that persists switches can write the thinking
|
|
520
|
-
* default alone during handoff adoption. Ordinary pi 1.
|
|
520
|
+
* default alone during handoff adoption. Ordinary pi 1.6.0 switches write no
|
|
521
521
|
* global defaults.
|
|
522
522
|
*
|
|
523
523
|
* The restore runs even when `performSwitch` throws.
|
|
@@ -17,8 +17,8 @@ export interface NativeNotificationOptions {
|
|
|
17
17
|
readonly platform?: NodeJS.Platform;
|
|
18
18
|
readonly environment?: Environment;
|
|
19
19
|
}
|
|
20
|
-
//
|
|
21
|
-
//
|
|
20
|
+
// Search the Start applications folder for the first exact Windows PowerShell name match.
|
|
21
|
+
// If the name is absent, match the registered system Windows PowerShell identity.
|
|
22
22
|
// Text enters XML only through text nodes. The interpreter receives fixed source only.
|
|
23
23
|
const windowsScript = `
|
|
24
24
|
$ErrorActionPreference = 'Stop'
|
|
@@ -29,6 +29,12 @@ $app = $null
|
|
|
29
29
|
foreach ($item in $folder.Items()) {
|
|
30
30
|
if ($item.Name -eq 'Windows PowerShell') { $app = $item; break }
|
|
31
31
|
}
|
|
32
|
+
if (-not $app) {
|
|
33
|
+
$systemPowerShellId = '{1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}\\WindowsPowerShell\\v1.0\\powershell.exe'
|
|
34
|
+
foreach ($item in $folder.Items()) {
|
|
35
|
+
if ([string]$item.Path -eq $systemPowerShellId) { $app = $item; break }
|
|
36
|
+
}
|
|
37
|
+
}
|
|
32
38
|
if (-not $app -or [string]::IsNullOrWhiteSpace($app.Path)) { exit 1 }
|
|
33
39
|
$appId = [string]$app.Path
|
|
34
40
|
$null = [Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime]
|
package/extension/state.ts
CHANGED
|
@@ -823,7 +823,7 @@ export interface SlateConfig {
|
|
|
823
823
|
requestThrottle?: RequestThrottleConfig | SanitizedRequestThrottle; // raw or session-sanitized per-model worker request pacing — see request-throttle.ts
|
|
824
824
|
maxConcurrent?: number; // per-manager action cap, validated as a positive safe integer with fallback 8. See docs/design-principles.md §5.
|
|
825
825
|
pauseThresholdPercent?: number; // DEPRECATED: legacy percent-based auto-pause (default 40); applies only when set AND contextBudget is absent or entirely invalid (invalid sanitizes to absent — a partially invalid object stays budget mode)
|
|
826
|
-
contextBudget?: number | ContextBudgetObject; //
|
|
826
|
+
contextBudget?: number | ContextBudgetObject; // A number sets the token budget. An empty object uses the 400,000-token default.
|
|
827
827
|
orchestratorModeDefault?: boolean; // seed orchestrator mode ON for fresh interactive sessions (unsaved until first real mutation)
|
|
828
828
|
orchestratorPromptDocs?: string[]; // role-guideline docs appended to the orchestrator prompt (source-relative paths resolved by config.ts)
|
|
829
829
|
workerPromptDocs?: string[]; // role-guideline docs appended to worker system prompts (source-relative paths resolved by config.ts)
|
package/extension/tools.ts
CHANGED
|
@@ -6,7 +6,6 @@ import { readFileSync } from "node:fs";
|
|
|
6
6
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
7
7
|
import { Type, type Static } from "typebox";
|
|
8
8
|
import { renderCompactCall, renderCompactResult, renderThreadCall, renderThreadResult, type DisplayDetails } from "./render.ts";
|
|
9
|
-
import { sanitizeForNotify } from "./notify.ts";
|
|
10
9
|
import {
|
|
11
10
|
displayThreadType,
|
|
12
11
|
isModelSpec,
|
|
@@ -15,12 +14,12 @@ import {
|
|
|
15
14
|
resolveEpisodeFile,
|
|
16
15
|
renderThreadId,
|
|
17
16
|
sanitizeDispatchReason,
|
|
18
|
-
threadTypeMarker,
|
|
19
17
|
THREAD_TYPE_GLOSSES,
|
|
20
18
|
THREAD_TYPES,
|
|
21
19
|
type EpisodeRecord,
|
|
22
20
|
type EpisodeUsage,
|
|
23
21
|
type SlateStore,
|
|
22
|
+
type ThreadRecord,
|
|
24
23
|
} from "./state.ts";
|
|
25
24
|
import { MAX_CONTEXT_EPISODES, type DispatchProgress, type ThreadManager } from "./threads.ts";
|
|
26
25
|
import { JUDGEMENT_THREAD_TYPES } from "./worker.ts";
|
|
@@ -60,6 +59,141 @@ function dispatchCostLine(episode: EpisodeRecord): string {
|
|
|
60
59
|
return `Cost: ${partialCost ? "≥" : ""}$${reportedCost.toFixed(4)}${costScope} | tokens: ${quantities.join(", ")} | ended ${model} ${effort}${warm}`;
|
|
61
60
|
}
|
|
62
61
|
|
|
62
|
+
const THREAD_PAGE_ROWS = 8;
|
|
63
|
+
const THREAD_PAGE_BYTES = 4096;
|
|
64
|
+
const MAX_THREAD_CURSOR = "t9007199254740992";
|
|
65
|
+
|
|
66
|
+
function compareThreadIds(a: string, b: string): number {
|
|
67
|
+
// Canonical decimal IDs sort by digit count and then by digit value.
|
|
68
|
+
return a.length - b.length || (a < b ? -1 : a > b ? 1 : 0);
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
function validateThreadCursor(value: unknown): asserts value is string {
|
|
72
|
+
if (typeof value !== "string" || value.length > MAX_THREAD_CURSOR.length
|
|
73
|
+
|| !/^t[1-9][0-9]*$/u.test(value) || compareThreadIds(value, MAX_THREAD_CURSOR) > 0) {
|
|
74
|
+
throw new Error('Invalid before value. Use a thread ID such as "t9". Omit before to start with the newest thread.');
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
function inspectThreadArguments(args: unknown) {
|
|
79
|
+
try {
|
|
80
|
+
if (typeof args === "object" && args !== null && !Array.isArray(args)) {
|
|
81
|
+
const before = Object.getOwnPropertyDescriptor(args, "before");
|
|
82
|
+
const detail = Object.getOwnPropertyDescriptor(args, "detail");
|
|
83
|
+
if ((!before || Object.hasOwn(before, "value")) && (!detail || Object.hasOwn(detail, "value"))) {
|
|
84
|
+
return { before, detail };
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
} catch {
|
|
88
|
+
// Proxy inspection can throw. Do not return the proxy's error text.
|
|
89
|
+
}
|
|
90
|
+
throw new Error("Invalid threads arguments. Use an object such as {}.");
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
function threadLabel(value: string, limit: number, quoted = false): string {
|
|
94
|
+
let text = "";
|
|
95
|
+
let bytes = 0;
|
|
96
|
+
let scanned = 0;
|
|
97
|
+
for (const point of value) {
|
|
98
|
+
// Bound the work even when the label contains only characters we omit.
|
|
99
|
+
if (++scanned > limit * 4) return text + "…";
|
|
100
|
+
if (/[\p{Cc}\p{Bidi_Control}]/u.test(point)) continue;
|
|
101
|
+
const char = point.replace(/[\p{Zl}\p{Zp}]/u, " ").replace(/\p{Cs}/u, "�");
|
|
102
|
+
const escaped = quoted && (char === '"' || char === "\\") ? "\\" + char : char;
|
|
103
|
+
bytes += Buffer.byteLength(escaped, "utf8");
|
|
104
|
+
if (bytes > limit - 3) return text + "…";
|
|
105
|
+
text += escaped;
|
|
106
|
+
}
|
|
107
|
+
return text;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
const ROUTING_LABEL_ESCAPE = /[\s\p{White_Space}\p{Cc}\p{Bidi_Control}\p{Cs}"\\]/u;
|
|
111
|
+
|
|
112
|
+
function routingLabel(value: string, limit: number): string {
|
|
113
|
+
if (!ROUTING_LABEL_ESCAPE.test(value)) return threadLabel(value, limit);
|
|
114
|
+
|
|
115
|
+
let text = "";
|
|
116
|
+
let bytes = 0;
|
|
117
|
+
for (const point of value) {
|
|
118
|
+
const encoded = JSON.stringify(point).slice(1, -1);
|
|
119
|
+
const escaped = encoded === point && point !== " " && ROUTING_LABEL_ESCAPE.test(point)
|
|
120
|
+
? "\\u" + point.charCodeAt(0).toString(16).padStart(4, "0")
|
|
121
|
+
: encoded;
|
|
122
|
+
bytes += Buffer.byteLength(escaped, "utf8");
|
|
123
|
+
if (bytes > limit - 3) return `"${text}…"`;
|
|
124
|
+
text += escaped;
|
|
125
|
+
}
|
|
126
|
+
return `"${text}"`;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
function threadPageRow(thread: ThreadRecord, store: SlateStore, getManager: () => ThreadManager, detail: boolean): string {
|
|
130
|
+
const row = `${thread.id} "${threadLabel(thread.name, 200, true)}" [${thread.status}] type=${displayThreadType(thread.type)}`;
|
|
131
|
+
const episode = ` — episode: ${thread.episodeId ?? "(none)"}`;
|
|
132
|
+
if (!detail) return row + episode;
|
|
133
|
+
|
|
134
|
+
// A sanitized reason uses at most 602 bytes after quoting. One full row fits with its summary and next call.
|
|
135
|
+
const last = thread.episodeId === undefined ? undefined : store.episodes.get(thread.episodeId);
|
|
136
|
+
const marks: string[] = [];
|
|
137
|
+
if (last?.logicalModel) marks.push(`logical=${routingLabel(last.logicalModel, 80)}`);
|
|
138
|
+
const requestedModel = isModelSpec(last?.requestedModel) ? last.requestedModel : undefined;
|
|
139
|
+
if (requestedModel) {
|
|
140
|
+
const effort = isThinkingLevel(last?.requestedEffort) ? `@${last.requestedEffort}` : "";
|
|
141
|
+
marks.push(`requested=${routingLabel(requestedModel, 120)}${effort}`);
|
|
142
|
+
}
|
|
143
|
+
const reason = sanitizeDispatchReason(last?.reason);
|
|
144
|
+
if (reason) marks.push(`reason=${JSON.stringify(reason)}`);
|
|
145
|
+
if (last?.model) {
|
|
146
|
+
const effort = last.effort ? `@${routingLabel(last.effort, 48)}` : "";
|
|
147
|
+
const unmeasured = last.effortUnmeasured ? "(unmeasured)" : "";
|
|
148
|
+
const differs = requestedModel !== undefined && requestedModel !== last.model ? " (different from requested)" : "";
|
|
149
|
+
marks.push(`last=${routingLabel(last.model, 120)}${effort}${unmeasured}${differs}`);
|
|
150
|
+
}
|
|
151
|
+
const live = getManager().liveFailoverModel(thread.id);
|
|
152
|
+
if (live) marks.push(`live=${routingLabel(live, 120)} (failover)`);
|
|
153
|
+
const date = new Date(thread.updatedAt);
|
|
154
|
+
const updated = Number.isNaN(date.getTime()) ? "unavailable" : date.toISOString();
|
|
155
|
+
const models = marks.length > 0 ? ` ${marks.join(" ")}` : "";
|
|
156
|
+
return `${row}${models}${episode} — updated ${updated}`;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
function listThreads(store: SlateStore, getManager: () => ThreadManager, before?: string, detail?: boolean) {
|
|
160
|
+
const count = store.threads.size;
|
|
161
|
+
if (count === 0) {
|
|
162
|
+
return { text: "No threads yet. Use the thread tool to create one.", details: { count, failedCount: 0 } };
|
|
163
|
+
}
|
|
164
|
+
const totals = { queued: 0, running: 0, successful: 0, failed: 0, cancelled: 0 };
|
|
165
|
+
const page: ThreadRecord[] = [];
|
|
166
|
+
let eligible = 0;
|
|
167
|
+
for (const thread of store.threads.values()) {
|
|
168
|
+
totals[thread.status]++;
|
|
169
|
+
if (before !== undefined && compareThreadIds(thread.id, before) >= 0) continue;
|
|
170
|
+
eligible++;
|
|
171
|
+
const aheadOf = page.findIndex((row) => compareThreadIds(thread.id, row.id) > 0);
|
|
172
|
+
if (aheadOf >= 0) {
|
|
173
|
+
if (page.length === THREAD_PAGE_ROWS) page.pop();
|
|
174
|
+
page.splice(aheadOf, 0, thread);
|
|
175
|
+
} else if (page.length < THREAD_PAGE_ROWS) {
|
|
176
|
+
page.push(thread);
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
let text = `Threads: ${count}. Queued: ${totals.queued}. Running: ${totals.running}. Successful: ${totals.successful}. Failed: ${totals.failed}. Cancelled: ${totals.cancelled}.`;
|
|
181
|
+
const details = { count, failedCount: totals.failed };
|
|
182
|
+
if (eligible === 0) return { text: text + "\nNo older threads.", details };
|
|
183
|
+
|
|
184
|
+
let footer = "";
|
|
185
|
+
for (const [index, thread] of page.entries()) {
|
|
186
|
+
const nextArgs = JSON.stringify({ before: thread.id, detail });
|
|
187
|
+
const remaining = eligible - index - 1;
|
|
188
|
+
const next = remaining > 0 ? `\nRemaining threads: ${remaining}. Next call: threads(${nextArgs})` : "";
|
|
189
|
+
const withRow = `${text}\n${threadPageRow(thread, store, getManager, detail === true)}`;
|
|
190
|
+
if (Buffer.byteLength(withRow + next, "utf8") > THREAD_PAGE_BYTES) break;
|
|
191
|
+
text = withRow;
|
|
192
|
+
footer = next;
|
|
193
|
+
}
|
|
194
|
+
return { text: text + footer, details };
|
|
195
|
+
}
|
|
196
|
+
|
|
63
197
|
export function registerSlateTools(pi: ExtensionAPI, store: SlateStore, getManager: () => ThreadManager): void {
|
|
64
198
|
const parameters = Type.Object({
|
|
65
199
|
name: Type.Optional(Type.String({ description: "Short name for a NEW thread (e.g. \"recon\")" })),
|
|
@@ -240,59 +374,45 @@ export function registerSlateTools(pi: ExtensionAPI, store: SlateStore, getManag
|
|
|
240
374
|
},
|
|
241
375
|
});
|
|
242
376
|
|
|
377
|
+
const threadsParameters = Type.Object({
|
|
378
|
+
before: Type.Optional(Type.String({ description: "List threads created before this thread ID. Omit it to start with the newest thread." })),
|
|
379
|
+
detail: Type.Optional(Type.Union([Type.Literal(true), Type.Literal(false)], {
|
|
380
|
+
description: "Show model choices, effort, the reason for the choice, and update times.",
|
|
381
|
+
})),
|
|
382
|
+
});
|
|
243
383
|
pi.registerTool({
|
|
244
384
|
name: "threads",
|
|
245
385
|
label: "Threads",
|
|
246
386
|
renderCall: (args, theme, context) => renderCompactCall("threads", args, theme, context),
|
|
247
387
|
renderResult: (result, options, theme, context) => renderCompactResult("threads", result, options, theme, context),
|
|
248
388
|
description:
|
|
249
|
-
"List worker threads
|
|
250
|
-
"
|
|
251
|
-
"
|
|
252
|
-
"
|
|
389
|
+
"List up to eight worker threads and their episode IDs, newest thread first. " +
|
|
390
|
+
"The totals cover all threads. " +
|
|
391
|
+
"Follow the next call or set before to a thread ID to list older threads. " +
|
|
392
|
+
"Set detail to true to see model choices, effort, the reason for the choice, and update times.",
|
|
253
393
|
promptSnippet: "List worker threads and their episodes",
|
|
254
|
-
parameters:
|
|
255
|
-
|
|
256
|
-
const
|
|
257
|
-
|
|
258
|
-
|
|
394
|
+
parameters: threadsParameters,
|
|
395
|
+
prepareArguments(args) {
|
|
396
|
+
const { before, detail } = inspectThreadArguments(args);
|
|
397
|
+
const prepared: Static<typeof threadsParameters> = {};
|
|
398
|
+
if (before) {
|
|
399
|
+
const value: unknown = before.value;
|
|
400
|
+
validateThreadCursor(value);
|
|
401
|
+
prepared.before = value;
|
|
259
402
|
}
|
|
260
|
-
|
|
261
|
-
const
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
// The action's model may differ from the base after an explicit route or failover.
|
|
265
|
-
const lastEpisode = t.episodeId === undefined ? undefined : store.episodes.get(t.episodeId);
|
|
266
|
-
const logicalModel = typeof lastEpisode?.logicalModel === "string" ? lastEpisode.logicalModel : undefined;
|
|
267
|
-
if (logicalModel) marks.push(`logical=${sanitizeForNotify(logicalModel, 80)}`);
|
|
268
|
-
const requestedModel = isModelSpec(lastEpisode?.requestedModel) ? lastEpisode.requestedModel : undefined;
|
|
269
|
-
const requestedEffort = isThinkingLevel(lastEpisode?.requestedEffort) ? lastEpisode.requestedEffort : undefined;
|
|
270
|
-
if (requestedModel) {
|
|
271
|
-
marks.push(`requested=${sanitizeForNotify(requestedModel, 80)}${requestedEffort ? `@${requestedEffort}` : ""}`);
|
|
403
|
+
if (detail) {
|
|
404
|
+
const value: unknown = detail.value;
|
|
405
|
+
if (typeof value !== "boolean") {
|
|
406
|
+
throw new Error("Invalid detail value. Use true or false.");
|
|
272
407
|
}
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
);
|
|
282
|
-
}
|
|
283
|
-
// AF12: after a model failover the LIVE cached session runs a different model
|
|
284
|
-
// than the thread's base. The marker disappears when the session is disposed, or
|
|
285
|
-
// when a dispatch's own ROUTING moves that session — an explicit `model`, or the
|
|
286
|
-
// thread's base with the router on — since the marker describes the model the
|
|
287
|
-
// session is ACTUALLY on (CQ20, the same correction CQ14 made in threads.ts; the
|
|
288
|
-
// one switch that never clears it is the revert, which stands down while the
|
|
289
|
-
// marker is held). Failover is never persisted to the thread record.
|
|
290
|
-
const live = getManager().liveFailoverModel(t.id);
|
|
291
|
-
if (live) marks.push(`live=${live} (failover)`);
|
|
292
|
-
const models = marks.length > 0 ? ` ${marks.join(" ")}` : "";
|
|
293
|
-
return `${renderThreadId(t.id)} "${t.name}" [${t.status}]${typeMarker}${models} — episode: ${episode} — updated ${new Date(t.updatedAt).toISOString()}`;
|
|
294
|
-
});
|
|
295
|
-
return { content: [{ type: "text", text: lines.join("\n") }], details: { count: threads.length, failedCount: threads.filter((thread) => thread.status === "failed").length } };
|
|
408
|
+
prepared.detail = value;
|
|
409
|
+
}
|
|
410
|
+
return prepared;
|
|
411
|
+
},
|
|
412
|
+
async execute(_toolCallId, { before, detail }) {
|
|
413
|
+
if (before !== undefined) validateThreadCursor(before);
|
|
414
|
+
const { text, details } = listThreads(store, getManager, before, detail);
|
|
415
|
+
return { content: [{ type: "text", text }], details };
|
|
296
416
|
},
|
|
297
417
|
});
|
|
298
418
|
|
|
@@ -309,8 +429,7 @@ export function registerSlateTools(pi: ExtensionAPI, store: SlateStore, getManag
|
|
|
309
429
|
async execute(_toolCallId, params, _signal, _onUpdate, ctx) {
|
|
310
430
|
const episode = store.episodes.get(params.id);
|
|
311
431
|
if (!episode) {
|
|
312
|
-
|
|
313
|
-
throw new Error(`Unknown episode "${params.id}". Known episodes: ${known}`);
|
|
432
|
+
throw new Error("Unknown episode. Use threads to find episode IDs.");
|
|
314
433
|
}
|
|
315
434
|
const file = resolveEpisodeFile(ctx.cwd, episode.file);
|
|
316
435
|
if (file === undefined) throw new Error(`Episode "${params.id}" is no longer a safe readable slate episode file.`);
|
package/extension/worker.ts
CHANGED
|
@@ -80,7 +80,7 @@ export function isJudgementThreadType(type: unknown): type is (typeof JUDGEMENT_
|
|
|
80
80
|
return (JUDGEMENT_THREAD_TYPES as readonly unknown[]).includes(type);
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
-
// pi-ai 1.
|
|
83
|
+
// pi-ai 1.6.0 declares this value in
|
|
84
84
|
// @earendil-works/pi-ai/dist/api/openai-prompt-cache.js. pi's extension loader
|
|
85
85
|
// aliases the package root to dist/core/extensions/pi-ai-extension-view.js,
|
|
86
86
|
// which re-exports compat. This file alias prevents safe deep-subpath imports.
|
|
@@ -187,7 +187,7 @@ function installPromptCacheKey(session: WorkerSession, promptCacheKey?: string):
|
|
|
187
187
|
}
|
|
188
188
|
|
|
189
189
|
try {
|
|
190
|
-
// pi-ai 1.
|
|
190
|
+
// pi-ai 1.6.0 api/openai-responses.js buildParams always creates
|
|
191
191
|
// prompt_cache_key and assigns undefined when resolved cacheRetention is
|
|
192
192
|
// "none". Own-property presence therefore distinguishes that deliberate
|
|
193
193
|
// opt-out from a payload shape that never considered this field.
|
|
@@ -320,10 +320,10 @@ export function createWorkerRequestContract(): WorkerRequestContract {
|
|
|
320
320
|
* · the wait happens BEFORE the SDK converts the conversation into a provider
|
|
321
321
|
* payload, so a waiting request holds no converted copy (PF5).
|
|
322
322
|
*
|
|
323
|
-
* In pi 1.
|
|
323
|
+
* In pi 1.6.0, createAgentSession marks its installed stream function through
|
|
324
324
|
* markRuntimeStreamFunction (dist/core/sdk.js:290).
|
|
325
325
|
* AgentSession._getSummarizationRequestAuth skips credential pre-resolution
|
|
326
|
-
* only for a marked function (dist/core/agent-session.js:
|
|
326
|
+
* only for a marked function (dist/core/agent-session.js:279–312).
|
|
327
327
|
* Slate replaces that function without carrying its mark. Worker summaries
|
|
328
328
|
* take the fallback branch and receive the resolved credential as an explicit
|
|
329
329
|
* apiKey. Issue #591 tracks the repair.
|
|
@@ -487,7 +487,7 @@ export async function openWorkerSession(opts: {
|
|
|
487
487
|
// user has NOT trusted. Carry the host session's actual trust decision into
|
|
488
488
|
// both the resource loader and the session.
|
|
489
489
|
//
|
|
490
|
-
// READ-ONLY view (AF8/AF9): pi 1.
|
|
490
|
+
// READ-ONLY view (AF8/AF9): pi 1.6.0 keeps ordinary session.setModel and
|
|
491
491
|
// setThinkingLevel calls inside the session. Slate requests no persistence.
|
|
492
492
|
// This storage protects global settings from calls with persist:true and
|
|
493
493
|
// from hosts that persist switches. A file-backed manager would save those
|
|
@@ -664,7 +664,7 @@ export async function openWorkerSession(opts: {
|
|
|
664
664
|
? SessionManager.open(opts.sessionFile)
|
|
665
665
|
: SessionManager.create(ctx.cwd, ensureRuntimeDirectory(ctx.cwd, opts.runtimeFolder ?? defaultArtifactFolder(), "threads"));
|
|
666
666
|
|
|
667
|
-
// In pi 1.
|
|
667
|
+
// In pi 1.6.0, createAgentSession creates a ModelRuntime when none is passed.
|
|
668
668
|
// It uses auth.json, models.json and models-store.json under agentDir.
|
|
669
669
|
// SDK creation enables network catalog refresh only with allowModelNetwork.
|
|
670
670
|
// This call supplies no runtime option, so creation uses no network catalog
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ytdb-slate",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0",
|
|
4
4
|
"description": "Design-first feature development for the pi coding agent. Slate researches, designs, implements and reviews each change. You judge the design and keep control of the code without reading every line.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -37,9 +37,9 @@
|
|
|
37
37
|
"typebox": "*"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@earendil-works/pi-ai": "1.
|
|
41
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
42
|
-
"@earendil-works/pi-tui": "1.
|
|
40
|
+
"@earendil-works/pi-ai": "1.6.0",
|
|
41
|
+
"@earendil-works/pi-coding-agent": "1.6.0",
|
|
42
|
+
"@earendil-works/pi-tui": "1.6.0",
|
|
43
43
|
"@types/node": "24.13.3",
|
|
44
44
|
"typebox": "1.3.27",
|
|
45
45
|
"typescript": "5.9.3"
|