@acryldev/workspace 0.1.1 → 0.2.1
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 +2 -2
- package/cordis.patch.yml +1 -1
- package/lib/client.js +52 -52
- package/lib/client.js.map +1 -1
- package/lib/index.js +23 -23
- package/lib/index.js.map +1 -1
- package/lib/{agents → types/agents}/route.d.ts +1 -1
- package/lib/{agents → types/agents}/status/route.d.ts +1 -1
- package/lib/{capabilities → types/capabilities}/route.d.ts +1 -1
- package/lib/types/client/agents/controls.d.ts +2 -2
- package/lib/types/client/changes/changes-tab.d.ts +1 -1
- package/lib/types/client/checks/checks-tab.d.ts +1 -1
- package/lib/types/client/comments/comments-tab.d.ts +1 -1
- package/lib/types/client/dock/dock-hooks.d.ts +1 -1
- package/lib/types/client/dom/find-by-name.d.ts +1 -1
- package/lib/types/client/files/files-tab.d.ts +2 -2
- package/lib/types/client/palette/palette-commands.d.ts +2 -2
- package/lib/types/client/palette/palette-shortcut.d.ts +3 -3
- package/lib/types/client/review/review-tab.d.ts +1 -1
- package/lib/{files → types/files}/route.d.ts +1 -1
- package/lib/{folder-picker → types/folder-picker}/picker.d.ts +1 -1
- package/lib/{folder-picker → types/folder-picker}/route.d.ts +1 -1
- package/lib/{git → types/git}/route.d.ts +1 -1
- package/lib/{index.d.ts → types/index.d.ts} +1 -1
- package/lib/{private-route.d.ts → types/private-route.d.ts} +2 -2
- package/lib/types/projects/contract.d.ts +1 -1
- package/lib/{projects → types/projects}/registry.d.ts +1 -1
- package/lib/{projects → types/projects}/route.d.ts +1 -1
- package/lib/{pty → types/pty}/route.d.ts +1 -1
- package/lib/{pty → types/pty}/stream.d.ts +2 -2
- package/lib/{shared-context → types/shared-context}/route.d.ts +1 -1
- package/lib/ui.js +8 -8
- package/lib/ui.js.map +1 -1
- package/package.json +20 -21
- package/lib/agents/argument-text.d.ts +0 -9
- package/lib/agents/contract.d.ts +0 -50
- package/lib/agents/definition.d.ts +0 -38
- package/lib/agents/known-agents.d.ts +0 -52
- package/lib/agents/launch.d.ts +0 -26
- package/lib/agents/preferences.d.ts +0 -40
- package/lib/agents/status/agent-status.d.ts +0 -38
- package/lib/capabilities/contract.d.ts +0 -17
- package/lib/files/contract.d.ts +0 -74
- package/lib/folder-picker/contract.d.ts +0 -9
- package/lib/git/contract.d.ts +0 -136
- package/lib/projects/contract.d.ts +0 -82
- package/lib/pty/contract.d.ts +0 -52
- /package/lib/{agents → types/agents}/catalog.d.ts +0 -0
- /package/lib/{agents → types/agents}/file-store.d.ts +0 -0
- /package/lib/{agents → types/agents}/settings.d.ts +0 -0
- /package/lib/{agents → types/agents}/status/claude-hooks.d.ts +0 -0
- /package/lib/{files → types/files}/service.d.ts +0 -0
- /package/lib/{git → types/git}/changes.d.ts +0 -0
- /package/lib/{git → types/git}/checks.d.ts +0 -0
- /package/lib/{git → types/git}/commits.d.ts +0 -0
- /package/lib/{git → types/git}/errors.d.ts +0 -0
- /package/lib/{git → types/git}/guards.d.ts +0 -0
- /package/lib/{git → types/git}/ignored.d.ts +0 -0
- /package/lib/{git → types/git}/parsing.d.ts +0 -0
- /package/lib/{git → types/git}/runner.d.ts +0 -0
- /package/lib/{git → types/git}/search.d.ts +0 -0
- /package/lib/{git → types/git}/service.d.ts +0 -0
- /package/lib/{git → types/git}/worktrees.d.ts +0 -0
- /package/lib/{projects → types/projects}/tools.d.ts +0 -0
- /package/lib/{pty → types/pty}/node-pty-spawn.d.ts +0 -0
- /package/lib/{pty → types/pty}/screen-model.d.ts +0 -0
- /package/lib/{pty → types/pty}/scrollback.d.ts +0 -0
- /package/lib/{pty → types/pty}/service.d.ts +0 -0
- /package/lib/{shared-context → types/shared-context}/chat.d.ts +0 -0
- /package/lib/{shared-context → types/shared-context}/launch.d.ts +0 -0
- /package/lib/{shared-context → types/shared-context}/render.d.ts +0 -0
- /package/lib/{shared-context → types/shared-context}/service.d.ts +0 -0
- /package/lib/{shared-context → types/shared-context}/tool.d.ts +0 -0
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The project registry's wire contract. A project is a folder the user added to ACRYL; ACRYL owns the list (it lives in the ACRYL home through
|
|
3
|
-
* `acryl-settings`), and the DeepSeek Harness chat's workspaces follow it one way: a chat registers the folder it runs in when it starts, never the other
|
|
4
|
-
* way round.
|
|
5
|
-
*/
|
|
6
|
-
export declare const WORKSPACE_PROJECTS_PATH = "/api/acryl-workspace/projects";
|
|
7
|
-
/** A server-sent event stream of the registry's view: one message now, then one per change (an agent's tool call, another window). */
|
|
8
|
-
export declare const WORKSPACE_PROJECTS_EVENTS_PATH = "/api/acryl-workspace/projects/events";
|
|
9
|
-
/** How a workspace is organized (spec 043): separate projects, projects that share context with every agent, or a remote machine. */
|
|
10
|
-
export type WorkspaceKind = 'individual' | 'shared' | 'remote';
|
|
11
|
-
export declare const WORKSPACE_KINDS: readonly WorkspaceKind[];
|
|
12
|
-
/** The workspace every app has: it cannot be deleted, and the folders added before workspaces existed are its projects. */
|
|
13
|
-
export declare const DEFAULT_WORKSPACE_ID = "default";
|
|
14
|
-
/** One workspace as the page sees it. */
|
|
15
|
-
export interface WorkspaceSummary {
|
|
16
|
-
readonly id: string;
|
|
17
|
-
readonly name: string;
|
|
18
|
-
readonly kind: WorkspaceKind;
|
|
19
|
-
/** Absolute folder paths, in the order they were added. */
|
|
20
|
-
readonly projects: readonly string[];
|
|
21
|
-
/** For a remote workspace: the SSH target saved for the connection that comes later. */
|
|
22
|
-
readonly remote?: {
|
|
23
|
-
readonly host: string;
|
|
24
|
-
readonly user?: string;
|
|
25
|
-
readonly path?: string;
|
|
26
|
-
};
|
|
27
|
-
}
|
|
28
|
-
export interface ProjectRegistryView {
|
|
29
|
-
/** The shown workspace's folders, in the order the user added them. */
|
|
30
|
-
readonly paths: readonly string[];
|
|
31
|
-
/** The projects that already existed as DSH workspaces were taken over once (see `adopt`). */
|
|
32
|
-
readonly adopted: boolean;
|
|
33
|
-
/** Every workspace, Default first. */
|
|
34
|
-
readonly workspaces: readonly WorkspaceSummary[];
|
|
35
|
-
/** The id of the workspace the sidebar shows. */
|
|
36
|
-
readonly current: string;
|
|
37
|
-
}
|
|
38
|
-
export type ProjectRequest = {
|
|
39
|
-
readonly op: 'add';
|
|
40
|
-
readonly path: string;
|
|
41
|
-
} | {
|
|
42
|
-
readonly op: 'remove';
|
|
43
|
-
readonly path: string;
|
|
44
|
-
}
|
|
45
|
-
/** Take over folders that were registered before ACRYL owned the list. Applied once; later calls change nothing. */
|
|
46
|
-
| {
|
|
47
|
-
readonly op: 'adopt';
|
|
48
|
-
readonly paths: readonly string[];
|
|
49
|
-
} | {
|
|
50
|
-
readonly op: 'create-workspace';
|
|
51
|
-
readonly name: string;
|
|
52
|
-
readonly kind: WorkspaceKind;
|
|
53
|
-
readonly remote?: {
|
|
54
|
-
readonly host: string;
|
|
55
|
-
readonly user?: string;
|
|
56
|
-
readonly path?: string;
|
|
57
|
-
};
|
|
58
|
-
} | {
|
|
59
|
-
readonly op: 'switch-workspace';
|
|
60
|
-
readonly id: string;
|
|
61
|
-
} | {
|
|
62
|
-
readonly op: 'rename-workspace';
|
|
63
|
-
readonly id: string;
|
|
64
|
-
readonly name: string;
|
|
65
|
-
} | {
|
|
66
|
-
readonly op: 'delete-workspace';
|
|
67
|
-
readonly id: string;
|
|
68
|
-
};
|
|
69
|
-
export type ProjectResponse = {
|
|
70
|
-
readonly ok: true;
|
|
71
|
-
readonly view: ProjectRegistryView;
|
|
72
|
-
} | {
|
|
73
|
-
readonly ok: false;
|
|
74
|
-
readonly code: 'invalid' | 'not-a-folder' | 'workspace';
|
|
75
|
-
readonly message: string;
|
|
76
|
-
};
|
|
77
|
-
export declare class ProjectRequestError extends Error {
|
|
78
|
-
constructor(message: string);
|
|
79
|
-
}
|
|
80
|
-
/** @throws ProjectRequestError naming what is wrong; nothing is coerced. */
|
|
81
|
-
export declare function parseProjectRequest(value: unknown): ProjectRequest;
|
|
82
|
-
export declare function parseProjectRegistryView(value: unknown): ProjectRegistryView;
|
package/lib/pty/contract.d.ts
DELETED
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
/** Allowlisted ACRYL Workspace PTY commands and loopback routes. */
|
|
2
|
-
import { type KnownAgentId } from '../agents/known-agents.ts';
|
|
3
|
-
/** The terminal, then every agent ACRYL knows by name (`agents/known-agents.ts` owns that list). */
|
|
4
|
-
export declare const WORKSPACE_PTY_COMMAND_IDS: readonly ["shell", ...string[]];
|
|
5
|
-
export type WorkspacePtyCommandId = 'shell' | KnownAgentId;
|
|
6
|
-
export declare const WORKSPACE_PTY_PATH = "/api/acryl-workspace/pty";
|
|
7
|
-
export declare const WORKSPACE_PTY_INPUT_PATH = "/api/acryl-workspace/pty/input";
|
|
8
|
-
export declare const WORKSPACE_PTY_RESIZE_PATH = "/api/acryl-workspace/pty/resize";
|
|
9
|
-
export declare const WORKSPACE_PTY_CLOSE_PATH = "/api/acryl-workspace/pty/close";
|
|
10
|
-
/** WebSocket: live output down, keystrokes and size up, in order. Query: `id`, `since` (cursor already shown). */
|
|
11
|
-
export declare const WORKSPACE_PTY_STREAM_PATH = "/api/acryl-workspace/pty/stream";
|
|
12
|
-
/** @param value - unknown command id from JSON. */
|
|
13
|
-
export declare function isWorkspacePtyCommandId(value: unknown): value is WorkspacePtyCommandId;
|
|
14
|
-
export type WorkspacePtyStatus = 'starting' | 'running' | 'exited' | 'error';
|
|
15
|
-
export interface WorkspacePtyView {
|
|
16
|
-
readonly id: string;
|
|
17
|
-
readonly status: WorkspacePtyStatus;
|
|
18
|
-
readonly output: string;
|
|
19
|
-
readonly exitCode: number | null;
|
|
20
|
-
readonly error: string | null;
|
|
21
|
-
}
|
|
22
|
-
/** What the Host sends over the stream. */
|
|
23
|
-
export type PtyServerMessage =
|
|
24
|
-
/** Output. `replace` clears the client's terminal first (it missed more than the Host kept). */
|
|
25
|
-
{
|
|
26
|
-
readonly t: 'out';
|
|
27
|
-
readonly data: string;
|
|
28
|
-
readonly cursor: number;
|
|
29
|
-
readonly replace: boolean;
|
|
30
|
-
} | {
|
|
31
|
-
readonly t: 'exit';
|
|
32
|
-
readonly exitCode: number | null;
|
|
33
|
-
readonly error: string | null;
|
|
34
|
-
};
|
|
35
|
-
/** What the client sends over the stream. */
|
|
36
|
-
export type PtyClientMessage = {
|
|
37
|
-
readonly t: 'in';
|
|
38
|
-
readonly data: string;
|
|
39
|
-
} | {
|
|
40
|
-
readonly t: 'resize';
|
|
41
|
-
readonly cols: number;
|
|
42
|
-
readonly rows: number;
|
|
43
|
-
};
|
|
44
|
-
export declare const MAX_PTY_INPUT_CHARS: number;
|
|
45
|
-
export declare const MAX_PTY_COLS = 500;
|
|
46
|
-
export declare const MAX_PTY_ROWS = 200;
|
|
47
|
-
/** @param text - one text frame from the client; null when it is not a well-formed message. */
|
|
48
|
-
export declare function parsePtyClientMessage(text: string): PtyClientMessage | null;
|
|
49
|
-
/** @param text - one text frame from the Host; throws on anything unexpected. */
|
|
50
|
-
export declare function parsePtyServerMessage(text: string): PtyServerMessage;
|
|
51
|
-
/** Any agent id the Host may be asked to start: a built-in one or one from the user's catalog. */
|
|
52
|
-
export type AgentId = string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|