Skip to content

Commit 1553925

Browse files
authored
Merge branch 'main' into claude/project-thread-db3k9m
2 parents 08ff39d + 81bba6c commit 1553925

253 files changed

Lines changed: 2290 additions & 2356 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
---
2+
'@objectstack/account': patch
3+
'@objectstack/cli': patch
4+
'@objectstack/client': patch
5+
'@objectstack/client-react': patch
6+
'@objectstack/cloud-connection': patch
7+
'@objectstack/connector-imap': patch
8+
'@objectstack/connector-mcp': patch
9+
'@objectstack/connector-openapi': patch
10+
'@objectstack/connector-rest': patch
11+
'@objectstack/connector-slack': patch
12+
'@objectstack/console': patch
13+
'@objectstack/core': patch
14+
'@objectstack/driver-memory': patch
15+
'@objectstack/driver-mongodb': patch
16+
'@objectstack/driver-sql': patch
17+
'@objectstack/driver-sqlite-wasm': patch
18+
'@objectstack/driver-turso': patch
19+
'@objectstack/embedder-openai': patch
20+
'@objectstack/formula': patch
21+
'@objectstack/hono': patch
22+
'@objectstack/knowledge-memory': patch
23+
'@objectstack/knowledge-ragflow': patch
24+
'@objectstack/lint': patch
25+
'@objectstack/mcp': patch
26+
'@objectstack/metadata': patch
27+
'@objectstack/metadata-core': patch
28+
'@objectstack/metadata-fs': patch
29+
'@objectstack/metadata-protocol': patch
30+
'@objectstack/objectql': patch
31+
'@objectstack/observability': patch
32+
'@objectstack/organizations': patch
33+
'@objectstack/platform-objects': patch
34+
'@objectstack/plugin-approvals': patch
35+
'@objectstack/plugin-audit': patch
36+
'@objectstack/plugin-auth': patch
37+
'@objectstack/plugin-dev': patch
38+
'@objectstack/plugin-email': patch
39+
'@objectstack/plugin-hono-server': patch
40+
'@objectstack/plugin-pinyin-search': patch
41+
'@objectstack/plugin-security': patch
42+
'@objectstack/plugin-sharing': patch
43+
'@objectstack/plugin-webhooks': patch
44+
'@objectstack/rest': patch
45+
'@objectstack/runtime': patch
46+
'@objectstack/sdui-parser': patch
47+
'@objectstack/service-analytics': patch
48+
'@objectstack/service-automation': patch
49+
'@objectstack/service-cache': patch
50+
'@objectstack/service-cluster': patch
51+
'@objectstack/service-cluster-redis': patch
52+
'@objectstack/service-datasource': patch
53+
'@objectstack/service-i18n': patch
54+
'@objectstack/service-job': patch
55+
'@objectstack/service-knowledge': patch
56+
'@objectstack/service-mailbox': patch
57+
'@objectstack/service-messaging': patch
58+
'@objectstack/service-package': patch
59+
'@objectstack/service-print': patch
60+
'@objectstack/service-queue': patch
61+
'@objectstack/service-realtime': patch
62+
'@objectstack/service-settings': patch
63+
'@objectstack/service-sms': patch
64+
'@objectstack/service-storage': patch
65+
'@objectstack/setup': patch
66+
'@objectstack/skills': patch
67+
'@objectstack/spec': patch
68+
'@objectstack/studio': patch
69+
'@objectstack/trigger-api': patch
70+
'@objectstack/trigger-record-change': patch
71+
'@objectstack/trigger-schedule': patch
72+
'@objectstack/types': patch
73+
'@objectstack/verify': patch
74+
'create-objectstack': patch---
75+
76+
chore(packages): publishing metadata — per-format types in `exports`, declared `sideEffects`, and a README for the 18 published packages without one
77+
78+
Clause-②: no
79+
Metadata-protocol: none
80+
81+
Measured on a fresh `origin/main` build of all 73 published packages outside `ui/`, each staged as `npm pack` would ship it, with publint 0.3.25 and @arethetypeswrong/cli 0.18.5. Before: 73 of 73 packages carried at least one publint message and 48 carried an attw problem. After: 3 packages carry a publint message and 16 carry an attw problem, each remaining class needing a change this one deliberately does not make — an export-map shape change, or a dual-build fix in `@objectstack/core`.
82+
83+
- **Types per module format.** On 38 manifests one `types` entry served both formats, so a TypeScript consumer importing the ESM build was handed the CJS declarations — every one of attw's 38 `FalseCJS`. Each `{types, import, require}` entry becomes `{import: {types, default}, require: {types, default}}` pointing at the declaration file the same tsup run already emits for that format. No subpath is added or removed, and no JavaScript target moves. `@objectstack/core` keeps its single `types` entry: its `.d.ts` and `.d.cts` declare the same classes with private members, so serving them per format gives a consumer that reaches `core` through both resolution modes two incompatible `ObjectKernel` types, which is `@objectstack/plugin-dev`'s declaration build (it awaits `import('@objectstack/objectql')` inside a CommonJS build). Its `FalseESM` therefore stays, measured and unfixed here.
84+
- **`sideEffects` on the 72 manifests that declared none**, read per package rather than set in bulk: `@objectstack/service-cluster-redis` registers its `redis` cluster driver at module load and `create-objectstack`'s bin reaches its program through a bare import, so both declare their entry files side-effectful; everything else is `false`.
85+
- **`publishConfig: { access: 'public' }`** on the 17 that had none, the value the other 56 already declare.
86+
- **`type`** on the 39 that shipped `.js` without declaring a format — every `.js` under their `dist/` was read first and is CommonJS, which is what the absent field already meant — **`engines.node >= 22.0.0`** on the 22 that had no `engines`, and **`repository.url`** as the full `git+https://` git URL on 71.
87+
- **A README for 18 published packages that had none**: one paragraph, the first import a reader writes, and a link to the package's docs page. They are the pages npm renders, and for these 18 npm rendered nothing.

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -277,6 +277,8 @@ jobs:
277277
- 'package.json'
278278
- 'pnpm-lock.yaml'
279279
- 'tsconfig.json'
280+
- 'tsconfig.base.json'
281+
- 'tsconfig.test.base.json'
280282
- '.github/workflows/ci.yml'
281283
# BUILD INPUTS outside every package (#21202): turbo.json itself,
282284
# its `globalDependencies`, and each `$TURBO_ROOT$/…` input of a

‎docs/audits/2026-09-loadmany-consumer-census.md‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,9 @@ files that assert today's unkeyed shape.
9696
test-only fixture doubles (`*.test.ts`, not loaders anyone ships). Each shipped loader's
9797
`list()`, `loadMany()` and `loadManyKeyed()` were read at the cited lines, then the cost
9898
claim was **measured**, not guessed — either by counting the calls a fake engine/fs sees,
99-
or by timing the real implementation. Scripts are committed under `scripts/audits/` (see
100-
§5) so every number below is re-runnable.
99+
or by timing the real implementation. Scripts were committed under `scripts/audits/` (see
100+
§5) so every number below is re-runnable; they were later removed from the tree and are
101+
held at commit `7111e14ac9`.
101102

102103
| Loader | `listNames` (via `list()`) | `loadManyKeyed` | Cost of `listNames()` + N × by-name `load`/`loadDiagnosed`, vs `loadMany()` |
103104
|---|---|---|---|
@@ -289,6 +290,8 @@ direct a re-check once the rate limit clears) rather than risk a duplicate.
289290
## Commands to re-run every measurement in this census
290291

291292
```bash
293+
# The four scripts were removed from the tree; run these from a checkout of commit
294+
# 7111e14ac9, which holds them: git worktree add --detach ../objectstack-7111e14ac9 7111e14ac9
292295
# Build the dependency closures this census's scripts import from (dist, not src):
293296
pnpm --filter '@objectstack/objectql^...' build && pnpm --filter @objectstack/objectql build
294297

‎docs/audits/2026-09-multi-update-per-row-value-census.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ SELF-TEST PASSED — 10/10 cases
165165
## 3. Instrument B — runtime behavioural probe on the real engine
166166

167167
`scripts/audits/14744-before-update-per-row-value-probe.mjs`
168-
(`npx tsx … --out <path.json>`). It boots the real `ObjectQL` against a stub driver,
168+
(`npx tsx … --out <path.json>`; removed from the tree after this reading; held at commit `7111e14ac9`). It boots the real `ObjectQL` against a stub driver,
169169
dispatches handlers per row of a genuine `multi: true` update, and reads what actually
170170
reaches `driver.updateMany` — the one `SET` clause D3 gives N rows. **Four of its eight
171171
subjects are the shipped handlers themselves, imported and dispatched unmodified**; the

‎docs/audits/2026-09-tenancy-ledger-namespace-regexp-census.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ which only *mention* the call in comments), filtered to a literal `name: '...'`
7777
matching — a first pass without that step undercounted by 2
7878
(`sys_oauth_client_resource`, `sys_oauth_resource`), both because a doc comment shaped like
7979
`(255, 768]` desyncs a naive bracket scan; see the script's own header comment for detail).
80-
Script: `scripts/audits/14096-tenancy-ledger-namespace-regexp-census.mjs`.
80+
Script: `scripts/audits/14096-tenancy-ledger-namespace-regexp-census.mjs` (removed from the tree after this reading; held at commit `7111e14ac9`).
8181

8282
**Result: 84 registered platform-namespace objects** — all `sys_`-prefixed; zero `cloud_`
8383
or `ai_` object schemas exist in this repository (the ledger's own comment explains why:
@@ -282,6 +282,8 @@ under `scripts/audits/` — no exported symbol, no published payload key, nothin
282282
# Build the dependency closure the script imports from (dist, not src):
283283
pnpm --filter '@objectstack/objectql^...' build && pnpm --filter @objectstack/objectql build
284284

285+
# The script was removed from the tree; run these from a checkout of commit 7111e14ac9,
286+
# which holds it: git worktree add --detach ../objectstack-7111e14ac9 7111e14ac9
285287
# The whole census, in one command — prints the full JSON report to stdout
286288
# and a human-readable summary to stderr; exits 0 (measurement, not a gate):
287289
node scripts/audits/14096-tenancy-ledger-namespace-regexp-census.mjs

‎examples/embed-objectql/tsconfig.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"extends": "../../tsconfig.base.json",
33
"include": ["src/**/*", "test/**/*"],
44
"exclude": ["node_modules", "dist"],
55
"compilerOptions": {

‎package.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@
126126
"check:slot-lookup": "node scripts/check-slot-lookup-ratchet.mjs --self-test && node scripts/check-slot-lookup-ratchet.mjs",
127127
"check:query-options-erasure": "node scripts/check-query-options-erasure-ratchet.mjs --self-test && node scripts/check-query-options-erasure-ratchet.mjs",
128128
"check:verify-stand-in": "node scripts/check-verify-stand-in-erasure.mjs --self-test && node scripts/check-verify-stand-in-erasure.mjs",
129-
"check:service-providers": "node scripts/check-service-providers.mjs",
129+
"check:service-providers": "node scripts/check-service-providers.mjs --self-test && node scripts/check-service-providers.mjs",
130130
"check:route-envelope": "node scripts/check-route-envelope.mjs --self-test && node scripts/check-route-envelope.mjs",
131131
"check:auth-mount-ledger": "node scripts/check-auth-mount-ledger.mjs --self-test && node scripts/check-auth-mount-ledger.mjs",
132132
"check:error-code-casing": "node scripts/check-error-code-casing.mjs --self-test && node scripts/check-error-code-casing.mjs",
@@ -152,11 +152,11 @@
152152
"check:override-consistency": "node scripts/check-override-consistency.mjs --self-test && node scripts/check-override-consistency.mjs",
153153
"check:vendor-export-contract": "node scripts/check-vendor-export-contract.mjs --self-test && node scripts/check-vendor-export-contract.mjs",
154154
"check:vendor-export-contract-resolve": "node scripts/check-vendor-export-contract.mjs --self-test && node scripts/check-vendor-export-contract.mjs --resolve",
155-
"check:release-notes": "node scripts/check-release-notes.mjs",
155+
"check:release-notes": "node scripts/check-release-notes.mjs --self-test && node scripts/check-release-notes.mjs",
156156
"check:release-page-status": "node scripts/check-release-page-status.mjs --self-test && node scripts/check-release-page-status.mjs",
157157
"check:release-body": "node scripts/release-github-releases.mjs --self-test",
158158
"check:release-index-currency-sync": "node scripts/sync-release-index-currency.mjs --self-test",
159-
"check:node-version": "node scripts/check-node-version.mjs",
159+
"check:node-version": "node scripts/check-node-version.mjs --self-test && node scripts/check-node-version.mjs",
160160
"check:pnpm-acquisition": "node scripts/check-pnpm-acquisition.mjs --self-test && node scripts/check-pnpm-acquisition.mjs",
161161
"check:workflow-status-functions": "node scripts/check-workflow-status-functions.mjs --self-test && node scripts/check-workflow-status-functions.mjs",
162162
"check:workflow-step-name-quoting": "node scripts/check-workflow-step-name-quoting.mjs --self-test && node scripts/check-workflow-step-name-quoting.mjs",

‎packages/adapters/hono/package.json‎

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,20 @@
22
"name": "@objectstack/hono",
33
"version": "18.1.0",
44
"license": "Apache-2.0",
5+
"type": "commonjs",
56
"main": "dist/index.js",
67
"types": "dist/index.d.ts",
8+
"sideEffects": false,
79
"exports": {
810
".": {
9-
"types": "./dist/index.d.ts",
10-
"import": "./dist/index.mjs",
11-
"require": "./dist/index.js"
11+
"import": {
12+
"types": "./dist/index.d.mts",
13+
"default": "./dist/index.mjs"
14+
},
15+
"require": {
16+
"types": "./dist/index.d.ts",
17+
"default": "./dist/index.js"
18+
}
1219
}
1320
},
1421
"scripts": {
@@ -42,7 +49,7 @@
4249
"author": "ObjectStack",
4350
"repository": {
4451
"type": "git",
45-
"url": "https://github.com/objectstack-ai/objectstack.git",
52+
"url": "git+https://github.com/objectstack-ai/objectstack.git",
4653
"directory": "packages/adapters/hono"
4754
},
4855
"homepage": "https://objectstack.ai/docs",

‎packages/adapters/hono/tsconfig.json‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
{
2-
"extends": "../../../tsconfig.json",
2+
"extends": "../../../tsconfig.base.json",
33
"compilerOptions": {
44
"outDir": "./dist",
55
"rootDir": "./src",
6-
"module": "NodeNext",
7-
"moduleResolution": "NodeNext",
86
"esModuleInterop": true,
97
"skipLibCheck": true,
108
"lib": [

‎packages/adapters/hono/tsconfig.test.json‎

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,8 @@
6363
// ledger to be added to -- the same call `metadata-fs` and
6464
// `trigger-record-change` recorded.
6565
{
66-
"extends": "./tsconfig.json",
66+
"extends": ["./tsconfig.json", "../../../tsconfig.test.base.json"],
6767
"compilerOptions": {
68-
"noEmit": true,
69-
"module": "esnext",
70-
"moduleResolution": "bundler",
7168
"lib": ["ES2022", "DOM", "DOM.Iterable"]
7269
},
7370
"include": ["src/**/*"],

0 commit comments

Comments
 (0)