@datalayer/agent-runtimes 1.6.28 → 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.
@@ -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: 'agent_skills.skills.accounting',
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 "agent-skills[skills]"',
23
- note: "agent-skills with every skill's dependencies; the runtime image installs it the same way.",
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: 'agent_skills.skills.crawl',
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 "agent-skills[skills]"',
45
- note: "agent-skills with every skill's dependencies; the runtime image installs it the same way.",
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: 'agent_skills.skills.events',
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 "agent-skills[skills]"',
67
- note: "agent-skills with every skill's dependencies; the runtime image installs it the same way.",
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: 'agent_skills.skills.github',
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 "agent-skills[skills]"',
89
- note: "agent-skills with every skill's dependencies; the runtime image installs it the same way.",
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: 'agent_skills.skills.image',
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 "agent-skills[skills]" && python -m playwright install chromium',
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: 'agent_skills.skills.pdf',
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 "agent-skills[skills]"',
155
- note: "agent-skills with every skill's dependencies; the runtime image installs it the same way.",
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: 'agent_skills.skills.text_summarizer',
168
+ package: 'datalayer_skills.skills.text_summarizer',
169
169
  method: 'summarize_text',
170
170
  path: undefined,
171
171
  requiredEnvVars: [],
172
172
  optionalEnvVars: [],
173
- dependencies: ['agent-skills>=0.0.1'],
173
+ dependencies: ['datalayer-skills>=0.3.0'],
174
174
  install: {
175
175
  type: 'python',
176
- command: 'pip install agent-skills',
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: 'agent_skills.skills.video',
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 "agent-skills[skills]" && python -m playwright install chromium',
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@datalayer/agent-runtimes",
3
- "version": "1.6.28",
3
+ "version": "1.6.30",
4
4
  "type": "module",
5
5
  "workspaces": [
6
6
  ".",
@@ -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)): _typescript_value(
275
- item, verbatim or key in VERBATIM
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
- *([f" streams={_fmt_list(spec['streams'])},"] if spec.get("streams") else []),
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
- *([f" streams: {_fmt_toolset_ts(spec['streams'])},"] if spec.get("streams") else []),
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 = [battles[identity].model_dump(mode="json") for identity in sorted(battles)]
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 = [stages[identity].model_dump(mode="json") for identity in sorted(stages)]
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") for identity in sorted(identities)
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)