@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/index.js
CHANGED
|
@@ -1,69 +1,69 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
export * from "./MDXProvider";
|
|
3
|
-
export * from "./routing";
|
|
4
|
-
export * from "./boot";
|
|
5
|
-
export * from "./components/Include";
|
|
6
|
-
import { SafeInclude } from "./components/SafeInclude";
|
|
7
|
-
export * from "./sourceCache";
|
|
8
|
-
export * from "./components/MDXComponents";
|
|
9
|
-
export * from "./linkSpace";
|
|
10
|
-
export * from "./bundle";
|
|
11
|
-
export * from "./corpus";
|
|
12
|
-
export * from "./components/MountImage";
|
|
13
|
-
export * from "./components/Routes";
|
|
14
|
-
export * from "./hooks";
|
|
15
|
-
export * from "./metadataSource";
|
|
16
|
-
import { getInjectedMetadataEmitter, getInjectedMetadataSnapshot } from "./injectedBundler";
|
|
17
|
-
export * from "./auth";
|
|
18
|
-
export * from "./theme";
|
|
19
|
-
export * from "./editorContext";
|
|
20
|
-
export * from "./editor";
|
|
21
|
-
export * from "./formFactor";
|
|
22
|
-
export * from "./chromeState";
|
|
23
|
-
export * from "./workspace";
|
|
24
|
-
export * from "./hostAttention";
|
|
25
|
-
export * from "./region";
|
|
26
|
-
export * from "./mounts";
|
|
27
|
-
export * from "./analytics";
|
|
28
|
-
export * from "./contribute";
|
|
29
|
-
export * from "./catalog";
|
|
30
|
-
export * from "./ipc";
|
|
31
|
-
export * from "./dnd";
|
|
32
|
-
export * from "./netFetch";
|
|
33
|
-
export * from "./feed";
|
|
34
|
-
export * from "./secrets";
|
|
35
|
-
export * from "./recents";
|
|
36
|
-
export * from "./openRepository";
|
|
37
|
-
export * from "./openExternal";
|
|
38
|
-
export * from "./llm";
|
|
39
|
-
export * from "./diagnostics";
|
|
40
|
-
export * from "./vcs";
|
|
41
|
-
export * from "./onFsChange";
|
|
42
|
-
export * from "./fs";
|
|
43
|
-
export * from "./debug";
|
|
44
|
-
export * from "./tasks";
|
|
45
|
-
export * from "./launch";
|
|
46
|
-
export * from "./runtime";
|
|
47
|
-
export * from "./irMarkers";
|
|
48
|
-
export * from "./ready";
|
|
49
|
-
export * from "./loading";
|
|
50
|
-
export * from "./protocolStream";
|
|
51
|
-
export * from "./protocolDeadline";
|
|
52
|
-
export * from "./sandboxTypes";
|
|
53
|
-
export * from "./safeContent";
|
|
54
|
-
export * from "./agentLoop";
|
|
55
|
-
export * from "./agentSteering";
|
|
56
|
-
export * from "./agentPause";
|
|
57
|
-
export * from "./agentChatClient";
|
|
58
|
-
export * from "./metadataQueryTool";
|
|
59
|
-
export * from "./collectHeadings";
|
|
60
|
-
export * from "./agentContext";
|
|
61
|
-
export * from "./fence";
|
|
62
|
-
export * from "./platformLink";
|
|
63
|
-
export * from "./entryState";
|
|
64
|
-
export * from "./useEntryState";
|
|
65
|
-
export * from "./scrollRestore";
|
|
66
|
-
import { ScrollRestoration } from "./components/ScrollRestoration";
|
|
2
|
+
export * from "./MDXProvider.js";
|
|
3
|
+
export * from "./routing.js";
|
|
4
|
+
export * from "./boot.js";
|
|
5
|
+
export * from "./components/Include.js";
|
|
6
|
+
import { SafeInclude } from "./components/SafeInclude.js";
|
|
7
|
+
export * from "./sourceCache.js";
|
|
8
|
+
export * from "./components/MDXComponents.js";
|
|
9
|
+
export * from "./linkSpace.js";
|
|
10
|
+
export * from "./bundle.js";
|
|
11
|
+
export * from "./corpus.js";
|
|
12
|
+
export * from "./components/MountImage.js";
|
|
13
|
+
export * from "./components/Routes.js";
|
|
14
|
+
export * from "./hooks.js";
|
|
15
|
+
export * from "./metadataSource.js";
|
|
16
|
+
import { getInjectedMetadataEmitter, getInjectedMetadataSnapshot } from "./injectedBundler.js";
|
|
17
|
+
export * from "./auth.js";
|
|
18
|
+
export * from "./theme.js";
|
|
19
|
+
export * from "./editorContext.js";
|
|
20
|
+
export * from "./editor.js";
|
|
21
|
+
export * from "./formFactor.js";
|
|
22
|
+
export * from "./chromeState.js";
|
|
23
|
+
export * from "./workspace.js";
|
|
24
|
+
export * from "./hostAttention.js";
|
|
25
|
+
export * from "./region.js";
|
|
26
|
+
export * from "./mounts.js";
|
|
27
|
+
export * from "./analytics.js";
|
|
28
|
+
export * from "./contribute.js";
|
|
29
|
+
export * from "./catalog.js";
|
|
30
|
+
export * from "./ipc.js";
|
|
31
|
+
export * from "./dnd.js";
|
|
32
|
+
export * from "./netFetch.js";
|
|
33
|
+
export * from "./feed.js";
|
|
34
|
+
export * from "./secrets.js";
|
|
35
|
+
export * from "./recents.js";
|
|
36
|
+
export * from "./openRepository.js";
|
|
37
|
+
export * from "./openExternal.js";
|
|
38
|
+
export * from "./llm.js";
|
|
39
|
+
export * from "./diagnostics.js";
|
|
40
|
+
export * from "./vcs.js";
|
|
41
|
+
export * from "./onFsChange.js";
|
|
42
|
+
export * from "./fs.js";
|
|
43
|
+
export * from "./debug.js";
|
|
44
|
+
export * from "./tasks.js";
|
|
45
|
+
export * from "./launch.js";
|
|
46
|
+
export * from "./runtime.js";
|
|
47
|
+
export * from "./irMarkers.js";
|
|
48
|
+
export * from "./ready.js";
|
|
49
|
+
export * from "./loading.js";
|
|
50
|
+
export * from "./protocolStream.js";
|
|
51
|
+
export * from "./protocolDeadline.js";
|
|
52
|
+
export * from "./sandboxTypes.js";
|
|
53
|
+
export * from "./safeContent/index.js";
|
|
54
|
+
export * from "./agentLoop.js";
|
|
55
|
+
export * from "./agentSteering.js";
|
|
56
|
+
export * from "./agentPause.js";
|
|
57
|
+
export * from "./agentChatClient.js";
|
|
58
|
+
export * from "./metadataQueryTool.js";
|
|
59
|
+
export * from "./collectHeadings.js";
|
|
60
|
+
export * from "./agentContext.js";
|
|
61
|
+
export * from "./fence.js";
|
|
62
|
+
export * from "./platformLink.js";
|
|
63
|
+
export * from "./entryState.js";
|
|
64
|
+
export * from "./useEntryState.js";
|
|
65
|
+
export * from "./scrollRestore.js";
|
|
66
|
+
import { ScrollRestoration } from "./components/ScrollRestoration.js";
|
|
67
67
|
export {
|
|
68
68
|
SafeInclude,
|
|
69
69
|
ScrollRestoration,
|
package/dist/ipc.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
|
-
import { protocolRequest, addListener } from "./sandboxUtils";
|
|
4
|
-
import { PROTOCOL_IPC, REGION_MESSAGE } from "./generated/protocol";
|
|
5
|
-
import { SCHEMES } from "./protocolSchemes";
|
|
3
|
+
import { protocolRequest, addListener } from "./sandboxUtils.js";
|
|
4
|
+
import { PROTOCOL_IPC, REGION_MESSAGE } from "./generated/protocol.js";
|
|
5
|
+
import { SCHEMES } from "./protocolSchemes.js";
|
|
6
6
|
const postToRegion = async (region, data) => {
|
|
7
7
|
const res = await protocolRequest(SCHEMES[PROTOCOL_IPC], "post", [{ to: region, msg: data }]);
|
|
8
8
|
if (!res || res.ok !== true) {
|
package/dist/launch.js
CHANGED
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
__privateSet
|
|
5
5
|
} from "./chunk-VHAA22YE.js";
|
|
6
6
|
var _status, _dismissListeners, _ended;
|
|
7
|
-
import { protocolRequest, sendMessage, addListener } from "./sandboxUtils";
|
|
8
|
-
import { LAUNCH_DISMISS, LAUNCH_ENDED, PROTOCOL_LAUNCH } from "./generated/protocol";
|
|
9
|
-
import { SCHEMES } from "./protocolSchemes";
|
|
7
|
+
import { protocolRequest, sendMessage, addListener } from "./sandboxUtils.js";
|
|
8
|
+
import { LAUNCH_DISMISS, LAUNCH_ENDED, PROTOCOL_LAUNCH } from "./generated/protocol.js";
|
|
9
|
+
import { SCHEMES } from "./protocolSchemes.js";
|
|
10
10
|
const liveHandles = /* @__PURE__ */ new Map();
|
|
11
11
|
const pendingEnded = /* @__PURE__ */ new Map();
|
|
12
12
|
const MAX_PENDING_ENDED = 16;
|
package/dist/llm.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { invokeStream } from "./catalog";
|
|
3
|
-
import { createPushChannel } from "./pushChannel";
|
|
4
|
-
import { LLM_PROVIDER, REQUEST_LLM_PROVIDER } from "./generated/protocol";
|
|
2
|
+
import { invokeStream } from "./catalog.js";
|
|
3
|
+
import { createPushChannel } from "./pushChannel.js";
|
|
4
|
+
import { LLM_PROVIDER, REQUEST_LLM_PROVIDER } from "./generated/protocol.js";
|
|
5
5
|
function chat(req) {
|
|
6
6
|
const { signal, ...params } = req;
|
|
7
7
|
return invokeStream("llm:chat", params, signal);
|
package/dist/markers.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { sendMessage as defaultSend } from "./sandboxUtils";
|
|
3
|
-
import { isIrMarkerName } from "./irMarkers";
|
|
2
|
+
import { sendMessage as defaultSend } from "./sandboxUtils.js";
|
|
3
|
+
import { isIrMarkerName } from "./irMarkers.js";
|
|
4
4
|
const realNow = () => typeof performance !== "undefined" && typeof performance.now === "function" ? performance.now() : Date.now();
|
|
5
5
|
const defaultDeps = { send: defaultSend, now: realNow };
|
|
6
6
|
let deps = defaultDeps;
|
package/dist/metadataSource.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { createContext, use, useMemo } from "react";
|
|
4
|
-
import { TinkerableContext } from "./TinkerableContext";
|
|
4
|
+
import { TinkerableContext } from "./TinkerableContext.js";
|
|
5
5
|
const MetadataSourceContext = createContext(void 0);
|
|
6
6
|
const MetadataSource = ({ value, mode = "replace", children }) => {
|
|
7
7
|
const outer = use(MetadataSourceContext);
|
package/dist/moduleCache.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { createContext } from "react";
|
|
4
|
-
import { addListener } from "./sandboxUtils";
|
|
5
|
-
import { COMPILE } from "./generated/protocol";
|
|
4
|
+
import { addListener } from "./sandboxUtils.js";
|
|
5
|
+
import { COMPILE } from "./generated/protocol.js";
|
|
6
6
|
class ModuleCache {
|
|
7
7
|
constructor() {
|
|
8
8
|
this.nameResolutionPromises = {};
|
package/dist/mounts.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
2
|
import { APP_ROOT } from "@immediately-run/platform-constants";
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
|
-
import { protocolRequest, sendMessage, addListener } from "./sandboxUtils";
|
|
5
|
-
import { createPushChannel } from "./pushChannel";
|
|
6
|
-
import { getHostRuntime } from "./hostRuntime";
|
|
7
|
-
import { mountMatches } from "./mountMatch";
|
|
4
|
+
import { protocolRequest, sendMessage, addListener } from "./sandboxUtils.js";
|
|
5
|
+
import { createPushChannel } from "./pushChannel.js";
|
|
6
|
+
import { getHostRuntime } from "./hostRuntime.js";
|
|
7
|
+
import { mountMatches } from "./mountMatch.js";
|
|
8
8
|
import {
|
|
9
9
|
listSpaces,
|
|
10
10
|
listAllSpaces,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
lookupUser,
|
|
16
16
|
listGrants,
|
|
17
17
|
revokeGrant
|
|
18
|
-
} from "./generated/spaces";
|
|
18
|
+
} from "./generated/spaces.js";
|
|
19
19
|
import {
|
|
20
20
|
INVITATIONS,
|
|
21
21
|
MOUNT_ADD,
|
|
@@ -27,8 +27,8 @@ import {
|
|
|
27
27
|
REQUEST_MOUNTS,
|
|
28
28
|
REQUEST_SESSION_MOUNTS,
|
|
29
29
|
SESSION_MOUNTS
|
|
30
|
-
} from "./generated/protocol";
|
|
31
|
-
import { SCHEMES } from "./protocolSchemes";
|
|
30
|
+
} from "./generated/protocol.js";
|
|
31
|
+
import { SCHEMES } from "./protocolSchemes.js";
|
|
32
32
|
const getAppMountPath = () => getHostRuntime()?.appMountPath ?? APP_ROOT;
|
|
33
33
|
const mountKey = (m) => m.id ?? m.path;
|
|
34
34
|
const MOUNT_REMOVE_REASONS = /* @__PURE__ */ new Set([
|
package/dist/netFetch.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { protocolRequest } from "./sandboxUtils";
|
|
3
|
-
import { protocolStream } from "./protocolStream";
|
|
4
|
-
import { SCHEMES } from "./protocolSchemes";
|
|
5
|
-
import { PROTOCOL_FETCH } from "./generated/protocol";
|
|
2
|
+
import { protocolRequest } from "./sandboxUtils.js";
|
|
3
|
+
import { protocolStream } from "./protocolStream.js";
|
|
4
|
+
import { SCHEMES } from "./protocolSchemes.js";
|
|
5
|
+
import { PROTOCOL_FETCH } from "./generated/protocol.js";
|
|
6
6
|
const hostFetch = async (url, init = {}) => {
|
|
7
7
|
const res = await protocolRequest(SCHEMES[PROTOCOL_FETCH], "fetch", [
|
|
8
8
|
{ url, method: init.method, headers: init.headers, body: init.body }
|
package/dist/onFsChange.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { createPushChannel } from "./pushChannel";
|
|
3
|
-
import { FS_CHANGE } from "./generated/protocol";
|
|
2
|
+
import { createPushChannel } from "./pushChannel.js";
|
|
3
|
+
import { FS_CHANGE } from "./generated/protocol.js";
|
|
4
4
|
const isStringArray = (v) => Array.isArray(v) && v.every((p) => typeof p === "string");
|
|
5
5
|
const isMountBatch = (v) => {
|
|
6
6
|
if (typeof v !== "object" || v === null) return false;
|
package/dist/openExternal.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { protocolRequest } from "./sandboxUtils";
|
|
3
|
-
import { PROTOCOL_OPENLINK } from "./generated/protocol";
|
|
4
|
-
import { SCHEMES } from "./protocolSchemes";
|
|
2
|
+
import { protocolRequest } from "./sandboxUtils.js";
|
|
3
|
+
import { PROTOCOL_OPENLINK } from "./generated/protocol.js";
|
|
4
|
+
import { SCHEMES } from "./protocolSchemes.js";
|
|
5
5
|
async function openExternal(url) {
|
|
6
6
|
const res = await protocolRequest(SCHEMES[PROTOCOL_OPENLINK], "open", [{ url }]);
|
|
7
7
|
if (!res || res.ok !== true) {
|
package/dist/openRepository.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { protocolRequest } from "./sandboxUtils";
|
|
3
|
-
import { PROTOCOL_OPENREPO } from "./generated/protocol";
|
|
4
|
-
import { SCHEMES } from "./protocolSchemes";
|
|
2
|
+
import { protocolRequest } from "./sandboxUtils.js";
|
|
3
|
+
import { PROTOCOL_OPENREPO } from "./generated/protocol.js";
|
|
4
|
+
import { SCHEMES } from "./protocolSchemes.js";
|
|
5
5
|
async function openRepository(coordinates) {
|
|
6
6
|
const { provider, namespace, repository } = coordinates;
|
|
7
7
|
const res = await protocolRequest(SCHEMES[PROTOCOL_OPENREPO], "open", [
|
package/dist/platformLink.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
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 { TinkerableContext } from "./TinkerableContext";
|
|
7
|
-
import { platformHref } from "./urlUtils";
|
|
4
|
+
import { isBrowserGestureClick, useComposedAnchorClick } from "./anchorClick.js";
|
|
5
|
+
import { navigate } from "./routing.js";
|
|
6
|
+
import { TinkerableContext } from "./TinkerableContext.js";
|
|
7
|
+
import { platformHref } from "./urlUtils.js";
|
|
8
8
|
const usePlatformHref = () => {
|
|
9
9
|
const { outerHref } = use(TinkerableContext);
|
|
10
10
|
return (path) => platformHref(outerHref, path);
|
package/dist/protocolSchemes.js
CHANGED
package/dist/protocolStream.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { addListener, sendMessage } from "./sandboxUtils";
|
|
2
|
+
import { addListener, sendMessage } from "./sandboxUtils.js";
|
|
3
3
|
import {
|
|
4
4
|
attendanceOf,
|
|
5
5
|
attendanceReason,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
PENDING_NOTICE_MS,
|
|
8
8
|
ProtocolTimeoutError,
|
|
9
9
|
STREAM_IDLE_TIMEOUT_MS
|
|
10
|
-
} from "./protocolDeadline";
|
|
10
|
+
} from "./protocolDeadline.js";
|
|
11
11
|
class StreamError extends Error {
|
|
12
12
|
constructor(code, message) {
|
|
13
13
|
super(message);
|
package/dist/pushChannel.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
|
-
import { sendMessage as defaultSend, addListener as defaultAddListener } from "./hostTransport";
|
|
3
|
+
import { sendMessage as defaultSend, addListener as defaultAddListener } from "./hostTransport.js";
|
|
4
4
|
function createPushChannel(opts, transport = { sendMessage: defaultSend, addListener: defaultAddListener }) {
|
|
5
5
|
let current = opts.initial;
|
|
6
6
|
const listeners = /* @__PURE__ */ new Set();
|
package/dist/ready.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { sendMessage as defaultSend } from "./sandboxUtils";
|
|
2
|
+
import { sendMessage as defaultSend } from "./sandboxUtils.js";
|
|
3
3
|
const realNow = () => typeof performance !== "undefined" && typeof performance.now === "function" ? performance.now() : Date.now();
|
|
4
4
|
const defaultDeps = { send: defaultSend, now: realNow };
|
|
5
5
|
let deps = defaultDeps;
|
package/dist/recents.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { protocolRequest } from "./sandboxUtils";
|
|
3
|
-
import { PROTOCOL_RECENTS } from "./generated/protocol";
|
|
4
|
-
import { SCHEMES } from "./protocolSchemes";
|
|
2
|
+
import { protocolRequest } from "./sandboxUtils.js";
|
|
3
|
+
import { PROTOCOL_RECENTS } from "./generated/protocol.js";
|
|
4
|
+
import { SCHEMES } from "./protocolSchemes.js";
|
|
5
5
|
const recentsRequest = async (params) => {
|
|
6
6
|
const res = await protocolRequest(SCHEMES[PROTOCOL_RECENTS], "list", [params]);
|
|
7
7
|
if (!res || res.ok !== true) {
|
package/dist/region.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
|
-
import { getHostRuntime } from "./hostRuntime";
|
|
4
|
-
import { createPushChannel } from "./pushChannel";
|
|
5
|
-
import { REGION_VISIBILITY, REQUEST_REGION_VISIBILITY } from "./generated/protocol";
|
|
3
|
+
import { getHostRuntime } from "./hostRuntime.js";
|
|
4
|
+
import { createPushChannel } from "./pushChannel.js";
|
|
5
|
+
import { REGION_VISIBILITY, REQUEST_REGION_VISIBILITY } from "./generated/protocol.js";
|
|
6
6
|
const getRegion = () => getHostRuntime()?.region ?? null;
|
|
7
7
|
const useRegion = () => {
|
|
8
8
|
const [region, setRegion] = useState(getRegion);
|
package/dist/routing.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
2
|
import { jsx } from "react/jsx-runtime";
|
|
3
3
|
import { use, useContext } from "react";
|
|
4
|
-
import { sendMessage } from "./sandboxUtils";
|
|
5
|
-
import { TinkerableContext } from "./TinkerableContext";
|
|
6
|
-
import { matchRoute } from "./routeMatch";
|
|
7
|
-
import { constructUrl, isAbsolutePath, parseTarget } from "./urlUtils";
|
|
8
|
-
import { joinPaths } from "./pathUtils";
|
|
9
|
-
import { takeQueuedEntryState } from "./entryState";
|
|
10
|
-
import { URLCHANGE } from "./generated/protocol";
|
|
4
|
+
import { sendMessage } from "./sandboxUtils.js";
|
|
5
|
+
import { TinkerableContext } from "./TinkerableContext.js";
|
|
6
|
+
import { matchRoute } from "./routeMatch.js";
|
|
7
|
+
import { constructUrl, isAbsolutePath, parseTarget } from "./urlUtils.js";
|
|
8
|
+
import { joinPaths } from "./pathUtils.js";
|
|
9
|
+
import { takeQueuedEntryState } from "./entryState.js";
|
|
10
|
+
import { URLCHANGE } from "./generated/protocol.js";
|
|
11
11
|
const useTinkerableLink = (newSandboxLocation) => {
|
|
12
12
|
const { outerHref, navigationState: navigation } = use(TinkerableContext);
|
|
13
13
|
let newNavigationState = parseTarget(newSandboxLocation, navigation);
|
package/dist/runtime.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { sendMessage, addListener } from "./sandboxUtils";
|
|
3
|
-
import { SDK_VERSION } from "./version";
|
|
4
|
-
import { REQUEST_HANDSHAKE, SDK_HANDSHAKE } from "./generated/protocol";
|
|
5
|
-
import { getHostRuntime } from "./hostRuntime";
|
|
2
|
+
import { sendMessage, addListener } from "./sandboxUtils.js";
|
|
3
|
+
import { SDK_VERSION } from "./version.js";
|
|
4
|
+
import { REQUEST_HANDSHAKE, SDK_HANDSHAKE } from "./generated/protocol.js";
|
|
5
|
+
import { getHostRuntime } from "./hostRuntime.js";
|
|
6
6
|
const SDK_PROTOCOL_VERSION = "1.0.0";
|
|
7
7
|
const sdkHandshake = () => ({
|
|
8
8
|
sdkVersion: SDK_VERSION,
|
package/dist/sandboxUtils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { transport } from "./hostTransport";
|
|
3
|
-
import { onHostAttentionChange } from "./hostAttention";
|
|
2
|
+
import { transport } from "./hostTransport.js";
|
|
3
|
+
import { onHostAttentionChange } from "./hostAttention.js";
|
|
4
4
|
import {
|
|
5
5
|
attendanceOf,
|
|
6
6
|
attendanceReason,
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
PENDING_NOTICE_MS,
|
|
10
10
|
ProtocolCancelledError,
|
|
11
11
|
ProtocolTimeoutError
|
|
12
|
-
} from "./protocolDeadline";
|
|
13
|
-
import { sendMessage, addListener } from "./hostTransport";
|
|
12
|
+
} from "./protocolDeadline.js";
|
|
13
|
+
import { sendMessage, addListener } from "./hostTransport.js";
|
|
14
14
|
const protocolRequest = (protocolName, method, params, opts) => withDeadline(protocolName, method, () => transport().protocolRequest(protocolName, method, params), opts);
|
|
15
15
|
async function withDeadline(scheme, method, start, opts) {
|
|
16
16
|
const call = `${scheme}:${method}`;
|
package/dist/secrets.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { protocolRequest } from "./sandboxUtils";
|
|
3
|
-
import { createPushChannel } from "./pushChannel";
|
|
4
|
-
import { PROTOCOL_SECRETS, REQUEST_SECRETS_METADATA, SECRETS_METADATA } from "./generated/protocol";
|
|
5
|
-
import { SCHEMES } from "./protocolSchemes";
|
|
2
|
+
import { protocolRequest } from "./sandboxUtils.js";
|
|
3
|
+
import { createPushChannel } from "./pushChannel.js";
|
|
4
|
+
import { PROTOCOL_SECRETS, REQUEST_SECRETS_METADATA, SECRETS_METADATA } from "./generated/protocol.js";
|
|
5
|
+
import { SCHEMES } from "./protocolSchemes.js";
|
|
6
6
|
const request = async (method, query = {}) => {
|
|
7
7
|
const res = await protocolRequest(SCHEMES[PROTOCOL_SECRETS], method, [query]);
|
|
8
8
|
if (!res || res.ok !== true) {
|
package/dist/tasks.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
2
|
import { useEffect, useState } from "react";
|
|
3
|
-
import { protocolRequest, sendMessage, addListener } from "./sandboxUtils";
|
|
4
|
-
import { transport } from "./hostTransport";
|
|
5
|
-
import { PROTOCOL_TASK, TASK_CANCEL, TASK_COMPLETE, TASK_INPUT } from "./generated/protocol";
|
|
6
|
-
import { SCHEMES } from "./protocolSchemes";
|
|
3
|
+
import { protocolRequest, sendMessage, addListener } from "./sandboxUtils.js";
|
|
4
|
+
import { transport } from "./hostTransport.js";
|
|
5
|
+
import { PROTOCOL_TASK, TASK_CANCEL, TASK_COMPLETE, TASK_INPUT } from "./generated/protocol.js";
|
|
6
|
+
import { SCHEMES } from "./protocolSchemes.js";
|
|
7
7
|
const capFile = (ref, opts) => ({
|
|
8
8
|
$cap: "file",
|
|
9
9
|
mountId: ref.mountId,
|
package/dist/theme.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { createPushChannel } from "./pushChannel";
|
|
3
|
-
import { protocolRequest } from "./sandboxUtils";
|
|
4
|
-
import { PROTOCOL_THEME, REQUEST_THEME, REQUEST_THEME_CATALOG, THEME, THEME_CATALOG } from "./generated/protocol";
|
|
5
|
-
import { SCHEMES } from "./protocolSchemes";
|
|
2
|
+
import { createPushChannel } from "./pushChannel.js";
|
|
3
|
+
import { protocolRequest } from "./sandboxUtils.js";
|
|
4
|
+
import { PROTOCOL_THEME, REQUEST_THEME, REQUEST_THEME_CATALOG, THEME, THEME_CATALOG } from "./generated/protocol.js";
|
|
5
|
+
import { SCHEMES } from "./protocolSchemes.js";
|
|
6
6
|
const DEFAULT_SELECTION = {
|
|
7
7
|
theme: "dark",
|
|
8
8
|
themeKey: "immediately-run-default",
|
package/dist/urlUtils.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
2
|
import { APP_ROOT, underAppRoot } from "@immediately-run/platform-constants";
|
|
3
|
-
import { joinPaths } from "./pathUtils";
|
|
3
|
+
import { joinPaths } from "./pathUtils.js";
|
|
4
4
|
const FILES_PREFIX = "/files";
|
|
5
5
|
const getOuterHostname = (outerHref) => {
|
|
6
6
|
const url = new URL(outerHref);
|
package/dist/useEntryState.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
2
|
import { useCallback, useSyncExternalStore } from "react";
|
|
3
|
-
import { getArrivedNavigation, saveEntryState, subscribeNavigation } from "./entryState";
|
|
3
|
+
import { getArrivedNavigation, saveEntryState, subscribeNavigation } from "./entryState.js";
|
|
4
4
|
const useEntryState = (key) => {
|
|
5
5
|
const arrived = useSyncExternalStore(subscribeNavigation, getArrivedNavigation, getArrivedNavigation);
|
|
6
6
|
const save = useCallback((value) => saveEntryState(key, value), [key]);
|
package/dist/vcs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { createPushChannel } from "./pushChannel";
|
|
3
|
-
import { protocolRequest } from "./sandboxUtils";
|
|
4
|
-
import { PROTOCOL_VCS, REQUEST_VCS_STATE, VCS_STATE } from "./generated/protocol";
|
|
5
|
-
import { SCHEMES } from "./protocolSchemes";
|
|
2
|
+
import { createPushChannel } from "./pushChannel.js";
|
|
3
|
+
import { protocolRequest } from "./sandboxUtils.js";
|
|
4
|
+
import { PROTOCOL_VCS, REQUEST_VCS_STATE, VCS_STATE } from "./generated/protocol.js";
|
|
5
|
+
import { SCHEMES } from "./protocolSchemes.js";
|
|
6
6
|
const EMPTY = { changes: [], branch: null, prs: [], diffLoading: false };
|
|
7
7
|
const isChangeArray = (v) => Array.isArray(v) && v.every((c) => !!c && typeof c.path === "string" && typeof c.status === "string");
|
|
8
8
|
const channel = createPushChannel({
|
package/dist/version.cjs
CHANGED
|
@@ -21,7 +21,7 @@ __export(version_exports, {
|
|
|
21
21
|
SDK_VERSION: () => SDK_VERSION
|
|
22
22
|
});
|
|
23
23
|
module.exports = __toCommonJS(version_exports);
|
|
24
|
-
const SDK_VERSION = "0.68.
|
|
24
|
+
const SDK_VERSION = "0.68.2";
|
|
25
25
|
// Annotate the CommonJS export names for ESM import in node:
|
|
26
26
|
0 && (module.exports = {
|
|
27
27
|
SDK_VERSION
|
package/dist/version.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/version.ts"],"sourcesContent":["// GENERATED by scripts/gen-version.mjs from package.json — do not edit by hand.\n// Regenerated on every build (prebuild); kept honest by version.test.ts.\n\n/** This SDK's package version, baked from package.json at build (SP2-6). */\nexport const SDK_VERSION = '0.68.
|
|
1
|
+
{"version":3,"sources":["../src/version.ts"],"sourcesContent":["// GENERATED by scripts/gen-version.mjs from package.json — do not edit by hand.\n// Regenerated on every build (prebuild); kept honest by version.test.ts.\n\n/** This SDK's package version, baked from package.json at build (SP2-6). */\nexport const SDK_VERSION = '0.68.2';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,MAAM,cAAc;","names":[]}
|
package/dist/version.d.cts
CHANGED
package/dist/version.d.ts
CHANGED
package/dist/version.js
CHANGED
package/dist/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/version.ts"],"sourcesContent":["// GENERATED by scripts/gen-version.mjs from package.json — do not edit by hand.\n// Regenerated on every build (prebuild); kept honest by version.test.ts.\n\n/** This SDK's package version, baked from package.json at build (SP2-6). */\nexport const SDK_VERSION = '0.68.
|
|
1
|
+
{"version":3,"sources":["../src/version.ts"],"sourcesContent":["// GENERATED by scripts/gen-version.mjs from package.json — do not edit by hand.\n// Regenerated on every build (prebuild); kept honest by version.test.ts.\n\n/** This SDK's package version, baked from package.json at build (SP2-6). */\nexport const SDK_VERSION = '0.68.2';\n"],"mappings":";AAIO,MAAM,cAAc;","names":[]}
|
package/dist/workspace.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import "./chunk-VHAA22YE.js";
|
|
2
|
-
import { createPushChannel } from "./pushChannel";
|
|
3
|
-
import { WORKSPACE, REQUEST_WORKSPACE } from "./generated/protocol";
|
|
2
|
+
import { createPushChannel } from "./pushChannel.js";
|
|
3
|
+
import { WORKSPACE, REQUEST_WORKSPACE } from "./generated/protocol.js";
|
|
4
4
|
const DEFAULT_WORKSPACE = null;
|
|
5
5
|
const isWorkspace = (v) => {
|
|
6
6
|
const w = v;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@immediately-run/sdk",
|
|
3
|
-
"version": "0.68.
|
|
3
|
+
"version": "0.68.2",
|
|
4
4
|
"description": "Runtime SDK for code executing inside an immediately.run sandbox.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": "github:immediately-run/immediately-run-sdk",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"scripts": {
|
|
28
28
|
"gen:version": "node scripts/gen-version.mjs",
|
|
29
29
|
"prebuild": "node scripts/gen-version.mjs",
|
|
30
|
-
"build": "tsup && node scripts/build-safecontent-deps.mjs && node scripts/copy-ambient-types.mjs",
|
|
30
|
+
"build": "tsup && node scripts/build-safecontent-deps.mjs && node scripts/copy-ambient-types.mjs && node scripts/fix-dist-esm-specifiers.mjs",
|
|
31
31
|
"test": "jest",
|
|
32
32
|
"format": "prettier --write \"src/**/*.{ts,tsx,js,mjs,json}\" \"test/**/*.{ts,mjs}\" \"scripts/**/*.mjs\"",
|
|
33
33
|
"format:check": "prettier --check \"src/**/*.{ts,tsx,js,mjs,json}\" \"test/**/*.{ts,mjs}\" \"scripts/**/*.mjs\"",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"check:clones": "node scripts/check-clones.mjs",
|
|
43
43
|
"check:unused": "node scripts/check-unused.mjs",
|
|
44
44
|
"check:untested": "node scripts/check-untested.mjs",
|
|
45
|
-
"verify": "npm run check:pins && npm run check:publish-version && npm run format:check && npm run check:circular && npm run check:clones && npm run check:unused && npm run check:untested && npm run check:bundler:selftest && npm run check:bundler && npm run build && npm test && npm run test:safe-content && npm run test:metadata-e2e && npm run test:subpath-imports && npm run api:selftest && npm run api:check && npm run compat:selftest && npm run compat:previous && npm run protocol:check && npm run protocol:selftest && npm run check:ambient:selftest && npm run check:ambient && npm run check:selfhost:selftest && npm run check:selfhost && npm run verify:codegen-parity",
|
|
45
|
+
"verify": "npm run check:pins && npm run check:publish-version && npm run format:check && npm run check:circular && npm run check:clones && npm run check:unused && npm run check:untested && npm run check:bundler:selftest && npm run check:bundler && npm run build && npm test && npm run test:safe-content && npm run test:metadata-e2e && npm run test:subpath-imports && npm run api:selftest && npm run api:check && npm run compat:selftest && npm run compat:previous && npm run protocol:check && npm run protocol:selftest && npm run check:ambient:selftest && npm run check:ambient && npm run check:selfhost:selftest && npm run check:selfhost && npm run check:dist-specifiers:selftest && npm run verify:codegen-parity",
|
|
46
46
|
"docs": "typedoc --json docs/api.json && node scripts/gen-llms.mjs",
|
|
47
47
|
"prepublishOnly": "npm run check:circular && npm run build && npm run api:selftest && npm run api:check",
|
|
48
48
|
"test:safe-content": "node scripts/build-safecontent-e2e.mjs && node --test test/safeContent.e2e.mjs",
|
|
@@ -57,6 +57,7 @@
|
|
|
57
57
|
"check:bundler": "node scripts/check-bundler-reads.mjs",
|
|
58
58
|
"check:bundler:selftest": "node scripts/check-bundler-reads.mjs --self-test",
|
|
59
59
|
"check:ambient": "node scripts/check-ambient-types.mjs",
|
|
60
|
+
"check:dist-specifiers:selftest": "node scripts/fix-dist-esm-specifiers.mjs --self-test",
|
|
60
61
|
"check:ambient:selftest": "node scripts/check-ambient-types.mjs --self-test"
|
|
61
62
|
},
|
|
62
63
|
"peerDependencies": {
|