agentic-assistant 0.5.2 → 0.6.1
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 +17 -1
- package/README.md +1 -1
- package/dist/{chunk-PCHOZUAD.js → chunk-564BORAQ.js} +1 -1
- package/dist/{chunk-4S24ZBA7.js → chunk-6K3L4BNW.js} +2 -2
- package/dist/{chunk-H5SLBFAJ.js → chunk-AQWA5H5I.js} +1 -1
- package/dist/{chunk-Z5HBVB6E.js → chunk-IUOLGMVJ.js} +2 -2
- package/dist/{chunk-XBTQSYDI.js → chunk-SV2L4VDJ.js} +1 -1
- package/dist/cli.js +4 -4
- package/dist/demo.js +7 -7
- package/dist/index.js +4 -4
- package/dist/{mcp-server-RPDNDBBJ.js → mcp-server-M32GH3AQ.js} +4 -4
- package/dist/react.css +14 -14
- package/dist/worker.js +2 -2
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.6.1
|
|
4
|
+
|
|
5
|
+
Patch. No change to the SDK, CLI or HTTP shape.
|
|
6
|
+
|
|
7
|
+
Changed
|
|
8
|
+
|
|
9
|
+
- `agentic-identity` is `^0.8.0`. The lockfile follows. The 0.8.0 additions (`tokens create`, `delegations create`) are not used here.
|
|
10
|
+
- `agentic-design` dev and peer dependency is `^0.5.0`. Version 0.5.0 changes token values only (colors, sizes, radii, shadows). Token names and the `agd-` prefix do not change. This package reads only `--agd-color-*` tokens.
|
|
11
|
+
|
|
12
|
+
## 0.6.0
|
|
13
|
+
|
|
14
|
+
Changed
|
|
15
|
+
|
|
16
|
+
- BREAKING: design class prefix is now agd-. The panel and demo page read the `--agd-color-*` tokens from `agentic-design` 0.4.0. The old prefix matches EasyList cosmetic rules, so ad blockers hid design-styled controls. Migration: set the `--agd-color-*` tokens in place of the old names, and load `agentic-design/tokens.css` from `agentic-design` ^0.4.0.
|
|
17
|
+
- `agentic-design` peer dependency and dev dependency raised to `^0.4.0`.
|
|
18
|
+
|
|
3
19
|
## 0.5.2 - 2026-10-29
|
|
4
20
|
|
|
5
21
|
No breaking changes. This is a patch release.
|
|
@@ -33,7 +49,7 @@ Changed
|
|
|
33
49
|
|
|
34
50
|
- `createStaticTokenAuth` now builds a `createStoreAuth` over a memory Store. The local `Authorization` header parser is gone, so `agentic-identity` reads the credential. A token now also signs in as a `session` cookie, and a write by cookie needs an origin in `origins`. A token map may not use one `id` twice.
|
|
35
51
|
- The demo Worker needs the scope `demo:read` on every `/api/v1` route. A token without it gets a 403. Migration: add `demo:read` to each scope list in `ASSISTANT_TOKENS`.
|
|
36
|
-
- `react.css` has no hex colors. Its `--aa-*` variables read the `agentic-design`
|
|
52
|
+
- `react.css` has no hex colors. Its `--aa-*` variables read the color tokens of `agentic-design` 0.3, so the panel follows the host theme, including dark mode. Load `agentic-design/tokens.css` on the page. Without it each variable falls back to a system color, and the panel loses its blue accent, tinted cards, amber approval box, and red danger color (the risk notice shows in link blue). The palette shifts a little (for example the accent is now `#2B4BC4`). `agentic-design` is an optional peer dependency (`^0.3.1`).
|
|
37
53
|
- The OpenAI-compatible provider skips a chunk or tool-call part that is not an object, so a JSON `null` no longer throws. It gives a tool-call part with no `index` its own call when it has an `id`, and continues the last call when it has none. It cancels the body of a failed response.
|
|
38
54
|
- The MCP tool source has unit tests.
|
|
39
55
|
|
package/README.md
CHANGED
|
@@ -118,7 +118,7 @@ import "agentic-assistant/react.css";
|
|
|
118
118
|
/>;
|
|
119
119
|
```
|
|
120
120
|
|
|
121
|
-
The panel colors are `agentic-design` tokens (`--
|
|
121
|
+
The panel colors are `agentic-design` tokens (`--agd-color-*`), so load `agentic-design/tokens.css` once, as above. The panel then follows your light or dark theme. Without the tokens the panel uses system colors. Set all `--agd-color-*` tokens or none: a partial set can give a pair that fails contrast. To set your own colors, override the `--aa-*` variables on `.aa-panel`.
|
|
122
122
|
|
|
123
123
|
The panel streams the answer, shows each tool call as a card, and shows an approval prompt with the exact arguments. Every message, card, and prompt that the assistant makes carries a visible "Machine-made" label. Tool output is shown as text and never as HTML. The panel does not hold a model, a key, or a gate. It needs `react` 18 or newer.
|
|
124
124
|
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
AnthropicProvider,
|
|
6
6
|
checkBaseUrl,
|
|
7
7
|
isLoopback
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-564BORAQ.js";
|
|
9
9
|
import {
|
|
10
10
|
PrincipalError,
|
|
11
11
|
ProviderError,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
digestCall,
|
|
18
18
|
printable,
|
|
19
19
|
runAssistant
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-AQWA5H5I.js";
|
|
21
21
|
import {
|
|
22
22
|
AssistantApiError,
|
|
23
23
|
createClient
|
|
@@ -2,12 +2,12 @@ import {
|
|
|
2
2
|
describeFailure,
|
|
3
3
|
runChat,
|
|
4
4
|
runRemote
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-6K3L4BNW.js";
|
|
6
6
|
import {
|
|
7
7
|
VERSION,
|
|
8
8
|
provenanceLabel,
|
|
9
9
|
provenanceMarker
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-AQWA5H5I.js";
|
|
11
11
|
|
|
12
12
|
// src/mcp-server.ts
|
|
13
13
|
import { Server } from "@modelcontextprotocol/sdk/server/index.js";
|
package/dist/cli.js
CHANGED
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
readTextFile,
|
|
8
8
|
runChat,
|
|
9
9
|
runRemote
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-6K3L4BNW.js";
|
|
11
11
|
import "./chunk-HYT732TN.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-564BORAQ.js";
|
|
13
13
|
import {
|
|
14
14
|
TOOL_RISKS,
|
|
15
15
|
VERSION,
|
|
16
16
|
printable,
|
|
17
17
|
provenanceLabel
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-AQWA5H5I.js";
|
|
19
19
|
import "./chunk-QTIEDY3V.js";
|
|
20
20
|
|
|
21
21
|
// src/cli.ts
|
|
@@ -327,7 +327,7 @@ async function runCli(argv, io = defaultIo()) {
|
|
|
327
327
|
for (const skip of setup.skipped.slice(0, MAX_SKIPPED_LINES)) io.err(`skipped tool ${oneLine(skip.name, 100)}: ${oneLine(skip.reason, 200)}`);
|
|
328
328
|
if (setup.skipped.length > MAX_SKIPPED_LINES) io.err(`skipped ${setup.skipped.length - MAX_SKIPPED_LINES} more tools`);
|
|
329
329
|
if (parsed.command === "mcp") {
|
|
330
|
-
const { startAssistantMcp } = await import("./mcp-server-
|
|
330
|
+
const { startAssistantMcp } = await import("./mcp-server-M32GH3AQ.js");
|
|
331
331
|
await startAssistantMcp(setup, remote, { approve: parsed.allowApprove ?? false });
|
|
332
332
|
return 0;
|
|
333
333
|
}
|
package/dist/demo.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createStaticTokenAuth,
|
|
3
3
|
createWorker
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SV2L4VDJ.js";
|
|
5
5
|
import {
|
|
6
6
|
AnthropicProvider
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-564BORAQ.js";
|
|
8
8
|
import {
|
|
9
9
|
ToolRegistry,
|
|
10
10
|
VERSION,
|
|
11
11
|
hasScope
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-AQWA5H5I.js";
|
|
13
13
|
|
|
14
14
|
// src/demo-page.ts
|
|
15
15
|
var DEMO_CSP = "default-src 'none'; style-src 'unsafe-inline'; script-src 'unsafe-inline'; connect-src 'self'; base-uri 'none'; form-action 'none'; frame-ancestors 'none'";
|
|
@@ -21,13 +21,13 @@ var DEMO_PAGE = `<!doctype html>
|
|
|
21
21
|
<title>agentic-assistant demo</title>
|
|
22
22
|
<style>
|
|
23
23
|
:root{color-scheme:light dark}
|
|
24
|
-
body{font:16px/1.5 system-ui,sans-serif;max-width:42rem;margin:2rem auto;padding:0 1rem;color:var(--
|
|
24
|
+
body{font:16px/1.5 system-ui,sans-serif;max-width:42rem;margin:2rem auto;padding:0 1rem;color:var(--agd-color-text,CanvasText);background:var(--agd-color-surface,Canvas)}
|
|
25
25
|
label{display:block;margin-top:1rem;font-weight:600}
|
|
26
26
|
input,textarea,button{font:inherit;padding:.5rem;width:100%;box-sizing:border-box}
|
|
27
27
|
button{width:auto;min-height:2.5rem;margin-top:1rem;cursor:pointer}
|
|
28
|
-
:focus-visible{outline:3px solid var(--
|
|
29
|
-
#out{white-space:pre-wrap;border:1px solid var(--
|
|
30
|
-
.badge{display:inline-block;border:1px solid var(--
|
|
28
|
+
:focus-visible{outline:3px solid var(--agd-color-focus,LinkText);outline-offset:2px}
|
|
29
|
+
#out{white-space:pre-wrap;border:1px solid var(--agd-color-border-strong,CanvasText);padding:1rem;margin-top:1rem;min-height:4rem}
|
|
30
|
+
.badge{display:inline-block;border:1px solid var(--agd-color-text,CanvasText);padding:0 .5rem;font-size:.875rem}
|
|
31
31
|
</style>
|
|
32
32
|
</head>
|
|
33
33
|
<body>
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAssistantMcpServer,
|
|
3
3
|
startAssistantMcp
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-IUOLGMVJ.js";
|
|
5
5
|
import {
|
|
6
6
|
ConfigError,
|
|
7
7
|
FallbackProvider,
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
connectMcpTools,
|
|
11
11
|
parseTarget,
|
|
12
12
|
runChat
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-6K3L4BNW.js";
|
|
14
14
|
import "./chunk-HYT732TN.js";
|
|
15
15
|
import {
|
|
16
16
|
AnthropicProvider,
|
|
17
17
|
DEFAULT_ANTHROPIC_MODEL,
|
|
18
18
|
PRICING_CHECKED_ON
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-564BORAQ.js";
|
|
20
20
|
import {
|
|
21
21
|
ACTIONS,
|
|
22
22
|
DATA_NOTICE,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
provenanceMarker,
|
|
41
41
|
runAssistant,
|
|
42
42
|
scopeCovers
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-AQWA5H5I.js";
|
|
44
44
|
import "./chunk-QTIEDY3V.js";
|
|
45
45
|
export {
|
|
46
46
|
ACTIONS,
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAssistantMcpServer,
|
|
3
3
|
startAssistantMcp
|
|
4
|
-
} from "./chunk-
|
|
5
|
-
import "./chunk-
|
|
4
|
+
} from "./chunk-IUOLGMVJ.js";
|
|
5
|
+
import "./chunk-6K3L4BNW.js";
|
|
6
6
|
import "./chunk-HYT732TN.js";
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
import "./chunk-564BORAQ.js";
|
|
8
|
+
import "./chunk-AQWA5H5I.js";
|
|
9
9
|
import "./chunk-QTIEDY3V.js";
|
|
10
10
|
export {
|
|
11
11
|
createAssistantMcpServer,
|
package/dist/react.css
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
|
-
/* Plain CSS variables. They read the agentic-design tokens (--
|
|
1
|
+
/* Plain CSS variables. They read the agentic-design tokens (--agd-color-*), so load
|
|
2
2
|
agentic-design/tokens.css once on the page. Override --aa-* on .aa-panel or a parent to match your app.
|
|
3
3
|
Without the tokens, each variable falls back to a system color, so focus and borders stay visible.
|
|
4
4
|
Every token pair meets WCAG 2.2 AA contrast in light and dark; src/react/styles.test.ts checks it.
|
|
5
5
|
No remote fonts or images. */
|
|
6
6
|
.aa-panel {
|
|
7
|
-
--aa-bg: var(--
|
|
8
|
-
--aa-fg: var(--
|
|
9
|
-
--aa-muted: var(--
|
|
10
|
-
--aa-border: var(--
|
|
11
|
-
--aa-accent: var(--
|
|
12
|
-
--aa-accent-fg: var(--
|
|
13
|
-
--aa-focus: var(--
|
|
14
|
-
--aa-machine-bg: var(--
|
|
15
|
-
--aa-machine-fg: var(--
|
|
16
|
-
--aa-card-bg: var(--
|
|
17
|
-
--aa-warn-bg: var(--
|
|
18
|
-
--aa-warn-fg: var(--
|
|
19
|
-
--aa-danger: var(--
|
|
7
|
+
--aa-bg: var(--agd-color-surface, Canvas);
|
|
8
|
+
--aa-fg: var(--agd-color-text, CanvasText);
|
|
9
|
+
--aa-muted: var(--agd-color-text-muted, CanvasText);
|
|
10
|
+
--aa-border: var(--agd-color-border-strong, CanvasText);
|
|
11
|
+
--aa-accent: var(--agd-color-accent, LinkText);
|
|
12
|
+
--aa-accent-fg: var(--agd-color-text-on-accent, Canvas);
|
|
13
|
+
--aa-focus: var(--agd-color-focus, LinkText);
|
|
14
|
+
--aa-machine-bg: var(--agd-color-accent-subtle, Canvas);
|
|
15
|
+
--aa-machine-fg: var(--agd-color-accent-text, CanvasText);
|
|
16
|
+
--aa-card-bg: var(--agd-color-surface-sunken, Canvas);
|
|
17
|
+
--aa-warn-bg: var(--agd-color-warning-subtle, Canvas);
|
|
18
|
+
--aa-warn-fg: var(--agd-color-warning-text, CanvasText);
|
|
19
|
+
--aa-danger: var(--agd-color-danger, LinkText);
|
|
20
20
|
|
|
21
21
|
display: flex;
|
|
22
22
|
flex-direction: column;
|
package/dist/worker.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agentic-assistant",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "An AI assistant that acts inside your apps with the user's own permissions.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"assistant",
|
|
@@ -74,7 +74,7 @@
|
|
|
74
74
|
"dependencies": {
|
|
75
75
|
"@anthropic-ai/sdk": "^1.3.0",
|
|
76
76
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
77
|
-
"agentic-identity": "^0.
|
|
77
|
+
"agentic-identity": "^0.8.0",
|
|
78
78
|
"ajv": "^8.20.0"
|
|
79
79
|
},
|
|
80
80
|
"devDependencies": {
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"@types/node": "^22.0.0",
|
|
85
85
|
"@types/react": "^19.3.0",
|
|
86
86
|
"@types/react-dom": "^19.3.0",
|
|
87
|
-
"agentic-design": "^0.
|
|
87
|
+
"agentic-design": "^0.5.0",
|
|
88
88
|
"jsdom": "^30.1.3",
|
|
89
89
|
"react": "^19.3.1",
|
|
90
90
|
"react-dom": "^19.3.1",
|
|
@@ -94,7 +94,7 @@
|
|
|
94
94
|
"wrangler": "^4.155.0"
|
|
95
95
|
},
|
|
96
96
|
"peerDependencies": {
|
|
97
|
-
"agentic-design": "^0.
|
|
97
|
+
"agentic-design": "^0.5.0",
|
|
98
98
|
"react": ">=18"
|
|
99
99
|
},
|
|
100
100
|
"peerDependenciesMeta": {
|