@synap-core/workspace-templates 0.48.0 → 0.50.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 CHANGED
@@ -98,6 +98,12 @@ visibility go in `meta`; the definition goes in `spec`.
98
98
  reading a link is the pod's built-in `web.read` verb (Synap Core), not a catalog capability: the old
99
99
  `web.read` pack is retired.
100
100
 
101
+ - **A verb that must always ask** (it deletes, destroys or publishes) declares `metadata.proposeOnly: true`:
102
+ no auto grant and no "runs on its own" rule ever runs it, whatever its name. Adding it later only
103
+ tightens (it reaches installed pods without a re-approval); setting it back to `false` re-earns the
104
+ owner's approval. Never beside `readOnly: true`. Reference: `postiz`'s four post verbs.
105
+ `synap catalog validate` enforces the shape (`skill-propose-only`).
106
+
101
107
  **Skill.** Either a manifest `skills/<slug>/<slug>.skill.json` (`kind: skill`,
102
108
  `spec` = the CP's `definition.skill`), or an Agent-Skills folder
103
109
  `skills/<slug>/SKILL.md`. A folder stays in the shape `synap bridge-setup` reads; to
@@ -0,0 +1,278 @@
1
+ {
2
+ "apiVersion": "synap/v1",
3
+ "kind": "capability",
4
+ "meta": {
5
+ "slug": "hetzner-cloud",
6
+ "name": "Hetzner Cloud — Compute",
7
+ "description": "Start, read and end Hetzner Cloud servers through ONE API token (Cloud API v1). Every start carries a time to live and a spend maximum; the pod destroys the server when the time is up. Connect a Hetzner Cloud project token to use it.",
8
+ "tags": [
9
+ "capability"
10
+ ],
11
+ "isPublic": true,
12
+ "syncByDefault": true
13
+ },
14
+ "spec": {
15
+ "key": "hetzner-cloud",
16
+ "name": "Hetzner Cloud — Compute",
17
+ "description": "Hetzner Cloud API (https://api.hetzner.cloud/v1) through ONE vault API token of a Hetzner Cloud project, sent as `Authorization: Bearer <token>`. It fills the `compute` need: hetzner_create_server starts a server (provision_compute, with the pod's required ttlMinutes and maxSpendCents), hetzner_delete_server destroys it and hetzner_shutdown_server stops it (release_compute), hetzner_get_server and hetzner_get_pricing read (fetch_record). The pod releases every started server at its time to live through hetzner_delete_server, pre-approved by the start. A stopped Hetzner server is still billed until deleted. Routes verified against Hetzner's published OpenAPI (docs.hetzner.cloud/cloud.spec.json, 18 Nov 2026).",
18
+ "params": [
19
+ {
20
+ "name": "hetznerToken",
21
+ "label": "Hetzner Cloud API token",
22
+ "type": "text",
23
+ "required": true,
24
+ "description": "A Hetzner Cloud project API token with Read & Write permission. It is stored in the vault as an API key and sent as `Authorization: Bearer <token>`. Every server it starts is billed to that project.",
25
+ "obtain": {
26
+ "url": "https://console.hetzner.cloud/projects",
27
+ "steps": [
28
+ "In the Hetzner Cloud Console, open the project the servers belong to",
29
+ "Open Security, then API tokens, and generate a token with Read & Write permission, then copy it"
30
+ ]
31
+ }
32
+ }
33
+ ],
34
+ "vault": [
35
+ {
36
+ "ref": "hetzner_cloud",
37
+ "name": "Hetzner Cloud API token",
38
+ "value": "{{hetznerToken}}",
39
+ "type": "api_key",
40
+ "service": "hetzner_cloud",
41
+ "description": "Hetzner Cloud project API token (Bearer) used by every `hetzner_*` verb."
42
+ }
43
+ ],
44
+ "tools": [
45
+ {
46
+ "name": "hetzner_cloud",
47
+ "kind": "provider",
48
+ "description": "Hetzner Cloud API access through a vault API token. credentialRef resolves to the created vault secret; the dispatcher injects `Authorization: Bearer <token>` and composes requests against config.baseUrl (https://api.hetzner.cloud/v1).",
49
+ "credentialRef": "hetzner_cloud",
50
+ "executor": "is-agent",
51
+ "config": {
52
+ "serviceId": "hetzner_cloud",
53
+ "baseUrl": "https://api.hetzner.cloud/v1"
54
+ }
55
+ }
56
+ ],
57
+ "skills": [
58
+ {
59
+ "name": "hetzner_create_server",
60
+ "intent": "provision_compute",
61
+ "kind": "declarative",
62
+ "scope": "pod",
63
+ "description": "Starts a Hetzner Cloud server (POST /v1/servers) for a set time and a set spend maximum. The pod REQUIRES ttlMinutes and maxSpendCents on every start (read the hourly price with hetzner_get_pricing first: maxSpendCents = hours x price), records the start, and destroys the server with hetzner_delete_server when the time is up, with no second approval. Args: { ttlMinutes: number (whole minutes), maxSpendCents: number (whole cents, in the account's currency), name: string (unique per project, a valid hostname), serverType: string (e.g. 'cx22'), image: string (e.g. 'ubuntu-24.04'), options?: object (other Hetzner create fields, sent as they are: location, ssh_keys, user_data, labels, firewalls, networks...) }. Give ssh_keys or user_data to reach the server: its root password is never returned into the pod. Returns { resourceId (the server id), name, status, ipv4, ipv6, actionId }.",
64
+ "requires": [
65
+ "hetzner_cloud"
66
+ ],
67
+ "executionMode": "async",
68
+ "timeoutSeconds": 60,
69
+ "parameters": {
70
+ "ttlMinutes": "number",
71
+ "maxSpendCents": "number",
72
+ "name": "string",
73
+ "serverType": "string",
74
+ "image": "string",
75
+ "options": "object?"
76
+ },
77
+ "providerSpec": {
78
+ "tool": "hetzner_cloud",
79
+ "method": "POST",
80
+ "pathTemplate": "/servers",
81
+ "body": {
82
+ "name": "{{name}}",
83
+ "server_type": "{{serverType}}",
84
+ "image": "{{image}}"
85
+ },
86
+ "bodyFrom": "options",
87
+ "paramMapping": {
88
+ "name": {
89
+ "required": true
90
+ },
91
+ "serverType": {
92
+ "required": true
93
+ },
94
+ "image": {
95
+ "required": true
96
+ }
97
+ },
98
+ "responseShape": {
99
+ "scalar": {
100
+ "resourceId": "server.id",
101
+ "name": "server.name",
102
+ "status": "server.status",
103
+ "ipv4": "server.public_net.ipv4.ip",
104
+ "ipv6": "server.public_net.ipv6.ip",
105
+ "actionId": "action.id"
106
+ }
107
+ }
108
+ },
109
+ "metadata": {
110
+ "compute": {
111
+ "releaseVerb": "hetzner_delete_server"
112
+ }
113
+ }
114
+ },
115
+ {
116
+ "name": "hetzner_delete_server",
117
+ "intent": "release_compute",
118
+ "kind": "declarative",
119
+ "scope": "pod",
120
+ "description": "Destroys a Hetzner Cloud server (DELETE /v1/servers/{id}): the server and its disk are gone and billing stops. The pod runs it by itself when a start's time to live is up. Args: { resourceId: string (the server id), mode: 'destroy' }. Returns { resourceId, actionId, status }.",
121
+ "requires": [
122
+ "hetzner_cloud"
123
+ ],
124
+ "executionMode": "sync",
125
+ "timeoutSeconds": 60,
126
+ "parameters": {
127
+ "resourceId": "string",
128
+ "mode": "string"
129
+ },
130
+ "providerSpec": {
131
+ "tool": "hetzner_cloud",
132
+ "method": "DELETE",
133
+ "pathTemplate": "/servers/{{resourceId}}",
134
+ "paramMapping": {
135
+ "resourceId": {
136
+ "required": true,
137
+ "encode": "uri"
138
+ }
139
+ },
140
+ "responseShape": {
141
+ "scalar": {
142
+ "resourceId": "{{resourceId}}",
143
+ "actionId": "action.id",
144
+ "status": "action.status"
145
+ }
146
+ }
147
+ },
148
+ "metadata": {
149
+ "compute": {
150
+ "modes": [
151
+ "destroy"
152
+ ]
153
+ }
154
+ }
155
+ },
156
+ {
157
+ "name": "hetzner_shutdown_server",
158
+ "intent": "release_compute",
159
+ "kind": "declarative",
160
+ "scope": "pod",
161
+ "description": "Shuts a Hetzner Cloud server down gracefully (POST /v1/servers/{id}/actions/shutdown). The server and its disk stay, and Hetzner keeps billing a stopped server until it is deleted: use hetzner_delete_server to stop paying. Args: { resourceId: string (the server id), mode: 'stop' }. Returns { resourceId, actionId, status }.",
162
+ "requires": [
163
+ "hetzner_cloud"
164
+ ],
165
+ "executionMode": "sync",
166
+ "timeoutSeconds": 60,
167
+ "parameters": {
168
+ "resourceId": "string",
169
+ "mode": "string"
170
+ },
171
+ "providerSpec": {
172
+ "tool": "hetzner_cloud",
173
+ "method": "POST",
174
+ "pathTemplate": "/servers/{{resourceId}}/actions/shutdown",
175
+ "paramMapping": {
176
+ "resourceId": {
177
+ "required": true,
178
+ "encode": "uri"
179
+ }
180
+ },
181
+ "responseShape": {
182
+ "scalar": {
183
+ "resourceId": "{{resourceId}}",
184
+ "actionId": "action.id",
185
+ "status": "action.status"
186
+ }
187
+ }
188
+ },
189
+ "metadata": {
190
+ "compute": {
191
+ "modes": [
192
+ "stop"
193
+ ]
194
+ }
195
+ }
196
+ },
197
+ {
198
+ "name": "hetzner_get_server",
199
+ "intent": "fetch_record",
200
+ "kind": "declarative",
201
+ "scope": "pod",
202
+ "description": "Reads one Hetzner Cloud server (GET /v1/servers/{id}): its status (initializing, starting, running, stopping, off, deleting, migrating, rebuilding, unknown), type and addresses. Args: { resourceId: string (the server id) }.",
203
+ "requires": [
204
+ "hetzner_cloud"
205
+ ],
206
+ "executionMode": "sync",
207
+ "timeoutSeconds": 60,
208
+ "parameters": {
209
+ "resourceId": "string"
210
+ },
211
+ "providerSpec": {
212
+ "tool": "hetzner_cloud",
213
+ "method": "GET",
214
+ "pathTemplate": "/servers/{{resourceId}}",
215
+ "paramMapping": {
216
+ "resourceId": {
217
+ "required": true,
218
+ "encode": "uri"
219
+ }
220
+ },
221
+ "responseShape": {
222
+ "scalar": {
223
+ "resourceId": "server.id",
224
+ "name": "server.name",
225
+ "status": "server.status",
226
+ "serverType": "server.server_type.name",
227
+ "ipv4": "server.public_net.ipv4.ip",
228
+ "ipv6": "server.public_net.ipv6.ip",
229
+ "created": "server.created",
230
+ "labels": "server.labels"
231
+ }
232
+ }
233
+ },
234
+ "metadata": {
235
+ "readOnly": true
236
+ }
237
+ },
238
+ {
239
+ "name": "hetzner_get_pricing",
240
+ "intent": "fetch_record",
241
+ "kind": "declarative",
242
+ "scope": "pod",
243
+ "description": "Reads Hetzner Cloud prices (GET /v1/pricing): the account's currency and, per server type and location, the hourly and monthly price (net and gross). Read it before a start to set maxSpendCents (hours x hourly price). Args: {}.",
244
+ "requires": [
245
+ "hetzner_cloud"
246
+ ],
247
+ "executionMode": "sync",
248
+ "timeoutSeconds": 60,
249
+ "parameters": {},
250
+ "providerSpec": {
251
+ "tool": "hetzner_cloud",
252
+ "method": "GET",
253
+ "pathTemplate": "/pricing",
254
+ "responseShape": {
255
+ "collectionPath": "pricing.server_types",
256
+ "collectionAs": "serverTypes",
257
+ "item": {
258
+ "name": "name",
259
+ "prices": "prices"
260
+ },
261
+ "scalar": {
262
+ "currency": "pricing.currency",
263
+ "vatRate": "pricing.vat_rate"
264
+ }
265
+ }
266
+ },
267
+ "metadata": {
268
+ "readOnly": true
269
+ }
270
+ }
271
+ ],
272
+ "provides": [
273
+ "provision_compute",
274
+ "release_compute",
275
+ "fetch_record"
276
+ ]
277
+ }
278
+ }
@@ -78,7 +78,8 @@
78
78
  "executionMode": "sync",
79
79
  "timeoutSeconds": 60,
80
80
  "metadata": {
81
- "verbType": "write"
81
+ "verbType": "write",
82
+ "proposeOnly": true
82
83
  },
83
84
  "parameters": {
84
85
  "content": "string",
@@ -148,7 +149,8 @@
148
149
  "executionMode": "sync",
149
150
  "timeoutSeconds": 60,
150
151
  "metadata": {
151
- "verbType": "write"
152
+ "verbType": "write",
153
+ "proposeOnly": true
152
154
  },
153
155
  "parameters": {
154
156
  "content": "string",
@@ -232,7 +234,8 @@
232
234
  "executionMode": "sync",
233
235
  "timeoutSeconds": 60,
234
236
  "metadata": {
235
- "verbType": "write"
237
+ "verbType": "write",
238
+ "proposeOnly": true
236
239
  },
237
240
  "parameters": {
238
241
  "content": "string",
@@ -448,7 +451,8 @@
448
451
  "properties": {
449
452
  "postiz-post-id": "postId"
450
453
  }
451
- }
454
+ },
455
+ "proposeOnly": true
452
456
  },
453
457
  "parameters": {
454
458
  "content": "string",
package/dist/index.js CHANGED
@@ -33999,6 +33999,18 @@ var NEEDS = [
33999
33999
  description: "Where usage and traffic are measured.",
34000
34000
  intents: ["list_records", "fetch_record"],
34001
34001
  aliases: []
34002
+ },
34003
+ {
34004
+ slug: "compute",
34005
+ label: "Compute",
34006
+ description: "Where temporary machines are started, run jobs and are released.",
34007
+ intents: [
34008
+ "provision_compute",
34009
+ "run_external_job",
34010
+ "fetch_record",
34011
+ "release_compute"
34012
+ ],
34013
+ aliases: ["cloud-compute", "gpu"]
34002
34014
  }
34003
34015
  ];
34004
34016
  var NEED_SLUGS = NEEDS.map((n) => n.slug);
@@ -35198,7 +35210,7 @@ var vocabularyFr = {
35198
35210
  "status.auto_approved": "Approuv\xE9 automatiquement",
35199
35211
  "status.rejected": "Rejet\xE9",
35200
35212
  "status.denied": "Rejet\xE9",
35201
- "status.approval_failed": "\xC9chec de l\u2019approbation",
35213
+ "status.approval_failed": "\xC9chec de l\u2019application",
35202
35214
  "status.reverted": "Retour arri\xE8re",
35203
35215
  "status.applied": "Appliqu\xE9",
35204
35216
  "status.unknown": "Inconnu",
@@ -35328,6 +35340,7 @@ var vocabularyFr = {
35328
35340
  "need.social-publishing": "Publication sur les r\xE9seaux",
35329
35341
  "need.linkedin-reach": "Prospection LinkedIn",
35330
35342
  "need.analytics": "Statistiques",
35343
+ "need.compute": "Calcul",
35331
35344
  // ── Intents: `intent.<slug>` (an intent's short name, never the consent sentence) ──
35332
35345
  "intent.search_external": "Chercher dans des sources externes",
35333
35346
  "intent.find_people": "Trouver des personnes",
@@ -35349,6 +35362,8 @@ var vocabularyFr = {
35349
35362
  "intent.edit_video": "Monter une vid\xE9o",
35350
35363
  "intent.transcribe_media": "Transcrire un m\xE9dia",
35351
35364
  "intent.download_media": "T\xE9l\xE9charger un m\xE9dia",
35365
+ "intent.provision_compute": "D\xE9marrer une machine cloud",
35366
+ "intent.release_compute": "Arr\xEAter une machine cloud",
35352
35367
  // ── Needs-you counts: `needsYou.count.<kind>` (French counts 0 and 1 as
35353
35368
  // singular; `many` is a whole number of millions: "1000000 de décisions") ──
35354
35369
  "needsYou.count.decision": "{n, plural, one {# d\xE9cision} many {# de d\xE9cisions} other {# d\xE9cisions}}",
@@ -36639,7 +36654,11 @@ var STATUS_LABEL_ROWS = {
36639
36654
  // `PROPOSAL_REJECTION_REASONS` taxonomy, and the DB enum value.
36640
36655
  rejected: "Rejected",
36641
36656
  denied: "Rejected",
36642
- approval_failed: "Approval failed",
36657
+ // DEFAULT word (plan 8032a127 D6, the founder has not decided; override it
36658
+ // here and in `catalog.fr.ts`): the approval happened, applying it did not.
36659
+ // "Couldn't apply" says what the person sees; "Approval failed" read as if
36660
+ // the approving had failed.
36661
+ approval_failed: "Couldn't apply",
36643
36662
  // The proposal's effect was taken back after approval. One word for the row's
36644
36663
  // status chip on every surface (the workbench and the phone both name it).
36645
36664
  reverted: "Reverted",
@@ -36918,7 +36937,8 @@ var NEED_LABELS = {
36918
36937
  "media-generation": "Media generation",
36919
36938
  "social-publishing": "Social publishing",
36920
36939
  "linkedin-reach": "LinkedIn reach",
36921
- analytics: "Analytics"
36940
+ analytics: "Analytics",
36941
+ compute: "Compute"
36922
36942
  };
36923
36943
  var INTENT_LABELS = {
36924
36944
  search_external: "Search outside sources",
@@ -36940,7 +36960,9 @@ var INTENT_LABELS = {
36940
36960
  search_web: "Search the web",
36941
36961
  edit_video: "Edit a video",
36942
36962
  transcribe_media: "Transcribe media",
36943
- download_media: "Download media"
36963
+ download_media: "Download media",
36964
+ provision_compute: "Start a cloud machine",
36965
+ release_compute: "Stop a cloud machine"
36944
36966
  };
36945
36967
  var RUNNER_STATE_LABELS = {
36946
36968
  busy: "Working",