@astrale-os/sdk 0.5.0-beta.134 → 0.5.0-beta.136

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -213,6 +213,14 @@ NodePath and its Dataset Node ID through encoding and decoding. Matching propert
213
213
  not create that association. Studio uses it when simulating `sameNode` and reference endpoints;
214
214
  a missing association makes that simulation unavailable.
215
215
 
216
+ ## Kernel publication discovery
217
+
218
+ Use `session.publication()` when a consumer needs the intrinsic Kernel's published identity or
219
+ endpoints without its schema bundle or Views. It revalidates through the Client's existing issuer,
220
+ URL, size, and ETag checks. Concurrent publication and snapshot observations share acquisition;
221
+ cancelling one observer does not cancel another. `session.snapshot()` remains the complete,
222
+ coherent Publication, bundle, and View catalog observation.
223
+
216
224
  ## License
217
225
 
218
226
  Apache License 2.0 — see [LICENSE](LICENSE) for details.
@@ -2,5 +2,5 @@ export { callables } from './callables.js';
2
2
  export { manifest } from './manifest.js';
3
3
  export { requirements } from './requirements.js';
4
4
  export { routes } from './routes.js';
5
- export { BUNDLE_PATH, seal, type SealedPublication } from './seal.js';
5
+ export { seal, type SealedPublication } from './seal.js';
6
6
  export { views } from './views.js';
@@ -2,5 +2,5 @@ export { callables } from './callables.js';
2
2
  export { manifest } from './manifest.js';
3
3
  export { requirements } from './requirements.js';
4
4
  export { routes } from './routes.js';
5
- export { BUNDLE_PATH, seal } from './seal.js';
5
+ export { seal } from './seal.js';
6
6
  export { views } from './views.js';
@@ -2,7 +2,6 @@ import * as publication from '@astrale-os/kernel-protocol/publication';
2
2
  import * as protocolRoutes from '@astrale-os/kernel-protocol/routes';
3
3
  import type { Build } from '../../build/index.js';
4
4
  import type { Addressing } from '../addressing.js';
5
- export declare const BUNDLE_PATH: '/.well-known/astrale/domain.bundle.json';
6
5
  export declare const DELIVERY_PATH: '/install';
7
6
  export interface SealedPublication {
8
7
  readonly publication: publication.Publication;
@@ -6,7 +6,6 @@ import { manifest } from './manifest.js';
6
6
  import { requirements } from './requirements.js';
7
7
  import { routes } from './routes.js';
8
8
  import { views } from './views.js';
9
- export const BUNDLE_PATH = '/.well-known/astrale/domain.bundle.json';
10
9
  export const DELIVERY_PATH = '/install';
11
10
  export function seal(build, addressing) {
12
11
  const root = build.schema.compiled.root;
@@ -19,7 +18,7 @@ export function seal(build, addressing) {
19
18
  schema: {
20
19
  revision: root.revision,
21
20
  bundle: {
22
- href: new URL(BUNDLE_PATH, addressing.issuer).href,
21
+ href: publication.bundleUrl(addressing.issuer, build.schema.bundle.ref),
23
22
  ref: build.schema.bundle.ref,
24
23
  },
25
24
  },
@@ -29,7 +28,7 @@ export function seal(build, addressing) {
29
28
  callables: callables(build, addressing),
30
29
  views: views(build, addressing),
31
30
  },
32
- delivery: publication.placeDelivery({ path: DELIVERY_PATH, authentication: { kind: 'public' } }, addressing.issuer, new URL(BUNDLE_PATH, addressing.issuer).href),
31
+ delivery: publication.placeDelivery({ path: DELIVERY_PATH, authentication: { kind: 'public' } }, addressing.issuer, publication.bundleUrl(addressing.issuer, build.schema.bundle.ref)),
33
32
  routes: routes(build, addressing),
34
33
  });
35
34
  const { domain } = evidenceOf(build);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/sdk",
3
- "version": "0.5.0-beta.134",
3
+ "version": "0.5.0-beta.136",
4
4
  "description": "Schema-first SDK for defining, composing, and deploying Astrale domains",
5
5
  "keywords": [
6
6
  "astrale",
@@ -237,11 +237,11 @@
237
237
  "registry": "https://registry.npmjs.org/"
238
238
  },
239
239
  "dependencies": {
240
- "@astrale-os/kernel-client": "0.6.0-beta.59",
240
+ "@astrale-os/kernel-client": "0.6.0-beta.61",
241
241
  "@astrale-os/kernel-core": "0.9.0-beta.46",
242
242
  "@astrale-os/kernel-dsl": "0.2.0-beta.33",
243
- "@astrale-os/kernel-protocol": "0.5.0-beta.50",
244
- "@astrale-os/kernel-server": "0.5.0-beta.52",
243
+ "@astrale-os/kernel-protocol": "0.5.0-beta.52",
244
+ "@astrale-os/kernel-server": "0.5.0-beta.54",
245
245
  "@lucide/icons": "1.34.0",
246
246
  "@typescript/native-preview": "7.0.0-dev.20260707.2",
247
247
  "cross-spawn": "7.0.6",