@fungi.computer/shiitake-extensions 0.6.8 → 0.6.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +81 -88
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
# Shiitake
|
|
1
|
+
# Shiitake extensions (`@fungi.computer/shiitake-extensions`)
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
3
|
+
The extensions behind Fungi's Agents: questions an Agent asks you, goals it
|
|
4
|
+
pursues across turns, repeating loops, plans, schedules, skills, a home Computer
|
|
5
|
+
and a footer of its sub-agents. Add them to any
|
|
6
|
+
[Shiitake](https://github.com/fungi-computer/shiitake) host with one roster.
|
|
7
7
|
|
|
8
|
-
##
|
|
9
|
-
|
|
10
|
-
This is a package for host and client maintainers. Use its exported subpaths
|
|
11
|
-
from the configured workspace, not an invented npm install. From the repository
|
|
12
|
-
root:
|
|
8
|
+
## Install
|
|
13
9
|
|
|
14
10
|
```sh
|
|
15
|
-
|
|
11
|
+
npm install @fungi.computer/shiitake-extensions @fungi.computer/shiitake
|
|
16
12
|
```
|
|
17
13
|
|
|
14
|
+
To compile against the complete public declarations, also install
|
|
15
|
+
`@modelcontextprotocol/sdk@1.25.2`; the shared provider SDK imports those types
|
|
16
|
+
through an optional peer. This needs no provider account.
|
|
17
|
+
|
|
18
18
|
A host passes `botanicalAgentExtensions` as its Shiitake `extensions` option. It
|
|
19
19
|
still supplies the SQLite owner, runtime wake, model and instruction sources and
|
|
20
20
|
any tools sandbox. The roster does not supply provider credentials or resource
|
|
@@ -183,46 +183,12 @@ timers. An accepted prompt is queued work, not a finished model reply. Core owns
|
|
|
183
183
|
replay cursors and publication after commit. A stopped extension exposes its
|
|
184
184
|
reason; the host can resume it without inventing a separate background loop.
|
|
185
185
|
|
|
186
|
-
##
|
|
186
|
+
## Add the host-composed extensions
|
|
187
187
|
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
the repository root after changing them, then
|
|
191
|
-
`pnpm --dir packages/shiitake-extensions run docs` to check consistency.
|
|
192
|
-
[package.json](package.json) owns these exported subpaths:
|
|
188
|
+
Home, Subagents and the conversation-Agent roster are composed by the host, not
|
|
189
|
+
included in `botanicalAgentExtensions`.
|
|
193
190
|
|
|
194
|
-
|
|
195
|
-
| ---------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
|
|
196
|
-
| `/goal`, `/goal/host` | [Goal contract](src/goal/contract.ts) and [definition](src/goal/host.ts). |
|
|
197
|
-
| `/loop`, `/loop/host` | [Loop contract](src/loop/contract.ts) and [definition](src/loop/host.ts). |
|
|
198
|
-
| `/almanac`, `/almanac/host` | [Schedule contract](src/almanac/contract.ts) and [definition](src/almanac/host.ts). |
|
|
199
|
-
| `/home`, `/home/host` | [Home contract](src/home/contract.ts) and [definition](src/home/host.ts). |
|
|
200
|
-
| `/question`, `/question/host` | [Question contract](src/question/contract.ts) and [definition](src/question/host.ts). |
|
|
201
|
-
| `/plan`, `/plan/host` | [Plan contract](src/plan/contract.ts) and [definition](src/plan/host.ts). |
|
|
202
|
-
| `/skills`, `/skills/source` | [Skills definition](src/skills/host.ts) and [host-owned source](src/skills/source.ts). |
|
|
203
|
-
| `/subagents`, `/subagents/host` | [Subagents contract](src/subagents/contract.ts) and [definition](src/subagents/host.ts). |
|
|
204
|
-
| `/subagents/client` | [Subagents client entry](src/subagents/client.ts). |
|
|
205
|
-
| `/goal/client`, `/loop/client`, `/plan/client` | Client entries for [Goal](src/goal/client.ts), [Loop](src/loop/client.ts) and [Plan](src/plan/client.ts). |
|
|
206
|
-
| `/roster` | [Product roster and grants](src/roster.ts). |
|
|
207
|
-
| `/schedules` | [Schema-only schedule pages, targets and receipts](src/schedules.ts). |
|
|
208
|
-
| `/schedules/client` | [Native schedule reads and controls](src/schedules/client.ts). |
|
|
209
|
-
|
|
210
|
-
[Loop tests](test/loop.test.ts) exercise scheduling and mid-run pause.
|
|
211
|
-
[Almanac tests](test/almanac.test.ts) exercise admission and retry.
|
|
212
|
-
[Catalog tests](test/catalog.test.ts) check the human interaction contracts.
|
|
213
|
-
These fixtures use the actual extension definitions on Shiitake with fake
|
|
214
|
-
models.
|
|
215
|
-
|
|
216
|
-
### Schedule consumers
|
|
217
|
-
|
|
218
|
-
Use `/schedules` for schedule schemas and types in an App bundle. It imports the
|
|
219
|
-
retained Almanac and Loop data schemas, not their native invocation clients.
|
|
220
|
-
Native host integrations use `/schedules/client` for `readAgentSchedulePage`,
|
|
221
|
-
`controlAgentSchedule` and `controlAgentScheduleWithContent` on an already
|
|
222
|
-
admitted Agent owner. These helpers own no admission policy, store or scheduler.
|
|
223
|
-
Reading and management remain separately admitted by the host.
|
|
224
|
-
|
|
225
|
-
## Home
|
|
191
|
+
### Home
|
|
226
192
|
|
|
227
193
|
The host creates `homeExtension({ computers })`, where `computers.read()`
|
|
228
194
|
synchronously returns the current attachments as `{ name, attachmentId, port }`.
|
|
@@ -253,33 +219,7 @@ Hosts keep the control door human/operator-authorized.
|
|
|
253
219
|
[Home tests](test/home.test.ts) exercise selection, capture, detachment, routing
|
|
254
220
|
and gating on real Shiitake.
|
|
255
221
|
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
A roster entry is not an external-resource grant. The host still admits each
|
|
259
|
-
operation and owns its current Team, Computer and credential policy. A command
|
|
260
|
-
conflict requires a fresh observation; retry an uncertain request with the same
|
|
261
|
-
identity. A view with no goal is not evidence that a previous goal completed.
|
|
262
|
-
Closing a client view does not pause the goal, stop a loop or cancel a schedule.
|
|
263
|
-
|
|
264
|
-
## Contribute and license
|
|
265
|
-
|
|
266
|
-
Add regressions beside the owning extension or catalog. From the root:
|
|
267
|
-
|
|
268
|
-
```sh
|
|
269
|
-
pnpm --dir packages/shiitake-extensions run test
|
|
270
|
-
pnpm --dir packages/shiitake-extensions run typecheck
|
|
271
|
-
```
|
|
272
|
-
|
|
273
|
-
MIT. See [LICENSE](LICENSE).
|
|
274
|
-
|
|
275
|
-
## TypeScript consumer dependencies
|
|
276
|
-
|
|
277
|
-
Install `@modelcontextprotocol/sdk@1.25.2` alongside this package when compiling
|
|
278
|
-
its complete public declarations. The shared provider SDK imports those types
|
|
279
|
-
through an optional peer; the packed consumer supplies it explicitly. This does
|
|
280
|
-
not require a provider account or make a provider call.
|
|
281
|
-
|
|
282
|
-
## Subagents
|
|
222
|
+
### Subagents
|
|
283
223
|
|
|
284
224
|
The host creates `subagentsExtension({ source })` and adds `subagentsGrant`
|
|
285
225
|
(`projection` and `commands`: the human `/agents` command only collapses or
|
|
@@ -309,7 +249,70 @@ second old. While a row is working or waiting, they poll every five seconds
|
|
|
309
249
|
until nobody has read the parent for thirty seconds. Like Home, the extension is
|
|
310
250
|
composed by the host, not included in `botanicalAgentExtensions`.
|
|
311
251
|
|
|
312
|
-
|
|
252
|
+
### Conversation Agents
|
|
253
|
+
|
|
254
|
+
`@fungi.computer/shiitake-extensions/roster/conversation-agents` supplies the
|
|
255
|
+
shared Local, Hub and Oyster conversation-Agent composition. The host supplies
|
|
256
|
+
its authorized Agent directory and SQLite owner; the roster records accepted
|
|
257
|
+
creates and sends for a read-only footer without granting relationships or
|
|
258
|
+
authority. Storage is prepared lazily. The host remains responsible for creation
|
|
259
|
+
admission, Agent access and resource lifetime.
|
|
260
|
+
|
|
261
|
+
### Schedules in an App or native host
|
|
262
|
+
|
|
263
|
+
Use `/schedules` for schedule schemas and types in an App bundle. It imports the
|
|
264
|
+
retained Almanac and Loop data schemas, not their native invocation clients.
|
|
265
|
+
Native host integrations use `/schedules/client` for `readAgentSchedulePage`,
|
|
266
|
+
`controlAgentSchedule` and `controlAgentScheduleWithContent` on an already
|
|
267
|
+
admitted Agent owner. These helpers own no admission policy, store or scheduler.
|
|
268
|
+
Reading and management remain separately admitted by the host.
|
|
269
|
+
|
|
270
|
+
## API reference and examples
|
|
271
|
+
|
|
272
|
+
The [generated API reference](docs/api/README.md) follows the public
|
|
273
|
+
entrypoints. Run `pnpm --dir packages/shiitake-extensions run docs:write` from
|
|
274
|
+
the repository root after changing them, then
|
|
275
|
+
`pnpm --dir packages/shiitake-extensions run docs` to check consistency.
|
|
276
|
+
[package.json](package.json) owns these exported subpaths:
|
|
277
|
+
|
|
278
|
+
| Entry | Source |
|
|
279
|
+
| ---------------------------------------------- | --------------------------------------------------------------------------------------------------------- |
|
|
280
|
+
| `/goal`, `/goal/host` | [Goal contract](src/goal/contract.ts) and [definition](src/goal/host.ts). |
|
|
281
|
+
| `/loop`, `/loop/host` | [Loop contract](src/loop/contract.ts) and [definition](src/loop/host.ts). |
|
|
282
|
+
| `/almanac`, `/almanac/host` | [Schedule contract](src/almanac/contract.ts) and [definition](src/almanac/host.ts). |
|
|
283
|
+
| `/home`, `/home/host` | [Home contract](src/home/contract.ts) and [definition](src/home/host.ts). |
|
|
284
|
+
| `/question`, `/question/host` | [Question contract](src/question/contract.ts) and [definition](src/question/host.ts). |
|
|
285
|
+
| `/plan`, `/plan/host` | [Plan contract](src/plan/contract.ts) and [definition](src/plan/host.ts). |
|
|
286
|
+
| `/skills`, `/skills/source` | [Skills definition](src/skills/host.ts) and [host-owned source](src/skills/source.ts). |
|
|
287
|
+
| `/subagents`, `/subagents/host` | [Subagents contract](src/subagents/contract.ts) and [definition](src/subagents/host.ts). |
|
|
288
|
+
| `/subagents/client` | [Subagents client entry](src/subagents/client.ts). |
|
|
289
|
+
| `/goal/client`, `/loop/client`, `/plan/client` | Client entries for [Goal](src/goal/client.ts), [Loop](src/loop/client.ts) and [Plan](src/plan/client.ts). |
|
|
290
|
+
| `/roster` | [Product roster and grants](src/roster.ts). |
|
|
291
|
+
| `/schedules` | [Schema-only schedule pages, targets and receipts](src/schedules.ts). |
|
|
292
|
+
| `/schedules/client` | [Native schedule reads and controls](src/schedules/client.ts). |
|
|
293
|
+
|
|
294
|
+
[Loop tests](test/loop.test.ts) exercise scheduling and mid-run pause.
|
|
295
|
+
[Almanac tests](test/almanac.test.ts) exercise admission and retry.
|
|
296
|
+
[Catalog tests](test/catalog.test.ts) check the human interaction contracts.
|
|
297
|
+
These fixtures use the actual extension definitions on Shiitake with fake
|
|
298
|
+
models.
|
|
299
|
+
|
|
300
|
+
## Limits and errors
|
|
301
|
+
|
|
302
|
+
A roster entry is not an external-resource grant. The host still admits each
|
|
303
|
+
operation and owns its current Team, Computer and credential policy. A command
|
|
304
|
+
conflict requires a fresh observation; retry an uncertain request with the same
|
|
305
|
+
identity. A view with no goal is not evidence that a previous goal completed.
|
|
306
|
+
Closing a client view does not pause the goal, stop a loop or cancel a schedule.
|
|
307
|
+
|
|
308
|
+
## Contribute and license
|
|
309
|
+
|
|
310
|
+
Add regressions beside the owning extension or catalog. From the root:
|
|
311
|
+
|
|
312
|
+
```sh
|
|
313
|
+
pnpm --dir packages/shiitake-extensions run test
|
|
314
|
+
pnpm --dir packages/shiitake-extensions run typecheck
|
|
315
|
+
```
|
|
313
316
|
|
|
314
317
|
Run `pnpm run build`, `pnpm run pack` and `pnpm run stranger` in this package.
|
|
315
318
|
The maintained stranger proof installs only package tarballs into a fresh npm
|
|
@@ -318,14 +321,4 @@ compiles every JavaScript entrypoint with strict NodeNext and no library-check
|
|
|
318
321
|
skip. This qualification does not publish npm releases or push a repository
|
|
319
322
|
split.
|
|
320
323
|
|
|
321
|
-
See [LICENSE](LICENSE)
|
|
322
|
-
repository destination.
|
|
323
|
-
|
|
324
|
-
## Conversation Agent composition
|
|
325
|
-
|
|
326
|
-
`@fungi.computer/shiitake-extensions/roster/conversation-agents` supplies the
|
|
327
|
-
shared Local, Hub and Oyster conversation-Agent composition. The host supplies
|
|
328
|
-
its authorized Agent directory and SQLite owner; the roster records accepted
|
|
329
|
-
creates and sends for a read-only footer without granting relationships or
|
|
330
|
-
authority. Storage is prepared lazily. The host remains responsible for creation
|
|
331
|
-
admission, Agent access and resource lifetime.
|
|
324
|
+
MIT. See [LICENSE](LICENSE).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fungi.computer/shiitake-extensions",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.9",
|
|
4
4
|
"author": "Levi <levi@technomancy.dev>",
|
|
5
5
|
"private": false,
|
|
6
6
|
"description": "Botanical's product Shiitake extensions: goal, loop and Almanac on the generic extension surface",
|
|
@@ -116,10 +116,10 @@
|
|
|
116
116
|
"dependencies": {
|
|
117
117
|
"@fungi.computer/almanac": "0.2.1",
|
|
118
118
|
"@fungi.computer/cairn": "0.1.0",
|
|
119
|
-
"@fungi.computer/knapsack": "0.4.
|
|
120
|
-
"@fungi.computer/mycelium": "0.3.
|
|
121
|
-
"@fungi.computer/shiitake": "0.12.
|
|
122
|
-
"@fungi.computer/watchdog": "0.1.
|
|
119
|
+
"@fungi.computer/knapsack": "0.4.8",
|
|
120
|
+
"@fungi.computer/mycelium": "0.3.7",
|
|
121
|
+
"@fungi.computer/shiitake": "0.12.2",
|
|
122
|
+
"@fungi.computer/watchdog": "0.1.3",
|
|
123
123
|
"@fungi.computer/whistle": "0.3.0",
|
|
124
124
|
"effect": "4.0.2",
|
|
125
125
|
"zod": "4.4.3",
|