@databricks/appkit 0.66.1 → 0.68.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.
Files changed (85) hide show
  1. package/CLAUDE.md +2 -2
  2. package/dist/appkit/package.js +1 -1
  3. package/dist/core/agent/frontmatter.js +23 -0
  4. package/dist/core/agent/frontmatter.js.map +1 -0
  5. package/dist/core/agent/load-agents.d.ts.map +1 -1
  6. package/dist/core/agent/load-agents.js +36 -6
  7. package/dist/core/agent/load-agents.js.map +1 -1
  8. package/dist/core/agent/skills/index.js +7 -0
  9. package/dist/core/agent/skills/load-skills.js +78 -0
  10. package/dist/core/agent/skills/load-skills.js.map +1 -0
  11. package/dist/core/agent/skills/parse-skill.js +69 -0
  12. package/dist/core/agent/skills/parse-skill.js.map +1 -0
  13. package/dist/core/agent/skills/read-resource.js +31 -0
  14. package/dist/core/agent/skills/read-resource.js.map +1 -0
  15. package/dist/core/agent/skills/render.js +33 -0
  16. package/dist/core/agent/skills/render.js.map +1 -0
  17. package/dist/core/agent/skills/resolve-catalog.js +78 -0
  18. package/dist/core/agent/skills/resolve-catalog.js.map +1 -0
  19. package/dist/core/agent/skills/types.d.ts +50 -0
  20. package/dist/core/agent/skills/types.d.ts.map +1 -0
  21. package/dist/core/agent/types.d.ts +47 -0
  22. package/dist/core/agent/types.d.ts.map +1 -1
  23. package/dist/core/agent/types.js.map +1 -1
  24. package/dist/database/contract/index.js +1 -1
  25. package/dist/database/contract/wire.d.ts.map +1 -1
  26. package/dist/database/contract/wire.js +5 -1
  27. package/dist/database/contract/wire.js.map +1 -1
  28. package/dist/database/errors.js +39 -3
  29. package/dist/database/errors.js.map +1 -1
  30. package/dist/database/runtime/data-path.js.map +1 -1
  31. package/dist/database/runtime/engine/drizzle-data-path.js +1 -1
  32. package/dist/database/runtime/engine/drizzle-data-path.js.map +1 -1
  33. package/dist/database/runtime/engine/translate.js +9 -2
  34. package/dist/database/runtime/engine/translate.js.map +1 -1
  35. package/dist/database/schema-builder/define-schema.d.ts +5 -1
  36. package/dist/database/schema-builder/define-schema.d.ts.map +1 -1
  37. package/dist/database/schema-builder/define-schema.js +4 -0
  38. package/dist/database/schema-builder/define-schema.js.map +1 -1
  39. package/dist/database/schema-builder/types.d.ts +7 -2
  40. package/dist/database/schema-builder/types.d.ts.map +1 -1
  41. package/dist/database/schema-builder/types.js.map +1 -1
  42. package/dist/plugins/agents/agents.d.ts +50 -0
  43. package/dist/plugins/agents/agents.d.ts.map +1 -1
  44. package/dist/plugins/agents/agents.js +225 -13
  45. package/dist/plugins/agents/agents.js.map +1 -1
  46. package/dist/plugins/agents/manifest.js +40 -21
  47. package/dist/plugins/agents/schemas.js +2 -1
  48. package/dist/plugins/agents/schemas.js.map +1 -1
  49. package/dist/plugins/database/crud/codecs.js +78 -0
  50. package/dist/plugins/database/crud/codecs.js.map +1 -0
  51. package/dist/plugins/database/crud/contract.js +151 -0
  52. package/dist/plugins/database/crud/contract.js.map +1 -0
  53. package/dist/plugins/database/crud/exposure.js +40 -0
  54. package/dist/plugins/database/crud/exposure.js.map +1 -0
  55. package/dist/plugins/database/crud/query.js +244 -0
  56. package/dist/plugins/database/crud/query.js.map +1 -0
  57. package/dist/plugins/database/crud/routes.js +124 -0
  58. package/dist/plugins/database/crud/routes.js.map +1 -0
  59. package/dist/plugins/database/database.d.ts +6 -0
  60. package/dist/plugins/database/database.d.ts.map +1 -1
  61. package/dist/plugins/database/database.js +58 -4
  62. package/dist/plugins/database/database.js.map +1 -1
  63. package/dist/plugins/database/defaults.js +28 -1
  64. package/dist/plugins/database/defaults.js.map +1 -1
  65. package/dist/plugins/database/entity-client.js +1 -1
  66. package/dist/plugins/database/entity-types.d.ts +13 -4
  67. package/dist/plugins/database/entity-types.d.ts.map +1 -1
  68. package/dist/plugins/database/lifecycle.js +2 -1
  69. package/dist/plugins/database/lifecycle.js.map +1 -1
  70. package/dist/plugins/database/types.d.ts +32 -0
  71. package/dist/plugins/database/types.d.ts.map +1 -1
  72. package/dist/shared/src/schemas/manifest.d.ts +35 -35
  73. package/docs/api/appkit/Function.database.md +3 -3
  74. package/docs/api/appkit/Function.defineSchema.md +14 -6
  75. package/docs/api/appkit/Interface.AgentDefinition.md +11 -0
  76. package/docs/api/appkit/Interface.AgentsPluginConfig.md +35 -0
  77. package/docs/api/appkit/Interface.RegisteredAgent.md +11 -0
  78. package/docs/api/appkit/Interface.Schema.md +10 -2
  79. package/docs/api/appkit/TypeAlias.IDatabaseConfig.md +20 -0
  80. package/docs/api/appkit/TypeAlias.ResolvedToolEntry.md +46 -0
  81. package/docs/api/appkit.md +2 -2
  82. package/docs/plugins/agents.md +68 -1
  83. package/llms.txt +2 -2
  84. package/package.json +1 -1
  85. package/sbom.cdx.json +1 -1
@@ -1,17 +1,25 @@
1
1
  # Function: defineSchema()
2
2
 
3
3
  ```ts
4
- function defineSchema(builder: (context: SchemaBuilderContext) => Record<string, AppKitTable>, options?: DefineSchemaOptions): Schema;
4
+ function defineSchema<TTables>(builder: (context: SchemaBuilderContext) => TTables, options?: DefineSchemaOptions): Schema<Extract<keyof TTables, string>>;
5
5
 
6
6
  ```
7
7
 
8
+ Compile one declared schema. The returned type keeps the table names the builder returned, so `crudRoutes` and `hooks` can name only real tables.
9
+
10
+ ## Type Parameters[​](#type-parameters "Direct link to Type Parameters")
11
+
12
+ | Type Parameter |
13
+ | ----------------------------------------------------- |
14
+ | `TTables` *extends* `Record`<`string`, `AppKitTable`> |
15
+
8
16
  ## Parameters[​](#parameters "Direct link to Parameters")
9
17
 
10
- | Parameter | Type |
11
- | ---------- | ------------------------------------------------------------------------ |
12
- | `builder` | (`context`: `SchemaBuilderContext`) => `Record`<`string`, `AppKitTable`> |
13
- | `options?` | `DefineSchemaOptions` |
18
+ | Parameter | Type |
19
+ | ---------- | ------------------------------------------------ |
20
+ | `builder` | (`context`: `SchemaBuilderContext`) => `TTables` |
21
+ | `options?` | `DefineSchemaOptions` |
14
22
 
15
23
  ## Returns[​](#returns "Direct link to Returns")
16
24
 
17
- [`Schema`](./docs/api/appkit/Interface.Schema.md)
25
+ [`Schema`](./docs/api/appkit/Interface.Schema.md)<`Extract`\<keyof `TTables`, `string`>>
@@ -118,6 +118,17 @@ Setting `name` to a value that differs from the registry key is harmless but con
118
118
 
119
119
  ***
120
120
 
121
+ ### skills?[​](#skills "Direct link to skills?")
122
+
123
+ ```ts
124
+ optional skills: string[];
125
+
126
+ ```
127
+
128
+ Names of global skills (shared `skills/` pool or catalog volume) to make visible to this agent. Per-agent skills under `<id>/skills/` are always visible and need not be listed. Ignored when the plugin's `autoInheritSkills` makes every global skill visible.
129
+
130
+ ***
131
+
121
132
  ### tools?[​](#tools "Direct link to tools?")
122
133
 
123
134
  ```ts
@@ -60,6 +60,19 @@ Milliseconds to wait before auto-denying. Default: 60\_000.
60
60
 
61
61
  ***
62
62
 
63
+ ### autoInheritSkills?[​](#autoinheritskills "Direct link to autoInheritSkills?")
64
+
65
+ ```ts
66
+ optional autoInheritSkills:
67
+ | boolean
68
+ | AutoInheritToolsConfig;
69
+
70
+ ```
71
+
72
+ Whether every global skill (shared `skills/` pool or catalog volume) is visible to an agent without listing it in `skills:` frontmatter. Off by default so each agent's always-on skill catalog stays lean; accepts a boolean shorthand or a per-origin `{ file, code }` config, mirroring [autoInheritTools](#autoinherittools).
73
+
74
+ ***
75
+
63
76
  ### autoInheritTools?[​](#autoinherittools "Direct link to autoInheritTools?")
64
77
 
65
78
  ```ts
@@ -198,6 +211,28 @@ optional name: string;
198
211
 
199
212
  ***
200
213
 
214
+ ### skillCredentialMode?[​](#skillcredentialmode "Direct link to skillCredentialMode?")
215
+
216
+ ```ts
217
+ optional skillCredentialMode: "sp" | "obo";
218
+
219
+ ```
220
+
221
+ Identity used to read catalog (volume) skills. v1 supports `"sp"` (default — a shared, service-principal-readable curated pool). `"obo"` is the reserved switch point for per-user skill volumes and is not wired yet (falls back to `"sp"` with a warning).
222
+
223
+ ***
224
+
225
+ ### skillsVolume?[​](#skillsvolume "Direct link to skillsVolume?")
226
+
227
+ ```ts
228
+ optional skillsVolume: string;
229
+
230
+ ```
231
+
232
+ Unity Catalog Volume path for catalog-sourced skills (e.g. `/Volumes/<catalog>/<schema>/<volume>`). Falls back to the `DATABRICKS_VOLUME_AGENT_SKILLS` env var. Skills at `<volume>/<name>/SKILL.md` are discovered at boot and on `reload()` and read as the service principal.
233
+
234
+ ***
235
+
201
236
  ### telemetry?[​](#telemetry "Direct link to telemetry?")
202
237
 
203
238
  ```ts
@@ -78,6 +78,17 @@ name: string;
78
78
 
79
79
  ***
80
80
 
81
+ ### skills?[​](#skills "Direct link to skills?")
82
+
83
+ ```ts
84
+ optional skills: ResolvedSkillCatalog;
85
+
86
+ ```
87
+
88
+ Resolved per-agent skill catalog (visibility + collision rules applied). Present when any skill is visible to this agent; drives the always-on prompt catalog and `load_skill` dispatch.
89
+
90
+ ***
91
+
81
92
  ### toolIndex[​](#toolindex "Direct link to toolIndex")
82
93
 
83
94
  ```ts
@@ -1,4 +1,12 @@
1
- # Interface: Schema
1
+ # Interface: Schema\<TTableName>
2
+
3
+ One finalized schema. `TTableName` keeps the declared names in the type, so configuration that addresses a table by name is checked against the schema it was written for. Code that accepts any schema uses the default.
4
+
5
+ ## Type Parameters[​](#type-parameters "Direct link to Type Parameters")
6
+
7
+ | Type Parameter | Default type |
8
+ | ------------------------------- | ------------ |
9
+ | `TTableName` *extends* `string` | `string` |
2
10
 
3
11
  ## Properties[​](#properties "Direct link to Properties")
4
12
 
@@ -23,6 +31,6 @@ readonly $schemaName: string;
23
31
  ### $tables[​](#tables "Direct link to $tables")
24
32
 
25
33
  ```ts
26
- readonly $tables: Readonly<Record<string, AppKitTable>>;
34
+ readonly $tables: Readonly<Record<TTableName, AppKitTable>>;
27
35
 
28
36
  ```
@@ -2,6 +2,8 @@
2
2
 
3
3
  ```ts
4
4
  type IDatabaseConfig<TSchema> = {
5
+ crudRoutes?: CrudRoutesConfig<TSchema>;
6
+ hooks?: { readonly [TTable in SchemaTableName<TSchema>]?: { serialize?: ReadSerializer } };
5
7
  schema: TSchema;
6
8
  };
7
9
 
@@ -17,6 +19,24 @@ Configuration for one schema-bound DatabasePlugin instance.
17
19
 
18
20
  ## Properties[​](#properties "Direct link to Properties")
19
21
 
22
+ ### crudRoutes?[​](#crudroutes "Direct link to crudRoutes?")
23
+
24
+ ```ts
25
+ readonly optional crudRoutes: CrudRoutesConfig<TSchema>;
26
+
27
+ ```
28
+
29
+ ***
30
+
31
+ ### hooks?[​](#hooks "Direct link to hooks?")
32
+
33
+ ```ts
34
+ readonly optional hooks: { readonly [TTable in SchemaTableName<TSchema>]?: { serialize?: ReadSerializer } };
35
+
36
+ ```
37
+
38
+ ***
39
+
20
40
  ### schema[​](#schema "Direct link to schema")
21
41
 
22
42
  ```ts
@@ -27,6 +27,12 @@ type ResolvedToolEntry =
27
27
  def: AgentToolDefinition;
28
28
  source: "hosted-supervisor";
29
29
  spec: SupervisorTool;
30
+ }
31
+ | {
32
+ builtin: "load_skill" | "read_skill_file";
33
+ catalog: ResolvedSkillCatalog;
34
+ def: AgentToolDefinition;
35
+ source: "skill";
30
36
  };
31
37
 
32
38
  ```
@@ -194,3 +200,43 @@ Adapter-side hosted tool (executed by the model-host, not by the Node process).
194
200
  spec: SupervisorTool;
195
201
 
196
202
  ```
203
+
204
+ ```ts
205
+ {
206
+ builtin: "load_skill" | "read_skill_file";
207
+ catalog: ResolvedSkillCatalog;
208
+ def: AgentToolDefinition;
209
+ source: "skill";
210
+ }
211
+
212
+ ```
213
+
214
+ ### builtin[​](#builtin "Direct link to builtin")
215
+
216
+ ```ts
217
+ builtin: "load_skill" | "read_skill_file";
218
+
219
+ ```
220
+
221
+ ### catalog[​](#catalog "Direct link to catalog")
222
+
223
+ ```ts
224
+ catalog: ResolvedSkillCatalog;
225
+
226
+ ```
227
+
228
+ ### def[​](#def-5 "Direct link to def")
229
+
230
+ ```ts
231
+ def: AgentToolDefinition;
232
+
233
+ ```
234
+
235
+ ### source[​](#source-5 "Direct link to source")
236
+
237
+ ```ts
238
+ source: "skill";
239
+
240
+ ```
241
+
242
+ Built-in skill tools (`load_skill`, `read_skill_file`) injected into any agent that has a visible skill catalog. Executed in-process by the agents plugin against the agent's resolved catalog; read-only, so they bypass the approval gate.
@@ -74,7 +74,7 @@ Documentation merge entry for Typedoc — combines the stable `@databricks/appki
74
74
  | [ResourceRequirement](./docs/api/appkit/Interface.ResourceRequirement.md) | Declares a resource requirement for a plugin. Can be defined statically in a manifest or dynamically via getResourceRequirements(). |
75
75
  | [RunAgentInput](./docs/api/appkit/Interface.RunAgentInput.md) | - |
76
76
  | [RunAgentResult](./docs/api/appkit/Interface.RunAgentResult.md) | - |
77
- | [Schema](./docs/api/appkit/Interface.Schema.md) | - |
77
+ | [Schema](./docs/api/appkit/Interface.Schema.md) | One finalized schema. `TTableName` keeps the declared names in the type, so configuration that addresses a table by name is checked against the schema it was written for. Code that accepts any schema uses the default. |
78
78
  | [SearchRequest](./docs/api/appkit/Interface.SearchRequest.md) | - |
79
79
  | [SearchResponse](./docs/api/appkit/Interface.SearchResponse.md) | - |
80
80
  | [SearchResult](./docs/api/appkit/Interface.SearchResult.md) | - |
@@ -155,7 +155,7 @@ Documentation merge entry for Typedoc — combines the stable `@databricks/appki
155
155
  | [createWorkspaceClient](./docs/api/appkit/Function.createWorkspaceClient.md) | Construct an AppKit workspace client. |
156
156
  | [database](./docs/api/appkit/Function.database.md) | Create a typed database plugin registration for a finalized schema. |
157
157
  | [defineManifest](./docs/api/appkit/Function.defineManifest.md) | Validates a raw manifest (typically a `manifest.json` import) against the canonical Zod schema and returns it as a strict [PluginManifest](./docs/api/appkit/Interface.PluginManifest.md). |
158
- | [defineSchema](./docs/api/appkit/Function.defineSchema.md) | - |
158
+ | [defineSchema](./docs/api/appkit/Function.defineSchema.md) | Compile one declared schema. The returned type keeps the table names the builder returned, so `crudRoutes` and `hooks` can name only real tables. |
159
159
  | [defineTool](./docs/api/appkit/Function.defineTool.md) | Defines a single tool entry for a plugin's internal registry. |
160
160
  | [enumColumn](./docs/api/appkit/Function.enumColumn.md) | - |
161
161
  | [executeFromRegistry](./docs/api/appkit/Function.executeFromRegistry.md) | Validates tool-call arguments against the entry's schema and invokes its handler. On validation failure, returns an LLM-friendly error string (matching the behavior of `tool()`) rather than throwing, so the model can self-correct on its next turn. |
@@ -36,7 +36,7 @@ That alone gives you a live HTTP server with `POST /invocations` (and its alias
36
36
 
37
37
  ## Level 1: drop a markdown agent package[​](#level-1-drop-a-markdown-agent-package "Direct link to Level 1: drop a markdown agent package")
38
38
 
39
- Each agent lives in its own folder under `server/agents/` with entry file `agent.md`. A folder is an agent only if it holds an entry file (`agent.md` or `agent.ts`); a folder without one is skipped, so per-agent asset folders like `skills/` sit beside the entry.
39
+ Each agent lives in its own folder under `server/agents/` with entry file `agent.md`. A folder is an agent only if it holds an entry file (`agent.md` or `agent.ts`); a folder without one is skipped, so per-agent asset folders sit beside the entry — notably a `skills/` folder holding [Skills](#skills) (on-demand instruction packs the agent loads by name). A shared `server/agents/skills/` folder holds skills available to any agent.
40
40
 
41
41
  ```text
42
42
  my-app/
@@ -211,6 +211,69 @@ await createApp({
211
211
 
212
212
  Put `supervisor`, `researcher`, and `writer` in their own `server/agents/<id>/agent.ts` folders (default export each) — a markdown parent can also delegate to a code child in a sibling folder via `agents: [helper]` frontmatter. Each key in `agents: {...}` on an `AgentDefinition` becomes an `agent-<key>` tool on the parent. When invoked, the agents plugin runs the child's adapter with a fresh message list (no shared thread state) and returns the aggregated text. Cycles in a code agent's inline `agents: {}` graph are rejected at load (`createAgent`); markdown `agents:` delegation rejects self-references at load and bounds deeper cycles at runtime via `limits.maxSubAgentDepth`.
213
213
 
214
+ ## Skills[​](#skills "Direct link to Skills")
215
+
216
+ Skills are on-demand instruction packs — the same `SKILL.md` format Claude Code and Cursor use. Only each skill's `name` + `description` sit in the system prompt (always-on, cheap); the full body loads on demand when the agent (or the user) invokes it. This works on any Databricks-served model — AppKit implements the disclosure itself, so it doesn't depend on a provider-native skills feature.
217
+
218
+ A skill is a directory with a `SKILL.md` plus any bundled reference files:
219
+
220
+ ```text
221
+ config/agents/
222
+ skills/ # shared pool — any agent can opt in
223
+ pdf-forms/
224
+ SKILL.md
225
+ reference.md
226
+ planner/
227
+ agent.md
228
+ skills/ # private to the `planner` agent
229
+ house-style/
230
+ SKILL.md
231
+
232
+ ```
233
+
234
+ ```md
235
+ ---
236
+ name: pdf-forms
237
+ description: Fill and validate PDF form fields from a data record.
238
+ ---
239
+
240
+ To fill a PDF form:
241
+
242
+ 1. Read `reference.md` for the field-name conventions.
243
+ 2. ...
244
+
245
+ ```
246
+
247
+ `name` and `description` are required; `license`, `allowed-tools`, and `metadata` are accepted for compatibility with skills authored elsewhere. Unknown keys warn and are ignored.
248
+
249
+ ### Visibility[​](#visibility "Direct link to Visibility")
250
+
251
+ * **Per-agent skills** (`config/agents/<id>/skills/`) are always visible to that agent.
252
+ * **Global skills** (`config/agents/skills/`, and catalog-volume skills) are **opt-in**: list them in the agent's frontmatter, `skills: [pdf-forms]`. Set `autoInheritSkills: true` (or `{ file, code }`) on the plugin to make every global skill visible without listing — off by default so each agent's always-on catalog stays lean.
253
+
254
+ ### How the agent uses a skill[​](#how-the-agent-uses-a-skill "Direct link to How the agent uses a skill")
255
+
256
+ Two read-only built-in tools are injected into any agent that has a visible catalog:
257
+
258
+ * `load_skill(skill)` — returns the skill's full instructions plus a manifest of its bundled files.
259
+ * `read_skill_file(skill, path)` — returns the contents of one of those bundled files.
260
+
261
+ The model calls `load_skill` on its own when a task matches a skill's description. A **user** can force a specific skill for a turn with the `/skill-name` prefix in chat (or the `send(message, { skill })` option on `useAgentChat`); the skill's instructions are injected into that turn deterministically, and `load_skill` remains available for auto-selection. The client reads the per-agent catalog from the plugin's `clientConfig()` payload to power a picker.
262
+
263
+ ### Catalog skills (Unity Catalog Volume)[​](#catalog-skills-unity-catalog-volume "Direct link to Catalog skills (Unity Catalog Volume)")
264
+
265
+ Point `skillsVolume` (or the `DATABRICKS_VOLUME_AGENT_SKILLS` env var) at a UC Volume laid out the same way — `<volume>/<name>/SKILL.md`. Catalog skills are discovered at boot and on `reload()`, merged into the shared global pool, and read as the **service principal** (`skillCredentialMode` defaults to `"sp"`). They're intended as a shared, curated pool; per-user (OBO) skill volumes are not wired yet. Declaring the optional `volume` resource in the manifest lets the scaffolder grant the SP read access.
266
+
267
+ ### Name collisions[​](#name-collisions "Direct link to Name collisions")
268
+
269
+ Skill names are addressed bare. If two sources provide the same name, each becomes a qualified `<scope>:name` (`agent:`, `bundle:`, `volume:`) and the bare name is rejected as ambiguous with the alternatives listed. Two skills with the same name from the *same* source is a boot-time error.
270
+
271
+ ### v1 caveats[​](#v1-caveats "Direct link to v1 caveats")
272
+
273
+ * **Scripts are not executed.** A skill may reference `scripts/foo.py`; v1 loads prose and reference docs only.
274
+ * **`allowed-tools` is advisory.** It's surfaced as a hint in the loaded skill, not enforced — loading a skill does not restrict the agent's callable tools. It is not a sandbox.
275
+ * **Skill bodies are not per-user access-controlled** (they read as the SP). Keep user-sensitive content out of skill bodies.
276
+
214
277
  ## Level 5: standalone (no `createApp`)[​](#level-5-standalone-no-createapp "Direct link to level-5-standalone-no-createapp")
215
278
 
216
279
  ```ts
@@ -427,6 +490,9 @@ agents({
427
490
  defaultModel?: AgentAdapter | Promise<AgentAdapter> | string,
428
491
  tools?: Record<string, AgentTool>,
429
492
  autoInheritTools?: boolean | { file?: boolean, code?: boolean },
493
+ autoInheritSkills?: boolean | { file?: boolean, code?: boolean }, // default off
494
+ skillsVolume?: string, // UC Volume for catalog skills; falls back to DATABRICKS_VOLUME_AGENT_SKILLS
495
+ skillCredentialMode?: "sp" | "obo", // default "sp" (see Skills)
430
496
  threadStore?: ThreadStore, // default in-memory
431
497
  baseSystemPrompt?: false | string | (ctx: PromptContext) => string,
432
498
  mcp?: {
@@ -628,6 +694,7 @@ appkit.agents.getThreads(userId); // list user's threads
628
694
  | `endpoint` | string | Model serving endpoint name. Shortcut for `model`. |
629
695
  | `model` | string | Same as `endpoint`; either works. |
630
696
  | `tools` | array | Unified tool list. Entries are `plugin:<name>` / `plugin:<name>: [t1, t2]` / `plugin:<name>: { only, except, rename, prefix }` for plugin tools, or a bare `<key>` resolved against `agents({ tools: {...} })` for ambient tools. See "Level 2: scope tools in frontmatter" above for examples. |
697
+ | `skills` | array | Names of global skills (shared `skills/` pool or catalog volume) to make visible to this agent. Per-agent skills under `<id>/skills/` are always visible. See [Skills](#skills). |
631
698
  | `default` | boolean | First agent id (sorted order) with `default: true` becomes the default agent. |
632
699
  | `agents` | array | Sub-agent ids (sibling folders) to delegate to; each becomes an `agent-<id>` tool. Resolves against other markdown and code agents. |
633
700
  | `maxSteps` | number | Adapter max-step hint. |
package/llms.txt CHANGED
@@ -93,7 +93,7 @@ npx @databricks/appkit docs <query>
93
93
  - [Function: createWorkspaceClient()](./docs/api/appkit/Function.createWorkspaceClient.md): Construct an AppKit workspace client.
94
94
  - [Function: database()](./docs/api/appkit/Function.database.md): Create a typed database plugin registration for a finalized schema.
95
95
  - [Function: defineManifest()](./docs/api/appkit/Function.defineManifest.md): Validates a raw manifest (typically a manifest.json import) against the
96
- - [Function: defineSchema()](./docs/api/appkit/Function.defineSchema.md): Parameters
96
+ - [Function: defineSchema()](./docs/api/appkit/Function.defineSchema.md): Compile one declared schema. The returned type keeps the table names the
97
97
  - [Function: defineTool()](./docs/api/appkit/Function.defineTool.md): Defines a single tool entry for a plugin's internal registry.
98
98
  - [Function: enumColumn()](./docs/api/appkit/Function.enumColumn.md): Parameters
99
99
  - [Function: executeFromRegistry()](./docs/api/appkit/Function.executeFromRegistry.md): Validates tool-call arguments against the entry's schema and invokes its
@@ -171,7 +171,7 @@ npx @databricks/appkit docs <query>
171
171
  - [Interface: ResourceRequirement](./docs/api/appkit/Interface.ResourceRequirement.md): Declares a resource requirement for a plugin.
172
172
  - [Interface: RunAgentInput](./docs/api/appkit/Interface.RunAgentInput.md): Properties
173
173
  - [Interface: RunAgentResult](./docs/api/appkit/Interface.RunAgentResult.md): Properties
174
- - [Interface: Schema](./docs/api/appkit/Interface.Schema.md): Properties
174
+ - [Interface: Schema<TTableName>](./docs/api/appkit/Interface.Schema.md): One finalized schema. TTableName keeps the declared names in the type, so
175
175
  - [Interface: SearchRequest](./docs/api/appkit/Interface.SearchRequest.md): Properties
176
176
  - [Interface: SearchResponse<T>](./docs/api/appkit/Interface.SearchResponse.md): Type Parameters
177
177
  - [Interface: SearchResult<T>](./docs/api/appkit/Interface.SearchResult.md): Type Parameters
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@databricks/appkit",
3
3
  "type": "module",
4
- "version": "0.66.1",
4
+ "version": "0.68.0",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "bin": {