femo-plugin 1.0.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 +627 -0
- package/femo2host/__init__.py +4 -0
- package/femo2host/femoToolcall/chronica.py +156 -0
- package/femo2host/femoToolcall/femo-chat.mjs +69 -0
- package/femo2host/femoToolcall/femo_debugger.py +1515 -0
- package/femo2host/femo_api.py +437 -0
- package/femo2host/femo_gen_api.jsx +77 -0
- package/femoBridges/ContextExample.py +555 -0
- package/femoBridges/MemoryExample.py +163 -0
- package/femoBridges/__init__.py +1 -0
- package/femoBridges/getDir/get_dir.py +56 -0
- package/femoBridges/getDir//344/275/240/345/217/257/344/273/245/350/256/276/345/256/232/344/273/273/346/204/217/346/226/207/344/273/266/345/244/271/344/270/272/347/224/250/346/210/267/346/225/260/346/215/256/346/226/207/344/273/266/345/244/271.txt +10 -0
- package/femoBridges/llmBridge.py +247 -0
- package/femoBridges/llmProviders.py +308 -0
- package/femoCompiler/FEMO_CLIrenderer.py +198 -0
- package/femoCompiler/FEMO_config.py +35 -0
- package/femoCompiler/FEMO_errors.py +278 -0
- package/femoCompiler/FEMO_interpreter.py +163 -0
- package/femoCompiler/FEMO_normalizer.py +396 -0
- package/femoCompiler/FEMO_parser.py +2468 -0
- package/femoCompiler/FEMO_runtime.py +3630 -0
- package/femoCompiler/FEMO_scope_resolver.py +209 -0
- package/femoCompiler/__init__.py +1 -0
- package/femoCompiler/actor_resolver.py +86 -0
- package/femoCompiler/block_collector.py +441 -0
- package/femoCompiler/db_utils.py +485 -0
- package/femoCompiler/femoAsync.py +401 -0
- package/femoCompiler/host_manifest.py +68 -0
- package/femoCompiler/job_manager.py +767 -0
- package/femoCompiler/protocol.py +126 -0
- package/femoCompiler/save_dialog.py +402 -0
- package/femoCompiler/task_world.py +544 -0
- package/femoCompiler/vars/__init__.py +19 -0
- package/femoCompiler/vars/checkpoint.py +113 -0
- package/femoCompiler/vars/env.py +686 -0
- package/femoCompiler/vars/evaluator.py +567 -0
- package/femoCompiler/vars/join.py +303 -0
- package/femoCompiler/vars/merge.py +157 -0
- package/femoCompiler/vars/model.py +245 -0
- package/femoExamples/AI/345/211/252/350/247/206/351/242/221/AI/345/211/252/350/247/206/351/242/221.femo +192 -0
- package/femoExamples/AI/350/201/212/345/244/251/345/256/244/group-chat.femo +42 -0
- package/femoExamples/AI/350/201/212/345/244/251/345/256/244/random_wait_time.py +10 -0
- package/femoExamples/LuxFiat/luxfiat.femo +38 -0
- package/femoExamples/LuxFiat/wait.py +29 -0
- package/femoExamples/debug/347/245/236/345/231/250/debug/347/245/236/345/231/250.femo +222 -0
- package/femoExamples/discussion.femo +70 -0
- package/femoExamples/goal-mode.femo +23 -0
- package/femoExamples//345/270/270/347/224/250/345/267/245/345/205/267python/wait.py +29 -0
- package/femoExamples//347/213/274/344/272/272/346/235/200/werewolf_utils.py +205 -0
- package/femoExamples//347/213/274/344/272/272/346/235/200/werewolf_utils2.py +324 -0
- package/femoExamples//347/213/274/344/272/272/346/235/200//347/213/274/344/272/272/346/235/200-/350/255/246/351/225/277/347/211/210.femo +544 -0
- package/femoExamples//347/213/274/344/272/272/346/235/200//347/213/274/344/272/272/346/235/200.femo +331 -0
- package/femoExamples//350/260/201/346/230/257/345/215/247/345/272/225/undercover_utils.py +683 -0
- package/femoExamples//350/260/201/346/230/257/345/215/247/345/272/225//350/260/201/346/230/257/345/215/247/345/272/225-/350/217/234/345/270/202/345/234/272/345/261/200.femo +348 -0
- package/femoExamples//350/260/201/346/230/257/345/215/247/345/272/225//350/260/201/346/230/257/345/215/247/345/272/225.femo +392 -0
- package/femoGen/document_ch.html +2352 -0
- package/femoGen/document_en.html +2279 -0
- package/femoGen/index.html +19 -0
- package/femoGen/intro_ch.html +942 -0
- package/femoGen/intro_en.html +932 -0
- package/femoGen/package-lock.json +1698 -0
- package/femoGen/package.json +19 -0
- package/femoGen/public/character_need.ttf +0 -0
- package/femoGen/public/favicon.ico +0 -0
- package/femoGen/public/femo-logo-slogan.svg +83 -0
- package/femoGen/public/femo-logo.svg +55 -0
- package/femoGen/public/logo-fullsize.ico +0 -0
- package/femoGen/src/FemoWorAuto.jsx +5444 -0
- package/femoGen/src/actionModal.jsx +358 -0
- package/femoGen/src/bubbleOverlay.jsx +701 -0
- package/femoGen/src/canvasNodes.jsx +608 -0
- package/femoGen/src/common.jsx +715 -0
- package/femoGen/src/debugPanel.jsx +530 -0
- package/femoGen/src/faIcons.jsx +84 -0
- package/femoGen/src/femoDiagnostics.js +122 -0
- package/femoGen/src/femoFileList.jsx +357 -0
- package/femoGen/src/femoGenerator.jsx +1198 -0
- package/femoGen/src/femoLog.js +107 -0
- package/femoGen/src/femoParser.jsx +2255 -0
- package/femoGen/src/femoPreview.jsx +297 -0
- package/femoGen/src/graphBuilder.jsx +358 -0
- package/femoGen/src/libPanel.jsx +519 -0
- package/femoGen/src/main.jsx +22 -0
- package/femoGen/src/mobileView.jsx +2796 -0
- package/femoGen/src/projectPanel.jsx +529 -0
- package/femoGen/src/soulModal.jsx +162 -0
- package/femoGen/src/styles/font.css +10 -0
- package/femoGen/src/themes.js +465 -0
- package/femoGen/src/useCanvasInteraction.jsx +319 -0
- package/femoGen/vite.config.js +28 -0
- package/femoGen//347/222/207/345/255/230/346/247/221.txt +15 -0
- package/hostAdapter/dshAdapter/README.md +68 -0
- package/hostAdapter/dshAdapter/build.mjs +75 -0
- package/hostAdapter/dshAdapter/client/client-ui/chat-node.tsx +339 -0
- package/hostAdapter/dshAdapter/client/client-ui/composer.tsx +997 -0
- package/hostAdapter/dshAdapter/client/client-ui/editor-page.tsx +726 -0
- package/hostAdapter/dshAdapter/client/client-ui/editor-view.tsx +88 -0
- package/hostAdapter/dshAdapter/client/client-ui/femo-stream-live.tsx +264 -0
- package/hostAdapter/dshAdapter/client/client-ui/proj2/frame-router.ts +282 -0
- package/hostAdapter/dshAdapter/client/client-ui/proj2/index.ts +44 -0
- package/hostAdapter/dshAdapter/client/client-ui/proj2/ledger.ts +329 -0
- package/hostAdapter/dshAdapter/client/client-ui/proj2/turn-view.tsx +211 -0
- package/hostAdapter/dshAdapter/client/client-ui/proj2/window-id.ts +28 -0
- package/hostAdapter/dshAdapter/client/client-ui/stream-store.ts +550 -0
- package/hostAdapter/dshAdapter/client/client-ui/styles.ts +144 -0
- package/hostAdapter/dshAdapter/client/client-ui/view-button.tsx +572 -0
- package/hostAdapter/dshAdapter/client/client-ui/view-state.ts +61 -0
- package/hostAdapter/dshAdapter/client/client.tsx +518 -0
- package/hostAdapter/dshAdapter/client/fa-icons.tsx +112 -0
- package/hostAdapter/dshAdapter/client/femo-reasoning-row.tsx +103 -0
- package/hostAdapter/dshAdapter/client/lineage-fork-native.jsx +624 -0
- package/hostAdapter/dshAdapter/client/lineage-fork.jsx +585 -0
- package/hostAdapter/dshAdapter/cordis.patch.yml +8 -0
- package/hostAdapter/dshAdapter/dshPatch/DSH-0.1.2-fork/344/277/256/346/224/271/351/234/200/346/261/202.md +184 -0
- package/hostAdapter/dshAdapter/dshPatch/MEOW_MODIFICATIONS.md +3105 -0
- package/hostAdapter/dshAdapter/dshPatch/patch-dsh-0.1.2-alpha.1.py +313 -0
- package/hostAdapter/dshAdapter/host/api-retry.ts +141 -0
- package/hostAdapter/dshAdapter/host/bridge.ts +224 -0
- package/hostAdapter/dshAdapter/host/config.ts +124 -0
- package/hostAdapter/dshAdapter/host/debug-log.ts +29 -0
- package/hostAdapter/dshAdapter/host/debug-run.ts +793 -0
- package/hostAdapter/dshAdapter/host/diag-feed.ts +56 -0
- package/hostAdapter/dshAdapter/host/engine-events.ts +891 -0
- package/hostAdapter/dshAdapter/host/engine-transcript.ts +122 -0
- package/hostAdapter/dshAdapter/host/femo-files.ts +210 -0
- package/hostAdapter/dshAdapter/host/god-mirror.ts +234 -0
- package/hostAdapter/dshAdapter/host/host-log.ts +101 -0
- package/hostAdapter/dshAdapter/host/http.ts +66 -0
- package/hostAdapter/dshAdapter/host/index.ts +633 -0
- package/hostAdapter/dshAdapter/host/list-cache.ts +183 -0
- package/hostAdapter/dshAdapter/host/main-actor.ts +853 -0
- package/hostAdapter/dshAdapter/host/main-delivery-queue.ts +115 -0
- package/hostAdapter/dshAdapter/host/native-state.ts +21 -0
- package/hostAdapter/dshAdapter/host/node-retry.ts +246 -0
- package/hostAdapter/dshAdapter/host/persona.ts +146 -0
- package/hostAdapter/dshAdapter/host/pre-step-gate.ts +95 -0
- package/hostAdapter/dshAdapter/host/proj-trace.ts +49 -0
- package/hostAdapter/dshAdapter/host/projection-input.ts +238 -0
- package/hostAdapter/dshAdapter/host/projection.ts +742 -0
- package/hostAdapter/dshAdapter/host/routes.ts +1196 -0
- package/hostAdapter/dshAdapter/host/run-control.ts +641 -0
- package/hostAdapter/dshAdapter/host/safe-steer.ts +33 -0
- package/hostAdapter/dshAdapter/host/section-gate.ts +108 -0
- package/hostAdapter/dshAdapter/host/session-events.ts +45 -0
- package/hostAdapter/dshAdapter/host/state-files.ts +301 -0
- package/hostAdapter/dshAdapter/host/stream-frames.ts +229 -0
- package/hostAdapter/dshAdapter/host/subagent-native.ts +997 -0
- package/hostAdapter/dshAdapter/host/subagent.ts +1205 -0
- package/hostAdapter/dshAdapter/host/tools.ts +486 -0
- package/hostAdapter/dshAdapter/host/windowing-native.ts +294 -0
- package/hostAdapter/dshAdapter/host.manifest.json +6 -0
- package/hostAdapter/dshAdapter/lib/client.js +19161 -0
- package/hostAdapter/dshAdapter/lib/client.js.map +7 -0
- package/hostAdapter/dshAdapter/lib/index.js +8173 -0
- package/hostAdapter/dshAdapter/lib/index.js.map +7 -0
- package/hostAdapter/dshAdapter/package-lock.json +500 -0
- package/hostAdapter/dshAdapter/package.json +55 -0
- package/hostAdapter/dshAdapter/pnpm-lock.yaml +596 -0
- package/hostAdapter/dshAdapter/pnpm-workspace.yaml +2 -0
- package/hostAdapter/dshAdapter/python/dev-bridge-test.py +43 -0
- package/hostAdapter/dshAdapter/python/femo_bridge.py +533 -0
- package/hostAdapter/dshAdapter/tsconfig.host.json +9 -0
- package/hostAdapter/dshAdapter/tsconfig.json +21 -0
- package/package.json +40 -0
- package//350/257/255/346/263/225/346/226/207/346/241/243.md +1136 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Femo",
|
|
3
|
+
"private": true,
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "vite",
|
|
8
|
+
"build": "vite build",
|
|
9
|
+
"preview": "vite preview"
|
|
10
|
+
},
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"react": "^18.2.0",
|
|
13
|
+
"react-dom": "^18.2.0"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@vitejs/plugin-react": "^4.2.1",
|
|
17
|
+
"vite": "^5.1.0"
|
|
18
|
+
}
|
|
19
|
+
}
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 400 480" width="400" height="480">
|
|
2
|
+
|
|
3
|
+
<!-- ============ 蒙版定义 ============ -->
|
|
4
|
+
<defs>
|
|
5
|
+
<mask id="cut">
|
|
6
|
+
<rect x="0" y="0" width="400" height="480" fill="#ffffff"/>
|
|
7
|
+
|
|
8
|
+
<!-- 身体部分轮廓:五边形 -->
|
|
9
|
+
<path d="M 187.5 200 L 212.5 200 L 262.5 359 L 200 384 L 137.5 359 Z"
|
|
10
|
+
fill="none" stroke="#000000" stroke-width="16"
|
|
11
|
+
stroke-linejoin="round" stroke-linecap="round"/>
|
|
12
|
+
|
|
13
|
+
<!-- 圆内部:半径 15 -->
|
|
14
|
+
<circle cx="200" cy="200" r="15" fill="#000000"/>
|
|
15
|
+
|
|
16
|
+
<!-- 透明 a线 -->
|
|
17
|
+
<line x1="35" y1="100" x2="200" y2="75"
|
|
18
|
+
stroke="#000000" stroke-width="16" stroke-linecap="round"/>
|
|
19
|
+
|
|
20
|
+
<!-- 透明 a'线 -->
|
|
21
|
+
<line x1="200" y1="75" x2="365" y2="100"
|
|
22
|
+
stroke="#000000" stroke-width="16" stroke-linecap="round"/>
|
|
23
|
+
|
|
24
|
+
<!-- 透明 b线 -->
|
|
25
|
+
<line x1="30.92" y1="107.11" x2="91.75" y2="262.5"
|
|
26
|
+
stroke="#000000" stroke-width="16" stroke-linecap="round"/>
|
|
27
|
+
|
|
28
|
+
<!-- 透明 c线 -->
|
|
29
|
+
<line x1="369.08" y1="107.11" x2="308.25" y2="262.5"
|
|
30
|
+
stroke="#000000" stroke-width="16" stroke-linecap="round"/>
|
|
31
|
+
</mask>
|
|
32
|
+
</defs>
|
|
33
|
+
|
|
34
|
+
<!-- ============ 图形主体 + 箭头填充 ============ -->
|
|
35
|
+
<g mask="url(#cut)">
|
|
36
|
+
|
|
37
|
+
<!-- 六边形边框 -->
|
|
38
|
+
<polygon
|
|
39
|
+
points="200,40 338.56,120 338.56,280 200,360 61.44,280 61.44,120"
|
|
40
|
+
fill="none" stroke="#6FBF3A" stroke-width="32"
|
|
41
|
+
stroke-linejoin="round" stroke-linecap="round"/>
|
|
42
|
+
|
|
43
|
+
<!-- 左上斜边 -->
|
|
44
|
+
<line x1="200" y1="200" x2="61.44" y2="120"
|
|
45
|
+
stroke="#6FBF3A" stroke-width="32" stroke-linecap="round"/>
|
|
46
|
+
|
|
47
|
+
<!-- 右上斜边 -->
|
|
48
|
+
<line x1="200" y1="200" x2="338.56" y2="120"
|
|
49
|
+
stroke="#6FBF3A" stroke-width="32" stroke-linecap="round"/>
|
|
50
|
+
|
|
51
|
+
<!-- 身体部分:五边形 -->
|
|
52
|
+
<path d="M 187.5 200 L 212.5 200 L 262.5 359 L 200 384 L 137.5 359 Z"
|
|
53
|
+
fill="#6FBF3A"/>
|
|
54
|
+
|
|
55
|
+
<!-- ======================================= -->
|
|
56
|
+
<!-- 箭头填充组:坐标已定死 -->
|
|
57
|
+
<!-- ======================================= -->
|
|
58
|
+
|
|
59
|
+
<!-- 箭头填充(左) -->
|
|
60
|
+
<path d="M 75.78 197.79
|
|
61
|
+
L 37.17 105.58
|
|
62
|
+
L 135.99 93.53
|
|
63
|
+
L 68.63 132.43
|
|
64
|
+
L 75.78 120
|
|
65
|
+
Z"
|
|
66
|
+
fill="#6FBF3A"/>
|
|
67
|
+
|
|
68
|
+
<!-- 箭头填充(右) -->
|
|
69
|
+
<path d="M 324.22 197.79
|
|
70
|
+
L 362.83 105.58
|
|
71
|
+
L 264.01 93.53
|
|
72
|
+
L 331.37 132.43
|
|
73
|
+
L 324.22 120
|
|
74
|
+
Z"
|
|
75
|
+
fill="#6FBF3A"/>
|
|
76
|
+
|
|
77
|
+
</g>
|
|
78
|
+
|
|
79
|
+
<!-- ============ 圆(最上层,保持完整) ============ -->
|
|
80
|
+
<circle cx="200" cy="200" r="30"
|
|
81
|
+
fill="none" stroke="#6FBF3A" stroke-width="32"/>
|
|
82
|
+
|
|
83
|
+
</svg>
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
<?xml version="1.0" standalone="no"?>
|
|
2
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="27.169998168945312 30 345.6600341796875 364" width="309.12" height="352">
|
|
3
|
+
|
|
4
|
+
<!-- ============ 蒙版定义 ============ -->
|
|
5
|
+
<defs>
|
|
6
|
+
<mask id="cut">
|
|
7
|
+
<rect x="0" y="0" width="400" height="480" fill="#ffffff"/>
|
|
8
|
+
|
|
9
|
+
<!-- 身体部分轮廓:五边形 -->
|
|
10
|
+
<path d="M 187.5 200 L 212.5 200 L 262.5 359 L 200 384 L 137.5 359 Z" fill="none" stroke="#000000" stroke-width="16" stroke-linejoin="round" stroke-linecap="round"/>
|
|
11
|
+
|
|
12
|
+
<!-- 圆内部:半径 15 -->
|
|
13
|
+
<circle cx="200" cy="200" r="15" fill="#000000"/>
|
|
14
|
+
|
|
15
|
+
<!-- 透明 a线 -->
|
|
16
|
+
<line x1="35" y1="100" x2="200" y2="75" stroke="#000000" stroke-width="16" stroke-linecap="round"/>
|
|
17
|
+
|
|
18
|
+
<!-- 透明 a'线 -->
|
|
19
|
+
<line x1="200" y1="75" x2="365" y2="100" stroke="#000000" stroke-width="16" stroke-linecap="round"/>
|
|
20
|
+
|
|
21
|
+
<!-- 透明 b线 -->
|
|
22
|
+
<line x1="30.92" y1="107.11" x2="91.75" y2="262.5" stroke="#000000" stroke-width="16" stroke-linecap="round"/>
|
|
23
|
+
|
|
24
|
+
<!-- 透明 c线 -->
|
|
25
|
+
<line x1="369.08" y1="107.11" x2="308.25" y2="262.5" stroke="#000000" stroke-width="16" stroke-linecap="round"/>
|
|
26
|
+
</mask>
|
|
27
|
+
</defs>
|
|
28
|
+
|
|
29
|
+
<!-- ============ 图形主体 + 箭头填充 ============ -->
|
|
30
|
+
<g mask="url(#cut)">
|
|
31
|
+
|
|
32
|
+
<!-- 六边形边框 -->
|
|
33
|
+
<polygon points="200,40 338.56,120 338.56,280 200,360 61.44,280 61.44,120" fill="none" stroke="#6FBF3A" stroke-width="32" stroke-linejoin="round" stroke-linecap="round"/>
|
|
34
|
+
|
|
35
|
+
<!-- 左上斜边 -->
|
|
36
|
+
<line x1="200" y1="200" x2="61.44" y2="120" stroke="#6FBF3A" stroke-width="32" stroke-linecap="round"/>
|
|
37
|
+
|
|
38
|
+
<!-- 右上斜边 -->
|
|
39
|
+
<line x1="200" y1="200" x2="338.56" y2="120" stroke="#6FBF3A" stroke-width="32" stroke-linecap="round"/>
|
|
40
|
+
|
|
41
|
+
<!-- 身体部分:五边形 -->
|
|
42
|
+
<path d="M 187.5 200 L 212.5 200 L 262.5 359 L 200 384 L 137.5 359 Z" fill="#6FBF3A"/>
|
|
43
|
+
|
|
44
|
+
<!-- 箭头填充(左) -->
|
|
45
|
+
<path d="M 75.78 197.79 L 37.17 105.58 L 135.99 93.53 L 68.63 132.43 L 75.78 120 Z" fill="#6FBF3A"/>
|
|
46
|
+
|
|
47
|
+
<!-- 箭头填充(右) -->
|
|
48
|
+
<path d="M 324.22 197.79 L 362.83 105.58 L 264.01 93.53 L 331.37 132.43 L 324.22 120 Z" fill="#6FBF3A"/>
|
|
49
|
+
|
|
50
|
+
</g>
|
|
51
|
+
|
|
52
|
+
<!-- ============ 圆(最上层,保持完整) ============ -->
|
|
53
|
+
<circle cx="200" cy="200" r="30" fill="none" stroke="#6FBF3A" stroke-width="32"/>
|
|
54
|
+
|
|
55
|
+
</svg>
|
|
Binary file
|