@akanjs/devkit 3.2.0-rc.22 → 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 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.
@@ -580,11 +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]
587
600
  - Updated dependencies [cc59b93]
601
+ - Updated dependencies [278f8e4]
588
602
  - Updated dependencies [eb88032]
589
603
  - Updated dependencies [31f7039]
590
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.22",
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.22",
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.22",
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",