@anna-ai/cli 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/README.md +149 -0
- package/dist/bridge-CzEs7jaN.js +145 -0
- package/dist/bridge-t2Qqu3hC.js +3 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +121 -0
- package/dist/dashboard.html +426 -0
- package/dist/dev-Bgku5ngL.js +163 -0
- package/dist/doctor-D3z4YslL.js +69 -0
- package/dist/fixture-BGjMtqWA.js +278 -0
- package/dist/server-B6-Qdluv.js +255 -0
- package/dist/test/index.d.ts +151 -0
- package/dist/test/index.js +260 -0
- package/package.json +53 -0
- package/templates/minimal/README.md +9 -0
- package/templates/minimal/app.json +7 -0
- package/templates/minimal/bundle/app.js +36 -0
- package/templates/minimal/bundle/index.html +14 -0
- package/templates/minimal/executas/__SLUG__/plugin.py +60 -0
- package/templates/minimal/executas/__SLUG__/pyproject.toml +12 -0
- package/templates/minimal/manifest.json +38 -0
- package/vendor/anna-app-schema/README.md +22 -0
- package/vendor/anna-app-schema/dispatcher_version.txt +1 -0
- package/vendor/anna-app-schema/events/AnnaAppEvent.json +38 -0
- package/vendor/anna-app-schema/host_api/methods.json +170 -0
- package/vendor/anna-app-schema/manifest/AppManifest.json +471 -0
- package/vendor/anna-app-schema/manifest/UiManifestSection.json +273 -0
- package/vendor/anna-app-schema/package.json +25 -0
- package/vendor/anna-app-schema/pyproject.toml +13 -0
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$defs": {
|
|
3
|
+
"UiBundleSection": {
|
|
4
|
+
"additionalProperties": false,
|
|
5
|
+
"properties": {
|
|
6
|
+
"entry": {
|
|
7
|
+
"maxLength": 200,
|
|
8
|
+
"minLength": 1,
|
|
9
|
+
"title": "Entry",
|
|
10
|
+
"type": "string"
|
|
11
|
+
},
|
|
12
|
+
"external_origins": {
|
|
13
|
+
"items": {
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
"title": "External Origins",
|
|
17
|
+
"type": "array"
|
|
18
|
+
},
|
|
19
|
+
"format": {
|
|
20
|
+
"default": "static-spa",
|
|
21
|
+
"maxLength": 20,
|
|
22
|
+
"title": "Format",
|
|
23
|
+
"type": "string"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"required": [
|
|
27
|
+
"entry"
|
|
28
|
+
],
|
|
29
|
+
"title": "UiBundleSection",
|
|
30
|
+
"type": "object"
|
|
31
|
+
},
|
|
32
|
+
"UiHostApiSpec": {
|
|
33
|
+
"additionalProperties": false,
|
|
34
|
+
"properties": {
|
|
35
|
+
"artifact": {
|
|
36
|
+
"items": {
|
|
37
|
+
"type": "string"
|
|
38
|
+
},
|
|
39
|
+
"title": "Artifact",
|
|
40
|
+
"type": "array"
|
|
41
|
+
},
|
|
42
|
+
"chat": {
|
|
43
|
+
"items": {
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
"title": "Chat",
|
|
47
|
+
"type": "array"
|
|
48
|
+
},
|
|
49
|
+
"fs": {
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
},
|
|
53
|
+
"title": "Fs",
|
|
54
|
+
"type": "array"
|
|
55
|
+
},
|
|
56
|
+
"llm": {
|
|
57
|
+
"items": {
|
|
58
|
+
"type": "string"
|
|
59
|
+
},
|
|
60
|
+
"title": "Llm",
|
|
61
|
+
"type": "array"
|
|
62
|
+
},
|
|
63
|
+
"prefs": {
|
|
64
|
+
"items": {
|
|
65
|
+
"type": "string"
|
|
66
|
+
},
|
|
67
|
+
"title": "Prefs",
|
|
68
|
+
"type": "array"
|
|
69
|
+
},
|
|
70
|
+
"storage": {
|
|
71
|
+
"items": {
|
|
72
|
+
"type": "string"
|
|
73
|
+
},
|
|
74
|
+
"title": "Storage",
|
|
75
|
+
"type": "array"
|
|
76
|
+
},
|
|
77
|
+
"tools": {
|
|
78
|
+
"items": {
|
|
79
|
+
"type": "string"
|
|
80
|
+
},
|
|
81
|
+
"title": "Tools",
|
|
82
|
+
"type": "array"
|
|
83
|
+
},
|
|
84
|
+
"window": {
|
|
85
|
+
"items": {
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
"title": "Window",
|
|
89
|
+
"type": "array"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
"title": "UiHostApiSpec",
|
|
93
|
+
"type": "object"
|
|
94
|
+
},
|
|
95
|
+
"UiSize": {
|
|
96
|
+
"additionalProperties": false,
|
|
97
|
+
"properties": {
|
|
98
|
+
"h": {
|
|
99
|
+
"maximum": 4096,
|
|
100
|
+
"minimum": 120,
|
|
101
|
+
"title": "H",
|
|
102
|
+
"type": "integer"
|
|
103
|
+
},
|
|
104
|
+
"w": {
|
|
105
|
+
"maximum": 4096,
|
|
106
|
+
"minimum": 120,
|
|
107
|
+
"title": "W",
|
|
108
|
+
"type": "integer"
|
|
109
|
+
}
|
|
110
|
+
},
|
|
111
|
+
"required": [
|
|
112
|
+
"w",
|
|
113
|
+
"h"
|
|
114
|
+
],
|
|
115
|
+
"title": "UiSize",
|
|
116
|
+
"type": "object"
|
|
117
|
+
},
|
|
118
|
+
"UiViewSpec": {
|
|
119
|
+
"additionalProperties": false,
|
|
120
|
+
"properties": {
|
|
121
|
+
"default": {
|
|
122
|
+
"default": false,
|
|
123
|
+
"title": "Default",
|
|
124
|
+
"type": "boolean"
|
|
125
|
+
},
|
|
126
|
+
"default_size": {
|
|
127
|
+
"anyOf": [
|
|
128
|
+
{
|
|
129
|
+
"$ref": "#/$defs/UiSize"
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
"type": "null"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
135
|
+
"default": null
|
|
136
|
+
},
|
|
137
|
+
"entry": {
|
|
138
|
+
"anyOf": [
|
|
139
|
+
{
|
|
140
|
+
"maxLength": 300,
|
|
141
|
+
"type": "string"
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
"type": "null"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"default": null,
|
|
148
|
+
"title": "Entry"
|
|
149
|
+
},
|
|
150
|
+
"icon": {
|
|
151
|
+
"anyOf": [
|
|
152
|
+
{
|
|
153
|
+
"maxLength": 200,
|
|
154
|
+
"type": "string"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"type": "null"
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
"default": null,
|
|
161
|
+
"title": "Icon"
|
|
162
|
+
},
|
|
163
|
+
"max_size": {
|
|
164
|
+
"anyOf": [
|
|
165
|
+
{
|
|
166
|
+
"$ref": "#/$defs/UiSize"
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
"type": "null"
|
|
170
|
+
}
|
|
171
|
+
],
|
|
172
|
+
"default": null
|
|
173
|
+
},
|
|
174
|
+
"min_size": {
|
|
175
|
+
"anyOf": [
|
|
176
|
+
{
|
|
177
|
+
"$ref": "#/$defs/UiSize"
|
|
178
|
+
},
|
|
179
|
+
{
|
|
180
|
+
"type": "null"
|
|
181
|
+
}
|
|
182
|
+
],
|
|
183
|
+
"default": null
|
|
184
|
+
},
|
|
185
|
+
"movable": {
|
|
186
|
+
"default": true,
|
|
187
|
+
"title": "Movable",
|
|
188
|
+
"type": "boolean"
|
|
189
|
+
},
|
|
190
|
+
"name": {
|
|
191
|
+
"maxLength": 40,
|
|
192
|
+
"minLength": 1,
|
|
193
|
+
"title": "Name",
|
|
194
|
+
"type": "string"
|
|
195
|
+
},
|
|
196
|
+
"resizable": {
|
|
197
|
+
"default": true,
|
|
198
|
+
"title": "Resizable",
|
|
199
|
+
"type": "boolean"
|
|
200
|
+
},
|
|
201
|
+
"single_instance": {
|
|
202
|
+
"default": false,
|
|
203
|
+
"title": "Single Instance",
|
|
204
|
+
"type": "boolean"
|
|
205
|
+
},
|
|
206
|
+
"summary_template": {
|
|
207
|
+
"anyOf": [
|
|
208
|
+
{
|
|
209
|
+
"maxLength": 400,
|
|
210
|
+
"type": "string"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"type": "null"
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
"default": null,
|
|
217
|
+
"title": "Summary Template"
|
|
218
|
+
},
|
|
219
|
+
"title": {
|
|
220
|
+
"maxLength": 120,
|
|
221
|
+
"minLength": 1,
|
|
222
|
+
"title": "Title",
|
|
223
|
+
"type": "string"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"required": [
|
|
227
|
+
"name",
|
|
228
|
+
"title"
|
|
229
|
+
],
|
|
230
|
+
"title": "UiViewSpec",
|
|
231
|
+
"type": "object"
|
|
232
|
+
}
|
|
233
|
+
},
|
|
234
|
+
"$id": "https://schemas.anna.partners/ui-manifest-section.json",
|
|
235
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
236
|
+
"additionalProperties": false,
|
|
237
|
+
"properties": {
|
|
238
|
+
"bundle": {
|
|
239
|
+
"$ref": "#/$defs/UiBundleSection"
|
|
240
|
+
},
|
|
241
|
+
"csp_overrides": {
|
|
242
|
+
"additionalProperties": {
|
|
243
|
+
"items": {
|
|
244
|
+
"type": "string"
|
|
245
|
+
},
|
|
246
|
+
"type": "array"
|
|
247
|
+
},
|
|
248
|
+
"title": "Csp Overrides",
|
|
249
|
+
"type": "object"
|
|
250
|
+
},
|
|
251
|
+
"host_api": {
|
|
252
|
+
"$ref": "#/$defs/UiHostApiSpec"
|
|
253
|
+
},
|
|
254
|
+
"state_merge": {
|
|
255
|
+
"default": "last_writer_wins",
|
|
256
|
+
"maxLength": 20,
|
|
257
|
+
"title": "State Merge",
|
|
258
|
+
"type": "string"
|
|
259
|
+
},
|
|
260
|
+
"views": {
|
|
261
|
+
"items": {
|
|
262
|
+
"$ref": "#/$defs/UiViewSpec"
|
|
263
|
+
},
|
|
264
|
+
"title": "Views",
|
|
265
|
+
"type": "array"
|
|
266
|
+
}
|
|
267
|
+
},
|
|
268
|
+
"required": [
|
|
269
|
+
"bundle"
|
|
270
|
+
],
|
|
271
|
+
"title": "UiManifestSection",
|
|
272
|
+
"type": "object"
|
|
273
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"description": "Versioned schema bundle for the Anna App platform (manifest, host RPC table, SSE event union).",
|
|
3
|
+
"exports": {
|
|
4
|
+
".": {
|
|
5
|
+
"default": "./host_api/methods.json"
|
|
6
|
+
},
|
|
7
|
+
"./events": "./events/AnnaAppEvent.json",
|
|
8
|
+
"./manifest": "./manifest/AppManifest.json",
|
|
9
|
+
"./methods": "./host_api/methods.json",
|
|
10
|
+
"./ui": "./manifest/UiManifestSection.json"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"manifest/",
|
|
14
|
+
"host_api/",
|
|
15
|
+
"events/",
|
|
16
|
+
"dispatcher_version.txt",
|
|
17
|
+
"README.md"
|
|
18
|
+
],
|
|
19
|
+
"license": "MIT",
|
|
20
|
+
"name": "@anna/app-schema",
|
|
21
|
+
"publishConfig": {
|
|
22
|
+
"access": "public"
|
|
23
|
+
},
|
|
24
|
+
"version": "0.1.0"
|
|
25
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
[build-system]
|
|
2
|
+
requires = ["hatchling"]
|
|
3
|
+
build-backend = "hatchling.build"
|
|
4
|
+
|
|
5
|
+
[project]
|
|
6
|
+
name = "anna-app-schema"
|
|
7
|
+
version = "0.1.0"
|
|
8
|
+
description = "Versioned schema bundle for the Anna App platform."
|
|
9
|
+
license = { text = "MIT" }
|
|
10
|
+
requires-python = ">=3.10"
|
|
11
|
+
|
|
12
|
+
[tool.hatch.build]
|
|
13
|
+
include = ["manifest/**", "host_api/**", "events/**", "dispatcher_version.txt", "README.md"]
|