@agents24/cli 0.3.30 → 0.3.31
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 +3 -1
- package/compatibility.json +5 -5
- package/dist/{chunk-FT7LOHJF.js → chunk-33HRB63R.js} +1 -1
- package/dist/{chunk-FT7LOHJF.js.map → chunk-33HRB63R.js.map} +1 -1
- package/dist/cli.js +176 -218
- package/dist/cli.js.map +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1 -1
- package/generated/schemas/resource-package/2.0/artifact.schema.json +162 -28
- package/generated/schemas/resource-package/2.0/rag.schema.json +22 -0
- package/generated/schemas/resource-package/2.0/workflow.schema.json +4 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { Agents24 } from '@agents24/node';
|
|
2
|
+
|
|
1
3
|
declare function packFiles(files: Map<string, string>): Uint8Array;
|
|
2
4
|
declare function unpackFiles(value: Uint8Array): Map<string, string>;
|
|
3
5
|
|
|
@@ -48,6 +50,7 @@ type ResourceInstallationPlanUpload = ResourcePackageUpload & {
|
|
|
48
50
|
primaryResourceKey?: string;
|
|
49
51
|
};
|
|
50
52
|
type RemoteClient = {
|
|
53
|
+
relayClients: Agents24["relayClients"];
|
|
51
54
|
knowledgeStores: {
|
|
52
55
|
upsertRecords(storeId: string, request: Record<string, unknown>): Promise<Record<string, unknown>>;
|
|
53
56
|
upsertRecordsBatched(storeId: string, request: Record<string, unknown>): Promise<Record<string, unknown>>;
|
package/dist/index.js
CHANGED
|
@@ -3,38 +3,96 @@
|
|
|
3
3
|
"$id": "https://docs.agents24.dev/schemas/resource-package/2.0/artifact.schema.json",
|
|
4
4
|
"type": "object",
|
|
5
5
|
"additionalProperties": false,
|
|
6
|
-
"required": [
|
|
6
|
+
"required": [
|
|
7
|
+
"schema",
|
|
8
|
+
"name",
|
|
9
|
+
"execution_target"
|
|
10
|
+
],
|
|
7
11
|
"properties": {
|
|
8
|
-
"schema": {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
+
"schema": {
|
|
13
|
+
"const": "agents24.artifact/v1"
|
|
14
|
+
},
|
|
15
|
+
"name": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"minLength": 1,
|
|
18
|
+
"maxLength": 128
|
|
19
|
+
},
|
|
20
|
+
"description": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"maxLength": 2000
|
|
23
|
+
},
|
|
24
|
+
"execution_target": {
|
|
25
|
+
"enum": [
|
|
26
|
+
"platform_hosted",
|
|
27
|
+
"self_hosted"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
12
30
|
"runtime": {
|
|
13
31
|
"type": "object",
|
|
14
32
|
"additionalProperties": false,
|
|
15
|
-
"required": [
|
|
33
|
+
"required": [
|
|
34
|
+
"language",
|
|
35
|
+
"entry"
|
|
36
|
+
],
|
|
16
37
|
"properties": {
|
|
17
|
-
"language": {
|
|
18
|
-
|
|
19
|
-
|
|
38
|
+
"language": {
|
|
39
|
+
"enum": [
|
|
40
|
+
"python",
|
|
41
|
+
"javascript"
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
"entry": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"minLength": 1
|
|
47
|
+
},
|
|
48
|
+
"dependencies": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
20
54
|
}
|
|
21
55
|
},
|
|
22
56
|
"server": {
|
|
23
57
|
"type": "object",
|
|
24
58
|
"additionalProperties": false,
|
|
25
|
-
"required": [
|
|
59
|
+
"required": [
|
|
60
|
+
"auth"
|
|
61
|
+
],
|
|
26
62
|
"properties": {
|
|
27
|
-
"manifest_path": {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
63
|
+
"manifest_path": {
|
|
64
|
+
"type": "string",
|
|
65
|
+
"pattern": "^/(?!/)"
|
|
66
|
+
},
|
|
67
|
+
"health_path": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"pattern": "^/(?!/)"
|
|
70
|
+
},
|
|
71
|
+
"verify_path": {
|
|
72
|
+
"type": "string",
|
|
73
|
+
"pattern": "^/(?!/)"
|
|
74
|
+
},
|
|
75
|
+
"invoke_path": {
|
|
76
|
+
"type": "string",
|
|
77
|
+
"pattern": "^/(?!/)"
|
|
78
|
+
},
|
|
31
79
|
"auth": {
|
|
32
80
|
"type": "object",
|
|
33
81
|
"additionalProperties": false,
|
|
34
|
-
"required": [
|
|
82
|
+
"required": [
|
|
83
|
+
"mode"
|
|
84
|
+
],
|
|
35
85
|
"properties": {
|
|
36
|
-
"mode": {
|
|
37
|
-
|
|
86
|
+
"mode": {
|
|
87
|
+
"enum": [
|
|
88
|
+
"hmac_sha256",
|
|
89
|
+
"none"
|
|
90
|
+
]
|
|
91
|
+
},
|
|
92
|
+
"secret": {
|
|
93
|
+
"type": "string",
|
|
94
|
+
"pattern": "^\\$secrets\\.[a-z0-9]+(?:-[a-z0-9]+)*$"
|
|
95
|
+
}
|
|
38
96
|
}
|
|
39
97
|
}
|
|
40
98
|
}
|
|
@@ -42,26 +100,102 @@
|
|
|
42
100
|
"development": {
|
|
43
101
|
"type": "object",
|
|
44
102
|
"additionalProperties": false,
|
|
45
|
-
"required": [
|
|
103
|
+
"required": [
|
|
104
|
+
"base_url"
|
|
105
|
+
],
|
|
46
106
|
"properties": {
|
|
47
|
-
"command": {
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
107
|
+
"command": {
|
|
108
|
+
"type": "string",
|
|
109
|
+
"minLength": 1,
|
|
110
|
+
"pattern": "^[^;&|`$<>\\r\\n]+$"
|
|
111
|
+
},
|
|
112
|
+
"args": {
|
|
113
|
+
"type": "array",
|
|
114
|
+
"items": {
|
|
115
|
+
"type": "string",
|
|
116
|
+
"maxLength": 4096
|
|
117
|
+
},
|
|
118
|
+
"maxItems": 64
|
|
119
|
+
},
|
|
120
|
+
"cwd": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"minLength": 1
|
|
123
|
+
},
|
|
124
|
+
"base_url": {
|
|
125
|
+
"type": "string",
|
|
126
|
+
"format": "uri",
|
|
127
|
+
"pattern": "^http://(?:127\\.0\\.0\\.1|localhost)(?::[0-9]{1,5})?(?:/.*)?$"
|
|
128
|
+
}
|
|
51
129
|
}
|
|
52
130
|
},
|
|
53
131
|
"production": {
|
|
54
132
|
"type": "object",
|
|
55
133
|
"additionalProperties": false,
|
|
56
|
-
"required": ["base_url"],
|
|
57
134
|
"properties": {
|
|
58
|
-
"base_url": {
|
|
59
|
-
|
|
135
|
+
"base_url": {
|
|
136
|
+
"type": "string",
|
|
137
|
+
"format": "uri",
|
|
138
|
+
"pattern": "^https://"
|
|
139
|
+
},
|
|
140
|
+
"transport": {
|
|
141
|
+
"enum": [
|
|
142
|
+
"http",
|
|
143
|
+
"relay"
|
|
144
|
+
]
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
"oneOf": [
|
|
148
|
+
{
|
|
149
|
+
"required": [
|
|
150
|
+
"base_url"
|
|
151
|
+
],
|
|
152
|
+
"properties": {
|
|
153
|
+
"transport": {
|
|
154
|
+
"const": "http"
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"required": [
|
|
160
|
+
"transport"
|
|
161
|
+
],
|
|
162
|
+
"properties": {
|
|
163
|
+
"transport": {
|
|
164
|
+
"const": "relay"
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"not": {
|
|
168
|
+
"required": [
|
|
169
|
+
"base_url"
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
]
|
|
60
174
|
},
|
|
61
|
-
"capabilities": {
|
|
175
|
+
"capabilities": {
|
|
176
|
+
"type": "object"
|
|
177
|
+
}
|
|
62
178
|
},
|
|
63
179
|
"oneOf": [
|
|
64
|
-
{
|
|
65
|
-
|
|
180
|
+
{
|
|
181
|
+
"properties": {
|
|
182
|
+
"execution_target": {
|
|
183
|
+
"const": "platform_hosted"
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"required": [
|
|
187
|
+
"runtime"
|
|
188
|
+
]
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"properties": {
|
|
192
|
+
"execution_target": {
|
|
193
|
+
"const": "self_hosted"
|
|
194
|
+
}
|
|
195
|
+
},
|
|
196
|
+
"required": [
|
|
197
|
+
"server"
|
|
198
|
+
]
|
|
199
|
+
}
|
|
66
200
|
]
|
|
67
201
|
}
|
|
@@ -106,6 +106,28 @@
|
|
|
106
106
|
"type": "string",
|
|
107
107
|
"minLength": 1,
|
|
108
108
|
"description": "Preferred stable registry key for the generated Tool."
|
|
109
|
+
},
|
|
110
|
+
"result_handling": {
|
|
111
|
+
"type": "object",
|
|
112
|
+
"additionalProperties": false,
|
|
113
|
+
"required": [
|
|
114
|
+
"strategy",
|
|
115
|
+
"limit_chars"
|
|
116
|
+
],
|
|
117
|
+
"properties": {
|
|
118
|
+
"strategy": {
|
|
119
|
+
"enum": [
|
|
120
|
+
"cut",
|
|
121
|
+
"artifact"
|
|
122
|
+
]
|
|
123
|
+
},
|
|
124
|
+
"limit_chars": {
|
|
125
|
+
"type": "integer",
|
|
126
|
+
"minimum": 512,
|
|
127
|
+
"maximum": 100000
|
|
128
|
+
}
|
|
129
|
+
},
|
|
130
|
+
"description": "Authored result-size policy for the generated Tool, applied on package apply."
|
|
109
131
|
}
|
|
110
132
|
},
|
|
111
133
|
"additionalProperties": false
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agents24/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.31",
|
|
4
4
|
"description": "Git-friendly Agents24 resource package tooling.",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"provenance": false
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@agents24/node": "0.5.
|
|
37
|
+
"@agents24/node": "0.5.28",
|
|
38
38
|
"@clack/prompts": "1.7.0",
|
|
39
39
|
"ajv": "^8.17.1",
|
|
40
40
|
"yaml": "^2.8.1"
|