agentic-assistant 0.5.2 → 0.6.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.0
4
+
5
+ Changed
6
+
7
+ - 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.
8
+ - `agentic-design` peer dependency and dev dependency raised to `^0.4.0`.
9
+
3
10
  ## 0.5.2 - 2026-10-29
4
11
 
5
12
  No breaking changes. This is a patch release.
@@ -33,7 +40,7 @@ Changed
33
40
 
34
41
  - `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
42
  - 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` tokens (`--ad-color-*`), 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`).
43
+ - `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
44
  - 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
45
  - The MCP tool source has unit tests.
39
46
 
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 (`--ad-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 `--ad-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`.
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
 
@@ -4,7 +4,7 @@ import {
4
4
  hasScope,
5
5
  parseScope,
6
6
  runAssistant
7
- } from "./chunk-H5SLBFAJ.js";
7
+ } from "./chunk-4YOTNHWM.js";
8
8
 
9
9
  // src/api.ts
10
10
  import { PRINCIPAL_KINDS } from "agentic-identity";
@@ -1,6 +1,6 @@
1
1
  // src/version.ts
2
2
  import { createRequire } from "module";
3
- var VERSION = true ? "0.5.2" : readPackageVersion();
3
+ var VERSION = true ? "0.6.0" : readPackageVersion();
4
4
 
5
5
  // src/approvals.ts
6
6
  import { createHash, randomUUID } from "crypto";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ProviderError
3
- } from "./chunk-H5SLBFAJ.js";
3
+ } from "./chunk-4YOTNHWM.js";
4
4
 
5
5
  // src/providers/anthropic.ts
6
6
  import Anthropic from "@anthropic-ai/sdk";
@@ -2,12 +2,12 @@ import {
2
2
  describeFailure,
3
3
  runChat,
4
4
  runRemote
5
- } from "./chunk-4S24ZBA7.js";
5
+ } from "./chunk-WDZUIVU7.js";
6
6
  import {
7
7
  VERSION,
8
8
  provenanceLabel,
9
9
  provenanceMarker
10
- } from "./chunk-H5SLBFAJ.js";
10
+ } from "./chunk-4YOTNHWM.js";
11
11
 
12
12
  // src/mcp-server.ts
13
13
  import { Server } from "@modelcontextprotocol/sdk/server/index.js";
@@ -5,7 +5,7 @@ import {
5
5
  AnthropicProvider,
6
6
  checkBaseUrl,
7
7
  isLoopback
8
- } from "./chunk-PCHOZUAD.js";
8
+ } from "./chunk-IXOE6XPI.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-H5SLBFAJ.js";
20
+ } from "./chunk-4YOTNHWM.js";
21
21
  import {
22
22
  AssistantApiError,
23
23
  createClient
package/dist/cli.js CHANGED
@@ -7,15 +7,15 @@ import {
7
7
  readTextFile,
8
8
  runChat,
9
9
  runRemote
10
- } from "./chunk-4S24ZBA7.js";
10
+ } from "./chunk-WDZUIVU7.js";
11
11
  import "./chunk-HYT732TN.js";
12
- import "./chunk-PCHOZUAD.js";
12
+ import "./chunk-IXOE6XPI.js";
13
13
  import {
14
14
  TOOL_RISKS,
15
15
  VERSION,
16
16
  printable,
17
17
  provenanceLabel
18
- } from "./chunk-H5SLBFAJ.js";
18
+ } from "./chunk-4YOTNHWM.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-RPDNDBBJ.js");
330
+ const { startAssistantMcp } = await import("./mcp-server-SYJM77VO.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-XBTQSYDI.js";
4
+ } from "./chunk-4N722U3I.js";
5
5
  import {
6
6
  AnthropicProvider
7
- } from "./chunk-PCHOZUAD.js";
7
+ } from "./chunk-IXOE6XPI.js";
8
8
  import {
9
9
  ToolRegistry,
10
10
  VERSION,
11
11
  hasScope
12
- } from "./chunk-H5SLBFAJ.js";
12
+ } from "./chunk-4YOTNHWM.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(--ad-color-text,CanvasText);background:var(--ad-color-surface,Canvas)}
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(--ad-color-focus,LinkText);outline-offset:2px}
29
- #out{white-space:pre-wrap;border:1px solid var(--ad-color-border-strong,CanvasText);padding:1rem;margin-top:1rem;min-height:4rem}
30
- .badge{display:inline-block;border:1px solid var(--ad-color-text,CanvasText);padding:0 .5rem;font-size:.875rem}
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-Z5HBVB6E.js";
4
+ } from "./chunk-UJIYGGF5.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-4S24ZBA7.js";
13
+ } from "./chunk-WDZUIVU7.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-PCHOZUAD.js";
19
+ } from "./chunk-IXOE6XPI.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-H5SLBFAJ.js";
43
+ } from "./chunk-4YOTNHWM.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-Z5HBVB6E.js";
5
- import "./chunk-4S24ZBA7.js";
4
+ } from "./chunk-UJIYGGF5.js";
5
+ import "./chunk-WDZUIVU7.js";
6
6
  import "./chunk-HYT732TN.js";
7
- import "./chunk-PCHOZUAD.js";
8
- import "./chunk-H5SLBFAJ.js";
7
+ import "./chunk-IXOE6XPI.js";
8
+ import "./chunk-4YOTNHWM.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 (--ad-color-*), so load
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(--ad-color-surface, Canvas);
8
- --aa-fg: var(--ad-color-text, CanvasText);
9
- --aa-muted: var(--ad-color-text-muted, CanvasText);
10
- --aa-border: var(--ad-color-border-strong, CanvasText);
11
- --aa-accent: var(--ad-color-accent, LinkText);
12
- --aa-accent-fg: var(--ad-color-text-on-accent, Canvas);
13
- --aa-focus: var(--ad-color-focus, LinkText);
14
- --aa-machine-bg: var(--ad-color-accent-subtle, Canvas);
15
- --aa-machine-fg: var(--ad-color-accent-text, CanvasText);
16
- --aa-card-bg: var(--ad-color-surface-sunken, Canvas);
17
- --aa-warn-bg: var(--ad-color-warning-subtle, Canvas);
18
- --aa-warn-fg: var(--ad-color-warning-text, CanvasText);
19
- --aa-danger: var(--ad-color-danger, LinkText);
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
@@ -3,8 +3,8 @@ import {
3
3
  createAssistantApi,
4
4
  createStaticTokenAuth,
5
5
  createWorker
6
- } from "./chunk-XBTQSYDI.js";
7
- import "./chunk-H5SLBFAJ.js";
6
+ } from "./chunk-4N722U3I.js";
7
+ import "./chunk-4YOTNHWM.js";
8
8
  export {
9
9
  APPROVER_SCOPE,
10
10
  createAssistantApi,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentic-assistant",
3
- "version": "0.5.2",
3
+ "version": "0.6.0",
4
4
  "description": "An AI assistant that acts inside your apps with the user's own permissions.",
5
5
  "keywords": [
6
6
  "assistant",
@@ -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.3.1",
87
+ "agentic-design": "^0.4.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.3.1",
97
+ "agentic-design": "^0.4.0",
98
98
  "react": ">=18"
99
99
  },
100
100
  "peerDependenciesMeta": {