diff --git a/.changeset/26095-publishing-metadata.md b/.changeset/26095-publishing-metadata.md new file mode 100644 index 00000000000..0dd9472cf82 --- /dev/null +++ b/.changeset/26095-publishing-metadata.md @@ -0,0 +1,87 @@ +--- +'@objectstack/account': patch +'@objectstack/cli': patch +'@objectstack/client': patch +'@objectstack/client-react': patch +'@objectstack/cloud-connection': patch +'@objectstack/connector-imap': patch +'@objectstack/connector-mcp': patch +'@objectstack/connector-openapi': patch +'@objectstack/connector-rest': patch +'@objectstack/connector-slack': patch +'@objectstack/console': patch +'@objectstack/core': patch +'@objectstack/driver-memory': patch +'@objectstack/driver-mongodb': patch +'@objectstack/driver-sql': patch +'@objectstack/driver-sqlite-wasm': patch +'@objectstack/driver-turso': patch +'@objectstack/embedder-openai': patch +'@objectstack/formula': patch +'@objectstack/hono': patch +'@objectstack/knowledge-memory': patch +'@objectstack/knowledge-ragflow': patch +'@objectstack/lint': patch +'@objectstack/mcp': patch +'@objectstack/metadata': patch +'@objectstack/metadata-core': patch +'@objectstack/metadata-fs': patch +'@objectstack/metadata-protocol': patch +'@objectstack/objectql': patch +'@objectstack/observability': patch +'@objectstack/organizations': patch +'@objectstack/platform-objects': patch +'@objectstack/plugin-approvals': patch +'@objectstack/plugin-audit': patch +'@objectstack/plugin-auth': patch +'@objectstack/plugin-dev': patch +'@objectstack/plugin-email': patch +'@objectstack/plugin-hono-server': patch +'@objectstack/plugin-pinyin-search': patch +'@objectstack/plugin-security': patch +'@objectstack/plugin-sharing': patch +'@objectstack/plugin-webhooks': patch +'@objectstack/rest': patch +'@objectstack/runtime': patch +'@objectstack/sdui-parser': patch +'@objectstack/service-analytics': patch +'@objectstack/service-automation': patch +'@objectstack/service-cache': patch +'@objectstack/service-cluster': patch +'@objectstack/service-cluster-redis': patch +'@objectstack/service-datasource': patch +'@objectstack/service-i18n': patch +'@objectstack/service-job': patch +'@objectstack/service-knowledge': patch +'@objectstack/service-mailbox': patch +'@objectstack/service-messaging': patch +'@objectstack/service-package': patch +'@objectstack/service-print': patch +'@objectstack/service-queue': patch +'@objectstack/service-realtime': patch +'@objectstack/service-settings': patch +'@objectstack/service-sms': patch +'@objectstack/service-storage': patch +'@objectstack/setup': patch +'@objectstack/skills': patch +'@objectstack/spec': patch +'@objectstack/studio': patch +'@objectstack/trigger-api': patch +'@objectstack/trigger-record-change': patch +'@objectstack/trigger-schedule': patch +'@objectstack/types': patch +'@objectstack/verify': patch +'create-objectstack': patch--- + +chore(packages): publishing metadata — per-format types in `exports`, declared `sideEffects`, and a README for the 18 published packages without one + +Clause-②: no +Metadata-protocol: none + +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`. + +- **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. +- **`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`. +- **`publishConfig: { access: 'public' }`** on the 17 that had none, the value the other 56 already declare. +- **`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. +- **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. diff --git a/packages/adapters/hono/package.json b/packages/adapters/hono/package.json index 9b94c918a76..f87bee91f5b 100644 --- a/packages/adapters/hono/package.json +++ b/packages/adapters/hono/package.json @@ -2,13 +2,20 @@ "name": "@objectstack/hono", "version": "18.1.0", "license": "Apache-2.0", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -42,7 +49,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/adapters/hono" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/apps/account/README.md b/packages/apps/account/README.md new file mode 100644 index 00000000000..30ae02f9b11 --- /dev/null +++ b/packages/apps/account/README.md @@ -0,0 +1,9 @@ +# @objectstack/account + +The end-user Account app: the self-service app that navigates the identity objects owned by `@objectstack/plugin-auth`. It is a console navigation-shell app packaged as its own ObjectStack app package (ADR-0048: one app per package), so `/apps/account` resolves to exactly this app. `AccountAppPlugin` registers its manifest with the kernel. + +```typescript +import { AccountAppPlugin } from '@objectstack/account'; +``` + +Documentation: [Apps](https://objectstack.ai/docs/ui/apps) diff --git a/packages/apps/account/package.json b/packages/apps/account/package.json index a618201d911..5db17faa6bf 100644 --- a/packages/apps/account/package.json +++ b/packages/apps/account/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "ObjectStack Account — the end-user account/self-service console app, packaged as its own ObjectStack app package (ADR-0048: one app per package).", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -34,7 +41,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/apps/account" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/apps/setup/README.md b/packages/apps/setup/README.md new file mode 100644 index 00000000000..078d81a0b5f --- /dev/null +++ b/packages/apps/setup/README.md @@ -0,0 +1,9 @@ +# @objectstack/setup + +The Setup app: the platform administration app, plus the baseline Setup navigation that other packages extend. It is a console navigation-shell app packaged as its own ObjectStack app package (ADR-0048: one app per package), so `/apps/setup` resolves to exactly this app. `SetupAppPlugin` registers its manifest with the kernel. + +```typescript +import { SetupAppPlugin } from '@objectstack/setup'; +``` + +Documentation: [The Setup app](https://objectstack.ai/docs/ui/setup-app) diff --git a/packages/apps/setup/package.json b/packages/apps/setup/package.json index bbdc55a16ec..3fc1968a21f 100644 --- a/packages/apps/setup/package.json +++ b/packages/apps/setup/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "ObjectStack Setup — the platform administration app, packaged as its own ObjectStack app package (ADR-0048: one app per package).", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -34,7 +41,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/apps/setup" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/apps/studio/README.md b/packages/apps/studio/README.md new file mode 100644 index 00000000000..c68bfbd1aea --- /dev/null +++ b/packages/apps/studio/README.md @@ -0,0 +1,9 @@ +# @objectstack/studio + +The Studio app: the metadata builder, packaged as its own ObjectStack app package (ADR-0048: one app per package). A stock boot does not register it, because the console ships a dedicated Studio surface; a host that wants Studio as a navigable app registers `StudioAppPlugin` itself. + +```typescript +import { StudioAppPlugin } from '@objectstack/studio'; +``` + +Documentation: [Apps](https://objectstack.ai/docs/ui/apps) diff --git a/packages/apps/studio/package.json b/packages/apps/studio/package.json index 7e122fa5de4..e62906591da 100644 --- a/packages/apps/studio/package.json +++ b/packages/apps/studio/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "ObjectStack Studio — the metadata builder app, packaged as its own ObjectStack app package (ADR-0048: one app per package).", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -34,7 +41,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/apps/studio" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/cli/package.json b/packages/cli/package.json index 41e20419fd4..96b0a90d9f2 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -4,6 +4,7 @@ "description": "Command Line Interface for ObjectStack Protocol", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "types": "./dist/index.d.ts", @@ -141,7 +142,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/cli" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/client-react/package.json b/packages/client-react/package.json index 9d2266fbacd..9de8294fa35 100644 --- a/packages/client-react/package.json +++ b/packages/client-react/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "React hooks for ObjectStack Client SDK", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -46,7 +53,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/client-react" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/client/package.json b/packages/client/package.json index 0ed5ddf783f..fa589f719cb 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "Official Client SDK for ObjectStack Protocol", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -53,7 +60,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/client" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/cloud-connection/package.json b/packages/cloud-connection/package.json index 4a8656800ff..ba6b08b46e0 100644 --- a/packages/cloud-connection/package.json +++ b/packages/cloud-connection/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -50,7 +51,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/cloud-connection" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/connectors/connector-imap/package.json b/packages/connectors/connector-imap/package.json index 9fa0bfac0f2..b915838e305 100644 --- a/packages/connectors/connector-imap/package.json +++ b/packages/connectors/connector-imap/package.json @@ -3,18 +3,30 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "IMAP connector for ObjectStack — a read-only IMAP4rev1 session (EXAMINE, UID FETCH with BODY.PEEK) and the per-user-shaped mail account and credential abstraction the mailbox sync connects through.", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } }, "./testing": { - "types": "./dist/testing.d.ts", - "import": "./dist/testing.mjs", - "require": "./dist/testing.js" + "import": { + "types": "./dist/testing.d.mts", + "default": "./dist/testing.mjs" + }, + "require": { + "types": "./dist/testing.d.ts", + "default": "./dist/testing.js" + } } }, "scripts": { @@ -36,12 +48,18 @@ ], "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/connectors/connector-imap" }, + "publishConfig": { + "access": "public" + }, "files": [ "dist", "README.md", "CHANGELOG.md" - ] + ], + "engines": { + "node": ">=22.0.0" + } } diff --git a/packages/connectors/connector-mcp/README.md b/packages/connectors/connector-mcp/README.md new file mode 100644 index 00000000000..36544ce9f16 --- /dev/null +++ b/packages/connectors/connector-mcp/README.md @@ -0,0 +1,9 @@ +# @objectstack/connector-mcp + +The Model Context Protocol (MCP) connector: a generic adapter that turns the tools of any MCP server into connector actions on the automation engine's connector registry (ADR-0024), so a flow can call them like any other action. + +```typescript +import { ConnectorMcpPlugin } from '@objectstack/connector-mcp'; +``` + +Documentation: [Connectors](https://objectstack.ai/docs/automation/connectors) diff --git a/packages/connectors/connector-mcp/package.json b/packages/connectors/connector-mcp/package.json index ecbb5333f64..4a95f5ef4e0 100644 --- a/packages/connectors/connector-mcp/package.json +++ b/packages/connectors/connector-mcp/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "Model Context Protocol (MCP) connector for ObjectStack — a generic adapter that turns any MCP server's tools into a connector's actions on the automation engine's connector registry (ADR-0024).", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -41,12 +48,18 @@ ], "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/connectors/connector-mcp" }, + "publishConfig": { + "access": "public" + }, "files": [ "dist", "README.md", "CHANGELOG.md" - ] + ], + "engines": { + "node": ">=22.0.0" + } } diff --git a/packages/connectors/connector-openapi/README.md b/packages/connectors/connector-openapi/README.md new file mode 100644 index 00000000000..5935e13bae1 --- /dev/null +++ b/packages/connectors/connector-openapi/README.md @@ -0,0 +1,9 @@ +# @objectstack/connector-openapi + +The OpenAPI connector generator: it turns a declarative OpenAPI 3.x document into connector actions on the automation engine's connector registry (ADR-0023), with a self-contained static-auth HTTP transport. + +```typescript +import { ConnectorOpenApiPlugin } from '@objectstack/connector-openapi'; +``` + +Documentation: [Connectors](https://objectstack.ai/docs/automation/connectors) diff --git a/packages/connectors/connector-openapi/package.json b/packages/connectors/connector-openapi/package.json index a27c404612d..a439057efd7 100644 --- a/packages/connectors/connector-openapi/package.json +++ b/packages/connectors/connector-openapi/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "OpenAPI 3.x connector generator for ObjectStack — turns a declarative OpenAPI document into connector actions on the automation engine's registry, with a self-contained static-auth HTTP transport (ADR-0023).", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -39,12 +46,18 @@ ], "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/connectors/connector-openapi" }, + "publishConfig": { + "access": "public" + }, "files": [ "dist", "README.md", "CHANGELOG.md" - ] + ], + "engines": { + "node": ">=22.0.0" + } } diff --git a/packages/connectors/connector-rest/README.md b/packages/connectors/connector-rest/README.md new file mode 100644 index 00000000000..d14916dc41d --- /dev/null +++ b/packages/connectors/connector-rest/README.md @@ -0,0 +1,9 @@ +# @objectstack/connector-rest + +The generic REST connector: the reference concrete connector, which registers a `request` action on the automation engine's connector registry (ADR-0018 §Addendum) so a flow can call an HTTP endpoint. + +```typescript +import { ConnectorRestPlugin } from '@objectstack/connector-rest'; +``` + +Documentation: [Connectors](https://objectstack.ai/docs/automation/connectors) diff --git a/packages/connectors/connector-rest/package.json b/packages/connectors/connector-rest/package.json index cd688a0533b..8236b60c430 100644 --- a/packages/connectors/connector-rest/package.json +++ b/packages/connectors/connector-rest/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "Generic REST connector for ObjectStack — the reference concrete connector that registers a `request` action on the automation engine's connector registry (ADR-0018 §Addendum).", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -38,12 +45,18 @@ ], "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/connectors/connector-rest" }, + "publishConfig": { + "access": "public" + }, "files": [ "dist", "README.md", "CHANGELOG.md" - ] + ], + "engines": { + "node": ">=22.0.0" + } } diff --git a/packages/connectors/connector-slack/README.md b/packages/connectors/connector-slack/README.md new file mode 100644 index 00000000000..8673df7157b --- /dev/null +++ b/packages/connectors/connector-slack/README.md @@ -0,0 +1,9 @@ +# @objectstack/connector-slack + +The Slack Web API connector: it registers `chat.postMessage`, `chat.update` and `call` actions on the automation engine's connector registry (ADR-0018 §Addendum, ADR-0022). + +```typescript +import { ConnectorSlackPlugin } from '@objectstack/connector-slack'; +``` + +Documentation: [Connectors](https://objectstack.ai/docs/automation/connectors) diff --git a/packages/connectors/connector-slack/package.json b/packages/connectors/connector-slack/package.json index cc3401140b0..fc9e845a6d0 100644 --- a/packages/connectors/connector-slack/package.json +++ b/packages/connectors/connector-slack/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "Slack Web API connector for ObjectStack — registers `chat.postMessage` / `chat.update` / `call` actions on the automation engine's connector registry (ADR-0018 §Addendum, ADR-0022).", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -36,12 +43,18 @@ ], "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/connectors/connector-slack" }, + "publishConfig": { + "access": "public" + }, "files": [ "dist", "README.md", "CHANGELOG.md" - ] + ], + "engines": { + "node": ">=22.0.0" + } } diff --git a/packages/console/package.json b/packages/console/package.json index c410980761f..69c416b6c33 100644 --- a/packages/console/package.json +++ b/packages/console/package.json @@ -20,11 +20,15 @@ "README.md", "CHANGELOG.md" ], + "sideEffects": false, "exports": { "./package.json": "./package.json" }, "scripts": { "build:dist": "bash build-dist.sh", "prepublishOnly": "node -e \"const fs=require('fs');const p='dist/index.html';if(!fs.existsSync(p)){console.error('\\n✗ @objectstack/console: '+p+' is missing — run pnpm console:build at the repo root before publishing.\\n');process.exit(1)}\"" + }, + "engines": { + "node": ">=22.0.0" } } diff --git a/packages/core/package.json b/packages/core/package.json index 128ec66de5a..5f7cf571e15 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "types": "./dist/index.d.ts", @@ -51,7 +52,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/core" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/create-objectstack/package.json b/packages/create-objectstack/package.json index 3a078037a98..9cb07297038 100644 --- a/packages/create-objectstack/package.json +++ b/packages/create-objectstack/package.json @@ -5,6 +5,9 @@ "bin": { "create-objectstack": "./bin/create-objectstack.js" }, + "sideEffects": [ + "./dist/index.js" + ], "exports": { "./created-summary": { "types": "./dist/created-summary.d.ts", @@ -40,7 +43,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/create-objectstack" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/drivers/driver-memory/package.json b/packages/drivers/driver-memory/package.json index d84d77921e6..625e2d7098c 100644 --- a/packages/drivers/driver-memory/package.json +++ b/packages/drivers/driver-memory/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "In-Memory Driver for ObjectStack (Reference Implementation)", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -41,7 +48,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/drivers/driver-memory" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/drivers/driver-mongodb/package.json b/packages/drivers/driver-mongodb/package.json index 73cbdf9d764..443e1b6aa23 100644 --- a/packages/drivers/driver-mongodb/package.json +++ b/packages/drivers/driver-mongodb/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "MongoDB Driver for ObjectStack - Native document database driver via official mongodb client", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -44,7 +51,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/drivers/driver-mongodb" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/drivers/driver-sql/package.json b/packages/drivers/driver-sql/package.json index 2eacc3edca1..fd452d29bd9 100644 --- a/packages/drivers/driver-sql/package.json +++ b/packages/drivers/driver-sql/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "SQL Driver for ObjectStack - Supports PostgreSQL, MySQL, SQLite via Knex", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -63,7 +70,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/drivers/driver-sql" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/drivers/driver-sqlite-wasm/package.json b/packages/drivers/driver-sqlite-wasm/package.json index 94b827e7bbb..08145cf09fe 100644 --- a/packages/drivers/driver-sqlite-wasm/package.json +++ b/packages/drivers/driver-sqlite-wasm/package.json @@ -13,13 +13,20 @@ "webcontainer", "browser" ], + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -46,7 +53,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/drivers/driver-sqlite-wasm" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/drivers/driver-turso/package.json b/packages/drivers/driver-turso/package.json index 21f161a244a..2727c761c1d 100644 --- a/packages/drivers/driver-turso/package.json +++ b/packages/drivers/driver-turso/package.json @@ -13,13 +13,20 @@ "serverless", "embedded-replica" ], + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -54,7 +61,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/drivers/driver-turso" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/formula/package.json b/packages/formula/package.json index 188c19dea42..42994272604 100644 --- a/packages/formula/package.json +++ b/packages/formula/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "ObjectStack canonical expression engine — CEL (cel-js) + ObjectStack stdlib + dialect registry", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -38,7 +45,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/formula" }, "homepage": "https://objectstack.ai/docs", @@ -50,5 +57,8 @@ "dist", "README.md", "CHANGELOG.md" - ] + ], + "engines": { + "node": ">=22.0.0" + } } diff --git a/packages/lint/package.json b/packages/lint/package.json index 0237e4fc43a..b13144a5c87 100644 --- a/packages/lint/package.json +++ b/packages/lint/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -72,7 +73,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/lint" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/mcp/package.json b/packages/mcp/package.json index 2cc31cabe4e..07334a55dbc 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -51,7 +52,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/mcp" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/metadata-core/package.json b/packages/metadata-core/package.json index 294280dcbcb..fe060b71b67 100644 --- a/packages/metadata-core/package.json +++ b/packages/metadata-core/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -55,7 +56,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/metadata-core" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/metadata-fs/package.json b/packages/metadata-fs/package.json index cadfcbb3a9d..3bd48627974 100644 --- a/packages/metadata-fs/package.json +++ b/packages/metadata-fs/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -50,7 +51,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/metadata-fs" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/metadata-protocol/package.json b/packages/metadata-protocol/package.json index 8abb0cf46c5..48be8920af4 100644 --- a/packages/metadata-protocol/package.json +++ b/packages/metadata-protocol/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -60,7 +61,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/metadata-protocol" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/metadata/package.json b/packages/metadata/package.json index 3888f07489d..832f4ffab3a 100644 --- a/packages/metadata/package.json +++ b/packages/metadata/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -110,7 +111,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/metadata" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/objectql/package.json b/packages/objectql/package.json index 4673e983d4b..a982b3401e0 100644 --- a/packages/objectql/package.json +++ b/packages/objectql/package.json @@ -3,18 +3,30 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "Isomorphic ObjectQL Engine for ObjectStack", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } }, "./core": { - "types": "./dist/core.d.ts", - "import": "./dist/core.mjs", - "require": "./dist/core.js" + "import": { + "types": "./dist/core.d.mts", + "default": "./dist/core.mjs" + }, + "require": { + "types": "./dist/core.d.ts", + "default": "./dist/core.js" + } } }, "scripts": { @@ -52,7 +64,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/objectql" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/observability/package.json b/packages/observability/package.json index 40bfe1cce56..d0c75029568 100644 --- a/packages/observability/package.json +++ b/packages/observability/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -43,7 +44,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/observability" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/platform-objects/README.md b/packages/platform-objects/README.md new file mode 100644 index 00000000000..229f45213cf --- /dev/null +++ b/packages/platform-objects/README.md @@ -0,0 +1,9 @@ +# @objectstack/platform-objects + +The core platform object schemas: the identity, security, audit, integration, metadata and system objects every ObjectStack environment carries. Each domain is also importable on its own subpath (`@objectstack/platform-objects/identity`, `/security`, …), and `PlatformObjectsPlugin` registers the whole set with the kernel. + +```typescript +import { PlatformObjectsPlugin } from '@objectstack/platform-objects'; +``` + +Documentation: [Packages](https://objectstack.ai/docs/plugins/packages) diff --git a/packages/platform-objects/package.json b/packages/platform-objects/package.json index 71b4b5b413a..5b9828a1691 100644 --- a/packages/platform-objects/package.json +++ b/packages/platform-objects/package.json @@ -3,63 +3,120 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "Core platform object schemas for ObjectStack — identity, security, audit, tenant, and metadata objects", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } }, "./identity": { - "types": "./dist/identity/index.d.ts", - "import": "./dist/identity/index.mjs", - "require": "./dist/identity/index.js" + "import": { + "types": "./dist/identity/index.d.mts", + "default": "./dist/identity/index.mjs" + }, + "require": { + "types": "./dist/identity/index.d.ts", + "default": "./dist/identity/index.js" + } }, "./security": { - "types": "./dist/security/index.d.ts", - "import": "./dist/security/index.mjs", - "require": "./dist/security/index.js" + "import": { + "types": "./dist/security/index.d.mts", + "default": "./dist/security/index.mjs" + }, + "require": { + "types": "./dist/security/index.d.ts", + "default": "./dist/security/index.js" + } }, "./audit": { - "types": "./dist/audit/index.d.ts", - "import": "./dist/audit/index.mjs", - "require": "./dist/audit/index.js" + "import": { + "types": "./dist/audit/index.d.mts", + "default": "./dist/audit/index.mjs" + }, + "require": { + "types": "./dist/audit/index.d.ts", + "default": "./dist/audit/index.js" + } }, "./integration": { - "types": "./dist/integration/index.d.ts", - "import": "./dist/integration/index.mjs", - "require": "./dist/integration/index.js" + "import": { + "types": "./dist/integration/index.d.mts", + "default": "./dist/integration/index.mjs" + }, + "require": { + "types": "./dist/integration/index.d.ts", + "default": "./dist/integration/index.js" + } }, "./metadata": { - "types": "./dist/metadata/index.d.ts", - "import": "./dist/metadata/index.mjs", - "require": "./dist/metadata/index.js" + "import": { + "types": "./dist/metadata/index.d.mts", + "default": "./dist/metadata/index.mjs" + }, + "require": { + "types": "./dist/metadata/index.d.ts", + "default": "./dist/metadata/index.js" + } }, "./system": { - "types": "./dist/system/index.d.ts", - "import": "./dist/system/index.mjs", - "require": "./dist/system/index.js" + "import": { + "types": "./dist/system/index.d.mts", + "default": "./dist/system/index.mjs" + }, + "require": { + "types": "./dist/system/index.d.ts", + "default": "./dist/system/index.js" + } }, "./apps": { - "types": "./dist/apps/index.d.ts", - "import": "./dist/apps/index.mjs", - "require": "./dist/apps/index.js" + "import": { + "types": "./dist/apps/index.d.mts", + "default": "./dist/apps/index.mjs" + }, + "require": { + "types": "./dist/apps/index.d.ts", + "default": "./dist/apps/index.js" + } }, "./pages": { - "types": "./dist/pages/index.d.ts", - "import": "./dist/pages/index.mjs", - "require": "./dist/pages/index.js" + "import": { + "types": "./dist/pages/index.d.mts", + "default": "./dist/pages/index.mjs" + }, + "require": { + "types": "./dist/pages/index.d.ts", + "default": "./dist/pages/index.js" + } }, "./metadata-translations": { - "types": "./dist/metadata-translations/index.d.ts", - "import": "./dist/metadata-translations/index.mjs", - "require": "./dist/metadata-translations/index.js" + "import": { + "types": "./dist/metadata-translations/index.d.mts", + "default": "./dist/metadata-translations/index.mjs" + }, + "require": { + "types": "./dist/metadata-translations/index.d.ts", + "default": "./dist/metadata-translations/index.js" + } }, "./plugin": { - "types": "./dist/plugin.d.ts", - "import": "./dist/plugin.mjs", - "require": "./dist/plugin.js" + "import": { + "types": "./dist/plugin.d.mts", + "default": "./dist/plugin.mjs" + }, + "require": { + "types": "./dist/plugin.d.ts", + "default": "./dist/plugin.js" + } } }, "scripts": { @@ -93,7 +150,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/platform-objects" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/plugins/embedder-openai/package.json b/packages/plugins/embedder-openai/package.json index ed8dd3b36ad..9c20c70b7de 100644 --- a/packages/plugins/embedder-openai/package.json +++ b/packages/plugins/embedder-openai/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "OpenAI-compatible embedder for ObjectStack — works against OpenAI, 阿里通义 DashScope, 智谱 BigModel, 硅基流动 SiliconFlow, 火山引擎 Doubao, MiniMax, Ollama, and any drop-in OpenAI-shape endpoint.", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -42,12 +49,18 @@ ], "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/plugins/embedder-openai" }, + "publishConfig": { + "access": "public" + }, "files": [ "dist", "README.md", "CHANGELOG.md" - ] + ], + "engines": { + "node": ">=22.0.0" + } } diff --git a/packages/plugins/knowledge-memory/package.json b/packages/plugins/knowledge-memory/package.json index edad31cfa51..a7af7dd59f7 100644 --- a/packages/plugins/knowledge-memory/package.json +++ b/packages/plugins/knowledge-memory/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "In-memory knowledge adapter for ObjectStack (dev / test reference implementation).", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -39,12 +46,18 @@ ], "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/plugins/knowledge-memory" }, + "publishConfig": { + "access": "public" + }, "files": [ "dist", "README.md", "CHANGELOG.md" - ] + ], + "engines": { + "node": ">=22.0.0" + } } diff --git a/packages/plugins/knowledge-ragflow/package.json b/packages/plugins/knowledge-ragflow/package.json index 42eb81688dd..f4afafed096 100644 --- a/packages/plugins/knowledge-ragflow/package.json +++ b/packages/plugins/knowledge-ragflow/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "RAGFlow knowledge adapter for ObjectStack — production-grade RAG via the Apache 2.0 RAGFlow REST API.", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -39,12 +46,18 @@ ], "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/plugins/knowledge-ragflow" }, + "publishConfig": { + "access": "public" + }, "files": [ "dist", "README.md", "CHANGELOG.md" - ] + ], + "engines": { + "node": ">=22.0.0" + } } diff --git a/packages/plugins/organizations/package.json b/packages/plugins/organizations/package.json index e6d23441d71..9142d027fc4 100644 --- a/packages/plugins/organizations/package.json +++ b/packages/plugins/organizations/package.json @@ -3,14 +3,21 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "Multi-organization runtime for ObjectStack — registers the `org-scoping` service that turns single-database row-level Organization isolation on: `organization_id` auto-stamp on insert, per-org seed replay, default-organization bootstrap, and the walled-posture membership-policy gate.", + "type": "commonjs", "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -50,7 +57,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/plugins/organizations" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/plugins/plugin-approvals/README.md b/packages/plugins/plugin-approvals/README.md new file mode 100644 index 00000000000..588dd7c6ca4 --- /dev/null +++ b/packages/plugins/plugin-approvals/README.md @@ -0,0 +1,9 @@ +# @objectstack/plugin-approvals + +The multi-step approval engine: the `sys_approval_process`, `sys_approval_request` and `sys_approval_action` objects and the `IApprovalService` that drives a record through its approval steps. `ApprovalsServicePlugin` registers both with the kernel. + +```typescript +import { ApprovalsServicePlugin } from '@objectstack/plugin-approvals'; +``` + +Documentation: [Approvals](https://objectstack.ai/docs/automation/approvals) diff --git a/packages/plugins/plugin-approvals/package.json b/packages/plugins/plugin-approvals/package.json index 0befd93c3b4..ac8350ccf5d 100644 --- a/packages/plugins/plugin-approvals/package.json +++ b/packages/plugins/plugin-approvals/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "Multi-step approval engine for ObjectStack — sys_approval_process + sys_approval_request + sys_approval_action + IApprovalService.", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -50,12 +57,18 @@ ], "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/plugins/plugin-approvals" }, + "publishConfig": { + "access": "public" + }, "files": [ "dist", "README.md", "CHANGELOG.md" - ] + ], + "engines": { + "node": ">=22.0.0" + } } diff --git a/packages/plugins/plugin-audit/package.json b/packages/plugins/plugin-audit/package.json index 89ef8558add..b977ae3ece7 100644 --- a/packages/plugins/plugin-audit/package.json +++ b/packages/plugins/plugin-audit/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "Audit Plugin for ObjectStack — System audit log object and audit trail", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -43,7 +50,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/plugins/plugin-audit" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/plugins/plugin-auth/package.json b/packages/plugins/plugin-auth/package.json index c739febbc61..de3873ce57f 100644 --- a/packages/plugins/plugin-auth/package.json +++ b/packages/plugins/plugin-auth/package.json @@ -3,24 +3,41 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "Authentication & Identity Plugin for ObjectStack", + "type": "commonjs", "main": "dist/index.js", "module": "dist/index.mjs", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } }, "./rate-limit-storage": { - "types": "./dist/rate-limit-storage.d.ts", - "import": "./dist/rate-limit-storage.mjs", - "require": "./dist/rate-limit-storage.js" + "import": { + "types": "./dist/rate-limit-storage.d.mts", + "default": "./dist/rate-limit-storage.mjs" + }, + "require": { + "types": "./dist/rate-limit-storage.d.ts", + "default": "./dist/rate-limit-storage.js" + } }, "./client-address": { - "types": "./dist/client-address.d.ts", - "import": "./dist/client-address.mjs", - "require": "./dist/client-address.js" + "import": { + "types": "./dist/client-address.d.mts", + "default": "./dist/client-address.mjs" + }, + "require": { + "types": "./dist/client-address.d.ts", + "default": "./dist/client-address.js" + } } }, "scripts": { @@ -68,7 +85,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/plugins/plugin-auth" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/plugins/plugin-auth/src/rate-limit-storage-isolation.test.ts b/packages/plugins/plugin-auth/src/rate-limit-storage-isolation.test.ts index 8d0ef4db7cf..2e3a769fb9f 100644 --- a/packages/plugins/plugin-auth/src/rate-limit-storage-isolation.test.ts +++ b/packages/plugins/plugin-auth/src/rate-limit-storage-isolation.test.ts @@ -257,17 +257,17 @@ describe('@objectstack/plugin-auth — ./rate-limit-storage stays free of better it('package.json publishes the ./rate-limit-storage subpath', () => { const pkg = JSON.parse(readFileSync(join(PKG, 'package.json'), 'utf8')) as { - exports: Record>; + exports: Record; files?: string[]; }; expect(Object.keys(pkg.exports)).toContain('./rate-limit-storage'); expect(pkg.exports['./rate-limit-storage']).toEqual({ - // `types` first: conditions are first-match-wins, so a `types` key behind - // `import`/`require` is only ever read by accident. 84 of the 85 exports - // conditions on main are written this way. - types: './dist/rate-limit-storage.d.ts', - import: './dist/rate-limit-storage.mjs', - require: './dist/rate-limit-storage.js', + // One `types` per module format: the ESM entry gets tsup's `.d.mts`, the + // CJS entry its `.d.ts`, so neither format is typed by the other's + // declarations (attw `FalseCJS`). Inside each condition `types` still + // comes first — conditions are first-match-wins. + import: { types: './dist/rate-limit-storage.d.mts', default: './dist/rate-limit-storage.mjs' }, + require: { types: './dist/rate-limit-storage.d.ts', default: './dist/rate-limit-storage.js' }, }); // `check:published-files` SUFFICIENT covers this too; pinned here so the // entry cannot be declared and then left out of the published whitelist. diff --git a/packages/plugins/plugin-dev/package.json b/packages/plugins/plugin-dev/package.json index 8d100046fa8..bb3032bd72a 100644 --- a/packages/plugins/plugin-dev/package.json +++ b/packages/plugins/plugin-dev/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "Development Assembly Plugin for ObjectStack — wires the real platform stack for zero-config local development", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -51,7 +58,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/plugins/plugin-dev" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/plugins/plugin-email/README.md b/packages/plugins/plugin-email/README.md new file mode 100644 index 00000000000..d857f56fa4d --- /dev/null +++ b/packages/plugins/plugin-email/README.md @@ -0,0 +1,9 @@ +# @objectstack/plugin-email + +The email service: `IEmailService` with transport-pluggable outbound delivery and `sys_email` persistence of every message sent. `EmailServicePlugin` registers the service with the kernel. + +```typescript +import { EmailServicePlugin } from '@objectstack/plugin-email'; +``` + +Documentation: [Email service](https://objectstack.ai/docs/kernel/runtime-services/email-service) diff --git a/packages/plugins/plugin-email/package.json b/packages/plugins/plugin-email/package.json index 07d2d06a98a..f31f3a2a20c 100644 --- a/packages/plugins/plugin-email/package.json +++ b/packages/plugins/plugin-email/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "Email service plugin for ObjectStack — IEmailService + transport-pluggable outbound delivery with sys_email persistence.", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -42,12 +49,18 @@ ], "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/plugins/plugin-email" }, + "publishConfig": { + "access": "public" + }, "files": [ "dist", "README.md", "CHANGELOG.md" - ] + ], + "engines": { + "node": ">=22.0.0" + } } diff --git a/packages/plugins/plugin-hono-server/package.json b/packages/plugins/plugin-hono-server/package.json index c4f53bf5fb3..4c744ad9e60 100644 --- a/packages/plugins/plugin-hono-server/package.json +++ b/packages/plugins/plugin-hono-server/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "Standard Hono Server Adapter for ObjectStack Runtime", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -42,7 +49,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/plugins/plugin-hono-server" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/plugins/plugin-pinyin-search/README.md b/packages/plugins/plugin-pinyin-search/README.md new file mode 100644 index 00000000000..114e14841ec --- /dev/null +++ b/packages/plugins/plugin-pinyin-search/README.md @@ -0,0 +1,9 @@ +# @objectstack/plugin-pinyin-search + +Pinyin search recall: it fills the hidden `__search` companion column with the full pinyin and the initials of a record's display field, so `$search` finds CJK names typed as pinyin. It is locale-gated by `OS_SEARCH_PINYIN_ENABLED`. + +```typescript +import { PinyinSearchPlugin } from '@objectstack/plugin-pinyin-search'; +``` + +Documentation: [Queries](https://objectstack.ai/docs/data-modeling/queries) diff --git a/packages/plugins/plugin-pinyin-search/package.json b/packages/plugins/plugin-pinyin-search/package.json index 0ec62ad4a81..2e82db9956a 100644 --- a/packages/plugins/plugin-pinyin-search/package.json +++ b/packages/plugins/plugin-pinyin-search/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "Pinyin search recall for ObjectStack — populates the hidden `__search` companion column (full pinyin + initials of the display/name field) so `$search` hits CJK names typed as pinyin. Locale-gated via OS_SEARCH_PINYIN_ENABLED (#2486).", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -42,12 +49,18 @@ ], "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/plugins/plugin-pinyin-search" }, + "publishConfig": { + "access": "public" + }, "files": [ "dist", "README.md", "CHANGELOG.md" - ] + ], + "engines": { + "node": ">=22.0.0" + } } diff --git a/packages/plugins/plugin-security/package.json b/packages/plugins/plugin-security/package.json index 0d8ad6a483c..fba32e5b150 100644 --- a/packages/plugins/plugin-security/package.json +++ b/packages/plugins/plugin-security/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "Security Plugin for ObjectStack — RBAC, RLS, and Field-Level Security Runtime", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -50,7 +57,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/plugins/plugin-security" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/plugins/plugin-sharing/README.md b/packages/plugins/plugin-sharing/README.md new file mode 100644 index 00000000000..43e35c541e2 --- /dev/null +++ b/packages/plugins/plugin-sharing/README.md @@ -0,0 +1,9 @@ +# @objectstack/plugin-sharing + +Record-level sharing: the `sys_record_share` object, the middleware that enforces an object's `sharingModel`, and the `ISharingService`. `SharingServicePlugin` registers them with the kernel. + +```typescript +import { SharingServicePlugin } from '@objectstack/plugin-sharing'; +``` + +Documentation: [Sharing service](https://objectstack.ai/docs/kernel/runtime-services/sharing-service) diff --git a/packages/plugins/plugin-sharing/package.json b/packages/plugins/plugin-sharing/package.json index ab66477b8e9..d4b2cd8ab3c 100644 --- a/packages/plugins/plugin-sharing/package.json +++ b/packages/plugins/plugin-sharing/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "Record-level sharing for ObjectStack — sys_record_share + middleware that enforces sharingModel + ISharingService.", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -46,12 +53,18 @@ ], "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/plugins/plugin-sharing" }, + "publishConfig": { + "access": "public" + }, "files": [ "dist", "README.md", "CHANGELOG.md" - ] + ], + "engines": { + "node": ">=22.0.0" + } } diff --git a/packages/plugins/plugin-webhooks/README.md b/packages/plugins/plugin-webhooks/README.md new file mode 100644 index 00000000000..d5d282883ed --- /dev/null +++ b/packages/plugins/plugin-webhooks/README.md @@ -0,0 +1,9 @@ +# @objectstack/plugin-webhooks + +Webhooks on top of the shared outbound HTTP delivery of `@objectstack/service-messaging` (ADR-0018 M3): the `sys_webhook` configuration object, the enqueuer that turns record events into delivery rows, and the redeliver admin endpoint. The durable outbox, the cluster-coordinated dispatcher and retries live in the messaging service, which this plugin requires. `WebhookOutboxPlugin` registers it with the kernel. + +```typescript +import { WebhookOutboxPlugin } from '@objectstack/plugin-webhooks'; +``` + +Documentation: [Webhooks](https://objectstack.ai/docs/automation/webhooks) diff --git a/packages/plugins/plugin-webhooks/package.json b/packages/plugins/plugin-webhooks/package.json index b335d8cf77c..6bbf0aabeb8 100644 --- a/packages/plugins/plugin-webhooks/package.json +++ b/packages/plugins/plugin-webhooks/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -61,12 +62,18 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/plugins/plugin-webhooks" }, + "publishConfig": { + "access": "public" + }, "files": [ "dist", "README.md", "CHANGELOG.md" - ] + ], + "engines": { + "node": ">=22.0.0" + } } diff --git a/packages/rest/package.json b/packages/rest/package.json index 61d4a60560f..5882be853a7 100644 --- a/packages/rest/package.json +++ b/packages/rest/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -62,7 +63,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/rest" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/runtime/package.json b/packages/runtime/package.json index 70afcf0e661..45ba95b9671 100644 --- a/packages/runtime/package.json +++ b/packages/runtime/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -85,7 +86,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/runtime" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/sdui-parser/README.md b/packages/sdui-parser/README.md new file mode 100644 index 00000000000..65a5d11d509 --- /dev/null +++ b/packages/sdui-parser/README.md @@ -0,0 +1,9 @@ +# @objectstack/sdui-parser + +The constrained JSX compiler for server-driven UI (ADR-0080): it parses JSX source into an SDUI `SchemaNode` tree and validates it against a component manifest, and it never executes the source. It is isomorphic and has no React dependency. + +```typescript +import { compile } from '@objectstack/sdui-parser'; +``` + +Documentation: [React pages](https://objectstack.ai/docs/ui/react-pages) diff --git a/packages/sdui-parser/package.json b/packages/sdui-parser/package.json index 81aa9fc49c0..500a20eb225 100644 --- a/packages/sdui-parser/package.json +++ b/packages/sdui-parser/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "ObjectStack constrained JSX-source → SDUI SchemaNode tree compiler (parse, never execute). Isomorphic, zero React. ADR-0080.", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -31,7 +38,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/sdui-parser" }, "homepage": "https://objectstack.ai/docs", @@ -43,5 +50,8 @@ "dist", "README.md", "CHANGELOG.md" - ] + ], + "engines": { + "node": ">=22.0.0" + } } diff --git a/packages/services/service-analytics/package.json b/packages/services/service-analytics/package.json index 6604603a341..a4caaa1e2a9 100644 --- a/packages/services/service-analytics/package.json +++ b/packages/services/service-analytics/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -48,7 +49,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/services/service-analytics" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/services/service-automation/package.json b/packages/services/service-automation/package.json index 33de92bac33..8fdfe712890 100644 --- a/packages/services/service-automation/package.json +++ b/packages/services/service-automation/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -59,7 +60,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/services/service-automation" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/services/service-cache/package.json b/packages/services/service-cache/package.json index 0d8e1c9fb65..7e98f5561c9 100644 --- a/packages/services/service-cache/package.json +++ b/packages/services/service-cache/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -42,7 +43,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/services/service-cache" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/services/service-cluster-redis/package.json b/packages/services/service-cluster-redis/package.json index e1c79df05c2..b273d9876ba 100644 --- a/packages/services/service-cluster-redis/package.json +++ b/packages/services/service-cluster-redis/package.json @@ -6,6 +6,10 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": [ + "./dist/index.js", + "./dist/index.cjs" + ], "exports": { ".": { "import": { @@ -45,12 +49,18 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/services/service-cluster-redis" }, + "publishConfig": { + "access": "public" + }, "files": [ "dist", "README.md", "CHANGELOG.md" - ] + ], + "engines": { + "node": ">=22.0.0" + } } diff --git a/packages/services/service-cluster/README.md b/packages/services/service-cluster/README.md new file mode 100644 index 00000000000..27f3410061c --- /dev/null +++ b/packages/services/service-cluster/README.md @@ -0,0 +1,9 @@ +# @objectstack/service-cluster + +The cluster service: pluggable pub/sub, lock, key-value and counter primitives that let several ObjectStack nodes coordinate. The in-memory driver ships here; the Redis driver ships as `@objectstack/service-cluster-redis`. `ClusterServicePlugin` registers the service with the kernel. + +```typescript +import { ClusterServicePlugin } from '@objectstack/service-cluster'; +``` + +Documentation: [Cluster](https://objectstack.ai/docs/kernel/cluster) diff --git a/packages/services/service-cluster/package.json b/packages/services/service-cluster/package.json index 899ac00022b..cd93fafb207 100644 --- a/packages/services/service-cluster/package.json +++ b/packages/services/service-cluster/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -49,12 +50,18 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/services/service-cluster" }, + "publishConfig": { + "access": "public" + }, "files": [ "dist", "README.md", "CHANGELOG.md" - ] + ], + "engines": { + "node": ">=22.0.0" + } } diff --git a/packages/services/service-datasource/package.json b/packages/services/service-datasource/package.json index 14c47df5742..c6a3fb10bd2 100644 --- a/packages/services/service-datasource/package.json +++ b/packages/services/service-datasource/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -82,7 +83,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/services/service-datasource" }, "homepage": "https://objectstack.ai/docs", @@ -94,5 +95,8 @@ "dist", "README.md", "CHANGELOG.md" - ] + ], + "engines": { + "node": ">=22.0.0" + } } diff --git a/packages/services/service-i18n/package.json b/packages/services/service-i18n/package.json index 0203980f1f1..31578d55f9c 100644 --- a/packages/services/service-i18n/package.json +++ b/packages/services/service-i18n/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -43,7 +44,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/services/service-i18n" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/services/service-job/package.json b/packages/services/service-job/package.json index e5dee734ca1..75fbefefdef 100644 --- a/packages/services/service-job/package.json +++ b/packages/services/service-job/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -45,7 +46,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/services/service-job" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/services/service-knowledge/package.json b/packages/services/service-knowledge/package.json index 2d8b9bbd736..e1eef7b78b7 100644 --- a/packages/services/service-knowledge/package.json +++ b/packages/services/service-knowledge/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -46,7 +47,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/services/service-knowledge" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/services/service-mailbox/package.json b/packages/services/service-mailbox/package.json index caa7afc95cd..735ac83531d 100644 --- a/packages/services/service-mailbox/package.json +++ b/packages/services/service-mailbox/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -50,7 +51,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/services/service-mailbox" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/services/service-messaging/README.md b/packages/services/service-messaging/README.md new file mode 100644 index 00000000000..6b86b3fc12e --- /dev/null +++ b/packages/services/service-messaging/README.md @@ -0,0 +1,9 @@ +# @objectstack/service-messaging + +The messaging service for outbound notifications (ADR-0012): the `MessagingChannel` registry, the `emit()` fan-out and the always-on inbox channel. Other channels (email, webhook, push, IM) plug into the same registry. `MessagingServicePlugin` registers the service with the kernel. + +```typescript +import { MessagingServicePlugin } from '@objectstack/service-messaging'; +``` + +Documentation: [Runtime services](https://objectstack.ai/docs/kernel/runtime-services) diff --git a/packages/services/service-messaging/package.json b/packages/services/service-messaging/package.json index df26408cb47..dfdb240721d 100644 --- a/packages/services/service-messaging/package.json +++ b/packages/services/service-messaging/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -48,7 +49,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/services/service-messaging" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/services/service-package/package.json b/packages/services/service-package/package.json index 9e56ced8d5c..0b9a0a3fd4c 100644 --- a/packages/services/service-package/package.json +++ b/packages/services/service-package/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -46,7 +47,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/services/service-package" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/services/service-print/package.json b/packages/services/service-print/package.json index bdaf5429b1d..3032145fad0 100644 --- a/packages/services/service-print/package.json +++ b/packages/services/service-print/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -45,7 +46,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/services/service-print" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/services/service-queue/package.json b/packages/services/service-queue/package.json index 863880d1a12..e3fd91ab85f 100644 --- a/packages/services/service-queue/package.json +++ b/packages/services/service-queue/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -44,7 +45,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/services/service-queue" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/services/service-realtime/package.json b/packages/services/service-realtime/package.json index 58dde9cb981..7d7bd5d99bf 100644 --- a/packages/services/service-realtime/package.json +++ b/packages/services/service-realtime/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -43,7 +44,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/services/service-realtime" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/services/service-settings/package.json b/packages/services/service-settings/package.json index fc420fbc388..6309aa14211 100644 --- a/packages/services/service-settings/package.json +++ b/packages/services/service-settings/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -45,7 +46,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/services/service-settings" }, "publishConfig": { diff --git a/packages/services/service-sms/README.md b/packages/services/service-sms/README.md new file mode 100644 index 00000000000..b1286248895 --- /dev/null +++ b/packages/services/service-sms/README.md @@ -0,0 +1,9 @@ +# @objectstack/service-sms + +The SMS service: `ISmsService` with transport-pluggable outbound delivery (Aliyun, Twilio, or a log transport for development). `SmsServicePlugin` registers the service with the kernel. + +```typescript +import { SmsServicePlugin } from '@objectstack/service-sms'; +``` + +Documentation: [SMS service](https://objectstack.ai/docs/kernel/runtime-services/sms-service) diff --git a/packages/services/service-sms/package.json b/packages/services/service-sms/package.json index 2393034170f..c60f924ccb7 100644 --- a/packages/services/service-sms/package.json +++ b/packages/services/service-sms/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "SMS service for ObjectStack — ISmsService + transport-pluggable outbound delivery (Aliyun / Twilio / log).", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -39,12 +46,18 @@ ], "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/services/service-sms" }, + "publishConfig": { + "access": "public" + }, "files": [ "dist", "README.md", "CHANGELOG.md" - ] + ], + "engines": { + "node": ">=22.0.0" + } } diff --git a/packages/services/service-storage/package.json b/packages/services/service-storage/package.json index 6e36e7e58ed..0466af860bc 100644 --- a/packages/services/service-storage/package.json +++ b/packages/services/service-storage/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -62,7 +63,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/services/service-storage" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/skills/package.json b/packages/skills/package.json index 33457472c87..2e31e0908a9 100644 --- a/packages/skills/package.json +++ b/packages/skills/package.json @@ -20,6 +20,7 @@ "README.md", "CHANGELOG.md" ], + "sideEffects": false, "exports": { "./package.json": "./package.json" }, @@ -33,5 +34,8 @@ "agent-skills", "claude-code", "ai" - ] + ], + "engines": { + "node": ">=22.0.0" + } } diff --git a/packages/spec/package.json b/packages/spec/package.json index 07c84230f60..609704308a7 100644 --- a/packages/spec/package.json +++ b/packages/spec/package.json @@ -3,6 +3,7 @@ "version": "18.1.0", "description": "ObjectStack Protocol & Specification - TypeScript Interfaces, JSON Schemas, and Convention Configurations", "license": "Apache-2.0", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", "sideEffects": false, @@ -358,7 +359,7 @@ }, "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/spec" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/triggers/trigger-api/README.md b/packages/triggers/trigger-api/README.md new file mode 100644 index 00000000000..d16da2c1d35 --- /dev/null +++ b/packages/triggers/trigger-api/README.md @@ -0,0 +1,9 @@ +# @objectstack/trigger-api + +The inbound HTTP flow trigger (ADR-0041): a per-flow endpoint that verifies an HMAC signature and hands the request to a queue, so an external system can start a flow by webhook. `ApiTriggerPlugin` mounts the endpoints. + +```typescript +import { ApiTriggerPlugin } from '@objectstack/trigger-api'; +``` + +Documentation: [Flows](https://objectstack.ai/docs/automation/flows) diff --git a/packages/triggers/trigger-api/package.json b/packages/triggers/trigger-api/package.json index d5885238e1d..cf1900f9f20 100644 --- a/packages/triggers/trigger-api/package.json +++ b/packages/triggers/trigger-api/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "Inbound HTTP/webhook flow trigger for ObjectStack — per-flow HMAC-verified endpoints with queue-backed ingestion (ADR-0041)", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -35,12 +42,18 @@ ], "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/triggers/trigger-api" }, + "publishConfig": { + "access": "public" + }, "files": [ "dist", "README.md", "CHANGELOG.md" - ] + ], + "engines": { + "node": ">=22.0.0" + } } diff --git a/packages/triggers/trigger-record-change/package.json b/packages/triggers/trigger-record-change/package.json index cab9073458c..ea1172fd4ec 100644 --- a/packages/triggers/trigger-record-change/package.json +++ b/packages/triggers/trigger-record-change/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "Record-change flow trigger for ObjectStack — auto-launches flows on object insert/update/delete via ObjectQL lifecycle hooks (ADR-0018)", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -41,7 +48,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/triggers/trigger-record-change" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/triggers/trigger-schedule/package.json b/packages/triggers/trigger-schedule/package.json index ef5ab9d2548..fe38e2fd42e 100644 --- a/packages/triggers/trigger-schedule/package.json +++ b/packages/triggers/trigger-schedule/package.json @@ -3,13 +3,20 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "Schedule flow trigger for ObjectStack \u2014 auto-launches flows on a cron/interval/once schedule via the IJobService (ADR-0018)", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } } }, "scripts": { @@ -42,7 +49,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/triggers/trigger-schedule" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/types/package.json b/packages/types/package.json index 89c258feb51..4d9c6144406 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -3,18 +3,30 @@ "version": "18.1.0", "license": "Apache-2.0", "description": "Shared interfaces describing the ObjectStack Runtime environment", + "type": "commonjs", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.mjs", - "require": "./dist/index.js" + "import": { + "types": "./dist/index.d.mts", + "default": "./dist/index.mjs" + }, + "require": { + "types": "./dist/index.d.ts", + "default": "./dist/index.js" + } }, "./node": { - "types": "./dist/node.d.ts", - "import": "./dist/node.mjs", - "require": "./dist/node.js" + "import": { + "types": "./dist/node.d.mts", + "default": "./dist/node.mjs" + }, + "require": { + "types": "./dist/node.d.ts", + "default": "./dist/node.js" + } } }, "scripts": { @@ -39,7 +51,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/types" }, "homepage": "https://objectstack.ai/docs", diff --git a/packages/types/src/node-isolation.test.ts b/packages/types/src/node-isolation.test.ts index 2f1f1ae9204..bdbb56a2c20 100644 --- a/packages/types/src/node-isolation.test.ts +++ b/packages/types/src/node-isolation.test.ts @@ -130,13 +130,12 @@ describe('@objectstack/types — node-only code stays behind the ./node subpath it('package.json publishes the ./node subpath', () => { const pkg = JSON.parse(readFileSync(join(PKG, 'package.json'), 'utf8')) as { - exports: Record>; + exports: Record; }; expect(Object.keys(pkg.exports)).toContain('./node'); expect(pkg.exports['./node']).toEqual({ - types: './dist/node.d.ts', - import: './dist/node.mjs', - require: './dist/node.js', + import: { types: './dist/node.d.mts', default: './dist/node.mjs' }, + require: { types: './dist/node.d.ts', default: './dist/node.js' }, }); }); }); diff --git a/packages/verify/package.json b/packages/verify/package.json index 9f918186b62..6913325dafd 100644 --- a/packages/verify/package.json +++ b/packages/verify/package.json @@ -6,6 +6,7 @@ "type": "module", "main": "dist/index.js", "types": "dist/index.d.ts", + "sideEffects": false, "exports": { ".": { "import": { @@ -76,7 +77,7 @@ "author": "ObjectStack", "repository": { "type": "git", - "url": "https://github.com/objectstack-ai/objectstack.git", + "url": "git+https://github.com/objectstack-ai/objectstack.git", "directory": "packages/verify" }, "homepage": "https://objectstack.ai/docs",