Skip to content

Commit 9a7e202

Browse files
chore(sim-core): port surviving fork/main-only tweaks
Audited fork/main (11273e1..91e2f46) vs modernization; cherry-picks conflict wholesale, so applied equivalents manually. Ported (by original fork/main commit intent): - 91e2f46, 7fb8761: ignore tsconfig.tsbuildinfo and .vercel under apps/sim-core - f9b4b7b: Help menu link to GitHub issue chooser + rel on docs link - 6eb3fdb: preview:core script (yarn ws:core start / vite preview) - 2e69841: engine-web and utils fmt use && and explicit --write/--check (cross-shell) - 110c4a3: Mapbox spelling in GeospatialMap placeholder copy Dismissed as superseded or incompatible with modernization: - b149727 OSS hCore import, 9bbae6c project creation, b3f9e0f/5e78ed0 auto-types/GraphQL paths (removed on modernization) - f2be7a2 Python libs under libs/ (out of sim-core scope; tree differs) - e7469eb Renovate (.github/ out of sim-core policy) - 09d1f25/f62782f Husky (no matching .config/husky prepare on current root) - 517f444 through 154ee9b Vite/webpack/eslint/tsconfig bulk (reimplemented on modernization) - 526ef58 Promise.resolve webworker shim (no matching pattern in tree) - 8da4a2e vercel.json (file absent on modernization branch) - 8688927 vite-env.d.ts (present elsewhere if needed) Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent a74cf78 commit 9a7e202

6 files changed

Lines changed: 25 additions & 9 deletions

File tree

apps/sim-core/.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ yarn-error.log
2626
.eslintcache
2727
packages/hashai/.eslintcache
2828

29+
# TypeScript incremental build info
30+
tsconfig.tsbuildinfo
31+
32+
# Vercel CLI local project link
33+
.vercel
34+
2935
# Dev console log (written by consoleToDisk Vite plugin)
3036
console.log
3137

apps/sim-core/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"fmt-check:core": "yarn ws:core fmt-check",
4141
"preserve:core": "yarn build:engine-web",
4242
"serve:core": "yarn ws:core serve",
43+
"preview:core": "yarn ws:core start",
4344
"start:core": "yarn ws:core start",
4445
"test:core": "yarn ws:core test",
4546
"g": "yarn ws:core g",

apps/sim-core/packages/core/src/components/GeospatialMap/GeospatialMap.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,18 @@ function hasLngLatNotHidden(agent: AgentState): agent is AgentStateLngLat {
5959

6060
const debounced = debounce((fn) => fn(), 100);
6161

62-
// If there's no MapBox API key, we'll crash instantiating the MapComponent.
62+
// If there's no Mapbox API key, we'll crash instantiating the MapComponent.
6363
// So instead return a placeholder GeospatialMap with user instructions.
6464
const GeospatialMapPlaceholder: FC<GeospatialMapProps> = () => (
6565
<div style={{ margin: "1em" }}>
66-
<h3>MapBox requires an API token.</h3>
66+
<h3>Mapbox requires an API token.</h3>
6767
<p>
6868
Please add <code>MAPBOX_API_TOKEN=your-token</code> to the{" "}
69-
<code>.env</code> file if you wish to enable MapBox.
69+
<code>.env</code> file if you wish to enable Mapbox.
7070
</p>
7171
<p>You can create the .env file if it doesn't exist.</p>
7272
<p>
73-
MapBox API access tokens can be found at{" "}
73+
Mapbox API access tokens can be found at{" "}
7474
<a target="_blank" href="https://account.mapbox.com/access-tokens/">
7575
https://account.mapbox.com/access-tokens/
7676
</a>

apps/sim-core/packages/core/src/components/HashCore/Header/Menu/Help/HashCoreHeaderMenuHelp.tsx

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,19 @@ export const HashCoreHeaderMenuHelp: FC<HashCoreHeaderMenuHelpProps> = memo(
3434
/>
3535
<ul className="HashCoreHeaderMenu-submenu">
3636
<li className="HashCoreHeaderMenu-submenu-item">
37-
<a href="https://docs.hash.ai/core/" target="_blank">
37+
<a href="https://docs.hash.ai/core/" target="_blank" rel="noopener noreferrer">
3838
Docs
3939
</a>
4040
</li>
41+
<li className="HashCoreHeaderMenu-submenu-item">
42+
<a
43+
href="https://github.com/hashintel/labs/issues/new/choose"
44+
target="_blank"
45+
rel="noopener noreferrer"
46+
>
47+
Report an issue
48+
</a>
49+
</li>
4150
{/* {canUseAccount ? (
4251
<li className="HashCoreHeaderMenu-submenu-item">
4352
<a href={ACCOUNT_URL} target="_blank">

apps/sim-core/packages/engine-web/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010
"build": "npx tsc",
1111
"prebuild:node": "wasm-pack build --target nodejs --out-dir wasm/node --out-name hash",
1212
"build:node": "tsc --module commonjs --outdir dist-node",
13-
"fmt": "prettier \"*.{ts,js,json}\" \"{scripts,src}/**/*.{ts,js,json}\" --write; eslint --quiet --fix \"*.{ts,js,json}\" \"{scripts,src}/**/*.{ts,js,json}\"",
14-
"fmt-check": "prettier \"*.{ts,js,json}\" \"{scripts,src}/**/*.{ts,js,json}\" --check || exit 1; eslint --quiet \"*.{ts,js,json}\" \"{scripts,src}/**/*.{ts,js,json}\"",
13+
"fmt": "prettier --write \"*.{ts,js,json}\" \"{scripts,src}/**/*.{ts,js,json}\" && eslint --quiet --fix \"*.{ts,js,json}\" \"{scripts,src}/**/*.{ts,js,json}\"",
14+
"fmt-check": "prettier --check \"*.{ts,js,json}\" \"{scripts,src}/**/*.{ts,js,json}\" && eslint --quiet \"*.{ts,js,json}\" \"{scripts,src}/**/*.{ts,js,json}\"",
1515
"pretest": "yarn prebuild:node",
1616
"test": "jest",
1717
"prepare": "npx npm-run-all clean build build:node",

apps/sim-core/packages/utils/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"postinstall": "tsc -b .",
99
"build": "tsc -b .",
1010
"build:watch": "tsc -b . -w",
11-
"fmt": "prettier \"*.{ts,js,json}\" \"{scripts,src}/**/*.{ts,js,json}\" --write; eslint --quiet --fix \"*.{ts,js,json}\" \"{scripts,src}/**/*.{ts,js,json}\"",
12-
"fmt-check": "prettier \"*.{ts,js,json}\" \"{scripts,src}/**/*.{ts,js,json}\" --check || exit 1; eslint --quiet \"*.{ts,js,json}\" \"{scripts,src}/**/*.{ts,js,json}\""
11+
"fmt": "prettier --write \"*.{ts,js,json}\" \"{scripts,src}/**/*.{ts,js,json}\" && eslint --quiet --fix \"*.{ts,js,json}\" \"{scripts,src}/**/*.{ts,js,json}\"",
12+
"fmt-check": "prettier --check \"*.{ts,js,json}\" \"{scripts,src}/**/*.{ts,js,json}\" && eslint --quiet \"*.{ts,js,json}\" \"{scripts,src}/**/*.{ts,js,json}\""
1313
},
1414
"license": "SSPL-1.0",
1515
"devDependencies": {

0 commit comments

Comments
 (0)