Repository navigation
Commit b566735
docs(getting-started): describe the packages a 19 scaffold pins and where PostgreSQL's pg comes from (#38885)
<!-- claude-projects-attribution: {"github_login":"huangyiirene"} -->
_Requested by **Irene** · [project
thread](https://claude.ai/code/project/chan_01TJXtQ1tVD26ecLDZxFS67x?thread=cmsg_01TJXtQ1tVD26ecLDZxFS67xVyDYAjYnLgMAN8BSqZxYiX)_
Fixes #38851
## What changes
Docs only, two pages:
- `content/docs/getting-started/your-first-project.mdx`
- The connector paragraph says the scaffold pins no generic connector
executor, and keeps the add-one-when-needed steps (`npm install
@objectstack/connector-rest`, list it in `plugins:`, add a `connectors:`
entry). That matches the blank template's README and
`objectstack.config.ts` comment.
- "The packages you depend on" lists the pins the 19 scaffold writes
(`packages/create-objectstack/src/templates/blank/package.json`):
`spec`, `runtime`, `plugin-hono-server`; dev `cli`, `skills`, `verify`.
The connector-executor row is gone and an `@objectstack/skills` row is
added. The sentence says the pins sit at the scaffolder's exact version
(`template-consistency.test.ts`) and no longer counts them.
- The driver paragraph says PostgreSQL needs only `OS_DATABASE_URL`:
`pg` is an optional peer of `driver-sql`, and the CLI brings it through
`@objectstack/knowledge-pgvector`. MySQL still needs `npm install
mysql2`, or the boot is refused.
- `content/docs/data-modeling/drivers.mdx`: the `postgres://` row keeps
"install it yourself, or boot fails loudly", now scoped to an embedder
without the CLI. A CLI project already has `pg`.
## Why
The card measured `npm create objectstack@19.0.0-next.3`. It writes no
connector-executor pins and does pin `@objectstack/skills`. It also
boots on PostgreSQL with no `pg` install, because `pg@8.23.1` arrives
through `@objectstack/knowledge-pgvector`.
The docs are the side to change, and `pg` arriving that way is intended:
- `KNOWLEDGE_STORE_PROVIDERS` in
`packages/core/src/capability-providers.ts` (ADR-0161) names
`@objectstack/knowledge-pgvector` as the knowledge store when the
platform database is PostgreSQL.
- That package has `pg` as a hard dependency.
- `@objectstack/cli` (`dependencies`) and `@objectstack/verify` depend
on it.
`@objectstack/driver-sql` keeps `pg` as an optional peer, so an embedder
that boots `@objectstack/runtime` without the CLI still has to install
it. That is why the boot-refusal wording is scoped and kept.
Read at `main` 81aacd3.
## Verification
Run locally at head `d9734630` (branch off `main` 81aacd3; `main` has 6
newer commits, none touching the two pages or the package manifests and
template cited above, and the merge is clean).
`NODE_OPTIONS=--max-old-space-size=8192`. Every command below exited 0:
the full `pnpm build`, then the 45 commands `node
scripts/pm/dispatch-gates.mjs --commands` derives for this diff.
<details><summary>Gate log (46 commands, all exit 0)</summary>
```text
pnpm build :: exit 0
node scripts/check-adr-links.mjs :: exit 0
node scripts/check-adr-links.mjs --self-test :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/check-doc-route-spelling.mjs --advisory :: exit 0
node scripts/check-doc-route-spelling.mjs --self-test :: exit 0
node scripts/check-docs-section-name.mjs :: exit 0
node scripts/check-docs-section-name.mjs --self-test :: exit 0
node scripts/check-section-landing-index.mjs :: exit 0
node scripts/check-section-landing-index.mjs --self-test :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm --filter @objectstack/lint run check:doc-security-posture :: exit 0
pnpm --filter @objectstack/spec run check:docs :: exit 0
pnpm --filter @objectstack/spec run check:empty-state :: exit 0
pnpm --filter @objectstack/spec run check:liveness :: exit 0
pnpm --filter @objectstack/spec run check:skill-examples :: exit 0
pnpm --filter @objectstack/spec run check:strictness-ledger :: exit 0
pnpm --filter @objectstack/spec run check:variant-docs :: exit 0
pnpm --filter @objectstack/spec run check:yaml-examples :: exit 0
pnpm check:adr-anchors :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:closed-ceremony-text :: exit 0
pnpm check:corpus-claim-drift :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-anchors :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:doc-frontmatter :: exit 0
pnpm check:docs-audit-scope :: exit 0
pnpm check:docs-redirects :: exit 0
pnpm check:docs-single-h1 :: exit 0
pnpm check:docs-spec-enumerations :: exit 0
pnpm check:docs-transcript-drift :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:pm-expected-skips :: exit 0
pnpm check:published-readme-links :: exit 0
pnpm check:react-page-adapter-contract :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:role-word :: exit 0
pnpm check:skill-identifier-liveness :: exit 0
pnpm check:vendor-version-stamps :: exit 0
pnpm check:watch-hint-literal :: exit 0
```
</details>
`check-commit-card-trailers --range origin/main..HEAD`: 2 commits clean.
Clause-②: no
Metadata-protocol: none
No changeset: `content/docs/**` publishes from no package, so the PR
carries `skip-changeset`.
## Human Minimum
- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(not touched)
- [x] 2. Every name I added uses the casing for its kind. (no names
added)
- [x] 3. No formatter ran; `pnpm lint` passes. (no code changed; lint
not run)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset. (publishes
nothing)
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed. (not touched)
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English.
- [x] The *Before Submitting* list in CONTRIBUTING.md is done.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01J8VVAopEc3J75SNarkyP3g)_
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01J8VVAopEc3J75SNarkyP3g
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 4b954a7 commit b566735
2 files changed
Lines changed: 18 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
| 47 | + | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | | - | |
223 | | - | |
224 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
225 | 226 | | |
226 | 227 | | |
227 | 228 | | |
| |||
261 | 262 | | |
262 | 263 | | |
263 | 264 | | |
264 | | - | |
| 265 | + | |
| 266 | + | |
265 | 267 | | |
266 | 268 | | |
267 | 269 | | |
268 | 270 | | |
269 | 271 | | |
270 | | - | |
| 272 | + | |
271 | 273 | | |
272 | | - | |
273 | 274 | | |
| 275 | + | |
274 | 276 | | |
275 | 277 | | |
| 278 | + | |
| 279 | + | |
276 | 280 | | |
277 | 281 | | |
278 | 282 | | |
279 | 283 | | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
284 | 291 | | |
285 | 292 | | |
286 | 293 | | |
| |||
0 commit comments