@acp-router/core 0.1.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/lib/types.d.ts ADDED
@@ -0,0 +1,46 @@
1
+ import type * as acp from '@agentclientprotocol/sdk';
2
+ export type RegistryAgentId = string;
3
+ export interface AgentRegistryEntry {
4
+ id: RegistryAgentId;
5
+ name: string;
6
+ description?: string;
7
+ command: string;
8
+ args?: string[];
9
+ env?: Record<string, string>;
10
+ cwd?: string;
11
+ }
12
+ export interface AgentRegistrySnapshot {
13
+ source: string;
14
+ fetchedAt: string;
15
+ agents: AgentRegistryEntry[];
16
+ }
17
+ export interface AgentLaunchRequest {
18
+ agentId: RegistryAgentId;
19
+ cwd?: string;
20
+ args?: string[];
21
+ env?: Record<string, string>;
22
+ }
23
+ export interface AgentProcess {
24
+ stdin: WritableStream<Uint8Array>;
25
+ stdout: ReadableStream<Uint8Array>;
26
+ stderr?: ReadableStream<Uint8Array>;
27
+ pid?: number;
28
+ kill: () => void;
29
+ wait: () => Promise<number | null>;
30
+ }
31
+ export interface AgentLauncher {
32
+ launch(request: AgentLaunchRequest, entry: AgentRegistryEntry): Promise<AgentProcess>;
33
+ }
34
+ export interface SessionCacheStore {
35
+ get(key: string): Promise<string | null>;
36
+ set(key: string, value: string): Promise<void>;
37
+ }
38
+ export type ContentBlock = acp.ContentBlock;
39
+ export type SessionConfigOption = acp.SessionConfigOption;
40
+ export type SessionInfo = acp.SessionInfo;
41
+ export type SessionModeState = acp.SessionModeState;
42
+ export type SessionModelState = acp.SessionModelState;
43
+ export type AvailableCommand = acp.AvailableCommand;
44
+ export type RequestPermissionRequest = acp.RequestPermissionRequest;
45
+ export type RequestPermissionResponse = acp.RequestPermissionResponse;
46
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,GAAG,MAAM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GAAG,IAAI,CAAC,CAAA;IACxC,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CAC/C;AAED,MAAM,MAAM,YAAY,GAAG,GAAG,CAAC,YAAY,CAAA;AAC3C,MAAM,MAAM,mBAAmB,GAAG,GAAG,CAAC,mBAAmB,CAAA;AACzD,MAAM,MAAM,WAAW,GAAG,GAAG,CAAC,WAAW,CAAA;AACzC,MAAM,MAAM,gBAAgB,GAAG,GAAG,CAAC,gBAAgB,CAAA;AACnD,MAAM,MAAM,iBAAiB,GAAG,GAAG,CAAC,iBAAiB,CAAA;AACrD,MAAM,MAAM,gBAAgB,GAAG,GAAG,CAAC,gBAAgB,CAAA;AACnD,MAAM,MAAM,wBAAwB,GAAG,GAAG,CAAC,wBAAwB,CAAA;AACnE,MAAM,MAAM,yBAAyB,GAAG,GAAG,CAAC,yBAAyB,CAAA"}
package/lib/types.js ADDED
@@ -0,0 +1 @@
1
+ export {};
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "@acp-router/core",
3
+ "version": "0.1.0",
4
+ "type": "module",
5
+ "main": "./lib/index.js",
6
+ "types": "./lib/index.d.ts",
7
+ "files": [
8
+ "lib"
9
+ ],
10
+ "scripts": {
11
+ "build": "tsc -p tsconfig.json"
12
+ },
13
+ "dependencies": {
14
+ "@agentclientprotocol/sdk": "^0.14.1",
15
+ "pino": "^9.9.1",
16
+ "zod": "^4.3.6"
17
+ },
18
+ "devDependencies": {
19
+ "typescript": "^5.9.3"
20
+ }
21
+ }