Initial import: open-design source for helix-mind.ai distribution
Some checks failed
ci / Validate workspace (push) Successful in 12m32s
landing-page-ci / Validate landing page (push) Successful in 9m41s
landing-page-deploy / Deploy landing page (push) Failing after 5m23s
github-metrics / Generate repository metrics SVG (push) Failing after 2m6s
refresh-contributors-wall / Refresh contributors wall cache bust (push) Failing after 12s
Some checks failed
ci / Validate workspace (push) Successful in 12m32s
landing-page-ci / Validate landing page (push) Successful in 9m41s
landing-page-deploy / Deploy landing page (push) Failing after 5m23s
github-metrics / Generate repository metrics SVG (push) Failing after 2m6s
refresh-contributors-wall / Refresh contributors wall cache bust (push) Failing after 12s
This repository contains the open-design daemon CLI source code, built and packaged at https://helix-mind.ai/cli/open-design/latest.tgz for use by the HelixMind /design slash command. Licenses: Apache-2.0 (root) + MIT (skills/*)
This commit is contained in:
24
apps/web/sidecar/index.ts
Normal file
24
apps/web/sidecar/index.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import { APP_KEYS, OPEN_DESIGN_SIDECAR_CONTRACT } from "@open-design/sidecar-proto";
|
||||
import { bootstrapSidecarRuntime } from "@open-design/sidecar";
|
||||
import { readProcessStamp } from "@open-design/platform";
|
||||
|
||||
import { startWebSidecar } from "./server.js";
|
||||
|
||||
async function main(): Promise<void> {
|
||||
const stamp = readProcessStamp(process.argv.slice(2), OPEN_DESIGN_SIDECAR_CONTRACT);
|
||||
if (stamp == null) throw new Error("sidecar stamp is required");
|
||||
|
||||
const runtime = bootstrapSidecarRuntime(stamp, process.env, {
|
||||
app: APP_KEYS.WEB,
|
||||
contract: OPEN_DESIGN_SIDECAR_CONTRACT,
|
||||
});
|
||||
const server = await startWebSidecar(runtime);
|
||||
|
||||
process.stdout.write(`${JSON.stringify(await server.status(), null, 2)}\n`);
|
||||
await server.waitUntilStopped();
|
||||
}
|
||||
|
||||
void main().catch((error: unknown) => {
|
||||
console.error(error instanceof Error ? error.stack || error.message : String(error));
|
||||
process.exit(1);
|
||||
});
|
||||
Reference in New Issue
Block a user