diff --git a/apps/editor/app/globals.css b/apps/editor/app/globals.css index e8f38d8ff3..61f2d36f64 100644 --- a/apps/editor/app/globals.css +++ b/apps/editor/app/globals.css @@ -5,6 +5,7 @@ @source "../../../packages/nodes/src"; @source "../../../node_modules/@pascal-app/plugin-trees/src"; @source "../../../node_modules/@mint/pascal-plugin/src"; +@source "../../../node_modules/@pascal-app/plugin-streetscape/src"; @custom-variant dark (&:is(.dark *)); diff --git a/apps/editor/lib/bootstrap.ts b/apps/editor/lib/bootstrap.ts index 93edd78030..873baf2225 100644 --- a/apps/editor/lib/bootstrap.ts +++ b/apps/editor/lib/bootstrap.ts @@ -9,6 +9,7 @@ import { } from '@pascal-app/core' import { registerEditorHostPanel } from '@pascal-app/editor' import { builtinPlugin } from '@pascal-app/nodes' +import { streetscapeHostPanel, streetscapePlugin } from '@pascal-app/plugin-streetscape' import { treesHostPanel, treesPlugin } from '@pascal-app/plugin-trees' // Idempotency guards: HMR can reload this module, but `registerNode` @@ -88,6 +89,12 @@ extendPluginDiscovery(async () => [treesPlugin]) registerEditorHostPanel(treesHostPanel) extendPluginDiscovery(async () => [mintPlugin]) registerEditorHostPanel(mintHostPanel) +extendPluginDiscovery(async () => [streetscapePlugin]) +// The upstream manifest still names 'Pascal' as creator; credit the author. +registerEditorHostPanel({ + ...streetscapeHostPanel, + creator: { name: 'Sudhir Yadav', url: 'https://github.com/sudhir9297' }, +}) loadBuiltinsSync() void loadExternalPlugins() diff --git a/apps/editor/next.config.ts b/apps/editor/next.config.ts index a5c08f5ed7..03bc75810a 100644 --- a/apps/editor/next.config.ts +++ b/apps/editor/next.config.ts @@ -32,6 +32,7 @@ const nextConfig: NextConfig = { '@pascal-app/core', '@pascal-app/editor', '@pascal-app/mcp', + '@pascal-app/plugin-streetscape', '@pascal-app/plugin-trees', '@mint/pascal-plugin', '@dgreenheck/ez-tree', diff --git a/apps/editor/package.json b/apps/editor/package.json index ba2da86503..cfaaf03992 100644 --- a/apps/editor/package.json +++ b/apps/editor/package.json @@ -19,6 +19,7 @@ "@pascal-app/editor": "*", "@pascal-app/mcp": "*", "@pascal-app/nodes": "*", + "@pascal-app/plugin-streetscape": "github:sudhir9297/streetscape-pascal-plugin#1c04ec9ccb3fa8124ec56dfc1026567cbbc51aef", "@pascal-app/plugin-trees": "github:pascalorg/plugin-trees#56d978cd9b409b716207b3f3d269455d3cd6f067", "@pascal-app/viewer": "*", "@radix-ui/react-tooltip": "^1.2.8", diff --git a/bun.lock b/bun.lock index f32d84c143..01c7d2d54b 100644 --- a/bun.lock +++ b/bun.lock @@ -34,6 +34,7 @@ "@pascal-app/editor": "*", "@pascal-app/mcp": "*", "@pascal-app/nodes": "*", + "@pascal-app/plugin-streetscape": "github:sudhir9297/streetscape-pascal-plugin#1c04ec9ccb3fa8124ec56dfc1026567cbbc51aef", "@pascal-app/plugin-trees": "github:pascalorg/plugin-trees#56d978cd9b409b716207b3f3d269455d3cd6f067", "@pascal-app/viewer": "*", "@radix-ui/react-tooltip": "^1.2.8", @@ -99,7 +100,7 @@ }, "packages/cli": { "name": "@pascal-app/cli", - "version": "0.1.4", + "version": "0.1.5", "bin": { "pascal": "dist/bin/pascal.js", }, @@ -233,7 +234,7 @@ }, "packages/mcp": { "name": "@pascal-app/mcp", - "version": "1.0.0-beta.4", + "version": "1.0.0-beta.5", "bin": { "pascal-mcp": "./dist/bin/pascal-mcp.js", }, @@ -723,6 +724,8 @@ "@pascal-app/nodes": ["@pascal-app/nodes@workspace:packages/nodes"], + "@pascal-app/plugin-streetscape": ["@pascal-app/plugin-streetscape@github:sudhir9297/streetscape-pascal-plugin#1c04ec9", { "peerDependencies": { "@pascal-app/core": ">=0.9.1 <1", "@pascal-app/editor": ">=0.9.1 <1", "@pascal-app/viewer": ">=0.9.1 <1", "@react-three/fiber": "^9", "react": "^18 || ^19", "three": "^0.185", "zod": "^4", "zustand": "^5" } }, "sudhir9297-streetscape-pascal-plugin-1c04ec9", "sha512-X7Zg7wi0ghZRcTtbH5LF6xye493uSZ2ft3AmAQBtguBCU6VCwCexA7pdKDr5AnVxX/JRj2s6JSd/OX4aIZ9Y6Q=="], + "@pascal-app/plugin-trees": ["@pascal-app/plugin-trees@github:pascalorg/plugin-trees#56d978c", { "dependencies": { "@dgreenheck/ez-tree": "^1.1.0" }, "peerDependencies": { "@pascal-app/core": ">=0.9.1 <1", "@pascal-app/editor": ">=0.9.1 <1", "@pascal-app/viewer": ">=0.9.1 <1", "@react-three/fiber": "^9", "react": "^18 || ^19", "three": "^0.185", "zod": "^4", "zustand": "^5" } }, "pascalorg-plugin-trees-56d978c", "sha512-16VzWot1oadvxCPqsRwMJbaP0a3u5FESFy7F7++pY5wAAFq9JTFwzHvKAsllrY5TZ5TJ7Y5vSqvbmQk8sy8HaA=="], "@pascal-app/viewer": ["@pascal-app/viewer@workspace:packages/viewer"],