@medicine-wheel/community-identity 0.16.0 → 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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @medicine-wheel/community-identity
2
2
 
3
- Who is in the circle. A person is a `human` node on the wheel with `metadata.kind = 'person'` and a `role`; a circle is a `circle` node; membership is a `member_of` edge; ceremonies held in a circle carry `circle_id`; a circle opened for a chronicle episode carries the episode folder name in `episode_path`, the binding a ceremony carries too. Tokens and invitation codes are kept by the consumer (hashed, jsonl or your own store), never on the wheel.
3
+ Who is in the circle. A person is a seat-holder: a `human` node, or an `agent` node when software holds the seat (0.17.0), with `metadata.kind = 'person'` and a `role`. `person.being` says which; the role says only what the seat may do. `personNode({ …, agent: true })` creates an agent's seat, and `speakerKindOf(node)` answers `person` or `agent` for a speaker (an AI role on a `human` node recorded before 0.17.0 still reads as `agent`); a circle is a `circle` node; membership is a `member_of` edge; ceremonies held in a circle carry `circle_id`; a circle opened for a chronicle episode carries the episode folder name in `episode_path`, the binding a ceremony carries too. Tokens and invitation codes are kept by the consumer (hashed, jsonl or your own store), never on the wheel.
4
4
 
5
5
  Roles and the permission map are copied from STPB (`lib/types/roles.ts`): `participant → emerging_guide → ceremony_facilitator → firekeeper → admin`, with `story_keeper` parallel to firekeeper, plus `companion_ai` and `integration_ai`.
6
6
 
package/dist/people.d.ts CHANGED
@@ -1,5 +1,9 @@
1
1
  /**
2
- * A person is a node on the wheel of type `human` whose metadata says so.
2
+ * A person is a seat-holder: a node on the wheel of type `human`, or of type
3
+ * `agent` when software holds the seat (ontology revision 0.17.0,
4
+ * jgwill/medicine-wheel#152), whose metadata says so. "Person" names the seat,
5
+ * not what holds it: `being` says that, and the role says only what the seat
6
+ * may do.
3
7
  *
4
8
  * The wheel had `human` nodes long before this package (participants in
5
9
  * ceremonies were written as `node:human:<ts>:<rand>`); what it could not do
@@ -13,11 +17,17 @@ import { z } from 'zod';
13
17
  import { type Role } from './roles.js';
14
18
  export declare const PERSON_KIND: "person";
15
19
  export type PersonStatus = 'active' | 'deactivated';
20
+ /** What holds a seat: a human being, or an agent (software speaking in ceremony). */
21
+ export type Being = 'human' | 'agent';
22
+ /** Roles that only an AI account holds. An agent recorded as `human` before 0.17.0 is still recognised by them. */
23
+ export declare const AI_ROLES: readonly Role[];
16
24
  export interface Person {
17
25
  /** The node id on the wheel. */
18
26
  id: string;
19
27
  name: string;
20
28
  role: Role;
29
+ /** What holds the seat, read from the node type. */
30
+ being: Being;
21
31
  /** A deactivated person keeps their node and history but cannot sign in. Default `active`. */
22
32
  status: PersonStatus;
23
33
  /** May this person issue their own tokens? An admin turns it on (STPB's `api_access_enabled`). Default off. */
@@ -34,11 +44,14 @@ export declare const NewPersonSchema: z.ZodObject<{
34
44
  email: z.ZodOptional<z.ZodString>;
35
45
  direction: z.ZodOptional<z.ZodEnum<["east", "south", "west", "north"]>>;
36
46
  api_access: z.ZodOptional<z.ZodBoolean>;
47
+ /** Software holds this seat: the node is created as an `agent`. */
48
+ agent: z.ZodOptional<z.ZodBoolean>;
37
49
  }, "strip", z.ZodTypeAny, {
38
50
  name: string;
39
51
  role: "participant" | "emerging_guide" | "ceremony_facilitator" | "firekeeper" | "story_keeper" | "admin" | "companion_ai" | "integration_ai";
40
52
  id?: string | undefined;
41
53
  direction?: "east" | "south" | "west" | "north" | undefined;
54
+ agent?: boolean | undefined;
42
55
  email?: string | undefined;
43
56
  api_access?: boolean | undefined;
44
57
  }, {
@@ -46,11 +59,12 @@ export declare const NewPersonSchema: z.ZodObject<{
46
59
  role: string;
47
60
  id?: string | undefined;
48
61
  direction?: "east" | "south" | "west" | "north" | undefined;
62
+ agent?: boolean | undefined;
49
63
  email?: string | undefined;
50
64
  api_access?: boolean | undefined;
51
65
  }>;
52
66
  export type NewPerson = z.infer<typeof NewPersonSchema>;
53
- export declare function personNodeId(): string;
67
+ export declare function personNodeId(being?: Being): string;
54
68
  /** The node to create on the wheel for a new person. */
55
69
  export declare function personNode(input: NewPerson, now?: string): RelationalNode;
56
70
  /** Read a person back from a node; null when the node is a human that this package does not govern. */
@@ -63,4 +77,10 @@ export declare function deactivatePatch(current?: Record<string, unknown>): Reco
63
77
  export declare function reactivatePatch(current?: Record<string, unknown>): Record<string, unknown>;
64
78
  /** The metadata patch that grants or withdraws API access (the right to issue one's own tokens). */
65
79
  export declare function apiAccessPatch(enabled: boolean, current?: Record<string, unknown>): Record<string, unknown>;
80
+ /**
81
+ * Whose words these are, from the node that spoke them: `agent` for an agent
82
+ * node, or for a `human` node holding an AI role (recorded before 0.17.0);
83
+ * `person` for any other `human` node; undefined for anything else.
84
+ */
85
+ export declare function speakerKindOf(node: RelationalNode | null | undefined): 'person' | 'agent' | undefined;
66
86
  //# sourceMappingURL=people.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"people.d.ts","sourceRoot":"","sources":["../src/people.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,+BAA+B,CAAC;AACnF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAU,KAAK,IAAI,EAAE,MAAM,YAAY,CAAC;AAE/C,eAAO,MAAM,WAAW,EAAG,QAAiB,CAAC;AAE7C,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,aAAa,CAAC;AAEpD,MAAM,WAAW,MAAM;IACrB,gCAAgC;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,IAAI,CAAC;IACX,8FAA8F;IAC9F,MAAM,EAAE,YAAY,CAAC;IACrB,+GAA+G;IAC/G,UAAU,EAAE,OAAO,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,aAAa,CAAC;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACp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,OAAO,CAAC,CAEpG;AAED,iGAAiG;AACjG,wBAAgB,eAAe,CAAC,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAE9F;AAED,iEAAiE;AACjE,wBAAgB,eAAe,CAAC,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAG9F;AAED,oGAAoG;AACpG,wBAAgB,cAAc,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,GAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAE/G;AAED;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,IAAI,EAAE,cAAc,GAAG,IAAI,GAAG,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,CAMrG"}
package/dist/people.js CHANGED
@@ -1,6 +1,10 @@
1
1
  "use strict";
2
2
  /**
3
- * A person is a node on the wheel of type `human` whose metadata says so.
3
+ * A person is a seat-holder: a node on the wheel of type `human`, or of type
4
+ * `agent` when software holds the seat (ontology revision 0.17.0,
5
+ * jgwill/medicine-wheel#152), whose metadata says so. "Person" names the seat,
6
+ * not what holds it: `being` says that, and the role says only what the seat
7
+ * may do.
4
8
  *
5
9
  * The wheel had `human` nodes long before this package (participants in
6
10
  * ceremonies were written as `node:human:<ts>:<rand>`); what it could not do
@@ -10,7 +14,7 @@
10
14
  * wheel; see `credentials.ts`.
11
15
  */
12
16
  Object.defineProperty(exports, "__esModule", { value: true });
13
- exports.NewPersonSchema = exports.PERSON_KIND = void 0;
17
+ exports.NewPersonSchema = exports.AI_ROLES = exports.PERSON_KIND = void 0;
14
18
  exports.personNodeId = personNodeId;
15
19
  exports.personNode = personNode;
16
20
  exports.personFromNode = personFromNode;
@@ -18,9 +22,12 @@ exports.roleGrant = roleGrant;
18
22
  exports.deactivatePatch = deactivatePatch;
19
23
  exports.reactivatePatch = reactivatePatch;
20
24
  exports.apiAccessPatch = apiAccessPatch;
25
+ exports.speakerKindOf = speakerKindOf;
21
26
  const zod_1 = require("zod");
22
27
  const roles_js_1 = require("./roles.js");
23
28
  exports.PERSON_KIND = 'person';
29
+ /** Roles that only an AI account holds. An agent recorded as `human` before 0.17.0 is still recognised by them. */
30
+ exports.AI_ROLES = ['companion_ai', 'integration_ai'];
24
31
  exports.NewPersonSchema = zod_1.z.object({
25
32
  id: zod_1.z.string().trim().min(1).optional(),
26
33
  name: zod_1.z.string().trim().min(1),
@@ -28,16 +35,18 @@ exports.NewPersonSchema = zod_1.z.object({
28
35
  email: zod_1.z.string().trim().email().optional(),
29
36
  direction: zod_1.z.enum(['east', 'south', 'west', 'north']).optional(),
30
37
  api_access: zod_1.z.boolean().optional(),
38
+ /** Software holds this seat: the node is created as an `agent`. */
39
+ agent: zod_1.z.boolean().optional(),
31
40
  });
32
- function personNodeId() {
33
- return `node:human:${Date.now()}:${Math.random().toString(36).slice(2, 8)}`;
41
+ function personNodeId(being = 'human') {
42
+ return `node:${being}:${Date.now()}:${Math.random().toString(36).slice(2, 8)}`;
34
43
  }
35
44
  /** The node to create on the wheel for a new person. */
36
45
  function personNode(input, now = new Date().toISOString()) {
37
46
  return {
38
- id: input.id ?? personNodeId(),
47
+ id: input.id ?? personNodeId(input.agent ? 'agent' : 'human'),
39
48
  name: input.name,
40
- type: 'human',
49
+ type: input.agent ? 'agent' : 'human',
41
50
  ...(input.direction ? { direction: input.direction } : {}),
42
51
  metadata: {
43
52
  kind: exports.PERSON_KIND,
@@ -51,7 +60,7 @@ function personNode(input, now = new Date().toISOString()) {
51
60
  }
52
61
  /** Read a person back from a node; null when the node is a human that this package does not govern. */
53
62
  function personFromNode(node) {
54
- if (!node || node.type !== 'human')
63
+ if (!node || (node.type !== 'human' && node.type !== 'agent'))
55
64
  return null;
56
65
  const meta = node.metadata ?? {};
57
66
  if (meta.kind !== exports.PERSON_KIND || !(0, roles_js_1.isRole)(meta.role))
@@ -60,6 +69,7 @@ function personFromNode(node) {
60
69
  id: node.id,
61
70
  name: node.name,
62
71
  role: meta.role,
72
+ being: node.type === 'agent' ? 'agent' : 'human',
63
73
  status: meta.status === 'deactivated' ? 'deactivated' : 'active',
64
74
  api_access: meta.api_access === true,
65
75
  ...(typeof meta.email === 'string' ? { email: meta.email } : {}),
@@ -85,4 +95,19 @@ function reactivatePatch(current = {}) {
85
95
  function apiAccessPatch(enabled, current = {}) {
86
96
  return { ...current, api_access: enabled };
87
97
  }
98
+ /**
99
+ * Whose words these are, from the node that spoke them: `agent` for an agent
100
+ * node, or for a `human` node holding an AI role (recorded before 0.17.0);
101
+ * `person` for any other `human` node; undefined for anything else.
102
+ */
103
+ function speakerKindOf(node) {
104
+ if (!node)
105
+ return undefined;
106
+ if (node.type === 'agent')
107
+ return 'agent';
108
+ if (node.type !== 'human')
109
+ return undefined;
110
+ const role = node.metadata?.role;
111
+ return typeof role === 'string' && exports.AI_ROLES.includes(role) ? 'agent' : 'person';
112
+ }
88
113
  //# sourceMappingURL=people.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"people.js","sourceRoot":"","sources":["../src/people.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;AAoCH,oCAEC;AAGD,gCAeC;AAGD,wCAeC;AAGD,8BAEC;AAGD,0CAEC;AAGD,0CAGC;AAGD,wCAEC;AA5FD,6BAAwB;AACxB,yCAA+C;AAElC,QAAA,WAAW,GAAG,QAAiB,CAAC;AAmBhC,QAAA,eAAe,GAAG,OAAC,CAAC,MAAM,CAAC;IACtC,EAAE,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACvC,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC9B,IAAI,EAAE,OAAC,CAAC,MAAM,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EAAE,mBAAW,EAAE,IAAI,EAAE,CAAC;AACjD,CAAC;AAED,iGAAiG;AACjG,SAAgB,eAAe,CAAC,UAAmC,EAAE;IACnE,OAAO,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,cAAc,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC;AACzF,CAAC;AAED,iEAAiE;AACjE,SAAgB,eAAe,CAAC,UAAmC,EAAE;IACnE,MAAM,EAAE,cAAc,EAAE,KAAK,EAAE,GAAG,IAAI,EAAE,GAAG,OAAO,CAAC;IACnD,OAAO,EAAE,GAAG,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC;AACvC,CAAC;AAED,oGAAoG;AACpG,SAAgB,cAAc,CAAC,OAAgB,EAAE,UAAmC,EAAE;IACpF,OAAO,EAAE,GAAG,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC;AAC7C,CAAC;AAED;;;;GAIG;AACH,SAAgB,aAAa,CAAC,IAAuC;IACnE,IAAI,CAAC,IAAI;QAAE,OAAO,SAAS,CAAC;IAC5B,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO;QAAE,OAAO,OAAO,CAAC;IAC1C,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO;QAAE,OAAO,SAAS,CAAC;IAC5C,MAAM,IAAI,GAAG,IAAI,CAAC,QAAQ,EAAE,IAAI,CAAC;IACjC,OAAO,OAAO,IAAI,KAAK,QAAQ,IAAK,gBAA8B,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC;AACzG,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@medicine-wheel/community-identity",
3
- "version": "0.16.0",
3
+ "version": "0.17.0",
4
4
  "description": "Who is in the circle: people as wheel nodes, roles with a permission map, circles and memberships as relations, invitations and self-issued credentials kept by the consumer — so a Medicine Wheel can tell two people apart.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -41,7 +41,7 @@
41
41
  "directory": "src/community-identity"
42
42
  },
43
43
  "dependencies": {
44
- "@medicine-wheel/ontology-core": "^0.16.0",
44
+ "@medicine-wheel/ontology-core": "^0.17.0",
45
45
  "zod": "^3.23.0"
46
46
  },
47
47
  "devDependencies": {