agl 43.14.0 → 44.0.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 +22 -0
- package/dist_serve/bundle.js +4473 -4235
- package/dist_serve/bundle.js.map +2 -2
- package/dist_serve/bundle.js.third-party-notices.json +29 -29
- package/dist_serve/bundle.js.third-party-notices.txt +29 -29
- package/dist_ts/00_commitinfo_data.js +2 -2
- package/dist_ts/aglapi/aglapisurface.document.js +37 -4
- package/dist_ts/classes.authstore.d.ts +60 -3
- package/dist_ts/classes.authstore.js +161 -13
- package/dist_ts/classes.controller.d.ts +63 -0
- package/dist_ts/classes.controller.js +502 -43
- package/dist_ts/classes.embeddeddb.js +7 -2
- package/dist_ts/classes.flexmodels.private.d.ts +39 -0
- package/dist_ts/classes.flexmodels.private.js +127 -1
- package/dist_ts/classes.flexprojectpreparation.d.ts +21 -0
- package/dist_ts/classes.flexprojectpreparation.js +69 -0
- package/dist_ts/classes.flexpromptqueue.d.ts +21 -1
- package/dist_ts/classes.flexpromptqueue.js +67 -7
- package/dist_ts/classes.flexrequestqueue.d.ts +11 -0
- package/dist_ts/classes.flexrequestqueue.js +40 -0
- package/dist_ts/classes.flexservice.d.ts +46 -14
- package/dist_ts/classes.flexservice.js +179 -55
- package/dist_ts/classes.flexstore.d.ts +68 -3
- package/dist_ts/classes.flexstore.js +277 -11
- package/dist_ts/classes.flexsubmissionmodels.d.ts +58 -0
- package/dist_ts/classes.flexsubmissionmodels.js +162 -0
- package/dist_ts/classes.flexsubmissionstore.d.ts +70 -0
- package/dist_ts/classes.flexsubmissionstore.js +323 -0
- package/dist_ts/classes.flexsupervisor.d.ts +10 -0
- package/dist_ts/classes.flexsupervisor.js +27 -1
- package/dist_ts/classes.harnessoperationmanager.d.ts +31 -0
- package/dist_ts/classes.harnessoperationmanager.js +69 -7
- package/dist_ts/classes.pendingpromptstore.d.ts +11 -3
- package/dist_ts/classes.pendingpromptstore.js +66 -10
- package/dist_ts/classes.sessionidentityservice.d.ts +18 -1
- package/dist_ts/classes.sessionidentityservice.js +34 -4
- package/dist_ts/classes.validation.d.ts +3 -0
- package/dist_ts/classes.validation.js +50 -1
- package/dist_ts/functions.deviceapi.js +3 -1
- package/dist_ts/interfaces.auth.d.ts +3 -1
- package/dist_ts/interfaces.auth.js +1 -1
- package/dist_ts/interfaces.flexipc.d.ts +29 -5
- package/dist_ts/interfaces.flexipc.js +13 -4
- package/dist_ts_authswitch/classes.authoritydatabase.d.ts +1 -0
- package/dist_ts_authswitch/classes.authoritydatabase.js +17 -5
- package/dist_ts_interfaces/flexadmission.d.ts +69 -0
- package/dist_ts_interfaces/flexadmission.js +2 -0
- package/dist_ts_interfaces/index.d.ts +1 -0
- package/dist_ts_interfaces/index.js +2 -1
- package/dist_ts_interfaces/interfaces.d.ts +10 -1
- package/dist_ts_interfaces/interfaces.js +2 -2
- package/dist_ts_interfaces/requests.d.ts +2 -1
- package/dist_ts_interfaces/requests.js +1 -1
- package/dist_ts_migration/v10_flexharnessv3migration.js +4 -1
- package/docs/nosqldb11-migration.md +59 -0
- package/package.json +10 -9
- package/readme.md +5 -1
- package/ts/00_commitinfo_data.ts +1 -1
- package/ts/aglapi/aglapisurface.document.ts +36 -3
- package/ts/classes.authstore.ts +179 -11
- package/ts/classes.controller.ts +498 -40
- package/ts/classes.embeddeddb.ts +6 -1
- package/ts/classes.flexmodels.private.ts +109 -0
- package/ts/classes.flexprojectpreparation.ts +69 -0
- package/ts/classes.flexpromptqueue.ts +69 -6
- package/ts/classes.flexrequestqueue.ts +47 -0
- package/ts/classes.flexservice.ts +187 -51
- package/ts/classes.flexstore.ts +352 -10
- package/ts/classes.flexsubmissionmodels.ts +89 -0
- package/ts/classes.flexsubmissionstore.ts +312 -0
- package/ts/classes.flexsupervisor.ts +26 -0
- package/ts/classes.harnessoperationmanager.ts +79 -6
- package/ts/classes.pendingpromptstore.ts +55 -6
- package/ts/classes.sessionidentityservice.ts +33 -2
- package/ts/classes.validation.ts +42 -0
- package/ts/functions.deviceapi.ts +2 -0
- package/ts/interfaces.auth.ts +3 -1
- package/ts/interfaces.flexipc.ts +38 -4
- package/ts_authswitch/classes.authoritydatabase.ts +19 -5
- package/ts_interfaces/flexadmission.ts +52 -0
- package/ts_interfaces/index.ts +2 -0
- package/ts_interfaces/interfaces.ts +10 -1
- package/ts_interfaces/requests.ts +3 -0
- package/ts_migration/v10_flexharnessv3migration.ts +3 -0
- package/ts_web/00_commitinfo_data.ts +1 -1
- package/ts_web/classes.browsersubmissions.ts +279 -0
- package/ts_web/classes.sessiondraftsync.ts +64 -1
- package/ts_web/elements.harnesscontrollerapp.ts +340 -5
- package/ts_web/functions.flexsubmissions.ts +88 -0
package/changelog.md
CHANGED
|
@@ -1,5 +1,27 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2026-11-18 - 44.0.0
|
|
4
|
+
|
|
5
|
+
### Breaking Changes
|
|
6
|
+
|
|
7
|
+
- The embedded database is NoSQLDB 11.1.2 (`@lossless.org/nosqldb`, client `@lossless.org/client` 2.12.0). Its first start converts each AGL root in place, one way, to its new storage format: the controller's, the inference proxy's and the account authority's. AGL 43.x and earlier (NoSQLDB 10.x) cannot open a converted root, so starting an older AGL on it again is not a rollback; recovery is a stopped pre-upgrade copy under the documented conditions (`docs/nosqldb11-migration.md`). An interrupted conversion resumes on the next start.
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
- The Flex composer stays editable while a conversation is created, admitted or running: every click shows its own message at once as "Submitting…" (dees-catalog 24.7.0), then queued once the controller admitted it, under the same message id; a message typed after a click stays in the composer.
|
|
12
|
+
- Durable Flex admission (`controller.flex.submission.admit`, readback `controller.flex.submission.get`): each click is one immutable submission under its own `clientMessageId`, committed with its pending owner in one transaction before any native work, and answered with a receipt (`operationId`, per-conversation `serverSequence`, `state` `waiting | handedOver | held | settled`, `creation` `pending | ready | uncertain | retired`). A new conversation is a durable intent (`clientConversationId`) that takes further messages while FlexHarness creates it; the receipt carries the native generation sequence only once FlexHarness assigned it. A repeated admission, also one that meets its identity inside the transaction, answers the stored receipt; another body under the same id is refused with `invalid_request` and writes nothing. A receipt holds the submission's identity and its input digest only, never the text or the attachments (they live in the pending row and leave with it), and lives as long as its project: the project's removal deletes its receipts and conversation intents page by page through their project index, and `controller.flex.submission.get` answers `project_not_found` for a project that is being removed or was removed, never `null`. Admission no longer refuses with `concurrent_change` while Flex reconciles a project: it commits, and the message is dispatched once the reconciliation finished. The browser sends a refused message again, under its id and unchanged, only when the controller proved it was not admitted with a transient reason (`flex_not_ready`, `operation_limit`), at most three times after 0.5, 2 and 5 s; an unknown outcome or a lost connection is read back, never resent. A creation the child never received stays `pending` and is tried again by the next admission or child generation; one that may have reached it is `uncertain` until the next generation reads the native catalog. Admitted messages are never held or resent by a creation failure; they wait for their conversation. The shared draft is cleared only while it still holds the sent content at the captured revision, and a differing draft never refuses the message. `controller.session.send` on Flex records the same pending owner before dispatch and keeps its native-acceptance answer. A CLI command beside a running controller attaches to its database engine and is refused (`not_database_owner`) before it could write a project, a session locator or a managed session: only the controller process that owns the engine writes them.
|
|
13
|
+
- Flex project readiness (Flex IPC protocol 41): the child reports each project's preparation (`project.preparation`: `preparing`, `ready`, `failed`), and every mutating request of a project (session creation, prompt start, steer, slash command) waits for the project to be ready first, outside the request's 35 s control budget. A ready child is not a prepared project; the end of a child generation refuses every wait.
|
|
14
|
+
- Flex loads each project's conversations one at a time (FlexHarness session-local loading): starting the Flex runtime, opening, creating and sending in a conversation read only that conversation's history, never every history of its project. Each project is prepared once per Flex runtime start, in the background: the controller and every other project are usable meanwhile, and a message to the project waits until it is prepared. The first start after this upgrade, and the first start of a new project, prepare a project once with a complete load and repair (tens of seconds for a large project); the controller log names each such qualification (`Flex project qualified`, a warning when the project was written by a writer that did not keep its write record). Every Flex write is counted in the project's write record (`flex_namespace_writes`, with the recovery proof in `flex_scope_recovery`), so a project written by any writer that did not keep that record is qualified again instead of being trusted.
|
|
15
|
+
|
|
16
|
+
### Fixes
|
|
17
|
+
|
|
18
|
+
- A Flex turn whose runtime stops before it ends (an error that restarts the Flex child, a crash) keeps what it showed: FlexHarness 18.2.0 saves the committed steps of a running turn (tool calls, their results and text) into its transcript, so the turn reloads as stopped with them instead of as an empty answer. Before, the visible turn lost everything since its prompt while the model still saw it.
|
|
19
|
+
- Removing a project whose directory is no longer trusted (metadata-only removal) leaves a Flex conversation's live project-management state as FlexHarness keeps it and clears only AGL's own settings of the conversation (Session Intelligence exchanges, model and account choice, limit-resume plan); a second run writes nothing. A full removal that finds a live record FlexHarness's removal left ends it with that record's own generation and logs a warning. Deleting a Flex conversation acts on why FlexHarness found nothing to delete (FlexHarness 18.3.0): when no generation of the conversation is left, AGL ends its own records of it (a project-management record of the deleted generation FlexHarness no longer knew is ended with that generation and logged as a warning); when a newer generation holds the conversation's id, the deletion is retired, nothing of the newer generation is touched and the controller log names both generations. A conversation that was never created but holds project-management state is deleted through FlexHarness.
|
|
20
|
+
|
|
21
|
+
### Maintenance
|
|
22
|
+
|
|
23
|
+
- Release tooling: pnpm 12.19.0 (from 12.18.0; 12.20.0 and later are younger than the seven-day minimum release age); @git.zone/tsrepo 2.2.0 and @types/node 26.6.6 are current.
|
|
24
|
+
|
|
3
25
|
## 2026-11-15 - 43.14.0
|
|
4
26
|
|
|
5
27
|
### Features
|