@miadi/relational-git-repository-mapper 0.2.0 → 0.4.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 +62 -4
- package/dist/capabilities.d.ts +71 -0
- package/dist/capabilities.js +210 -0
- package/dist/cli.js +139 -7
- package/dist/index.d.ts +6 -1
- package/dist/index.js +32 -1
- package/dist/join.d.ts +7 -5
- package/dist/join.js +25 -9
- package/dist/lineage.d.ts +105 -0
- package/dist/lineage.js +94 -0
- package/dist/read.d.ts +65 -1
- package/dist/read.js +102 -2
- package/dist/scan.d.ts +16 -0
- package/dist/scan.js +65 -0
- package/dist/shipped-capabilities.d.ts +7 -0
- package/dist/shipped-capabilities.js +2371 -0
- package/dist/shipped-lineage.d.ts +2 -0
- package/dist/shipped-lineage.js +15 -0
- package/dist/types.d.ts +11 -0
- package/package.json +7 -3
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export declare const SHIPPED_LINEAGE_SOURCE = "@miadi/relational-git-repository-mapper (shipped)";
|
|
2
|
+
export declare const SHIPPED_LINEAGE_JSONL = "{\"from\":\"repository:jgwill/coaiajs\",\"to\":\"repository:avadisabelle/coaia-narrative\",\"type\":\"learned-from\",\"description\":\"coaiajs holds what the coaia-narrative prototype explored, the narrative context protocol applied to structural tension charts, plus more, and works on its own. Neither depends on the other.\",\"statedBy\":\"William, screenwalk 2610221013, transcribed by mw-rwl-repo (claude-opus-5-5)\",\"statedAt\":\"2026-10-22T10:13:00-04:00\",\"grounding\":[\"miadi-chronicle://297 captures/screenwalk-2610221013-DD-VideoExplainerFeedback-001/transcription-gemini.txt 10:03-10:20, 10:49-11:10\",\"miadi-chronicle://297 captures/screenwalk-2610221013-DD-VideoExplainerFeedback-001/feedback-map.md V5\"],\"revision\":\"pending\"}\n{\"from\":\"repository:jgwill/medicine-wheel\",\"to\":\"repository:avadisabelle/coaia-narrative\",\"type\":\"learned-from\",\"description\":\"The medicine wheel learns from coaia-narrative's exploration of the narrative context protocol on structural tension charts, to implement the same thing with a different way of knowing. It does not depend on coaia-narrative.\",\"statedBy\":\"William, screenwalk 2610221013, transcribed by mw-rwl-repo (claude-opus-5-5)\",\"statedAt\":\"2026-10-22T10:13:00-04:00\",\"grounding\":[\"miadi-chronicle://297 captures/screenwalk-2610221013-DD-VideoExplainerFeedback-001/transcription-gemini.txt 10:49-11:21\",\"miadi-chronicle://297 captures/screenwalk-2610221013-DD-VideoExplainerFeedback-001/feedback-map.md V5\"],\"revision\":\"pending\"}\n{\"from\":\"repository:jgwill/medicine-wheel\",\"to\":\"repository:jgwill/coaiajs\",\"type\":\"learned-from\",\"description\":\"The medicine wheel learns from coaiajs, which holds coaia-narrative's work and more, to implement the same thing with a different way of knowing. It does not depend on coaiajs.\",\"statedBy\":\"William, screenwalk 2610221013, transcribed by mw-rwl-repo (claude-opus-5-5)\",\"statedAt\":\"2026-10-22T10:13:00-04:00\",\"grounding\":[\"miadi-chronicle://297 captures/screenwalk-2610221013-DD-VideoExplainerFeedback-001/transcription-gemini.txt 11:03-11:21\",\"miadi-chronicle://297 captures/screenwalk-2610221013-DD-VideoExplainerFeedback-001/feedback-map.md V5\"],\"revision\":\"pending\"}\n";
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// The lineage this package ships: rows recorded from William's word, read
|
|
3
|
+
// after a host's own file (`--lineage`, `MIADI_REPOSITORY_LINEAGE`). Kept as a module, not a file beside dist/, so it
|
|
4
|
+
// travels with the code into a bundle. One JSON row per line, as in a hub.
|
|
5
|
+
//
|
|
6
|
+
// Source: Episode 297, screenwalk 2610221013 at 10:03-11:21, and the feedback
|
|
7
|
+
// map's V5 and V6. Three lineages applying one principle, none depending on
|
|
8
|
+
// another. Every row is pending until William reads it.
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.SHIPPED_LINEAGE_JSONL = exports.SHIPPED_LINEAGE_SOURCE = void 0;
|
|
11
|
+
exports.SHIPPED_LINEAGE_SOURCE = "@miadi/relational-git-repository-mapper (shipped)";
|
|
12
|
+
exports.SHIPPED_LINEAGE_JSONL = `{"from":"repository:jgwill/coaiajs","to":"repository:avadisabelle/coaia-narrative","type":"learned-from","description":"coaiajs holds what the coaia-narrative prototype explored, the narrative context protocol applied to structural tension charts, plus more, and works on its own. Neither depends on the other.","statedBy":"William, screenwalk 2610221013, transcribed by mw-rwl-repo (claude-opus-5-5)","statedAt":"2026-10-22T10:13:00-04:00","grounding":["miadi-chronicle://297 captures/screenwalk-2610221013-DD-VideoExplainerFeedback-001/transcription-gemini.txt 10:03-10:20, 10:49-11:10","miadi-chronicle://297 captures/screenwalk-2610221013-DD-VideoExplainerFeedback-001/feedback-map.md V5"],"revision":"pending"}
|
|
13
|
+
{"from":"repository:jgwill/medicine-wheel","to":"repository:avadisabelle/coaia-narrative","type":"learned-from","description":"The medicine wheel learns from coaia-narrative's exploration of the narrative context protocol on structural tension charts, to implement the same thing with a different way of knowing. It does not depend on coaia-narrative.","statedBy":"William, screenwalk 2610221013, transcribed by mw-rwl-repo (claude-opus-5-5)","statedAt":"2026-10-22T10:13:00-04:00","grounding":["miadi-chronicle://297 captures/screenwalk-2610221013-DD-VideoExplainerFeedback-001/transcription-gemini.txt 10:49-11:21","miadi-chronicle://297 captures/screenwalk-2610221013-DD-VideoExplainerFeedback-001/feedback-map.md V5"],"revision":"pending"}
|
|
14
|
+
{"from":"repository:jgwill/medicine-wheel","to":"repository:jgwill/coaiajs","type":"learned-from","description":"The medicine wheel learns from coaiajs, which holds coaia-narrative's work and more, to implement the same thing with a different way of knowing. It does not depend on coaiajs.","statedBy":"William, screenwalk 2610221013, transcribed by mw-rwl-repo (claude-opus-5-5)","statedAt":"2026-10-22T10:13:00-04:00","grounding":["miadi-chronicle://297 captures/screenwalk-2610221013-DD-VideoExplainerFeedback-001/transcription-gemini.txt 11:03-11:21","miadi-chronicle://297 captures/screenwalk-2610221013-DD-VideoExplainerFeedback-001/feedback-map.md V5"],"revision":"pending"}
|
|
15
|
+
`;
|
package/dist/types.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { FeatureFacet, LifecycleReading, RelationRow, RepositoryFacet } from "@medicine-wheel/developer-repository-mapping";
|
|
2
2
|
import type { HubStatus } from "@medicine-wheel/developer-repository-mapping/node";
|
|
3
|
+
import type { CapabilityFacet } from "@medicine-wheel/capabilities";
|
|
4
|
+
import type { CapabilityKind } from "./capabilities";
|
|
5
|
+
import type { RepositoryLineage } from "./lineage";
|
|
3
6
|
/** One session that worked in a repository, as its inventory record says it, by title. */
|
|
4
7
|
export interface RepositorySession {
|
|
5
8
|
session_id: string;
|
|
@@ -55,6 +58,12 @@ export interface RepositoryView {
|
|
|
55
58
|
relations: RelationRow[];
|
|
56
59
|
/** newest first */
|
|
57
60
|
sessions: RepositorySession[];
|
|
61
|
+
/** what it learned from, and who learned from it */
|
|
62
|
+
lineage: RepositoryLineage;
|
|
63
|
+
/** what it provides: its packages, CLIs and skills */
|
|
64
|
+
capabilities: (CapabilityFacet & {
|
|
65
|
+
kind?: CapabilityKind;
|
|
66
|
+
})[];
|
|
58
67
|
}
|
|
59
68
|
export interface RepositorySummary {
|
|
60
69
|
nodeId: string;
|
|
@@ -64,6 +73,8 @@ export interface RepositorySummary {
|
|
|
64
73
|
lifecycle?: string;
|
|
65
74
|
drift?: string;
|
|
66
75
|
sessions: number;
|
|
76
|
+
/** how many capabilities it provides */
|
|
77
|
+
capabilities: number;
|
|
67
78
|
/** the newest session's date */
|
|
68
79
|
last_session?: string;
|
|
69
80
|
/** distinct teams of its sessions, sorted */
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@miadi/relational-git-repository-mapper",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "A git repository as Miadi sees it (git, never a database Repository or Data Mapper): the rows its owner hub holds (@medicine-wheel/developer-repository-mapping) beside the agent sessions that worked in it (the witness team's session inventory), joined by owner/name.",
|
|
3
|
+
"version": "0.4.0",
|
|
4
|
+
"description": "A git repository as Miadi sees it (git, never a database Repository or Data Mapper): the rows its owner hub holds (@medicine-wheel/developer-repository-mapping) beside the agent sessions that worked in it (the witness team's session inventory), joined by owner/name; which git repository learned from which (a lineage, never a dependency); and what each provides, its packages, CLIs and skills as capability nodes.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Miadi",
|
|
7
7
|
"homepage": "https://github.com/jgwill/Miadi/tree/main/packages/relational-git-repository-mapper",
|
|
@@ -28,8 +28,10 @@
|
|
|
28
28
|
"README.md"
|
|
29
29
|
],
|
|
30
30
|
"dependencies": {
|
|
31
|
+
"@medicine-wheel/capabilities": "^0.25.0",
|
|
31
32
|
"@medicine-wheel/developer-repository-mapping": "^0.25.0",
|
|
32
|
-
"@miadi/hooks-interpreter": "^0.
|
|
33
|
+
"@miadi/hooks-interpreter": "^0.8.0",
|
|
34
|
+
"zod": "^3.23.0"
|
|
33
35
|
},
|
|
34
36
|
"devDependencies": {
|
|
35
37
|
"@types/node": "^22.0.0",
|
|
@@ -44,6 +46,8 @@
|
|
|
44
46
|
"keywords": [
|
|
45
47
|
"miadi",
|
|
46
48
|
"git-repository",
|
|
49
|
+
"lineage",
|
|
50
|
+
"capabilities",
|
|
47
51
|
"repository-mapping",
|
|
48
52
|
"session-inventory",
|
|
49
53
|
"medicine-wheel",
|