@mnmal-ai/cortext 0.0.0 → 1.0.0-alpha.1
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/LICENSE +202 -0
- package/README.md +70 -1
- package/config.schema.json +62 -0
- package/default-config.json +10 -0
- package/dist/auth-policy.d.ts +44 -0
- package/dist/bootstrap.d.ts +36 -0
- package/dist/bootstrap.js +69 -0
- package/dist/compact.d.ts +37 -0
- package/dist/config.d.ts +40 -0
- package/dist/index.d.ts +33 -0
- package/dist/index.js +5 -0
- package/dist/kernel/bootstrap.d.ts +11 -0
- package/dist/kernel/cortext-namespace.d.ts +96 -0
- package/dist/kernel/index.d.ts +15 -0
- package/dist/kernel/invariant-audit.d.ts +190 -0
- package/dist/kernel/migrations/0001_baseline.d.ts +11 -0
- package/dist/kernel/plugin.d.ts +29 -0
- package/dist/kernel/repair.d.ts +94 -0
- package/dist/kernel/rescope.d.ts +87 -0
- package/dist/kernel/substrate-contract.d.ts +19 -0
- package/dist/kernel/todo-vocab.d.ts +17 -0
- package/dist/kernel-bootstrap.js +21 -0
- package/dist/kernel-invariants.d.ts +62 -0
- package/dist/kernel.js +3 -0
- package/dist/mailbox.d.ts +80 -0
- package/dist/namespace.d.ts +159 -0
- package/dist/nl-rulings.d.ts +76 -0
- package/dist/onboard.d.ts +15 -0
- package/dist/participants.d.ts +32 -0
- package/dist/plugin-27UpMnoE.js +811 -0
- package/dist/release-surface.d.ts +206 -0
- package/dist/src-BKaGTnRw.js +1931 -0
- package/dist/todo-resolution.d.ts +18 -0
- package/kernel.config.schema.json +8 -0
- package/kernel.default-config.json +1 -0
- package/package.json +80 -4
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Infer why a closed Todo stopped, for the one-off `resolution` backfill.
|
|
3
|
+
*
|
|
4
|
+
* Closure statements LEAD with the outcome ("DONE via PR #12", "Superseded by
|
|
5
|
+
* #34", "[FIXED + VERIFIED LIVE]"), while the prose after them mentions
|
|
6
|
+
* every other word in passing: a note that shipped a fix can still say
|
|
7
|
+
* "dropped", "stale" or "duplicate" two paragraphs down. So the cue that
|
|
8
|
+
* appears EARLIEST in the title plus the opening of the notes wins, and a
|
|
9
|
+
* cue buried deeper counts for nothing. No cue -> `unspecified`, never a guess.
|
|
10
|
+
*/
|
|
11
|
+
import type { TODO_RESOLUTION_VOCAB } from './kernel/index.js';
|
|
12
|
+
export type TodoResolution = (typeof TODO_RESOLUTION_VOCAB)[number];
|
|
13
|
+
export interface ClosedTodoText {
|
|
14
|
+
title?: string | null;
|
|
15
|
+
notes?: string | null;
|
|
16
|
+
body?: string | null;
|
|
17
|
+
}
|
|
18
|
+
export declare function inferTodoResolution(todo: ClosedTodoText): TodoResolution;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"title": "CortextKernel operator configuration",
|
|
4
|
+
"description": "No operator-overridable knobs today. The plugin contributes a static migration list; reserved for future schema-level controls if needed.",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"additionalProperties": false,
|
|
7
|
+
"properties": {}
|
|
8
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
package/package.json
CHANGED
|
@@ -1,7 +1,83 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mnmal-ai/cortext",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.0-alpha.1",
|
|
4
|
+
"description": "Cortext: the agent-neutral coordination context store for Substrate (Todos, Decisions, SessionLogs, AgentRules, Memory, Concepts, Councils, …) plus architecture findings. One package carrying two plugins: the coordinator that registers the namespaces, and the kernel plugin that owns their Postgres invariants.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
|
-
"
|
|
7
|
-
|
|
6
|
+
"repository": {
|
|
7
|
+
"type": "git",
|
|
8
|
+
"url": "git+https://github.com/mnmal-ai/synoptic.git",
|
|
9
|
+
"directory": "packages/cortext"
|
|
10
|
+
},
|
|
11
|
+
"type": "module",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": {
|
|
14
|
+
"import": "./dist/index.js",
|
|
15
|
+
"types": "./dist/index.d.ts"
|
|
16
|
+
},
|
|
17
|
+
"./bootstrap": {
|
|
18
|
+
"import": "./dist/bootstrap.js",
|
|
19
|
+
"types": "./dist/bootstrap.d.ts"
|
|
20
|
+
},
|
|
21
|
+
"./kernel": {
|
|
22
|
+
"import": "./dist/kernel.js",
|
|
23
|
+
"types": "./dist/kernel/index.d.ts"
|
|
24
|
+
},
|
|
25
|
+
"./kernel-bootstrap": {
|
|
26
|
+
"import": "./dist/kernel-bootstrap.js",
|
|
27
|
+
"types": "./dist/kernel/bootstrap.d.ts"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"substrate": {
|
|
31
|
+
"plugins": [
|
|
32
|
+
{
|
|
33
|
+
"name": "kernel",
|
|
34
|
+
"tier": "kernel",
|
|
35
|
+
"entry": "./dist/kernel-bootstrap.js",
|
|
36
|
+
"configSchema": "./kernel.config.schema.json",
|
|
37
|
+
"defaultConfig": "./kernel.default-config.json"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "coordinator",
|
|
41
|
+
"tier": "coordinator",
|
|
42
|
+
"configBasename": "cortext",
|
|
43
|
+
"entry": "./dist/bootstrap.js",
|
|
44
|
+
"configSchema": "./config.schema.json",
|
|
45
|
+
"defaultConfig": "./default-config.json"
|
|
46
|
+
}
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
"files": [
|
|
50
|
+
"dist",
|
|
51
|
+
"default-config.json",
|
|
52
|
+
"config.schema.json",
|
|
53
|
+
"kernel.default-config.json",
|
|
54
|
+
"kernel.config.schema.json"
|
|
55
|
+
],
|
|
56
|
+
"publishConfig": {
|
|
57
|
+
"registry": "https://registry.npmjs.org/",
|
|
58
|
+
"access": "public"
|
|
59
|
+
},
|
|
60
|
+
"dependencies": {
|
|
61
|
+
"postgres": "3.4.9",
|
|
62
|
+
"zod": "^4.6.5"
|
|
63
|
+
},
|
|
64
|
+
"peerDependencies": {
|
|
65
|
+
"@mnmal-ai/substrate": ">=1.0.0-alpha.0 <2.0.0"
|
|
66
|
+
},
|
|
67
|
+
"devDependencies": {
|
|
68
|
+
"@mnmal-ai/substrate": "1.0.0-alpha.0",
|
|
69
|
+
"@types/node": "^26.6.4",
|
|
70
|
+
"tsdown": "^0.23.0",
|
|
71
|
+
"typescript": "^7.0.2",
|
|
72
|
+
"vitest": "^5.0.3"
|
|
73
|
+
},
|
|
74
|
+
"engines": {
|
|
75
|
+
"node": ">=26.2.0"
|
|
76
|
+
},
|
|
77
|
+
"scripts": {
|
|
78
|
+
"build": "tsdown && tsc -p tsconfig.dts.json",
|
|
79
|
+
"test": "vitest run",
|
|
80
|
+
"check-types": "tsc -p tsconfig.json --noEmit",
|
|
81
|
+
"lint": "biome check ."
|
|
82
|
+
}
|
|
83
|
+
}
|