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