@astrale-os/sdk 0.6.0-beta.30 → 0.6.0-beta.31

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
@@ -192,11 +192,13 @@ Domain principal and local Core identities. Installation verifies the Release an
192
192
 
193
193
  ### Durable schema installations
194
194
 
195
- The Client facade adopts Kernel `1.0.0-beta.6`. `schema.install()` and `schema.uninstall()`
196
- return an Execution id and its status; `result` is present only after successful completion.
197
- An install with `wait: false` returns without waiting for completion. Keep its `execution` id to
198
- continue observing it through `schema.installation.status()` or `schema.installation.result()`
199
- from a new Client session. Uninstalls have the corresponding `schema.uninstallation` methods.
195
+ `schema.install()` and `schema.uninstall()` return an Execution id and its status; `result` is
196
+ present only after successful completion. They wait at most `waitMs` (110 s by default) for the
197
+ outcome; `waitMs: 0` returns at once. Keep the `execution` id to continue observing it through
198
+ `schema.installation.status()` or `schema.installation.result()` from a new Client session.
199
+ Uninstalls have the corresponding `schema.uninstallation` methods, and `session.execution` drives
200
+ any Execution, a durable call's included: `session.execution.result(run, { waitMs })` waits for
201
+ its outcome across as many requests as the wait takes.
200
202
  The Client decodes the Kernel’s `kind: execution` call result before reading the durable status.
201
203
  An admitted or pending Execution is not proof that the schema change completed.
202
204
 
@@ -4,7 +4,7 @@ import { bindQuery } from '../../application/query/execution/executor.js';
4
4
  import { acceptStepId } from '../../application/workflow/step/index.js';
5
5
  import { acceptStepOutput } from '../../application/workflow/step/output.js';
6
6
  import { ResponseError } from '../../platform/client/index.js';
7
- import { bindSession, execution as executionMethods } from '../../platform/client/session/index.js';
7
+ import { bindSession } from '../../platform/client/session/index.js';
8
8
  import { validateOutput } from '../invocation/result/index.js';
9
9
  import { decodeEnvelope } from './envelope.js';
10
10
  import { replayedFailure, terminalFailure } from './failure.js';
@@ -147,7 +147,7 @@ function durableContext(input, context, envelope) {
147
147
  for (let poll = 1;; poll++) {
148
148
  const polled = await journal(`await:${target.id}:${poll}`, async ({ kernel }) => {
149
149
  try {
150
- const outcome = await kernel.invoke(executionMethods.result(target), {
150
+ const outcome = await kernel.execution.result(target, {
151
151
  waitMs: Math.min(AWAIT_WAIT_MS, Math.floor(serving.stepTimeoutMs / 2)),
152
152
  });
153
153
  return { ended: true, outcome };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/sdk",
3
- "version": "0.6.0-beta.30",
3
+ "version": "0.6.0-beta.31",
4
4
  "description": "Schema-first SDK for defining, composing, and deploying Astrale domains",
5
5
  "keywords": [
6
6
  "astrale",
@@ -257,11 +257,11 @@
257
257
  "registry": "https://registry.npmjs.org/"
258
258
  },
259
259
  "dependencies": {
260
- "@astrale-os/kernel-client": "1.0.0-beta.6",
261
- "@astrale-os/kernel-core": "1.0.0-beta.6",
260
+ "@astrale-os/kernel-client": "1.0.0-beta.8",
261
+ "@astrale-os/kernel-core": "1.0.0-beta.8",
262
262
  "@astrale-os/kernel-dsl": "1.0.0-beta.3",
263
- "@astrale-os/kernel-protocol": "1.0.0-beta.6",
264
- "@astrale-os/kernel-server": "1.0.0-beta.6",
263
+ "@astrale-os/kernel-protocol": "1.0.0-beta.8",
264
+ "@astrale-os/kernel-server": "1.0.0-beta.8",
265
265
  "@lucide/icons": "1.34.0",
266
266
  "@typescript/native-preview": "7.0.0-dev.20260707.2",
267
267
  "cross-spawn": "7.0.6",