@zibby/skill-ids 0.2.1 → 0.2.3
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/package.json +1 -1
- package/src/index.js +46 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zibby/skill-ids",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.3",
|
|
4
4
|
"description": "Single authoritative Zibby skill-id map (zero-dep leaf). The one source of truth for well-known skill ids — every consumer (agent-workflow, core, skills, backend, templates) imports it, so the ids can never drift.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "src/index.js",
|
package/src/index.js
CHANGED
|
@@ -120,12 +120,13 @@ export const SKILL_IDS = Object.freeze({
|
|
|
120
120
|
SOCIAL_CARD: 'social-card',
|
|
121
121
|
// `code-scan` — AGENT-DRIVEN, stack-smart deterministic linter over a
|
|
122
122
|
// checked-out repo (JS/TS→oxlint, …). Tier ① (fully local) → UNGATED. Opt-in.
|
|
123
|
-
// No-connection TOGGLEABLE (
|
|
123
|
+
// No-connection TOGGLEABLE, DEFAULT-ON (meta.defaultEnabled: seeded ON at
|
|
124
|
+
// deploy, still user-toggleable OFF). Backed by codeScanSkill.
|
|
124
125
|
CODE_SCAN: 'code-scan',
|
|
125
126
|
// `codebase-memory` — code-graph + semantic index over the checked-out repo,
|
|
126
127
|
// backed by the codebase-memory-mcp binary BAKED INTO the agent image. Fully
|
|
127
|
-
// local → UNGATED. No-connection TOGGLEABLE (
|
|
128
|
-
// codebaseMemorySkill.
|
|
128
|
+
// local → UNGATED. No-connection TOGGLEABLE, DEFAULT-OFF (no meta.defaultEnabled
|
|
129
|
+
// — the user opts IN). Opt-in. Backed by codebaseMemorySkill.
|
|
129
130
|
CODEBASE_MEMORY: 'codebase-memory',
|
|
130
131
|
WORKFLOW_BUILDER: 'workflow-builder',
|
|
131
132
|
// `trigger-agent` — the agent-callable `trigger_agent` MCP tool
|
|
@@ -146,6 +147,18 @@ export const SKILL_IDS = Object.freeze({
|
|
|
146
147
|
// @zibby/core) and wired declaratively through `.zibby.config.mjs` `skills:`.
|
|
147
148
|
// Kept in the id map so `SKILLS.SESSION` resolves in any consumer.
|
|
148
149
|
SESSION: 'session',
|
|
150
|
+
// `gbrain` — per-tenant KNOWLEDGE-BASE sidecar (tier ③) over a `postgres`-type
|
|
151
|
+
// Stores-v2 store. A Postgres (PGlite) + pgvector "brain" the agent ingests
|
|
152
|
+
// source documents into and queries over an env-injected MCP URL
|
|
153
|
+
// (GBRAIN_MCP_URL); the brain is a `postgres` store snapshotted to object
|
|
154
|
+
// storage per tenant (store TYPE = the real engine `postgres`; `gbrain` is the
|
|
155
|
+
// SKILL). Fully server-side, NO user connection → UNGATED.
|
|
156
|
+
// No-connection TOGGLEABLE (like codebase-memory). Backed by gbrainSkill in
|
|
157
|
+
// @zibby/skills. Used by the knowledge-base wrapper-agent (parent = single
|
|
158
|
+
// writer / owner of the brain; per-source children stay pure). Scaffold:
|
|
159
|
+
// dogfood of the public agent-workflow sub-graph API — see the
|
|
160
|
+
// knowledge-base template + WRAPPER-AGENTS.md.
|
|
161
|
+
GBRAIN: 'gbrain',
|
|
149
162
|
});
|
|
150
163
|
|
|
151
164
|
/**
|
|
@@ -167,7 +180,17 @@ export const SKILL_IDS = Object.freeze({
|
|
|
167
180
|
*
|
|
168
181
|
* Shape per id:
|
|
169
182
|
* { toggleable, requiresIntegration, tier, display:{ name, description },
|
|
170
|
-
* binary?:{ name, version, sha256 } }
|
|
183
|
+
* defaultEnabled?, binary?:{ name, version, sha256 } }
|
|
184
|
+
*
|
|
185
|
+
* `defaultEnabled` (optional, boolean) — a GENERAL per-skill flag: when true, the
|
|
186
|
+
* skill is SEEDED ON at deploy (the platform ships it enabled; the user opts OUT,
|
|
187
|
+
* not in) while remaining user-toggleable OFF in the agent's Skills settings.
|
|
188
|
+
* ABSENT / false = default-OFF (the user opts IN). Only meaningful for
|
|
189
|
+
* `toggleable: true` skills (a non-toggleable skill's on/off isn't user-facing).
|
|
190
|
+
* The deploy-seed (backend marketplace deployWorkflow) unions every graph-declared
|
|
191
|
+
* defaultEnabled toggleable skill into a fresh deploy's allowlist; the deploy
|
|
192
|
+
* modal pre-checks them. e.g. `code-scan` is defaultEnabled (reviews should scan
|
|
193
|
+
* out of the box); `codebase-memory` is NOT (code-graph is opt-in for review).
|
|
171
194
|
*
|
|
172
195
|
* A skill absent from this map is "not toggleable" (the default for everything
|
|
173
196
|
* except the two no-connection toggleable skills). Ids are append-only (see the
|
|
@@ -203,6 +226,9 @@ export const SKILL_META = deepFreeze({
|
|
|
203
226
|
'code-scan': {
|
|
204
227
|
toggleable: true,
|
|
205
228
|
requiresIntegration: false,
|
|
229
|
+
// DEFAULT-ON: seeded into a fresh deploy's allowlist (reviews scan out of the
|
|
230
|
+
// box) but still user-toggleable OFF in the agent's Skills settings.
|
|
231
|
+
defaultEnabled: true,
|
|
206
232
|
tier: 2,
|
|
207
233
|
display: {
|
|
208
234
|
name: 'Code scan',
|
|
@@ -213,4 +239,20 @@ export const SKILL_META = deepFreeze({
|
|
|
213
239
|
+ 'no connection required.',
|
|
214
240
|
},
|
|
215
241
|
},
|
|
242
|
+
gbrain: {
|
|
243
|
+
toggleable: true,
|
|
244
|
+
requiresIntegration: false,
|
|
245
|
+
tier: 3,
|
|
246
|
+
display: {
|
|
247
|
+
name: 'Knowledge base (GBrain)',
|
|
248
|
+
description:
|
|
249
|
+
'Tier-③ knowledge base: a Postgres (PGlite) + pgvector engine (GBrain) '
|
|
250
|
+
+ 'the agent ingests source documents into and semantically queries. It '
|
|
251
|
+
+ 'runs as an on-demand sidecar brokered by the control-plane (the agent '
|
|
252
|
+
+ 'never dials it directly); the per-tenant brain is a Stores-v2 '
|
|
253
|
+
+ '`postgres` store, visible on the Storage page. GBrain is the '
|
|
254
|
+
+ 'SKILL/engine; the store TYPE is the real engine `postgres`. No user '
|
|
255
|
+
+ 'connection required.',
|
|
256
|
+
},
|
|
257
|
+
},
|
|
216
258
|
});
|