@medicine-wheel/ceremony-protocol 0.4.8 → 0.4.11
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/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/dist/production.d.ts +46 -0
- package/dist/production.d.ts.map +1 -0
- package/dist/production.js +116 -0
- package/dist/production.js.map +1 -0
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -70,4 +70,6 @@ export type CeremonyGateResult = CeremonyGateError | CeremonyGatePass;
|
|
|
70
70
|
* @returns Gate result — either blocked with reason, or pass
|
|
71
71
|
*/
|
|
72
72
|
export declare function enforceCeremonyGate(filePath: string, config: GovernanceConfig): CeremonyGateResult;
|
|
73
|
+
export type { ProductionStage, ProductionProtocolStep, ProductionProtocolStage, ProductionSession, } from './production.js';
|
|
74
|
+
export { PRODUCTION_STAGE_ORDER, STAGE_TO_PHASE, RELATIONAL_PRODUCTION_PROTOCOL, openProductionSession, advanceProductionStage, closeProductionSession, } from './production.js';
|
|
73
75
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,UAAU,EACV,aAAa,EACb,OAAO,EACP,gBAAgB,EAChB,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AAIvC,MAAM,WAAW,aAAa;IAC5B,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,aAAa,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,8CAA8C;AAC9C,wBAAgB,iBAAiB,CAAC,MAAM,EAAE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sBAAsB,EACtB,cAAc,EACd,8BAA8B,EAC9B,qBAAqB,EACrB,sBAAsB,EACtB,sBAAsB,GACvB,MAAM,iBAAiB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* governance enforcement, and ceremonial review workflows.
|
|
7
7
|
*/
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.closeProductionSession = exports.advanceProductionStage = exports.openProductionSession = exports.RELATIONAL_PRODUCTION_PROTOCOL = exports.STAGE_TO_PHASE = exports.PRODUCTION_STAGE_ORDER = void 0;
|
|
9
10
|
exports.loadCeremonyState = loadCeremonyState;
|
|
10
11
|
exports.nextPhase = nextPhase;
|
|
11
12
|
exports.getPhaseFraming = getPhaseFraming;
|
|
@@ -169,4 +170,11 @@ function enforceCeremonyGate(filePath, config) {
|
|
|
169
170
|
}
|
|
170
171
|
return { blocked: false };
|
|
171
172
|
}
|
|
173
|
+
var production_js_1 = require("./production.js");
|
|
174
|
+
Object.defineProperty(exports, "PRODUCTION_STAGE_ORDER", { enumerable: true, get: function () { return production_js_1.PRODUCTION_STAGE_ORDER; } });
|
|
175
|
+
Object.defineProperty(exports, "STAGE_TO_PHASE", { enumerable: true, get: function () { return production_js_1.STAGE_TO_PHASE; } });
|
|
176
|
+
Object.defineProperty(exports, "RELATIONAL_PRODUCTION_PROTOCOL", { enumerable: true, get: function () { return production_js_1.RELATIONAL_PRODUCTION_PROTOCOL; } });
|
|
177
|
+
Object.defineProperty(exports, "openProductionSession", { enumerable: true, get: function () { return production_js_1.openProductionSession; } });
|
|
178
|
+
Object.defineProperty(exports, "advanceProductionStage", { enumerable: true, get: function () { return production_js_1.advanceProductionStage; } });
|
|
179
|
+
Object.defineProperty(exports, "closeProductionSession", { enumerable: true, get: function () { return production_js_1.closeProductionSession; } });
|
|
172
180
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAsBH,8CAOC;AAOD,8BAIC;AAGD,0CAaC;AAKD,0CAcC;AAGD,0CASC;AAGD,sDASC;AAGD,wCAKC;AAGD,0DAGC;AA4BD,8CAMC;AAGD,0DAeC;AAmCD,kDA0BC;AA7MD,8CAA8C;AAC9C,SAAgB,iBAAiB,CAAC,MAAkB;IAClD,IAAI,CAAC,MAAM,CAAC,QAAQ;QAAE,OAAO,IAAI,CAAC;IAClC,OAAO;QACL,YAAY,EAAE,MAAM,CAAC,QAAQ,CAAC,aAAa,IAAI,SAAS;QACxD,OAAO,EAAE,MAAM,CAAC,QAAQ,CAAC,QAAQ,IAAI,gBAAgB;QACrD,KAAK,EAAE,MAAM,CAAC,QAAQ,CAAC,KAAK,IAAI,SAAS;KAC1C,CAAC;AACJ,CAAC;AAED,+EAA+E;AAE/E,MAAM,WAAW,GAAoB,CAAC,SAAS,EAAE,SAAS,EAAE,aAAa,EAAE,SAAS,CAAC,CAAC;AAEtF,kCAAkC;AAClC,SAAgB,SAAS,CAAC,OAAsB;IAC9C,MAAM,GAAG,GAAG,WAAW,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACzC,IAAI,GAAG,GAAG,CAAC,IAAI,GAAG,IAAI,WAAW,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,IAAI,CAAC;IAC1D,OAAO,WAAW,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;AAC9B,CAAC;AAED,uDAAuD;AACvD,SAAgB,eAAe,CAAC,KAAqB;IACnD,QAAQ,KAAK,EAAE,CAAC;QACd,KAAK,SAAS;YACZ,OAAO,sEAAsE,CAAC;QAChF,KAAK,SAAS;YACZ,OAAO,+DAA+D,CAAC;QACzE,KAAK,aAAa;YAChB,OAAO,gEAAgE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,EAAE,MAAM,CAAC,EAAE,CAAC;QAC5C,OAAO;YACL,OAAO,EAAE,IAAI;YACb,MAAM,EAAE,SAAS,QAAQ,yDAAyD;YAClF,IAAI,EAAE,IAAI;YACV,iBAAiB,EAAE,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,kBAAkB,CAAC;SAChE,CAAC;IACJ,CAAC;IAED,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AAC5B,CAAC;AASD,iDAOyB;AANvB,uHAAA,sBAAsB,OAAA;AACtB,+GAAA,cAAc,OAAA;AACd,+HAAA,8BAA8B,OAAA;AAC9B,sHAAA,qBAAqB,OAAA;AACrB,uHAAA,sBAAsB,OAAA;AACtB,uHAAA,sBAAsB,OAAA"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @medicine-wheel/ceremony-protocol — Relational Production Protocol
|
|
3
|
+
*
|
|
4
|
+
* A ceremony-style protocol for entering and closing creative production
|
|
5
|
+
* sessions (Research is Ceremony — Renaud thread). Production stages map onto
|
|
6
|
+
* the existing CeremonyPhase machinery, so a production session is a first-class
|
|
7
|
+
* ceremony rather than an ad-hoc run. Closure is gated: ceremony cannot be
|
|
8
|
+
* skipped.
|
|
9
|
+
*/
|
|
10
|
+
import type { CeremonyPhase } from '@medicine-wheel/ontology-core';
|
|
11
|
+
export type ProductionStage = 'pre-production' | 'on-set' | 'post-production' | 'closure';
|
|
12
|
+
export interface ProductionProtocolStep {
|
|
13
|
+
prompt: string;
|
|
14
|
+
honors: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ProductionProtocolStage {
|
|
17
|
+
stage: ProductionStage;
|
|
18
|
+
ceremonyPhase: CeremonyPhase;
|
|
19
|
+
steps: ProductionProtocolStep[];
|
|
20
|
+
}
|
|
21
|
+
export declare const PRODUCTION_STAGE_ORDER: ProductionStage[];
|
|
22
|
+
/** Production stages reuse the existing four ceremony phases. */
|
|
23
|
+
export declare const STAGE_TO_PHASE: Record<ProductionStage, CeremonyPhase>;
|
|
24
|
+
/** The four-stage Relational Production Protocol drafted in episode 066. */
|
|
25
|
+
export declare const RELATIONAL_PRODUCTION_PROTOCOL: ProductionProtocolStage[];
|
|
26
|
+
export interface ProductionSession {
|
|
27
|
+
id: string;
|
|
28
|
+
intention: string;
|
|
29
|
+
participants: string[];
|
|
30
|
+
stage: ProductionStage;
|
|
31
|
+
openedAt: string;
|
|
32
|
+
closedAt?: string;
|
|
33
|
+
/** Stages that have been entered and honored, in order. */
|
|
34
|
+
stagesHonored: ProductionStage[];
|
|
35
|
+
reflections: string[];
|
|
36
|
+
}
|
|
37
|
+
/** Open a production session at the pre-production stage. */
|
|
38
|
+
export declare function openProductionSession(intention: string, participants?: string[]): ProductionSession;
|
|
39
|
+
/** Advance to the next stage, recording it as honored. No-op at closure. */
|
|
40
|
+
export declare function advanceProductionStage(session: ProductionSession): ProductionSession;
|
|
41
|
+
/**
|
|
42
|
+
* Close a production session. Refuses to close unless every stage was honored —
|
|
43
|
+
* ceremony cannot be skipped.
|
|
44
|
+
*/
|
|
45
|
+
export declare function closeProductionSession(session: ProductionSession, reflections?: string[]): ProductionSession;
|
|
46
|
+
//# sourceMappingURL=production.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"production.d.ts","sourceRoot":"","sources":["../src/production.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAEnE,MAAM,MAAM,eAAe,GAAG,gBAAgB,GAAG,QAAQ,GAAG,iBAAiB,GAAG,SAAS,CAAC;AAE1F,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,eAAe,CAAC;IACvB,aAAa,EAAE,aAAa,CAAC;IAC7B,KAAK,EAAE,sBAAsB,EAAE,CAAC;CACjC;AAED,eAAO,MAAM,sBAAsB,EAAE,eAAe,EAKnD,CAAC;AAEF,iEAAiE;AACjE,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,eAAe,EAAE,aAAa,CAKjE,CAAC;AAEF,4EAA4E;AAC5E,eAAO,MAAM,8BAA8B,EAAE,uBAAuB,EAsDnE,CAAC;AAEF,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,KAAK,EAAE,eAAe,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,2DAA2D;IAC3D,aAAa,EAAE,eAAe,EAAE,CAAC;IACjC,WAAW,EAAE,MAAM,EAAE,CAAC;CACvB;AAED,6DAA6D;AAC7D,wBAAgB,qBAAqB,CACnC,SAAS,EAAE,MAAM,EACjB,YAAY,GAAE,MAAM,EAAO,GAC1B,iBAAiB,CAUnB;AAED,4EAA4E;AAC5E,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,iBAAiB,GAAG,iBAAiB,CAQpF;AAED;;;GAGG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,iBAAiB,EAC1B,WAAW,GAAE,MAAM,EAAO,GACzB,iBAAiB,CAcnB"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.RELATIONAL_PRODUCTION_PROTOCOL = exports.STAGE_TO_PHASE = exports.PRODUCTION_STAGE_ORDER = void 0;
|
|
4
|
+
exports.openProductionSession = openProductionSession;
|
|
5
|
+
exports.advanceProductionStage = advanceProductionStage;
|
|
6
|
+
exports.closeProductionSession = closeProductionSession;
|
|
7
|
+
exports.PRODUCTION_STAGE_ORDER = [
|
|
8
|
+
'pre-production',
|
|
9
|
+
'on-set',
|
|
10
|
+
'post-production',
|
|
11
|
+
'closure',
|
|
12
|
+
];
|
|
13
|
+
/** Production stages reuse the existing four ceremony phases. */
|
|
14
|
+
exports.STAGE_TO_PHASE = {
|
|
15
|
+
'pre-production': 'opening',
|
|
16
|
+
'on-set': 'council',
|
|
17
|
+
'post-production': 'integration',
|
|
18
|
+
closure: 'closure',
|
|
19
|
+
};
|
|
20
|
+
/** The four-stage Relational Production Protocol drafted in episode 066. */
|
|
21
|
+
exports.RELATIONAL_PRODUCTION_PROTOCOL = [
|
|
22
|
+
{
|
|
23
|
+
stage: 'pre-production',
|
|
24
|
+
ceremonyPhase: 'opening',
|
|
25
|
+
steps: [
|
|
26
|
+
{ prompt: 'What relationship are we honoring through this work?', honors: 'relational accountability' },
|
|
27
|
+
{ prompt: 'What knowledge seeks to emerge through this session?', honors: 'epistemic humility' },
|
|
28
|
+
{
|
|
29
|
+
prompt: 'Brief agents on the storyteller signature to preserve and what cannot be extracted.',
|
|
30
|
+
honors: 'creative signature',
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
prompt: 'Seed 3–5 core themes / visual metaphors / sonic environments.',
|
|
34
|
+
honors: 'narrative intent',
|
|
35
|
+
},
|
|
36
|
+
],
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
stage: 'on-set',
|
|
40
|
+
ceremonyPhase: 'council',
|
|
41
|
+
steps: [
|
|
42
|
+
{
|
|
43
|
+
prompt: 'Log director intent, ambient context, and relational moments as witnessed events.',
|
|
44
|
+
honors: 'witnessing not extraction',
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
prompt: 'Pause: are we maintaining relationship with our intent? What is emerging unbidden?',
|
|
48
|
+
honors: 'presence',
|
|
49
|
+
},
|
|
50
|
+
],
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
stage: 'post-production',
|
|
54
|
+
ceremonyPhase: 'integration',
|
|
55
|
+
steps: [
|
|
56
|
+
{ prompt: 'Run rushes through narrative clustering; identify the story spine.', honors: 'narrative cognition' },
|
|
57
|
+
{
|
|
58
|
+
prompt: 'Validate outputs against the storyteller gate; return voiceless output for revision.',
|
|
59
|
+
honors: 'quality as ceremony',
|
|
60
|
+
},
|
|
61
|
+
],
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
stage: 'closure',
|
|
65
|
+
ceremonyPhase: 'closure',
|
|
66
|
+
steps: [
|
|
67
|
+
{ prompt: 'What knowledge emerged through this relationship?', honors: 'reciprocity' },
|
|
68
|
+
{ prompt: 'What contextual signatures should persist into future sessions?', honors: 'memory' },
|
|
69
|
+
{
|
|
70
|
+
prompt: 'Acknowledge all relationships that made this work possible; release with gratitude.',
|
|
71
|
+
honors: 'gratitude',
|
|
72
|
+
},
|
|
73
|
+
],
|
|
74
|
+
},
|
|
75
|
+
];
|
|
76
|
+
/** Open a production session at the pre-production stage. */
|
|
77
|
+
function openProductionSession(intention, participants = []) {
|
|
78
|
+
return {
|
|
79
|
+
id: `production-session:${Date.now()}`,
|
|
80
|
+
intention,
|
|
81
|
+
participants,
|
|
82
|
+
stage: 'pre-production',
|
|
83
|
+
openedAt: new Date().toISOString(),
|
|
84
|
+
stagesHonored: ['pre-production'],
|
|
85
|
+
reflections: [],
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
/** Advance to the next stage, recording it as honored. No-op at closure. */
|
|
89
|
+
function advanceProductionStage(session) {
|
|
90
|
+
const idx = exports.PRODUCTION_STAGE_ORDER.indexOf(session.stage);
|
|
91
|
+
if (idx < 0 || idx >= exports.PRODUCTION_STAGE_ORDER.length - 1)
|
|
92
|
+
return session;
|
|
93
|
+
const next = exports.PRODUCTION_STAGE_ORDER[idx + 1];
|
|
94
|
+
const stagesHonored = session.stagesHonored.includes(next)
|
|
95
|
+
? session.stagesHonored
|
|
96
|
+
: [...session.stagesHonored, next];
|
|
97
|
+
return { ...session, stage: next, stagesHonored };
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Close a production session. Refuses to close unless every stage was honored —
|
|
101
|
+
* ceremony cannot be skipped.
|
|
102
|
+
*/
|
|
103
|
+
function closeProductionSession(session, reflections = []) {
|
|
104
|
+
const missing = exports.PRODUCTION_STAGE_ORDER.filter((s) => !session.stagesHonored.includes(s));
|
|
105
|
+
if (missing.length > 0) {
|
|
106
|
+
throw new Error(`Cannot close production session: ceremony cannot be skipped. ` +
|
|
107
|
+
`Stages not yet honored: ${missing.join(', ')}. Advance through each stage first.`);
|
|
108
|
+
}
|
|
109
|
+
return {
|
|
110
|
+
...session,
|
|
111
|
+
stage: 'closure',
|
|
112
|
+
closedAt: new Date().toISOString(),
|
|
113
|
+
reflections: [...session.reflections, ...reflections],
|
|
114
|
+
};
|
|
115
|
+
}
|
|
116
|
+
//# sourceMappingURL=production.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"production.js","sourceRoot":"","sources":["../src/production.ts"],"names":[],"mappings":";;;AA6GA,sDAaC;AAGD,wDAQC;AAMD,wDAiBC;AApIY,QAAA,sBAAsB,GAAsB;IACvD,gBAAgB;IAChB,QAAQ;IACR,iBAAiB;IACjB,SAAS;CACV,CAAC;AAEF,iEAAiE;AACpD,QAAA,cAAc,GAA2C;IACpE,gBAAgB,EAAE,SAAS;IAC3B,QAAQ,EAAE,SAAS;IACnB,iBAAiB,EAAE,aAAa;IAChC,OAAO,EAAE,SAAS;CACnB,CAAC;AAEF,4EAA4E;AAC/D,QAAA,8BAA8B,GAA8B;IACvE;QACE,KAAK,EAAE,gBAAgB;QACvB,aAAa,EAAE,SAAS;QACxB,KAAK,EAAE;YACL,EAAE,MAAM,EAAE,sDAAsD,EAAE,MAAM,EAAE,2BAA2B,EAAE;YACvG,EAAE,MAAM,EAAE,sDAAsD,EAAE,MAAM,EAAE,oBAAoB,EAAE;YAChG;gBACE,MAAM,EAAE,qFAAqF;gBAC7F,MAAM,EAAE,oBAAoB;aAC7B;YACD;gBACE,MAAM,EAAE,+DAA+D;gBACvE,MA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C,IAAI,GAAG,IAAI,8BAAsB,CAAC,MAAM,GAAG,CAAC;QAAE,OAAO,OAAO,CAAC;IACxE,MAAM,IAAI,GAAG,8BAAsB,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC;IAC7C,MAAM,aAAa,GAAG,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,IAAI,CAAC;QACxD,CAAC,CAAC,OAAO,CAAC,aAAa;QACvB,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;IACrC,OAAO,EAAE,GAAG,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,aAAa,EAAE,CAAC;AACpD,CAAC;AAED;;;GAGG;AACH,SAAgB,sBAAsB,CACpC,OAA0B,EAC1B,cAAwB,EAAE;IAE1B,MAAM,OAAO,GAAG,8BAAsB,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;IACzF,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACvB,MAAM,IAAI,KAAK,CACb,+DAA+D;YAC7D,2BAA2B,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,qCAAqC,CACrF,CAAC;IACJ,CAAC;IACD,OAAO;QACL,GAAG,OAAO;QACV,KAAK,EAAE,SAAS;QAChB,QAAQ,EAAE,IAAI,IAAI,EAAE,CAAC,WAAW,EAAE;QAClC,WAAW,EAAE,CAAC,GAAG,OAAO,CAAC,WAAW,EAAE,GAAG,WAAW,CAAC;KACtD,CAAC;AACJ,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medicine-wheel/ceremony-protocol",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.11",
|
|
4
4
|
"description": "Ceremony lifecycle protocol for Medicine Wheel — manages ceremony state, phase transitions, governance enforcement, and ceremonial review workflows",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"README.md"
|
|
24
24
|
],
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@medicine-wheel/ontology-core": "^0.4.
|
|
26
|
+
"@medicine-wheel/ontology-core": "^0.4.11"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"typescript": "^5.4.0"
|