@astrale-os/sdk 0.5.0-beta.17 → 0.5.0-beta.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -76,7 +76,7 @@ export function compileDomainPackage(projectDir, input) {
76
76
  return Object.freeze({ root });
77
77
  }
78
78
  function runCompiler(project, arguments_) {
79
- const compiler = resolveCompiler(project);
79
+ const compiler = resolveCompiler();
80
80
  const result = spawnSync(process.execPath, [compiler, ...arguments_], {
81
81
  cwd: project,
82
82
  encoding: 'utf8',
@@ -91,14 +91,14 @@ function runCompiler(project, arguments_) {
91
91
  throw new TypeError(`Domain package compilation failed.${detail.length === 0 ? '' : `\n${detail}`}`);
92
92
  }
93
93
  }
94
- function resolveCompiler(project) {
95
- const projectRequire = createRequire(resolve(project, 'package.json'));
94
+ function resolveCompiler() {
95
+ const sdkRequire = createRequire(import.meta.url);
96
96
  let manifestPath;
97
97
  try {
98
- manifestPath = projectRequire.resolve('@typescript/native-preview/package.json');
98
+ manifestPath = sdkRequire.resolve('@typescript/native-preview/package.json');
99
99
  }
100
100
  catch (cause) {
101
- throw new TypeError('Domain packaging requires the project-local @typescript/native-preview compiler.', { cause });
101
+ throw new TypeError('Domain packaging requires the SDK-owned @typescript/native-preview compiler.', { cause });
102
102
  }
103
103
  const manifest = JSON.parse(readFileSync(manifestPath, 'utf8'));
104
104
  const target = typeof manifest.bin === 'string' ? manifest.bin : manifest.bin?.tsgo;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/sdk",
3
- "version": "0.5.0-beta.17",
3
+ "version": "0.5.0-beta.18",
4
4
  "description": "Schema-first SDK for defining, composing, and deploying Astrale domains",
5
5
  "keywords": [
6
6
  "astrale",
@@ -210,17 +210,18 @@
210
210
  "./package.json": "./package.json"
211
211
  },
212
212
  "dependencies": {
213
- "@astrale-os/kernel-client": "0.6.0-beta.10",
214
- "@astrale-os/kernel-core": "0.9.0-beta.9",
215
- "@astrale-os/kernel-dsl": "0.2.0-beta.7",
216
- "@astrale-os/kernel-protocol": "0.5.0-beta.9",
217
- "@astrale-os/kernel-server": "0.5.0-beta.10",
213
+ "@typescript/native-preview": "7.0.0-dev.20260707.2",
218
214
  "hono": "^4.13.2",
219
215
  "jose": "^6.2.9",
220
216
  "typescript": "~6.0.3",
221
217
  "zod": "^4.4.3"
222
218
  },
223
219
  "devDependencies": {
220
+ "@astrale-os/kernel-client": "0.6.0-beta.10",
221
+ "@astrale-os/kernel-core": "0.9.0-beta.9",
222
+ "@astrale-os/kernel-dsl": "0.2.0-beta.7",
223
+ "@astrale-os/kernel-protocol": "0.5.0-beta.9",
224
+ "@astrale-os/kernel-server": "0.5.0-beta.10",
224
225
  "@astrale-os/ox": "^0.1.3",
225
226
  "@astrale/commitlint-config": "npm:@jsr/astrale__commitlint-config@~2.0.3",
226
227
  "@astrale/typescript-config": "npm:@jsr/astrale__typescript-config@~1.1.3",
@@ -229,7 +230,6 @@
229
230
  "@hono/node-server": "^2.1.1",
230
231
  "@hono/node-server-v1": "npm:@hono/node-server@1.19.0",
231
232
  "@types/node": "^22.20.1",
232
- "@typescript/native-preview": "7.0.0-dev.20260707.2",
233
233
  "husky": "~9.1.7",
234
234
  "lint-staged": "~17.3.0",
235
235
  "mermaid": "^11.16.1",
@@ -242,6 +242,11 @@
242
242
  "yaml": "^2.9.0"
243
243
  },
244
244
  "peerDependencies": {
245
+ "@astrale-os/kernel-client": ">=0.6.0-beta.10 <1.0.0",
246
+ "@astrale-os/kernel-core": ">=0.9.0-beta.9 <1.0.0",
247
+ "@astrale-os/kernel-dsl": ">=0.2.0-beta.7 <1.0.0",
248
+ "@astrale-os/kernel-protocol": ">=0.5.0-beta.9 <1.0.0",
249
+ "@astrale-os/kernel-server": ">=0.5.0-beta.10 <1.0.0",
245
250
  "@astrale-os/ox": ">=0.1.3 <1.0.0",
246
251
  "@hono/node-server": "^1.19.0 || ^2.1.1",
247
252
  "oxlint": ">=1.78.0 <2.0.0"
@@ -278,11 +283,11 @@
278
283
  },
279
284
  "scripts": {
280
285
  "preinstall": "node -e \"try{require('./.check-workspace.cjs')}catch{}\"",
281
- "build": "node scripts/clean-dist.mjs && tsgo && node scripts/verify-no-source-maps.mjs dist && pnpm run verify:package",
286
+ "build": "node scripts/clean-dist.mjs && pnpm run check:cohort && tsgo && node scripts/verify-no-source-maps.mjs dist && pnpm run verify:package",
282
287
  "e2e": "node __e2e__/flagship/runner.mjs",
283
288
  "typecheck": "tsgo --noEmit && pnpm run typecheck:types",
284
289
  "typecheck:types": "tsgo --noEmit -p __tests__/tsconfig.types.json",
285
- "test": "pnpm run check:knowledge && pnpm run check:linter-policy && pnpm run check:issues && vitest run --config __tests__/vitest.config.ts && pnpm run test:node-server-v1 && node --test scripts/*.test.mjs",
290
+ "test": "pnpm run check:cohort && pnpm run check:knowledge && pnpm run check:linter-policy && pnpm run check:issues && vitest run --config __tests__/vitest.config.ts && pnpm run test:node-server-v1 && node --test scripts/*.test.mjs scripts/cohort/__tests__/*.test.mjs",
286
291
  "test:file": "vitest run --config __tests__/vitest.config.ts",
287
292
  "test:node-server-v1": "vitest run --config __tests__/vitest.node-server-v1.config.ts",
288
293
  "verify:package": "node ./verify-package.mjs",
@@ -294,6 +299,8 @@
294
299
  "check:knowledge": "node knowledge/cli/main.mjs check knowledge && bash knowledge/cli/test.sh",
295
300
  "check:linter-policy": "node scripts/sync-domain-policy.mjs --check",
296
301
  "check:issues": "issues/.cli/issues check && node --test issues/.cli/history.test.mjs && node --test issues/.cli/view-server.test.mjs && node --test issues/.view/contract.test.mjs",
302
+ "check:cohort": "node scripts/cohort/verify.mjs",
303
+ "qualify:publications": "node scripts/qualify-publications.mjs",
297
304
  "sync:linter-policy": "node scripts/sync-domain-policy.mjs",
298
305
  "redesign:inventory": "node scripts/sdk-v1-redesign/inventory.mjs",
299
306
  "redesign:sync-paths": "node scripts/sdk-v1-redesign/sync-ledger-paths.mjs",