@hyperspaceng/neural-web-ui 0.61.4 → 0.61.5

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-web-ui-example",
3
- "version": "1.49.4",
3
+ "version": "1.49.5",
4
4
  "private": true,
5
5
  "type": "module",
6
6
  "scripts": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyperspaceng/neural-web-ui",
3
- "version": "0.61.4",
3
+ "version": "0.61.5",
4
4
  "description": "Reusable web UI components for AI chat interfaces powered by @mariozechner/pi-ai",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -18,8 +18,8 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@lmstudio/sdk": "^1.5.0",
21
- "@hyperspaceng/neural-ai": "^0.61.4",
22
- "@hyperspaceng/neural-tui": "^0.61.4",
21
+ "@hyperspaceng/neural-ai": "^0.61.5",
22
+ "@hyperspaceng/neural-tui": "^0.61.5",
23
23
  "docx-preview": "^0.3.7",
24
24
  "jszip": "^3.10.1",
25
25
  "lucide": "^0.544.0",
package/src/ChatPanel.ts CHANGED
@@ -2,7 +2,7 @@ import { Badge } from "@mariozechner/mini-lit/dist/Badge.js";
2
2
  import { html, LitElement } from "lit";
3
3
  import { customElement, state } from "lit/decorators.js";
4
4
  import "./components/AgentInterface.js";
5
- import type { Agent, AgentTool } from "@mariozechner/pi-agent-core";
5
+ import type { Agent, AgentTool } from "@hyperspaceng/neural-agent-core";
6
6
  import type { AgentInterface } from "./components/AgentInterface.js";
7
7
  import { ArtifactsRuntimeProvider } from "./components/sandbox/ArtifactsRuntimeProvider.js";
8
8
  import { AttachmentsRuntimeProvider } from "./components/sandbox/AttachmentsRuntimeProvider.js";
@@ -1,4 +1,4 @@
1
- import { streamSimple, type ToolResultMessage, type Usage } from "@mariozechner/pi-ai";
1
+ import { streamSimple, type ToolResultMessage, type Usage } from "@hyperspaceng/neural-ai";
2
2
  import { html, LitElement } from "lit";
3
3
  import { customElement, property, query } from "lit/decorators.js";
4
4
  import { ModelSelector } from "../dialogs/ModelSelector.js";
@@ -8,7 +8,7 @@ import "./MessageList.js";
8
8
  import "./Messages.js"; // Import for side effects to register the custom elements
9
9
  import { getAppStorage } from "../storage/app-storage.js";
10
10
  import "./StreamingMessageContainer.js";
11
- import type { Agent, AgentEvent } from "@mariozechner/pi-agent-core";
11
+ import type { Agent, AgentEvent } from "@hyperspaceng/neural-agent-core";
12
12
  import type { Attachment } from "../utils/attachment-utils.js";
13
13
  import { formatUsage } from "../utils/format.js";
14
14
  import { i18n } from "../utils/i18n.js";
@@ -1,7 +1,7 @@
1
1
  import { icon } from "@mariozechner/mini-lit";
2
2
  import { Button } from "@mariozechner/mini-lit/dist/Button.js";
3
3
  import { Select, type SelectOption } from "@mariozechner/mini-lit/dist/Select.js";
4
- import type { Model } from "@mariozechner/pi-ai";
4
+ import type { Model } from "@hyperspaceng/neural-ai";
5
5
  import { html, LitElement } from "lit";
6
6
  import { customElement, property, state } from "lit/decorators.js";
7
7
  import { createRef, ref } from "lit/directives/ref.js";
@@ -9,7 +9,7 @@ import { Brain, Loader2, Paperclip, Send, Sparkles, Square } from "lucide";
9
9
  import { type Attachment, loadAttachment } from "../utils/attachment-utils.js";
10
10
  import { i18n } from "../utils/i18n.js";
11
11
  import "./AttachmentTile.js";
12
- import type { ThinkingLevel } from "@mariozechner/pi-agent-core";
12
+ import type { ThinkingLevel } from "@hyperspaceng/neural-agent-core";
13
13
 
14
14
  @customElement("message-editor")
15
15
  export class MessageEditor extends LitElement {
@@ -1,8 +1,8 @@
1
- import type { AgentMessage, AgentTool } from "@mariozechner/pi-agent-core";
1
+ import type { AgentMessage, AgentTool } from "@hyperspaceng/neural-agent-core";
2
2
  import type {
3
3
  AssistantMessage as AssistantMessageType,
4
4
  ToolResultMessage as ToolResultMessageType,
5
- } from "@mariozechner/pi-ai";
5
+ } from "@hyperspaceng/neural-ai";
6
6
  import { html, LitElement, type TemplateResult } from "lit";
7
7
  import { property } from "lit/decorators.js";
8
8
  import { repeat } from "lit/directives/repeat.js";
@@ -5,7 +5,7 @@ import type {
5
5
  ToolCall,
6
6
  ToolResultMessage as ToolResultMessageType,
7
7
  UserMessage as UserMessageType,
8
- } from "@mariozechner/pi-ai";
8
+ } from "@hyperspaceng/neural-ai";
9
9
  import { html, LitElement, type TemplateResult } from "lit";
10
10
  import { customElement, property } from "lit/decorators.js";
11
11
  import { renderTool } from "../tools/index.js";
@@ -13,7 +13,7 @@ import type { Attachment } from "../utils/attachment-utils.js";
13
13
  import { formatUsage } from "../utils/format.js";
14
14
  import { i18n } from "../utils/i18n.js";
15
15
  import "./ThinkingBlock.js";
16
- import type { AgentTool } from "@mariozechner/pi-agent-core";
16
+ import type { AgentTool } from "@hyperspaceng/neural-agent-core";
17
17
 
18
18
  export type UserMessageWithAttachments = {
19
19
  role: "user-with-attachments";
@@ -32,7 +32,7 @@ export interface ArtifactMessage {
32
32
  timestamp: string;
33
33
  }
34
34
 
35
- declare module "@mariozechner/pi-agent-core" {
35
+ declare module "@hyperspaceng/neural-agent-core" {
36
36
  interface CustomAgentMessages {
37
37
  "user-with-attachments": UserMessageWithAttachments;
38
38
  artifact: ArtifactMessage;
@@ -296,8 +296,8 @@ export class AbortedMessage extends LitElement {
296
296
  // Default Message Transformer
297
297
  // ============================================================================
298
298
 
299
- import type { AgentMessage } from "@mariozechner/pi-agent-core";
300
- import type { Message } from "@mariozechner/pi-ai";
299
+ import type { AgentMessage } from "@hyperspaceng/neural-agent-core";
300
+ import type { Message } from "@hyperspaceng/neural-ai";
301
301
 
302
302
  /**
303
303
  * Convert attachments to content blocks for LLM.
@@ -1,7 +1,7 @@
1
1
  import { i18n } from "@mariozechner/mini-lit";
2
2
  import { Badge } from "@mariozechner/mini-lit/dist/Badge.js";
3
3
  import { Button } from "@mariozechner/mini-lit/dist/Button.js";
4
- import { type Context, complete, getModel } from "@mariozechner/pi-ai";
4
+ import { type Context, complete, getModel } from "@hyperspaceng/neural-ai";
5
5
  import { html, LitElement } from "lit";
6
6
  import { customElement, property, state } from "lit/decorators.js";
7
7
  import { getAppStorage } from "../storage/app-storage.js";
@@ -1,5 +1,5 @@
1
- import type { AgentMessage, AgentTool } from "@mariozechner/pi-agent-core";
2
- import type { ToolResultMessage } from "@mariozechner/pi-ai";
1
+ import type { AgentMessage, AgentTool } from "@hyperspaceng/neural-agent-core";
2
+ import type { ToolResultMessage } from "@hyperspaceng/neural-ai";
3
3
  import { html, LitElement } from "lit";
4
4
  import { property, state } from "lit/decorators.js";
5
5
 
@@ -1,4 +1,4 @@
1
- import type { AgentMessage } from "@mariozechner/pi-agent-core";
1
+ import type { AgentMessage } from "@hyperspaceng/neural-agent-core";
2
2
  import type { TemplateResult } from "lit";
3
3
 
4
4
  // Extract role type from AppMessage union
@@ -4,7 +4,7 @@ import { DialogBase } from "@mariozechner/mini-lit/dist/DialogBase.js";
4
4
  import { Input } from "@mariozechner/mini-lit/dist/Input.js";
5
5
  import { Label } from "@mariozechner/mini-lit/dist/Label.js";
6
6
  import { Select } from "@mariozechner/mini-lit/dist/Select.js";
7
- import type { Model } from "@mariozechner/pi-ai";
7
+ import type { Model } from "@hyperspaceng/neural-ai";
8
8
  import { html, type TemplateResult } from "lit";
9
9
  import { state } from "lit/decorators.js";
10
10
  import { getAppStorage } from "../storage/app-storage.js";
@@ -3,7 +3,7 @@ import { Badge } from "@mariozechner/mini-lit/dist/Badge.js";
3
3
  import { Button } from "@mariozechner/mini-lit/dist/Button.js";
4
4
  import { DialogHeader } from "@mariozechner/mini-lit/dist/Dialog.js";
5
5
  import { DialogBase } from "@mariozechner/mini-lit/dist/DialogBase.js";
6
- import { getModels, getProviders, type Model, modelsAreEqual } from "@mariozechner/pi-ai";
6
+ import { getModels, getProviders, type Model, modelsAreEqual } from "@hyperspaceng/neural-ai";
7
7
  import { html, type PropertyValues, type TemplateResult } from "lit";
8
8
  import { customElement, state } from "lit/decorators.js";
9
9
  import { createRef, ref } from "lit/directives/ref.js";
@@ -1,6 +1,6 @@
1
1
  import { i18n } from "@mariozechner/mini-lit";
2
2
  import { Select } from "@mariozechner/mini-lit/dist/Select.js";
3
- import { getProviders } from "@mariozechner/pi-ai";
3
+ import { getProviders } from "@hyperspaceng/neural-ai";
4
4
  import { html, type TemplateResult } from "lit";
5
5
  import { customElement, state } from "lit/decorators.js";
6
6
  import "../components/CustomProviderCard.js";
@@ -3,7 +3,7 @@ import { Dialog, DialogContent, DialogHeader } from "@mariozechner/mini-lit/dist
3
3
  import { Input } from "@mariozechner/mini-lit/dist/Input.js";
4
4
  import { Label } from "@mariozechner/mini-lit/dist/Label.js";
5
5
  import { Switch } from "@mariozechner/mini-lit/dist/Switch.js";
6
- import { getProviders } from "@mariozechner/pi-ai";
6
+ import { getProviders } from "@hyperspaceng/neural-ai";
7
7
  import { html, LitElement, type TemplateResult } from "lit";
8
8
  import { customElement, property, state } from "lit/decorators.js";
9
9
  import "../components/ProviderKeyInput.js";
package/src/index.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  // Main chat interface
2
2
 
3
- export type { Agent, AgentMessage, AgentState, ThinkingLevel } from "@mariozechner/pi-agent-core";
4
- export type { Model } from "@mariozechner/pi-ai";
3
+ export type { Agent, AgentMessage, AgentState, ThinkingLevel } from "@hyperspaceng/neural-agent-core";
4
+ export type { Model } from "@hyperspaceng/neural-ai";
5
5
  export { ChatPanel } from "./ChatPanel.js";
6
6
  // Components
7
7
  export { AgentInterface } from "./components/AgentInterface.js";
@@ -1,4 +1,4 @@
1
- import type { Model } from "@mariozechner/pi-ai";
1
+ import type { Model } from "@hyperspaceng/neural-ai";
2
2
  import { Store } from "../store.js";
3
3
  import type { StoreConfig } from "../types.js";
4
4
 
@@ -1,4 +1,4 @@
1
- import type { AgentState } from "@mariozechner/pi-agent-core";
1
+ import type { AgentState } from "@hyperspaceng/neural-agent-core";
2
2
  import { Store } from "../store.js";
3
3
  import type { SessionData, SessionMetadata, StoreConfig } from "../types.js";
4
4
 
@@ -1,5 +1,5 @@
1
- import type { AgentMessage, ThinkingLevel } from "@mariozechner/pi-agent-core";
2
- import type { Model } from "@mariozechner/pi-ai";
1
+ import type { AgentMessage, ThinkingLevel } from "@hyperspaceng/neural-agent-core";
2
+ import type { Model } from "@hyperspaceng/neural-ai";
3
3
 
4
4
  /**
5
5
  * Transaction interface for atomic operations across stores.
@@ -1,5 +1,5 @@
1
1
  import "@mariozechner/mini-lit/dist/CodeBlock.js";
2
- import type { ToolResultMessage } from "@mariozechner/pi-ai";
2
+ import type { ToolResultMessage } from "@hyperspaceng/neural-ai";
3
3
  import { createRef, ref } from "lit/directives/ref.js";
4
4
  import { FileCode2 } from "lucide";
5
5
  import "../../components/ConsoleBlock.js";
@@ -1,8 +1,8 @@
1
1
  import { icon } from "@mariozechner/mini-lit";
2
2
  import "@mariozechner/mini-lit/dist/MarkdownBlock.js";
3
3
  import { Button } from "@mariozechner/mini-lit/dist/Button.js";
4
- import type { Agent, AgentMessage, AgentTool } from "@mariozechner/pi-agent-core";
5
- import { StringEnum, type ToolCall } from "@mariozechner/pi-ai";
4
+ import type { Agent, AgentMessage, AgentTool } from "@hyperspaceng/neural-agent-core";
5
+ import { StringEnum, type ToolCall } from "@hyperspaceng/neural-ai";
6
6
  import { type Static, Type } from "@sinclair/typebox";
7
7
  import { html, LitElement, type TemplateResult } from "lit";
8
8
  import { customElement, property, state } from "lit/decorators.js";
@@ -1,5 +1,5 @@
1
- import type { AgentTool } from "@mariozechner/pi-agent-core";
2
- import type { ToolResultMessage } from "@mariozechner/pi-ai";
1
+ import type { AgentTool } from "@hyperspaceng/neural-agent-core";
2
+ import type { ToolResultMessage } from "@hyperspaceng/neural-ai";
3
3
  import { type Static, Type } from "@sinclair/typebox";
4
4
  import { html } from "lit";
5
5
  import { createRef, ref } from "lit/directives/ref.js";
@@ -1,4 +1,4 @@
1
- import type { ToolResultMessage } from "@mariozechner/pi-ai";
1
+ import type { ToolResultMessage } from "@hyperspaceng/neural-ai";
2
2
  import "./javascript-repl.js"; // Auto-registers the renderer
3
3
  import "./extract-document.js"; // Auto-registers the renderer
4
4
  import { getToolRenderer, registerToolRenderer } from "./renderer-registry.js";
@@ -1,6 +1,6 @@
1
1
  import { i18n } from "@mariozechner/mini-lit";
2
- import type { AgentTool } from "@mariozechner/pi-agent-core";
3
- import type { ToolResultMessage } from "@mariozechner/pi-ai";
2
+ import type { AgentTool } from "@hyperspaceng/neural-agent-core";
3
+ import type { ToolResultMessage } from "@hyperspaceng/neural-ai";
4
4
  import { type Static, Type } from "@sinclair/typebox";
5
5
  import { html } from "lit";
6
6
  import { createRef, ref } from "lit/directives/ref.js";
@@ -1,4 +1,4 @@
1
- import type { ToolResultMessage } from "@mariozechner/pi-ai";
1
+ import type { ToolResultMessage } from "@hyperspaceng/neural-ai";
2
2
  import { html } from "lit";
3
3
  import { SquareTerminal } from "lucide";
4
4
  import { i18n } from "../../utils/i18n.js";
@@ -1,4 +1,4 @@
1
- import type { ToolResultMessage } from "@mariozechner/pi-ai";
1
+ import type { ToolResultMessage } from "@hyperspaceng/neural-ai";
2
2
  import { html } from "lit";
3
3
  import { Calculator } from "lucide";
4
4
  import { i18n } from "../../utils/i18n.js";
@@ -1,4 +1,4 @@
1
- import type { ToolResultMessage } from "@mariozechner/pi-ai";
1
+ import type { ToolResultMessage } from "@hyperspaceng/neural-ai";
2
2
  import { html } from "lit";
3
3
  import { Code } from "lucide";
4
4
  import { i18n } from "../../utils/i18n.js";
@@ -1,4 +1,4 @@
1
- import type { ToolResultMessage } from "@mariozechner/pi-ai";
1
+ import type { ToolResultMessage } from "@hyperspaceng/neural-ai";
2
2
  import { html } from "lit";
3
3
  import { Clock } from "lucide";
4
4
  import { i18n } from "../../utils/i18n.js";
@@ -1,4 +1,4 @@
1
- import type { ToolResultMessage } from "@mariozechner/pi-ai";
1
+ import type { ToolResultMessage } from "@hyperspaceng/neural-ai";
2
2
  import type { TemplateResult } from "lit";
3
3
 
4
4
  export interface ToolRenderResult {
@@ -1,5 +1,5 @@
1
1
  import { i18n } from "@mariozechner/mini-lit";
2
- import type { Usage } from "@mariozechner/pi-ai";
2
+ import type { Usage } from "@hyperspaceng/neural-ai";
3
3
 
4
4
  export function formatCost(cost: number): string {
5
5
  return `$${cost.toFixed(4)}`;
@@ -1,5 +1,5 @@
1
1
  import { LMStudioClient } from "@lmstudio/sdk";
2
- import type { Model } from "@mariozechner/pi-ai";
2
+ import type { Model } from "@hyperspaceng/neural-ai";
3
3
  import { Ollama } from "ollama/browser";
4
4
 
5
5
  /**
@@ -1,5 +1,5 @@
1
- import type { Api, Context, Model, SimpleStreamOptions } from "@mariozechner/pi-ai";
2
- import { streamSimple } from "@mariozechner/pi-ai";
1
+ import type { Api, Context, Model, SimpleStreamOptions } from "@hyperspaceng/neural-ai";
2
+ import { streamSimple } from "@hyperspaceng/neural-ai";
3
3
 
4
4
  /**
5
5
  * Centralized proxy decision logic.