refactor: finalize @agor/types + TauriAdapter (agent completion)

This commit is contained in:
Hibryda 2026-03-22 03:36:48 +01:00
parent c86f669f96
commit df83b1df4d
8 changed files with 56 additions and 137 deletions

View file

@ -1,9 +1,9 @@
// BackendAdapter — abstraction layer for Tauri and Electrobun backends
import type { AgentStartOptions, AgentMessage, AgentStatus } from './agent.ts';
import type { FileEntry, FileContent, PtyCreateOptions } from './protocol.ts';
import type { SettingsMap } from './settings.ts';
import type { GroupsFile } from './project.ts';
import type { AgentStartOptions, AgentMessage, AgentStatus } from './agent';
import type { FileEntry, FileContent, PtyCreateOptions } from './protocol';
import type { SettingsMap } from './settings';
import type { GroupsFile } from './project';
// ── Backend capabilities ─────────────────────────────────────────────────────

View file

@ -1,6 +1,6 @@
// btmsg types — agent messaging system
import type { AgentId, GroupId } from './ids.ts';
import type { AgentId, GroupId } from './ids';
export interface BtmsgAgent {
id: AgentId;

View file

@ -1,6 +1,6 @@
// bttask types — task board system
import type { AgentId, GroupId } from './ids.ts';
import type { AgentId, GroupId } from './ids';
export type TaskStatus = 'todo' | 'progress' | 'review' | 'done' | 'blocked';
export type TaskPriority = 'low' | 'medium' | 'high' | 'critical';

View file

@ -1,6 +1,6 @@
// Health tracking types
import type { ProjectId, SessionId } from './ids.ts';
import type { ProjectId, SessionId } from './ids';
export type ActivityState = 'inactive' | 'running' | 'idle' | 'stalled';

View file

@ -1,11 +1,11 @@
// @agor/types — shared type definitions for Tauri and Electrobun frontends
export * from './ids.ts';
export * from './agent.ts';
export * from './project.ts';
export * from './settings.ts';
export * from './btmsg.ts';
export * from './bttask.ts';
export * from './health.ts';
export * from './protocol.ts';
export * from './backend.ts';
export * from './ids';
export * from './agent';
export * from './project';
export * from './settings';
export * from './btmsg';
export * from './bttask';
export * from './health';
export * from './protocol';
export * from './backend';

View file

@ -1,7 +1,7 @@
// Project and Group configuration types
import type { ProviderId } from './agent.ts';
import type { ProjectId, GroupId, AgentId } from './ids.ts';
import type { ProviderId } from './agent';
import type { ProjectId, GroupId, AgentId } from './ids';
// ── Anchor budget ────────────────────────────────────────────────────────────

View file

@ -1,7 +1,7 @@
// Unified RPC protocol types — covers both Tauri commands and Electrobun RPC schema
// These define the request/response shapes for all backend operations.
import type { AgentStartOptions, AgentStatus, AgentWireMessage } from './agent.ts';
import type { AgentWireMessage } from './agent';
// ── PTY ──────────────────────────────────────────────────────────────────────