@dbx-tools/appkit 0.9.214 → 0.11.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/README.md +16 -442
- package/index.ts +10 -5
- package/lib/index.d.ts +10 -5
- package/lib/index.js +9 -5
- package/lib/src/appkit.d.ts +5 -6
- package/lib/src/appkit.js +9 -7
- package/lib/src/cache-storage.js +3 -3
- package/lib/src/debug/plugin.d.ts +2 -12
- package/lib/src/debug/plugin.js +4 -4
- package/lib/src/event-stream.d.ts +33 -0
- package/lib/src/event-stream.js +35 -0
- package/lib/src/http.d.ts +10 -0
- package/lib/src/http.js +20 -0
- package/lib/src/identity.d.ts +0 -12
- package/lib/src/identity.js +3 -70
- package/lib/src/interceptor.d.ts +2 -12
- package/lib/src/interceptor.js +4 -4
- package/lib/src/lakebase-resolver.js +18 -215
- package/lib/src/openapi-tool.js +3 -3
- package/lib/src/provision.js +3 -3
- package/lib/src/telemetry.d.ts +1 -1
- package/lib/src/telemetry.js +2 -2
- package/lib/src/workspace-client.d.ts +40 -0
- package/lib/src/workspace-client.js +290 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +15 -15
- package/src/appkit.ts +12 -10
- package/src/cache-storage.ts +2 -2
- package/src/debug/plugin.ts +3 -2
- package/src/event-stream.ts +60 -0
- package/src/http.ts +20 -0
- package/src/identity.ts +1 -72
- package/src/interceptor.ts +9 -3
- package/src/lakebase-resolver.ts +34 -285
- package/src/openapi-tool.ts +2 -2
- package/src/provision.ts +2 -3
- package/src/telemetry.ts +1 -1
- package/src/workspace-client.ts +415 -0
- package/lib/src/databricks.d.ts +0 -63
- package/lib/src/databricks.js +0 -107
- package/src/databricks.ts +0 -151
package/README.md
CHANGED
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
# @dbx-tools/appkit
|
|
2
2
|
|
|
3
|
-
Configure
|
|
4
|
-
|
|
3
|
+
Configure Databricks AppKit before plugin startup and use typed request context,
|
|
4
|
+
plugin lookup, Lakebase setup, and SDK cancellation from backend code.
|
|
5
5
|
|
|
6
6
|
## Quick start
|
|
7
7
|
|
|
8
|
-
Use the wrapper when Lakebase settings must be resolved before plugin setup:
|
|
9
|
-
|
|
10
8
|
```ts
|
|
11
9
|
import { lakebase, server } from "@databricks/appkit";
|
|
12
10
|
import { appkit } from "@dbx-tools/appkit";
|
|
@@ -16,446 +14,22 @@ await appkit.createApp({
|
|
|
16
14
|
});
|
|
17
15
|
```
|
|
18
16
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
- Auto-configuration before AppKit setup, especially for Lakebase/Postgres env
|
|
22
|
-
values that AppKit plugins read during initialization.
|
|
23
|
-
- Runtime-safe context access for code that may run inside an AppKit request,
|
|
24
|
-
from a CLI, or from a background script.
|
|
25
|
-
- Typed plugin lookup helpers for AppKit plugins that depend on exports from
|
|
26
|
-
sibling plugins.
|
|
27
|
-
- Lakebase resolution through the shared `@dbx-tools/core` configuration path,
|
|
28
|
-
including local env, bundle, and `app.yaml` sources.
|
|
29
|
-
- SDK cancellation bridging from web `AbortSignal` values into Databricks SDK
|
|
30
|
-
`Context` values.
|
|
31
|
-
- Lakebase schema and table provisioning for deployments where the app identity
|
|
32
|
-
must be granted access before plugin initialization.
|
|
33
|
-
- AppKit-global filesystem caching with user-isolated bounded L1 state,
|
|
34
|
-
cross-user invalidation, and stable framework filesystem sources.
|
|
35
|
-
- An interceptor context on `createApp` (`interceptor?: Interceptor | Interceptor[]`)
|
|
36
|
-
that hands add-ons the computed env, AppKit lifecycle hooks (`onLifecycle`, using
|
|
37
|
-
AppKit's own `setup:complete` / `server:ready` / `shutdown` vocabulary).
|
|
38
|
-
`@dbx-tools/tunnel` consumes this surface for auxiliary startup and shutdown.
|
|
39
|
-
|
|
40
|
-
## Use with native AppKit
|
|
41
|
-
|
|
42
|
-
Use native AppKit directly when your app can read its required env vars before
|
|
43
|
-
`createApp()` and does not need extra setup around plugin exports or config
|
|
44
|
-
sources.
|
|
45
|
-
|
|
46
|
-
Use this package when the friction is around bootstrapping and reuse:
|
|
47
|
-
|
|
48
|
-
- AppKit plugins read Lakebase/Postgres env during initialization. This package
|
|
49
|
-
resolves and applies those values before setup.
|
|
50
|
-
- AppKit exposes request context inside AppKit handlers. These helpers make code
|
|
51
|
-
safe to call from scripts, tests, and background jobs too.
|
|
52
|
-
- AppKit plugin instances are generic. The lookup helpers keep sibling-plugin
|
|
53
|
-
access typed and return clear errors.
|
|
54
|
-
- Local CLI flags, bundle validation output, and `app.yaml` values use the same
|
|
55
|
-
`@dbx-tools/core` configuration path.
|
|
56
|
-
- AppKit's `asUser(req)` throws outside `NODE_ENV=development` when a request
|
|
57
|
-
carries no on-behalf-of-user (OBO) token. `identity` makes falling back to the
|
|
58
|
-
service principal a configured, per-request decision instead of a `NODE_ENV`
|
|
59
|
-
side effect.
|
|
60
|
-
|
|
61
|
-
Choose the Lakebase path by caller:
|
|
62
|
-
|
|
63
|
-
- Use native AppKit `lakebase()` when a Databricks App already has complete
|
|
64
|
-
runtime connection configuration.
|
|
65
|
-
- Use this package's `appkit.createApp()` when Lakebase environment values or
|
|
66
|
-
grants must be resolved before AppKit plugins initialize.
|
|
67
|
-
- Use [@dbx-tools/lakebase](../lakebase) for profile-aware discovery and
|
|
68
|
-
short-lived credentials in standalone Node or Bun code.
|
|
69
|
-
- Use [dbx lakebase-proxy](../../cli/dbx-tools) when an external PostgreSQL
|
|
70
|
-
client needs a loopback connection.
|
|
71
|
-
|
|
72
|
-
## Auto-configuration behavior
|
|
73
|
-
|
|
74
|
-
`appkit.createApp` is a drop-in wrapper around AppKit `createApp` with the
|
|
75
|
-
same config and the same typed plugin-export map. It runs
|
|
76
|
-
`appkit.autoConfigure()` first so enabled capabilities can populate
|
|
77
|
-
environment variables before plugin setup runs.
|
|
78
|
-
|
|
79
|
-
```ts
|
|
80
|
-
import { lakebase, server } from "@databricks/appkit";
|
|
81
|
-
import { appkit } from "@dbx-tools/appkit";
|
|
82
|
-
|
|
83
|
-
await appkit.createApp({
|
|
84
|
-
plugins: [server(), lakebase()],
|
|
85
|
-
});
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
When native `lakebase()` or beta `database()` is present, auto-config resolves
|
|
89
|
-
Lakebase Postgres connection settings and fills missing `PG*` /
|
|
90
|
-
`LAKEBASE_*` variables. That avoids a startup race where a plugin reads env
|
|
91
|
-
before another async setup step can discover it. A database-only app resolves
|
|
92
|
-
env without implicitly broadening Lakebase grants. AppKit's database plugin
|
|
93
|
-
owns its own pool.
|
|
94
|
-
|
|
95
|
-
Auto-configuration is conservative: existing env vars win unless a caller passes
|
|
96
|
-
explicit options, and local-only discovery is skipped inside a Databricks App
|
|
97
|
-
environment. This makes the same entrypoint usable in local development,
|
|
98
|
-
Databricks Asset Bundle validation, and deployed Apps.
|
|
99
|
-
|
|
100
|
-
During local startup, a missing `DATABRICKS_CONFIG_PROFILE` is populated from
|
|
101
|
-
`@dbx-tools/auth`'s default-profile resolution before bundle validation runs.
|
|
102
|
-
Workspace API calls and Lakebase pool credentials use the same auth lifecycle,
|
|
103
|
-
so an expired CLI refresh token can invoke `databricks auth login` instead of
|
|
104
|
-
falling through to the SDK's unrelated default-auth chain. Deployed Apps retain
|
|
105
|
-
native AppKit authentication and do not receive a profile.
|
|
106
|
-
|
|
107
|
-
Boot-time resolution runs as the service principal before any plugin exists, so
|
|
108
|
-
it sits outside AppKit's interceptor chain. It carries its own timeout, and
|
|
109
|
-
`appkit.autoConfigure()` accepts an `AbortSignal` when a caller wants to
|
|
110
|
-
cancel it earlier.
|
|
111
|
-
|
|
112
|
-
Use the lower-level functions when you need to inspect or customize the result:
|
|
113
|
-
|
|
114
|
-
```ts
|
|
115
|
-
import { lakebaseResolver } from "@dbx-tools/appkit";
|
|
116
|
-
|
|
117
|
-
const resolved = await lakebaseResolver.resolveLakebaseConnection({
|
|
118
|
-
endpoint: process.env.LAKEBASE_ENDPOINT,
|
|
119
|
-
autoCreate: false,
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
lakebaseResolver.applyLakebaseToEnv(resolved);
|
|
123
|
-
```
|
|
124
|
-
|
|
125
|
-
`applyLakebaseEnv()` does both steps and applies the complete set a Postgres pool
|
|
126
|
-
needs, including `PGUSER`. Auto-configuration calls the same function, so a caller
|
|
127
|
-
outside `createApp` gets the same env rather than a hand-rolled subset:
|
|
128
|
-
|
|
129
|
-
```ts
|
|
130
|
-
const { resolved, user } = await lakebaseResolver.applyLakebaseEnv({ autoCreate: false });
|
|
131
|
-
```
|
|
132
|
-
|
|
133
|
-
Reach for it when something other than the `lakebase()` plugin needs a working
|
|
134
|
-
pool. AppKit's persistent cache is the common case: it builds its own pool from
|
|
135
|
-
env, and `createLakebasePool()` throws unless `LAKEBASE_ENDPOINT`, `PGHOST`,
|
|
136
|
-
`PGDATABASE`, and a username are all present. A Databricks App `postgres`
|
|
137
|
-
resource binding supplies only the first. If one is missing, the cache degrades silently
|
|
138
|
-
to in-memory. `@dbx-tools/tunnel`'s OTP gate calls this for exactly that
|
|
139
|
-
reason.
|
|
140
|
-
|
|
141
|
-
## Configuration
|
|
142
|
-
|
|
143
|
-
`appkit.createApp()` accepts everything AppKit's `createApp` does, plus:
|
|
144
|
-
|
|
145
|
-
| Option | Type | Default | Description |
|
|
146
|
-
| -------------------------- | ------------------------------- | ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
147
|
-
| `autoConfigure` | `"provision" \| "env" \| false` | `"provision"` | What to run before AppKit boots. `"provision"` resolves the Lakebase connection into `process.env` and grants the built-in AppKit and Mastra schemas. `"env"` resolves the connection only. `false` skips auto-configuration. Omit it to gate resolution on native `lakebase` or `database`. Implicit database-only resolution does not grant schemas. |
|
|
148
|
-
| `lakebaseProvisionTargets` | `readonly string[]` | `[]` | Additional existing Lakebase schemas or `schema.table` targets. These are additive to the built-in targets and the CSV `DBX_TOOLS_APPKIT_LAKEBASE_PROVISION_TARGETS` setting. |
|
|
149
|
-
| `debug` | `"auto" \| boolean` | `"auto"` | Registers the browser debug-capture plugin. Auto mode enables it only when `NODE_ENV=development`; `true` and `false` force the choice. |
|
|
150
|
-
| `interceptor` | `Interceptor \| Interceptor[]` | none | One or many callbacks handed an `InterceptorContext` after auto-config computes the env and before AppKit boots. The context carries the resolved env and AppKit lifecycle registration through `onLifecycle`. |
|
|
151
|
-
|
|
152
|
-
Set `autoConfigure` explicitly on an app that registers no `lakebase()` plugin but
|
|
153
|
-
still wants Lakebase-backed cache persistence. The injected AppKit storage is
|
|
154
|
-
memory-first: warm hits avoid persistent reads and `last_accessed` writes, while
|
|
155
|
-
mutations are coalesced and written behind without blocking the request. When a
|
|
156
|
-
Lakebase pool is available it is the persistent level. Otherwise the cache uses
|
|
157
|
-
the portable project-scoped disk level from `@dbx-tools/cache`. Use `"env"`
|
|
158
|
-
inside a deployed app because the app service principal cannot grant access to
|
|
159
|
-
the cache schema anyway.
|
|
160
|
-
|
|
161
|
-
`createApp()` installs this storage by default when AppKit caching is enabled and
|
|
162
|
-
the caller did not provide `cache.storage`. A caller-provided storage is preserved.
|
|
163
|
-
Native AppKit composition can create the same adapter directly:
|
|
164
|
-
|
|
165
|
-
```ts
|
|
166
|
-
import { cacheStorage } from "@dbx-tools/appkit";
|
|
167
|
-
|
|
168
|
-
const storage = await cacheStorage.createAppKitCacheStorage();
|
|
169
|
-
```
|
|
170
|
-
|
|
171
|
-
AppKit closes injected storage during shutdown. Native composition should call
|
|
172
|
-
`close()` when it owns the storage directly. That drains tracked write-behind
|
|
173
|
-
work before disconnecting the persistent levels.
|
|
174
|
-
|
|
175
|
-
## Browser debug capture
|
|
176
|
-
|
|
177
|
-
Development `createApp()` calls automatically register a hidden browser capture
|
|
178
|
-
route. `@dbx-tools/ui/react` exposes `BrowserDebugCaptureButton`, which records
|
|
179
|
-
bounded browser, viewport, focus, input, pointer, touch, scroll, and resize
|
|
180
|
-
diagnostics without recording input values or printable key content. Captures
|
|
181
|
-
are JSONL files under `.tmp/debug-captures` in development.
|
|
182
|
-
|
|
183
|
-
Register the plugin explicitly when native AppKit composition or a custom
|
|
184
|
-
capture directory is required:
|
|
185
|
-
|
|
186
|
-
```ts
|
|
187
|
-
import { debugCapture } from "@dbx-tools/appkit/debug";
|
|
188
|
-
|
|
189
|
-
debugCapture({ directory: ".tmp/browser-captures" });
|
|
190
|
-
```
|
|
191
|
-
|
|
192
|
-
## Filesystem cache plugin
|
|
193
|
-
|
|
194
|
-
Register `filesCache()` when provider-backed filesystems should share one
|
|
195
|
-
AppKit-lifecycle cache:
|
|
196
|
-
|
|
197
|
-
```ts
|
|
198
|
-
import { filesCache } from "@dbx-tools/appkit/files-cache";
|
|
199
|
-
import { server } from "@databricks/appkit";
|
|
200
|
-
import { appkit } from "@dbx-tools/appkit";
|
|
201
|
-
|
|
202
|
-
await appkit.createApp({
|
|
203
|
-
plugins: [server(), filesCache()],
|
|
204
|
-
});
|
|
205
|
-
```
|
|
206
|
-
|
|
207
|
-
The plugin exposes `forScope({ host, workspaceId?, userKey, ttlMs? })`, which
|
|
208
|
-
returns the `FileSystemCache` consumed by `@dbx-tools/shared-fs` `fs.cache()`.
|
|
209
|
-
Values are isolated by host, optional workspace id, and attributed user. A
|
|
210
|
-
batched invalidation clears matching keys across active user scopes without
|
|
211
|
-
sharing authorization-sensitive values.
|
|
212
|
-
|
|
213
|
-
`forFileSystem(scope, { paths, key? }, load)` retains one framework filesystem
|
|
214
|
-
source for the same user and mounted paths. `key` separates framework
|
|
215
|
-
instances that use different policies over the same paths. This gives frameworks
|
|
216
|
-
such as Mastra a stable source identity across page refreshes and turns without
|
|
217
|
-
introducing a second parsed catalogue cache.
|
|
218
|
-
|
|
219
|
-
Values and retained filesystem sources use bounded process-local Cacheable stores.
|
|
220
|
-
Nothing is written to Lakebase or another persistent level. App restarts and
|
|
221
|
-
replica changes begin with a cold filesystem cache.
|
|
222
|
-
|
|
223
|
-
This cache is intentionally separate from the application cache adapter.
|
|
224
|
-
`FilesCachePlugin` remains the single app-lifetime owner for local-only filesystem
|
|
225
|
-
values rather than creating one cache per workspace or persisting
|
|
226
|
-
authorization-sensitive filesystem state.
|
|
227
|
-
|
|
228
|
-
`lakebaseResolver.resolveLakebaseConnection()` accepts:
|
|
229
|
-
|
|
230
|
-
| Option | Type | Default | Description |
|
|
231
|
-
| ------------ | ------------------------------------ | ---------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
|
|
232
|
-
| `endpoint` | `string` | `LAKEBASE_ENDPOINT` | Any address `pgaddress.parseAddress()` understands: resource path, Postgres URI, hostname, or bare project id. |
|
|
233
|
-
| `project` | `string` | discovered | Lakebase project id. Resolved from the workspace when unset. |
|
|
234
|
-
| `branch` | `string` | project default | Branch id within the project. |
|
|
235
|
-
| `database` | `string` | `PGDATABASE`, else `databricks_postgres` | Postgres database name. |
|
|
236
|
-
| `host` | `string` | `PGHOST`, else the endpoint's host | Postgres hostname. |
|
|
237
|
-
| `port` | `number` | `PGPORT`, else `5432` | Postgres port. |
|
|
238
|
-
| `sslMode` | `"require" \| "disable" \| "prefer"` | `PGSSLMODE`, else `require` | Postgres TLS mode. |
|
|
239
|
-
| `autoCreate` | `string \| false` | slug of the package name | Project id to create when the workspace has none. `false` fails instead of creating. |
|
|
240
|
-
|
|
241
|
-
Environment variables read during resolution:
|
|
242
|
-
|
|
243
|
-
| Variable | Description |
|
|
244
|
-
| ------------------- | ------------------------------------------------------------------------------------------------ |
|
|
245
|
-
| `LAKEBASE_ENDPOINT` | Endpoint resource path, Postgres URI, hostname, or project id. |
|
|
246
|
-
| `PGHOST` | Postgres hostname. Skips the endpoint lookup when set with `PGDATABASE` and `LAKEBASE_ENDPOINT`. |
|
|
247
|
-
| `PGDATABASE` | Postgres database name. |
|
|
248
|
-
| `PGPORT` | Postgres port. A value outside 1-65535 fails with a `ValidationError`. |
|
|
249
|
-
| `PGSSLMODE` | `require`, `disable`, or `prefer`. Any other value fails with a `ValidationError`. |
|
|
250
|
-
| `PGUSER` | Connecting role. Filled from the workspace identity when unset. |
|
|
251
|
-
|
|
252
|
-
Resolved values are written back to `process.env` by
|
|
253
|
-
`lakebaseResolver.applyLakebaseToEnv()`, which never overwrites a variable that
|
|
254
|
-
is already set. That function covers everything except `PGUSER`, which needs an
|
|
255
|
-
await. `lakebaseResolver.applyLakebaseEnv()` resolves and applies the full set.
|
|
256
|
-
|
|
257
|
-
## Resolve local and bundle config
|
|
258
|
-
|
|
259
|
-
Configuration is owned by `@dbx-tools/core`, not re-exported by this package.
|
|
260
|
-
Its default precedence is constant config, process env, `.env`, bundle
|
|
261
|
-
`config.env`, then `app.yaml` / `app.yml`.
|
|
262
|
-
|
|
263
|
-
```ts
|
|
264
|
-
import { configUtils } from "@dbx-tools/core";
|
|
265
|
-
|
|
266
|
-
const warehouseId = configUtils.resolveValue("DATABRICKS_WAREHOUSE_ID", {
|
|
267
|
-
data: { DATABRICKS_WAREHOUSE_ID: flags.warehouse },
|
|
268
|
-
});
|
|
269
|
-
```
|
|
270
|
-
|
|
271
|
-
Use this in CLIs and setup scripts that should behave the same locally and in a
|
|
272
|
-
Databricks App deployment. `configUtils.bundleFile()` exposes validated bundle
|
|
273
|
-
output, while `configUtils.appFile()` exposes parsed App YAML. Both cache successful,
|
|
274
|
-
missing, and invalid results for the process lifetime.
|
|
275
|
-
|
|
276
|
-
## Parse Lakebase addresses
|
|
277
|
-
|
|
278
|
-
`pgaddress.parseAddress()` accepts resource paths, Postgres URLs, bare
|
|
279
|
-
Lakebase hosts, and partial inputs. It gives the resolver a common shape without
|
|
280
|
-
requiring users to remember one canonical format.
|
|
281
|
-
|
|
282
|
-
```ts
|
|
283
|
-
import { pgaddress } from "@dbx-tools/appkit";
|
|
284
|
-
|
|
285
|
-
pgaddress.parseAddress(
|
|
286
|
-
"postgresql://user@ep-foo.database.azuredatabricks.net/databricks_postgres?sslmode=require",
|
|
287
|
-
);
|
|
288
|
-
```
|
|
289
|
-
|
|
290
|
-
`pgaddress.parseResourcePath()` is useful when you specifically expect a
|
|
291
|
-
`projects/<id>/branches/<id>/endpoints/<id>` value.
|
|
292
|
-
|
|
293
|
-
## Use AppKit execution context safely
|
|
294
|
-
|
|
295
|
-
`appkit.tryGetExecutionContext()` returns the active AppKit request context when
|
|
296
|
-
code is running under AppKit, and `undefined` elsewhere. That lets libraries
|
|
297
|
-
preserve OBO auth in apps while still working from scripts.
|
|
298
|
-
|
|
299
|
-
```ts
|
|
300
|
-
import { appkit } from "@dbx-tools/appkit";
|
|
301
|
-
import { createWorkspaceClient } from "@databricks/appkit";
|
|
302
|
-
|
|
303
|
-
const client = appkit.tryGetExecutionContext()?.client ?? createWorkspaceClient();
|
|
304
|
-
```
|
|
305
|
-
|
|
306
|
-
`appkit.ensureInitialized()` lazily initializes AppKit runtime state before
|
|
307
|
-
context lookup in code paths that may run early.
|
|
308
|
-
|
|
309
|
-
## Adapt Databricks SDK cancellation
|
|
310
|
-
|
|
311
|
-
Databricks SDK calls accept a `Context`. Many app and web APIs use
|
|
312
|
-
`AbortSignal`. `databricks.toContext()` bridges the two.
|
|
313
|
-
|
|
314
|
-
```ts
|
|
315
|
-
import { databricks } from "@dbx-tools/appkit";
|
|
316
|
-
|
|
317
|
-
await client.apiClient.request(
|
|
318
|
-
{
|
|
319
|
-
path: "/api/2.0/serving-endpoints",
|
|
320
|
-
method: "GET",
|
|
321
|
-
headers: new Headers(),
|
|
322
|
-
raw: false,
|
|
323
|
-
},
|
|
324
|
-
databricks.toContext(request.signal),
|
|
325
|
-
);
|
|
326
|
-
```
|
|
327
|
-
|
|
328
|
-
## Look up sibling plugins
|
|
329
|
-
|
|
330
|
-
AppKit's plugin map is intentionally generic. `pluginRegistry.data()`,
|
|
331
|
-
`pluginRegistry.instance()`, and `pluginRegistry.require()` keep lookups typed and produce better
|
|
332
|
-
errors when a required plugin is missing.
|
|
333
|
-
|
|
334
|
-
```ts
|
|
335
|
-
import { lakebase } from "@databricks/appkit";
|
|
336
|
-
import { pluginRegistry } from "@dbx-tools/appkit";
|
|
337
|
-
|
|
338
|
-
const lake = pluginRegistry.instance(this.context, lakebase);
|
|
339
|
-
const pool = lake?.exports().pool;
|
|
340
|
-
|
|
341
|
-
const required = pluginRegistry.require(this.context, lakebase, "my-plugin").exports();
|
|
342
|
-
```
|
|
343
|
-
|
|
344
|
-
Use this in AppKit plugins that depend on sibling plugin exports but should not
|
|
345
|
-
hard-code registered names or casts at every call site. A missing required
|
|
346
|
-
plugin throws AppKit's `ConfigurationError`, naming both the caller and the
|
|
347
|
-
plugin to register.
|
|
348
|
-
|
|
349
|
-
## Provision Lakebase access
|
|
350
|
-
|
|
351
|
-
`createApp({ autoConfigure: "provision" })` includes the existing `appkit` and
|
|
352
|
-
`mastra_instance` schemas. Add application schemas or individual tables with
|
|
353
|
-
`lakebaseProvisionTargets`, or set the CSV
|
|
354
|
-
`DBX_TOOLS_APPKIT_LAKEBASE_PROVISION_TARGETS` variable. Exact duplicates are
|
|
355
|
-
removed.
|
|
356
|
-
|
|
357
|
-
Schema-wide grants run first in their own transactions. When one succeeds,
|
|
358
|
-
table targets under that schema are skipped. When it fails because the local
|
|
359
|
-
identity can modify a table but not the whole schema, the failure is logged and
|
|
360
|
-
the explicit table targets are attempted independently. Missing schemas and
|
|
361
|
-
tables are debug-logged and skipped.
|
|
362
|
-
|
|
363
|
-
```ts
|
|
364
|
-
await appkit.createApp({
|
|
365
|
-
autoConfigure: "provision",
|
|
366
|
-
lakebaseProvisionTargets: ["reporting", "operations.events"],
|
|
367
|
-
plugins: [lakebase()],
|
|
368
|
-
});
|
|
369
|
-
```
|
|
370
|
-
|
|
371
|
-
`provision.provisionLakebaseAccess()` exposes the same grant runner for callers
|
|
372
|
-
that already resolved Lakebase connection environment values.
|
|
373
|
-
|
|
374
|
-
```ts
|
|
375
|
-
import { provision } from "@dbx-tools/appkit";
|
|
376
|
-
|
|
377
|
-
await provision.provisionLakebaseAccess("app-service-principal@databricks.com", [
|
|
378
|
-
"appkit",
|
|
379
|
-
"mastra_instance",
|
|
380
|
-
"reporting",
|
|
381
|
-
"operations.events",
|
|
382
|
-
]);
|
|
383
|
-
```
|
|
384
|
-
|
|
385
|
-
Pass a third argument to report progress on your own logger. Provisioning is
|
|
386
|
-
skipped inside a Databricks App, and target failures are logged rather than
|
|
387
|
-
thrown so a degraded cache never blocks startup.
|
|
388
|
-
|
|
389
|
-
## Choose the request identity
|
|
390
|
-
|
|
391
|
-
AppKit gives a plugin two identities: the ambient service context (the app's own
|
|
392
|
-
service principal) and a per-request user context entered with `asUser(req)`,
|
|
393
|
-
which authenticates on-behalf-of (OBO) using the token the Databricks front door
|
|
394
|
-
forwards on `x-forwarded-access-token`. When that header is absent, AppKit's
|
|
395
|
-
behavior depends entirely on `NODE_ENV`:
|
|
396
|
-
|
|
397
|
-
| `NODE_ENV` | `asUser(req)` with no `x-forwarded-access-token` |
|
|
398
|
-
| ------------- | ------------------------------------------------------ |
|
|
399
|
-
| `development` | logs a warning, silently runs as the service principal |
|
|
400
|
-
| anything else | throws `AuthenticationError: Missing user token` |
|
|
401
|
-
|
|
402
|
-
That throw is right for an app behind the front door, where a missing token
|
|
403
|
-
means something is broken. It is fatal for an app whose traffic legitimately
|
|
404
|
-
arrives without one, such as a public tunnel where callers authenticate by email
|
|
405
|
-
code ([@dbx-tools/tunnel](../../node/tunnel)) or an authenticated webhook or bot
|
|
406
|
-
channel. Those apps must not run with `NODE_ENV=development` only to get the
|
|
407
|
-
fallback, because that flag also relaxes secure cookies and unlocks other
|
|
408
|
-
dev-only escape hatches.
|
|
409
|
-
|
|
410
|
-
`identity` is that decision, made explicit:
|
|
411
|
-
|
|
412
|
-
```ts
|
|
413
|
-
import { identity } from "@dbx-tools/appkit";
|
|
414
|
-
|
|
415
|
-
const mode = identity.resolveIdentityMode(config.identity, "MY_APP_IDENTITY");
|
|
416
|
-
|
|
417
|
-
// One call decides whether this request enters `asUser`.
|
|
418
|
-
const scoped = identity.useServicePrincipal(mode, req) ? this : this.asUser(req);
|
|
419
|
-
const rows = await scoped.executeQuery(sql);
|
|
420
|
-
```
|
|
421
|
-
|
|
422
|
-
| Mode | Behavior |
|
|
423
|
-
| ------------------- | ---------------------------------------------------------------------------- |
|
|
424
|
-
| `user` (default) | Always OBO. Per-user attribution and per-user Genie / Unity Catalog filters. |
|
|
425
|
-
| `service-principal` | Always the app's own identity. Needs no OBO scopes and serves any caller. |
|
|
426
|
-
| `auto` | OBO when the request carries a usable token, service principal otherwise. |
|
|
17
|
+
The wrapper resolves enabled configuration before AppKit initializes plugins,
|
|
18
|
+
then preserves AppKit's typed plugin export map.
|
|
427
19
|
|
|
428
|
-
|
|
429
|
-
doors at once: the tunnel gate and the platform front door share a port. A
|
|
430
|
-
boot-time flag would have to be wrong for one of them. An unrecognized
|
|
431
|
-
configured value throws a `ConfigurationError` rather than falling back, because
|
|
432
|
-
a typo (`"obo"`, `"sp"`) would otherwise keep serving the very error the option
|
|
433
|
-
was set to avoid.
|
|
20
|
+
## Choose native AppKit or this package
|
|
434
21
|
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
credential is shared. `appkit.createApp()` stamps the forwarded email, or user
|
|
440
|
-
id when no email is present, onto every native HTTP request root as
|
|
441
|
-
OpenTelemetry `user.id`. `@dbx-tools/appkit-mastra` exposes the credential
|
|
442
|
-
choice as its `genieIdentity` option.
|
|
22
|
+
Use native AppKit when required environment values already exist before
|
|
23
|
+
`createApp()`. Use this package when startup must resolve Lakebase settings,
|
|
24
|
+
bundle or application configuration, sibling plugins, request context outside
|
|
25
|
+
handlers, or Databricks SDK cancellation.
|
|
443
26
|
|
|
444
|
-
|
|
27
|
+
The [AppKit backend guide](../../../../docs/appkit-backend.md) covers
|
|
28
|
+
auto-configuration, filesystem caching, Lakebase grants, identity selection,
|
|
29
|
+
execution context, and plugin lookup.
|
|
445
30
|
|
|
446
|
-
|
|
447
|
-
| ------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
448
|
-
| `appkit` | `createApp()` / `autoConfigure()`, plus execution context lookup and initialization. |
|
|
449
|
-
| `lakebaseResolver` | Lakebase connection discovery, default picking, optional auto-create, and env application (`applyLakebaseEnv()` for the full set a pool needs). |
|
|
450
|
-
| `pgaddress` | Permissive Lakebase/Postgres address parser. |
|
|
451
|
-
| `bundle` | Bundle and Databricks App environment compatibility helpers. |
|
|
452
|
-
| `databricks` | Databricks SDK context cancellation adapters. |
|
|
453
|
-
| `interceptor` | Lifecycle bridging, teardown callbacks, and process-wide child supervision. |
|
|
454
|
-
| `plugin` | Typed AppKit plugin data, instance, and required-instance lookup. |
|
|
455
|
-
| `toolkit` | Shared AppKit toolkit filtering, naming, and entry construction. |
|
|
456
|
-
| `provision` | Cache schema provisioning helpers. |
|
|
457
|
-
| `identity` | OBO-vs-service-principal request identity: modes, resolution, and the forwarded headers. |
|
|
31
|
+
## Reference
|
|
458
32
|
|
|
459
|
-
|
|
460
|
-
[
|
|
461
|
-
|
|
33
|
+
- [Generated API reference](https://docs.dbx.tools/api/appkit/)
|
|
34
|
+
- [AppKit Mastra integration](../appkit-mastra)
|
|
35
|
+
- [Lakebase runtime](../lakebase)
|
package/index.ts
CHANGED
|
@@ -3,11 +3,12 @@
|
|
|
3
3
|
// Hand edits are overwritten on the next generation; this file is read-only.
|
|
4
4
|
|
|
5
5
|
export const PACKAGE_IDENTIFIER = "@dbx-tools/appkit";
|
|
6
|
-
export const PACKAGE_VERSION = "0.
|
|
6
|
+
export const PACKAGE_VERSION = "0.11.3";
|
|
7
7
|
export * as appkit from "./src/appkit.ts";
|
|
8
8
|
export * as brandContext from "./src/brand-context.ts";
|
|
9
9
|
export * as cacheStorage from "./src/cache-storage.ts";
|
|
10
|
-
export * as
|
|
10
|
+
export * as eventStream from "./src/event-stream.ts";
|
|
11
|
+
export * as http from "./src/http.ts";
|
|
11
12
|
export * as identity from "./src/identity.ts";
|
|
12
13
|
export * as interceptor from "./src/interceptor.ts";
|
|
13
14
|
export * as lakebaseResolver from "./src/lakebase-resolver.ts";
|
|
@@ -21,16 +22,18 @@ export * as telemetry from "./src/telemetry.ts";
|
|
|
21
22
|
export * as toolOperations from "./src/tool-operations.ts";
|
|
22
23
|
export * as toolProvider from "./src/tool-provider.ts";
|
|
23
24
|
export * as toolkitEntries from "./src/toolkit-entries.ts";
|
|
25
|
+
export * as workspaceClient from "./src/workspace-client.ts";
|
|
24
26
|
export { debugCaptureEnabled, autoConfigure, createApp, tryGetExecutionContext, ensureInitialized } from "./src/appkit.ts";
|
|
25
27
|
export type { AutoConfigureMode, DebugCaptureMode, CreateAppConfig, ExecutionContextLike, WorkspaceClientLike } from "./src/appkit.ts";
|
|
26
28
|
export { loadBrandContext, getBrandContext } from "./src/brand-context.ts";
|
|
27
29
|
export { AppKitCacheStorage, loadPersistentStorage, softenInitialize, probeStorage, createAppKitCacheStorage } from "./src/cache-storage.ts";
|
|
28
30
|
export type { AppKitCacheStorageOptions, PersistentStorageBase } from "./src/cache-storage.ts";
|
|
29
|
-
export {
|
|
30
|
-
export type {
|
|
31
|
+
export { responseAbortSignal, openEventStream, writeEvent } from "./src/event-stream.ts";
|
|
32
|
+
export type { ResponseCloseSource, EventStreamResponse, EventStreamEvent } from "./src/event-stream.ts";
|
|
31
33
|
export { FilesCacheManager, FilesCachePlugin, filesCache } from "./src/files-cache.ts";
|
|
32
34
|
export type { FilesCachePluginConfig, FilesCacheScope, FilesCacheSourceIdentity, FilesCacheExports } from "./src/files-cache.ts";
|
|
33
|
-
export {
|
|
35
|
+
export { requestHeaders } from "./src/http.ts";
|
|
36
|
+
export { IDENTITY_MODES, DEFAULT_IDENTITY_MODE, resolveIdentityMode, requestAccessToken, requestUserId, requestUserEmail, useServicePrincipal } from "./src/identity.ts";
|
|
34
37
|
export type { IdentityMode, HeaderBearing } from "./src/identity.ts";
|
|
35
38
|
export { createInterceptorContext, LifecycleBridgePlugin, lifecycleBridge } from "./src/interceptor.ts";
|
|
36
39
|
export type { LifecycleEvent, LifecycleHandler, ResolvedAppEnv, InterceptorContext, Interceptor, InterceptorRuntime } from "./src/interceptor.ts";
|
|
@@ -55,3 +58,5 @@ export type { AppKitToolMeta, AppKitOperationSchemaMeta, AppKitOperation } from
|
|
|
55
58
|
export { ToolRegistryPlugin } from "./src/tool-provider.ts";
|
|
56
59
|
export type { AgentToolProgressOptions, AgentToolExecutionContext } from "./src/tool-provider.ts";
|
|
57
60
|
export { name, entries } from "./src/toolkit-entries.ts";
|
|
61
|
+
export { createWorkspaceClient } from "./src/workspace-client.ts";
|
|
62
|
+
export type { WorkspaceClientOptions } from "./src/workspace-client.ts";
|
package/lib/index.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export declare const PACKAGE_IDENTIFIER = "@dbx-tools/appkit";
|
|
2
|
-
export declare const PACKAGE_VERSION = "0.
|
|
2
|
+
export declare const PACKAGE_VERSION = "0.11.3";
|
|
3
3
|
export * as appkit from "./src/appkit.ts";
|
|
4
4
|
export * as brandContext from "./src/brand-context.ts";
|
|
5
5
|
export * as cacheStorage from "./src/cache-storage.ts";
|
|
6
|
-
export * as
|
|
6
|
+
export * as eventStream from "./src/event-stream.ts";
|
|
7
|
+
export * as http from "./src/http.ts";
|
|
7
8
|
export * as identity from "./src/identity.ts";
|
|
8
9
|
export * as interceptor from "./src/interceptor.ts";
|
|
9
10
|
export * as lakebaseResolver from "./src/lakebase-resolver.ts";
|
|
@@ -17,16 +18,18 @@ export * as telemetry from "./src/telemetry.ts";
|
|
|
17
18
|
export * as toolOperations from "./src/tool-operations.ts";
|
|
18
19
|
export * as toolProvider from "./src/tool-provider.ts";
|
|
19
20
|
export * as toolkitEntries from "./src/toolkit-entries.ts";
|
|
21
|
+
export * as workspaceClient from "./src/workspace-client.ts";
|
|
20
22
|
export { debugCaptureEnabled, autoConfigure, createApp, tryGetExecutionContext, ensureInitialized } from "./src/appkit.ts";
|
|
21
23
|
export type { AutoConfigureMode, DebugCaptureMode, CreateAppConfig, ExecutionContextLike, WorkspaceClientLike } from "./src/appkit.ts";
|
|
22
24
|
export { loadBrandContext, getBrandContext } from "./src/brand-context.ts";
|
|
23
25
|
export { AppKitCacheStorage, loadPersistentStorage, softenInitialize, probeStorage, createAppKitCacheStorage } from "./src/cache-storage.ts";
|
|
24
26
|
export type { AppKitCacheStorageOptions, PersistentStorageBase } from "./src/cache-storage.ts";
|
|
25
|
-
export {
|
|
26
|
-
export type {
|
|
27
|
+
export { responseAbortSignal, openEventStream, writeEvent } from "./src/event-stream.ts";
|
|
28
|
+
export type { ResponseCloseSource, EventStreamResponse, EventStreamEvent } from "./src/event-stream.ts";
|
|
27
29
|
export { FilesCacheManager, FilesCachePlugin, filesCache } from "./src/files-cache.ts";
|
|
28
30
|
export type { FilesCachePluginConfig, FilesCacheScope, FilesCacheSourceIdentity, FilesCacheExports } from "./src/files-cache.ts";
|
|
29
|
-
export {
|
|
31
|
+
export { requestHeaders } from "./src/http.ts";
|
|
32
|
+
export { IDENTITY_MODES, DEFAULT_IDENTITY_MODE, resolveIdentityMode, requestAccessToken, requestUserId, requestUserEmail, useServicePrincipal } from "./src/identity.ts";
|
|
30
33
|
export type { IdentityMode, HeaderBearing } from "./src/identity.ts";
|
|
31
34
|
export { createInterceptorContext, LifecycleBridgePlugin, lifecycleBridge } from "./src/interceptor.ts";
|
|
32
35
|
export type { LifecycleEvent, LifecycleHandler, ResolvedAppEnv, InterceptorContext, Interceptor, InterceptorRuntime } from "./src/interceptor.ts";
|
|
@@ -51,3 +54,5 @@ export type { AppKitToolMeta, AppKitOperationSchemaMeta, AppKitOperation } from
|
|
|
51
54
|
export { ToolRegistryPlugin } from "./src/tool-provider.ts";
|
|
52
55
|
export type { AgentToolProgressOptions, AgentToolExecutionContext } from "./src/tool-provider.ts";
|
|
53
56
|
export { name, entries } from "./src/toolkit-entries.ts";
|
|
57
|
+
export { createWorkspaceClient } from "./src/workspace-client.ts";
|
|
58
|
+
export type { WorkspaceClientOptions } from "./src/workspace-client.ts";
|
package/lib/index.js
CHANGED
|
@@ -2,11 +2,12 @@
|
|
|
2
2
|
// Regenerated from the exporting modules in ./src.
|
|
3
3
|
// Hand edits are overwritten on the next generation; this file is read-only.
|
|
4
4
|
export const PACKAGE_IDENTIFIER = "@dbx-tools/appkit";
|
|
5
|
-
export const PACKAGE_VERSION = "0.
|
|
5
|
+
export const PACKAGE_VERSION = "0.11.3";
|
|
6
6
|
export * as appkit from "./src/appkit.js";
|
|
7
7
|
export * as brandContext from "./src/brand-context.js";
|
|
8
8
|
export * as cacheStorage from "./src/cache-storage.js";
|
|
9
|
-
export * as
|
|
9
|
+
export * as eventStream from "./src/event-stream.js";
|
|
10
|
+
export * as http from "./src/http.js";
|
|
10
11
|
export * as identity from "./src/identity.js";
|
|
11
12
|
export * as interceptor from "./src/interceptor.js";
|
|
12
13
|
export * as lakebaseResolver from "./src/lakebase-resolver.js";
|
|
@@ -20,12 +21,14 @@ export * as telemetry from "./src/telemetry.js";
|
|
|
20
21
|
export * as toolOperations from "./src/tool-operations.js";
|
|
21
22
|
export * as toolProvider from "./src/tool-provider.js";
|
|
22
23
|
export * as toolkitEntries from "./src/toolkit-entries.js";
|
|
24
|
+
export * as workspaceClient from "./src/workspace-client.js";
|
|
23
25
|
export { debugCaptureEnabled, autoConfigure, createApp, tryGetExecutionContext, ensureInitialized } from "./src/appkit.js";
|
|
24
26
|
export { loadBrandContext, getBrandContext } from "./src/brand-context.js";
|
|
25
27
|
export { AppKitCacheStorage, loadPersistentStorage, softenInitialize, probeStorage, createAppKitCacheStorage } from "./src/cache-storage.js";
|
|
26
|
-
export {
|
|
28
|
+
export { responseAbortSignal, openEventStream, writeEvent } from "./src/event-stream.js";
|
|
27
29
|
export { FilesCacheManager, FilesCachePlugin, filesCache } from "./src/files-cache.js";
|
|
28
|
-
export {
|
|
30
|
+
export { requestHeaders } from "./src/http.js";
|
|
31
|
+
export { IDENTITY_MODES, DEFAULT_IDENTITY_MODE, resolveIdentityMode, requestAccessToken, requestUserId, requestUserEmail, useServicePrincipal } from "./src/identity.js";
|
|
29
32
|
export { createInterceptorContext, LifecycleBridgePlugin, lifecycleBridge } from "./src/interceptor.js";
|
|
30
33
|
export { captureServicePrincipalPool, parsePort, parseSslMode, nextPollDelay, pollDelay, readLakebaseInputs, resolveLakebaseConnection, applyLakebaseToEnv, applyLakebaseEnv } from "./src/lakebase-resolver.js";
|
|
31
34
|
export { isOwnershipMigrationError, handleOwnershipMigrationError } from "./src/migration.js";
|
|
@@ -38,4 +41,5 @@ export { USER_TRACE_ATTRIBUTE, excludeHttpTelemetryRequest, excludeUnparentedOut
|
|
|
38
41
|
export { defineOperations, toolRegistryFromOperations } from "./src/tool-operations.js";
|
|
39
42
|
export { ToolRegistryPlugin } from "./src/tool-provider.js";
|
|
40
43
|
export { name, entries } from "./src/toolkit-entries.js";
|
|
41
|
-
|
|
44
|
+
export { createWorkspaceClient } from "./src/workspace-client.js";
|
|
45
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSw2Q0FBNkM7QUFDN0MsbURBQW1EO0FBQ25ELDZFQUE2RTtBQUU3RSxNQUFNLENBQUMsTUFBTSxrQkFBa0IsR0FBRyxtQkFBbUIsQ0FBQztBQUN0RCxNQUFNLENBQUMsTUFBTSxlQUFlLEdBQUcsUUFBUSxDQUFDO0FBQ3hDLE9BQU8sS0FBSyxNQUFNLE1BQU0saUJBQWlCLENBQUM7QUFDMUMsT0FBTyxLQUFLLFlBQVksTUFBTSx3QkFBd0IsQ0FBQztBQUN2RCxPQUFPLEtBQUssWUFBWSxNQUFNLHdCQUF3QixDQUFDO0FBQ3ZELE9BQU8sS0FBSyxXQUFXLE1BQU0sdUJBQXVCLENBQUM7QUFDckQsT0FBTyxLQUFLLElBQUksTUFBTSxlQUFlLENBQUM7QUFDdEMsT0FBTyxLQUFLLFFBQVEsTUFBTSxtQkFBbU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