@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/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
@@ -14,7 +14,7 @@ import {
14
14
  unpackFiles,
15
15
  validateFiles,
16
16
  validatePackage
17
- } from "./chunk-FT7LOHJF.js";
17
+ } from "./chunk-33HRB63R.js";
18
18
  export {
19
19
  assertImportAllowed,
20
20
  createPackageId,
@@ -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": ["schema", "name", "execution_target"],
6
+ "required": [
7
+ "schema",
8
+ "name",
9
+ "execution_target"
10
+ ],
7
11
  "properties": {
8
- "schema": { "const": "agents24.artifact/v1" },
9
- "name": { "type": "string", "minLength": 1, "maxLength": 128 },
10
- "description": { "type": "string", "maxLength": 2000 },
11
- "execution_target": { "enum": ["platform_hosted", "self_hosted"] },
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": ["language", "entry"],
33
+ "required": [
34
+ "language",
35
+ "entry"
36
+ ],
16
37
  "properties": {
17
- "language": { "enum": ["python", "javascript"] },
18
- "entry": { "type": "string", "minLength": 1 },
19
- "dependencies": { "type": "array", "items": { "type": "string" } }
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": ["auth"],
59
+ "required": [
60
+ "auth"
61
+ ],
26
62
  "properties": {
27
- "manifest_path": { "type": "string", "pattern": "^/(?!/)" },
28
- "health_path": { "type": "string", "pattern": "^/(?!/)" },
29
- "verify_path": { "type": "string", "pattern": "^/(?!/)" },
30
- "invoke_path": { "type": "string", "pattern": "^/(?!/)" },
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": ["mode"],
82
+ "required": [
83
+ "mode"
84
+ ],
35
85
  "properties": {
36
- "mode": { "enum": ["hmac_sha256", "none"] },
37
- "secret": { "type": "string", "pattern": "^\\$secrets\\.[a-z0-9]+(?:-[a-z0-9]+)*$" }
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": ["base_url"],
103
+ "required": [
104
+ "base_url"
105
+ ],
46
106
  "properties": {
47
- "command": { "type": "string", "minLength": 1, "pattern": "^[^;&|`$<>\\r\\n]+$" },
48
- "args": { "type": "array", "items": { "type": "string", "maxLength": 4096 }, "maxItems": 64 },
49
- "cwd": { "type": "string", "minLength": 1 },
50
- "base_url": { "type": "string", "format": "uri", "pattern": "^http://(?:127\\.0\\.0\\.1|localhost)(?::[0-9]{1,5})?(?:/.*)?$" }
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": { "type": "string", "format": "uri", "pattern": "^https://" }
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": { "type": "object" }
175
+ "capabilities": {
176
+ "type": "object"
177
+ }
62
178
  },
63
179
  "oneOf": [
64
- { "properties": { "execution_target": { "const": "platform_hosted" } }, "required": ["runtime"] },
65
- { "properties": { "execution_target": { "const": "self_hosted" } }, "required": ["server"] }
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
@@ -194,6 +194,10 @@
194
194
  "properties": {
195
195
  "from": {
196
196
  "type": "string"
197
+ },
198
+ "label": {
199
+ "type": "string",
200
+ "maxLength": 512
197
201
  }
198
202
  },
199
203
  "additionalProperties": false
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agents24/cli",
3
- "version": "0.3.30",
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.27",
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"