@medicine-wheel/app 0.16.1 â 0.17.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/app/nodes/page.tsx +2 -2
- package/lib/memory.ts +17 -0
- package/package.json +27 -26
package/app/nodes/page.tsx
CHANGED
|
@@ -15,9 +15,9 @@ import { toast } from "sonner";
|
|
|
15
15
|
// Storage returns description at the top level; legacy nodes carried it in metadata.
|
|
16
16
|
type NodeRecord = RelationalNode & { description?: string };
|
|
17
17
|
|
|
18
|
-
const NODE_TYPES: NodeType[] = ["human", "land", "spirit", "ancestor", "future", "knowledge", "circle"];
|
|
18
|
+
const NODE_TYPES: NodeType[] = ["human", "land", "spirit", "ancestor", "future", "knowledge", "circle", "agent"];
|
|
19
19
|
const DIRECTIONS: DirectionName[] = ["east", "south", "west", "north"];
|
|
20
|
-
const NODE_TYPE_ICONS: Record<NodeType, string> = { human: "ðĪ", land: "ð", spirit: "âĻ", ancestor: "ðŠķ", future: "ðą", knowledge: "ð", circle: "â" };
|
|
20
|
+
const NODE_TYPE_ICONS: Record<NodeType, string> = { human: "ðĪ", land: "ð", spirit: "âĻ", ancestor: "ðŠķ", future: "ðą", knowledge: "ð", circle: "â", agent: "ðĪ" };
|
|
21
21
|
const DIRECTION_ICONS: Record<DirectionName, string> = { east: "ð
", south: "ð", west: "ð", north: "âïļ" };
|
|
22
22
|
|
|
23
23
|
function describeNode(node: NodeRecord): string {
|
package/lib/memory.ts
CHANGED
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
} from '@medicine-wheel/memory';
|
|
21
21
|
import { WHEEL_PEER, createHonchoClient, honchoFromEnv, honchoMemoryProvider } from '@medicine-wheel/honcho';
|
|
22
22
|
import { createProvider } from '@medicine-wheel/storage-provider';
|
|
23
|
+
import { speakerKindOf } from '@medicine-wheel/community-identity';
|
|
23
24
|
import { getAllBeats } from '@/lib/store';
|
|
24
25
|
import { ceremonyEpisodePath } from '@/lib/ceremony-response';
|
|
25
26
|
|
|
@@ -116,6 +117,22 @@ export function wheelForMemory(): MemoryWheel {
|
|
|
116
117
|
);
|
|
117
118
|
return out;
|
|
118
119
|
},
|
|
120
|
+
|
|
121
|
+
async kinds(ids) {
|
|
122
|
+
const store = await createProvider();
|
|
123
|
+
const out: Record<string, 'person' | 'agent' | 'wheel'> = {};
|
|
124
|
+
await Promise.all(
|
|
125
|
+
ids.map(async (id) => {
|
|
126
|
+
if (id === WHEEL_PEER) {
|
|
127
|
+
out[id] = 'wheel';
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
const kind = speakerKindOf(await store.getNode(id).catch(() => null));
|
|
131
|
+
if (kind) out[id] = kind;
|
|
132
|
+
}),
|
|
133
|
+
);
|
|
134
|
+
return out;
|
|
135
|
+
},
|
|
119
136
|
};
|
|
120
137
|
}
|
|
121
138
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medicine-wheel/app",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Medicine Wheel â Interactive visual layer for Indigenous relational research with Four Directions, ceremonies, and narrative arcs",
|
|
5
5
|
"bin": {
|
|
6
6
|
"mw": "dist/cli/mw.js",
|
|
@@ -91,31 +91,32 @@
|
|
|
91
91
|
"release:major": "npm run version:major && npm run publish:all && npm run release:commit"
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
|
-
"@medicine-wheel/ceremonial-diary": "^0.
|
|
95
|
-
"@medicine-wheel/ceremony-protocol": "^0.
|
|
96
|
-
"@medicine-wheel/community-
|
|
97
|
-
"@medicine-wheel/
|
|
98
|
-
"@medicine-wheel/
|
|
99
|
-
"@medicine-wheel/
|
|
100
|
-
"@medicine-wheel/data-store
|
|
101
|
-
"@medicine-wheel/
|
|
102
|
-
"@medicine-wheel/
|
|
103
|
-
"@medicine-wheel/
|
|
104
|
-
"@medicine-wheel/
|
|
105
|
-
"@medicine-wheel/
|
|
106
|
-
"@medicine-wheel/importance-unit": "^0.
|
|
107
|
-
"@medicine-wheel/mcp": "^4.
|
|
108
|
-
"@medicine-wheel/
|
|
109
|
-
"@medicine-wheel/narrative-
|
|
110
|
-
"@medicine-wheel/
|
|
111
|
-
"@medicine-wheel/
|
|
112
|
-
"@medicine-wheel/
|
|
113
|
-
"@medicine-wheel/
|
|
114
|
-
"@medicine-wheel/relational-
|
|
115
|
-
"@medicine-wheel/
|
|
116
|
-
"@medicine-wheel/
|
|
117
|
-
"@medicine-wheel/
|
|
118
|
-
"@medicine-wheel/
|
|
94
|
+
"@medicine-wheel/ceremonial-diary": "^0.17.0",
|
|
95
|
+
"@medicine-wheel/ceremony-protocol": "^0.17.0",
|
|
96
|
+
"@medicine-wheel/community-identity": "^0.17.0",
|
|
97
|
+
"@medicine-wheel/community-review": "^0.17.0",
|
|
98
|
+
"@medicine-wheel/consent-lifecycle": "^0.17.0",
|
|
99
|
+
"@medicine-wheel/creative-orientation": "^0.17.0",
|
|
100
|
+
"@medicine-wheel/data-store": "^0.17.0",
|
|
101
|
+
"@medicine-wheel/data-store-postgres": "^0.17.0",
|
|
102
|
+
"@medicine-wheel/fire-keeper": "^0.17.0",
|
|
103
|
+
"@medicine-wheel/github-ceremony": "^0.17.0",
|
|
104
|
+
"@medicine-wheel/graph-viz": "^0.17.0",
|
|
105
|
+
"@medicine-wheel/honcho": "^0.17.0",
|
|
106
|
+
"@medicine-wheel/importance-unit": "^0.17.0",
|
|
107
|
+
"@medicine-wheel/mcp": "^4.17.0",
|
|
108
|
+
"@medicine-wheel/memory": "^0.17.0",
|
|
109
|
+
"@medicine-wheel/narrative-cluster": "^0.17.0",
|
|
110
|
+
"@medicine-wheel/narrative-engine": "^0.17.0",
|
|
111
|
+
"@medicine-wheel/ontology-core": "^0.17.0",
|
|
112
|
+
"@medicine-wheel/perception-layer": "^0.17.0",
|
|
113
|
+
"@medicine-wheel/prompt-decomposition": "^0.17.0",
|
|
114
|
+
"@medicine-wheel/relational-index": "^0.17.0",
|
|
115
|
+
"@medicine-wheel/relational-query": "^0.17.0",
|
|
116
|
+
"@medicine-wheel/session-reader": "^0.17.0",
|
|
117
|
+
"@medicine-wheel/storage-provider": "^0.17.0",
|
|
118
|
+
"@medicine-wheel/transformation-tracker": "^0.17.0",
|
|
119
|
+
"@medicine-wheel/ui-components": "^0.17.0",
|
|
119
120
|
"@neondatabase/serverless": "^0.10.0",
|
|
120
121
|
"@xyflow/react": "^12.3.0",
|
|
121
122
|
"clsx": "^2.1.1",
|