@astrale-os/kernel-client 0.6.0-beta.83 → 0.6.0-beta.84

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,3 +1,3 @@
1
- export { createSchema, DEFAULT_SCHEMA_LIFECYCLE_TIMEOUT_MS, type SchemaApi, type SchemaCall, type SchemaOptions, type DomainBundle, type DomainDependencies, type DomainInfo, type InstallResult, } from './schema.js';
1
+ export { createSchema, DEFAULT_SCHEMA_LIFECYCLE_TIMEOUT_MS, type SchemaApi, type SchemaCall, type SchemaOptions, type DomainBundle, type DomainDependencies, type DomainInfo, type InstalledPin, type InstalledRelease, type InstallResult, } from './schema.js';
2
2
  export { acceptOperationId, createOperationId } from './operation.js';
3
3
  export type { DomainRequest, InstallReceipt, InstallRequest, OperationId, UninstallReceipt, UninstallRequest, } from './contracts.js';
@@ -10,6 +10,8 @@ export interface SchemaOptions extends protocolSchema.installation.introspection
10
10
  export type DomainInfo = protocolSchema.installation.introspection.DomainInfo;
11
11
  export type DomainBundle = protocolSchema.installation.introspection.DomainBundle;
12
12
  export type DomainDependencies = protocolSchema.installation.introspection.DomainDependencies;
13
+ export type InstalledRelease = protocolSchema.installation.introspection.InstalledRelease;
14
+ export type InstalledPin = protocolSchema.installation.introspection.InstalledPin;
13
15
  export type InstallResult = protocolSchema.installation.InstallResult;
14
16
  export interface SchemaApi {
15
17
  install(request: InstallRequest, options?: RequestOptions): Promise<InstallResult>;
@@ -17,6 +19,7 @@ export interface SchemaApi {
17
19
  inspect(origin: Key.Origin, options?: RequestOptions): Promise<DomainInfo>;
18
20
  bundle(origin: Key.Origin, options?: RequestOptions): Promise<DomainBundle>;
19
21
  dependencies(origin: Key.Origin, options?: RequestOptions): Promise<DomainDependencies>;
22
+ installed(options?: RequestOptions): Promise<readonly InstalledRelease[]>;
20
23
  }
21
24
  export declare const DEFAULT_SCHEMA_LIFECYCLE_TIMEOUT_MS = 110000;
22
25
  /** Bind the canonical Schema lifecycle syscalls to one caller-scoped value-call capability. */
@@ -54,6 +54,9 @@ export function createSchema(call, limits) {
54
54
  async dependencies(origin, options) {
55
55
  return introspect(call, admittedLimits, { kind: 'dependencies', origin }, options);
56
56
  },
57
+ async installed(options) {
58
+ return introspect(call, admittedLimits, { kind: 'installed' }, options);
59
+ },
57
60
  });
58
61
  }
59
62
  function snapshotUninstallRequest(request) {
@@ -34,7 +34,15 @@ export function bindSession(source, controls) {
34
34
  const inspect = (origin, options) => schemaSource.inspect(origin, controlOptions(options, admittedControls));
35
35
  const bundle = (origin, options) => schemaSource.bundle(origin, controlOptions(options, admittedControls));
36
36
  const dependencies = (origin, options) => schemaSource.dependencies(origin, controlOptions(options, admittedControls));
37
- const schema = Object.freeze({ install, uninstall, inspect, bundle, dependencies });
37
+ const installed = (options) => schemaSource.installed(controlOptions(options, admittedControls));
38
+ const schema = Object.freeze({
39
+ install,
40
+ uninstall,
41
+ inspect,
42
+ bundle,
43
+ dependencies,
44
+ installed,
45
+ });
38
46
  const graph = createGraph(call);
39
47
  const auth = createAuth((target, input, options) => call(createCall(target, input), options), admit);
40
48
  return Object.freeze({
@@ -103,6 +111,7 @@ function captureSchema(input) {
103
111
  inspect: capture(input, 'inspect'),
104
112
  bundle: capture(input, 'bundle'),
105
113
  dependencies: capture(input, 'dependencies'),
114
+ installed: capture(input, 'installed'),
106
115
  });
107
116
  }
108
117
  function invalid() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/kernel-client",
3
- "version": "0.6.0-beta.83",
3
+ "version": "0.6.0-beta.84",
4
4
  "description": "Universal Client — protocol-first, transport-agnostic",
5
5
  "keywords": [
6
6
  "astrale",
@@ -65,13 +65,13 @@
65
65
  "access": "public"
66
66
  },
67
67
  "dependencies": {
68
- "@astrale-os/kernel-core": "0.9.0-beta.62",
69
- "@astrale-os/kernel-dsl": "0.2.0-beta.44",
70
- "@astrale-os/kernel-protocol": "0.5.0-beta.68",
68
+ "@astrale-os/kernel-core": "0.9.0-beta.63",
69
+ "@astrale-os/kernel-dsl": "0.2.0-beta.45",
70
+ "@astrale-os/kernel-protocol": "0.5.0-beta.69",
71
71
  "@tanstack/pacer": "0.20.1"
72
72
  },
73
73
  "devDependencies": {
74
- "@astrale-os/kernel-server": "0.5.0-beta.70",
74
+ "@astrale-os/kernel-server": "0.5.0-beta.71",
75
75
  "@astrale/typescript-config": "npm:@jsr/astrale__typescript-config@~1.1.0",
76
76
  "@types/node": "^22.0.0",
77
77
  "typescript": "7.0.2",