@acryldev/workspace 0.2.0 → 0.2.2
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/lib/index.js +8 -7
- package/lib/index.js.map +1 -1
- package/package.json +7 -7
- 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}/route.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/{agents → types/agents}/status/route.d.ts +0 -0
- /package/lib/{capabilities → types/capabilities}/route.d.ts +0 -0
- /package/lib/{files → types/files}/route.d.ts +0 -0
- /package/lib/{files → types/files}/service.d.ts +0 -0
- /package/lib/{folder-picker → types/folder-picker}/picker.d.ts +0 -0
- /package/lib/{folder-picker → types/folder-picker}/route.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}/route.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/{index.d.ts → types/index.d.ts} +0 -0
- /package/lib/{private-route.d.ts → types/private-route.d.ts} +0 -0
- /package/lib/{projects → types/projects}/registry.d.ts +0 -0
- /package/lib/{projects → types/projects}/route.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}/route.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/{pty → types/pty}/stream.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}/route.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
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
|
|
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
|