Skip to content

Commit f080b87

Browse files
committed
under construction
1 parent 1329cc6 commit f080b87

87 files changed

Lines changed: 17709 additions & 75 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/v1-release.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
"api": major
3+
"ui": major
4+
"everything-dev": major
5+
"every-plugin": major
6+
"@every-plugin/template": major
7+
---
8+
9+
Release v1.0.0 of the everything-dev toolchain.
10+
11+
- Promote api, ui, everything-dev, and every-plugin to stable 1.0.0
12+
- Promote the plugin template package to stable 1.0.0

bos.config.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"account": "dev.everything.near",
33
"domain": "everything.dev",
4+
"repository": "https://github.com/nearbuilders/everything-dev",
45
"plugins": {
56
"template": {
67
"development": "local:plugins/_template"

bun.lock

Lines changed: 165 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

host/src/program.ts

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ function getRuntimeOverride(pathname: string) {
5959
}
6060

6161
function getFallbackGatewayId(config: RuntimeConfig) {
62+
if (config.domain) {
63+
return config.domain;
64+
}
65+
6266
if (process.env.GATEWAY_DOMAIN) {
6367
return process.env.GATEWAY_DOMAIN;
6468
}
@@ -100,14 +104,28 @@ async function resolveActiveRuntime(config: RuntimeConfig, request: Request) {
100104
} satisfies ActiveRuntimeState;
101105
}
102106

107+
const fallbackGatewayId = getFallbackGatewayId(config);
108+
const fallbackRuntime = await getRegistryApp(config.account, fallbackGatewayId).catch(() => null);
109+
if (fallbackRuntime) {
110+
return {
111+
accountId: fallbackRuntime.accountId,
112+
gatewayId: fallbackRuntime.gatewayId,
113+
runtimeBasePath: "/",
114+
canonicalConfigUrl: fallbackRuntime.canonicalConfigUrl,
115+
resolvedConfig: fallbackRuntime.resolvedConfig,
116+
title: fallbackRuntime.metadata?.title ?? fallbackRuntime.gatewayId,
117+
hostUrl: fallbackRuntime.hostUrl,
118+
} satisfies ActiveRuntimeState;
119+
}
120+
103121
return {
104122
accountId: config.account,
105-
gatewayId: getFallbackGatewayId(config),
123+
gatewayId: fallbackGatewayId,
106124
runtimeBasePath: "/",
107125
canonicalConfigUrl: null,
108126
resolvedConfig: null,
109127
title: config.account,
110-
hostUrl: config.hostUrl,
128+
hostUrl: url.origin,
111129
} satisfies ActiveRuntimeState;
112130
}
113131

@@ -131,6 +149,7 @@ function buildRuntimeClientConfig(
131149
assetsUrl: uiConfig.url,
132150
apiBase: "/api",
133151
rpcBase: "/api/rpc",
152+
repository: config.repository,
134153
ui: {
135154
name: uiConfig.name,
136155
url: uiConfig.url,

packages/cli/.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Database files
2+
*.db
3+
4+
# Session reports and dev session artifacts
5+
dev-session-report.json
6+
session-report.json
7+
session-login-report.json

packages/cli/package.json

Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
{
2+
"name": "everything-dev",
3+
"version": "0.3.3",
4+
"type": "module",
5+
"main": "src/index.ts",
6+
"exports": {
7+
".": "./src/index.ts",
8+
"./types": "./src/types.ts",
9+
"./config": "./src/config.ts",
10+
"./ui": "./src/ui/index.ts",
11+
"./ui/types": "./src/ui/types.ts",
12+
"./ui/runtime": "./src/ui/runtime.ts",
13+
"./ui/head": "./src/ui/head.ts",
14+
"./ui/router": "./src/ui/router.ts"
15+
},
16+
"files": [
17+
"src"
18+
],
19+
"publishConfig": {
20+
"access": "public"
21+
},
22+
"bin": {
23+
"bos": "./src/cli.ts"
24+
},
25+
"scripts": {
26+
"bos": "bun run src/cli.ts",
27+
"test": "vitest run",
28+
"test:watch": "vitest",
29+
"typecheck": "tsc --noEmit"
30+
},
31+
"dependencies": {
32+
"@clack/prompts": "^1.0.0",
33+
"@effect/platform": "^0.94.2",
34+
"@hono/node-server": "^1.19.9",
35+
"@inquirer/prompts": "^8.2.0",
36+
"@libsql/client": "^0.17.0",
37+
"@module-federation/enhanced": "^0.24.1",
38+
"@module-federation/node": "^2.7.32",
39+
"@module-federation/runtime-core": "^0.24.1",
40+
"borsh": "^2.0.0",
41+
"boxen": "^8.0.1",
42+
"chalk": "^5.6.2",
43+
"commander": "^14.0.2",
44+
"degit": "^2.8.4",
45+
"effect": "3.19.15",
46+
"every-plugin": "0.9.0",
47+
"execa": "^9.6.1",
48+
"gradient-string": "^3.0.0",
49+
"ink": "^5.2.1",
50+
"near-kit": "^0.10.0",
51+
"near-social-js": "^2.0.4",
52+
"nova-sdk-js": "^1.0.3",
53+
"open": "^11.0.0",
54+
"react": "18.3.1",
55+
"react-dom": "18.3.1",
56+
"zod": "4.3.5"
57+
},
58+
"devDependencies": {
59+
"@tanstack/react-query": "^5.0.0",
60+
"@tanstack/react-router": "^1.0.0",
61+
"@types/bun": "^1.3.8",
62+
"@types/gradient-string": "^1.1.6",
63+
"@types/node": "^25.2.0",
64+
"@types/react": "^18.3.0",
65+
"@types/react-dom": "^18.3.0",
66+
"playwright": "^1.58.1",
67+
"typescript": "^5.9.3",
68+
"vitest": "^4.0.18"
69+
},
70+
"peerDependencies": {
71+
"@tanstack/react-query": ">=5.0.0",
72+
"@tanstack/react-router": ">=1.0.0"
73+
},
74+
"peerDependenciesMeta": {
75+
"@tanstack/react-query": {
76+
"optional": true
77+
},
78+
"@tanstack/react-router": {
79+
"optional": true
80+
}
81+
}
82+
}

0 commit comments

Comments
 (0)