@akanjs/devkit 3.2.0-rc.21 → 3.2.0-rc.23
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 +16 -1
- package/codeAgent/skills/akan-mcp/SKILL.md +2 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -63,6 +63,17 @@
|
|
|
63
63
|
- The `akan-scaffold` skill builds the request without a supporting entity nobody asked for and says why one may be needed, instead of stopping to ask.
|
|
64
64
|
- `akan code` closes a turn that changed files with those files and what `akan_verify` said.
|
|
65
65
|
|
|
66
|
+
- 4538737: `agentService.loop` can now ask the member a question and wait for the answer between runs, the way the in-page chat's `askUser` does.
|
|
67
|
+
|
|
68
|
+
- `ask: true` lists `askUser({ question, choices?, multiple? })`, with the in-page chat's own description and parameters.
|
|
69
|
+
- A call ends the run as `awaiting`, with `question: true` on the event. Calls written before it in the same batch have already run; calls written after it wait for the resume.
|
|
70
|
+
- Put the question to the member over your own transport. Append `{ id, name: "askUser", result }`, or an `error` when they dismiss it, and resume. A resume without the answer parks the call again. A resume without `ask` answers it as an unknown tool.
|
|
71
|
+
- `askUser` never reaches `approve` and counts as no tool call. `untrusted` never sees the answer, which is the member's own input.
|
|
72
|
+
- A call with no question is answered with an error and the run goes on.
|
|
73
|
+
- With `ask: true`, a `clientTools` entry named `askUser` is dropped, and an `allow` naming `askUser` is refused as an invalid argument.
|
|
74
|
+
|
|
75
|
+
The option is new and off by default, so no upgrade step is needed.
|
|
76
|
+
|
|
66
77
|
- dcddea0: `agentService.loop` can now call the tools of a screen the member has open, without running them on the server. The run parks each such call, the way an approval parks one, until the page answers it.
|
|
67
78
|
|
|
68
79
|
- **Server.** `clientTools` takes the definitions the open page sent over the app's own transport. They are listed beside the endpoint tools.
|
|
@@ -93,7 +104,7 @@
|
|
|
93
104
|
- **MCP Apps.** A rendered view may still call an `mcp: "agent"` entry, as it may call an `mcp: false` one.
|
|
94
105
|
- **Types.** `McpShelf` (`boolean | "agent"`) and `narrowestMcpShelf` are new in `akanjs/common`. `SerializedSignalShelf` is new in `akanjs/signal`. `McpDocumentOptions` and `McpExposureOption` gain `agent`.
|
|
95
106
|
|
|
96
|
-
Upgrade: code that reads `SliceCls.mcp`, a serialized endpoint's `mcp` or a serialized signal's `mcp` map
|
|
107
|
+
Upgrade: code that reads `mcp` (an endpoint's `signalOption.mcp`, `SliceCls.mcp`, a serialized endpoint's `mcp` or a serialized signal's `mcp` map) to decide whether an entry is on `/mcp` must test for listed, `(mcp ?? true) === true`. A check of `mcp !== false`, or a truthiness test, now lets `"agent"` through as listed. A workspace's copied `libs/shared` `AccountMiddleware` had exactly that check, which let an MCP client's OAuth token reach an `mcp: "agent"` endpoint over HTTP, so port its fix. Code that only declares `mcp: false` or `mcp: true` needs no change.
|
|
97
108
|
|
|
98
109
|
- 61fbd7d: `get_graph` takes `since`, a git revision, and returns the Change Map: the Akan Graph of what changed since HEAD forked from that revision, working tree and untracked files included. Every node, field and edge is marked `added`, `removed` or `changed`. The unchanged nodes a changed one calls, or is called by, stay in as context, and `unmapped` lists the changed files under `apps/` or `libs/` that no node covers, each marked the same way. `since: "HEAD"` maps uncommitted work only. Files `.gitignore` covers stay out, a renamed file reads as removed and added, and a CRLF checkout of an unchanged file reads as unchanged. A revision git does not know returns a `graph-since-unknown` diagnostic, and so does one HEAD shares no commit with (a shallow clone, say) instead of comparing with its tip. A revision that starts with `-` also returns it and never reaches git.
|
|
99
110
|
|
|
@@ -580,10 +591,14 @@
|
|
|
580
591
|
- Updated dependencies [bd198af]
|
|
581
592
|
- Updated dependencies [ba81635]
|
|
582
593
|
- Updated dependencies [bc792ab]
|
|
594
|
+
- Updated dependencies [4538737]
|
|
583
595
|
- Updated dependencies [dcddea0]
|
|
584
596
|
- Updated dependencies [2da2adc]
|
|
585
597
|
- Updated dependencies [e9a2c7f]
|
|
586
598
|
- Updated dependencies [6ffb8ef]
|
|
599
|
+
- Updated dependencies [f5d1e63]
|
|
600
|
+
- Updated dependencies [cc59b93]
|
|
601
|
+
- Updated dependencies [278f8e4]
|
|
587
602
|
- Updated dependencies [eb88032]
|
|
588
603
|
- Updated dependencies [31f7039]
|
|
589
604
|
- Updated dependencies [8c70603]
|
|
@@ -40,7 +40,8 @@ an endpoint with a real guard is published, one with none is refused, and so is
|
|
|
40
40
|
runs a model over those tools until it answers; `option.setAgentAccountResolver` resolves a stored `principal`
|
|
41
41
|
before every round. Each round is metered as its own turn with `turn.loop` and `turn.meta`. `toolkits` holds named
|
|
42
42
|
groups of `allow` back until the model calls `openToolkit`; `clientTools` (from `AgentClientTools` on an open page)
|
|
43
|
-
parks a call as `awaiting { client: true }` for the page to run
|
|
43
|
+
parks a call as `awaiting { client: true }` for the page to run; `ask: true` lists `askUser`, which parks as
|
|
44
|
+
`awaiting { question: true }` until you append the member's answer.
|
|
44
45
|
|
|
45
46
|
## Verify
|
|
46
47
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@akanjs/devkit",
|
|
3
|
-
"version": "3.2.0-rc.
|
|
3
|
+
"version": "3.2.0-rc.23",
|
|
4
4
|
"sourceType": "module",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
@@ -205,7 +205,7 @@
|
|
|
205
205
|
"./*": "./*.ts"
|
|
206
206
|
},
|
|
207
207
|
"dependencies": {
|
|
208
|
-
"@akanjs/language": "3.2.0-rc.
|
|
208
|
+
"@akanjs/language": "3.2.0-rc.23",
|
|
209
209
|
"@earendil-works/pi-agent-core": "1.3.0",
|
|
210
210
|
"@earendil-works/pi-ai": "1.3.0",
|
|
211
211
|
"@earendil-works/pi-codemode": "1.3.0",
|
|
@@ -214,7 +214,7 @@
|
|
|
214
214
|
"@earendil-works/pi-tui": "1.3.0",
|
|
215
215
|
"@inquirer/prompts": "^8.7.3",
|
|
216
216
|
"@tailwindcss/node": "^4.3.3",
|
|
217
|
-
"akanjs": "3.2.0-rc.
|
|
217
|
+
"akanjs": "3.2.0-rc.23",
|
|
218
218
|
"chalk": "^6.0.1",
|
|
219
219
|
"commander": "^15.0.0",
|
|
220
220
|
"dayjs": "^1.11.23",
|