@astrale-os/sdk 0.6.0-beta.2 → 0.6.0-beta.4

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.
@@ -32,10 +32,7 @@ export async function admit(request, configuration) {
32
32
  }), {
33
33
  signal: execution.signal,
34
34
  timeoutMs: Math.max(1, execution.deadline - Date.now()),
35
- delegate: {
36
- ttlSeconds: callbackTtl(execution.deadline),
37
- attenuation: { kind: 'identity', self: true },
38
- },
35
+ delegate: { ttlSeconds: callbackTtl(execution.deadline) },
39
36
  });
40
37
  return result.value;
41
38
  }
@@ -13,6 +13,7 @@ export { error } from './error.js';
13
13
  export type { DeclaredErrorDefinition, DeclaredErrorFamily } from './error.js';
14
14
  export { classIcon } from './class-icon.js';
15
15
  export type { ClassIcon } from './class-icon.js';
16
+ export type { StoredPropertyInputOf } from './property-input.js';
16
17
  export type { CallablePolicyBuilder, CallablePolicyContext, CallableProjection, AuthoredMethodProjection, AuthoredPropertyProjection, ClassIdentityProjection, ClassOwnerProjection, CoreEdge, CoreEndpoint, CoreNode, DefinedSchema, DirectedEdgeClass, ClassReferenceProjection, ClassProjection, FunctionProjection, EdgeClass, Function, Method, MethodProjection, Lazy, NodeClass, Policy, PolicyExistsContext, PolicyNodeBinder, PolicyPatternContext, Property, PropertyProjection, ResolvedDomainOfInput, View, } from '@astrale-os/kernel-dsl/v1/builder';
17
18
  export type { Array, Object, Value } from '@astrale-os/kernel-dsl/value';
18
19
  export type { ClassKind, DirectedEdgeContract, EdgeClassPolicies, NodeClassDefinition, PolicyCheckObject, PolicyObjectRef, PropertyFacet, StateTopology, UndirectedEdgeContract, } from '@astrale-os/kernel-dsl/v1/language';
@@ -0,0 +1,15 @@
1
+ import type { ResolvedPropertyCollection } from '@astrale-os/kernel-dsl/v1/language';
2
+ type StoredValueOf<Property> = Property extends {
3
+ readonly __value?: infer Value;
4
+ } ? Value : never;
5
+ /** Values already held by graph Properties, including a blob's Ref rather than its write receipt. */
6
+ export type StoredPropertyInputOf<Class> = Class extends {
7
+ readonly properties: infer Collection;
8
+ } ? Collection extends {
9
+ readonly byKey: infer ByKey;
10
+ } ? Readonly<{
11
+ [Key in keyof ByKey]?: StoredValueOf<ByKey[Key]>;
12
+ } & {
13
+ [Name in Exclude<keyof Collection, keyof ResolvedPropertyCollection>]?: StoredValueOf<Collection[Name]>;
14
+ }> : never : never;
15
+ export {};
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,6 @@
1
1
  import type { Edge } from '../../platform/graph/edge/index.js';
2
2
  import type { Node, NodeId } from '../../platform/graph/node/index.js';
3
- import type { PropertyInputOf, ResolvedClass, schema } from '../../platform/schema/index.js';
3
+ import type { ResolvedClass, schema, StoredPropertyInputOf } from '../../platform/schema/index.js';
4
4
  import type { DatasetNode, DatasetReferences } from './dataset.js';
5
5
  import { type DatasetReferenceInput } from './references.js';
6
6
  /** Resolved Classes of the exact authored Schema, keyed by their authored names. */
@@ -10,11 +10,11 @@ export type DatasetEndpoint = Node | NodeId | string;
10
10
  export interface DatasetNodeInput<Class extends ResolvedClass<'node'>> {
11
11
  /** Stable identity within the Dataset; derived from the Class name and insertion order when omitted. */
12
12
  readonly id?: string;
13
- readonly props?: PropertyInputOf<Class>;
13
+ readonly props?: StoredPropertyInputOf<Class>;
14
14
  }
15
15
  export interface DatasetEdgeInput<Class extends ResolvedClass<'edge'>> {
16
16
  readonly slug?: string;
17
- readonly props?: PropertyInputOf<Class>;
17
+ readonly props?: StoredPropertyInputOf<Class>;
18
18
  }
19
19
  /** Graph authoring surface handed to one Dataset definition. Facts are canonical Kernel values. */
20
20
  export interface DatasetGraph<Schema extends schema.DomainSchema> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/sdk",
3
- "version": "0.6.0-beta.2",
3
+ "version": "0.6.0-beta.4",
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.77",
241
- "@astrale-os/kernel-core": "0.9.0-beta.57",
242
- "@astrale-os/kernel-dsl": "0.2.0-beta.41",
243
- "@astrale-os/kernel-protocol": "0.5.0-beta.63",
244
- "@astrale-os/kernel-server": "0.5.0-beta.65",
240
+ "@astrale-os/kernel-client": "0.6.0-beta.78",
241
+ "@astrale-os/kernel-core": "0.9.0-beta.58",
242
+ "@astrale-os/kernel-dsl": "0.2.0-beta.42",
243
+ "@astrale-os/kernel-protocol": "0.5.0-beta.64",
244
+ "@astrale-os/kernel-server": "0.5.0-beta.66",
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",