@astrale-os/sdk 0.6.0-beta.50 → 0.6.0-beta.52
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 +1 -1
- package/dist/application/action/context.d.ts +9 -1
- package/dist/application/query/execution/crossings.js +87 -61
- package/dist/application/query/execution/rows.js +6 -0
- package/dist/application/query/execution/run.d.ts +14 -4
- package/dist/application/query/execution/run.js +58 -14
- package/dist/application/query/handles/handles.d.ts +14 -0
- package/dist/application/query/handles/plan.d.ts +2 -2
- package/dist/application/query/handles/reads.d.ts +2 -2
- package/dist/application/query/handles/reads.js +15 -8
- package/dist/execution/invocation/capabilities/bind.d.ts +3 -2
- package/dist/execution/invocation/capabilities/bind.js +25 -12
- package/dist/execution/service/create.js +0 -1
- package/dist/execution/workflows/receiver.d.ts +0 -3
- package/dist/execution/workflows/receiver.js +0 -1
- package/dist/execution/workflows/steps.d.ts +0 -3
- package/dist/execution/workflows/steps.js +2 -2
- package/dist/platform/schema/kernel-compiled.d.ts +1 -1
- package/dist/platform/schema/kernel-compiled.js +2 -2
- package/dist/testing/query.d.ts +7 -2
- package/dist/testing/query.js +4 -3
- package/docs/queries.md +32 -15
- package/package.json +11 -11
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import type { IntegrationClientFactory, Integrations } from '../../application/integration/index.js';
|
|
2
|
-
import type { DeclaredClass } from '../../application/query/execution/crossings.js';
|
|
3
2
|
import type { DurableExecution, DurableStepAuthority } from '../../application/workflow/index.js';
|
|
4
3
|
import type { BoundClientSession } from '../../platform/client/session/index.js';
|
|
5
4
|
import type { Domain } from '../../platform/schema/index.js';
|
|
@@ -30,8 +29,6 @@ export type StepAuthorities = (attempt: StepAttempt) => StepAuthorityBinding;
|
|
|
30
29
|
export declare function sessionSteps(input: {
|
|
31
30
|
readonly executor: Executor;
|
|
32
31
|
readonly domain: Domain;
|
|
33
|
-
/** The Class requirements the Domain's build declares: a Query's reads are checked against them. */
|
|
34
|
-
readonly declared: readonly DeclaredClass[];
|
|
35
32
|
readonly integrations: IntegrationClientFactory<Integrations>;
|
|
36
33
|
}): StepAuthorities;
|
|
37
34
|
/**
|
|
@@ -8,7 +8,7 @@ import { stepCalls } from './integrations.js';
|
|
|
8
8
|
* an Action over the keyed Session, and the Runtime's Integration clients over the same keys.
|
|
9
9
|
*/
|
|
10
10
|
export function sessionSteps(input) {
|
|
11
|
-
const { executor, domain,
|
|
11
|
+
const { executor, domain, integrations } = input;
|
|
12
12
|
return ({ execution, next, lifetime }) => {
|
|
13
13
|
const session = executor(execution.kernel, execution.id, lifetime);
|
|
14
14
|
try {
|
|
@@ -19,7 +19,7 @@ export function sessionSteps(input) {
|
|
|
19
19
|
});
|
|
20
20
|
const auth = bindIntegrationAuthentication(lifetime, bound);
|
|
21
21
|
const authority = Object.freeze({
|
|
22
|
-
...bindCapabilities(domain, { self }
|
|
22
|
+
...bindCapabilities(domain, { self }),
|
|
23
23
|
integrations: integrations(stepCalls({ next, lifetime, auth })),
|
|
24
24
|
});
|
|
25
25
|
return Object.freeze({
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/** Generated from the Kernel Schema of @astrale-os/kernel-core 1.0.0-beta.
|
|
1
|
+
/** Generated from the Kernel Schema of @astrale-os/kernel-core 1.0.0-beta.33, reduced to its Classes. Regenerate with pnpm sync:kernel-schema. */
|
|
2
2
|
export declare const kernelCompiledSchema: string;
|