@astrale-os/shell-react 0.2.0 → 0.2.1
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 +2 -2
- 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 +2 -2
- 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 +2 -2
- 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/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 +3 -3
- 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 +4 -4
- 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 +3 -3
- 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 +4 -4
- package/src/schema/types.ts +2 -2
- package/src/schema/write.ts +1 -1
- 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,8 +1,8 @@
|
|
|
1
1
|
import type { NodeRefInput } from '@astrale-os/kernel-client';
|
|
2
2
|
import type { ApplicationNode, AppSession, IntentRegistry, SandboxProfile } from '@astrale-os/shell';
|
|
3
3
|
import type { CSSProperties, ReactNode } from 'react';
|
|
4
|
-
import type { ViewHostHandle } from '../../window/host';
|
|
5
|
-
import type { WindowState } from '../../window/lifecycle/states';
|
|
4
|
+
import type { ViewHostHandle } from '../../window/host.js';
|
|
5
|
+
import type { WindowState } from '../../window/lifecycle/states.js';
|
|
6
6
|
/** The states `AppHost`'s fallback answers — the frame's, plus the two OS phases. */
|
|
7
7
|
export type AppHostFallbackState = WindowState | {
|
|
8
8
|
readonly phase: 'opening';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-host.d.ts","sourceRoot":"","sources":["../../../src/application/apps/app-host.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACpG,OAAO,KAAK,EAAE,aAAa,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAA;AAWnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"app-host.d.ts","sourceRoot":"","sources":["../../../src/application/apps/app-host.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAA;AACpG,OAAO,KAAK,EAAE,aAAa,EAAgB,SAAS,EAAE,MAAM,OAAO,CAAA;AAWnE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAE1D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAMnE,qFAAqF;AACrF,MAAM,MAAM,oBAAoB,GAC5B,WAAW,GACX;IAAE,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;CAAE,GAC7B;IAAE,QAAQ,CAAC,KAAK,EAAE,SAAS,CAAA;CAAE,CAAA;AAEjC,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,eAAe,GAAG,YAAY,CAAA;IACnC;;;;;OAKG;IACH,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB,YAAY,CAAC,EAAE;QAAE,OAAO,EAAE,SAAS,CAAC,MAAM,cAAc,CAAC,EAAE,CAAA;KAAE,CAAA;IAC7D,OAAO,CAAC,EAAE,cAAc,GAAG,IAAI,CAAA;IAC/B,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,oBAAoB,KAAK,SAAS,CAAA;IACrD,SAAS,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,KAAK,IAAI,CAAA;IACzC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB;AAED,eAAO,MAAM,OAAO,yGAoEnB,CAAA"}
|
|
@@ -7,9 +7,9 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
7
7
|
* phase is the window module's `WindowState`.
|
|
8
8
|
*/
|
|
9
9
|
import { forwardRef, useEffect, useRef, useState } from 'react';
|
|
10
|
-
import { ViewHost } from '../../window/host';
|
|
11
|
-
import { toRef } from './apps.hook';
|
|
12
|
-
import { useOpenApp } from './open-app.hook';
|
|
10
|
+
import { ViewHost } from '../../window/host.js';
|
|
11
|
+
import { toRef } from './apps.hook.js';
|
|
12
|
+
import { useOpenApp } from './open-app.hook.js';
|
|
13
13
|
export const AppHost = forwardRef(function AppHost(props, ref) {
|
|
14
14
|
const open = useOpenApp();
|
|
15
15
|
const [session, setSession] = useState(null);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { NodeRefInput } from '@astrale-os/kernel-client';
|
|
2
2
|
import type { ApplicationNode, SpaceNode } from '@astrale-os/shell';
|
|
3
|
-
import type { ReadState } from '../../graph/memory/read/envelope';
|
|
3
|
+
import type { ReadState } from '../../graph/memory/read/envelope.js';
|
|
4
4
|
export interface AppsResult extends ReadState {
|
|
5
5
|
readonly apps: readonly ApplicationNode[];
|
|
6
6
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"apps.hook.d.ts","sourceRoot":"","sources":["../../../src/application/apps/apps.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAYnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"apps.hook.d.ts","sourceRoot":"","sources":["../../../src/application/apps/apps.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAYnE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAA;AAWpE,MAAM,WAAW,UAAW,SAAQ,SAAS;IAC3C,QAAQ,CAAC,IAAI,EAAE,SAAS,eAAe,EAAE,CAAA;CAC1C;AAED,wBAAgB,OAAO,CAAC,KAAK,CAAC,EAAE,SAAS,GAAG,YAAY,GAAG,IAAI,GAAG,UAAU,CA0C3E;AAOD,+EAA+E;AAC/E,wBAAgB,KAAK,CAAC,CAAC,EAAE,YAAY,GAAG;IAAE,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAEvE"}
|
|
@@ -7,10 +7,10 @@ import { normalizeRef } from '@astrale-os/kernel-client';
|
|
|
7
7
|
* subject normalizer the apps hooks share.
|
|
8
8
|
*/
|
|
9
9
|
import { useCallback, useEffect, useMemo, useSyncExternalStore } from 'react';
|
|
10
|
-
import { useAsyncResource } from '../../graph/async';
|
|
11
|
-
import { useShell } from '../../session/shell.hook';
|
|
12
|
-
import { currentSpaceStore } from '../spaces/current-space.store';
|
|
13
|
-
import { isOsPlaneAvailable } from '../user/user.store';
|
|
10
|
+
import { useAsyncResource } from '../../graph/async.js';
|
|
11
|
+
import { useShell } from '../../session/shell.hook.js';
|
|
12
|
+
import { currentSpaceStore } from '../spaces/current-space.store.js';
|
|
13
|
+
import { isOsPlaneAvailable } from '../user/user.store.js';
|
|
14
14
|
const NO_APPS = [];
|
|
15
15
|
const IDLE_CURRENT = { space: null, pending: false, error: undefined };
|
|
16
16
|
export function useApps(space) {
|
|
@@ -5,6 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
import type { NodeRefInput } from '@astrale-os/kernel-client';
|
|
7
7
|
import type { ApplicationNode, AppSession } from '@astrale-os/shell';
|
|
8
|
-
import type { Action } from '../../graph/action';
|
|
8
|
+
import type { Action } from '../../graph/action.js';
|
|
9
9
|
export declare function useOpenApp(): Action<[ApplicationNode | NodeRefInput], AppSession>;
|
|
10
10
|
//# sourceMappingURL=open-app.hook.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"open-app.hook.d.ts","sourceRoot":"","sources":["../../../src/application/apps/open-app.hook.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEpE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"open-app.hook.d.ts","sourceRoot":"","sources":["../../../src/application/apps/open-app.hook.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAEpE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AAMnD,wBAAgB,UAAU,IAAI,MAAM,CAAC,CAAC,eAAe,GAAG,YAAY,CAAC,EAAE,UAAU,CAAC,CAGjF"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { useAction } from '../../graph/action';
|
|
2
|
-
import { useShell } from '../../session/shell.hook';
|
|
3
|
-
import { toRef } from './apps.hook';
|
|
1
|
+
import { useAction } from '../../graph/action.js';
|
|
2
|
+
import { useShell } from '../../session/shell.hook.js';
|
|
3
|
+
import { toRef } from './apps.hook.js';
|
|
4
4
|
export function useOpenApp() {
|
|
5
5
|
const shell = useShell();
|
|
6
6
|
return useAction((app) => shell.apps.open(toRef(app)));
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { useUser } from './user/user.hook';
|
|
2
|
-
export { useSpaces } from './spaces/spaces.hook';
|
|
3
|
-
export type { SpacesResult } from './spaces/spaces.hook';
|
|
4
|
-
export { useCurrentSpace } from './spaces/current-space.hook';
|
|
5
|
-
export type { CurrentSpaceResult } from './spaces/current-space.hook';
|
|
6
|
-
export { useSpace } from './spaces/space.hook';
|
|
7
|
-
export type { SpaceResult } from './spaces/space.hook';
|
|
8
|
-
export { useApps } from './apps/apps.hook';
|
|
9
|
-
export type { AppsResult } from './apps/apps.hook';
|
|
10
|
-
export { useOpenApp } from './apps/open-app.hook';
|
|
11
|
-
export { AppHost } from './apps/app-host';
|
|
12
|
-
export type { AppHostFallbackState, AppHostProps } from './apps/app-host';
|
|
13
|
-
export { AppLogo } from './apps/app-logo';
|
|
14
|
-
export type { AppLogoProps } from './apps/app-logo';
|
|
15
|
-
export { useRoles } from './roles.hook';
|
|
16
|
-
export type { RolesResult } from './roles.hook';
|
|
1
|
+
export { useUser } from './user/user.hook.js';
|
|
2
|
+
export { useSpaces } from './spaces/spaces.hook.js';
|
|
3
|
+
export type { SpacesResult } from './spaces/spaces.hook.js';
|
|
4
|
+
export { useCurrentSpace } from './spaces/current-space.hook.js';
|
|
5
|
+
export type { CurrentSpaceResult } from './spaces/current-space.hook.js';
|
|
6
|
+
export { useSpace } from './spaces/space.hook.js';
|
|
7
|
+
export type { SpaceResult } from './spaces/space.hook.js';
|
|
8
|
+
export { useApps } from './apps/apps.hook.js';
|
|
9
|
+
export type { AppsResult } from './apps/apps.hook.js';
|
|
10
|
+
export { useOpenApp } from './apps/open-app.hook.js';
|
|
11
|
+
export { AppHost } from './apps/app-host.js';
|
|
12
|
+
export type { AppHostFallbackState, AppHostProps } from './apps/app-host.js';
|
|
13
|
+
export { AppLogo } from './apps/app-logo.js';
|
|
14
|
+
export type { AppLogoProps } from './apps/app-logo.js';
|
|
15
|
+
export { useRoles } from './roles.hook.js';
|
|
16
|
+
export type { RolesResult } from './roles.hook.js';
|
|
17
17
|
export type { ApplicationNode, AppSession, RoleNode, SpaceNode, UserNode } from '@astrale-os/shell';
|
|
18
18
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/application/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/application/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAA;AAChE,YAAY,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAA;AACxE,OAAO,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACjD,YAAY,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAA;AACzD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAC7C,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAA;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAC5C,YAAY,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAC5E,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAA;AAC5C,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAA;AAC1C,YAAY,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAA;AAGlD,YAAY,EAAE,eAAe,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// application — API §12.2. The OS-plane hooks over the shell package's
|
|
2
2
|
// `shell.user/spaces/apps` namespaces + the window module: useUser, useSpaces,
|
|
3
3
|
// useCurrentSpace, useSpace, useApps, useRoles, useOpenApp, AppHost, AppLogo.
|
|
4
|
-
export { useUser } from './user/user.hook';
|
|
5
|
-
export { useSpaces } from './spaces/spaces.hook';
|
|
6
|
-
export { useCurrentSpace } from './spaces/current-space.hook';
|
|
7
|
-
export { useSpace } from './spaces/space.hook';
|
|
8
|
-
export { useApps } from './apps/apps.hook';
|
|
9
|
-
export { useOpenApp } from './apps/open-app.hook';
|
|
10
|
-
export { AppHost } from './apps/app-host';
|
|
11
|
-
export { AppLogo } from './apps/app-logo';
|
|
12
|
-
export { useRoles } from './roles.hook';
|
|
4
|
+
export { useUser } from './user/user.hook.js';
|
|
5
|
+
export { useSpaces } from './spaces/spaces.hook.js';
|
|
6
|
+
export { useCurrentSpace } from './spaces/current-space.hook.js';
|
|
7
|
+
export { useSpace } from './spaces/space.hook.js';
|
|
8
|
+
export { useApps } from './apps/apps.hook.js';
|
|
9
|
+
export { useOpenApp } from './apps/open-app.hook.js';
|
|
10
|
+
export { AppHost } from './apps/app-host.js';
|
|
11
|
+
export { AppLogo } from './apps/app-logo.js';
|
|
12
|
+
export { useRoles } from './roles.hook.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { RoleNode } from '@astrale-os/shell';
|
|
2
|
-
import type { ReadState } from '../graph/memory/read/envelope';
|
|
2
|
+
import type { ReadState } from '../graph/memory/read/envelope.js';
|
|
3
3
|
export interface RolesResult extends ReadState {
|
|
4
4
|
readonly roles: readonly RoleNode[];
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"roles.hook.d.ts","sourceRoot":"","sources":["../../src/application/roles.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAQjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM
|
|
1
|
+
{"version":3,"file":"roles.hook.d.ts","sourceRoot":"","sources":["../../src/application/roles.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAA;AAQjD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kCAAkC,CAAA;AAQjE,MAAM,WAAW,WAAY,SAAQ,SAAS;IAC5C,QAAQ,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAA;CACpC;AAED,wBAAgB,QAAQ,IAAI,WAAW,CAoBtC"}
|
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
* async OS namespace (one-shot today, §12 flag).
|
|
4
4
|
*/
|
|
5
5
|
import { useMemo } from 'react';
|
|
6
|
-
import { useAsyncResource } from '../graph/async';
|
|
7
|
-
import { useShell } from '../session/shell.hook';
|
|
8
|
-
import { isOsPlaneAvailable } from './user/user.store';
|
|
6
|
+
import { useAsyncResource } from '../graph/async.js';
|
|
7
|
+
import { useShell } from '../session/shell.hook.js';
|
|
8
|
+
import { isOsPlaneAvailable } from './user/user.store.js';
|
|
9
9
|
const NO_ROLES = [];
|
|
10
10
|
export function useRoles() {
|
|
11
11
|
const shell = useShell();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { SpaceNode } from '@astrale-os/shell';
|
|
2
|
-
import type { ReadState } from '../../graph/memory/read/envelope';
|
|
2
|
+
import type { ReadState } from '../../graph/memory/read/envelope.js';
|
|
3
3
|
export interface CurrentSpaceResult extends ReadState {
|
|
4
4
|
readonly space: SpaceNode | null;
|
|
5
5
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"current-space.hook.d.ts","sourceRoot":"","sources":["../../../src/application/spaces/current-space.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AASlD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"current-space.hook.d.ts","sourceRoot":"","sources":["../../../src/application/spaces/current-space.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AASlD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAA;AAMpE,MAAM,WAAW,kBAAmB,SAAQ,SAAS;IACnD,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,CAAA;CACjC;AAED,wBAAgB,eAAe,IAAI,kBAAkB,CAuBpD"}
|
|
@@ -4,9 +4,9 @@
|
|
|
4
4
|
* today (§12 flag); OS-plane-unavailable reads idle.
|
|
5
5
|
*/
|
|
6
6
|
import { useEffect, useMemo, useSyncExternalStore } from 'react';
|
|
7
|
-
import { useShell } from '../../session/shell.hook';
|
|
8
|
-
import { isOsPlaneAvailable } from '../user/user.store';
|
|
9
|
-
import { currentSpaceStore, idleSnapshot, noopSubscribe } from './current-space.store';
|
|
7
|
+
import { useShell } from '../../session/shell.hook.js';
|
|
8
|
+
import { isOsPlaneAvailable } from '../user/user.store.js';
|
|
9
|
+
import { currentSpaceStore, idleSnapshot, noopSubscribe } from './current-space.store.js';
|
|
10
10
|
export function useCurrentSpace() {
|
|
11
11
|
const shell = useShell();
|
|
12
12
|
const available = isOsPlaneAvailable(shell);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { NodeRefInput } from '@astrale-os/kernel-client';
|
|
2
|
-
import type { CurrentSpaceResult } from './current-space.hook';
|
|
2
|
+
import type { CurrentSpaceResult } from './current-space.hook.js';
|
|
3
3
|
export type SpaceResult = CurrentSpaceResult;
|
|
4
4
|
export declare function useSpace(ref: NodeRefInput | null | undefined): SpaceResult;
|
|
5
5
|
//# sourceMappingURL=space.hook.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"space.hook.d.ts","sourceRoot":"","sources":["../../../src/application/spaces/space.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAU7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"space.hook.d.ts","sourceRoot":"","sources":["../../../src/application/spaces/space.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAU7D,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAA;AAOjE,MAAM,MAAM,WAAW,GAAG,kBAAkB,CAAA;AAE5C,wBAAgB,QAAQ,CAAC,GAAG,EAAE,YAAY,GAAG,IAAI,GAAG,SAAS,GAAG,WAAW,CAqB1E"}
|
|
@@ -4,10 +4,10 @@ import { normalizeRef } from '@astrale-os/kernel-client';
|
|
|
4
4
|
* unavailable OS plane) is idle (§1.3). One-shot today (§12 flag).
|
|
5
5
|
*/
|
|
6
6
|
import { useMemo } from 'react';
|
|
7
|
-
import { useAsyncResource } from '../../graph/async';
|
|
8
|
-
import { isIdleInput } from '../../graph/memory/read/idle';
|
|
9
|
-
import { useShell } from '../../session/shell.hook';
|
|
10
|
-
import { isOsPlaneAvailable } from '../user/user.store';
|
|
7
|
+
import { useAsyncResource } from '../../graph/async.js';
|
|
8
|
+
import { isIdleInput } from '../../graph/memory/read/idle.js';
|
|
9
|
+
import { useShell } from '../../session/shell.hook.js';
|
|
10
|
+
import { isOsPlaneAvailable } from '../user/user.store.js';
|
|
11
11
|
export function useSpace(ref) {
|
|
12
12
|
const shell = useShell();
|
|
13
13
|
const idle = isIdleInput(ref) || !isOsPlaneAvailable(shell);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { NodeRefInput } from '@astrale-os/kernel-client';
|
|
2
2
|
import type { SpaceNode } from '@astrale-os/shell';
|
|
3
|
-
import type { Action } from '../../graph/action';
|
|
4
|
-
import type { ReadState } from '../../graph/memory/read/envelope';
|
|
3
|
+
import type { Action } from '../../graph/action.js';
|
|
4
|
+
import type { ReadState } from '../../graph/memory/read/envelope.js';
|
|
5
5
|
export interface SpacesResult extends ReadState {
|
|
6
6
|
/** Spaces-dir children, live (one-shot today), the caller's readable set. */
|
|
7
7
|
readonly spaces: readonly SpaceNode[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spaces.hook.d.ts","sourceRoot":"","sources":["../../../src/application/spaces/spaces.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAYlD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"spaces.hook.d.ts","sourceRoot":"","sources":["../../../src/application/spaces/spaces.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAA;AAC7D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAA;AAYlD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,uBAAuB,CAAA;AACnD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qCAAqC,CAAA;AAUpE,MAAM,WAAW,YAAa,SAAQ,SAAS;IAC7C,6EAA6E;IAC7E,QAAQ,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,CAAA;IACrC,4EAA4E;IAC5E,QAAQ,CAAC,QAAQ,EAAE,SAAS,GAAG,IAAI,CAAA;IACnC,mEAAmE;IACnE,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,YAAY,CAAC,EAAE,IAAI,CAAC,CAAA;CAC9C;AAED,wBAAgB,SAAS,IAAI,YAAY,CA4DxC"}
|
|
@@ -7,11 +7,11 @@ import { normalizeRef } from '@astrale-os/kernel-client';
|
|
|
7
7
|
* commit reconciles, failure rolls back. Reads are one-shot today (§12 flag).
|
|
8
8
|
*/
|
|
9
9
|
import { useEffect, useMemo, useSyncExternalStore } from 'react';
|
|
10
|
-
import { useAction } from '../../graph/action';
|
|
11
|
-
import { useAsyncResource } from '../../graph/async';
|
|
12
|
-
import { useShell } from '../../session/shell.hook';
|
|
13
|
-
import { isOsPlaneAvailable } from '../user/user.store';
|
|
14
|
-
import { currentSpaceStore, idleSnapshot, noopSubscribe } from './current-space.store';
|
|
10
|
+
import { useAction } from '../../graph/action.js';
|
|
11
|
+
import { useAsyncResource } from '../../graph/async.js';
|
|
12
|
+
import { useShell } from '../../session/shell.hook.js';
|
|
13
|
+
import { isOsPlaneAvailable } from '../user/user.store.js';
|
|
14
|
+
import { currentSpaceStore, idleSnapshot, noopSubscribe } from './current-space.store.js';
|
|
15
15
|
const NO_SPACES = [];
|
|
16
16
|
export function useSpaces() {
|
|
17
17
|
const shell = useShell();
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useShell } from '../../session/shell.hook';
|
|
2
|
-
import { loadUser, userCache } from './user.store';
|
|
1
|
+
import { useShell } from '../../session/shell.hook.js';
|
|
2
|
+
import { loadUser, userCache } from './user.store.js';
|
|
3
3
|
export function useUser() {
|
|
4
4
|
const shell = useShell();
|
|
5
5
|
const entry = userCache.get(shell) ?? loadUser(shell);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CredentialInput, FnMap } from '@astrale-os/kernel-client';
|
|
2
2
|
import type { BoundClientSessionView } from '@astrale-os/kernel-client/session';
|
|
3
3
|
import type { ReactElement, ReactNode } from 'react';
|
|
4
|
-
import type { SelfNode } from '../session/session.context';
|
|
4
|
+
import type { SelfNode } from '../session/session.context.js';
|
|
5
5
|
/** A bound session view — the kernel surface `session.as(cred)` yields. */
|
|
6
6
|
export type SessionView = BoundClientSessionView<FnMap>;
|
|
7
7
|
/** A whoami-shaped identity/graph node (kernel-client does not yet re-export `Node` — G8). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"act-as.context.d.ts","sourceRoot":"","sources":["../../src/auth/act-as.context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAA;AACvE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAA;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAWpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"act-as.context.d.ts","sourceRoot":"","sources":["../../src/auth/act-as.context.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAA;AACvE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAA;AAC/E,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAWpD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAI7D,2EAA2E;AAC3E,MAAM,MAAM,WAAW,GAAG,sBAAsB,CAAC,KAAK,CAAC,CAAA;AAEvD,8FAA8F;AAC9F,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAA;AAEhC,oFAAoF;AACpF,eAAO,MAAM,UAAU,YAAY,CAAA;AAEnC;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;IAC5B,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAA;IACvB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;CACvB;AACD,eAAO,MAAM,eAAe,iDAA8C,CAAA;AAG1E;;;;GAIG;AACH,wBAAgB,kBAAkB,IAAI,eAAe,CAiBpD;AAED,MAAM,WAAW,UAAU;IACzB,+EAA+E;IAC/E,UAAU,EAAE,eAAe,GAAG,CAAC,MAAM,eAAe,CAAC,CAAA;IACrD,QAAQ,EAAE,SAAS,CAAA;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,KAAK,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,EAAE,UAAU,GAAG,YAAY,GAAG,IAAI,CAkC/E"}
|
|
@@ -7,7 +7,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
7
7
|
* DISTINCT memory scope so results never leak across principals (§5.4).
|
|
8
8
|
*/
|
|
9
9
|
import { createContext, useContext, useEffect, useMemo, useState } from 'react';
|
|
10
|
-
import { ShellContext } from '../session/session.context';
|
|
10
|
+
import { ShellContext } from '../session/session.context.js';
|
|
11
11
|
/** The root scope key — the memory's own default scope (`createMemory` default). */
|
|
12
12
|
export const ROOT_SCOPE = 'default';
|
|
13
13
|
export const IdentityContext = createContext(null);
|
package/dist/auth/auth.hook.js
CHANGED
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
* Cross-client liveness still awaits the watch tiers (G7).
|
|
9
9
|
*/
|
|
10
10
|
import { useMemo } from 'react';
|
|
11
|
-
import { useIdentityBinding } from './act-as.context';
|
|
12
|
-
import { ledgerFor } from './can.hook';
|
|
11
|
+
import { useIdentityBinding } from './act-as.context.js';
|
|
12
|
+
import { ledgerFor } from './can.hook.js';
|
|
13
13
|
export function useAuth() {
|
|
14
14
|
const { kernel } = useIdentityBinding();
|
|
15
15
|
return useMemo(() => withLedgerNudge(kernel), [kernel]);
|
package/dist/auth/can.hook.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { AuthApi, Perms } from '@astrale-os/kernel-client/auth';
|
|
2
2
|
import type { PathLike, Ref } from '@astrale-os/kernel-client/graph';
|
|
3
|
-
import type { NodeValue, SessionView } from './act-as.context';
|
|
3
|
+
import type { NodeValue, SessionView } from './act-as.context.js';
|
|
4
4
|
/** A node value carries the id/class/path triple (mirrors the memory's `isNodeValue`). */
|
|
5
5
|
export declare function isNodeValue(x: unknown): x is NodeValue;
|
|
6
6
|
/** Normalize a `useCan` subject to a dispatchable `Ref` plus a stable dedup key. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"can.hook.d.ts","sourceRoot":"","sources":["../../src/auth/can.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAA;AAapE,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"can.hook.d.ts","sourceRoot":"","sources":["../../src/auth/can.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAA;AACpE,OAAO,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,MAAM,iCAAiC,CAAA;AAapE,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAOjE,0FAA0F;AAC1F,wBAAgB,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,CAAC,IAAI,SAAS,CAEtD;AAED,oFAAoF;AACpF,wBAAgB,KAAK,CAAC,EAAE,EAAE,SAAS,GAAG,QAAQ,GAAG;IAAE,GAAG,EAAE,GAAG,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAGzE;AAID,iFAAiF;AACjF,cAAM,SAAS;IAMX,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,KAAK;IACtB,OAAO,CAAC,QAAQ,CAAC,EAAE;IAPrB,KAAK,EAAE,OAAO,GAAG,SAAS,CAAY;IACtC,OAAO,CAAC,QAAQ,CAAQ;IACxB,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAwB;IAElD,YACmB,IAAI,EAAE,OAAO,EACb,KAAK,EAAE,KAAK,EACZ,EAAE,EAAE,GAAG,EACtB;IAEJ,SAAS,aAAc,MAAM,IAAI,KAAG,CAAC,MAAM,IAAI,CAAC,CAI/C;IAED,WAAW,QAAO,OAAO,GAAG,SAAS,CAAc;IAEnD,6EAA6E;IAC7E,MAAM,IAAI,IAAI,CAGb;IAED,+DAA+D;IAC/D,UAAU,IAAI,IAAI,CAMjB;IAED,OAAO,CAAC,GAAG;CAkBZ;AAED,uFAAuF;AACvF,qBAAa,WAAW;IAGV,OAAO,CAAC,QAAQ,CAAC,IAAI;IAFjC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA+B;IAErD,YAA6B,IAAI,EAAE,OAAO,EAAI;IAE9C,IAAI,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,GAAG,SAAS,CAOlD;IAED,2FAA2F;IAC3F,aAAa,IAAI,IAAI,CAEpB;CACF;AAMD,wBAAgB,SAAS,CAAC,MAAM,EAAE,WAAW,GAAG,WAAW,CAO1D;AAID,wBAAgB,MAAM,CACpB,KAAK,EAAE,KAAK,EACZ,EAAE,EAAE,SAAS,GAAG,QAAQ,GAAG,IAAI,GAAG,SAAS,GAC1C,OAAO,GAAG,SAAS,CAoBrB"}
|
package/dist/auth/can.hook.js
CHANGED
|
@@ -8,8 +8,8 @@ import { rawOf } from '@astrale-os/kernel-client/graph';
|
|
|
8
8
|
* enforcement point (SPEC §6.2). A local grant/revoke invalidates the ledger.
|
|
9
9
|
*/
|
|
10
10
|
import { useCallback, useMemo, useSyncExternalStore } from 'react';
|
|
11
|
-
import { isIdleInput } from '../graph/memory/read/idle';
|
|
12
|
-
import { useIdentityBinding } from './act-as.context';
|
|
11
|
+
import { isIdleInput } from '../graph/memory/read/idle.js';
|
|
12
|
+
import { useIdentityBinding } from './act-as.context.js';
|
|
13
13
|
const NOOP_UNSUB = () => undefined;
|
|
14
14
|
/** A node value carries the id/class/path triple (mirrors the memory's `isNodeValue`). */
|
|
15
15
|
export function isNodeValue(x) {
|
package/dist/auth/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { ActAs } from './act-as.context';
|
|
2
|
-
export type { ActAsProps } from './act-as.context';
|
|
3
|
-
export { useAuth } from './auth.hook';
|
|
4
|
-
export { useCan } from './can.hook';
|
|
5
|
-
export { useSelf } from './self.hook';
|
|
1
|
+
export { ActAs } from './act-as.context.js';
|
|
2
|
+
export type { ActAsProps } from './act-as.context.js';
|
|
3
|
+
export { useAuth } from './auth.hook.js';
|
|
4
|
+
export { useCan } from './can.hook.js';
|
|
5
|
+
export { useSelf } from './self.hook.js';
|
|
6
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/auth/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/auth/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAC3C,YAAY,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AACxC,OAAO,EAAE,MAAM,EAAE,MAAM,eAAe,CAAA;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA"}
|
package/dist/auth/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// auth — API §4 (useSelf, useCan, useAuth, ActAs). See SHELL_REACT_API.md.
|
|
2
|
-
export { ActAs } from './act-as.context';
|
|
3
|
-
export { useAuth } from './auth.hook';
|
|
4
|
-
export { useCan } from './can.hook';
|
|
5
|
-
export { useSelf } from './self.hook';
|
|
2
|
+
export { ActAs } from './act-as.context.js';
|
|
3
|
+
export { useAuth } from './auth.hook.js';
|
|
4
|
+
export { useCan } from './can.hook.js';
|
|
5
|
+
export { useSelf } from './self.hook.js';
|
package/dist/auth/self.hook.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"self.hook.d.ts","sourceRoot":"","sources":["../../src/auth/self.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"self.hook.d.ts","sourceRoot":"","sources":["../../src/auth/self.hook.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAA;AAWpD,wBAAgB,OAAO,IAAI,SAAS,CAEnC"}
|
package/dist/auth/self.hook.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* live memory shape once the graph plane subscribes the self node — no signature
|
|
6
6
|
* change.
|
|
7
7
|
*/
|
|
8
|
-
import { useIdentityBinding } from './act-as.context';
|
|
8
|
+
import { useIdentityBinding } from './act-as.context.js';
|
|
9
9
|
export function useSelf() {
|
|
10
10
|
return useIdentityBinding().self;
|
|
11
11
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { SessionView } from './act-as.context';
|
|
1
|
+
import type { SessionView } from './act-as.context.js';
|
|
2
2
|
/** The EFFECTIVE dispatch kernel for this subtree. Throws outside a provider. */
|
|
3
3
|
export declare function useSessionKernel(): SessionView;
|
|
4
4
|
//# sourceMappingURL=session-kernel.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-kernel.d.ts","sourceRoot":"","sources":["../../src/auth/session-kernel.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"session-kernel.d.ts","sourceRoot":"","sources":["../../src/auth/session-kernel.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AAKtD,iFAAiF;AACjF,wBAAgB,gBAAgB,IAAI,WAAW,CAQ9C"}
|
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* principal — not the root — and its scoped memory.
|
|
7
7
|
*/
|
|
8
8
|
import { useContext } from 'react';
|
|
9
|
-
import { ShellContext } from '../session/session.context';
|
|
10
|
-
import { IdentityContext } from './act-as.context';
|
|
9
|
+
import { ShellContext } from '../session/session.context.js';
|
|
10
|
+
import { IdentityContext } from './act-as.context.js';
|
|
11
11
|
/** The EFFECTIVE dispatch kernel for this subtree. Throws outside a provider. */
|
|
12
12
|
export function useSessionKernel() {
|
|
13
13
|
const binding = useContext(IdentityContext);
|
package/dist/graph/async.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../../src/graph/async.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"async.d.ts","sourceRoot":"","sources":["../../src/graph/async.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAE1D,MAAM,WAAW,aAAa,CAAC,CAAC,CAAE,SAAQ,SAAS;IACjD,QAAQ,CAAC,IAAI,EAAE,CAAC,CAAA;CACjB;AAQD;;;;GAIG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAChC,IAAI,EAAE,CAAC,MAAM,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,EAC/B,KAAK,EAAE,CAAC,EACR,IAAI,EAAE,SAAS,OAAO,EAAE,GACvB,aAAa,CAAC,CAAC,CAAC,CAyDlB"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* owns its own refetch policy. Dispatch is a graph operation (rule 2).
|
|
6
6
|
*/
|
|
7
7
|
import type { CallFns, FnMap } from '@astrale-os/kernel-client';
|
|
8
|
-
import type { Action } from '../action';
|
|
8
|
+
import type { Action } from '../action.js';
|
|
9
9
|
export interface CallOptions {
|
|
10
10
|
/** Per-call timeout (ms), forwarded to the kernel dispatch. */
|
|
11
11
|
timeout?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call.hook.d.ts","sourceRoot":"","sources":["../../../src/graph/call/call.hook.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAA;AAE/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"call.hook.d.ts","sourceRoot":"","sources":["../../../src/graph/call/call.hook.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,2BAA2B,CAAA;AAE/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAK1C,MAAM,WAAW,WAAW;IAC1B,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,6EAA6E;IAC7E,OAAO,CAAC,CAAC,KAAK,EAAE,OAAO,GAAG,IAAI,CAAA;CAC/B;AAED;;;;GAIG;AACH,wBAAgB,OAAO,CAAC,CAAC,SAAS,OAAO,CAAC,KAAK,CAAC,EAC9C,MAAM,EAAE,CAAC,GAAG,IAAI,EAChB,IAAI,CAAC,EAAE,WAAW,GACjB,MAAM,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAalD"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { useSessionKernel } from '../../auth/session-kernel';
|
|
2
|
-
import { useAction } from '../action';
|
|
1
|
+
import { useSessionKernel } from '../../auth/session-kernel.js';
|
|
2
|
+
import { useAction } from '../action.js';
|
|
3
3
|
/**
|
|
4
4
|
* Unary domain-function dispatch as an {@link Action}. `method` is a typed FnMap
|
|
5
5
|
* `call` path or any string (the untyped floor); `null` yields an idle action
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* never live. Dispatch is a graph operation (rule 2).
|
|
6
6
|
*/
|
|
7
7
|
import { useCallback, useEffect, useReducer, useRef } from 'react';
|
|
8
|
-
import { useSessionKernel } from '../../auth/session-kernel';
|
|
8
|
+
import { useSessionKernel } from '../../auth/session-kernel.js';
|
|
9
9
|
const IDLE_STREAM = {
|
|
10
10
|
chunks: [],
|
|
11
11
|
last: null,
|
package/dist/graph/index.d.ts
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
export { useNode } from './query/node.hook';
|
|
2
|
-
export type { NodeResult } from './query/node.hook';
|
|
3
|
-
export { useChildren } from './query/children.hook';
|
|
4
|
-
export type { ChildrenOptions, ChildrenResult } from './query/children.hook';
|
|
5
|
-
export { useQuery } from './query/query.hook';
|
|
6
|
-
export type { QueryResult } from './query/query.hook';
|
|
7
|
-
export { useGraph } from './query/graph.hook';
|
|
8
|
-
export { useMutate } from './mutate/mutate.hook';
|
|
9
|
-
export type { UseMutateOptions } from './mutate/mutate.hook';
|
|
10
|
-
export { useMove } from './mutate/move.hook';
|
|
11
|
-
export type { MoveAction } from './mutate/move.hook';
|
|
12
|
-
export { useCall } from './call/call.hook';
|
|
13
|
-
export type { CallOptions } from './call/call.hook';
|
|
14
|
-
export { useStream } from './call/stream.hook';
|
|
15
|
-
export type { StreamHandle, StreamOptions } from './call/stream.hook';
|
|
16
|
-
export type { Action } from './action';
|
|
17
|
-
export type { ReadState, ReadOptions, Windowed, Node } from './memory/read/envelope';
|
|
18
|
-
export type { GraphMemory } from './graph.context';
|
|
1
|
+
export { useNode } from './query/node.hook.js';
|
|
2
|
+
export type { NodeResult } from './query/node.hook.js';
|
|
3
|
+
export { useChildren } from './query/children.hook.js';
|
|
4
|
+
export type { ChildrenOptions, ChildrenResult } from './query/children.hook.js';
|
|
5
|
+
export { useQuery } from './query/query.hook.js';
|
|
6
|
+
export type { QueryResult } from './query/query.hook.js';
|
|
7
|
+
export { useGraph } from './query/graph.hook.js';
|
|
8
|
+
export { useMutate } from './mutate/mutate.hook.js';
|
|
9
|
+
export type { UseMutateOptions } from './mutate/mutate.hook.js';
|
|
10
|
+
export { useMove } from './mutate/move.hook.js';
|
|
11
|
+
export type { MoveAction } from './mutate/move.hook.js';
|
|
12
|
+
export { useCall } from './call/call.hook.js';
|
|
13
|
+
export type { CallOptions } from './call/call.hook.js';
|
|
14
|
+
export { useStream } from './call/stream.hook.js';
|
|
15
|
+
export type { StreamHandle, StreamOptions } from './call/stream.hook.js';
|
|
16
|
+
export type { Action } from './action.js';
|
|
17
|
+
export type { ReadState, ReadOptions, Windowed, Node } from './memory/read/envelope.js';
|
|
18
|
+
export type { GraphMemory } from './graph.context.js';
|
|
19
19
|
export type { ShapeInput } from '@astrale-os/kernel-client/store';
|
|
20
20
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/graph/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/graph/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAA;AAC9C,YAAY,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,YAAY,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAA;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,YAAY,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AACxD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAA;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAA;AACnD,YAAY,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAA;AAC/C,YAAY,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAC7C,YAAY,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AACxE,YAAY,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACzC,YAAY,EAAE,SAAS,EAAE,WAAW,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAA;AACvF,YAAY,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAA;AACrD,YAAY,EAAE,UAAU,EAAE,MAAM,iCAAiC,CAAA"}
|
package/dist/graph/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
// graph — the graph plane (API §5 + §7). Merged read hooks, writes, dispatch.
|
|
2
|
-
export { useNode } from './query/node.hook';
|
|
3
|
-
export { useChildren } from './query/children.hook';
|
|
4
|
-
export { useQuery } from './query/query.hook';
|
|
5
|
-
export { useGraph } from './query/graph.hook';
|
|
6
|
-
export { useMutate } from './mutate/mutate.hook';
|
|
7
|
-
export { useMove } from './mutate/move.hook';
|
|
8
|
-
export { useCall } from './call/call.hook';
|
|
9
|
-
export { useStream } from './call/stream.hook';
|
|
2
|
+
export { useNode } from './query/node.hook.js';
|
|
3
|
+
export { useChildren } from './query/children.hook.js';
|
|
4
|
+
export { useQuery } from './query/query.hook.js';
|
|
5
|
+
export { useGraph } from './query/graph.hook.js';
|
|
6
|
+
export { useMutate } from './mutate/mutate.hook.js';
|
|
7
|
+
export { useMove } from './mutate/move.hook.js';
|
|
8
|
+
export { useCall } from './call/call.hook.js';
|
|
9
|
+
export { useStream } from './call/stream.hook.js';
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* inert: `isIdleInput` is the one gate every read branches on, and
|
|
4
4
|
* `idleReadState` is the settled, not-live, seq-0 envelope it returns.
|
|
5
5
|
*/
|
|
6
|
-
import type { ReadState } from './envelope';
|
|
6
|
+
import type { ReadState } from './envelope.js';
|
|
7
7
|
/**
|
|
8
8
|
* The chaining rule: every read hook accepts `null | undefined` for its subject
|
|
9
9
|
* and returns an *idle* result (empty data, no I/O). This predicate is the one
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"idle.d.ts","sourceRoot":"","sources":["../../../../src/graph/memory/read/idle.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"idle.d.ts","sourceRoot":"","sources":["../../../../src/graph/memory/read/idle.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,IAAI,IAAI,GAAG,SAAS,CAEzE;AAED;;;GAGG;AACH,wBAAgB,aAAa,IAAI,SAAS,CAEzC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { ShapeInput } from '@astrale-os/kernel-client/store';
|
|
2
|
-
import type { CoreReadOptions, RawRead } from './envelope';
|
|
2
|
+
import type { CoreReadOptions, RawRead } from './envelope.js';
|
|
3
3
|
/**
|
|
4
4
|
* Subscribe to a memory shape and project it. `null`/`undefined` shape → idle.
|
|
5
5
|
* Cold + `suspend` (default) throws the cold-shape promise; `suspend:false`
|