forge-openclaw-plugin 0.2.69 → 0.2.71
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/dist/assets/{board-BfqxFNiQ.js → board-B0TuXl4u.js} +1 -1
- package/dist/assets/index-DtT3Y-Bj.css +1 -0
- package/dist/assets/index-clNilMKr.js +91 -0
- package/dist/assets/{motion-C0ALlgho.js → motion-Dmjq6HPm.js} +1 -1
- package/dist/assets/{table-WcMjnJll.js → table-CKKimYN1.js} +1 -1
- package/dist/assets/{ui-B5I-3U91.js → ui-JBdCP1Qb.js} +1 -1
- package/dist/assets/{vendor-C56o26_3.js → vendor-fiXu5f59.js} +233 -228
- package/dist/index.html +7 -7
- package/dist/server/server/migrations/062_health_mobile_sync_sessions.sql +55 -0
- package/dist/server/server/migrations/063_psyche_flashcards.sql +31 -0
- package/dist/server/server/src/app.js +314 -20
- package/dist/server/server/src/health.js +525 -1
- package/dist/server/server/src/openapi.js +1 -0
- package/dist/server/server/src/psyche-types.js +54 -0
- package/dist/server/server/src/repositories/psyche.js +146 -1
- package/dist/server/server/src/services/entity-crud.js +27 -5
- package/dist/server/server/src/services/gamification.js +2 -0
- package/dist/server/server/src/services/knowledge-graph.js +87 -1
- package/dist/server/server/src/services/psyche-observation-calendar.js +1 -0
- package/dist/server/server/src/services/psyche.js +4 -1
- package/dist/server/server/src/types.js +3 -0
- package/dist/server/src/lib/api.js +43 -0
- package/dist/server/src/lib/entity-visuals.js +9 -0
- package/dist/server/src/lib/knowledge-graph-types.js +19 -0
- package/dist/server/src/lib/psyche-schemas.js +177 -0
- package/openclaw.plugin.json +1 -1
- package/package.json +2 -1
- package/server/migrations/062_health_mobile_sync_sessions.sql +55 -0
- package/server/migrations/063_psyche_flashcards.sql +31 -0
- package/skills/forge-openclaw/SKILL.md +30 -9
- package/skills/forge-openclaw/entity_conversation_playbooks.md +139 -7
- package/skills/forge-openclaw/psyche_entity_playbooks.md +64 -3
- package/dist/assets/index-BfLQnCNZ.js +0 -91
- package/dist/assets/index-DIapFz9v.css +0 -1
|
@@ -237,6 +237,9 @@ short, tentative, and correctable.
|
|
|
237
237
|
possible mode family only after the part's lived voice or posture is visible.
|
|
238
238
|
- `mode_guide_session`: hypothesize about what the active part is trying to stop,
|
|
239
239
|
force, prevent, or secure right now while keeping candidate mode labels provisional.
|
|
240
|
+
- `flashcard`: hypothesize about the cue, urge sentence, mode/belief activation, or
|
|
241
|
+
values pivot the card should meet, then help craft one brief message the user can
|
|
242
|
+
recognize in that moment.
|
|
240
243
|
- `trigger_report`: hypothesize about the episode chain only after the situation,
|
|
241
244
|
felt stake, meaning, action, and consequence are at least partly visible.
|
|
242
245
|
- `event_type`: hypothesize about the repeated emotional or relational stake that
|
|
@@ -384,8 +387,9 @@ will preserve the structure best.
|
|
|
384
387
|
Psyche records are psychologically meaningful, but they are still normal stored Forge
|
|
385
388
|
entities for API purposes. Once the formulation is clear and the user has consented to
|
|
386
389
|
save or update it, use the shared batch entity routes for `psyche_value`,
|
|
387
|
-
`behavior_pattern`, `behavior`, `belief_entry`, `mode_profile`,
|
|
388
|
-
`mode_guide_session`, `trigger_report`, `event_type`, and
|
|
390
|
+
`behavior_pattern`, `behavior`, `belief_entry`, `mode_profile`,
|
|
391
|
+
`mode_guide_session`, `flashcard`, `trigger_report`, `event_type`, and
|
|
392
|
+
`emotion_definition`.
|
|
389
393
|
|
|
390
394
|
Keep the route decision internal. With the user, keep talking about the lived moment,
|
|
391
395
|
belief sentence, pattern, mode, value, report, event kind, or feeling signature.
|
|
@@ -400,7 +404,15 @@ Do not divert Psyche material into `self_observation` just because it started as
|
|
|
400
404
|
episode. Use `trigger_report` for one emotionally meaningful incident, use
|
|
401
405
|
`behavior_pattern` for a recurring functional loop, use `belief_entry` for one
|
|
402
406
|
explicit sentence, and use `mode_guide_session` or `mode_profile` when a part-state is
|
|
403
|
-
central.
|
|
407
|
+
central. Use `flashcard` when the user needs a small rehearsable message to retrieve
|
|
408
|
+
during an urge, trigger, mode activation, belief activation, or values-based pivot.
|
|
409
|
+
|
|
410
|
+
When a user says they feel an urge or asks for help not doing something, search
|
|
411
|
+
existing `flashcard` records before creating a new one. Use `forge_search_entities`
|
|
412
|
+
with `entityTypes: ["flashcard"]` and query text from the urge, tags, trigger
|
|
413
|
+
sentence, trigger situation, and user's own words. If a card matches, show the card's
|
|
414
|
+
message first, then add brief grounding, urge-surfing, cognitive defusion,
|
|
415
|
+
schema/mode-aware reflection, or values-based coaching around it.
|
|
404
416
|
|
|
405
417
|
## Lane chooser
|
|
406
418
|
|
|
@@ -829,6 +841,55 @@ Preferred opening question:
|
|
|
829
841
|
|
|
830
842
|
- "What just happened, and what is this part trying to get you to do or stop doing right now?"
|
|
831
843
|
|
|
844
|
+
## Flashcard
|
|
845
|
+
|
|
846
|
+
Aim: craft a small therapeutic card that can be retrieved during a specific urge,
|
|
847
|
+
trigger, belief activation, mode shift, or values-based pivot.
|
|
848
|
+
|
|
849
|
+
Arc:
|
|
850
|
+
|
|
851
|
+
1. Start from the exact moment the card should help: the urge sentence, trigger cue,
|
|
852
|
+
mode activation, belief activation, or situation.
|
|
853
|
+
2. Reflect what the card is trying to interrupt, steady, help the user tolerate, or
|
|
854
|
+
help the user choose.
|
|
855
|
+
3. Ask for the one simple message that should be centered on the card, or offer one
|
|
856
|
+
concise working sentence if the user's meaning is clearer than their wording.
|
|
857
|
+
4. Ask for tags, trigger sentence, and trigger situation before the title, because
|
|
858
|
+
retrieval matters more than the title.
|
|
859
|
+
5. Ask about color, background, typography, image, layout, and visual tone only after
|
|
860
|
+
the message and retrieval cues are clear.
|
|
861
|
+
6. If the user is in an urge right now, search existing flashcards first, show the
|
|
862
|
+
matching message first, then support it with brief psychotherapy-informed guidance.
|
|
863
|
+
|
|
864
|
+
Helpful follow-up lanes:
|
|
865
|
+
|
|
866
|
+
- the exact urge sentence or trigger cue
|
|
867
|
+
- what the card should help the user remember when the urge is strongest
|
|
868
|
+
- whether the card should interrupt an urge, comfort a part, challenge a belief, or
|
|
869
|
+
pivot toward a value
|
|
870
|
+
- tags and trigger wording for future retrieval
|
|
871
|
+
- visual tone, colors, typography, layout, or image after the message is clear
|
|
872
|
+
|
|
873
|
+
Likely linked entities:
|
|
874
|
+
|
|
875
|
+
- `behavior` when the card supports interrupting or replacing one recurring move
|
|
876
|
+
- `behavior_pattern` when the card belongs to a larger loop
|
|
877
|
+
- `belief_entry` when the card answers one activated belief sentence
|
|
878
|
+
- `mode_profile` when the card speaks to a recurring part-state
|
|
879
|
+
- `psyche_value` when the card points back to a chosen value
|
|
880
|
+
- `trigger_report` when the card was created from one meaningful episode
|
|
881
|
+
|
|
882
|
+
Ready to save when:
|
|
883
|
+
|
|
884
|
+
- the main `message` is clear enough to show back during the hard moment
|
|
885
|
+
- at least one retrieval cue is clear: tag, trigger sentence, trigger situation, or
|
|
886
|
+
linked Psyche record
|
|
887
|
+
- title and visual styling are either chosen or intentionally left for later
|
|
888
|
+
|
|
889
|
+
Preferred opening question:
|
|
890
|
+
|
|
891
|
+
- "What exact urge sentence or situation should make this card appear?"
|
|
892
|
+
|
|
832
893
|
## Trigger Report
|
|
833
894
|
|
|
834
895
|
Aim: capture one emotionally meaningful episode clearly enough that it can teach the
|