@markmo/europacore-session-ui 0.2.0 → 0.4.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/README.md +1 -1
- package/dist/ArtifactsPage-BxaqShTv.js +1178 -0
- package/dist/{BoardPage-BAQrGP7G.js → BoardPage-DH7p5o99.js} +274 -265
- package/dist/{CardDetail-CCgP8R61.js → CardDetail-LfDCJQhS.js} +42 -33
- package/dist/{ComparePage-FcLLhKzC.js → ComparePage-CrbCyu4u.js} +33 -33
- package/dist/MemoriesPage-BRA53Hlb.js +679 -0
- package/dist/{OverviewPage-CbfbyGNT.js → OverviewPage-BSBqY83_.js} +50 -49
- package/dist/{RegisterPage-3-hJNQEV.js → RegisterPage-64yGl9E-.js} +76 -76
- package/dist/SessionPage-C4hSlxWQ.js +906 -0
- package/dist/api/agentClient.d.ts +66 -1
- package/dist/api/wire.d.ts +540 -4
- package/dist/features/artifacts/ArtifactDetail.d.ts +15 -0
- package/dist/features/artifacts/ArtifactDialogs.d.ts +29 -0
- package/dist/features/artifacts/ArtifactLedger.d.ts +11 -0
- package/dist/features/artifacts/ArtifactStats.d.ts +9 -0
- package/dist/features/artifacts/ArtifactsPage.d.ts +1 -0
- package/dist/features/artifacts/artifactsCommands.d.ts +3 -0
- package/dist/features/artifacts/artifactsStore.d.ts +27 -0
- package/dist/features/artifacts/artifactsUi.d.ts +33 -0
- package/dist/features/bootstrap.d.ts +1 -0
- package/dist/features/chat/model/artifactAccess.d.ts +50 -0
- package/dist/features/chat/model/artifactCsv.d.ts +11 -0
- package/dist/features/chat/model/artifactExport.d.ts +45 -0
- package/dist/features/chat/model/artifactStats.d.ts +79 -0
- package/dist/features/chat/model/artifacts.d.ts +151 -0
- package/dist/features/chat/model/claims.d.ts +102 -0
- package/dist/features/chat/model/contextSources.d.ts +41 -0
- package/dist/features/chat/model/entries.d.ts +37 -2
- package/dist/features/chat/model/fleet.d.ts +11 -0
- package/dist/features/chat/model/format.d.ts +6 -0
- package/dist/features/chat/model/inspect.d.ts +11 -0
- package/dist/features/chat/model/memory.d.ts +3 -3
- package/dist/features/chat/model/memoryRecords.d.ts +79 -0
- package/dist/features/chat/model/monitors.d.ts +11 -0
- package/dist/features/chat/model/progress.d.ts +73 -0
- package/dist/features/chat/model/routing.d.ts +20 -0
- package/dist/features/chat/model/store.d.ts +5 -0
- package/dist/features/chat/model/tasks.d.ts +1 -1
- package/dist/features/chat/panels/ProgressPanel.d.ts +8 -0
- package/dist/features/chat/session/ComposerHistory.d.ts +1 -1
- package/dist/features/chat/session/SessionController.d.ts +3 -2
- package/dist/features/chat/session/useFileMentions.d.ts +18 -5
- package/dist/features/chat/transcript/ArtifactCard.d.ts +8 -0
- package/dist/features/chat/transcript/Rows.d.ts +12 -1
- package/dist/features/commands/InspectDialog.d.ts +3 -0
- package/dist/features/commands/dialogs.d.ts +1 -1
- package/dist/features/commands/registry.d.ts +1 -1
- package/dist/features/memories/MemoriesPage.d.ts +1 -0
- package/dist/features/memories/memoriesCommands.d.ts +3 -0
- package/dist/features/memories/memoriesController.d.ts +81 -0
- package/dist/features/memory/MemoryDialog.d.ts +1 -1
- package/dist/features/memory/memoryService.d.ts +10 -10
- package/dist/features/workspace/claimsCommands.d.ts +26 -0
- package/dist/features/workspace/collisionsWatcher.d.ts +7 -0
- package/dist/features/workspace/useSessionPageHooks.d.ts +1 -1
- package/dist/{index-NjGO7Jg1.js → index-CMPf-3JZ.js} +4821 -3447
- package/dist/index.d.ts +2 -0
- package/dist/index.js +86 -82
- package/dist/lib/paths.d.ts +12 -0
- package/dist/lib/zip.d.ts +14 -0
- package/dist/{promptHistory-DjSCHmEk.js → promptHistory-BR0NpLCI.js} +14 -14
- package/package.json +1 -1
- package/dist/SessionPage-CA9hAakW.js +0 -865
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BackgroundSubagent } from '../features/chat/model/subagents';
|
|
2
2
|
import { type Transport } from '../host';
|
|
3
3
|
import { type ConnectionState, type SseHandle } from './chatStream';
|
|
4
|
-
import type { AcceptResult, AddedDir, AgentInfo, BackgroundTask, ContextUsage, CreateRun, CreateSession, Envelope, FleetRunSummary, FleetTaskDiff, McpServer, ModelInfo, Page, RedoResult, RestoreResult, ResumeRequest, Run, ServerInfo, Session, SessionPullRequest, SessionStatus, SnapshotInfo, TaskInfo, TranscriptItem, UndoRequest, UndoResult, WorkspaceDiff, WorkspaceInfo } from './wire';
|
|
4
|
+
import type { AcceptResult, ClaimsView, ContextSources, MemoryPatch, MemoryRecord, MemoryRevision, MemoryStatusReport, ArtifactAccess, ArtifactInfo, ArtifactList, AddedDir, AgentInfo, BackgroundTask, ContextUsage, CreateRun, CreateSession, Envelope, FleetRunSummary, FleetTaskDiff, McpServer, RunInspection, RunSummary, ModelInfo, Page, RedoResult, RestoreResult, ResumeRequest, Run, ServerInfo, Session, SessionPullRequest, SessionStatus, SnapshotInfo, TaskInfo, TranscriptItem, UndoRequest, UndoResult, WorkspaceDiff, WorkspaceInfo } from './wire';
|
|
5
5
|
export interface StreamHandlers {
|
|
6
6
|
onEnvelope: (env: Envelope) => void;
|
|
7
7
|
onState?: (state: ConnectionState, detail?: string) => void;
|
|
@@ -70,6 +70,10 @@ export declare class EuropacoreClient {
|
|
|
70
70
|
compact(id: string, instructions?: string): Promise<Record<string, unknown>>;
|
|
71
71
|
/** The slash commands the session's agent runs itself. */
|
|
72
72
|
commands(id: string): Promise<ServerCommand[]>;
|
|
73
|
+
/** The session's runs from its journal, oldest first. */
|
|
74
|
+
runs(id: string): Promise<RunSummary[]>;
|
|
75
|
+
/** One run step by step: tokens, cache and cost per call, tool calls with arguments and results, events. */
|
|
76
|
+
runSteps(id: string, runId: string): Promise<RunInspection>;
|
|
73
77
|
/** The session's agent's MCP servers and how each is doing. */
|
|
74
78
|
mcpServers(id: string): Promise<McpServer[]>;
|
|
75
79
|
/** Connect an enabled MCP server again, after it failed or its process died. */
|
|
@@ -77,6 +81,67 @@ export declare class EuropacoreClient {
|
|
|
77
81
|
server: string;
|
|
78
82
|
tools: string[];
|
|
79
83
|
}>;
|
|
84
|
+
/** The session's file claims, the other sessions in its repository with theirs, and requests to or from it. */
|
|
85
|
+
claims(id: string): Promise<ClaimsView>;
|
|
86
|
+
/**
|
|
87
|
+
* Let go of one of your own sessions' claims (every one without `paths`), or with `to` hand them to another
|
|
88
|
+
* session. What follows arrives as `claim.resolved` and in the sessions' `metadata.claims`.
|
|
89
|
+
*/
|
|
90
|
+
releaseClaims(id: string, body: {
|
|
91
|
+
paths?: string[];
|
|
92
|
+
to?: string;
|
|
93
|
+
note?: string;
|
|
94
|
+
}): Promise<ClaimsView>;
|
|
95
|
+
/** Ask, on behalf of your own session, for paths another session holds; the request arrives as `claim.requested`. */
|
|
96
|
+
requestClaims(id: string, body: {
|
|
97
|
+
paths: string[];
|
|
98
|
+
reason?: string;
|
|
99
|
+
}): Promise<ClaimsView>;
|
|
100
|
+
/** The caller's long-term memories (one scope, or all of theirs), with their tokens and flags. */
|
|
101
|
+
memories(query?: {
|
|
102
|
+
scope?: string;
|
|
103
|
+
project?: string | null;
|
|
104
|
+
status?: string;
|
|
105
|
+
flag?: string;
|
|
106
|
+
q?: string;
|
|
107
|
+
}): Promise<MemoryRecord[]>;
|
|
108
|
+
/** One memory, with its markdown. */
|
|
109
|
+
memory(id: string): Promise<MemoryRecord>;
|
|
110
|
+
/** Change a memory's kind, description or body; with `revision`, 409 `memory_changed` if it moved on. */
|
|
111
|
+
updateMemory(id: string, patch: MemoryPatch): Promise<MemoryRecord>;
|
|
112
|
+
/** Forget (prune) a memory; restorable. Forgetting twice changes nothing, so it may be sent again. */
|
|
113
|
+
forgetMemory(id: string, reason: string): Promise<MemoryRecord>;
|
|
114
|
+
/** Bring a forgotten or merged memory back. */
|
|
115
|
+
restoreMemory(id: string): Promise<MemoryRecord>;
|
|
116
|
+
/** A memory's revisions, newest first. */
|
|
117
|
+
memoryRevisions(id: string): Promise<MemoryRevision[]>;
|
|
118
|
+
/** Each of the caller's memory scopes at a glance, and their projects with memories. */
|
|
119
|
+
memoryStatus(project?: string | null): Promise<MemoryStatusReport>;
|
|
120
|
+
/** What a session loads, source by source in load order. */
|
|
121
|
+
contextSources(id: string): Promise<ContextSources>;
|
|
122
|
+
/** The caller's artifacts, newest first; with `session`, that session's first, and with `shared` others' shared with them. */
|
|
123
|
+
artifactList(session?: string | null, options?: {
|
|
124
|
+
shared?: boolean;
|
|
125
|
+
}): Promise<ArtifactList>;
|
|
126
|
+
/** One artifact: the caller's, or with `owner` one that user shares with the caller. Its `url` opens now. */
|
|
127
|
+
artifact(id: string, owner?: string | null): Promise<ArtifactInfo>;
|
|
128
|
+
/** Who can open one of the caller's artifacts. Narrowing it stops the links already given out. */
|
|
129
|
+
setArtifactAccess(id: string, access: ArtifactAccess): Promise<ArtifactInfo>;
|
|
130
|
+
/** Stop every link to one of the caller's artifacts; who can open it stays the same, through new links. */
|
|
131
|
+
revokeArtifactLinks(id: string): Promise<ArtifactInfo>;
|
|
132
|
+
/** Delete an artifact and every version; with `unpublish`, its published copy is taken down first, and nothing is deleted when that fails. */
|
|
133
|
+
deleteArtifact(id: string, options?: {
|
|
134
|
+
unpublish?: boolean;
|
|
135
|
+
}): Promise<void>;
|
|
136
|
+
/** Take one of the caller's artifacts' published copy down (a permanent one: a temporary one only expires). Slow. */
|
|
137
|
+
unpublishArtifact(id: string): Promise<ArtifactInfo>;
|
|
138
|
+
/**
|
|
139
|
+
* A viewer link the server gave, made absolute. A server that knows its public URL (europacoreui's does) gives
|
|
140
|
+
* absolute links; one that does not gives paths from its root, put after the transport's base without its `/v1`.
|
|
141
|
+
*/
|
|
142
|
+
artifactLink(url: string): string;
|
|
143
|
+
/** One file of a version, through the viewer. The link is the capability: no credentials are sent with it. */
|
|
144
|
+
artifactFile(link: string, path: string, version: number): Promise<Uint8Array>;
|
|
80
145
|
/** The session's workspace: branch and the files changed since `base` (HEAD by default). */
|
|
81
146
|
sessionWorkspace(sessionId: string, base?: string): Promise<WorkspaceInfo>;
|
|
82
147
|
/** A unified diff of the session's workspace; one file when `path` (repository-relative) is given. */
|