@datalayer/agent-runtimes 1.6.27 → 1.6.30
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-embed/datalayer-app-main.js +80 -80
- package/lib/apps/__tests__/fixtures/stewardReport.json +1022 -0
- package/lib/apps/apps/appspec.d.ts +3 -2
- package/lib/apps/apps/appspec.js +3 -2
- package/lib/hooks/index.d.ts +1 -1
- package/lib/hooks/index.js +1 -1
- package/lib/hooks/useMonitoring.d.ts +0 -10
- package/lib/hooks/useMonitoring.js +6 -72
- package/lib/protocols/pap/index.d.ts +1 -1
- package/lib/protocols/pap/index.js +2 -2
- package/lib/specs/actions.js +51 -3
- package/lib/specs/agents/agents.js +1 -1
- package/lib/specs/apps.d.ts +1 -1
- package/lib/specs/apps.js +393 -391
- package/lib/specs/backendTools.js +1 -1
- package/lib/specs/mcpServers.js +24 -0
- package/lib/specs/skills.js +23 -23
- package/package.json +1 -1
- package/scripts/codegen/generate_apps.py +9 -2
- package/scripts/codegen/generate_frontend_tools.py +10 -2
- package/scripts/codegen/generate_ops.py +9 -3
|
@@ -369,7 +369,7 @@ export const RECOMMENDATIONS_REPORT_BACKEND_TOOL_SPEC_0_0_1 = {
|
|
|
369
369
|
id: 'recommendations-report',
|
|
370
370
|
version: '0.0.1',
|
|
371
371
|
name: 'Recommendations Report',
|
|
372
|
-
description: "Report the deployment's recommendations of the last days — how many were approved, dismissed and are still open, the estimated monthly savings of each and the largest open ones — read from its record, and send it through the application's notification channels.",
|
|
372
|
+
description: "Report the deployment's recommendations of the last days — how many were approved, dismissed and are still open, the estimated monthly savings of each and the largest open ones — read from its record, write it as a document in the Space the application may write, and send it through the application's notification channels with the document's link.",
|
|
373
373
|
tags: ['recommendations', 'steward'],
|
|
374
374
|
enabled: true,
|
|
375
375
|
approval: 'auto',
|
package/lib/specs/mcpServers.js
CHANGED
|
@@ -318,6 +318,18 @@ export const DATALAYER_MCP_SERVER_0_0_1 = {
|
|
|
318
318
|
odoo_accounting_book_bank_line_split: 'write',
|
|
319
319
|
odoo_accounting_prepare_vendor_payments: 'write',
|
|
320
320
|
odoo_accounting_list_vendor_payments: 'read',
|
|
321
|
+
odoo_accounting_find_duplicate_bank_lines: 'read',
|
|
322
|
+
odoo_accounting_remove_bank_line_twins: 'delete',
|
|
323
|
+
odoo_accounting_unlink_bank_feed: 'write',
|
|
324
|
+
odoo_accounting_delete_bank_connection: 'delete',
|
|
325
|
+
odoo_accounting_recode_bill: 'write',
|
|
326
|
+
odoo_accounting_defer_expense: 'write',
|
|
327
|
+
odoo_accounting_check_vendor_payments: 'read',
|
|
328
|
+
odoo_accounting_update_vendor_payment: 'write',
|
|
329
|
+
odoo_accounting_cancel_vendor_payment: 'write',
|
|
330
|
+
odoo_accounting_get_attachment: 'read',
|
|
331
|
+
odoo_accounting_list_documents: 'read',
|
|
332
|
+
odoo_accounting_attach_existing_document: 'write',
|
|
321
333
|
odoo_accounting_vat_close_check: 'read',
|
|
322
334
|
odoo_accounting_intervat_xml: 'read',
|
|
323
335
|
odoo_accounting_record_return_submission: 'write',
|
|
@@ -1000,6 +1012,18 @@ export const ODOO_ACCOUNTING_MCP_SERVER_0_0_1 = {
|
|
|
1000
1012
|
odoo_accounting_delete_draft: 'delete',
|
|
1001
1013
|
odoo_accounting_prepare_vendor_payments: 'write',
|
|
1002
1014
|
odoo_accounting_list_vendor_payments: 'read',
|
|
1015
|
+
odoo_accounting_find_duplicate_bank_lines: 'read',
|
|
1016
|
+
odoo_accounting_remove_bank_line_twins: 'delete',
|
|
1017
|
+
odoo_accounting_unlink_bank_feed: 'write',
|
|
1018
|
+
odoo_accounting_delete_bank_connection: 'delete',
|
|
1019
|
+
odoo_accounting_recode_bill: 'write',
|
|
1020
|
+
odoo_accounting_defer_expense: 'write',
|
|
1021
|
+
odoo_accounting_check_vendor_payments: 'read',
|
|
1022
|
+
odoo_accounting_update_vendor_payment: 'write',
|
|
1023
|
+
odoo_accounting_cancel_vendor_payment: 'write',
|
|
1024
|
+
odoo_accounting_get_attachment: 'read',
|
|
1025
|
+
odoo_accounting_list_documents: 'read',
|
|
1026
|
+
odoo_accounting_attach_existing_document: 'write',
|
|
1003
1027
|
odoo_accounting_get_tax_settings: 'read',
|
|
1004
1028
|
odoo_accounting_set_tax_periodicity: 'write',
|
|
1005
1029
|
odoo_accounting_list_tax_returns: 'read',
|
package/lib/specs/skills.js
CHANGED
|
@@ -10,7 +10,7 @@ export const ACCOUNTING_SKILL_SPEC_0_0_1 = {
|
|
|
10
10
|
version: '0.0.1',
|
|
11
11
|
name: 'Accounting Skill',
|
|
12
12
|
description: 'Accounting analysis workflows for reconciliation, close, variance, and audit-ready summaries',
|
|
13
|
-
module: '
|
|
13
|
+
module: 'datalayer_skills.skills.accounting',
|
|
14
14
|
package: undefined,
|
|
15
15
|
method: undefined,
|
|
16
16
|
path: undefined,
|
|
@@ -19,8 +19,8 @@ export const ACCOUNTING_SKILL_SPEC_0_0_1 = {
|
|
|
19
19
|
dependencies: ['pandas>=2.0.0'],
|
|
20
20
|
install: {
|
|
21
21
|
type: 'python',
|
|
22
|
-
command: 'pip install "
|
|
23
|
-
note: "
|
|
22
|
+
command: 'pip install "datalayer-skills[skills]"',
|
|
23
|
+
note: "datalayer-skills with every skill's dependencies; the runtime image installs it the same way.",
|
|
24
24
|
},
|
|
25
25
|
tags: ['accounting', 'finance', 'reconciliation', 'close'],
|
|
26
26
|
icon: '@primer/octicons-react:book',
|
|
@@ -32,7 +32,7 @@ export const CRAWL_SKILL_SPEC_0_0_1 = {
|
|
|
32
32
|
version: '0.0.1',
|
|
33
33
|
name: 'Web Crawl Skill',
|
|
34
34
|
description: 'Web crawling and content extraction capabilities',
|
|
35
|
-
module: '
|
|
35
|
+
module: 'datalayer_skills.skills.crawl',
|
|
36
36
|
package: undefined,
|
|
37
37
|
method: undefined,
|
|
38
38
|
path: undefined,
|
|
@@ -41,8 +41,8 @@ export const CRAWL_SKILL_SPEC_0_0_1 = {
|
|
|
41
41
|
dependencies: ['requests>=2.31.0', 'beautifulsoup4>=4.12.0'],
|
|
42
42
|
install: {
|
|
43
43
|
type: 'python',
|
|
44
|
-
command: 'pip install "
|
|
45
|
-
note: "
|
|
44
|
+
command: 'pip install "datalayer-skills[skills]"',
|
|
45
|
+
note: "datalayer-skills with every skill's dependencies; the runtime image installs it the same way.",
|
|
46
46
|
},
|
|
47
47
|
tags: ['web', 'crawl', 'scraping'],
|
|
48
48
|
icon: '@primer/octicons-react:globe',
|
|
@@ -54,7 +54,7 @@ export const EVENTS_SKILL_SPEC_0_0_1 = {
|
|
|
54
54
|
version: '0.0.1',
|
|
55
55
|
name: 'Events Skill',
|
|
56
56
|
description: 'Event generation, enrichment, and lifecycle orchestration',
|
|
57
|
-
module: '
|
|
57
|
+
module: 'datalayer_skills.skills.events',
|
|
58
58
|
package: undefined,
|
|
59
59
|
method: undefined,
|
|
60
60
|
path: undefined,
|
|
@@ -63,8 +63,8 @@ export const EVENTS_SKILL_SPEC_0_0_1 = {
|
|
|
63
63
|
dependencies: ['httpx>=0.27.0'],
|
|
64
64
|
install: {
|
|
65
65
|
type: 'python',
|
|
66
|
-
command: 'pip install "
|
|
67
|
-
note: "
|
|
66
|
+
command: 'pip install "datalayer-skills[skills]"',
|
|
67
|
+
note: "datalayer-skills with every skill's dependencies; the runtime image installs it the same way.",
|
|
68
68
|
},
|
|
69
69
|
tags: ['events', 'orchestration', 'automation'],
|
|
70
70
|
icon: '@primer/octicons-react:calendar',
|
|
@@ -76,7 +76,7 @@ export const GITHUB_SKILL_SPEC_0_0_1 = {
|
|
|
76
76
|
version: '0.0.1',
|
|
77
77
|
name: 'GitHub Skill',
|
|
78
78
|
description: 'GitHub repository management and code operations',
|
|
79
|
-
module: '
|
|
79
|
+
module: 'datalayer_skills.skills.github',
|
|
80
80
|
package: undefined,
|
|
81
81
|
method: undefined,
|
|
82
82
|
path: undefined,
|
|
@@ -85,8 +85,8 @@ export const GITHUB_SKILL_SPEC_0_0_1 = {
|
|
|
85
85
|
dependencies: ['PyGithub>=2.1.0'],
|
|
86
86
|
install: {
|
|
87
87
|
type: 'python',
|
|
88
|
-
command: 'pip install "
|
|
89
|
-
note: "
|
|
88
|
+
command: 'pip install "datalayer-skills[skills]"',
|
|
89
|
+
note: "datalayer-skills with every skill's dependencies; the runtime image installs it the same way.",
|
|
90
90
|
},
|
|
91
91
|
tags: ['github', 'git', 'code'],
|
|
92
92
|
icon: '@datalayer/icons-react:github-mark',
|
|
@@ -98,7 +98,7 @@ export const IMAGE_SKILL_SPEC_0_0_1 = {
|
|
|
98
98
|
version: '0.0.1',
|
|
99
99
|
name: 'Image Skills',
|
|
100
100
|
description: 'Snapshots of web pages and video frames; images read, resized, cropped, converted, optimized and thumbnailed',
|
|
101
|
-
module: '
|
|
101
|
+
module: 'datalayer_skills.skills.image',
|
|
102
102
|
package: undefined,
|
|
103
103
|
method: undefined,
|
|
104
104
|
path: undefined,
|
|
@@ -107,7 +107,7 @@ export const IMAGE_SKILL_SPEC_0_0_1 = {
|
|
|
107
107
|
dependencies: ['Pillow>=10.0', 'playwright>=1.45'],
|
|
108
108
|
install: {
|
|
109
109
|
type: 'python',
|
|
110
|
-
command: 'pip install "
|
|
110
|
+
command: 'pip install "datalayer-skills[skills]" && python -m playwright install chromium',
|
|
111
111
|
note: 'Chromium for its page snapshots; the runtime image carries it.',
|
|
112
112
|
},
|
|
113
113
|
tags: ['image', 'snapshot', 'media'],
|
|
@@ -142,7 +142,7 @@ export const PDF_SKILL_SPEC_0_0_1 = {
|
|
|
142
142
|
version: '0.0.1',
|
|
143
143
|
name: 'PDF Processing Skill',
|
|
144
144
|
description: 'PDF document reading, parsing, and extraction',
|
|
145
|
-
module: '
|
|
145
|
+
module: 'datalayer_skills.skills.pdf',
|
|
146
146
|
package: undefined,
|
|
147
147
|
method: undefined,
|
|
148
148
|
path: undefined,
|
|
@@ -151,8 +151,8 @@ export const PDF_SKILL_SPEC_0_0_1 = {
|
|
|
151
151
|
dependencies: ['pypdf>=4.0', 'pdf2image>=1.17', 'Pillow>=10.0'],
|
|
152
152
|
install: {
|
|
153
153
|
type: 'python',
|
|
154
|
-
command: 'pip install "
|
|
155
|
-
note: "
|
|
154
|
+
command: 'pip install "datalayer-skills[skills]"',
|
|
155
|
+
note: "datalayer-skills with every skill's dependencies; the runtime image installs it the same way.",
|
|
156
156
|
},
|
|
157
157
|
tags: ['pdf', 'documents', 'extraction'],
|
|
158
158
|
icon: '@primer/octicons-react:file',
|
|
@@ -165,15 +165,15 @@ export const TEXT_SUMMARIZER_SKILL_SPEC_0_0_1 = {
|
|
|
165
165
|
name: 'Text Summarizer Skill',
|
|
166
166
|
description: 'Summarize text content using extractive and abstractive techniques. Use when the user asks for summaries, key points, or condensed versions of documents.',
|
|
167
167
|
module: undefined,
|
|
168
|
-
package: '
|
|
168
|
+
package: 'datalayer_skills.skills.text_summarizer',
|
|
169
169
|
method: 'summarize_text',
|
|
170
170
|
path: undefined,
|
|
171
171
|
requiredEnvVars: [],
|
|
172
172
|
optionalEnvVars: [],
|
|
173
|
-
dependencies: ['
|
|
173
|
+
dependencies: ['datalayer-skills>=0.3.0'],
|
|
174
174
|
install: {
|
|
175
175
|
type: 'python',
|
|
176
|
-
command: 'pip install
|
|
176
|
+
command: 'pip install datalayer-skills',
|
|
177
177
|
note: 'No dependencies of its own.',
|
|
178
178
|
},
|
|
179
179
|
tags: ['nlp', 'summarization', 'text-processing'],
|
|
@@ -185,8 +185,8 @@ export const VIDEO_SKILL_SPEC_0_0_1 = {
|
|
|
185
185
|
id: 'video',
|
|
186
186
|
version: '0.0.1',
|
|
187
187
|
name: 'Video Skills',
|
|
188
|
-
description: 'Recordings of web pages; videos read, trimmed, transcoded, optimized, framed and turned to GIF',
|
|
189
|
-
module: '
|
|
188
|
+
description: 'Recordings of web pages; videos read, trimmed, zoomed in and out on a point, transcoded, optimized, framed and turned to GIF',
|
|
189
|
+
module: 'datalayer_skills.skills.video',
|
|
190
190
|
package: undefined,
|
|
191
191
|
method: undefined,
|
|
192
192
|
path: undefined,
|
|
@@ -195,7 +195,7 @@ export const VIDEO_SKILL_SPEC_0_0_1 = {
|
|
|
195
195
|
dependencies: ['imageio-ffmpeg>=0.5', 'playwright>=1.45'],
|
|
196
196
|
install: {
|
|
197
197
|
type: 'python',
|
|
198
|
-
command: 'pip install "
|
|
198
|
+
command: 'pip install "datalayer-skills[skills]" && python -m playwright install chromium',
|
|
199
199
|
note: 'Chromium for its recordings, and ffmpeg (imageio-ffmpeg brings one); the runtime image carries both.',
|
|
200
200
|
},
|
|
201
201
|
tags: ['video', 'recording', 'media'],
|
package/package.json
CHANGED
|
@@ -76,6 +76,11 @@ CAMEL = {
|
|
|
76
76
|
#: and a sample's metrics by name.
|
|
77
77
|
VERBATIM = ("components", "weights", "metrics")
|
|
78
78
|
|
|
79
|
+
#: The keys whose value is a JSON Schema, kept whole as the Appspec's readers
|
|
80
|
+
#: keep it: its keys as written and its nulls too (`default: null` says
|
|
81
|
+
#: something there).
|
|
82
|
+
WHOLE = ("settings", "settings_ui")
|
|
83
|
+
|
|
79
84
|
|
|
80
85
|
def _flat(text: Any) -> str:
|
|
81
86
|
"""A text on one line."""
|
|
@@ -271,8 +276,10 @@ def _typescript_value(value: Any, verbatim: bool = False) -> Any:
|
|
|
271
276
|
"""An application as the TypeScript interfaces read it; nulls left out."""
|
|
272
277
|
if isinstance(value, dict):
|
|
273
278
|
return {
|
|
274
|
-
(key if verbatim else CAMEL.get(key, key)):
|
|
275
|
-
item
|
|
279
|
+
(key if verbatim else CAMEL.get(key, key)): (
|
|
280
|
+
item
|
|
281
|
+
if key in WHOLE and not verbatim
|
|
282
|
+
else _typescript_value(item, verbatim or key in VERBATIM)
|
|
276
283
|
)
|
|
277
284
|
for key, item in value.items()
|
|
278
285
|
if item is not None
|
|
@@ -101,7 +101,11 @@ def generate_python_code(specs: list[dict[str, Any]]) -> str:
|
|
|
101
101
|
f" tags={_fmt_list(spec.get('tags', []))},",
|
|
102
102
|
f" enabled={spec.get('enabled', True)},",
|
|
103
103
|
f" toolset={_fmt_toolset(spec.get('toolset', 'all'))},",
|
|
104
|
-
*(
|
|
104
|
+
*(
|
|
105
|
+
[f" streams={_fmt_list(spec['streams'])},"]
|
|
106
|
+
if spec.get("streams")
|
|
107
|
+
else []
|
|
108
|
+
),
|
|
105
109
|
f" icon={icon},",
|
|
106
110
|
f" emoji={emoji},",
|
|
107
111
|
")",
|
|
@@ -194,7 +198,11 @@ def generate_typescript_code(specs: list[dict[str, Any]]) -> str:
|
|
|
194
198
|
f" tags: {tags_json},",
|
|
195
199
|
f" enabled: {str(spec.get('enabled', True)).lower()},",
|
|
196
200
|
f" toolset: {_fmt_toolset_ts(spec.get('toolset', 'all'))},",
|
|
197
|
-
*(
|
|
201
|
+
*(
|
|
202
|
+
[f" streams: {_fmt_toolset_ts(spec['streams'])},"]
|
|
203
|
+
if spec.get("streams")
|
|
204
|
+
else []
|
|
205
|
+
),
|
|
198
206
|
f" icon: {icon},",
|
|
199
207
|
f" emoji: {emoji},",
|
|
200
208
|
"};",
|
|
@@ -117,6 +117,7 @@ CAMEL = {
|
|
|
117
117
|
"client_id_per_application": "clientIdPerApplication",
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
+
|
|
120
121
|
def _flat(text: Any) -> str:
|
|
121
122
|
return " ".join(str(text or "").split())
|
|
122
123
|
|
|
@@ -164,14 +165,19 @@ def load_specs(kind: str, specs_dir: Path) -> list[dict[str, Any]]:
|
|
|
164
165
|
]
|
|
165
166
|
elif kind == "battles":
|
|
166
167
|
battles = module.load_battles(specs_dir)
|
|
167
|
-
specs = [
|
|
168
|
+
specs = [
|
|
169
|
+
battles[identity].model_dump(mode="json") for identity in sorted(battles)
|
|
170
|
+
]
|
|
168
171
|
elif kind == "stages":
|
|
169
172
|
stages = module.load_stages(specs_dir)
|
|
170
|
-
specs = [
|
|
173
|
+
specs = [
|
|
174
|
+
stages[identity].model_dump(mode="json") for identity in sorted(stages)
|
|
175
|
+
]
|
|
171
176
|
elif kind == "identities":
|
|
172
177
|
identities = module.load_identities(specs_dir)
|
|
173
178
|
specs = [
|
|
174
|
-
identities[identity].model_dump(mode="json")
|
|
179
|
+
identities[identity].model_dump(mode="json")
|
|
180
|
+
for identity in sorted(identities)
|
|
175
181
|
]
|
|
176
182
|
elif kind == "tracks":
|
|
177
183
|
tracks = module.load_tracks(specs_dir)
|