dsh-biocore 0.1.0 → 0.1.2
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 -2
- package/lib/py/bridge.py +15 -7
- package/lib/py-bridge.js +4 -3
- package/package.json +3 -2
- package/python/biocore_memory/__init__.py +21 -0
- package/python/biocore_memory/adapters/__init__.py +2 -0
- package/python/biocore_memory/adapters/astrbot.py +24 -0
- package/python/biocore_memory/adapters/dsh_cli.py +335 -0
- package/python/biocore_memory/co_recall.py +324 -0
- package/python/biocore_memory/consolidate/__init__.py +11 -0
- package/python/biocore_memory/consolidate/gated.py +104 -0
- package/python/biocore_memory/consolidate/neighbors.py +68 -0
- package/python/biocore_memory/consolidate/reflection.py +45 -0
- package/python/biocore_memory/consolidate/tree.py +95 -0
- package/python/biocore_memory/consolidate/writeback.py +181 -0
- package/python/biocore_memory/core/__init__.py +4 -0
- package/python/biocore_memory/core/config.py +127 -0
- package/python/biocore_memory/core/permissions.py +69 -0
- package/python/biocore_memory/core/types.py +116 -0
- package/python/biocore_memory/core/util.py +26 -0
- package/python/biocore_memory/embedding_local.py +447 -0
- package/python/biocore_memory/embedding_mode.py +156 -0
- package/python/biocore_memory/engine.py +2476 -0
- package/python/biocore_memory/engine_helpers.py +266 -0
- package/python/biocore_memory/event/__init__.py +3 -0
- package/python/biocore_memory/event/_types.py +16 -0
- package/python/biocore_memory/event/consistency.py +117 -0
- package/python/biocore_memory/event/extract.py +48 -0
- package/python/biocore_memory/event/media.py +111 -0
- package/python/biocore_memory/event/notes.py +85 -0
- package/python/biocore_memory/event/notes_link.py +87 -0
- package/python/biocore_memory/event/vector.py +69 -0
- package/python/biocore_memory/evict/__init__.py +3 -0
- package/python/biocore_memory/evict/adaptive.py +73 -0
- package/python/biocore_memory/evict/consequence.py +58 -0
- package/python/biocore_memory/evict/heat.py +54 -0
- package/python/biocore_memory/evict/inhibition.py +105 -0
- package/python/biocore_memory/evict/policy.py +188 -0
- package/python/biocore_memory/evict/score.py +23 -0
- package/python/biocore_memory/identity/__init__.py +6 -0
- package/python/biocore_memory/identity/api.py +99 -0
- package/python/biocore_memory/identity/history.py +9 -0
- package/python/biocore_memory/identity/ledger.py +191 -0
- package/python/biocore_memory/identity/narrative.py +358 -0
- package/python/biocore_memory/identity/snapshot.py +13 -0
- package/python/biocore_memory/identity/writeback.py +61 -0
- package/python/biocore_memory/index/__init__.py +3 -0
- package/python/biocore_memory/index/cue_index.py +80 -0
- package/python/biocore_memory/index/entities.py +85 -0
- package/python/biocore_memory/index/entity_boost.py +104 -0
- package/python/biocore_memory/index/graph.py +172 -0
- package/python/biocore_memory/recall/__init__.py +5 -0
- package/python/biocore_memory/recall/api.py +65 -0
- package/python/biocore_memory/recall/bm25.py +118 -0
- package/python/biocore_memory/recall/channels.py +98 -0
- package/python/biocore_memory/recall/complexity.py +62 -0
- package/python/biocore_memory/recall/constraints.py +75 -0
- package/python/biocore_memory/recall/embedding.py +745 -0
- package/python/biocore_memory/recall/expand.py +26 -0
- package/python/biocore_memory/recall/filters.py +40 -0
- package/python/biocore_memory/recall/fusion.py +18 -0
- package/python/biocore_memory/recall/mmr.py +70 -0
- package/python/biocore_memory/recall/ppr.py +85 -0
- package/python/biocore_memory/recall/retrieval_practice.py +102 -0
- package/python/biocore_memory/relay/__init__.py +2 -0
- package/python/biocore_memory/relay/card.py +51 -0
- package/python/biocore_memory/slots/__init__.py +18 -0
- package/python/biocore_memory/slots/admission.py +64 -0
- package/python/biocore_memory/slots/boundary.py +128 -0
- package/python/biocore_memory/slots/evict_bridge.py +106 -0
- package/python/biocore_memory/slots/registry.py +135 -0
- package/python/biocore_memory/slots/switch.py +42 -0
- package/python/biocore_memory/store/__init__.py +4 -0
- package/python/biocore_memory/store/audit.py +74 -0
- package/python/biocore_memory/store/compress.py +81 -0
- package/python/biocore_memory/store/dedupe.py +178 -0
- package/python/biocore_memory/store/json_store.py +154 -0
- package/python/biocore_memory/store/media.py +145 -0
- package/python/biocore_memory/store/provenance.py +73 -0
- package/python/biocore_memory/store/rate_limit.py +93 -0
- package/python/biocore_memory/store/security.py +107 -0
- package/python/biocore_memory/store/source_consistency.py +123 -0
- package/python/biocore_memory/store/tiering.py +61 -0
- package/python/biocore_memory/store/tiering_exec.py +50 -0
- package/python/biocore_memory/store/tombstone.py +23 -0
- package/python/biocore_memory/store/versions.py +69 -0
- package/python/biocore_memory/thread/__init__.py +2 -0
- package/python/biocore_memory/thread/card.py +58 -0
- package/python/biocore_model/__init__.py +37 -0
- package/python/biocore_model/affective_labor.py +162 -0
- package/python/biocore_model/appraisal.py +257 -0
- package/python/biocore_model/appraisal_action.py +78 -0
- package/python/biocore_model/archive_queue.py +60 -0
- package/python/biocore_model/attachment_behavior.py +130 -0
- package/python/biocore_model/attachment_regulation.py +75 -0
- package/python/biocore_model/attachment_state.py +41 -0
- package/python/biocore_model/attribution.py +73 -0
- package/python/biocore_model/attributor.py +162 -0
- package/python/biocore_model/autonomic.py +91 -0
- package/python/biocore_model/autonomy_affect.py +51 -0
- package/python/biocore_model/autonomy_check.py +67 -0
- package/python/biocore_model/autonomy_loop.py +122 -0
- package/python/biocore_model/autonomy_mode.py +114 -0
- package/python/biocore_model/autonomy_model.py +733 -0
- package/python/biocore_model/autonomy_params.py +131 -0
- package/python/biocore_model/autonomy_reason.py +73 -0
- package/python/biocore_model/autonomy_tick.py +227 -0
- package/python/biocore_model/bio_appraisal.py +49 -0
- package/python/biocore_model/bio_autonomy_state.py +171 -0
- package/python/biocore_model/bio_config.py +221 -0
- package/python/biocore_model/bio_const.py +128 -0
- package/python/biocore_model/bio_daily.py +267 -0
- package/python/biocore_model/bio_emotion.py +538 -0
- package/python/biocore_model/bio_emotion2.py +214 -0
- package/python/biocore_model/bio_goal.py +220 -0
- package/python/biocore_model/bio_identity.py +82 -0
- package/python/biocore_model/bio_noise.py +119 -0
- package/python/biocore_model/bio_physiology2.py +114 -0
- package/python/biocore_model/bio_snapshot.py +324 -0
- package/python/biocore_model/bio_state.py +272 -0
- package/python/biocore_model/bio_tick.py +310 -0
- package/python/biocore_model/bio_util.py +82 -0
- package/python/biocore_model/blocks.py +264 -0
- package/python/biocore_model/boundary.py +251 -0
- package/python/biocore_model/boundary_gate.py +188 -0
- package/python/biocore_model/commitment_extractor.py +517 -0
- package/python/biocore_model/compassion_fatigue.py +84 -0
- package/python/biocore_model/connection_bids.py +120 -0
- package/python/biocore_model/core_bridge.py +177 -0
- package/python/biocore_model/core_client.py +127 -0
- package/python/biocore_model/core_commands.py +112 -0
- package/python/biocore_model/core_mode.py +104 -0
- package/python/biocore_model/core_mode_ui.mjs +104 -0
- package/python/biocore_model/criticality.py +81 -0
- package/python/biocore_model/defense_mechanisms.py +272 -0
- package/python/biocore_model/delta_budget.py +99 -0
- package/python/biocore_model/diag_trace.py +274 -0
- package/python/biocore_model/dissonance.py +134 -0
- package/python/biocore_model/emotion_geometry.py +108 -0
- package/python/biocore_model/emotion_probe.py +209 -0
- package/python/biocore_model/entity_graph.py +931 -0
- package/python/biocore_model/entity_resolve.py +260 -0
- package/python/biocore_model/envy.py +193 -0
- package/python/biocore_model/exit_or_silence.py +230 -0
- package/python/biocore_model/expr_guard.py +24 -0
- package/python/biocore_model/expr_intent.py +77 -0
- package/python/biocore_model/expr_state.py +204 -0
- package/python/biocore_model/expr_template.py +105 -0
- package/python/biocore_model/expr_tone.py +81 -0
- package/python/biocore_model/extreme_scenarios.py +205 -0
- package/python/biocore_model/feedback_flow.py +227 -0
- package/python/biocore_model/feedback_guard.py +129 -0
- package/python/biocore_model/feedback_llm.py +163 -0
- package/python/biocore_model/feedback_memory.py +96 -0
- package/python/biocore_model/feedback_user.py +93 -0
- package/python/biocore_model/frustration_curve.py +110 -0
- package/python/biocore_model/granularity.py +283 -0
- package/python/biocore_model/graph_extract.py +248 -0
- package/python/biocore_model/graph_recall.py +221 -0
- package/python/biocore_model/intent_render.py +91 -0
- package/python/biocore_model/intero_core.py +235 -0
- package/python/biocore_model/intero_style.py +116 -0
- package/python/biocore_model/layered_memory.py +297 -0
- package/python/biocore_model/learning_probe.py +120 -0
- package/python/biocore_model/memory_dual.py +224 -0
- package/python/biocore_model/memory_forgetting.py +125 -0
- package/python/biocore_model/memory_store.py +1399 -0
- package/python/biocore_model/metacog.py +153 -0
- package/python/biocore_model/migrate.py +733 -0
- package/python/biocore_model/migrate_store.py +337 -0
- package/python/biocore_model/mind_wander.py +111 -0
- package/python/biocore_model/mood.py +48 -0
- package/python/biocore_model/narrative.py +172 -0
- package/python/biocore_model/needs_esteem.py +116 -0
- package/python/biocore_model/needs_events.py +137 -0
- package/python/biocore_model/needs_sleep.py +72 -0
- package/python/biocore_model/noise_bank.py +95 -0
- package/python/biocore_model/persona_flow.mjs +25 -0
- package/python/biocore_model/pipeline.py +240 -0
- package/python/biocore_model/pipeline_api.py +200 -0
- package/python/biocore_model/plugin_config.py +83 -0
- package/python/biocore_model/plugin_routes.py +1435 -0
- package/python/biocore_model/policy_learning.py +132 -0
- package/python/biocore_model/possible_selves.py +110 -0
- package/python/biocore_model/predictor.py +178 -0
- package/python/biocore_model/preset.py +205 -0
- package/python/biocore_model/proactive_context.py +153 -0
- package/python/biocore_model/prompt_rules.py +90 -0
- package/python/biocore_model/prospective.py +183 -0
- package/python/biocore_model/provider_fallback.py +97 -0
- package/python/biocore_model/reconstruction.py +132 -0
- package/python/biocore_model/regulation_loop.py +179 -0
- package/python/biocore_model/regulation_strategies.py +294 -0
- package/python/biocore_model/relation_stage.py +130 -0
- package/python/biocore_model/relationship_stage.py +95 -0
- package/python/biocore_model/render.py +901 -0
- package/python/biocore_model/render_guard.mjs +34 -0
- package/python/biocore_model/repair_after_boundary.py +350 -0
- package/python/biocore_model/reply_limit.py +183 -0
- package/python/biocore_model/reply_split.py +203 -0
- package/python/biocore_model/rollback.py +143 -0
- package/python/biocore_model/runtime.py +479 -0
- package/python/biocore_model/sanitize.py +200 -0
- package/python/biocore_model/scheduler.py +123 -0
- package/python/biocore_model/schema.py +120 -0
- package/python/biocore_model/secrecy.py +145 -0
- package/python/biocore_model/self_esteem.py +50 -0
- package/python/biocore_model/self_intent.py +437 -0
- package/python/biocore_model/self_interest.py +263 -0
- package/python/biocore_model/self_verification.py +178 -0
- package/python/biocore_model/services.py +78 -0
- package/python/biocore_model/situation.py +254 -0
- package/python/biocore_model/sleep_circadian.py +116 -0
- package/python/biocore_model/social_pain.py +69 -0
- package/python/biocore_model/social_repair.py +111 -0
- package/python/biocore_model/social_theory.py +131 -0
- package/python/biocore_model/source_monitoring.py +292 -0
- package/python/biocore_model/stages.py +487 -0
- package/python/biocore_model/state_tag.py +231 -0
- package/python/biocore_model/switch_groups.mjs +201 -0
- package/python/biocore_model/tabs_state.mjs +37 -0
- package/python/biocore_model/template_expr.py +252 -0
- package/python/biocore_model/tools/caps_check.mjs +23 -0
- package/python/biocore_model/tools/init_symbols_check.mjs +11 -0
- package/python/biocore_model/tools/missing_ids.mjs +16 -0
- package/python/biocore_model/tools/scope_check.mjs +19 -0
- package/python/biocore_model/topic_control.py +268 -0
- package/python/biocore_model/turn_memory.py +152 -0
- package/python/biocore_model/ui_compat.mjs +48 -0
- package/python/biocore_model/ui_settings.py +266 -0
- package/python/biocore_model/ui_settings.py.bak_authority +108 -0
- package/python/biocore_model/value_order.py +186 -0
- package/python/biocore_model/view_mode.mjs +8 -0
- package/python/biocore_model/voice_bank.py +177 -0
- package/python/biocore_model/waiting_sense.py +229 -0
- package/python/biocore_model/x_directives.py +142 -0
- package/python/biocore_runtime/__init__.py +7 -0
- package/python/biocore_runtime/pipeline.py +1915 -0
- package/python/dsh_adapter/README.md +96 -0
- package/python/dsh_adapter/adapter.py +1077 -0
- package/python/dsh_adapter/cli.py +107 -0
- package/python/dsh_adapter/data/demo_state.json +164 -0
- package/python/dsh_adapter/data/verify_state.json +164 -0
- package/python/dsh_adapter/tests/__init__.py +1 -0
- package/python/dsh_adapter/tests/test_adapter.py +494 -0
- package/ui/panel-layout.js +3 -3
- package/ui/panel.css +53 -6
- package/ui/panel.html +33 -32
- package/ui/panel.js +9 -1
- package/lib/py/__pycache__/bridge.cpython-310.pyc +0 -0
package/ui/panel.html
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
<!doctype html>
|
|
2
|
+
<!-- BioCore panel layout v24 (FlClash mobile): masthead/orb centered, channels 2x2, pill tabbar -->
|
|
2
3
|
<html lang="zh-CN">
|
|
3
4
|
<head>
|
|
4
5
|
<meta charset="utf-8">
|
|
5
6
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
7
|
<title>生物核 · 仪器面板</title>
|
|
7
|
-
<link rel="stylesheet" href="panel.css?v=
|
|
8
|
+
<link rel="stylesheet" href="panel.css?v=24">
|
|
8
9
|
</head>
|
|
9
10
|
<body>
|
|
10
11
|
<main class="panel" id="panel">
|
|
@@ -62,39 +63,39 @@
|
|
|
62
63
|
</div>
|
|
63
64
|
</section>
|
|
64
65
|
|
|
65
|
-
<
|
|
66
|
-
<div class="
|
|
67
|
-
|
|
68
|
-
<
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
<div class="subblock">
|
|
73
|
-
<div class="sub-label"><span>绷紧</span><span class="sub-trend"><b id="arrow-tension">→</b><span class="delta" id="delta-tension">—</span></span></div>
|
|
74
|
-
<div class="sub-value"><strong id="num-tension">–</strong><span class="sub-status" id="status-tension">—</span></div>
|
|
75
|
-
<div class="sub-note" id="note-tension">—</div>
|
|
66
|
+
<div class="channels-wrap" data-layout-slot="channels">
|
|
67
|
+
<div class="channel-title-row"><h2>四通道</h2><span class="channel-aside">2 × 2</span></div>
|
|
68
|
+
<div class="channel-grid">
|
|
69
|
+
<section class="card channel-card" data-card-id="tension" data-card-label="绷紧">
|
|
70
|
+
<div class="channel-head"><span class="channel-label">绷紧</span><span class="sub-trend"><b id="arrow-tension">→</b><span class="delta" id="delta-tension">—</span></span></div>
|
|
71
|
+
<div class="channel-value"><strong id="num-tension">–</strong><span class="sub-status" id="status-tension">—</span></div>
|
|
72
|
+
<p class="sub-note" id="note-tension">—</p>
|
|
76
73
|
<div class="bar stat-bar"><i id="bar-tension"></i><b class="bar-over" id="over-tension"></b></div>
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
<div class="sub-
|
|
81
|
-
<div class="sub-
|
|
74
|
+
<div class="bar-legend"><span><i class="legend-dot"></i>当前</span><span><i class="legend-dot warn"></i>超阈值</span></div>
|
|
75
|
+
</section>
|
|
76
|
+
<section class="card channel-card" data-card-id="warmth" data-card-label="暖">
|
|
77
|
+
<div class="channel-head"><span class="channel-label">暖</span><span class="sub-trend"><b id="arrow-warmth">→</b><span class="delta" id="delta-warmth">—</span></span></div>
|
|
78
|
+
<div class="channel-value"><strong id="num-warmth">–</strong><span class="sub-status" id="status-warmth">—</span></div>
|
|
79
|
+
<p class="sub-note" id="note-warmth">—</p>
|
|
82
80
|
<div class="bar stat-bar"><i id="bar-warmth"></i><b class="bar-over" id="over-warmth"></b></div>
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
<div class="sub-
|
|
87
|
-
<div class="sub-
|
|
81
|
+
<div class="bar-legend"><span><i class="legend-dot"></i>当前</span><span><i class="legend-dot warn"></i>超阈值</span></div>
|
|
82
|
+
</section>
|
|
83
|
+
<section class="card channel-card" data-card-id="heaviness" data-card-label="沉">
|
|
84
|
+
<div class="channel-head"><span class="channel-label">沉</span><span class="sub-trend"><b id="arrow-heaviness">→</b><span class="delta" id="delta-heaviness">—</span></span></div>
|
|
85
|
+
<div class="channel-value"><strong id="num-heaviness">–</strong><span class="sub-status" id="status-heaviness">—</span></div>
|
|
86
|
+
<p class="sub-note" id="note-heaviness">—</p>
|
|
88
87
|
<div class="bar stat-bar"><i id="bar-heaviness"></i><b class="bar-over" id="over-heaviness"></b></div>
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
<div class="sub-
|
|
93
|
-
<div class="sub-
|
|
88
|
+
<div class="bar-legend"><span><i class="legend-dot"></i>当前</span><span><i class="legend-dot warn"></i>超阈值</span></div>
|
|
89
|
+
</section>
|
|
90
|
+
<section class="card channel-card" data-card-id="clarity" data-card-label="清">
|
|
91
|
+
<div class="channel-head"><span class="channel-label">清</span><span class="sub-trend"><b id="arrow-clarity">→</b><span class="delta" id="delta-clarity">—</span></span></div>
|
|
92
|
+
<div class="channel-value"><strong id="num-clarity">–</strong><span class="sub-status" id="status-clarity">—</span></div>
|
|
93
|
+
<p class="sub-note" id="note-clarity">—</p>
|
|
94
94
|
<div class="bar stat-bar"><i id="bar-clarity"></i><b class="bar-over" id="over-clarity"></b></div>
|
|
95
|
-
|
|
95
|
+
<div class="bar-legend"><span><i class="legend-dot"></i>当前</span><span><i class="legend-dot warn"></i>超阈值</span></div>
|
|
96
|
+
</section>
|
|
96
97
|
</div>
|
|
97
|
-
</
|
|
98
|
+
</div>
|
|
98
99
|
|
|
99
100
|
<section class="card chart-card" data-card-id="chart" data-card-label="心情曲线">
|
|
100
101
|
<div class="card-head">
|
|
@@ -261,8 +262,8 @@
|
|
|
261
262
|
<span>BioCore · 只读投影</span>
|
|
262
263
|
</footer>
|
|
263
264
|
</main>
|
|
264
|
-
<script src="panel-layout.js?v=
|
|
265
|
-
<script src="trace-view.js?v=
|
|
266
|
-
<script src="panel.js?v=
|
|
265
|
+
<script src="panel-layout.js?v=5"></script>
|
|
266
|
+
<script src="trace-view.js?v=5"></script>
|
|
267
|
+
<script src="panel.js?v=5"></script>
|
|
267
268
|
</body>
|
|
268
269
|
</html>
|
package/ui/panel.js
CHANGED
|
@@ -1195,6 +1195,12 @@
|
|
|
1195
1195
|
return Array.prototype.slice.call(container.querySelectorAll('[data-card-id]'))
|
|
1196
1196
|
}
|
|
1197
1197
|
|
|
1198
|
+
/** Movable DOM slot for a card: grouped cards share one slot (channel grid). */
|
|
1199
|
+
function layoutSlotOf(card) {
|
|
1200
|
+
var slot = card && card.closest ? card.closest('[data-layout-slot]') : null
|
|
1201
|
+
return slot || card
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1198
1204
|
function layoutToast(message) {
|
|
1199
1205
|
var el = $('layoutToast')
|
|
1200
1206
|
if (!el) return
|
|
@@ -1266,12 +1272,14 @@
|
|
|
1266
1272
|
byId[card.getAttribute('data-card-id')] = card
|
|
1267
1273
|
}
|
|
1268
1274
|
var ordered = layoutApi.sortCards(Object.keys(byId), layoutState.order)
|
|
1275
|
+
var orderedSlots = []
|
|
1269
1276
|
for (var j = 0; j < ordered.length; j += 1) {
|
|
1270
1277
|
var id = ordered[j]
|
|
1271
1278
|
var node = byId[id]
|
|
1272
1279
|
if (!node) continue
|
|
1273
1280
|
node.classList.toggle('is-hidden', layoutState.hidden.indexOf(id) >= 0)
|
|
1274
|
-
|
|
1281
|
+
var slot = layoutSlotOf(node)
|
|
1282
|
+
if (orderedSlots.indexOf(slot) < 0) { orderedSlots.push(slot); container.appendChild(slot) }
|
|
1275
1283
|
}
|
|
1276
1284
|
renderAddCards()
|
|
1277
1285
|
applyTabGroup()
|
|
Binary file
|