mercuria 0.3.0 → 0.3.1
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.
- package/README.md +2 -48
- package/bin/mercuria.js +2 -7
- package/index.js +1 -0
- package/package.json +6 -44
- package/app/app.js +0 -915
- package/app/data/world.json +0 -118288
- package/app/favicon.svg +0 -5
- package/app/index.html +0 -144
- package/app/styles.css +0 -596
- package/netlify.toml +0 -16
- package/scripts/build-nhfn-range.mjs +0 -11
- package/src/cli.mjs +0 -73
- package/src/harness.mjs +0 -345
- package/src/index.mjs +0 -10
- package/src/shared/commands.mjs +0 -247
- package/src/shared/oauth-store.mjs +0 -78
- package/src/shared/openai-auth.mjs +0 -250
- package/src/shared/world.mjs +0 -450
package/README.md
CHANGED
|
@@ -1,49 +1,3 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Blank Package
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
## What ships
|
|
6
|
-
|
|
7
|
-
- `mercuria build` compacts an NHFN-style range into a smaller world file for the static app.
|
|
8
|
-
- `mercuria harness` serves the app and exposes a local API and event stream from one VPS-friendly process.
|
|
9
|
-
- the harness includes a manual-paste OpenAI OAuth flow for staff login on a headless VPS
|
|
10
|
-
- `app/` is the static Netlify shell.
|
|
11
|
-
- `src/harness.mjs` is the embeddable runtime surface exported by the package.
|
|
12
|
-
|
|
13
|
-
## Quickstart
|
|
14
|
-
|
|
15
|
-
```bash
|
|
16
|
-
npm install -g mercuria
|
|
17
|
-
mercuria harness --world ./app/data/world.json --site-dir ./app --port 4177
|
|
18
|
-
```
|
|
19
|
-
|
|
20
|
-
## Build a world file
|
|
21
|
-
|
|
22
|
-
```bash
|
|
23
|
-
mercuria build \
|
|
24
|
-
--source /root/first-nations-dashboard-netlify/web/data/compiled/dashboard_dataset.json \
|
|
25
|
-
--out ./app/data/world.json
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## Commands
|
|
29
|
-
|
|
30
|
-
- `mercuria build`
|
|
31
|
-
- `mercuria harness`
|
|
32
|
-
- `mercuria serve`
|
|
33
|
-
- `mercuria command "show food gaps"`
|
|
34
|
-
- `npm run verify:live`
|
|
35
|
-
- `npm run capture:live`
|
|
36
|
-
|
|
37
|
-
## Staff login
|
|
38
|
-
|
|
39
|
-
Mercuria follows the VPS-safe manual paste flow:
|
|
40
|
-
|
|
41
|
-
1. Click `Begin OpenAI sign-in`.
|
|
42
|
-
2. Sign in with OpenAI in the browser.
|
|
43
|
-
3. Copy the full redirect URL.
|
|
44
|
-
4. Paste it back into the Mercuria staff panel.
|
|
45
|
-
5. Complete the exchange on the harness.
|
|
46
|
-
|
|
47
|
-
## Deploy
|
|
48
|
-
|
|
49
|
-
The repository is set up as a static Netlify site with `app/` as the publish directory.
|
|
3
|
+
This package was intentionally reset to a blank placeholder.
|
package/bin/mercuria.js
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
main(process.argv.slice(2)).catch((error) => {
|
|
6
|
-
console.error(error?.stack || String(error));
|
|
7
|
-
process.exitCode = 1;
|
|
8
|
-
});
|
|
2
|
+
console.error('This package has been intentionally blanked.');
|
|
3
|
+
process.exit(1);
|
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default null;
|
package/package.json
CHANGED
|
@@ -1,54 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mercuria",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.3.1",
|
|
4
|
+
"description": "Intentionally blanked package placeholder.",
|
|
5
|
+
"license": "UNLICENSED",
|
|
5
6
|
"type": "module",
|
|
6
7
|
"bin": {
|
|
7
8
|
"mercuria": "./bin/mercuria.js"
|
|
8
9
|
},
|
|
9
|
-
"exports": {
|
|
10
|
-
".": "./src/index.mjs",
|
|
11
|
-
"./harness": "./src/harness.mjs",
|
|
12
|
-
"./package.json": "./package.json"
|
|
13
|
-
},
|
|
14
10
|
"files": [
|
|
15
|
-
"app",
|
|
16
11
|
"bin",
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"README.md",
|
|
20
|
-
"netlify.toml"
|
|
21
|
-
],
|
|
22
|
-
"scripts": {
|
|
23
|
-
"build:range": "node ./bin/mercuria.js build --source /root/first-nations-dashboard-netlify/web/data/compiled/dashboard_dataset.json --out ./app/data/world.json",
|
|
24
|
-
"harness": "node ./bin/mercuria.js harness",
|
|
25
|
-
"serve": "node ./bin/mercuria.js harness",
|
|
26
|
-
"verify:local": "node ./tests/verify-site.mjs http://127.0.0.1:4177",
|
|
27
|
-
"verify:live": "node ./tests/verify-site.mjs https://nfndashboard.netlify.app",
|
|
28
|
-
"capture:live": "node ./tests/capture-matrix.mjs https://nfndashboard.netlify.app"
|
|
29
|
-
},
|
|
30
|
-
"keywords": [
|
|
31
|
-
"cli",
|
|
32
|
-
"dashboard",
|
|
33
|
-
"graph",
|
|
34
|
-
"harness",
|
|
35
|
-
"intelligence",
|
|
36
|
-
"mercuria"
|
|
12
|
+
"index.js",
|
|
13
|
+
"README.md"
|
|
37
14
|
],
|
|
38
|
-
"
|
|
39
|
-
"type": "git",
|
|
40
|
-
"url": "git+https://github.com/lmtlssss/mercuria.git"
|
|
41
|
-
},
|
|
42
|
-
"bugs": {
|
|
43
|
-
"url": "https://github.com/lmtlssss/mercuria/issues"
|
|
44
|
-
},
|
|
45
|
-
"homepage": "https://github.com/lmtlssss/mercuria#readme",
|
|
46
|
-
"author": "lmtlssss",
|
|
47
|
-
"license": "MIT",
|
|
48
|
-
"engines": {
|
|
49
|
-
"node": ">=20"
|
|
50
|
-
},
|
|
51
|
-
"devDependencies": {
|
|
52
|
-
"playwright": "^1.58.2"
|
|
53
|
-
}
|
|
15
|
+
"keywords": []
|
|
54
16
|
}
|