@stacksjs/defaults 0.75.299 → 0.75.302
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/ai/AGENTS.md +4 -0
- package/ai/skills/stacks-auto-imports/SKILL.md +20 -4
- package/ai/skills/stacks-browse/scripts/browse.ts +5 -3
- package/ai/skills/stacks-buddy/SKILL.md +3 -2
- package/ai/skills/stacks-composables/SKILL.md +4 -0
- package/ai/skills/stacks-migrations/SKILL.md +11 -0
- package/ai/skills/stacks-native/CATALOG.md +10 -10
- package/ai/skills/stacks-native/SKILL.md +4 -0
- package/ai/skills/stacks-search-engine/SKILL.md +3 -0
- package/ide/vscode/package.json +1 -1
- package/package.json +2 -2
package/ai/AGENTS.md
CHANGED
|
@@ -78,6 +78,10 @@ review the generated SQL and snapshot, then apply with `./buddy migrate`.
|
|
|
78
78
|
and `stacks-router` for selection, authentication, ownership, and mount behavior.
|
|
79
79
|
Use `stacks-auto-imports` to distinguish browser bindings from declarations
|
|
80
80
|
and explicit module imports.
|
|
81
|
+
Before adding imports in app code, read the relevant section of
|
|
82
|
+
`storage/framework/auto-imports/RUNTIME.md` and use its listed names directly
|
|
83
|
+
in their stated context. `buddy generate`, `buddy generate:auto-imports` and
|
|
84
|
+
`buddy setup:ai` refresh this inventory from the runtime registries.
|
|
81
85
|
|
|
82
86
|
**Subsystem reference**, one per area (`stacks-orm`, `stacks-router`,
|
|
83
87
|
`stacks-queue`, ...), each documenting it authoritatively. Read the relevant
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: stacks-auto-imports
|
|
3
|
-
description: Use
|
|
3
|
+
description: Use before adding imports in Stacks app code, checking available runtime functions, browser/server delivery, model globals, or registry generation. Covers Stacks auto-imports, the generated runtime inventory, stx client delivery and server boot (107 models).
|
|
4
4
|
license: MIT
|
|
5
5
|
compatibility: Bun >= 1.3.0, TypeScript
|
|
6
6
|
allowed-tools: Read Edit Write Bash Grep Glob
|
|
@@ -8,6 +8,21 @@ allowed-tools: Read Edit Write Bash Grep Glob
|
|
|
8
8
|
|
|
9
9
|
# Auto-imports and runtime delivery
|
|
10
10
|
|
|
11
|
+
## Available names in this project
|
|
12
|
+
|
|
13
|
+
Before adding imports, read the relevant section of
|
|
14
|
+
`storage/framework/auto-imports/RUNTIME.md` (relative to the project root).
|
|
15
|
+
Use its listed names directly in their stated execution context to avoid
|
|
16
|
+
redundant imports. This compact reference groups server globals by package
|
|
17
|
+
and barrel, and STX client helpers by runtime, macro and demand delivery.
|
|
18
|
+
It is generated from runtime registries, including app helpers and overrides.
|
|
19
|
+
|
|
20
|
+
`buddy generate`, `buddy generate:types`, `buddy generate:auto-imports` and
|
|
21
|
+
`buddy setup:ai` refresh it. If missing, run `buddy generate:auto-imports`.
|
|
22
|
+
The inventory stays in the project so copied skills read the current app's
|
|
23
|
+
names after subsequent generation. Keep package implementation files and
|
|
24
|
+
standalone scripts self-contained with explicit imports.
|
|
25
|
+
|
|
11
26
|
A declaration, a delivered client binding, and an initialized server global are
|
|
12
27
|
three different facts. Inspect the relevant runtime rather than inferring all
|
|
13
28
|
three from an ambient type file.
|
|
@@ -48,9 +63,10 @@ utilities are imported types; UserRequest/UserRequestModel are not generated
|
|
|
48
63
|
runtime model variants. Names colliding with built-ins, such as Error/Request,
|
|
49
64
|
need explicit imports and safe local aliases.
|
|
50
65
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
66
|
+
The server's primitiveModules registry also injects framework helpers such as
|
|
67
|
+
Action, route, response, schema, path, storage, log and Auth. Use the generated
|
|
68
|
+
inventory to select bare names after Stacks boot. Package internals, standalone
|
|
69
|
+
tools and tests without boot still import their dependencies explicitly.
|
|
54
70
|
|
|
55
71
|
## Generation and project overrides
|
|
56
72
|
|
|
@@ -703,7 +703,9 @@ export async function runScenarioStep(cdp: Pick<Cdp, 'send'>, step: ScenarioStep
|
|
|
703
703
|
const key = step.key || ''
|
|
704
704
|
// CDP's key name alone does not perform native navigation or scrolling.
|
|
705
705
|
// Supply the matching virtual key on both events, as a real keyboard does.
|
|
706
|
-
const
|
|
706
|
+
const letter = /^[a-z]$/i.test(key), digit = /^[0-9]$/.test(key)
|
|
707
|
+
const code = letter ? `Key${key.toUpperCase()}` : digit ? `Digit${key}` : key === ' ' ? 'Space' : key
|
|
708
|
+
const keyCode = key.length === 1 ? (letter ? key.toUpperCase() : key).charCodeAt(0) : ({
|
|
707
709
|
Backspace: 8, Tab: 9, Enter: 13, Escape: 27,
|
|
708
710
|
PageUp: 33, PageDown: 34, End: 35, Home: 36,
|
|
709
711
|
ArrowLeft: 37, ArrowUp: 38, ArrowRight: 39, ArrowDown: 40,
|
|
@@ -712,8 +714,8 @@ export async function runScenarioStep(cdp: Pick<Cdp, 'send'>, step: ScenarioStep
|
|
|
712
714
|
if (!keyCode) throw new Error(`Unsupported scenario key: ${JSON.stringify(key)}`)
|
|
713
715
|
// Enter's text generates the keypress that activates native buttons/forms.
|
|
714
716
|
const text = key === 'Enter' ? '\r' : undefined
|
|
715
|
-
await cdp.send('Input.dispatchKeyEvent', { type: 'keyDown', key, code
|
|
716
|
-
await cdp.send('Input.dispatchKeyEvent', { type: 'keyUp', key, code
|
|
717
|
+
await cdp.send('Input.dispatchKeyEvent', { type: 'keyDown', key, code, windowsVirtualKeyCode: keyCode, text, unmodifiedText: text })
|
|
718
|
+
await cdp.send('Input.dispatchKeyEvent', { type: 'keyUp', key, code, windowsVirtualKeyCode: keyCode })
|
|
717
719
|
return { action: step.action, key, ok: true }
|
|
718
720
|
}
|
|
719
721
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: stacks-buddy
|
|
3
|
-
description: Use when working with the Stacks CLI (buddy/bud/stacks
|
|
3
|
+
description: Use when working with the Stacks CLI (buddy/bud/stacks) - understanding every command with its flags and options, adding custom commands, the make:* scaffolding commands, development server commands, build commands, deployment commands, email/mail commands, environment management, or domain/DNS commands. Covers @stacksjs/buddy and all CLI command files.
|
|
4
4
|
license: MIT
|
|
5
5
|
compatibility: Bun >= 1.3.0, TypeScript
|
|
6
6
|
allowed-tools: Read Edit Write Bash Grep Glob
|
|
@@ -22,7 +22,8 @@ The complete CLI runtime for the Stacks framework, lazy-loaded for fast cold sta
|
|
|
22
22
|
- Make templates: `storage/framework/defaults/`
|
|
23
23
|
|
|
24
24
|
## CLI Aliases
|
|
25
|
-
|
|
25
|
+
`./buddy`, `bud`, and `stacks` invoke the Stacks CLI. The `stx` binary belongs
|
|
26
|
+
to the STX template engine; use it for template and native screen compilation.
|
|
26
27
|
|
|
27
28
|
## Architecture
|
|
28
29
|
|
|
@@ -12,6 +12,10 @@ Choose the execution surface before copying a composable signature. An STX
|
|
|
12
12
|
client script, an explicitly imported `@stacksjs/composables` module, and a
|
|
13
13
|
server script can expose similarly named functions with different contracts.
|
|
14
14
|
Read [BROWSER.md](BROWSER.md) for template delivery, forms and motion examples.
|
|
15
|
+
For the complete installed client surface, read the STX section of
|
|
16
|
+
`storage/framework/auto-imports/RUNTIME.md` at the project root. Use those
|
|
17
|
+
helpers directly in client scripts; generation refreshes runtime, macro and
|
|
18
|
+
demand names from the installed STX registries.
|
|
15
19
|
|
|
16
20
|
## Eager window aliases
|
|
17
21
|
|
|
@@ -30,9 +30,11 @@ buddy seed # seed database
|
|
|
30
30
|
buddy generate:migrations # generate migrations from model diffs
|
|
31
31
|
buddy generate:migrations --dialect postgres # into another dialect's corpus, no Postgres needed
|
|
32
32
|
buddy generate:migrations --dialect all # the connected dialect and every other corpus
|
|
33
|
+
buddy generate:db-types --dialect postgres # generate committed raw-row types for an explicit target
|
|
33
34
|
buddy migrate:regenerate <dialect> # rebuild the whole corpus from the models
|
|
34
35
|
buddy migrate:status # corpus vs ledger vs live schema; lists hand-written files
|
|
35
36
|
buddy migrate:align # plan repairs of a database that drifted from the models
|
|
37
|
+
buddy migrate:align --relax-constraints # also plan lossless removal of obsolete constraints
|
|
36
38
|
buddy migrate:align --apply # rename legacy indexes, add missing indexes/FKs/columns, widen losslessly
|
|
37
39
|
```
|
|
38
40
|
|
|
@@ -237,3 +239,12 @@ lossless widenings; reports everything destructive), then
|
|
|
237
239
|
- 239 migration files exist by default for all framework models
|
|
238
240
|
- SQLite >= 3.47.2 is required (system requirement)
|
|
239
241
|
- For the database API (queries, connections), see the `stacks-database` skill
|
|
242
|
+
|
|
243
|
+
`migrate:align --relax-constraints` also plans removal of legacy NOT NULL
|
|
244
|
+
constraints where the current model allows null, and foreign keys on polymorphic
|
|
245
|
+
id/type pairs where the model declares no single-table reference. It also removes
|
|
246
|
+
a conflicting parent reference when the model's correct foreign key is already
|
|
247
|
+
enforced. If that key is missing, the first pass adds it after an orphan check;
|
|
248
|
+
a later pass can remove the obsolete key. It never makes
|
|
249
|
+
nullable data required or relaxes primary keys. Inspect the plan, then add `--apply`
|
|
250
|
+
to run it. The default continues to report these differences without changing them.
|
|
@@ -11,7 +11,7 @@ Browser runtime bindings are documented separately in `stacks-auto-imports`.
|
|
|
11
11
|
| Package | Task guidance | Source entry | Retained tests |
|
|
12
12
|
|---|---|---|---|
|
|
13
13
|
| `@stacksjs/action-runner` | [`stacks-actions`](../stacks-actions/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/action-runner/src/index.ts) | 1 |
|
|
14
|
-
| `@stacksjs/actions` | [`stacks-actions`](../stacks-actions/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/index.ts) |
|
|
14
|
+
| `@stacksjs/actions` | [`stacks-actions`](../stacks-actions/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/index.ts) | 86 |
|
|
15
15
|
| `@stacksjs/ai` | [`stacks-ai`](../stacks-ai/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/ai/src/index.ts) | 17 |
|
|
16
16
|
| `@stacksjs/alias` | [`stacks-alias`](../stacks-alias/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/alias/src/index.ts) | 1 |
|
|
17
17
|
| `@stacksjs/analytics` | [`stacks-analytics`](../stacks-analytics/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/analytics/src/index.ts) | 6 |
|
|
@@ -21,7 +21,7 @@ Browser runtime bindings are documented separately in `stacks-auto-imports`.
|
|
|
21
21
|
| `@stacksjs/auth` | [`stacks-auth`](../stacks-auth/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/auth/src/index.ts) | 120 |
|
|
22
22
|
| `@stacksjs/browser` | [`stacks-browser`](../stacks-browser/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/browser/src/index.ts) | 8 |
|
|
23
23
|
| `@stacksjs/browser-extension` | [`stacks-browser-extension`](../stacks-browser-extension/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/browser-extension/src/index.ts) | 7 |
|
|
24
|
-
| `@stacksjs/buddy` | [`stacks-buddy`](../stacks-buddy/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/buddy/src/index.ts) |
|
|
24
|
+
| `@stacksjs/buddy` | [`stacks-buddy`](../stacks-buddy/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/buddy/src/index.ts) | 166 |
|
|
25
25
|
| `@stacksjs/build` | [`stacks-build`](../stacks-build/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/build/src/index.ts) | 3 |
|
|
26
26
|
| `@stacksjs/cache` | [`stacks-cache`](../stacks-cache/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/cache/src/index.ts) | 14 |
|
|
27
27
|
| `@stacksjs/calendar-api` | [`stacks-calendar`](../stacks-calendar/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/calendar-api/src/index.ts) | 2 |
|
|
@@ -35,7 +35,7 @@ Browser runtime bindings are documented separately in `stacks-auto-imports`.
|
|
|
35
35
|
| `@stacksjs/composables` | [`stacks-composables`](../stacks-composables/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/composables/src/index.ts) | 18 |
|
|
36
36
|
| `@stacksjs/config` | [`stacks-config`](../stacks-config/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/config/src/index.ts) | 16 |
|
|
37
37
|
| `@stacksjs/cron` | [`stacks-cron`](../stacks-cron/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/cron/src/index.ts) | 4 |
|
|
38
|
-
| `@stacksjs/database` | [`stacks-database`](../stacks-database/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/index.ts) |
|
|
38
|
+
| `@stacksjs/database` | [`stacks-database`](../stacks-database/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/index.ts) | 132 |
|
|
39
39
|
| `@stacksjs/datetime` | [`stacks-datetime`](../stacks-datetime/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/datetime/src/index.ts) | 13 |
|
|
40
40
|
| `@stacksjs/defaults` | [`stacks-build`](../stacks-build/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/defaults/package.json) | 2 |
|
|
41
41
|
| `@stacksjs/deploy` | [`stacks-deploy`](../stacks-deploy/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/deploy/package.json) | 1 |
|
|
@@ -77,9 +77,9 @@ Browser runtime bindings are documented separately in `stacks-auto-imports`.
|
|
|
77
77
|
| `@stacksjs/repl` | [`stacks-repl`](../stacks-repl/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/repl/src/index.ts) | 2 |
|
|
78
78
|
| `@stacksjs/router` | [`stacks-router`](../stacks-router/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/router/src/index.ts) | 95 |
|
|
79
79
|
| `@stacksjs/scheduler` | [`stacks-scheduler`](../stacks-scheduler/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/scheduler/src/index.ts) | 14 |
|
|
80
|
-
| `@stacksjs/search-engine` | [`stacks-search-engine`](../stacks-search-engine/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/search-engine/src/index.ts) |
|
|
80
|
+
| `@stacksjs/search-engine` | [`stacks-search-engine`](../stacks-search-engine/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/search-engine/src/index.ts) | 11 |
|
|
81
81
|
| `@stacksjs/security` | [`stacks-security`](../stacks-security/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/security/src/index.ts) | 11 |
|
|
82
|
-
| `@stacksjs/server` | [`stacks-server`](../stacks-server/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/server/src/index.ts) |
|
|
82
|
+
| `@stacksjs/server` | [`stacks-server`](../stacks-server/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/server/src/index.ts) | 28 |
|
|
83
83
|
| `@stacksjs/shell` | [`stacks-shell`](../stacks-shell/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/shell/src/index.ts) | 1 |
|
|
84
84
|
| `@stacksjs/sites` | [`stacks-sites`](../stacks-sites/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/sites/src/index.ts) | 3 |
|
|
85
85
|
| `@stacksjs/skills` | [`stacks-skills`](../stacks-skills/SKILL.md) | [entrypoint](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/skills/src/index.ts) | 1 |
|
|
@@ -119,7 +119,7 @@ Declared runtime exports: `BlogAdminError`, `DEFAULT_IOS_DEPENDENCIES`, `DEFAULT
|
|
|
119
119
|
|
|
120
120
|
Local source modules: [src/action.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/action.ts), [src/add.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/add.ts), [src/blog-admin.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/blog-admin.ts), [src/build/ios-toolchain.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/build/ios-toolchain.ts), [src/commit.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/commit.ts), [src/dev/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/dev/index.ts), [src/discover-packages.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/discover-packages.ts), [src/generate/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/generate/index.ts), [src/github-release.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/github-release.ts), [src/helpers/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/helpers/index.ts), [src/library/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/library/index.ts), [src/lint/lint.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/lint/lint.ts), [src/lint/stx-gate.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/lint/stx-gate.ts), [src/make-command.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/make-command.ts), [src/make-job.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/make-job.ts), [src/make-policy.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/make-policy.ts), [src/make-resource.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/make-resource.ts), [src/make.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/make.ts), [src/publication-preflight.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/publication-preflight.ts), [src/release-evidence.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/release-evidence.ts), [src/scaffold-crud.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/scaffold-crud.ts), [src/setup/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/setup/index.ts), [src/stacks.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/stacks.ts), [src/stx-source.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/stx-source.ts), [src/upgrade/package-project.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/upgrade/package-project.ts), [src/upgrade/route-actions.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/src/upgrade/route-actions.ts).
|
|
121
121
|
|
|
122
|
-
Evidence directory: [
|
|
122
|
+
Evidence directory: [86 retained tests](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/actions/tests). These files are evidence pointers, not a claim that all tests were run for this catalog.
|
|
123
123
|
|
|
124
124
|
### @stacksjs/ai
|
|
125
125
|
|
|
@@ -217,7 +217,7 @@ Read the entrypoint and package export map for re-exported or type-only surfaces
|
|
|
217
217
|
|
|
218
218
|
Local source modules: [src/commands/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/buddy/src/commands/index.ts).
|
|
219
219
|
|
|
220
|
-
Evidence directory: [
|
|
220
|
+
Evidence directory: [166 retained tests](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/buddy/tests). These files are evidence pointers, not a claim that all tests were run for this catalog.
|
|
221
221
|
|
|
222
222
|
### @stacksjs/build
|
|
223
223
|
|
|
@@ -353,7 +353,7 @@ Declared runtime exports: `Database`, `EntityQueryBuilder`, `__flushAfterCommitN
|
|
|
353
353
|
|
|
354
354
|
Local source modules: [src/affected-rows.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/affected-rows.ts), [src/auth-tables.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/auth-tables.ts), [src/custom/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/custom/index.ts), [src/database.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/database.ts), [src/datetime-columns.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/datetime-columns.ts), [src/ddl-constraints.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/ddl-constraints.ts), [src/defaults.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/defaults.ts), [src/dialect.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/dialect.ts), [src/driver-config.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/driver-config.ts), [src/drivers/dynamodb.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/drivers/dynamodb.ts), [src/drivers/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/drivers/index.ts), [src/ensure-database.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/ensure-database.ts), [src/erd.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/erd.ts), [src/fk-audit.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/fk-audit.ts), [src/framework-renames.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/framework-renames.ts), [src/framework-route-admission.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/framework-route-admission.ts), [src/hand-written-migrations.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/hand-written-migrations.ts), [src/ignored-migrations.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/ignored-migrations.ts), [src/index-shape.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/index-shape.ts), [src/managed-columns.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/managed-columns.ts), [src/migration-dialect.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/migration-dialect.ts), [src/migration-ledger.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/migration-ledger.ts), [src/migration-names.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/migration-names.ts), [src/migration-path.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/migration-path.ts), [src/migrations.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/migrations.ts), [src/model-sources.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/model-sources.ts), [src/notification-tables.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/notification-tables.ts), [src/package-migrations.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/package-migrations.ts), [src/package-models.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/package-models.ts), [src/query-logger.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/query-logger.ts), [src/rbac-tables.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/rbac-tables.ts), [src/relation-columns.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/relation-columns.ts), [src/replicas.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/replicas.ts), [src/row-lock.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/row-lock.ts), [src/safe-migrations.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/safe-migrations.ts), [src/schema-align.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/schema-align.ts), [src/schema-drift.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/schema-drift.ts), [src/seeder.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/seeder.ts), [src/shadowed-models.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/shadowed-models.ts), [src/sql-helpers.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/sql-helpers.ts), [src/trait-tables.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/trait-tables.ts), [src/transaction-context.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/transaction-context.ts), [src/types.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/types.ts), [src/unique-audit.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/unique-audit.ts), [src/utc-defaults.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/utc-defaults.ts), [src/utils.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/utils.ts), [src/uuid-columns.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/uuid-columns.ts), [src/vschema.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/src/vschema.ts).
|
|
355
355
|
|
|
356
|
-
Evidence directory: [
|
|
356
|
+
Evidence directory: [132 retained tests](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/database/tests). These files are evidence pointers, not a claim that all tests were run for this catalog.
|
|
357
357
|
|
|
358
358
|
### @stacksjs/datetime
|
|
359
359
|
|
|
@@ -745,7 +745,7 @@ Declared runtime exports: `searchEngineReady`, `useAlgolia`, `useMeilisearch`, `
|
|
|
745
745
|
|
|
746
746
|
Local source modules: [src/documents/index.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/search-engine/src/documents/index.ts), [src/drivers/algolia.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/search-engine/src/drivers/algolia.ts), [src/drivers/algolia.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/search-engine/src/drivers/algolia.ts), [src/drivers/meilisearch.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/search-engine/src/drivers/meilisearch.ts), [src/drivers/meilisearch.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/search-engine/src/drivers/meilisearch.ts), [src/drivers/opensearch.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/search-engine/src/drivers/opensearch.ts), [src/drivers/opensearch.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/search-engine/src/drivers/opensearch.ts), [src/drivers/typesense.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/search-engine/src/drivers/typesense.ts), [src/drivers/typesense.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/search-engine/src/drivers/typesense.ts).
|
|
747
747
|
|
|
748
|
-
Evidence directory: [
|
|
748
|
+
Evidence directory: [11 retained tests](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/search-engine/tests). These files are evidence pointers, not a claim that all tests were run for this catalog.
|
|
749
749
|
|
|
750
750
|
### @stacksjs/security
|
|
751
751
|
|
|
@@ -765,7 +765,7 @@ Declared runtime exports: `server`.
|
|
|
765
765
|
|
|
766
766
|
Local source modules: [src/config.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/server/src/config.ts), [src/controllers/base.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/server/src/controllers/base.ts), [src/imports.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/server/src/imports.ts), [src/maintenance.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/server/src/maintenance.ts), [src/proxy.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/server/src/proxy.ts), [src/redirects.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/server/src/redirects.ts), [src/response-headers.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/server/src/response-headers.ts), [src/rewrites.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/server/src/rewrites.ts), [src/security-headers.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/server/src/security-headers.ts), [src/shadowed-defaults.ts](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/server/src/shadowed-defaults.ts).
|
|
767
767
|
|
|
768
|
-
Evidence directory: [
|
|
768
|
+
Evidence directory: [28 retained tests](https://github.com/stacksjs/stacks/blob/main/storage/framework/core/server/tests). These files are evidence pointers, not a claim that all tests were run for this catalog.
|
|
769
769
|
|
|
770
770
|
### @stacksjs/shell
|
|
771
771
|
|
|
@@ -48,6 +48,10 @@ the cases that require an action, job, policy, or explicit route.
|
|
|
48
48
|
|
|
49
49
|
## Important boundaries
|
|
50
50
|
|
|
51
|
+
- Before adding imports in app code, consult the context-specific names in
|
|
52
|
+
`storage/framework/auto-imports/RUNTIME.md` at the project root. Use listed
|
|
53
|
+
runtime helpers directly; read `stacks-auto-imports` for initialization and
|
|
54
|
+
module boundaries. Generation refreshes the inventory for this app.
|
|
51
55
|
- `app/` overrides framework defaults. Use `extendModel` for additive model
|
|
52
56
|
changes; an ordinary override replaces the definition.
|
|
53
57
|
- Generated CRUD defaults to authenticated routes. Ownership and policies
|
|
@@ -118,6 +118,9 @@ Environment variables: `MEILISEARCH_HOST`, `MEILISEARCH_KEY`, `SEARCH_ENGINE_DRI
|
|
|
118
118
|
- Meilisearch requires a running Meilisearch server
|
|
119
119
|
- Algolia requires API keys from your Algolia dashboard
|
|
120
120
|
- Settings updates don't re-index - run `search-engine:update` after changes
|
|
121
|
+
- Bulk reindex, flush and settings updates use the schema's model scope: application models override defaults, nested models are included, and framework defaults are a fallback unless explicitly enabled. Maintenance commands exit nonzero on provider errors.
|
|
122
|
+
- Model reindexing uses bounded chunks. Query, projection and provider failures propagate without retrying the entire table through `all()`. Legacy adapters without chunking still send bounded projection and write batches.
|
|
123
|
+
- Chunk queries order by the model's primary key, so database page plans cannot repeat or omit unchanged records during a rebuild.
|
|
121
124
|
|
|
122
125
|
|
|
123
126
|
## Readiness and driver boundaries
|
package/ide/vscode/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"publisher": "Stacks",
|
|
3
3
|
"name": "vscode-stacks",
|
|
4
4
|
"displayName": "Stacks",
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.302",
|
|
6
6
|
"description": "Stacks, built into VS Code: stx templates, pickier linting and formatting, encrypted env files, the dev server preview and every buddy command. No other extensions required.",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"funding": "https://github.com/sponsors/chrisbbreuer",
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/defaults",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.75.
|
|
5
|
+
"version": "0.75.302",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
8
|
"url": "git+https://github.com/stacksjs/stacks.git",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@iconify-json/f7": "^1.2.2",
|
|
47
47
|
"@iconify-json/hugeicons": "^1.2.35",
|
|
48
|
-
"@stacksjs/mobile": "0.75.
|
|
48
|
+
"@stacksjs/mobile": "0.75.302",
|
|
49
49
|
"@stacksjs/sanitizer": "0.2.687",
|
|
50
50
|
"@stacksjs/stx": "0.2.687",
|
|
51
51
|
"@xterm/addon-fit": "^0.11.0",
|