@astrale-os/shell 0.2.0 → 0.3.0
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/dist/application/apps.js +1 -1
- package/dist/application/session/session.d.ts +1 -1
- package/dist/application/spaces.js +1 -1
- package/dist/application/view.d.ts +2 -2
- package/dist/application/view.d.ts.map +1 -1
- package/dist/application/view.js +1 -1
- package/package.json +7 -4
- package/src/application/apps.ts +1 -1
- package/src/application/session/session.ts +1 -1
- package/src/application/spaces.ts +1 -1
- package/src/application/view.ts +2 -2
package/dist/application/apps.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D } from '@astrale-domains/
|
|
1
|
+
import { D } from '@astrale-domains/shell-schema';
|
|
2
2
|
import { normalizeRef } from '@astrale-os/kernel-client';
|
|
3
3
|
import { openAppSession } from './session/open';
|
|
4
4
|
/** The `installed_in` edge class — traversed to list a space's apps. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `AppSession` — the client half of the three-call app-opening protocol
|
|
3
3
|
* (`app::open` → user-signed `auth.delegate` → `app::getAccessToken`). The
|
|
4
|
-
* server contract lives in the
|
|
4
|
+
* server contract lives in the shell domain's `Application` methods
|
|
5
5
|
* (`runtime/application/{open,get-access-token}`).
|
|
6
6
|
*/
|
|
7
7
|
import type { MountCredential } from '../../window/mount/params';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { normalizeRef } from '@astrale-os/kernel-client';
|
|
2
|
-
/** The spaces directory (mirrors the
|
|
2
|
+
/** The spaces directory (mirrors the shell domain's `SPACES_DIR`). */
|
|
3
3
|
const SPACES_DIR = '/spaces';
|
|
4
4
|
export function createSpacesNamespace(kernel, v) {
|
|
5
5
|
return {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The typed plane the OS namespaces speak: `kernel.withSchema(schema)` over the
|
|
3
|
-
*
|
|
3
|
+
* shell domain (`@astrale-domains/shell-schema`). The bound view is built LAZILY
|
|
4
4
|
* (first call) so the sandboxed shell's "init() first" kernel guard applies
|
|
5
5
|
* uniformly — constructing namespaces touches no kernel.
|
|
6
6
|
*/
|
|
7
7
|
import type { BoundNode, DefOf, SchemaBoundView } from '@astrale-os/kernel-client';
|
|
8
8
|
import type { Node } from '@astrale-os/kernel-core';
|
|
9
|
-
import { schema } from '@astrale-domains/
|
|
9
|
+
import { schema } from '@astrale-domains/shell-schema';
|
|
10
10
|
import type { KernelClient } from '../kernel/client';
|
|
11
11
|
export type ShellSchema = typeof schema;
|
|
12
12
|
export interface ShellDomainView {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../src/application/view.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAClF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAA;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"view.d.ts","sourceRoot":"","sources":["../../src/application/view.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAClF,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,yBAAyB,CAAA;AAEnD,OAAO,EAAE,MAAM,EAAE,MAAM,+BAA+B,CAAA;AAEtD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAEpD,MAAM,MAAM,WAAW,GAAG,OAAO,MAAM,CAAA;AAEvC,MAAM,WAAW,eAAe;IAC9B,IAAI,IAAI,eAAe,CAAC,WAAW,CAAC,CAAA;IACpC,+EAA+E;IAC/E,MAAM,CAAC,CAAC,SAAS,MAAM,GAAG,OAAO,GAAG,aAAa,GAAG,MAAM,EACxD,IAAI,EAAE,CAAC,EACP,IAAI,EAAE,IAAI,GACT,SAAS,CAAC,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,EAAE,WAAW,CAAC,GAAG,IAAI,CAAA;CACxD;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,YAAY,GAAG,eAAe,CAW3E;AAED,8EAA8E;AAC9E,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,SAAS,CAAC,EAAE,GAAG,IAAI,GAAG,CAAC,EAAE,CAG/D"}
|
package/dist/application/view.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-os/shell",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.0",
|
|
4
4
|
"description": "Astrale Shell SDK — parent/child/kernel communication",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -25,9 +25,12 @@
|
|
|
25
25
|
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@astrale-domains/
|
|
29
|
-
"@astrale-os/kernel-client": ">=0.
|
|
30
|
-
"@astrale-os/kernel-core": ">=0.
|
|
28
|
+
"@astrale-domains/shell-schema": ">=0.3.1 <1.0.0",
|
|
29
|
+
"@astrale-os/kernel-client": ">=0.4.0 <1.0.0",
|
|
30
|
+
"@astrale-os/kernel-core": ">=0.7.1 <1.0.0",
|
|
31
|
+
"@astrale-os/kernel-dsl": ">=0.1.3 <1.0.0",
|
|
32
|
+
"jose": "^6.2.3",
|
|
33
|
+
"zod": "^4.3.6"
|
|
31
34
|
},
|
|
32
35
|
"devDependencies": {
|
|
33
36
|
"@typescript/native-preview": "latest",
|
package/src/application/apps.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BoundNode, DefOf, NodeRefInput } from '@astrale-os/kernel-client'
|
|
2
2
|
|
|
3
|
-
import { D } from '@astrale-domains/
|
|
3
|
+
import { D } from '@astrale-domains/shell-schema'
|
|
4
4
|
import { normalizeRef } from '@astrale-os/kernel-client'
|
|
5
5
|
|
|
6
6
|
import type { KernelClient } from '../kernel/client'
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* `AppSession` — the client half of the three-call app-opening protocol
|
|
3
3
|
* (`app::open` → user-signed `auth.delegate` → `app::getAccessToken`). The
|
|
4
|
-
* server contract lives in the
|
|
4
|
+
* server contract lives in the shell domain's `Application` methods
|
|
5
5
|
* (`runtime/application/{open,get-access-token}`).
|
|
6
6
|
*/
|
|
7
7
|
import type { MountCredential } from '../../window/mount/params'
|
|
@@ -17,7 +17,7 @@ export interface SpacesNamespace {
|
|
|
17
17
|
create(opts?: { name?: string }): Promise<SpaceNode>
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
/** The spaces directory (mirrors the
|
|
20
|
+
/** The spaces directory (mirrors the shell domain's `SPACES_DIR`). */
|
|
21
21
|
const SPACES_DIR = '/spaces'
|
|
22
22
|
|
|
23
23
|
export function createSpacesNamespace(kernel: KernelClient, v: ShellDomainView): SpacesNamespace {
|
package/src/application/view.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The typed plane the OS namespaces speak: `kernel.withSchema(schema)` over the
|
|
3
|
-
*
|
|
3
|
+
* shell domain (`@astrale-domains/shell-schema`). The bound view is built LAZILY
|
|
4
4
|
* (first call) so the sandboxed shell's "init() first" kernel guard applies
|
|
5
5
|
* uniformly — constructing namespaces touches no kernel.
|
|
6
6
|
*/
|
|
7
7
|
import type { BoundNode, DefOf, SchemaBoundView } from '@astrale-os/kernel-client'
|
|
8
8
|
import type { Node } from '@astrale-os/kernel-core'
|
|
9
9
|
|
|
10
|
-
import { schema } from '@astrale-domains/
|
|
10
|
+
import { schema } from '@astrale-domains/shell-schema'
|
|
11
11
|
|
|
12
12
|
import type { KernelClient } from '../kernel/client'
|
|
13
13
|
|