@astrale-os/kernel-client 0.6.0-beta.65 → 0.6.0-beta.66
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Path as PathValue, PathLike } from '@astrale-os/kernel-core/path';
|
|
2
2
|
import type { CallableInputOf, CallableOutputOf, CallableResultOf, Domain, ResolvedFunction, ExecutableMethod } from '@astrale-os/kernel-dsl/v1';
|
|
3
3
|
import type { Revision } from '@astrale-os/kernel-dsl/v1/addressing';
|
|
4
|
-
import {
|
|
4
|
+
import type { MeaningFingerprint } from '@astrale-os/kernel-dsl/v1/schema/fingerprint';
|
|
5
5
|
import { type Key as KeyType } from '@astrale-os/kernel-dsl/v1/addressing';
|
|
6
6
|
import type { Binary, Input } from '../client/index.js';
|
|
7
7
|
declare const REFERENCE_INPUT: unique symbol;
|
|
@@ -11,7 +11,7 @@ export interface CallableReference<InputValue = Input, Output = unknown> {
|
|
|
11
11
|
/** @deprecated Informational only; dispatch pins `fingerprint` and revision pinning will be removed. */
|
|
12
12
|
readonly revision: Revision;
|
|
13
13
|
/** Meaning fingerprint of the callable; a generated reference always carries one. */
|
|
14
|
-
readonly fingerprint?:
|
|
14
|
+
readonly fingerprint?: MeaningFingerprint;
|
|
15
15
|
readonly callable: KeyType.Callable;
|
|
16
16
|
readonly target: PathValue;
|
|
17
17
|
readonly outputMode: 'value' | 'stream' | 'binary';
|
|
@@ -22,7 +22,7 @@ export interface InstanceCallableReference<InputValue = Input, Output = unknown>
|
|
|
22
22
|
(receiver: PathLike): CallableReference<InputValue, Output>;
|
|
23
23
|
readonly origin: KeyType.Origin;
|
|
24
24
|
readonly revision: Revision;
|
|
25
|
-
readonly fingerprint:
|
|
25
|
+
readonly fingerprint: MeaningFingerprint;
|
|
26
26
|
readonly callable: KeyType.Callable;
|
|
27
27
|
readonly outputMode: 'value' | 'stream' | 'binary';
|
|
28
28
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Path } from '@astrale-os/kernel-core/path';
|
|
2
|
-
import { schema as dslSchema } from '@astrale-os/kernel-dsl/v1';
|
|
3
2
|
import { callableAddress, Key, patterns, } from '@astrale-os/kernel-dsl/v1/addressing';
|
|
3
|
+
import { callableFingerprint } from '@astrale-os/kernel-dsl/v1/schema/fingerprint';
|
|
4
4
|
const FINGERPRINT_PATTERN = /^sha256:[0-9a-f]{64}$/u;
|
|
5
5
|
export function reference(domain, callable) {
|
|
6
6
|
if (Key.origin(callable.key) !== domain.origin)
|
|
@@ -10,7 +10,7 @@ export function reference(domain, callable) {
|
|
|
10
10
|
const common = Object.freeze({
|
|
11
11
|
origin: domain.origin,
|
|
12
12
|
revision: domain.revision,
|
|
13
|
-
fingerprint:
|
|
13
|
+
fingerprint: callableFingerprint(callable),
|
|
14
14
|
callable: callable.key,
|
|
15
15
|
outputMode: callable.output.mode,
|
|
16
16
|
});
|
package/dist/session/session.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Path } from '@astrale-os/kernel-core/path';
|
|
2
|
-
import {
|
|
2
|
+
import { callableFingerprint } from '@astrale-os/kernel-dsl/v1/schema/fingerprint';
|
|
3
3
|
import { Client } from '../client/index.js';
|
|
4
4
|
import { SessionError } from '../errors/index.js';
|
|
5
5
|
import { createDomainBinding } from '../graph/domain/binding.js';
|
|
@@ -178,7 +178,7 @@ export class ClientSession {
|
|
|
178
178
|
return this.invoke({
|
|
179
179
|
origin: owner.origin,
|
|
180
180
|
revision: owner.revision,
|
|
181
|
-
fingerprint:
|
|
181
|
+
fingerprint: callableFingerprint(method),
|
|
182
182
|
callable: method.key,
|
|
183
183
|
target: Path.instanceMethod(Path.id(node.id), method.key),
|
|
184
184
|
outputMode: method.output.mode,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-os/kernel-client",
|
|
3
|
-
"version": "0.6.0-beta.
|
|
3
|
+
"version": "0.6.0-beta.66",
|
|
4
4
|
"description": "Universal Client — protocol-first, transport-agnostic",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astrale",
|
|
@@ -65,14 +65,14 @@
|
|
|
65
65
|
"access": "public"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@astrale-os/kernel-core": "0.9.0-beta.
|
|
69
|
-
"@astrale-os/kernel-dsl": "0.2.0-beta.
|
|
70
|
-
"@astrale-os/kernel-protocol": "0.5.0-beta.
|
|
68
|
+
"@astrale-os/kernel-core": "0.9.0-beta.51",
|
|
69
|
+
"@astrale-os/kernel-dsl": "0.2.0-beta.36",
|
|
70
|
+
"@astrale-os/kernel-protocol": "0.5.0-beta.57",
|
|
71
71
|
"@tanstack/pacer": "0.20.1",
|
|
72
72
|
"msgpackr": "^2.0.5"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
|
-
"@astrale-os/kernel-server": "0.5.0-beta.
|
|
75
|
+
"@astrale-os/kernel-server": "0.5.0-beta.59",
|
|
76
76
|
"@astrale/typescript-config": "npm:@jsr/astrale__typescript-config@~1.1.0",
|
|
77
77
|
"@types/node": "^22.0.0",
|
|
78
78
|
"typescript": "7.0.2",
|