-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathvitest.aliases.ts
More file actions
55 lines (52 loc) · 1.62 KB
/
Copy pathvitest.aliases.ts
File metadata and controls
55 lines (52 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import path from "node:path";
import { fileURLToPath } from "node:url";
const workspaceRoot = path.dirname(fileURLToPath(import.meta.url));
function fromRoot(relativePath: string): string {
return path.join(workspaceRoot, relativePath);
}
export const arcpWorkspaceAliases = [
{
find: /^@agentruntimecontrolprotocol\/core$/,
replacement: fromRoot("packages/core/src/index.ts"),
},
{
find: /^@agentruntimecontrolprotocol\/core\/(.+)$/,
replacement: fromRoot("packages/core/src/$1"),
},
{
find: /^@agentruntimecontrolprotocol\/client$/,
replacement: fromRoot("packages/client/src/index.ts"),
},
{
find: /^@agentruntimecontrolprotocol\/runtime$/,
replacement: fromRoot("packages/runtime/src/index.ts"),
},
{
find: /^@agentruntimecontrolprotocol\/sdk$/,
replacement: fromRoot("packages/sdk/src/index.ts"),
},
{
find: /^@agentruntimecontrolprotocol\/node$/,
replacement: fromRoot("packages/middleware/node/src/index.ts"),
},
{
find: /^@agentruntimecontrolprotocol\/express$/,
replacement: fromRoot("packages/middleware/express/src/index.ts"),
},
{
find: /^@agentruntimecontrolprotocol\/fastify$/,
replacement: fromRoot("packages/middleware/fastify/src/index.ts"),
},
{
find: /^@agentruntimecontrolprotocol\/hono$/,
replacement: fromRoot("packages/middleware/hono/src/index.ts"),
},
{
find: /^@agentruntimecontrolprotocol\/bun$/,
replacement: fromRoot("packages/middleware/bun/src/index.ts"),
},
{
find: /^@agentruntimecontrolprotocol\/middleware-otel$/,
replacement: fromRoot("packages/middleware/otel/src/index.ts"),
},
];