narraeon 0.1.0
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/LICENSE +201 -0
- package/README.md +164 -0
- package/README.zh-CN.md +164 -0
- package/dist/node/cli/NarraeonCli.js +163 -0
- package/dist/node/cli/main.js +38 -0
- package/dist/node/protocol/appPreferences.js +5 -0
- package/dist/node/protocol/contentTree.js +14 -0
- package/dist/node/protocol/modelConnections.js +110 -0
- package/dist/node/protocol/playerViews.js +1 -0
- package/dist/node/protocol/v1.js +278 -0
- package/dist/node/runtime/V1Runtime.js +625 -0
- package/dist/node/runtime/artifact/FileNativeArtifactStore.js +1914 -0
- package/dist/node/runtime/config/AppPreferencesStore.js +92 -0
- package/dist/node/runtime/config/appPaths.js +19 -0
- package/dist/node/runtime/content/ContentLimits.js +1 -0
- package/dist/node/runtime/content/ContentTreeFile.js +1 -0
- package/dist/node/runtime/content/ContentWorkspace.js +601 -0
- package/dist/node/runtime/content/CurrentTreeContentLibrary.js +721 -0
- package/dist/node/runtime/content/FileNativeContentTree.js +512 -0
- package/dist/node/runtime/extension/FrontendExtensionBundle.js +229 -0
- package/dist/node/runtime/extension/PlayerViewPanelProjector.js +121 -0
- package/dist/node/runtime/model/AiFailureLog.js +332 -0
- package/dist/node/runtime/model/FileNativeModelAdapters.js +1246 -0
- package/dist/node/runtime/model/ModelConnectionStore.js +378 -0
- package/dist/node/runtime/model/ModelHost.js +89 -0
- package/dist/node/runtime/model/ModelHostStream.js +367 -0
- package/dist/node/runtime/model/ProviderExchangeState.js +1 -0
- package/dist/node/runtime/model/ProviderStream.js +90 -0
- package/dist/node/runtime/model/SettingAuthorStream.js +118 -0
- package/dist/node/runtime/play/FileNativeContinuityCorrection.js +304 -0
- package/dist/node/runtime/play/FileNativePlayPresetStore.js +1856 -0
- package/dist/node/runtime/play/PlayCallChain.js +1280 -0
- package/dist/node/runtime/play/PlayDocumentTools.js +1121 -0
- package/dist/node/runtime/play/PlayFollowupRequests.js +183 -0
- package/dist/node/runtime/play/PlayPresetWorkbench.js +185 -0
- package/dist/node/runtime/prompt/FileNativePromptCompiler.js +1425 -0
- package/dist/node/runtime/prompt/FileNativeToolRegistry.js +192 -0
- package/dist/node/runtime/prompt/MaterialSelection.js +95 -0
- package/dist/node/runtime/setting/DocumentCandidateSettingImprovement.js +1726 -0
- package/dist/node/runtime/world/FileNativeWorldStore.js +2028 -0
- package/dist/node/runtime/world/PlayerViewRenderer.js +322 -0
- package/dist/node/runtime/world/WorldDocumentStore.js +2808 -0
- package/dist/node/runtime/world/WorldOperationCoordinator.js +490 -0
- package/dist/node/runtime/world/WorldStateRevision.js +75 -0
- package/dist/node/server/createRuntime.js +6 -0
- package/dist/node/server/createServer.js +218 -0
- package/dist/node/server/main.js +25 -0
- package/dist/node/server/startWebServer.js +28 -0
- package/dist/node/shared/default-play-prompts.js +85 -0
- package/dist/node/shared/default-preset-host.js +538 -0
- package/dist/node/shared/default-setting-improvement-prompt.js +77 -0
- package/dist/node/shared/first-party-action-choices.js +164 -0
- package/dist/node/shared/first-party-generic-panels.js +105 -0
- package/dist/node/shared/first-party-play-preset-templates.js +41 -0
- package/dist/node/shared/first-party-player-view.js +179 -0
- package/dist/node/shared/play-preset-prompt-roles.js +4 -0
- package/dist/web/assets/index-CRGTZ9Ak.css +1 -0
- package/dist/web/assets/index-DDx1itzT.js +1192 -0
- package/dist/web/index.html +14 -0
- package/package.json +86 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<!doctype html>
|
|
2
|
+
<html lang="zh-CN">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
|
+
<meta name="color-scheme" content="dark" />
|
|
7
|
+
<title>Narraeon</title>
|
|
8
|
+
<script type="module" crossorigin src="/assets/index-DDx1itzT.js"></script>
|
|
9
|
+
<link rel="stylesheet" crossorigin href="/assets/index-CRGTZ9Ak.css">
|
|
10
|
+
</head>
|
|
11
|
+
<body>
|
|
12
|
+
<div id="root"></div>
|
|
13
|
+
</body>
|
|
14
|
+
</html>
|
package/package.json
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "narraeon",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A local-first workspace for living worlds.",
|
|
5
|
+
"license": "Apache-2.0",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"exports": {},
|
|
8
|
+
"bin": {
|
|
9
|
+
"narraeon": "dist/node/cli/main.js"
|
|
10
|
+
},
|
|
11
|
+
"files": [
|
|
12
|
+
"dist"
|
|
13
|
+
],
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/narraeon/narraeon.git"
|
|
17
|
+
},
|
|
18
|
+
"homepage": "https://github.com/narraeon/narraeon#readme",
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/narraeon/narraeon/issues"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"ai",
|
|
24
|
+
"rpg",
|
|
25
|
+
"local-first",
|
|
26
|
+
"storytelling"
|
|
27
|
+
],
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public",
|
|
30
|
+
"registry": "https://registry.npmjs.org/"
|
|
31
|
+
},
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=24.12.0"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"build": "npm run clean && npm run build:web && npm run build:node",
|
|
37
|
+
"build:node": "tsc -p tsconfig.build.json",
|
|
38
|
+
"build:web": "vite build",
|
|
39
|
+
"check": "npm run typecheck && npm run lint && npm run format:check",
|
|
40
|
+
"clean": "node scripts/clean-dist.mjs",
|
|
41
|
+
"format": "prettier --write \"src/**/*.{ts,tsx,css}\" \"tests/**/*.ts\" \"scripts/**/*.mjs\" \".github/**/*.{yml,yaml}\" \"*.{js,json,ts,html}\"",
|
|
42
|
+
"format:check": "prettier --check \"src/**/*.{ts,tsx,css}\" \"tests/**/*.ts\" \"scripts/**/*.mjs\" \".github/**/*.{yml,yaml}\" \"*.{js,json,ts,html}\"",
|
|
43
|
+
"lint": "eslint .",
|
|
44
|
+
"prepack": "npm run build",
|
|
45
|
+
"start": "node src/server/main.ts",
|
|
46
|
+
"test": "npm run test:unit && npm run test:release && npm run test:e2e",
|
|
47
|
+
"test:e2e": "npm run build && playwright test",
|
|
48
|
+
"test:package": "node scripts/smoke-package.mjs",
|
|
49
|
+
"test:release": "node --test scripts/check-release.test.mjs",
|
|
50
|
+
"test:unit": "vitest run",
|
|
51
|
+
"typecheck": "npm run typecheck:node && npm run typecheck:web && npm run typecheck:e2e",
|
|
52
|
+
"typecheck:e2e": "tsc -p tsconfig.e2e.json",
|
|
53
|
+
"typecheck:node": "tsc -p tsconfig.node.json",
|
|
54
|
+
"typecheck:web": "tsc -p tsconfig.web.json"
|
|
55
|
+
},
|
|
56
|
+
"dependencies": {
|
|
57
|
+
"@fastify/static": "^10.1.3",
|
|
58
|
+
"ajv": "^8.20.0",
|
|
59
|
+
"env-paths": "^4.0.0",
|
|
60
|
+
"fastify": "^5.11.3",
|
|
61
|
+
"open": "^11.0.1",
|
|
62
|
+
"yaml": "^2.8.1"
|
|
63
|
+
},
|
|
64
|
+
"devDependencies": {
|
|
65
|
+
"@eslint/js": "^10.0.1",
|
|
66
|
+
"@playwright/test": "^1.62.1",
|
|
67
|
+
"@testing-library/react": "^16.3.2",
|
|
68
|
+
"@types/node": "^24.13.3",
|
|
69
|
+
"@types/react": "^19.2.18",
|
|
70
|
+
"@types/react-dom": "^19.2.4",
|
|
71
|
+
"@vitejs/plugin-react": "^6.0.5",
|
|
72
|
+
"eslint": "^10.8.1",
|
|
73
|
+
"eslint-plugin-react-hooks": "^7.1.1",
|
|
74
|
+
"eslint-plugin-react-refresh": "^0.5.3",
|
|
75
|
+
"globals": "^17.9.0",
|
|
76
|
+
"jsdom": "^30.0.1",
|
|
77
|
+
"json-schema-to-ts": "^3.1.1",
|
|
78
|
+
"prettier": "^3.9.6",
|
|
79
|
+
"react": "^19.2.8",
|
|
80
|
+
"react-dom": "^19.2.8",
|
|
81
|
+
"typescript": "^6.0.3",
|
|
82
|
+
"typescript-eslint": "^8.66.0",
|
|
83
|
+
"vite": "^8.2.1",
|
|
84
|
+
"vitest": "^4.1.10"
|
|
85
|
+
}
|
|
86
|
+
}
|