@taico/shared 0.2.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/dist/index.d.ts +10 -0
- package/dist/index.js +50 -0
- package/package.json +30 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export type Scope = {
|
|
2
|
+
id: string;
|
|
3
|
+
description: string;
|
|
4
|
+
};
|
|
5
|
+
export declare const INTERNAL_WORKER_AUTH_TARGET_ID = "taico-worker";
|
|
6
|
+
export declare const INTERNAL_WORKER_AUTH_TARGET_VERSION = "0.0.0";
|
|
7
|
+
export declare const INTERNAL_WORKER_AUTH_TARGET_NAME = "Taico Worker";
|
|
8
|
+
export declare const INTERNAL_WORKER_AUTH_TARGET_DESCRIPTION = "Internal OAuth target for Taico worker bootstrap.";
|
|
9
|
+
export declare const INTERNAL_WORKER_AUTH_SCOPES: Scope[];
|
|
10
|
+
export declare const DEFAULT_AGENT_TOKEN_SCOPES: readonly ["meta:read", "meta:write", "tasks:read", "tasks:write", "context:read", "context:write", "agents:read", "run:read", "run:write", "threads:read", "threads:write", "mcp-registry:read", "mcp:use", "secret:read"];
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export const INTERNAL_WORKER_AUTH_TARGET_ID = 'taico-worker';
|
|
2
|
+
export const INTERNAL_WORKER_AUTH_TARGET_VERSION = '0.0.0';
|
|
3
|
+
export const INTERNAL_WORKER_AUTH_TARGET_NAME = 'Taico Worker';
|
|
4
|
+
export const INTERNAL_WORKER_AUTH_TARGET_DESCRIPTION = 'Internal OAuth target for Taico worker bootstrap.';
|
|
5
|
+
export const INTERNAL_WORKER_AUTH_SCOPES = [
|
|
6
|
+
{
|
|
7
|
+
id: 'workers:connect',
|
|
8
|
+
description: 'Allows workers to pick up tasks, work on them, and finish execution.',
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
id: 'agents:act_as',
|
|
12
|
+
description: 'Allows clients to request short-lived execution tokens for agents.',
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
id: 'tasks:read',
|
|
16
|
+
description: 'Allows users to read tasks, tags, comments, etc from Tasks.',
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
id: 'context:read',
|
|
20
|
+
description: 'Allows users to read context blocks',
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
id: 'threads:read',
|
|
24
|
+
description: 'Allows users to read threads.',
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
id: 'agents:read',
|
|
28
|
+
description: 'Allows users to view agents.',
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: 'meta:read',
|
|
32
|
+
description: 'Read meta information (tags, etc.)',
|
|
33
|
+
},
|
|
34
|
+
];
|
|
35
|
+
export const DEFAULT_AGENT_TOKEN_SCOPES = [
|
|
36
|
+
'meta:read',
|
|
37
|
+
'meta:write',
|
|
38
|
+
'tasks:read',
|
|
39
|
+
'tasks:write',
|
|
40
|
+
'context:read',
|
|
41
|
+
'context:write',
|
|
42
|
+
'agents:read',
|
|
43
|
+
'run:read',
|
|
44
|
+
'run:write',
|
|
45
|
+
'threads:read',
|
|
46
|
+
'threads:write',
|
|
47
|
+
'mcp-registry:read',
|
|
48
|
+
'mcp:use',
|
|
49
|
+
'secret:read',
|
|
50
|
+
];
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@taico/shared",
|
|
3
|
+
"version": "0.2.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"private": false,
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"files": [
|
|
10
|
+
"dist",
|
|
11
|
+
"package.json"
|
|
12
|
+
],
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"types": "./dist/index.d.ts",
|
|
16
|
+
"import": "./dist/index.js",
|
|
17
|
+
"default": "./dist/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./package.json": "./package.json"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"build": "tsc -p tsconfig.build.json",
|
|
23
|
+
"typecheck": "tsc -p tsconfig.build.json --noEmit",
|
|
24
|
+
"pack": "npm run build && npm pack",
|
|
25
|
+
"release": "npm run build && npm publish --access public"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"typescript": "^5.7.3"
|
|
29
|
+
}
|
|
30
|
+
}
|