@astrale-os/shell-react 0.2.0 → 0.2.2
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/app-host.d.ts +2 -2
- package/dist/application/apps/app-host.d.ts.map +1 -1
- package/dist/application/apps/app-host.js +3 -3
- package/dist/application/apps/apps.hook.d.ts +1 -1
- package/dist/application/apps/apps.hook.d.ts.map +1 -1
- package/dist/application/apps/apps.hook.js +4 -4
- package/dist/application/apps/open-app.hook.d.ts +1 -1
- package/dist/application/apps/open-app.hook.d.ts.map +1 -1
- package/dist/application/apps/open-app.hook.js +3 -3
- package/dist/application/index.d.ts +16 -16
- package/dist/application/index.d.ts.map +1 -1
- package/dist/application/index.js +9 -9
- package/dist/application/roles.hook.d.ts +1 -1
- package/dist/application/roles.hook.d.ts.map +1 -1
- package/dist/application/roles.hook.js +3 -3
- package/dist/application/spaces/current-space.hook.d.ts +1 -1
- package/dist/application/spaces/current-space.hook.d.ts.map +1 -1
- package/dist/application/spaces/current-space.hook.js +3 -3
- package/dist/application/spaces/space.hook.d.ts +1 -1
- package/dist/application/spaces/space.hook.d.ts.map +1 -1
- package/dist/application/spaces/space.hook.js +4 -4
- package/dist/application/spaces/spaces.hook.d.ts +2 -2
- package/dist/application/spaces/spaces.hook.d.ts.map +1 -1
- package/dist/application/spaces/spaces.hook.js +5 -5
- package/dist/application/user/user.hook.js +2 -2
- package/dist/auth/act-as.context.d.ts +1 -1
- package/dist/auth/act-as.context.d.ts.map +1 -1
- package/dist/auth/act-as.context.js +1 -1
- package/dist/auth/auth.hook.js +2 -2
- package/dist/auth/can.hook.d.ts +1 -1
- package/dist/auth/can.hook.d.ts.map +1 -1
- package/dist/auth/can.hook.js +2 -2
- package/dist/auth/index.d.ts +5 -5
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +4 -4
- package/dist/auth/self.hook.d.ts +1 -1
- package/dist/auth/self.hook.d.ts.map +1 -1
- package/dist/auth/self.hook.js +1 -1
- package/dist/auth/session-kernel.d.ts +1 -1
- package/dist/auth/session-kernel.d.ts.map +1 -1
- package/dist/auth/session-kernel.js +2 -2
- package/dist/graph/async.d.ts +1 -1
- package/dist/graph/async.d.ts.map +1 -1
- package/dist/graph/call/call.hook.d.ts +1 -1
- package/dist/graph/call/call.hook.d.ts.map +1 -1
- package/dist/graph/call/call.hook.js +2 -2
- package/dist/graph/call/stream.hook.js +1 -1
- package/dist/graph/index.d.ts +18 -18
- package/dist/graph/index.d.ts.map +1 -1
- package/dist/graph/index.js +8 -8
- package/dist/graph/memory/read/idle.d.ts +1 -1
- package/dist/graph/memory/read/idle.d.ts.map +1 -1
- package/dist/graph/memory/read/read.d.ts +1 -1
- package/dist/graph/memory/read/read.d.ts.map +1 -1
- package/dist/graph/memory/read/read.js +3 -3
- package/dist/graph/memory/scope.js +3 -3
- package/dist/graph/mutate/move.hook.d.ts +2 -2
- package/dist/graph/mutate/move.hook.d.ts.map +1 -1
- package/dist/graph/mutate/move.hook.js +3 -3
- package/dist/graph/mutate/mutate.hook.d.ts +1 -1
- package/dist/graph/mutate/mutate.hook.d.ts.map +1 -1
- package/dist/graph/mutate/mutate.hook.js +2 -2
- package/dist/graph/query/children.hook.d.ts +2 -2
- package/dist/graph/query/children.hook.d.ts.map +1 -1
- package/dist/graph/query/children.hook.js +2 -2
- package/dist/graph/query/graph.hook.js +1 -1
- package/dist/graph/query/neighbors.hook.d.ts +2 -2
- package/dist/graph/query/neighbors.hook.d.ts.map +1 -1
- package/dist/graph/query/neighbors.hook.js +4 -7
- package/dist/graph/query/node.hook.d.ts +2 -2
- package/dist/graph/query/node.hook.d.ts.map +1 -1
- package/dist/graph/query/node.hook.js +2 -2
- package/dist/graph/query/query.hook.d.ts +1 -1
- package/dist/graph/query/query.hook.d.ts.map +1 -1
- package/dist/graph/query/query.hook.js +1 -1
- package/dist/index.d.ts +25 -25
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +11 -11
- package/dist/intents/index.d.ts +5 -5
- package/dist/intents/index.d.ts.map +1 -1
- package/dist/intents/index.js +2 -2
- package/dist/intents/listen-intent.hook.d.ts +1 -1
- package/dist/intents/listen-intent.hook.d.ts.map +1 -1
- package/dist/intents/listen-intent.hook.js +3 -3
- package/dist/intents/reply.js +1 -1
- package/dist/intents/send-intent.hook.d.ts +1 -1
- package/dist/intents/send-intent.hook.d.ts.map +1 -1
- package/dist/intents/send-intent.hook.js +2 -2
- package/dist/navigation/adapters/adapter.d.ts +1 -1
- package/dist/navigation/adapters/adapter.d.ts.map +1 -1
- package/dist/navigation/adapters/memory.adapter.d.ts +2 -2
- package/dist/navigation/adapters/memory.adapter.d.ts.map +1 -1
- package/dist/navigation/adapters/url.adapter.d.ts +1 -1
- package/dist/navigation/adapters/url.adapter.d.ts.map +1 -1
- package/dist/navigation/hooks/ancestors.hook.d.ts +2 -2
- package/dist/navigation/hooks/ancestors.hook.d.ts.map +1 -1
- package/dist/navigation/hooks/ancestors.hook.js +5 -5
- package/dist/navigation/hooks/location.hook.d.ts +1 -1
- package/dist/navigation/hooks/location.hook.d.ts.map +1 -1
- package/dist/navigation/hooks/location.hook.js +2 -2
- package/dist/navigation/hooks/navigate.hook.d.ts +1 -1
- package/dist/navigation/hooks/navigate.hook.d.ts.map +1 -1
- package/dist/navigation/hooks/navigate.hook.js +1 -1
- package/dist/navigation/hooks/scope.hook.d.ts +3 -3
- package/dist/navigation/hooks/scope.hook.d.ts.map +1 -1
- package/dist/navigation/hooks/scope.hook.js +3 -3
- package/dist/navigation/index.d.ts +15 -15
- package/dist/navigation/index.d.ts.map +1 -1
- package/dist/navigation/index.js +8 -8
- package/dist/navigation/link.d.ts +1 -1
- package/dist/navigation/link.d.ts.map +1 -1
- package/dist/navigation/link.js +2 -2
- package/dist/navigation/location.d.ts +1 -1
- package/dist/navigation/location.d.ts.map +1 -1
- package/dist/navigation/scope.context.d.ts +5 -5
- package/dist/navigation/scope.context.d.ts.map +1 -1
- package/dist/navigation/scope.context.js +5 -5
- package/dist/navigation/snapshot.d.ts +3 -3
- package/dist/navigation/snapshot.d.ts.map +1 -1
- package/dist/schema/bind-read.d.ts +2 -2
- package/dist/schema/bind-read.d.ts.map +1 -1
- package/dist/schema/bind-read.js +5 -5
- package/dist/schema/binding.d.ts +1 -1
- package/dist/schema/binding.d.ts.map +1 -1
- package/dist/schema/binding.js +11 -11
- package/dist/schema/domain.hook.js +3 -3
- package/dist/schema/function.hook.d.ts +2 -2
- package/dist/schema/function.hook.d.ts.map +1 -1
- package/dist/schema/function.hook.js +2 -2
- package/dist/schema/index.d.ts +9 -9
- package/dist/schema/index.d.ts.map +1 -1
- package/dist/schema/index.js +6 -6
- package/dist/schema/kernel.hook.js +3 -3
- package/dist/schema/method.hook.d.ts +1 -1
- package/dist/schema/method.hook.d.ts.map +1 -1
- package/dist/schema/method.hook.js +4 -4
- package/dist/schema/types.d.ts +2 -2
- package/dist/schema/types.d.ts.map +1 -1
- package/dist/schema/write.d.ts +1 -1
- package/dist/schema/write.d.ts.map +1 -1
- package/dist/schema/write.js +9 -3
- package/dist/selection/index.d.ts +3 -3
- package/dist/selection/index.d.ts.map +1 -1
- package/dist/selection/index.js +2 -2
- package/dist/selection/live.js +1 -1
- package/dist/selection/scope.context.d.ts +1 -1
- package/dist/selection/scope.context.d.ts.map +1 -1
- package/dist/selection/scope.context.js +1 -1
- package/dist/selection/selection.hook.d.ts +1 -1
- package/dist/selection/selection.hook.d.ts.map +1 -1
- package/dist/selection/selection.hook.js +1 -1
- package/dist/session/boot/boot.d.ts +1 -1
- package/dist/session/boot/boot.d.ts.map +1 -1
- package/dist/session/boot/status.d.ts +1 -1
- package/dist/session/boot/status.d.ts.map +1 -1
- package/dist/session/connection/connection.hook.d.ts +1 -1
- package/dist/session/connection/connection.hook.d.ts.map +1 -1
- package/dist/session/connection/connection.hook.js +2 -2
- package/dist/session/index.d.ts +7 -7
- package/dist/session/index.d.ts.map +1 -1
- package/dist/session/index.js +5 -5
- package/dist/session/kernel-client.hook.js +1 -1
- package/dist/session/kernel-instance.hook.js +1 -1
- package/dist/session/provider.js +8 -8
- package/dist/session/shell.hook.js +1 -1
- package/dist/window/adopt.d.ts +2 -2
- package/dist/window/adopt.d.ts.map +1 -1
- package/dist/window/hooks/close-guard.hook.js +1 -1
- package/dist/window/hooks/target-node.hook.d.ts +2 -2
- package/dist/window/hooks/target-node.hook.d.ts.map +1 -1
- package/dist/window/hooks/target-node.hook.js +2 -2
- package/dist/window/hooks/views-for.hook.d.ts +2 -2
- package/dist/window/hooks/views-for.hook.d.ts.map +1 -1
- package/dist/window/hooks/views-for.hook.js +2 -2
- package/dist/window/hooks/window.hook.d.ts +1 -1
- package/dist/window/hooks/window.hook.d.ts.map +1 -1
- package/dist/window/hooks/window.hook.js +2 -2
- package/dist/window/hooks/windows.hook.js +2 -2
- package/dist/window/host.d.ts +2 -2
- package/dist/window/host.d.ts.map +1 -1
- package/dist/window/host.js +4 -4
- package/dist/window/hub.d.ts +3 -3
- package/dist/window/hub.d.ts.map +1 -1
- package/dist/window/hub.js +1 -1
- package/dist/window/index.d.ts +14 -14
- package/dist/window/index.d.ts.map +1 -1
- package/dist/window/index.js +7 -7
- package/dist/window/stage.js +3 -3
- package/package.json +7 -7
- package/src/application/apps/app-host.tsx +6 -6
- package/src/application/apps/apps.hook.ts +6 -6
- package/src/application/apps/open-app.hook.ts +4 -4
- package/src/application/index.ts +16 -16
- package/src/application/roles.hook.ts +4 -4
- package/src/application/spaces/current-space.hook.ts +4 -4
- package/src/application/spaces/space.hook.ts +5 -5
- package/src/application/spaces/spaces.hook.ts +7 -7
- package/src/application/user/user.hook.ts +2 -2
- package/src/auth/act-as.context.tsx +2 -2
- package/src/auth/auth.hook.ts +3 -3
- package/src/auth/can.hook.ts +3 -3
- package/src/auth/index.ts +5 -5
- package/src/auth/self.hook.ts +2 -2
- package/src/auth/session-kernel.ts +3 -3
- package/src/graph/async.ts +1 -1
- package/src/graph/call/call.hook.ts +3 -3
- package/src/graph/call/stream.hook.ts +1 -1
- package/src/graph/index.ts +18 -18
- package/src/graph/memory/read/idle.ts +1 -1
- package/src/graph/memory/read/read.ts +4 -4
- package/src/graph/memory/scope.ts +3 -3
- package/src/graph/mutate/move.hook.ts +5 -5
- package/src/graph/mutate/mutate.hook.ts +3 -3
- package/src/graph/query/children.hook.ts +4 -4
- package/src/graph/query/graph.hook.ts +1 -1
- package/src/graph/query/neighbors.hook.ts +7 -15
- package/src/graph/query/node.hook.ts +4 -4
- package/src/graph/query/query.hook.ts +2 -2
- package/src/index.ts +25 -25
- package/src/intents/index.ts +5 -5
- package/src/intents/listen-intent.hook.ts +4 -4
- package/src/intents/reply.ts +1 -1
- package/src/intents/send-intent.hook.ts +3 -3
- package/src/navigation/adapters/adapter.ts +1 -1
- package/src/navigation/adapters/memory.adapter.ts +2 -2
- package/src/navigation/adapters/url.adapter.ts +2 -2
- package/src/navigation/hooks/ancestors.hook.ts +7 -7
- package/src/navigation/hooks/location.hook.ts +3 -3
- package/src/navigation/hooks/navigate.hook.ts +2 -2
- package/src/navigation/hooks/scope.hook.ts +6 -6
- package/src/navigation/index.ts +15 -15
- package/src/navigation/link.tsx +3 -3
- package/src/navigation/location.ts +1 -1
- package/src/navigation/scope.context.tsx +9 -9
- package/src/navigation/snapshot.ts +3 -3
- package/src/schema/bind-read.ts +7 -7
- package/src/schema/binding.ts +20 -23
- package/src/schema/domain.hook.ts +3 -3
- package/src/schema/function.hook.ts +4 -4
- package/src/schema/index.ts +15 -9
- package/src/schema/kernel.hook.ts +3 -3
- package/src/schema/method.hook.ts +11 -11
- package/src/schema/types.ts +2 -2
- package/src/schema/write.ts +14 -4
- package/src/selection/index.ts +3 -3
- package/src/selection/live.ts +1 -1
- package/src/selection/scope.context.tsx +2 -2
- package/src/selection/selection.hook.ts +2 -2
- package/src/session/boot/boot.ts +1 -1
- package/src/session/boot/status.ts +1 -1
- package/src/session/connection/connection.hook.ts +3 -3
- package/src/session/index.ts +7 -7
- package/src/session/kernel-client.hook.ts +1 -1
- package/src/session/kernel-instance.hook.ts +1 -1
- package/src/session/provider.tsx +12 -12
- package/src/session/shell.hook.ts +1 -1
- package/src/window/adopt.ts +2 -2
- package/src/window/hooks/close-guard.hook.ts +1 -1
- package/src/window/hooks/target-node.hook.ts +4 -4
- package/src/window/hooks/views-for.hook.ts +4 -4
- package/src/window/hooks/window.hook.ts +3 -3
- package/src/window/hooks/windows.hook.ts +2 -2
- package/src/window/host.tsx +8 -8
- package/src/window/hub.ts +4 -4
- package/src/window/index.ts +14 -14
- package/src/window/stage.tsx +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../src/graph/memory/read/read.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,UAAU,EACX,MAAM,iCAAiC,CAAA;AAYxC,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../../../src/graph/memory/read/read.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAGV,UAAU,EACX,MAAM,iCAAiC,CAAA;AAYxC,OAAO,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AAiC7D;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,KAAK,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,EAAE,IAAI,CAAC,EAAE,eAAe,GAAG,OAAO,CAgD7F"}
|
|
@@ -7,9 +7,9 @@ import { canonicalizeAST, shapeInputToAST, stableStringify } from '@astrale-os/k
|
|
|
7
7
|
* stability (§1.7 — an unchanged shape returns the store's own stable snapshot).
|
|
8
8
|
*/
|
|
9
9
|
import { useCallback, useRef, useSyncExternalStore } from 'react';
|
|
10
|
-
import { useMemory } from '../scope';
|
|
11
|
-
import { EMPTY_PENDING, IDLE_READ, withPending } from './envelope';
|
|
12
|
-
import { isIdleInput } from './idle';
|
|
10
|
+
import { useMemory } from '../scope.js';
|
|
11
|
+
import { EMPTY_PENDING, IDLE_READ, withPending } from './envelope.js';
|
|
12
|
+
import { isIdleInput } from './idle.js';
|
|
13
13
|
const NOOP_UNSUB = () => { };
|
|
14
14
|
const IDLE_TOKEN = ' idle';
|
|
15
15
|
/** Project shell-react read options onto the store's — `with`/`window`/`live` key the shape. */
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
* present — so a principal never shares cached results with another.
|
|
6
6
|
*/
|
|
7
7
|
import { useContext, useMemo } from 'react';
|
|
8
|
-
import { IdentityContext } from '../../auth/act-as.context';
|
|
9
|
-
import { ShellContext } from '../../session/session.context';
|
|
10
|
-
import { baseMemoryFor } from './base';
|
|
8
|
+
import { IdentityContext } from '../../auth/act-as.context.js';
|
|
9
|
+
import { ShellContext } from '../../session/session.context.js';
|
|
10
|
+
import { baseMemoryFor } from './base.js';
|
|
11
11
|
/**
|
|
12
12
|
* The memory for this subtree. Throws outside a `<ShellProvider>`. Above any
|
|
13
13
|
* `<ActAs>` it is the base memory; inside one it is scoped by the binding.
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { NodeRefInput } from '@astrale-os/kernel-client';
|
|
2
2
|
import type { PathLike } from '@astrale-os/kernel-client/graph';
|
|
3
|
-
import type { Action } from '../action';
|
|
4
|
-
import type { Node } from '../memory/read/envelope';
|
|
3
|
+
import type { Action } from '../action.js';
|
|
4
|
+
import type { Node } from '../memory/read/envelope.js';
|
|
5
5
|
export type MoveAction = Action<[node: Node | NodeRefInput, to: PathLike], void>;
|
|
6
6
|
export declare function useMove(): MoveAction;
|
|
7
7
|
//# sourceMappingURL=move.hook.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"move.hook.d.ts","sourceRoot":"","sources":["../../../src/graph/mutate/move.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AAY/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"move.hook.d.ts","sourceRoot":"","sources":["../../../src/graph/mutate/move.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AAY/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAC1C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAA;AAMtD,MAAM,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,IAAI,GAAG,YAAY,EAAE,EAAE,EAAE,QAAQ,CAAC,EAAE,IAAI,CAAC,CAAA;AAEhF,wBAAgB,OAAO,IAAI,UAAU,CAYpC"}
|
|
@@ -6,9 +6,9 @@ import { rawOf } from '@astrale-os/kernel-client/graph';
|
|
|
6
6
|
* patch arm lands, with zero consumer change.
|
|
7
7
|
*/
|
|
8
8
|
import { useCallback } from 'react';
|
|
9
|
-
import { useSessionKernel } from '../../auth/session-kernel';
|
|
10
|
-
import { useAction } from '../action';
|
|
11
|
-
import { useMemory } from '../memory/scope';
|
|
9
|
+
import { useSessionKernel } from '../../auth/session-kernel.js';
|
|
10
|
+
import { useAction } from '../action.js';
|
|
11
|
+
import { useMemory } from '../memory/scope.js';
|
|
12
12
|
export function useMove() {
|
|
13
13
|
const kernel = useSessionKernel();
|
|
14
14
|
const memory = useMemory();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PatchBuilder } from '@astrale-os/kernel-client/graph';
|
|
2
2
|
import type { GraphMemory } from '@astrale-os/kernel-client/store';
|
|
3
|
-
import type { Action } from '../action';
|
|
3
|
+
import type { Action } from '../action.js';
|
|
4
4
|
export interface UseMutateOptions<A extends unknown[], R> {
|
|
5
5
|
/**
|
|
6
6
|
* `'auto'` (default) / `false`: the write's own overlay governs optimism - the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutate.hook.d.ts","sourceRoot":"","sources":["../../../src/graph/mutate/mutate.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAUlE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"mutate.hook.d.ts","sourceRoot":"","sources":["../../../src/graph/mutate/mutate.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAA;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAUlE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAK1C,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,OAAO,EAAE,EAAE,CAAC;IACtD;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,CAAC,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,IAAI,EAAE,CAAC,KAAK,IAAI,CAAC,CAAA;IAC3E,sFAAsF;IACtF,QAAQ,CAAC,EAAE,MAAM,GAAG,KAAK,CAAA;IACzB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,CAAC,KAAK,IAAI,CAAA;IAC9B,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAA;CACnC;AAED,wBAAgB,SAAS,CAAC,CAAC,SAAS,OAAO,EAAE,EAAE,CAAC,EAC9C,EAAE,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,GAAG,IAAI,EAAE,CAAC,KAAK,OAAO,CAAC,CAAC,CAAC,EAClD,IAAI,CAAC,EAAE,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC,GAC5B,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAoCd"}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* overlay; pass a function `optimistic` to preview an opaque dispatch effect.
|
|
6
6
|
*/
|
|
7
7
|
import { useCallback, useRef } from 'react';
|
|
8
|
-
import { useAction } from '../action';
|
|
9
|
-
import { useMemory } from '../memory/scope';
|
|
8
|
+
import { useAction } from '../action.js';
|
|
9
|
+
import { useMemory } from '../memory/scope.js';
|
|
10
10
|
export function useMutate(fn, opts) {
|
|
11
11
|
const memory = useMemory();
|
|
12
12
|
const fnRef = useRef(fn);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { AnyBoundNode, TypeNames } from '@astrale-os/kernel-client';
|
|
2
2
|
import type { OrderInput, PathLike } from '@astrale-os/kernel-client/graph';
|
|
3
3
|
import type { Schema } from '@astrale-os/kernel-dsl';
|
|
4
|
-
import type { TypedChildrenResult } from '../../schema/types';
|
|
5
|
-
import type { ReadState, Node, ReadOptions, Windowed } from '../memory/read/envelope';
|
|
4
|
+
import type { TypedChildrenResult } from '../../schema/types.js';
|
|
5
|
+
import type { ReadState, Node, ReadOptions, Windowed } from '../memory/read/envelope.js';
|
|
6
6
|
export interface ChildrenOptions extends ReadOptions {
|
|
7
7
|
/** Restrict to these classes (dual-path descent filter). */
|
|
8
8
|
classes?: PathLike[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"children.hook.d.ts","sourceRoot":"","sources":["../../../src/graph/query/children.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACxE,OAAO,KAAK,EAEV,UAAU,EACV,QAAQ,EAGT,MAAM,iCAAiC,CAAA;AACxC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAWpD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"children.hook.d.ts","sourceRoot":"","sources":["../../../src/graph/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AAI,GAAG,QAAQ,GAAG,IAAI,GAAG,SAAS,EAC1C,IAAI,CAAC,EAAE,eAAe,GACrB,cAAc,CAAA"}
|
|
@@ -6,8 +6,8 @@ import { rawOf } from '@astrale-os/kernel-client/graph';
|
|
|
6
6
|
* is a windowed, live read of a node's direct children; the typed twin binds them.
|
|
7
7
|
*/
|
|
8
8
|
import { useMemo } from 'react';
|
|
9
|
-
import { useChildren as useChildrenTyped } from '../../schema/bind-read';
|
|
10
|
-
import { useRead } from '../memory/read/read';
|
|
9
|
+
import { useChildren as useChildrenTyped } from '../../schema/bind-read.js';
|
|
10
|
+
import { useRead } from '../memory/read/read.js';
|
|
11
11
|
/** A node's direct children — windowed, live; `null` parent is idle (§1.3). */
|
|
12
12
|
function useChildrenUntyped(parent, opts) {
|
|
13
13
|
const shape = isIdle(parent) ? null : childrenShape(parent, opts);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { AnyBoundNode, EdgeNames } from '@astrale-os/kernel-client';
|
|
2
2
|
import type { Schema } from '@astrale-os/kernel-dsl';
|
|
3
|
-
import type { EndpointResult } from '../../schema/types';
|
|
4
|
-
import type { ReadOptions } from '../memory/read/envelope';
|
|
3
|
+
import type { EndpointResult } from '../../schema/types.js';
|
|
4
|
+
import type { ReadOptions } from '../memory/read/envelope.js';
|
|
5
5
|
export declare function useOut<S extends Schema, E extends EdgeNames<S>>(node: AnyBoundNode<S> | null | undefined, edge: E, opts?: ReadOptions): EndpointResult<S, E, 'to'>;
|
|
6
6
|
export declare function useIn<S extends Schema, E extends EdgeNames<S>>(node: AnyBoundNode<S> | null | undefined, edge: E, opts?: ReadOptions): EndpointResult<S, E, 'from'>;
|
|
7
7
|
//# sourceMappingURL=neighbors.hook.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"neighbors.hook.d.ts","sourceRoot":"","sources":["../../../src/graph/query/neighbors.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AASpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"neighbors.hook.d.ts","sourceRoot":"","sources":["../../../src/graph/query/neighbors.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AACxE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AASpD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,KAAK,EAAa,WAAW,EAAE,MAAM,4BAA4B,CAAA;AAKxE,wBAAgB,MAAM,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,EAC7D,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EACxC,IAAI,EAAE,CAAC,EACP,IAAI,CAAC,EAAE,WAAW,GACjB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,CAE5B;AAED,wBAAgB,KAAK,CAAC,CAAC,SAAS,MAAM,EAAE,CAAC,SAAS,SAAS,CAAC,CAAC,CAAC,EAC5D,IAAI,EAAE,YAAY,CAAC,CAAC,CAAC,GAAG,IAAI,GAAG,SAAS,EACxC,IAAI,EAAE,CAAC,EACP,IAAI,CAAC,EAAE,WAAW,GACjB,cAAc,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAE9B"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* useOut / useIn (API §6) — the public typed traversal read hooks. Resolve
|
|
3
|
-
* endpoints one-shot through `BoundNode.out/in` (`live: false`); become live with
|
|
3
|
+
* endpoints one-shot through `BoundNode.links.out/in` (`live: false`); become live with
|
|
4
4
|
* no surface change once edge-endpoint ids land. Deviations tracked in API §6/G6.
|
|
5
5
|
*/
|
|
6
6
|
import { useCallback, useEffect, useMemo, useRef, useState } from 'react';
|
|
7
|
-
import { schemaOf, tagSchema } from '../../schema/tag';
|
|
8
|
-
import { isIdleInput } from '../memory/read/idle';
|
|
7
|
+
import { schemaOf, tagSchema } from '../../schema/tag.js';
|
|
8
|
+
import { isIdleInput } from '../memory/read/idle.js';
|
|
9
9
|
export function useOut(node, edge, opts) {
|
|
10
10
|
return useEndpoint(node, edge, 'out', opts);
|
|
11
11
|
}
|
|
@@ -17,10 +17,7 @@ function useEndpoint(node, edge, side, _opts) {
|
|
|
17
17
|
const run = useCallback(async () => {
|
|
18
18
|
if (isIdleInput(node))
|
|
19
19
|
return null;
|
|
20
|
-
|
|
21
|
-
// → createBoundNode) carries out/in. The edge name is typed by the caller.
|
|
22
|
-
const t = node;
|
|
23
|
-
const result = await (side === 'out' ? t.out(edge) : t.in(edge));
|
|
20
|
+
const result = await (side === 'out' ? node.links.out(edge) : node.links.in(edge));
|
|
24
21
|
if (schema !== undefined)
|
|
25
22
|
tagEndpoints(result, schema);
|
|
26
23
|
return result;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { NodeRefInput, TypeNames } from '@astrale-os/kernel-client';
|
|
2
2
|
import type { PathLike } from '@astrale-os/kernel-client/graph';
|
|
3
3
|
import type { Schema } from '@astrale-os/kernel-dsl';
|
|
4
|
-
import type { TypedNodeResult } from '../../schema/types';
|
|
5
|
-
import type { ReadState, Node, ReadOptions } from '../memory/read/envelope';
|
|
4
|
+
import type { TypedNodeResult } from '../../schema/types.js';
|
|
5
|
+
import type { ReadState, Node, ReadOptions } from '../memory/read/envelope.js';
|
|
6
6
|
export interface NodeResult extends ReadState {
|
|
7
7
|
/** The node, or `null` when missing ≡ masked (never throws NOT_FOUND). */
|
|
8
8
|
readonly node: Node | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"node.hook.d.ts","sourceRoot":"","sources":["../../../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
6
6
|
* argument; a given call site is always one form, so hook order is stable.
|
|
7
7
|
*/
|
|
8
8
|
import { useMemo } from 'react';
|
|
9
|
-
import { useNode as useNodeTyped } from '../../schema/bind-read';
|
|
10
|
-
import { useRead } from '../memory/read/read';
|
|
9
|
+
import { useNode as useNodeTyped } from '../../schema/bind-read.js';
|
|
10
|
+
import { useRead } from '../memory/read/read.js';
|
|
11
11
|
/**
|
|
12
12
|
* A `Schema` (from `defineSchema`) — its shape (`domain`/`classes`/`interfaces`)
|
|
13
13
|
* is disjoint from a `PathLike` (`string | Path`), so this cleanly routes the
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { GatherBuilder, QueryASTInput, QuerySource } from '@astrale-os/kernel-client/graph';
|
|
2
|
-
import type { ReadState, Node, ReadOptions, Windowed } from '../memory/read/envelope';
|
|
2
|
+
import type { ReadState, Node, ReadOptions, Windowed } from '../memory/read/envelope.js';
|
|
3
3
|
export interface QueryResult extends ReadState, Windowed {
|
|
4
4
|
readonly nodes: readonly Node[];
|
|
5
5
|
readonly roots: readonly Node[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"query.hook.d.ts","sourceRoot":"","sources":["../../../src/graph/query/query.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAShG,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"query.hook.d.ts","sourceRoot":"","sources":["../../../src/graph/query/query.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAA;AAShG,OAAO,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAA;AAIxF,MAAM,WAAW,WAAY,SAAQ,SAAS,EAAE,QAAQ;IACtD,QAAQ,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,CAAA;IAC/B,QAAQ,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,CAAA;IAC/B,QAAQ,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,CAAA;IAC3B,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG;QAAE,QAAQ,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,CAAC;QAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,CAAA;KAAE,CAAA;CAC1F;AAED,gFAAgF;AAChF,wBAAgB,QAAQ,CACtB,KAAK,EAAE,CAAC,CAAC,CAAC,EAAE,WAAW,KAAK,aAAa,CAAC,GAAG,aAAa,GAAG,IAAI,GAAG,SAAS,EAC7E,IAAI,CAAC,EAAE,WAAW,GACjB,WAAW,CAiBb"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* roots/first/nodes and the gathered-alias arms.
|
|
5
5
|
*/
|
|
6
6
|
import { useMemo } from 'react';
|
|
7
|
-
import { useRead } from '../memory/read/read';
|
|
7
|
+
import { useRead } from '../memory/read/read.js';
|
|
8
8
|
/** A structured read — builder callback or AST value; `null` is idle (§1.3). */
|
|
9
9
|
export function useQuery(build, opts) {
|
|
10
10
|
const r = useRead(build ?? null, opts);
|
package/dist/index.d.ts
CHANGED
|
@@ -7,32 +7,32 @@
|
|
|
7
7
|
* domain binding. `useNode`/`useChildren` are single overloaded symbols (untyped
|
|
8
8
|
* floor + typed overloads) exported from the graph plane.
|
|
9
9
|
*/
|
|
10
|
-
export { ShellProvider } from './session';
|
|
11
|
-
export type { ShellError, ShellProviderProps } from './session';
|
|
12
|
-
export { useConnection, useKernelClient, useKernelInstance, useShell } from './session';
|
|
13
|
-
export type { KernelInstance } from './session';
|
|
14
|
-
export { ActAs, useAuth, useCan, useSelf } from './auth';
|
|
15
|
-
export type { ActAsProps } from './auth';
|
|
16
|
-
export { useCall, useChildren, useGraph, useMove, useMutate, useNode, useQuery, useStream, } from './graph';
|
|
17
|
-
export type { ChildrenOptions, ChildrenResult, GraphMemory, MoveAction, Node, NodeResult, QueryResult, ShapeInput, UseMutateOptions, } from './graph';
|
|
18
|
-
export type { CallOptions, StreamHandle, StreamOptions } from './graph';
|
|
19
|
-
export { useDomain, useFunction, useIn, useKernel, useMethod, useOut } from './schema';
|
|
20
|
-
export type { FunctionOptions } from './schema';
|
|
21
|
-
export type { MethodOptions } from './schema';
|
|
22
|
-
export type { AutoMethodAction, BoundMethodAction, EndpointResult, FunctionNames, FunctionParams, FunctionResult, MethodIsStatic, MethodNames, MethodParams, MethodResult, TargetedMethodAction, TypedChildrenResult, TypedNodeResult, } from './schema';
|
|
23
|
-
export { Link, NavScope, memoryAdapter, urlAdapter, useAncestors, useLocation, useNavScope, useNavigate, } from './navigation';
|
|
24
|
-
export type { LinkProps, MissingPolicy, NavAdapter, NavLocation, NavScopeHandle, NavScopeProps, NavSnapshot, NavTarget, Navigate, SerializedLocation, } from './navigation';
|
|
25
|
-
export { SelectionScope, useSelection } from './selection';
|
|
26
|
-
export type { Selection, SelectionScopeProps } from './selection';
|
|
27
|
-
export { useCloseGuard, useTargetNode, useViewsFor, useWindow, useWindowList, useWindows, ViewHost, ViewStage, } from './window';
|
|
28
|
-
export type { CloseGuard, CloseVerdict, ViewDescriptor, ViewHostProps, ViewSource, ViewHostHandle, ViewsForResult, WindowListEntry, WindowState, WindowView, } from './window';
|
|
29
|
-
export { useIntent, useSendIntent } from './intents';
|
|
30
|
-
export type { IntentCtx, IntentPayload, IntentReply, SendIntent } from './intents';
|
|
31
|
-
export { AppHost, AppLogo, useApps, useCurrentSpace, useOpenApp, useRoles, useSpace, useSpaces, useUser, } from './application';
|
|
32
|
-
export type { AppHostFallbackState, AppHostProps, AppLogoProps, AppsResult, CurrentSpaceResult, RolesResult, SpaceResult, SpacesResult, } from './application';
|
|
10
|
+
export { ShellProvider } from './session/index.js';
|
|
11
|
+
export type { ShellError, ShellProviderProps } from './session/index.js';
|
|
12
|
+
export { useConnection, useKernelClient, useKernelInstance, useShell } from './session/index.js';
|
|
13
|
+
export type { KernelInstance } from './session/index.js';
|
|
14
|
+
export { ActAs, useAuth, useCan, useSelf } from './auth/index.js';
|
|
15
|
+
export type { ActAsProps } from './auth/index.js';
|
|
16
|
+
export { useCall, useChildren, useGraph, useMove, useMutate, useNode, useQuery, useStream, } from './graph/index.js';
|
|
17
|
+
export type { ChildrenOptions, ChildrenResult, GraphMemory, MoveAction, Node, NodeResult, QueryResult, ShapeInput, UseMutateOptions, } from './graph/index.js';
|
|
18
|
+
export type { CallOptions, StreamHandle, StreamOptions } from './graph/index.js';
|
|
19
|
+
export { useDomain, useFunction, useIn, useKernel, useMethod, useOut } from './schema/index.js';
|
|
20
|
+
export type { FunctionOptions } from './schema/index.js';
|
|
21
|
+
export type { MethodOptions } from './schema/index.js';
|
|
22
|
+
export type { AutoMethodAction, BoundMethodAction, EndpointResult, FunctionNames, FunctionParams, FunctionResult, MethodIsStatic, MethodNames, MethodParams, MethodResult, TargetedMethodAction, TypedChildrenResult, TypedNodeResult, } from './schema/index.js';
|
|
23
|
+
export { Link, NavScope, memoryAdapter, urlAdapter, useAncestors, useLocation, useNavScope, useNavigate, } from './navigation/index.js';
|
|
24
|
+
export type { LinkProps, MissingPolicy, NavAdapter, NavLocation, NavScopeHandle, NavScopeProps, NavSnapshot, NavTarget, Navigate, SerializedLocation, } from './navigation/index.js';
|
|
25
|
+
export { SelectionScope, useSelection } from './selection/index.js';
|
|
26
|
+
export type { Selection, SelectionScopeProps } from './selection/index.js';
|
|
27
|
+
export { useCloseGuard, useTargetNode, useViewsFor, useWindow, useWindowList, useWindows, ViewHost, ViewStage, } from './window/index.js';
|
|
28
|
+
export type { CloseGuard, CloseVerdict, ViewDescriptor, ViewHostProps, ViewSource, ViewHostHandle, ViewsForResult, WindowListEntry, WindowState, WindowView, } from './window/index.js';
|
|
29
|
+
export { useIntent, useSendIntent } from './intents/index.js';
|
|
30
|
+
export type { IntentCtx, IntentPayload, IntentReply, SendIntent } from './intents/index.js';
|
|
31
|
+
export { AppHost, AppLogo, useApps, useCurrentSpace, useOpenApp, useRoles, useSpace, useSpaces, useUser, } from './application/index.js';
|
|
32
|
+
export type { AppHostFallbackState, AppHostProps, AppLogoProps, AppsResult, CurrentSpaceResult, RolesResult, SpaceResult, SpacesResult, } from './application/index.js';
|
|
33
33
|
export type { ApplicationNode, AppSession, RoleNode, SpaceNode, UserNode } from '@astrale-os/shell';
|
|
34
|
-
export type { Action, ReadState, ReadOptions, Windowed } from './graph';
|
|
35
|
-
export * from './graph/guards.error';
|
|
34
|
+
export type { Action, ReadState, ReadOptions, Windowed } from './graph/index.js';
|
|
35
|
+
export * from './graph/guards.error.js';
|
|
36
36
|
export { DESCRIPTION_KEY, NAME_KEY, STATUS_KEY, descriptionOf, nameOf, normalizeRef, statusOf, } from '@astrale-os/kernel-client';
|
|
37
37
|
export type { AnyBoundNode, BoundNode, CreatableClassNames, CreateProps, CredentialInput, DefOf, EdgeNames, EndpointsOf, FnMap, NamedNodeLike, NodeRefInput, SchemaBoundView, TypeNames, } from '@astrale-os/kernel-client';
|
|
38
38
|
export type { EdgeIdentity, GatherBuilder, OrderInput, PatchBuilder, PatchInput, PathLike, Properties, QueryASTInput, QuerySource, } from '@astrale-os/kernel-client/graph';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAGH,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AAClD,YAAY,EAAE,UAAU,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AACxE,O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CAAA;AAClC,YAAY,EACV,YAAY,EACZ,SAAS,EACT,mBAAmB,EACnB,WAAW,EACX,eAAe,EACf,KAAK,EACL,SAAS,EACT,WAAW,EACX,KAAK,EACL,aAAa,EACb,YAAY,EACZ,eAAe,EACf,SAAS,GACV,MAAM,2BAA2B,CAAA;AAClC,YAAY,EACV,YAAY,EACZ,aAAa,EACb,UAAU,EACV,YAAY,EACZ,UAAU,EACV,QAAQ,EACR,UAAU,EACV,aAAa,EACb,WAAW,GACZ,MAAM,iCAAiC,CAAA;AACxC,YAAY,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAA;AACpE,YAAY,EAAE,MAAM,EAAE,MAAM,wBAAwB,CAAA;AAGpD,YAAY,EACV,WAAW,EACX,YAAY,EACZ,eAAe,EACf,KAAK,EACL,WAAW,EACX,MAAM,GACP,MAAM,mBAAmB,CAAA;AAC1B,YAAY,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -8,27 +8,27 @@
|
|
|
8
8
|
* floor + typed overloads) exported from the graph plane.
|
|
9
9
|
*/
|
|
10
10
|
// ─── session (§2 provider + §3) ──────────────────────────────────────────────
|
|
11
|
-
export { ShellProvider } from './session';
|
|
12
|
-
export { useConnection, useKernelClient, useKernelInstance, useShell } from './session';
|
|
11
|
+
export { ShellProvider } from './session/index.js';
|
|
12
|
+
export { useConnection, useKernelClient, useKernelInstance, useShell } from './session/index.js';
|
|
13
13
|
// ─── auth (§4) ───────────────────────────────────────────────────────────────
|
|
14
|
-
export { ActAs, useAuth, useCan, useSelf } from './auth';
|
|
14
|
+
export { ActAs, useAuth, useCan, useSelf } from './auth/index.js';
|
|
15
15
|
// ─── graph — the untyped floor + writes + dispatch (§5, §7) ──────────────────
|
|
16
16
|
// `useNode`/`useChildren` are single symbols merging the untyped floor + typed
|
|
17
17
|
// overloads.
|
|
18
|
-
export { useCall, useChildren, useGraph, useMove, useMutate, useNode, useQuery, useStream, } from './graph';
|
|
18
|
+
export { useCall, useChildren, useGraph, useMove, useMutate, useNode, useQuery, useStream, } from './graph/index.js';
|
|
19
19
|
// ─── schema — the typed substrate (§6) ───────────────────────────────────────
|
|
20
|
-
export { useDomain, useFunction, useIn, useKernel, useMethod, useOut } from './schema';
|
|
20
|
+
export { useDomain, useFunction, useIn, useKernel, useMethod, useOut } from './schema/index.js';
|
|
21
21
|
// ─── navigation (§8) ─────────────────────────────────────────────────────────
|
|
22
|
-
export { Link, NavScope, memoryAdapter, urlAdapter, useAncestors, useLocation, useNavScope, useNavigate, } from './navigation';
|
|
22
|
+
export { Link, NavScope, memoryAdapter, urlAdapter, useAncestors, useLocation, useNavScope, useNavigate, } from './navigation/index.js';
|
|
23
23
|
// ─── selection (§9) ──────────────────────────────────────────────────────────
|
|
24
|
-
export { SelectionScope, useSelection } from './selection';
|
|
24
|
+
export { SelectionScope, useSelection } from './selection/index.js';
|
|
25
25
|
// ─── window (§10) ────────────────────────────────────────────────────────────
|
|
26
|
-
export { useCloseGuard, useTargetNode, useViewsFor, useWindow, useWindowList, useWindows, ViewHost, ViewStage, } from './window';
|
|
26
|
+
export { useCloseGuard, useTargetNode, useViewsFor, useWindow, useWindowList, useWindows, ViewHost, ViewStage, } from './window/index.js';
|
|
27
27
|
// ─── intents (§11) ───────────────────────────────────────────────────────────
|
|
28
|
-
export { useIntent, useSendIntent } from './intents';
|
|
28
|
+
export { useIntent, useSendIntent } from './intents/index.js';
|
|
29
29
|
// ─── application — the OS plane (§12) ────────────────────────────────────────
|
|
30
|
-
export { AppHost, AppLogo, useApps, useCurrentSpace, useOpenApp, useRoles, useSpace, useSpaces, useUser, } from './application';
|
|
30
|
+
export { AppHost, AppLogo, useApps, useCurrentSpace, useOpenApp, useRoles, useSpace, useSpaces, useUser, } from './application/index.js';
|
|
31
31
|
// ─── error taxonomy (§1.4) — guards + classes, re-exported from kernel-client ─
|
|
32
|
-
export * from './graph/guards.error';
|
|
32
|
+
export * from './graph/guards.error.js';
|
|
33
33
|
// ─── re-exported kernel-client types (one import surface, §0 preamble) ───────
|
|
34
34
|
export { DESCRIPTION_KEY, NAME_KEY, STATUS_KEY, descriptionOf, nameOf, normalizeRef, statusOf, } from '@astrale-os/kernel-client';
|
package/dist/intents/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { useIntent } from './listen-intent.hook';
|
|
2
|
-
export type { IntentCtx } from './listen-intent.hook';
|
|
3
|
-
export { useSendIntent } from './send-intent.hook';
|
|
4
|
-
export type { SendIntent } from './send-intent.hook';
|
|
5
|
-
export type { IntentPayload, IntentReply } from './envelope';
|
|
1
|
+
export { useIntent } from './listen-intent.hook.js';
|
|
2
|
+
export type { IntentCtx } from './listen-intent.hook.js';
|
|
3
|
+
export { useSendIntent } from './send-intent.hook.js';
|
|
4
|
+
export type { SendIntent } from './send-intent.hook.js';
|
|
5
|
+
export type { IntentPayload, IntentReply } from './envelope.js';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/intents/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/intents/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,YAAY,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACrD,YAAY,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACvD,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA"}
|
package/dist/intents/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
// intents — API §11 (useIntent, useSendIntent). See SHELL_REACT_API.md.
|
|
2
|
-
export { useIntent } from './listen-intent.hook';
|
|
3
|
-
export { useSendIntent } from './send-intent.hook';
|
|
2
|
+
export { useIntent } from './listen-intent.hook.js';
|
|
3
|
+
export { useSendIntent } from './send-intent.hook.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IntentRegistry } from '@astrale-os/shell';
|
|
2
|
-
import type { IntentPayload, IntentReply } from './envelope';
|
|
2
|
+
import type { IntentPayload, IntentReply } from './envelope.js';
|
|
3
3
|
/** Delivery context passed alongside an inbound intent's payload. */
|
|
4
4
|
export interface IntentCtx<K extends keyof IntentRegistry> {
|
|
5
5
|
/** REAL source windowId; the `'<parent>'` sentinel for a parent-delivered intent. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"listen-intent.hook.d.ts","sourceRoot":"","sources":["../../src/intents/listen-intent.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAYtE,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"listen-intent.hook.d.ts","sourceRoot":"","sources":["../../src/intents/listen-intent.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,cAAc,EAAE,MAAM,mBAAmB,CAAA;AAYtE,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAM/D,qEAAqE;AACrE,MAAM,WAAW,SAAS,CAAC,CAAC,SAAS,MAAM,cAAc;IACvD,qFAAqF;IACrF,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAA;IACvB,gFAAgF;IAChF,KAAK,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI,CAAA;CACpC;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,CAAC,SAAS,MAAM,cAAc,EACtD,IAAI,EAAE,CAAC,EACP,OAAO,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,GAC9E,IAAI,CAyDN"}
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
* late async handler can aim a reply at a gone counterparty.
|
|
8
8
|
*/
|
|
9
9
|
import { useEffect, useRef } from 'react';
|
|
10
|
-
import { useShell } from '../session/shell.hook';
|
|
11
|
-
import { NOOP } from './envelope';
|
|
12
|
-
import { sendReply } from './reply';
|
|
10
|
+
import { useShell } from '../session/shell.hook.js';
|
|
11
|
+
import { NOOP } from './envelope.js';
|
|
12
|
+
import { sendReply } from './reply.js';
|
|
13
13
|
/**
|
|
14
14
|
* Subscribe `handler` to inbound `name` intents. `ctx.sender` is the REAL
|
|
15
15
|
* windowId (the channel-authenticated id, or `'<parent>'` upstream); `ctx.reply`
|
package/dist/intents/reply.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { INTENT_REPLY, PARENT_SENDER, intentMessage } from './envelope';
|
|
1
|
+
import { INTENT_REPLY, PARENT_SENDER, intentMessage } from './envelope.js';
|
|
2
2
|
/** Deliver a reply to whichever channel the request arrived on. Best-effort. */
|
|
3
3
|
export function sendReply(shell, sender, correlationId, result) {
|
|
4
4
|
const message = intentMessage(INTENT_REPLY, { correlationId, result });
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IntentRegistry } from '@astrale-os/shell';
|
|
2
|
-
import type { IntentPayload, IntentReply } from './envelope';
|
|
2
|
+
import type { IntentPayload, IntentReply } from './envelope.js';
|
|
3
3
|
/** The typed sender returned by {@link useSendIntent}. */
|
|
4
4
|
export interface SendIntent {
|
|
5
5
|
<K extends keyof IntentRegistry>(name: K, payload: IntentPayload<K>,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"send-intent.hook.d.ts","sourceRoot":"","sources":["../../src/intents/send-intent.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,cAAc,EAAS,MAAM,mBAAmB,CAAA;AAW7E,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"send-intent.hook.d.ts","sourceRoot":"","sources":["../../src/intents/send-intent.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAiB,cAAc,EAAS,MAAM,mBAAmB,CAAA;AAW7E,OAAO,KAAK,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAK/D,0DAA0D;AAC1D,MAAM,WAAW,UAAU;IACzB,CAAC,CAAC,SAAS,MAAM,cAAc,EAC7B,IAAI,EAAE,CAAC,EACP,OAAO,EAAE,aAAa,CAAC,CAAC,CAAC;IACzB,oFAAoF;IACpF,IAAI,CAAC,EAAE;QAAE,EAAE,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAA;KAAE,GAChC,OAAO,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,CAAA;CAClC;AAqBD,wBAAgB,aAAa,IAAI,UAAU,CAiE1C"}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* never strands.
|
|
7
7
|
*/
|
|
8
8
|
import { useCallback, useEffect, useRef } from 'react';
|
|
9
|
-
import { useShell } from '../session/shell.hook';
|
|
10
|
-
import { INTENT_REPLY, NOOP, intentMessage } from './envelope';
|
|
9
|
+
import { useShell } from '../session/shell.hook.js';
|
|
10
|
+
import { INTENT_REPLY, NOOP, intentMessage } from './envelope.js';
|
|
11
11
|
function resolveTarget(shell, to) {
|
|
12
12
|
if (to === undefined) {
|
|
13
13
|
return shell.parent !== null
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* location through. `href` is the URL-form probe `<Link>` needs: present → an
|
|
4
4
|
* `<a href>` (cmd/ctrl-click falls through); absent → `role="link"`.
|
|
5
5
|
*/
|
|
6
|
-
import type { SerializedLocation } from '../history';
|
|
6
|
+
import type { SerializedLocation } from '../history.js';
|
|
7
7
|
export interface NavAdapter {
|
|
8
8
|
read(): SerializedLocation | null;
|
|
9
9
|
write(loc: SerializedLocation, opts: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../src/navigation/adapters/adapter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../src/navigation/adapters/adapter.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAEvD,MAAM,WAAW,UAAU;IACzB,IAAI,IAAI,kBAAkB,GAAG,IAAI,CAAA;IACjC,KAAK,CAAC,GAAG,EAAE,kBAAkB,EAAE,IAAI,EAAE;QAAE,OAAO,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAA;IAChE,SAAS,CAAC,gBAAgB,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAA;IACnD,IAAI,CAAC,CAAC,GAAG,EAAE,kBAAkB,GAAG,MAAM,CAAA;CACvC"}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* memoryAdapter (API §8.1) — the default scope backing: holds one location in a
|
|
3
3
|
* closure (per-pane state, no URL form → Link renders `role="link"`).
|
|
4
4
|
*/
|
|
5
|
-
import type { SerializedLocation } from '../history';
|
|
6
|
-
import type { NavAdapter } from './adapter';
|
|
5
|
+
import type { SerializedLocation } from '../history.js';
|
|
6
|
+
import type { NavAdapter } from './adapter.js';
|
|
7
7
|
/** In-memory adapter — the default scope backing (per-pane state, no URL). */
|
|
8
8
|
export declare function memoryAdapter(initial?: SerializedLocation): NavAdapter;
|
|
9
9
|
//# sourceMappingURL=memory.adapter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"memory.adapter.d.ts","sourceRoot":"","sources":["../../../src/navigation/adapters/memory.adapter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"memory.adapter.d.ts","sourceRoot":"","sources":["../../../src/navigation/adapters/memory.adapter.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAE9C,8EAA8E;AAC9E,wBAAgB,aAAa,CAAC,OAAO,CAAC,EAAE,kBAAkB,GAAG,UAAU,CAatE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"url.adapter.d.ts","sourceRoot":"","sources":["../../../src/navigation/adapters/url.adapter.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"url.adapter.d.ts","sourceRoot":"","sources":["../../../src/navigation/adapters/url.adapter.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AAI9C,oEAAoE;AACpE,wBAAgB,UAAU,CAAC,IAAI,CAAC,EAAE;IAAE,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,UAAU,CAiDhE"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { PathLike } from '@astrale-os/kernel-client/graph';
|
|
2
|
-
import type { ReadState } from '../../graph/memory/read/envelope';
|
|
3
|
-
import type { Node } from '../location';
|
|
2
|
+
import type { ReadState } from '../../graph/memory/read/envelope.js';
|
|
3
|
+
import type { Node } from '../location.js';
|
|
4
4
|
/**
|
|
5
5
|
* The root-first ancestor chain (inclusive of the node itself), live: a move
|
|
6
6
|
* re-renders it. `node` defaults to the nearest scope's location node; passing a
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ancestors.hook.d.ts","sourceRoot":"","sources":["../../../src/navigation/hooks/ancestors.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AAU/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ancestors.hook.d.ts","sourceRoot":"","sources":["../../../src/navigation/hooks/ancestors.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AAU/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAA;AACpE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAQ1C;;;;;GAKG;AACH,wBAAgB,YAAY,CAC1B,IAAI,CAAC,EAAE,IAAI,GAAG,QAAQ,GACrB,SAAS,GAAG;IAAE,QAAQ,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,CAAA;CAAE,CA6BjD"}
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* passing a node/path makes it usable outside a scope. Drops any masked ancestor.
|
|
5
5
|
*/
|
|
6
6
|
import { useMemo } from 'react';
|
|
7
|
-
import { idleReadState } from '../../graph/memory/read/idle';
|
|
8
|
-
import { useMemory } from '../../graph/memory/scope';
|
|
9
|
-
import { chainPaths, pathHint, pathOf } from '../location';
|
|
10
|
-
import { useHistoryVersion, useOptionalNavCtx, useMemoryShape } from '../scope.context';
|
|
11
|
-
import { serializeTarget } from '../snapshot';
|
|
7
|
+
import { idleReadState } from '../../graph/memory/read/idle.js';
|
|
8
|
+
import { useMemory } from '../../graph/memory/scope.js';
|
|
9
|
+
import { chainPaths, pathHint, pathOf } from '../location.js';
|
|
10
|
+
import { useHistoryVersion, useOptionalNavCtx, useMemoryShape } from '../scope.context.js';
|
|
11
|
+
import { serializeTarget } from '../snapshot.js';
|
|
12
12
|
/**
|
|
13
13
|
* The root-first ancestor chain (inclusive of the node itself), live: a move
|
|
14
14
|
* re-renders it. `node` defaults to the nearest scope's location node; passing a
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { NavLocation } from '../location';
|
|
1
|
+
import type { NavLocation } from '../location.js';
|
|
2
2
|
/** The nearest scope's live location. Throws outside any {@link NavScope}. */
|
|
3
3
|
export declare function useLocation(): NavLocation;
|
|
4
4
|
//# sourceMappingURL=location.hook.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.hook.d.ts","sourceRoot":"","sources":["../../../src/navigation/hooks/location.hook.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"location.hook.d.ts","sourceRoot":"","sources":["../../../src/navigation/hooks/location.hook.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAKjD,8EAA8E;AAC9E,wBAAgB,WAAW,IAAI,WAAW,CAQzC"}
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* path/node, missing flag). Throws outside any {@link NavScope}.
|
|
4
4
|
*/
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
|
-
import { buildLocation, useSettled } from '../location';
|
|
7
|
-
import { useHistoryVersion, useNavCtx, useMemoryShape } from '../scope.context';
|
|
6
|
+
import { buildLocation, useSettled } from '../location.js';
|
|
7
|
+
import { useHistoryVersion, useNavCtx, useMemoryShape } from '../scope.context.js';
|
|
8
8
|
/** The nearest scope's live location. Throws outside any {@link NavScope}. */
|
|
9
9
|
export function useLocation() {
|
|
10
10
|
const ctx = useNavCtx();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"navigate.hook.d.ts","sourceRoot":"","sources":["../../../src/navigation/hooks/navigate.hook.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAmB,MAAM,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"navigate.hook.d.ts","sourceRoot":"","sources":["../../../src/navigation/hooks/navigate.hook.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAmB,MAAM,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AAI5E,iFAAiF;AACjF,wBAAgB,WAAW,IAAI,QAAQ,CAEtC;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,CAQvD"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* per-consumer handle that delegates to the scope's ONE stable callable.
|
|
5
5
|
*/
|
|
6
6
|
import { useMemo } from 'react';
|
|
7
|
-
import { useHistoryVersion, useNavCtx } from '../scope.context';
|
|
7
|
+
import { useHistoryVersion, useNavCtx } from '../scope.context.js';
|
|
8
8
|
/** The nearest scope's imperative navigation surface. Throws outside a scope. */
|
|
9
9
|
export function useNavigate() {
|
|
10
10
|
return useNavigateHandle(useNavCtx());
|