@astrale-os/sdk 0.5.0-beta.135 → 0.5.0-beta.137

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.
@@ -6,7 +6,7 @@ import type { LocalCallable } from '../action/index.js';
6
6
  export type DependencyCallOptions = Pick<SessionRequestOptions, 'timeoutMs' | 'idempotencyKey'>;
7
7
  type InstanceMethodOf<D extends Domain> = Extract<LocalCallable<D>, ResolvedMethod<unknown, unknown, false>>;
8
8
  type FunctionOrStaticMethodOf<D extends Domain> = Exclude<LocalCallable<D>, ResolvedMethod<unknown, unknown, false>>;
9
- type DependencyInputOf<C> = C extends unknown ? unknown extends CallableInputOf<C> ? Input : [CallableInputOf<C>] extends [void] ? undefined : Extract<CallableInputOf<C>, Input> : never;
9
+ type DependencyInputOf<C> = C extends unknown ? unknown extends CallableInputOf<C> ? Input : [CallableInputOf<C>] extends [void] ? undefined : CallableInputOf<C> : never;
10
10
  type DependencyResultOf<C> = unknown extends CallableOutputOf<C> ? unknown : CallableResultOf<C, Binary>;
11
11
  /** One declared dependency, bound to one explicitly selected invocation authority. */
12
12
  export interface DependencyInvoker<D extends Domain> {
@@ -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.135",
3
+ "version": "0.5.0-beta.137",
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.60",
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.51",
244
- "@astrale-os/kernel-server": "0.5.0-beta.53",
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",
@@ -335,7 +335,6 @@
335
335
  "setup:codex": "AGENT_HARNESSES=codex bash scripts/setup/setup.sh",
336
336
  "setup:claude": "AGENT_HARNESSES=claude bash scripts/setup/setup.sh",
337
337
  "check:agent-setup": "bash scripts/setup/verify.sh",
338
- "test:agent-setup": "node --test scripts/setup/*.test.cjs",
339
338
  "setup:local": "AGENT_SETUP_TOOLS=check bash scripts/setup/setup.sh"
340
339
  }
341
340
  }