@tangle-network/create-agent-app 0.50.32 → 0.51.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/create-agent-app",
3
- "version": "0.50.32",
3
+ "version": "0.51.0",
4
4
  "description": "Create a tested Tangle agent application with either a tool loop or a complete chat interface.",
5
5
  "keywords": [
6
6
  "tangle",
@@ -62,6 +62,10 @@ Discovery: **What product behavior belongs beside the maintained workspace?**
62
62
  Titles belong in History and the document title.
63
63
  The shared shell owns the mobile header, navigation drawer, and account menu.
64
64
  Do not add a second mobile bar or header inset.
65
+ - [ ] Configure `workspaceTools` in `web/workspace-tools.ts` when the product has authorized tool APIs.
66
+ The shared companion supplies tabs, the expander, and remembered selection.
67
+ Keep the list empty until file viewing, terminal connection, or preview is supported.
68
+ The default conversation uses the full available space.
65
69
  - [ ] Keep `settingsHref={null}` until the product provides Settings.
66
70
  Then pass its real route or `onSettingsClick` callback.
67
71
  - [ ] Keep `ChatComposer`, `ChatMessages`, `streamChatTurn`, and the shared interaction cards. Their current callbacks target the existing routes.
@@ -31,11 +31,13 @@
31
31
  "hono": "^4.13.5",
32
32
  "viem": "^2.0.0",
33
33
  "@tangle-network/brand": "1.9.1",
34
- "@tangle-network/sandbox-ui": "0.116.9",
34
+ "@tangle-network/sandbox-ui": "0.117.0",
35
35
  "@tangle-network/ui": "11.12.0",
36
36
  "lucide-react": "^1.35.0",
37
37
  "react": "^19.2.8",
38
- "react-dom": "^19.2.8"
38
+ "react-dom": "^19.2.8",
39
+ "@nanostores/react": "1.1.0",
40
+ "nanostores": "1.5.4"
39
41
  },
40
42
  "peerDependencies": {
41
43
  "@tangle-network/agent-eval": ">=0.201.0 <0.204.0",
@@ -1,9 +1,10 @@
1
1
  import { useCallback, useEffect, useState, type FormEvent } from 'react'
2
2
  import { CirclePlus, History } from 'lucide-react'
3
- import { AgentWorkspaceLayout } from '@tangle-network/agent-app/workspace-react'
3
+ import { AgentWorkspaceCompanion, AgentWorkspaceLayout } from '@tangle-network/agent-app/workspace-react'
4
4
  import { SessionHistoryPanel, useSessionHistory, type FetchSessionPage } from '@tangle-network/agent-app/web-react'
5
5
  import type { SessionSort } from '@tangle-network/agent-app/session-shell'
6
6
  import { Conversation } from './Conversation'
7
+ import { workspaceTools } from './workspace-tools'
7
8
  import { historyHref, json, listThreads, post, threadHref, type Session, type Thread } from './api'
8
9
 
9
10
  const productName = document.title
@@ -85,7 +86,7 @@ function Workspace({ session }: { session: Session }) {
85
86
  contentClassName="h-dvh min-h-0 overflow-hidden" defaultRailCollapsed={false}>
86
87
  {error && <div role="alert" className="p-4 text-sm text-destructive">{error} <button className="underline" onClick={() => location.reload()}>Reload</button></div>}
87
88
  {showHistory ? loaded ? <HistoryPage threads={threads} /> : <p role="status" className="p-6">Loading History…</p>
88
- : <Conversation initialThreadId={initialThreadId} onThread={setActiveId} onChanged={refreshThreads} />}
89
+ : <AgentWorkspaceCompanion tabs={workspaceTools} persistenceKey={`workspace:${session.user.id}:tools`}><Conversation initialThreadId={initialThreadId} onThread={setActiveId} onChanged={refreshThreads} /></AgentWorkspaceCompanion>}
89
90
  </AgentWorkspaceLayout>
90
91
  }
91
92
 
@@ -0,0 +1,4 @@
1
+ import type { AgentWorkspaceCompanionTab } from '@tangle-network/agent-app/workspace-react'
2
+
3
+ // Configure only tools backed by this app's authorized APIs.
4
+ export const workspaceTools: readonly AgentWorkspaceCompanionTab[] = []