@immediately-run/sdk 0.68.1 → 0.68.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/agentChatClient.js +1 -1
- package/dist/agentContext.js +4 -4
- package/dist/agentLoop.js +1 -1
- package/dist/analytics.js +3 -3
- package/dist/auth.js +2 -2
- package/dist/boot.js +16 -16
- package/dist/bundle.js +1 -1
- package/dist/catalog.js +4 -4
- package/dist/chromeState.js +2 -2
- package/dist/components/FileRouter.js +4 -4
- package/dist/components/HeadingAnchor.js +4 -4
- package/dist/components/Include.js +5 -5
- package/dist/components/Link.js +5 -5
- package/dist/components/MDXComponents.js +10 -10
- package/dist/components/MainContent.js +4 -4
- package/dist/components/MountImage.js +1 -1
- package/dist/components/Routes.js +3 -3
- package/dist/components/SafeInclude.js +7 -7
- package/dist/components/ScrollAfterNavigation.js +2 -2
- package/dist/components/ScrollRestoration.js +4 -4
- package/dist/components/WikiLink.js +5 -5
- package/dist/components/defaults.js +1 -1
- package/dist/components/errors.js +1 -1
- package/dist/contextUtils.js +3 -3
- package/dist/contribute.js +2 -2
- package/dist/corpus.js +2 -2
- package/dist/debug.js +3 -3
- package/dist/diagnostics.js +2 -2
- package/dist/dnd.js +3 -3
- package/dist/editor.js +3 -3
- package/dist/editorContext.js +2 -2
- package/dist/feed.js +3 -3
- package/dist/formFactor.js +2 -2
- package/dist/fs.js +2 -2
- package/dist/generated/spaces.js +1 -1
- package/dist/hooks.js +2 -2
- package/dist/hostAttention.js +2 -2
- package/dist/hostTransport.js +1 -1
- package/dist/index.js +65 -65
- package/dist/ipc.js +3 -3
- package/dist/launch.js +3 -3
- package/dist/llm.js +3 -3
- package/dist/markers.js +2 -2
- package/dist/metadataQueryTool.js +1 -1
- package/dist/metadataSource.js +1 -1
- package/dist/moduleCache.js +2 -2
- package/dist/mounts.js +7 -7
- package/dist/netFetch.js +4 -4
- package/dist/onFsChange.js +2 -2
- package/dist/openExternal.js +3 -3
- package/dist/openRepository.js +3 -3
- package/dist/platformLink.js +4 -4
- package/dist/protocolSchemes.js +1 -1
- package/dist/protocolStream.js +2 -2
- package/dist/pushChannel.js +1 -1
- package/dist/ready.js +1 -1
- package/dist/recents.js +3 -3
- package/dist/region.js +3 -3
- package/dist/routing.js +7 -7
- package/dist/runtime.js +4 -4
- package/dist/sandboxUtils.js +4 -4
- package/dist/secrets.js +4 -4
- package/dist/tasks.js +4 -4
- package/dist/theme.js +4 -4
- package/dist/urlUtils.js +1 -1
- package/dist/useEntryState.js +1 -1
- package/dist/vcs.js +4 -4
- package/dist/version.cjs +1 -1
- package/dist/version.cjs.map +1 -1
- package/dist/version.d.cts +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.js.map +1 -1
- package/dist/workspace.js +2 -2
- package/package.json +4 -3
package/dist/agentChatClient.js
CHANGED
package/dist/agentContext.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
2
|
import { useContext } from "react";
|
|
3
|
-
import { TinkerableContext } from "./TinkerableContext";
|
|
4
|
-
import { useAuth } from "./auth";
|
|
5
|
-
import { useMounts } from "./mounts";
|
|
6
|
-
import { fenceUntrusted } from "./fence";
|
|
3
|
+
import { TinkerableContext } from "./TinkerableContext.js";
|
|
4
|
+
import { useAuth } from "./auth.js";
|
|
5
|
+
import { useMounts } from "./mounts.js";
|
|
6
|
+
import { fenceUntrusted } from "./fence.js";
|
|
7
7
|
function useAgentContext(app = {}) {
|
|
8
8
|
const tinker = useContext(TinkerableContext);
|
|
9
9
|
const auth = useAuth();
|
package/dist/agentLoop.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { anySignal, steerWireText, INTERRUPTED_TURN_TEXT } from "./agentSteering";
|
|
2
|
+
import { anySignal, steerWireText, INTERRUPTED_TURN_TEXT } from "./agentSteering.js";
|
|
3
3
|
const textOf = (blocks) => blocks.filter((b) => b.type === "text").map((b) => b.text).join("");
|
|
4
4
|
const TERMINAL_STOPS = /* @__PURE__ */ new Set(["max_tokens", "refusal"]);
|
|
5
5
|
const INTENT_RE = /\b(i'?ll|i will|i'?m going to|going to|let me|let's|now,? i(?:'?ll| will)?|next,? i(?:'?ll| will)?)\b[\s\S]{0,80}?\b(read|write|edit|creat|add|updat|modif|regist|check|look|call|run|search|grep|list|open|fetch|inspect|review|explor|implement|fix|appl)/i;
|
package/dist/analytics.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { protocolRequest } from "./sandboxUtils";
|
|
3
|
-
import { SCHEMES } from "./protocolSchemes";
|
|
4
|
-
import { PROTOCOL_ANALYTICS } from "./generated/protocol";
|
|
2
|
+
import { protocolRequest } from "./sandboxUtils.js";
|
|
3
|
+
import { SCHEMES } from "./protocolSchemes.js";
|
|
4
|
+
import { PROTOCOL_ANALYTICS } from "./generated/protocol.js";
|
|
5
5
|
const emitAnalyticsEvent = (name, props) => protocolRequest(SCHEMES[PROTOCOL_ANALYTICS], "emit", [{ name, ...props ? { props } : {} }]);
|
|
6
6
|
const recordRoute = (path) => protocolRequest(SCHEMES[PROTOCOL_ANALYTICS], "route", [{ path }]);
|
|
7
7
|
const track = (name, props) => {
|
package/dist/auth.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { createPushChannel } from "./pushChannel";
|
|
3
|
-
import { AUTH_STATE, REQUEST_AUTH_STATE } from "./generated/protocol";
|
|
2
|
+
import { createPushChannel } from "./pushChannel.js";
|
|
3
|
+
import { AUTH_STATE, REQUEST_AUTH_STATE } from "./generated/protocol.js";
|
|
4
4
|
const isAuthState = (v) => {
|
|
5
5
|
const s = v;
|
|
6
6
|
return !!s && (s.status === "unknown" || s.status === "signed-in" || s.status === "signed-out") && (s.user === null || typeof s.user === "object" && typeof s.user.login === "string");
|
package/dist/boot.js
CHANGED
|
@@ -2,22 +2,22 @@ import "./chunk-VHAA22YE.js";
|
|
|
2
2
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { StrictMode, useEffect, useLayoutEffect, useState } from "react";
|
|
4
4
|
import { createRoot } from "react-dom/client";
|
|
5
|
-
import { emitMarkerOnce } from "./markers";
|
|
6
|
-
import { ErrorNotFound } from "./components/errors";
|
|
7
|
-
import { FileRouter } from "./components/FileRouter";
|
|
8
|
-
import { MainContent } from "./components/MainContent";
|
|
9
|
-
import { DEFAULT_MDX_COMPONENTS } from "./components/MDXComponents";
|
|
10
|
-
import { ScrollAfterNavigation } from "./components/ScrollAfterNavigation";
|
|
11
|
-
import { getInitialContext, updateContext } from "./contextUtils";
|
|
12
|
-
import { getInjectedMetadataEmitter, resolveMetadataSource } from "./injectedBundler";
|
|
13
|
-
import { MDXProvider } from "./MDXProvider";
|
|
14
|
-
import { ModuleCache, ModuleCacheContextProvider } from "./moduleCache";
|
|
15
|
-
import { Router } from "./routing";
|
|
16
|
-
import { addListener } from "./sandboxUtils";
|
|
17
|
-
import { TinkerableContext } from "./TinkerableContext";
|
|
18
|
-
import { FILES_PREFIX } from "./urlUtils";
|
|
19
|
-
import { METADATA_UPDATE, URLCHANGE } from "./generated/protocol";
|
|
20
|
-
import { receiveNavigation } from "./entryState";
|
|
5
|
+
import { emitMarkerOnce } from "./markers.js";
|
|
6
|
+
import { ErrorNotFound } from "./components/errors.js";
|
|
7
|
+
import { FileRouter } from "./components/FileRouter.js";
|
|
8
|
+
import { MainContent } from "./components/MainContent.js";
|
|
9
|
+
import { DEFAULT_MDX_COMPONENTS } from "./components/MDXComponents.js";
|
|
10
|
+
import { ScrollAfterNavigation } from "./components/ScrollAfterNavigation.js";
|
|
11
|
+
import { getInitialContext, updateContext } from "./contextUtils.js";
|
|
12
|
+
import { getInjectedMetadataEmitter, resolveMetadataSource } from "./injectedBundler.js";
|
|
13
|
+
import { MDXProvider } from "./MDXProvider.js";
|
|
14
|
+
import { ModuleCache, ModuleCacheContextProvider } from "./moduleCache.js";
|
|
15
|
+
import { Router } from "./routing.js";
|
|
16
|
+
import { addListener } from "./sandboxUtils.js";
|
|
17
|
+
import { TinkerableContext } from "./TinkerableContext.js";
|
|
18
|
+
import { FILES_PREFIX } from "./urlUtils.js";
|
|
19
|
+
import { METADATA_UPDATE, URLCHANGE } from "./generated/protocol.js";
|
|
20
|
+
import { receiveNavigation } from "./entryState.js";
|
|
21
21
|
const resolveMdxComponents = (mdxComponents) => mdxComponents === void 0 ? DEFAULT_MDX_COMPONENTS : typeof mdxComponents === "function" ? mdxComponents(DEFAULT_MDX_COMPONENTS) : { ...DEFAULT_MDX_COMPONENTS, ...mdxComponents };
|
|
22
22
|
const updateAlreadyApplied = (filesMetadata, update) => {
|
|
23
23
|
for (let [key, value] of Object.entries(update)) {
|
package/dist/bundle.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
2
|
import { createContext, use, useMemo } from "react";
|
|
3
|
-
import { useMetadataStore } from "./metadataSource";
|
|
3
|
+
import { useMetadataStore } from "./metadataSource.js";
|
|
4
4
|
const EMPTY_SCOPE = { root: null, entry: null, toHref: (p) => p };
|
|
5
5
|
const BundleContext = createContext(EMPTY_SCOPE);
|
|
6
6
|
const useBundle = () => use(BundleContext);
|
package/dist/catalog.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { protocolRequest, sendMessage, addListener } from "./sandboxUtils";
|
|
3
|
-
import { consumeStream } from "./protocolStream";
|
|
4
|
-
import { createPushChannel } from "./pushChannel";
|
|
5
|
-
import { API_CATALOG, REQUEST_API_CATALOG } from "./generated/protocol";
|
|
2
|
+
import { protocolRequest, sendMessage, addListener } from "./sandboxUtils.js";
|
|
3
|
+
import { consumeStream } from "./protocolStream.js";
|
|
4
|
+
import { createPushChannel } from "./pushChannel.js";
|
|
5
|
+
import { API_CATALOG, REQUEST_API_CATALOG } from "./generated/protocol.js";
|
|
6
6
|
const split = (name) => {
|
|
7
7
|
const i = name.indexOf(":");
|
|
8
8
|
if (i <= 0) throw new Error(`invalid catalog method name: ${name}`);
|
package/dist/chromeState.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { createPushChannel } from "./pushChannel";
|
|
3
|
-
import { CHROME_STATE, REQUEST_CHROME_STATE } from "./generated/protocol";
|
|
2
|
+
import { createPushChannel } from "./pushChannel.js";
|
|
3
|
+
import { CHROME_STATE, REQUEST_CHROME_STATE } from "./generated/protocol.js";
|
|
4
4
|
const DEFAULT_CHROME_STATE = { overlay: "none", tab: { edge: "top-right" } };
|
|
5
5
|
const isChromeState = (v) => {
|
|
6
6
|
const c = v;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../chunk-VHAA22YE.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { useContext } from "react";
|
|
4
|
-
import { TinkerableContext } from "../TinkerableContext";
|
|
5
|
-
import { underAppRoot } from "../urlUtils";
|
|
6
|
-
import { defaultErrorComponent, defaultLoadingComponent } from "./defaults";
|
|
7
|
-
import { Include } from "./Include";
|
|
4
|
+
import { TinkerableContext } from "../TinkerableContext.js";
|
|
5
|
+
import { underAppRoot } from "../urlUtils.js";
|
|
6
|
+
import { defaultErrorComponent, defaultLoadingComponent } from "./defaults.js";
|
|
7
|
+
import { Include } from "./Include.js";
|
|
8
8
|
const FileRouter = ({
|
|
9
9
|
LoadingComponent = defaultLoadingComponent,
|
|
10
10
|
ErrorComponent = defaultErrorComponent
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "../chunk-VHAA22YE.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { use, useCallback } from "react";
|
|
4
|
-
import { scrollToId } from "../scrollToId";
|
|
5
|
-
import { TinkerableContext } from "../TinkerableContext";
|
|
6
|
-
import { constructOuterUrl } from "../urlUtils";
|
|
7
|
-
import { FragmentLink } from "./Link";
|
|
4
|
+
import { scrollToId } from "../scrollToId.js";
|
|
5
|
+
import { TinkerableContext } from "../TinkerableContext.js";
|
|
6
|
+
import { constructOuterUrl } from "../urlUtils.js";
|
|
7
|
+
import { FragmentLink } from "./Link.js";
|
|
8
8
|
const HeadingAnchor = ({
|
|
9
9
|
id,
|
|
10
10
|
...rest
|
|
@@ -2,11 +2,11 @@ import "../chunk-VHAA22YE.js";
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Suspense, use } from "react";
|
|
4
4
|
import { ErrorBoundary } from "react-error-boundary";
|
|
5
|
-
import { ModuleCacheContext } from "../moduleCache";
|
|
6
|
-
import { defaultErrorComponent, defaultLoadingComponent } from "./defaults";
|
|
7
|
-
import { IncludeModeContext, RenderExportedComponentContext } from "./includeContexts";
|
|
8
|
-
import { SafeInclude } from "./SafeInclude";
|
|
9
|
-
import { IncludeModeContext as IncludeModeContext2, RenderExportedComponentContext as RenderExportedComponentContext2 } from "./includeContexts";
|
|
5
|
+
import { ModuleCacheContext } from "../moduleCache.js";
|
|
6
|
+
import { defaultErrorComponent, defaultLoadingComponent } from "./defaults.js";
|
|
7
|
+
import { IncludeModeContext, RenderExportedComponentContext } from "./includeContexts.js";
|
|
8
|
+
import { SafeInclude } from "./SafeInclude.js";
|
|
9
|
+
import { IncludeModeContext as IncludeModeContext2, RenderExportedComponentContext as RenderExportedComponentContext2 } from "./includeContexts.js";
|
|
10
10
|
const RenderExportedComponent = ({
|
|
11
11
|
evaluationContextPromise,
|
|
12
12
|
exportedSymbol = "default"
|
package/dist/components/Link.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../chunk-VHAA22YE.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { use } from "react";
|
|
4
|
-
import { isBrowserGestureClick, useComposedAnchorClick } from "../anchorClick";
|
|
5
|
-
import { navigate } from "../routing";
|
|
6
|
-
import { scrollToId } from "../scrollToId";
|
|
7
|
-
import { TinkerableContext } from "../TinkerableContext";
|
|
8
|
-
import { constructOuterUrl, isInternalHref } from "../urlUtils";
|
|
4
|
+
import { isBrowserGestureClick, useComposedAnchorClick } from "../anchorClick.js";
|
|
5
|
+
import { navigate } from "../routing.js";
|
|
6
|
+
import { scrollToId } from "../scrollToId.js";
|
|
7
|
+
import { TinkerableContext } from "../TinkerableContext.js";
|
|
8
|
+
import { constructOuterUrl, isInternalHref } from "../urlUtils.js";
|
|
9
9
|
const FragmentLink = ({
|
|
10
10
|
href,
|
|
11
11
|
children,
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import "../chunk-VHAA22YE.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { use } from "react";
|
|
4
|
-
import { Admonition } from "./Admonition";
|
|
5
|
-
import { FS_PREFIX, LinkSpaceContext, resolveLinkTarget } from "../linkSpace";
|
|
6
|
-
import { splitHash } from "../urlUtils";
|
|
7
|
-
import { HeadingAnchor } from "./HeadingAnchor";
|
|
8
|
-
import { Link } from "./Link";
|
|
9
|
-
import { WikiLink } from "./WikiLink";
|
|
10
|
-
import { InternalLink, Link as Link2 } from "./Link";
|
|
11
|
-
import { Admonition as Admonition2 } from "./Admonition";
|
|
12
|
-
import { HeadingAnchor as HeadingAnchor2 } from "./HeadingAnchor";
|
|
13
|
-
import { WikiLink as WikiLink2 } from "./WikiLink";
|
|
4
|
+
import { Admonition } from "./Admonition.js";
|
|
5
|
+
import { FS_PREFIX, LinkSpaceContext, resolveLinkTarget } from "../linkSpace.js";
|
|
6
|
+
import { splitHash } from "../urlUtils.js";
|
|
7
|
+
import { HeadingAnchor } from "./HeadingAnchor.js";
|
|
8
|
+
import { Link } from "./Link.js";
|
|
9
|
+
import { WikiLink } from "./WikiLink.js";
|
|
10
|
+
import { InternalLink, Link as Link2 } from "./Link.js";
|
|
11
|
+
import { Admonition as Admonition2 } from "./Admonition.js";
|
|
12
|
+
import { HeadingAnchor as HeadingAnchor2 } from "./HeadingAnchor.js";
|
|
13
|
+
import { WikiLink as WikiLink2 } from "./WikiLink.js";
|
|
14
14
|
const DEFAULT_MDX_COMPONENTS = {
|
|
15
15
|
a({
|
|
16
16
|
href,
|
|
@@ -2,10 +2,10 @@ import "../chunk-VHAA22YE.js";
|
|
|
2
2
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { Suspense, use, useEffect, useMemo } from "react";
|
|
4
4
|
import { ErrorBoundary } from "react-error-boundary";
|
|
5
|
-
import { navigate, useTinkerableLink } from "../routing";
|
|
6
|
-
import { FILES_PREFIX, underAppRoot } from "../urlUtils";
|
|
7
|
-
import { sandboxFs } from "../fs";
|
|
8
|
-
import { defaultErrorComponent, defaultLoadingComponent } from "./defaults";
|
|
5
|
+
import { navigate, useTinkerableLink } from "../routing.js";
|
|
6
|
+
import { FILES_PREFIX, underAppRoot } from "../urlUtils.js";
|
|
7
|
+
import { sandboxFs } from "../fs.js";
|
|
8
|
+
import { defaultErrorComponent, defaultLoadingComponent } from "./defaults.js";
|
|
9
9
|
const candidates = [
|
|
10
10
|
"/src/App.tsx",
|
|
11
11
|
"/src/App.ts",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "../chunk-VHAA22YE.js";
|
|
2
2
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
|
-
import { useObjectUrl } from "../hooks";
|
|
3
|
+
import { useObjectUrl } from "../hooks.js";
|
|
4
4
|
function MountImage({ mount, relPath, type, placeholder, fallback, alt = "", ...imgProps }) {
|
|
5
5
|
const { url, loading, error } = useObjectUrl(mount, relPath, type ? { type } : void 0);
|
|
6
6
|
if (loading) return /* @__PURE__ */ jsx(Fragment, { children: placeholder ?? null });
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../chunk-VHAA22YE.js";
|
|
2
2
|
import { Fragment, jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Children, isValidElement, use } from "react";
|
|
4
|
-
import { TinkerableContext } from "../TinkerableContext";
|
|
5
|
-
import { matchRoute } from "../routeMatch";
|
|
6
|
-
import { renderRoute } from "../routing";
|
|
4
|
+
import { TinkerableContext } from "../TinkerableContext.js";
|
|
5
|
+
import { matchRoute } from "../routeMatch.js";
|
|
6
|
+
import { renderRoute } from "../routing.js";
|
|
7
7
|
const Route = (_props) => null;
|
|
8
8
|
const Routes = ({ children, fallback = null }) => {
|
|
9
9
|
const context = use(TinkerableContext);
|
|
@@ -2,13 +2,13 @@ import "../chunk-VHAA22YE.js";
|
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { Suspense, use, useMemo } from "react";
|
|
4
4
|
import { ErrorBoundary } from "react-error-boundary";
|
|
5
|
-
import { openAppFs, openFs } from "../fs";
|
|
6
|
-
import { getAppMountPath } from "../mounts";
|
|
7
|
-
import { useMDXComponents } from "../MDXProvider";
|
|
8
|
-
import { SafeContent } from "../safeContent/SafeContent";
|
|
9
|
-
import { createSourceCache } from "../sourceCache";
|
|
10
|
-
import { RenderExportedComponentContext } from "./includeContexts";
|
|
11
|
-
import { defaultErrorComponent, defaultLoadingComponent } from "./defaults";
|
|
5
|
+
import { openAppFs, openFs } from "../fs.js";
|
|
6
|
+
import { getAppMountPath } from "../mounts.js";
|
|
7
|
+
import { useMDXComponents } from "../MDXProvider.js";
|
|
8
|
+
import { SafeContent } from "../safeContent/SafeContent.js";
|
|
9
|
+
import { createSourceCache } from "../sourceCache.js";
|
|
10
|
+
import { RenderExportedComponentContext } from "./includeContexts.js";
|
|
11
|
+
import { defaultErrorComponent, defaultLoadingComponent } from "./defaults.js";
|
|
12
12
|
function stripFrontmatter(source) {
|
|
13
13
|
return source.replace(/^\uFEFF?---\r?\n[\s\S]*?\r?\n---[ \t]*\r?\n?/, "");
|
|
14
14
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../chunk-VHAA22YE.js";
|
|
2
2
|
import { use, useEffect } from "react";
|
|
3
|
-
import { TinkerableContext } from "../TinkerableContext";
|
|
4
|
-
import { scrollToId } from "../scrollToId";
|
|
3
|
+
import { TinkerableContext } from "../TinkerableContext.js";
|
|
4
|
+
import { scrollToId } from "../scrollToId.js";
|
|
5
5
|
const useScrollAfterNavigation = () => {
|
|
6
6
|
const { navigationState } = use(TinkerableContext);
|
|
7
7
|
const frag = navigationState.hash;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "../chunk-VHAA22YE.js";
|
|
2
2
|
import { use, useEffect, useRef } from "react";
|
|
3
|
-
import { registerEntryStateCollector } from "../entryState";
|
|
4
|
-
import { nextRestoreAction, RESTORE_DEADLINE_MS } from "../scrollRestore";
|
|
5
|
-
import { TinkerableContext } from "../TinkerableContext";
|
|
6
|
-
import { useEntryState, useNavigationDirection } from "../useEntryState";
|
|
3
|
+
import { registerEntryStateCollector } from "../entryState.js";
|
|
4
|
+
import { nextRestoreAction, RESTORE_DEADLINE_MS } from "../scrollRestore.js";
|
|
5
|
+
import { TinkerableContext } from "../TinkerableContext.js";
|
|
6
|
+
import { useEntryState, useNavigationDirection } from "../useEntryState.js";
|
|
7
7
|
const SCROLL_KEY = "ir.scroll";
|
|
8
8
|
const documentScroller = () => {
|
|
9
9
|
if (typeof document === "undefined" || typeof window === "undefined") return null;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import "../chunk-VHAA22YE.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { use } from "react";
|
|
4
|
-
import { Link } from "./Link";
|
|
5
|
-
import { RenderExportedComponentContext } from "./Include";
|
|
6
|
-
import { TinkerableContext } from "../TinkerableContext";
|
|
7
|
-
import { splitHash } from "../urlUtils";
|
|
8
|
-
import { FS_PREFIX, LinkSpaceContext, resolveLinkTarget } from "../linkSpace";
|
|
4
|
+
import { Link } from "./Link.js";
|
|
5
|
+
import { RenderExportedComponentContext } from "./Include.js";
|
|
6
|
+
import { TinkerableContext } from "../TinkerableContext.js";
|
|
7
|
+
import { splitHash } from "../urlUtils.js";
|
|
8
|
+
import { FS_PREFIX, LinkSpaceContext, resolveLinkTarget } from "../linkSpace.js";
|
|
9
9
|
const labelFromTarget = (target) => {
|
|
10
10
|
const base = target.split(/[\\/]/).pop() ?? target;
|
|
11
11
|
return base.replace(/\.mdx?$/i, "") || target;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "../chunk-VHAA22YE.js";
|
|
2
2
|
import { Fragment, jsxs } from "react/jsx-runtime";
|
|
3
3
|
import { useContext } from "react";
|
|
4
|
-
import { TinkerableContext } from "../TinkerableContext";
|
|
4
|
+
import { TinkerableContext } from "../TinkerableContext.js";
|
|
5
5
|
const ErrorNotFound = () => {
|
|
6
6
|
const {
|
|
7
7
|
navigationState: { pathParameters }
|
package/dist/contextUtils.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { parseHref, getSearchParams } from "./urlUtils";
|
|
3
|
-
import { applyRoutingRule } from "./routing";
|
|
4
|
-
import { getInjectedMetadataSnapshot } from "./injectedBundler";
|
|
2
|
+
import { parseHref, getSearchParams } from "./urlUtils.js";
|
|
3
|
+
import { applyRoutingRule } from "./routing.js";
|
|
4
|
+
import { getInjectedMetadataSnapshot } from "./injectedBundler.js";
|
|
5
5
|
const getContextFromUrl = (routingSpec, outerHref, filesMetadata) => {
|
|
6
6
|
const navigationState = parseHref(outerHref);
|
|
7
7
|
const appliedRoutingRule = applyRoutingRule(routingSpec, navigationState);
|
package/dist/contribute.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { protocolStream } from "./protocolStream";
|
|
3
|
-
import { PROTOCOL_CONTRIBUTE } from "./generated/protocol";
|
|
2
|
+
import { protocolStream } from "./protocolStream.js";
|
|
3
|
+
import { PROTOCOL_CONTRIBUTE } from "./generated/protocol.js";
|
|
4
4
|
function contribute(opts) {
|
|
5
5
|
return protocolStream(PROTOCOL_CONTRIBUTE, "run", [opts]);
|
|
6
6
|
}
|
package/dist/corpus.js
CHANGED
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
useBundleEntry,
|
|
7
7
|
toBundlePath,
|
|
8
8
|
fromBundlePath
|
|
9
|
-
} from "./bundle";
|
|
10
|
-
import { useCurrentEntry } from "./bundle";
|
|
9
|
+
} from "./bundle.js";
|
|
10
|
+
import { useCurrentEntry } from "./bundle.js";
|
|
11
11
|
export {
|
|
12
12
|
BundleContext as CorpusContext,
|
|
13
13
|
fromBundlePath as fromCorpusPath,
|
package/dist/debug.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { createPushChannel } from "./pushChannel";
|
|
3
|
-
import { sendMessage, addListener } from "./sandboxUtils";
|
|
4
|
-
import { DEBUG_ENABLED, DEBUG_LOG, DEBUG_QUERY, DEBUG_QUERY_RESULT, REQUEST_DEBUG_ENABLED } from "./generated/protocol";
|
|
2
|
+
import { createPushChannel } from "./pushChannel.js";
|
|
3
|
+
import { sendMessage, addListener } from "./sandboxUtils.js";
|
|
4
|
+
import { DEBUG_ENABLED, DEBUG_LOG, DEBUG_QUERY, DEBUG_QUERY_RESULT, REQUEST_DEBUG_ENABLED } from "./generated/protocol.js";
|
|
5
5
|
const enabledChannel = createPushChannel({
|
|
6
6
|
pushType: DEBUG_ENABLED,
|
|
7
7
|
requestType: REQUEST_DEBUG_ENABLED,
|
package/dist/diagnostics.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { createPushChannel } from "./pushChannel";
|
|
3
|
-
import { DIAGNOSTICS, REQUEST_DIAGNOSTICS } from "./generated/protocol";
|
|
2
|
+
import { createPushChannel } from "./pushChannel.js";
|
|
3
|
+
import { DIAGNOSTICS, REQUEST_DIAGNOSTICS } from "./generated/protocol.js";
|
|
4
4
|
const EMPTY = { buildErrors: [], consoleEntries: [], provenance: null };
|
|
5
5
|
const channel = createPushChannel({
|
|
6
6
|
pushType: DIAGNOSTICS,
|
package/dist/dnd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
|
-
import { protocolRequest, sendMessage, addListener } from "./sandboxUtils";
|
|
4
|
-
import { DND_CANCEL, DROPPED_ITEM, PROTOCOL_DND } from "./generated/protocol";
|
|
5
|
-
import { SCHEMES } from "./protocolSchemes";
|
|
3
|
+
import { protocolRequest, sendMessage, addListener } from "./sandboxUtils.js";
|
|
4
|
+
import { DND_CANCEL, DROPPED_ITEM, PROTOCOL_DND } from "./generated/protocol.js";
|
|
5
|
+
import { SCHEMES } from "./protocolSchemes.js";
|
|
6
6
|
const startItemDrag = async (item) => {
|
|
7
7
|
const res = await protocolRequest(SCHEMES[PROTOCOL_DND], "startDrag", [item]);
|
|
8
8
|
if (!res || res.ok !== true) {
|
package/dist/editor.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { protocolRequest } from "./sandboxUtils";
|
|
3
|
-
import { SCHEMES } from "./protocolSchemes";
|
|
4
|
-
import { PROTOCOL_EDITOR } from "./generated/protocol";
|
|
2
|
+
import { protocolRequest } from "./sandboxUtils.js";
|
|
3
|
+
import { SCHEMES } from "./protocolSchemes.js";
|
|
4
|
+
import { PROTOCOL_EDITOR } from "./generated/protocol.js";
|
|
5
5
|
const editorRequest = async (method, arg) => {
|
|
6
6
|
const res = await protocolRequest(SCHEMES[PROTOCOL_EDITOR], method, [arg]);
|
|
7
7
|
if (!res || res.ok !== true) {
|
package/dist/editorContext.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { createPushChannel } from "./pushChannel";
|
|
3
|
-
import { EDITOR_CONTEXT, REQUEST_EDITOR_CONTEXT } from "./generated/protocol";
|
|
2
|
+
import { createPushChannel } from "./pushChannel.js";
|
|
3
|
+
import { EDITOR_CONTEXT, REQUEST_EDITOR_CONTEXT } from "./generated/protocol.js";
|
|
4
4
|
const isStringArray = (v) => Array.isArray(v) && v.every((p) => typeof p === "string");
|
|
5
5
|
const channel = createPushChannel({
|
|
6
6
|
pushType: EDITOR_CONTEXT,
|
package/dist/feed.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { protocolRequest } from "./sandboxUtils";
|
|
3
|
-
import { SCHEMES } from "./protocolSchemes";
|
|
4
|
-
import { PROTOCOL_FEED } from "./generated/protocol";
|
|
2
|
+
import { protocolRequest } from "./sandboxUtils.js";
|
|
3
|
+
import { SCHEMES } from "./protocolSchemes.js";
|
|
4
|
+
import { PROTOCOL_FEED } from "./generated/protocol.js";
|
|
5
5
|
const feedFetch = async (instanceId, params = {}) => {
|
|
6
6
|
const res = await protocolRequest(SCHEMES[PROTOCOL_FEED], "fetch", [{ instanceId, params }]);
|
|
7
7
|
if (!res || res.ok !== true) {
|
package/dist/formFactor.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { createPushChannel } from "./pushChannel";
|
|
3
|
-
import { FORM_FACTOR, REQUEST_FORM_FACTOR } from "./generated/protocol";
|
|
2
|
+
import { createPushChannel } from "./pushChannel.js";
|
|
3
|
+
import { FORM_FACTOR, REQUEST_FORM_FACTOR } from "./generated/protocol.js";
|
|
4
4
|
const DEFAULT_FORM_FACTOR = {
|
|
5
5
|
class: "desktop",
|
|
6
6
|
orientation: "landscape",
|
package/dist/fs.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { getAppMountPath } from "./mounts";
|
|
3
|
-
import { onFsChange } from "./onFsChange";
|
|
2
|
+
import { getAppMountPath } from "./mounts.js";
|
|
3
|
+
import { onFsChange } from "./onFsChange.js";
|
|
4
4
|
const hasFs = (fs) => typeof fs?.promises?.readFile === "function" || typeof fs?.readFile === "function";
|
|
5
5
|
function sandboxFs() {
|
|
6
6
|
try {
|
package/dist/generated/spaces.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "../chunk-VHAA22YE.js";
|
|
2
|
-
import { invoke } from "../catalog";
|
|
2
|
+
import { invoke } from "../catalog.js";
|
|
3
3
|
const listSpaces = (opts = {}) => invoke("spaces:list", opts);
|
|
4
4
|
const listAllSpaces = () => invoke("spaces:listAll", {});
|
|
5
5
|
const getSpaceMembers = (spaceId) => invoke("spaces:members", { spaceId });
|
package/dist/hooks.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
2
|
import { APP_ROOT, underAppRoot } from "@immediately-run/platform-constants";
|
|
3
3
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
4
|
-
import { openFs } from "./fs";
|
|
5
|
-
import { useMetadataStore } from "./metadataSource";
|
|
4
|
+
import { openFs } from "./fs.js";
|
|
5
|
+
import { useMetadataStore } from "./metadataSource.js";
|
|
6
6
|
const entriesEqual = (a, b) => {
|
|
7
7
|
if (a.length !== b.length) {
|
|
8
8
|
return false;
|
package/dist/hostAttention.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { createPushChannel } from "./pushChannel";
|
|
3
|
-
import { HOST_ATTENTION, REQUEST_HOST_ATTENTION } from "./generated/protocol";
|
|
2
|
+
import { createPushChannel } from "./pushChannel.js";
|
|
3
|
+
import { HOST_ATTENTION, REQUEST_HOST_ATTENTION } from "./generated/protocol.js";
|
|
4
4
|
const NO_HOST_ATTENTION = { awaiting: false, kind: null, since: null };
|
|
5
5
|
const KINDS = /* @__PURE__ */ new Set(["passkey", "consent", "picker", "confirmation"]);
|
|
6
6
|
const parseHostAttention = (value) => {
|
package/dist/hostTransport.js
CHANGED