@astrale-domains/shell 0.1.0-beta.11 → 0.1.0-beta.12
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 +4 -4
- package/dist/schema/domain/index.d.ts +4 -4
- package/dist/schema/group/class.d.ts +17 -17
- package/dist/schema/index.d.ts +6 -6
- package/package.json +7 -15
- package/dist/actions/index.js +0 -1
- package/dist/actions/user/index.js +0 -1
- package/dist/actions/user/resolve-home.js +0 -19
- package/dist/application.d.ts +0 -9809
- package/dist/application.js +0 -29
- package/dist/entrypoints/application.d.ts +0 -1
- package/dist/entrypoints/application.js +0 -1
- package/dist/entrypoints/runtime.js +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.js +0 -3
- package/dist/mutations/group/index.js +0 -1
- package/dist/mutations/group/membership.js +0 -19
- package/dist/mutations/space/access.js +0 -23
- package/dist/mutations/space/default.js +0 -23
- package/dist/mutations/space/index.js +0 -2
- package/dist/mutations/user/index.js +0 -1
- package/dist/mutations/user/repair.js +0 -83
- package/dist/queries/space/access.js +0 -12
- package/dist/queries/space/admin.js +0 -20
- package/dist/queries/space/index.js +0 -3
- package/dist/queries/space/member.js +0 -17
- package/dist/queries/user/groups.js +0 -17
- package/dist/queries/user/home.js +0 -21
- package/dist/queries/user/index.js +0 -5
- package/dist/queries/user/owned-spaces.js +0 -17
- package/dist/queries/user/profile.js +0 -16
- package/dist/queries/user/setup.js +0 -16
- package/dist/runtime.d.ts +0 -4
- package/dist/runtime.js +0 -18
- package/dist/workflows/group/assign.js +0 -3
- package/dist/workflows/group/change.js +0 -31
- package/dist/workflows/group/index.js +0 -3
- package/dist/workflows/group/unassign.js +0 -3
- package/dist/workflows/index.js +0 -3
- package/dist/workflows/setup/admin.js +0 -3
- package/dist/workflows/setup/index.js +0 -5
- package/dist/workflows/setup/member.js +0 -3
- package/dist/workflows/setup/plan.js +0 -88
- package/dist/workflows/setup/provision.js +0 -57
- package/dist/workflows/setup/run.js +0 -74
- package/dist/workflows/space/access.js +0 -41
- package/dist/workflows/space/add.js +0 -3
- package/dist/workflows/space/default.js +0 -37
- package/dist/workflows/space/index.js +0 -4
- package/dist/workflows/space/remove.js +0 -3
package/README.md
CHANGED
|
@@ -60,10 +60,10 @@ decisions, journeys, legacy disposition, dependency gates, and qualification evi
|
|
|
60
60
|
[`.history/`](.history/). Product Domains intentionally have no `.spec/` tree; Kernel authoring
|
|
61
61
|
values come through semantic `@astrale-os/sdk/*` facades.
|
|
62
62
|
|
|
63
|
-
Domain authors import the schema facade from `@astrale-domains/shell`.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
Domain authors import the schema facade from `@astrale-domains/shell`. The public package is the
|
|
64
|
+
schema contract only. Shell's independently released Worker is built from this repository's local
|
|
65
|
+
application descriptor and runtime entrypoint, so consumers never install remote implementation
|
|
66
|
+
code to use the Domain.
|
|
67
67
|
|
|
68
68
|
The source, deterministic Knowledge linter, TypeScript package, unit/cross-layer tests, and remote Shell
|
|
69
69
|
contract are qualified locally. Installed-instance, released-package, browser, and live
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { KernelSchema, schema, type builder, type CallableInputOf, type CallableResultOf } from '@astrale-os/sdk/schema';
|
|
2
|
-
import { groupAssignUser, groupUnassignUser } from '
|
|
3
|
-
import { setupAdmin, setupMember } from '
|
|
4
|
-
import { spaceAddUser, spaceRemoveUser, spaceSetDefault } from '
|
|
5
|
-
import { resolveHome } from '
|
|
2
|
+
import { groupAssignUser, groupUnassignUser } from '../group/index.js';
|
|
3
|
+
import { setupAdmin, setupMember } from '../setup/index.js';
|
|
4
|
+
import { spaceAddUser, spaceRemoveUser, spaceSetDefault } from '../space/index.js';
|
|
5
|
+
import { resolveHome } from '../user/index.js';
|
|
6
6
|
export declare const ORIGIN: 'shell.astrale.ai';
|
|
7
7
|
export declare const ShellCore: {
|
|
8
8
|
nodes: {
|
|
@@ -253,17 +253,7 @@ export declare const Group: import("@astrale-os/sdk/schema").NodeClass<{
|
|
|
253
253
|
}, false, "default", "authenticated", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.delegate"> & {
|
|
254
254
|
readonly name: "delegate";
|
|
255
255
|
});
|
|
256
|
-
readonly effectiveStaticMethods: (import("@astrale-os/sdk/schema").ResolvedMethod<{
|
|
257
|
-
policy: string;
|
|
258
|
-
object: string;
|
|
259
|
-
}, {
|
|
260
|
-
readonly mode: 'value';
|
|
261
|
-
readonly value: {
|
|
262
|
-
allowed: boolean;
|
|
263
|
-
};
|
|
264
|
-
}, true, "default", "authenticated", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.can"> & {
|
|
265
|
-
readonly name: "can";
|
|
266
|
-
}) | (import("@astrale-os/sdk/schema").ResolvedMethod<Record<string, never>, {
|
|
256
|
+
readonly effectiveStaticMethods: (import("@astrale-os/sdk/schema").ResolvedMethod<Record<string, never>, {
|
|
267
257
|
readonly mode: 'value';
|
|
268
258
|
readonly value: {
|
|
269
259
|
id: string;
|
|
@@ -286,14 +276,15 @@ export declare const Group: import("@astrale-os/sdk/schema").NodeClass<{
|
|
|
286
276
|
}, true, "default", "authenticated", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.whoami"> & {
|
|
287
277
|
readonly name: "whoami";
|
|
288
278
|
}) | (import("@astrale-os/sdk/schema").ResolvedMethod<{
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
grant?: unknown;
|
|
279
|
+
policy: string;
|
|
280
|
+
object: string;
|
|
292
281
|
}, {
|
|
293
282
|
readonly mode: 'value';
|
|
294
|
-
readonly value:
|
|
295
|
-
|
|
296
|
-
|
|
283
|
+
readonly value: {
|
|
284
|
+
allowed: boolean;
|
|
285
|
+
};
|
|
286
|
+
}, true, "default", "authenticated", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.can"> & {
|
|
287
|
+
readonly name: "can";
|
|
297
288
|
}) | (import("@astrale-os/sdk/schema").ResolvedMethod<{
|
|
298
289
|
issuer: string;
|
|
299
290
|
subject: string;
|
|
@@ -319,5 +310,14 @@ export declare const Group: import("@astrale-os/sdk/schema").NodeClass<{
|
|
|
319
310
|
} | null;
|
|
320
311
|
}, true, "default", "authorized", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.whois"> & {
|
|
321
312
|
readonly name: "whois";
|
|
313
|
+
}) | (import("@astrale-os/sdk/schema").ResolvedMethod<{
|
|
314
|
+
audience?: string | undefined;
|
|
315
|
+
ttlSeconds: number;
|
|
316
|
+
grant?: unknown;
|
|
317
|
+
}, {
|
|
318
|
+
readonly mode: 'value';
|
|
319
|
+
readonly value: string;
|
|
320
|
+
}, true, "default", "authorized", import("@astrale-os/sdk/schema").PolicyCheckExpression<import("@astrale-os/sdk/schema").PolicyRef, import("@astrale-os/sdk/schema").PolicyCheckObject>, "kernel.astrale.ai:class.Identity.method.mint"> & {
|
|
321
|
+
readonly name: "mint";
|
|
322
322
|
});
|
|
323
323
|
}>;
|
package/dist/schema/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ORIGIN, S, ShellCore, ShellSchema, type GroupMembershipInput, type GroupMembershipResult, type ResolveHomeResult, type SetDefaultSpaceInput, type SetDefaultSpaceResult, type SetupUserInput, type SetupUserResult, type Shell, type SpaceUserAccess, type SpaceUserAccessInput, type SpaceUserAccessResult, type SpaceUserInput, type SpaceUserResult, } from '
|
|
2
|
-
export { Group, adminGroup, groupAssignUser, groupCore, groupUnassignUser, groupView, maySetupUsers, memberGroup, member_of_group, } from '
|
|
3
|
-
export { homeView } from '
|
|
4
|
-
export { setupAdmin, setupMember } from '
|
|
5
|
-
export { Space, administers_space, belongsToSpace, default_space, defaultSpace, mayAdministerSpace, member_of_space, owns_space, ownsSpace, spaceAddUser, spaceCore, spaceRemoveUser, spaceSetDefault, spaceView, } from '
|
|
6
|
-
export { User, resolveHome, userView } from '
|
|
1
|
+
export { ORIGIN, S, ShellCore, ShellSchema, type GroupMembershipInput, type GroupMembershipResult, type ResolveHomeResult, type SetDefaultSpaceInput, type SetDefaultSpaceResult, type SetupUserInput, type SetupUserResult, type Shell, type SpaceUserAccess, type SpaceUserAccessInput, type SpaceUserAccessResult, type SpaceUserInput, type SpaceUserResult, } from './domain/index.js';
|
|
2
|
+
export { Group, adminGroup, groupAssignUser, groupCore, groupUnassignUser, groupView, maySetupUsers, memberGroup, member_of_group, } from './group/index.js';
|
|
3
|
+
export { homeView } from './home/index.js';
|
|
4
|
+
export { setupAdmin, setupMember } from './setup/index.js';
|
|
5
|
+
export { Space, administers_space, belongsToSpace, default_space, defaultSpace, mayAdministerSpace, member_of_space, owns_space, ownsSpace, spaceAddUser, spaceCore, spaceRemoveUser, spaceSetDefault, spaceView, } from './space/index.js';
|
|
6
|
+
export { User, resolveHome, userView } from './user/index.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astrale-domains/shell",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
4
|
-
"description": "Astrale Shell Domain schema
|
|
3
|
+
"version": "0.1.0-beta.12",
|
|
4
|
+
"description": "Astrale Shell Domain schema contract",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -12,8 +12,8 @@
|
|
|
12
12
|
"dist"
|
|
13
13
|
],
|
|
14
14
|
"type": "module",
|
|
15
|
-
"main": "./dist/index.js",
|
|
16
|
-
"types": "./dist/index.d.ts",
|
|
15
|
+
"main": "./dist/schema/index.js",
|
|
16
|
+
"types": "./dist/schema/index.d.ts",
|
|
17
17
|
"imports": {
|
|
18
18
|
"#mutations": "./dist/mutations/index.js",
|
|
19
19
|
"#mutations/*": "./dist/mutations/*/index.js",
|
|
@@ -26,16 +26,8 @@
|
|
|
26
26
|
},
|
|
27
27
|
"exports": {
|
|
28
28
|
".": {
|
|
29
|
-
"types": "./dist/index.d.ts",
|
|
30
|
-
"import": "./dist/index.js"
|
|
31
|
-
},
|
|
32
|
-
"./application": {
|
|
33
|
-
"types": "./dist/entrypoints/application.d.ts",
|
|
34
|
-
"import": "./dist/entrypoints/application.js"
|
|
35
|
-
},
|
|
36
|
-
"./runtime": {
|
|
37
|
-
"types": "./dist/runtime.d.ts",
|
|
38
|
-
"import": "./dist/entrypoints/runtime.js"
|
|
29
|
+
"types": "./dist/schema/index.d.ts",
|
|
30
|
+
"import": "./dist/schema/index.js"
|
|
39
31
|
},
|
|
40
32
|
"./package.json": "./package.json"
|
|
41
33
|
},
|
|
@@ -47,7 +39,7 @@
|
|
|
47
39
|
"zod": "4.4.3"
|
|
48
40
|
},
|
|
49
41
|
"devDependencies": {
|
|
50
|
-
"@astrale-os/sdk": "0.5.0-beta.
|
|
42
|
+
"@astrale-os/sdk": "0.5.0-beta.49",
|
|
51
43
|
"@astrale/typescript-config": "npm:@jsr/astrale__typescript-config@~1.1.3",
|
|
52
44
|
"typescript": "7.0.2",
|
|
53
45
|
"vitest": "4.1.10"
|
package/dist/actions/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './user/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { resolveHomeAction } from './resolve-home.js';
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { defineAction } from '@astrale-os/sdk/action';
|
|
2
|
-
import { InvocationError } from '@astrale-os/sdk/execution';
|
|
3
|
-
import { Path } from '@astrale-os/sdk/graph/path';
|
|
4
|
-
import { observeHome } from '#queries/user';
|
|
5
|
-
export const resolveHomeAction = defineAction()('User.resolveHome', async ({ domain, query, self }) => {
|
|
6
|
-
const observed = await query(observeHome, Path.id(self).raw);
|
|
7
|
-
if (observed.spaces.length > 1) {
|
|
8
|
-
throw new InvocationError('CONFLICT', 'The Shell User has more than one default Space.', {
|
|
9
|
-
reason: { code: 'MULTIPLE_DEFAULT_SPACES', details: {} },
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
const home = observed.spaces[0];
|
|
13
|
-
if (home !== undefined && home.class !== domain.classes.Space.key) {
|
|
14
|
-
throw new InvocationError('CONFLICT', 'The Shell User default target is not a Shell Space.', {
|
|
15
|
-
reason: { code: 'DEFAULT_SPACE_CLASS_CONFLICT', details: {} },
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return Object.freeze({ userId: self, personalSpaceId: home?.id ?? null });
|
|
19
|
-
});
|