@immediately-run/sdk 0.68.0 → 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.
Files changed (87) hide show
  1. package/dist/agentChatClient.js +1 -1
  2. package/dist/agentContext.js +4 -4
  3. package/dist/agentLoop.js +1 -1
  4. package/dist/analytics.js +3 -3
  5. package/dist/auth.js +2 -2
  6. package/dist/boot.js +16 -16
  7. package/dist/bundle.js +1 -1
  8. package/dist/catalog.js +4 -4
  9. package/dist/chromeState.js +2 -2
  10. package/dist/components/FileRouter.js +4 -4
  11. package/dist/components/HeadingAnchor.js +4 -4
  12. package/dist/components/Include.js +5 -5
  13. package/dist/components/Link.js +5 -5
  14. package/dist/components/MDXComponents.cjs +4 -3
  15. package/dist/components/MDXComponents.cjs.map +1 -1
  16. package/dist/components/MDXComponents.js +14 -13
  17. package/dist/components/MDXComponents.js.map +1 -1
  18. package/dist/components/MainContent.js +4 -4
  19. package/dist/components/MountImage.js +1 -1
  20. package/dist/components/Routes.js +3 -3
  21. package/dist/components/SafeInclude.js +7 -7
  22. package/dist/components/ScrollAfterNavigation.js +2 -2
  23. package/dist/components/ScrollRestoration.js +4 -4
  24. package/dist/components/WikiLink.cjs +4 -3
  25. package/dist/components/WikiLink.cjs.map +1 -1
  26. package/dist/components/WikiLink.js +9 -8
  27. package/dist/components/WikiLink.js.map +1 -1
  28. package/dist/components/defaults.js +1 -1
  29. package/dist/components/errors.js +1 -1
  30. package/dist/contextUtils.js +3 -3
  31. package/dist/contribute.js +2 -2
  32. package/dist/corpus.js +2 -2
  33. package/dist/debug.js +3 -3
  34. package/dist/diagnostics.js +2 -2
  35. package/dist/dnd.js +3 -3
  36. package/dist/editor.js +3 -3
  37. package/dist/editorContext.js +2 -2
  38. package/dist/feed.js +3 -3
  39. package/dist/formFactor.js +2 -2
  40. package/dist/fs.js +2 -2
  41. package/dist/generated/spaces.js +1 -1
  42. package/dist/hooks.js +2 -2
  43. package/dist/hostAttention.js +2 -2
  44. package/dist/hostTransport.js +1 -1
  45. package/dist/index.js +65 -65
  46. package/dist/ipc.js +3 -3
  47. package/dist/launch.js +3 -3
  48. package/dist/linkSpace.cjs +1 -1
  49. package/dist/linkSpace.cjs.map +1 -1
  50. package/dist/linkSpace.d.cts +8 -3
  51. package/dist/linkSpace.d.ts +8 -3
  52. package/dist/linkSpace.js +1 -1
  53. package/dist/linkSpace.js.map +1 -1
  54. package/dist/llm.js +3 -3
  55. package/dist/markers.js +2 -2
  56. package/dist/metadataQueryTool.js +1 -1
  57. package/dist/metadataSource.js +1 -1
  58. package/dist/moduleCache.js +2 -2
  59. package/dist/mounts.js +7 -7
  60. package/dist/netFetch.js +4 -4
  61. package/dist/onFsChange.js +2 -2
  62. package/dist/openExternal.js +3 -3
  63. package/dist/openRepository.js +3 -3
  64. package/dist/platformLink.js +4 -4
  65. package/dist/protocolSchemes.js +1 -1
  66. package/dist/protocolStream.js +2 -2
  67. package/dist/pushChannel.js +1 -1
  68. package/dist/ready.js +1 -1
  69. package/dist/recents.js +3 -3
  70. package/dist/region.js +3 -3
  71. package/dist/routing.js +7 -7
  72. package/dist/runtime.js +4 -4
  73. package/dist/sandboxUtils.js +4 -4
  74. package/dist/secrets.js +4 -4
  75. package/dist/tasks.js +4 -4
  76. package/dist/theme.js +4 -4
  77. package/dist/urlUtils.js +1 -1
  78. package/dist/useEntryState.js +1 -1
  79. package/dist/vcs.js +4 -4
  80. package/dist/version.cjs +1 -1
  81. package/dist/version.cjs.map +1 -1
  82. package/dist/version.d.cts +1 -1
  83. package/dist/version.d.ts +1 -1
  84. package/dist/version.js +1 -1
  85. package/dist/version.js.map +1 -1
  86. package/dist/workspace.js +2 -2
  87. package/package.json +4 -3
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,
@@ -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);
@@ -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.0";
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
@@ -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.0';\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAIO,MAAM,cAAc;","names":[]}
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":[]}
@@ -1,4 +1,4 @@
1
1
  /** This SDK's package version, baked from package.json at build (SP2-6). */
2
- declare const SDK_VERSION = "0.68.0";
2
+ declare const SDK_VERSION = "0.68.2";
3
3
 
4
4
  export { SDK_VERSION };
package/dist/version.d.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  /** This SDK's package version, baked from package.json at build (SP2-6). */
2
- declare const SDK_VERSION = "0.68.0";
2
+ declare const SDK_VERSION = "0.68.2";
3
3
 
4
4
  export { SDK_VERSION };
package/dist/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import "./chunk-VHAA22YE.js";
2
- const SDK_VERSION = "0.68.0";
2
+ const SDK_VERSION = "0.68.2";
3
3
  export {
4
4
  SDK_VERSION
5
5
  };
@@ -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.0';\n"],"mappings":";AAIO,MAAM,cAAc;","names":[]}
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.0",
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": {