akanjs 3.0.0-alpha.66 → 3.0.0-alpha.67
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/local/apps/serverLifecycle/serverLifecycle-local.db-shm +0 -0
- package/local/apps/serverLifecycle/serverLifecycle-local_solid.db-shm +0 -0
- package/package.json +1 -1
- package/server/akanServer.ts +1 -1
- package/types/ui/Agent/Context.d.ts +2 -2
- package/types/ui/Agent/Dock.d.ts +2 -2
- package/types/ui/Agent/index.d.ts +1 -1
- package/ui/Agent/Context.tsx +3 -1
- package/ui/Agent/Dock.tsx +3 -1
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
package/server/akanServer.ts
CHANGED
|
@@ -328,7 +328,7 @@ export class AkanServer {
|
|
|
328
328
|
return noWeb();
|
|
329
329
|
}
|
|
330
330
|
this.web = webRouter.web;
|
|
331
|
-
this.logger.
|
|
331
|
+
this.logger.verbose(`web on: ssr=${this.web.ssr} csr=${this.web.csr}`);
|
|
332
332
|
const { renderEnvRoutes, hmrHub, builderRpc } = await webRouter.initializeRoute();
|
|
333
333
|
const webProxyRunner = WebProxyRunner.create(this.#di.webProxies);
|
|
334
334
|
this.#prepared = {
|
|
@@ -7,7 +7,7 @@ interface ContextProps {
|
|
|
7
7
|
*
|
|
8
8
|
* The tool list leads, by name only: a zone publishes its tools scope-prefixed, and instructions that name a tool
|
|
9
9
|
* without its prefix name a tool that does not exist. That is invisible in the source of either file and obvious
|
|
10
|
-
* here.
|
|
10
|
+
* here. Renders nothing on `AKAN_PUBLIC_ENV=main`.
|
|
11
11
|
*/
|
|
12
|
-
export default function Context({ className }: ContextProps): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export default function Context({ className }: ContextProps): import("react/jsx-runtime").JSX.Element | null;
|
|
13
13
|
export {};
|
package/types/ui/Agent/Dock.d.ts
CHANGED
|
@@ -12,6 +12,6 @@ export interface DockProps {
|
|
|
12
12
|
* The in-page surface of the agent: what this screen declared an agent may do, what it may read, and what it has
|
|
13
13
|
* done. Tools come from the surface rather than from the store, because a tool exists only where a component
|
|
14
14
|
* declared one — the dock is the way to see that this screen published what its author thought it did, which is
|
|
15
|
-
* the one thing no amount of reading the source answers.
|
|
15
|
+
* the one thing no amount of reading the source answers. Renders nothing on `AKAN_PUBLIC_ENV=main`.
|
|
16
16
|
*/
|
|
17
|
-
export declare const Dock: ({ className, bridge, surface, open }: DockProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
export declare const Dock: ({ className, bridge, surface, open }: DockProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -6,7 +6,7 @@ import Transcript from "./Transcript.d.ts";
|
|
|
6
6
|
export declare const Agent: {
|
|
7
7
|
Chat: import("react").ComponentType<import("./Chat.d.ts").ChatProps>;
|
|
8
8
|
Context: typeof Context;
|
|
9
|
-
Dock: ({ className, bridge, surface, open }: import("./Dock.d.ts").DockProps) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
Dock: ({ className, bridge, surface, open }: import("./Dock.d.ts").DockProps) => import("react/jsx-runtime").JSX.Element | null;
|
|
10
10
|
Guide: ({ instructions }: import("./Guide.d.ts").GuideProps) => null;
|
|
11
11
|
History: ({ load, save, clear, onCompact }: import("./History.d.ts").HistoryProps) => null;
|
|
12
12
|
Scope: ({ id, label, kind, children }: import("../../vendor/use-agentic.d.ts").AgentScopeProps) => import("react/jsx-runtime").JSX.Element;
|
package/ui/Agent/Context.tsx
CHANGED
|
@@ -14,10 +14,12 @@ interface ContextProps {
|
|
|
14
14
|
*
|
|
15
15
|
* The tool list leads, by name only: a zone publishes its tools scope-prefixed, and instructions that name a tool
|
|
16
16
|
* without its prefix name a tool that does not exist. That is invisible in the source of either file and obvious
|
|
17
|
-
* here.
|
|
17
|
+
* here. Renders nothing on `AKAN_PUBLIC_ENV=main`.
|
|
18
18
|
*/
|
|
19
19
|
export default function Context({ className }: ContextProps) {
|
|
20
20
|
const [shown, setShown] = useState("");
|
|
21
|
+
|
|
22
|
+
if (process.env.AKAN_PUBLIC_ENV === "main" || process.env.NODE_ENV === "develop") return null;
|
|
21
23
|
const assemble = () => {
|
|
22
24
|
try {
|
|
23
25
|
const { guides, tools } = AgenticSurface.shared.snapshot();
|
package/ui/Agent/Dock.tsx
CHANGED
|
@@ -22,7 +22,7 @@ export interface DockProps {
|
|
|
22
22
|
* The in-page surface of the agent: what this screen declared an agent may do, what it may read, and what it has
|
|
23
23
|
* done. Tools come from the surface rather than from the store, because a tool exists only where a component
|
|
24
24
|
* declared one — the dock is the way to see that this screen published what its author thought it did, which is
|
|
25
|
-
* the one thing no amount of reading the source answers.
|
|
25
|
+
* the one thing no amount of reading the source answers. Renders nothing on `AKAN_PUBLIC_ENV=main`.
|
|
26
26
|
*/
|
|
27
27
|
export const Dock = ({ className, bridge, surface, open = false }: DockProps) => {
|
|
28
28
|
const held = useRef<{ bridge: AgentBridge; surface: AgenticSurface } | null>(null);
|
|
@@ -37,6 +37,8 @@ export const Dock = ({ className, bridge, surface, open = false }: DockProps) =>
|
|
|
37
37
|
if (liveA !== liveB) return liveA ? -1 : 1;
|
|
38
38
|
return a < b ? -1 : 1;
|
|
39
39
|
});
|
|
40
|
+
|
|
41
|
+
if (process.env.AKAN_PUBLIC_ENV === "main") return null;
|
|
40
42
|
return (
|
|
41
43
|
<aside
|
|
42
44
|
data-agent-ui=""
|