@abpjs/ui 0.2.0-next.1 → 0.2.0-next.10

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
@@ -1,5 +1,112 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.0-next.10
4
+
5
+ A prerelease under npm's `next` tag.
6
+
7
+ - ai: a scope's page (`AiScopeScreen`) no longer shows a named account's or group's limit (an agent's own, say) as
8
+ the site's or the scope's: those are counted on one line ("3 accounts and groups have limits of their own."), and a
9
+ person's default reads "Cost per day for each person: 1". `namedLimit` tells them apart.
10
+
11
+ ## 0.2.0-next.9
12
+
13
+ A prerelease under npm's `next` tag, from moving the first host's agent pages onto `agent` with no visible change.
14
+
15
+ - agent: a slot `agent.names` (`{ label, value, onChange, placeholder, fallback, kind }`) for a host's own field for
16
+ names by language; `ToolGroupsProvider` (`ToolGroupOf`) for the host's own groups of tools (its skills, an outside
17
+ server's tools), after the host's and plugins' and before the sandbox's; `agent.tools.extra` gets `listed` and
18
+ `loading`.
19
+ - agent: a read-only opt-in tool is Off/On; `AgentEditor variant="scope"` (a scope's own agent, its settings alone),
20
+ used by `ScopeAgentsScreen`; a scope's key in the agents list sits at the cell's start in right-to-left pages, and
21
+ `ItemLink` keeps the page's direction when it wraps words (a bare key stays left to right).
22
+
23
+ ## 0.2.0-next.8
24
+
25
+ A prerelease under npm's `next` tag: the third area, `agent`.
26
+
27
+ - **`@abpjs/ui/agent`** on AbpAgent.HttpApi 0.6.1: the site's switch and agents (`agentPages`, `AgentsAdmin`), a scope's
28
+ own agents (`ScopeAgentsScreen`), one agent's settings (form, tools, run limits, memories, its graph), standing
29
+ permissions, an item's runs and their questions, the questions waiting for the person, and the chat beside any page
30
+ (`AgentChatProvider`, `AgentChatPanel`, `useAgentChat().open(...)`), live through the host's events or polling every
31
+ 2 s. Rights `agent.site.admin`, `agent.scope.admin`. Slots for what stays the host's: `agent.markdown`,
32
+ `agent.run.actions`, `agent.picture`, `agent.connections`, `agent.tools.extra`, `agent.limits.extra`,
33
+ `agent.switch.extra`. Items open where the host says (`itemHref`, `ItemHrefProvider`). The graph uses React Flow
34
+ (`@xyflow/react`, `@dagrejs/dagre`): a host that shows it imports `@xyflow/react/dist/style.css` once.
35
+
36
+ ## 0.2.0-next.7
37
+
38
+ A prerelease under npm's `next` tag.
39
+
40
+ - Exports the passkey helpers next.5 described and didn't export: `createPasskey`, `getPasskey`, `passkeysSupported`.
41
+
42
+ ## 0.2.0-next.6
43
+
44
+ A prerelease under npm's `next` tag.
45
+
46
+ - `StepUpDialog`: an authenticator code alone where the server lets one pass (`appCodeAlone` in `step_up_required`'s
47
+ data, the operator's setting): the strong level asks for the code alone (a passkey still first when the person has
48
+ one), and the password level offers it instead of the password. Without the field, a code goes with the password, as
49
+ before. `StepUpNeed.appCodeAlone`.
50
+
51
+ ## 0.2.0-next.5
52
+
53
+ A prerelease under npm's `next` tag: the step-up dialog for AbpGuard 0.7.0's strong step-up and passkeys. Against an
54
+ older AbpGuard nothing changes (no level means the password level).
55
+
56
+ - `StepUpDialog` reads the level the server asks for (`step_up_required` with `level`, `methods`). At `strong`, it
57
+ offers a passkey first when the person has one, or the password with an authenticator code. Asked of someone with no
58
+ strong factor (`strong_factor_required`), it takes the password, then sets up a passkey or the app (QR and key) right
59
+ there, with the recovery codes shown once for a first factor; the call then asks again and they confirm with it.
60
+ - Passkeys in the browser's own JSON both ways (`createPasskey`, `getPasskey`, `passkeysSupported`), with a base64url
61
+ fallback for browsers without `PublicKeyCredential.parse*FromJSON`.
62
+ - `requestStepUp(need)` and `StepUpHandler` take the server's need (`StepUpNeed`, `stepUpNeedOf`). `createHostRequest`
63
+ and `createHostEvents` pass it on and ask again when the server asks for more (a factor set up, then the strong step-up),
64
+ up to three times. `HostRequestInit.stepUp: false` throws a step-up refusal instead of asking (the dialog's own calls).
65
+ `needsStepUp` and `STRONG_FACTOR_REQUIRED` beside `isStepUp`.
66
+ - `createHostEvents` asks the step-up dialog by default, as `createHostRequest` does.
67
+
68
+ ## 0.2.0-next.4
69
+
70
+ A prerelease under npm's `next` tag, for a host's scope page on the `ai` area.
71
+
72
+ - ai: `ai.models.can`'s context names the scope too (`scopeId`), so a host that keeps the connections reads that
73
+ scope's own record of what its models can do on a scope's screen.
74
+ - ai: `AiScopeScreen` takes the host's page `header`, drawn first in its own column, so a host's page keeps one column.
75
+
76
+ ## 0.2.0-next.3
77
+
78
+ A prerelease under npm's `next` tag. The `ai` area now needs **AbpAi.HttpApi 0.8.0** on the server: stay on next.2
79
+ until the server moves.
80
+
81
+ - Area requests stay the same across host objects: `useAreaRequest`, `useAreaEvents` and `useNames` read the host
82
+ through a ref, so a host built afresh on each render no longer makes every query ask again (a tab switch included).
83
+ - `readAbpError` reads a refusal at the top level (`{ code, message, ... }`, AbpAi's 422s) with the rest as its data,
84
+ instead of showing the status.
85
+ - `AppShell` on a phone: the drawer shows the place's card (name, detail, link) and the sidebar's `top` between the
86
+ site's pages and the place's, as the sidebar does, instead of only the place's name as a heading. The drawer is
87
+ named for screen readers (`labels.navigation`).
88
+ - `StepUpDialog`: its explanation fits any protected action ("This action is protected…"), not only rights and secrets.
89
+ - **ai on AbpAi.HttpApi 0.8.0** (its minimum now): a scope's screen reads the scope's view, so a scope's admin sees
90
+ the models open to it and the aliases and limits from above; the quick call through an alias is the area's own
91
+ (`TryPanel`, `POST try`), so the `ai.try` slot goes; whether the host keeps the connections comes from the server
92
+ (`connectionsKeptByHost`), the host's right only for a server that doesn't say; usage names people as the server
93
+ does, and a call an agent made for someone shows that person first, the agent beside them; the Projects tab asks each
94
+ scope's limits once.
95
+
96
+ ## 0.2.0-next.2
97
+
98
+ A prerelease under npm's `next` tag.
99
+
100
+ - `StepUpDialog`: the password again before a sensitive action, plus a code when the person has a second factor (their
101
+ app, a recovery code, or one the site sends), on AbpGuard's `session/step-up` and `me/second-factors`. `AbpProvider`
102
+ draws it when the host gives `paths.guard`. A host with its own dialog sets `stepUpDialog: false`. Its English and
103
+ Arabic texts can be overridden through `AbpHost.texts.stepUp`.
104
+ - `createHostRequest` asks that dialog by default (`requestStepUp`, once however many calls wait). With no dialog, the
105
+ call fails as the server answered. `setStepUpHandler` lets a host register its own.
106
+ - `ai`: a model priced 0 in and 0 out reads as "No price" (AbpAi's prices aren't nullable, and the calls are free
107
+ either way). A new slot, `ai.models.can` `{ connectionId, modelId }`, lets a host that keeps the connections say
108
+ what each model can do. It is temporary, until AbpAi 0.8.0.
109
+
3
110
  ## 0.2.0-next.1
4
111
 
5
112
  A prerelease under npm's `next` tag: the foundation and the first area, `ai`. More areas (`guard`, `agent`) follow in