@akanjs/cli 3.2.0-rc.23 → 3.2.0-rc.25

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/.build-stamp CHANGED
@@ -1,2 +1,2 @@
1
- 453653a82e17f6d621f9b780ce9abf46be6943bf11498171f1ecc6df5b88d5a9
2
- fcddfd18-304c-4a25-a9ea-0a160d001c94
1
+ cc4e0ee215b44b9b980969600a6379ab65deb0de1714c03bbc98ba438c2eb138
2
+ 3ec45b84-0f2f-4470-b1ac-26bc61e7a42c
@@ -86,7 +86,7 @@ var workspaceTargets = ({ public: target }) => ({
86
86
  });
87
87
  var migrationTargets = ({ public: target }) => ({
88
88
  migrate: target({
89
- desc: "List, plan, apply, verify or roll back the app's data migrations in script/migration",
89
+ desc: "List, plan, apply, verify or roll back the app's data migrations in script/migration, or list and prune the indexes it no longer declares",
90
90
  stdio: true,
91
91
  usageExitCode: 2,
92
92
  onFailure: async (error, { usage, given }) => {
@@ -94,7 +94,10 @@ var migrationTargets = ({ public: target }) => ({
94
94
  return;
95
95
  await MigrationCommand.print(MigrationCommand.failure(null, migrationFailureOf(error, usage)), true);
96
96
  }
97
- }).with(App).arg("action", String, { desc: "list, plan, apply, verify or rollback", default: "list" }).arg("target", String, { desc: "migration id; for rollback, an apply's run id too", nullable: true }).option("param", String, { desc: "a param the migration declares, as name=value", multiple: true }).option("expect", String, { desc: "the plan hash an apply must still match", nullable: true }).option("items", Number, { desc: "how many planned decisions to print", nullable: true }).option("actor", String, { desc: "who runs it, as the ledger records", nullable: true }).option("json", Boolean, { desc: "print the result as one JSON line", default: false }).exec(async function(app, action, target, param, expect, items, actor, json) {
97
+ }).with(App).arg("action", String, {
98
+ desc: "list, plan, apply, verify, rollback, indexes or prune-indexes",
99
+ default: "list"
100
+ }).arg("target", String, { desc: "migration id; for rollback, an apply's run id too", nullable: true }).option("param", String, { desc: "a param the migration declares, as name=value", multiple: true }).option("expect", String, { desc: "the plan hash an apply must still match", nullable: true }).option("items", Number, { desc: "how many planned decisions to print", nullable: true }).option("actor", String, { desc: "who runs it, as the ledger records", nullable: true }).option("json", Boolean, { desc: "print the result as one JSON line", default: false }).exec(async function(app, action, target, param, expect, items, actor, json) {
98
101
  await this.applicationScript.migrate(app, [
99
102
  action,
100
103
  ...target ? [target] : [],
@@ -65,7 +65,9 @@ pages declaring one name never clash, and a registry kept outside the surface re
65
65
  `panelClassName="[&_[data-slot=agent-running]]:bg-accent"` restyles one without leaning on the markup. A modal,
66
66
  menu or popconfirm opened from inside the floating panel, `header` included, stacks above the panel, while
67
67
  one the page opens stays under it. While the turn waits on an approval, card or question, a scrim the panel
68
- opened sinks under the panel so the answer stays reachable, and it comes back once answered. `chrome={false}` drops the header bar whole, for an `inline` chat inside a
68
+ opened sinks under the panel so the answer stays reachable, and it comes back once answered. A question
69
+ arriving leaves focus in an overlay the person is typing in, and Escape in the composer closes a modal the panel
70
+ or a card opened through the modal's own close, `confirmClose` included, before it closes the panel. `chrome={false}` drops the header bar whole, for an `inline` chat inside a
69
71
  panel the app already titles, and `defaultDraft` opens the composer with text in it without sending it. A panel driven by a
70
72
  controlled `open` with **no** `onOpenChange` draws no close button at all rather than an inert one. Then the
71
73
  slots: `AgentLauncher`, `AgentSteps`, `AgentBubble`, `AgentComposer`, `AgentApproval`,
@@ -126,9 +128,10 @@ pages declaring one name never clash, and a registry kept outside the surface re
126
128
  carries `{ provider, status }`, the hostname and the HTTP status; the provider's own sentence goes to the server
127
129
  log only, because it can quote an account id or part of a key and `Err` data reaches the browser.
128
130
  `LlmOverflow.refusal(host, status, reason)` builds it, and reads the one refusal a chat can undo — a prompt past
129
- the window, recognized from each provider's own sentence — as `agent.error.contextOverflow` with the `limit` it
130
- named, which the relay flags so the chat compacts and asks again. An adaptor an app wrote throws through the same function, so its refusals
131
- translate and recover the way the shipped ones do without a key in the framework's dictionary it cannot add.
131
+ the window, recognized from each provider's own sentence — as `agent.error.contextOverflow` with the `limit` and
132
+ `requested` it named, which the relay flags so the chat compacts and asks again. An adaptor an app wrote throws through the same function, so its refusals
133
+ translate and recover the way the shipped ones do without a key in the framework's dictionary it cannot add. An
134
+ adaptor's own size cap throws that error with `{ limit, requested }` in its own unit, bytes included.
132
135
  - **`accepts` is answered per model, through `option.setLlm({ accepts })`.** An adaptor answers for an API and one
133
136
  API serves models that differ, so the override rides beside the `model` it is a fact about. It is not a table
134
137
  the framework keeps: a table is a claim about models that ship after it, and getting this wrong is the worst
@@ -603,8 +606,8 @@ pages declaring one name never clash, and a registry kept outside the surface re
603
606
  `window − answer ceiling (8,192 when unreported) − compact.buffer (13,000, the margin Claude Code leaves)` —
604
607
  measured by the provider's own count of the last turn (`done.usage`, kept on that assistant message) plus the
605
608
  four-character estimate for what arrived since, so a Korean transcript the character rule reads as small is
606
- still caught. The window comes from `option.setLlm({ contextWindow })` or from the first refusal that names it;
607
- with neither, only the ceiling runs. **A refusal for length is answered once**: a relay flags it `overflow` on
609
+ still caught. The window comes from `option.setLlm({ contextWindow })` or from a refusal that names it, scaled by
610
+ its `limit / requested` to this estimate when it gives both; with neither, only the ceiling runs. **A refusal for length is answered once**: a relay flags it `overflow` on
608
611
  the wire, and the session compacts and sends the same turn again, and a second refusal in the same send fails
609
612
  with `agent.error.contextOverflow`. Either way the history above the last `keep` messages
610
613
  becomes one message standing in for it, flagged `summary` on the wire — `<Agent.Chat compact={{ at, keep, buffer }} />`
@@ -575,6 +575,10 @@ at every event.
575
575
  short neutral prompt stands in, as each adaptor's own fallback is about a screen. `compact { at, keep }` summarizes
576
576
  the head, and a tool result is capped at 20,000 characters as the browser caps it. Its calls carry no ip, so an
577
577
  ip-scoped `rateLimit` counts them under one unknown address.
578
+ - **A refusal for length.** With `compact` set, a round whose call fails as `agent.error.contextOverflow` compacts
579
+ regardless of `at` and asks once more, as one round; a second refusal, or nothing to cut, ends the run with the
580
+ error. An adaptor with its own size cap throws that error with `{ limit, requested }` in its own unit, bytes
581
+ included, and the run lowers `at` to where that request would have fit.
578
582
 
579
583
  ## Rolling MCP Out To An App
580
584
 
@@ -124,6 +124,10 @@ body shape — this is the full contract behind them. Before changing route beha
124
124
  `property`, and a canonical / manifest / icon link, and keeps the rest — so a page states only what it changes.
125
125
  - A canonical link and `og:url` each name one URL, so a page carries them only from its own `.head()`, never from a
126
126
  layout's.
127
+ - A level that writes `og:image` or `twitter:image` drops the `og:image:*` / `twitter:image:*` tags it inherits, and a
128
+ `<meta name="theme-color">` a `.head()` writes replaces the root `.viewport({ themeColor })`'s. Only `.head()`
129
+ merges: a `<title>` or `<meta>` written inside a component renders beside the merged head, so a second `<title>`
130
+ can reach the document.
127
131
  - **A not-found or error view titles itself**: the `<title>` and `<meta>` at the top of what a layout's `.notFound()`
128
132
  / `.error()` returns replace the layouts' head, and the page's own head is dropped. Under a `.loading()` the head is
129
133
  already out, so they stay in the view.
@@ -630,10 +630,11 @@ serving without a key. Everything else is behind the ops channel.
630
630
  get 30 a minute per process; every refusal is the same 401 and spends none of them, and an address refused 10
631
631
  times in a minute gets 429 until it passes. A malformed key, or the machine token's own key
632
632
  (`AKAN_MACHINE_PUBLIC_KEY`), logs an error and leaves the app serving with the channel off.
633
- - **A migrate job runs for the token's `sub`**, which the run records as its actor: apply and rollback refuse a
634
- token without one, and a body naming `actor` is refused. Each option reaches the command as `--name=value`. One
635
- job runs at a time per process (409 meanwhile); the run's own lease keeps two hosts on one database apart. Jobs
636
- live in memory, so after a restart read the outcome from `list`. Polls count toward the 30 a minute.
633
+ - **A migrate job runs for the token's `sub`**, which the run records as its actor: apply, rollback and prune-indexes
634
+ refuse a token without one, and a body naming `actor` is refused. Each option reaches the command as
635
+ `--name=value`. One job runs at a time per process (409 meanwhile); the run's own lease keeps two hosts on one
636
+ database apart. Jobs live in memory, so after a restart read the outcome from `list`. Polls count toward the 30 a
637
+ minute.
637
638
  - **The app holds no storage credential.** It PUTs to the presigned URLs it was handed (`application/octet-stream`,
638
639
  the manifest `application/json`), plain http only to loopback. The manifest landing is the commit marker.
639
640
  - **Snapshots cover the SQLite modes only.** `single` copies the main file and, with `includeSolid`, the Solid file;
package/index.js CHANGED
@@ -30,7 +30,7 @@ var commandModules = {
30
30
  workspace: async () => (await import("./workspace.command-y4rznvhx.js")).WorkspaceCommand,
31
31
  agent: async () => (await import("./agent.command-p75jvgrd.js")).AgentCommand,
32
32
  code: async () => (await import("./code.command-mh7dh1st.js")).CodeCommand,
33
- application: async () => (await import("./application.command-ta2knqxm.js")).ApplicationCommand,
33
+ application: async () => (await import("./application.command-2gj106xf.js")).ApplicationCommand,
34
34
  library: async () => (await import("./library.command-x219mhcx.js")).LibraryCommand,
35
35
  localRegistry: async () => (await import("./localRegistry.command-4p17wa9t.js")).LocalRegistryCommand,
36
36
  package: async () => (await import("./package.command-c6df2hxx.js")).PackageCommand,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/cli",
3
- "version": "3.2.0-rc.23",
3
+ "version": "3.2.0-rc.25",
4
4
  "sourceType": "module",
5
5
  "type": "module",
6
6
  "publishConfig": {
@@ -39,7 +39,7 @@
39
39
  "@earendil-works/pi-tui": "1.3.0",
40
40
  "@inquirer/prompts": "^8.7.3",
41
41
  "@tailwindcss/node": "^4.3.3",
42
- "akanjs": "3.2.0-rc.23",
42
+ "akanjs": "3.2.0-rc.25",
43
43
  "chalk": "^6.0.1",
44
44
  "commander": "^15.0.0",
45
45
  "dayjs": "^1.11.23",