@miadi/connector 0.1.37 → 0.1.38
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 +2 -1
- package/dist/approve.d.ts +1 -1
- package/dist/approve.js +22 -4
- package/dist/local-transcription.js +3 -3
- package/dist/record-shares.d.ts +48 -0
- package/dist/record-shares.js +60 -0
- package/dist/server.d.ts +2 -2
- package/dist/server.js +1 -1
- package/dist/tools.js +14 -3
- package/dist/transcript-job.d.ts +7 -1
- package/dist/transcript-job.js +44 -9
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -29,6 +29,7 @@ Call `get_capabilities` first. It names the signed-in person, their Miadi API ti
|
|
|
29
29
|
- **Episode files.** `get_evidence` lists an episode's files; each text file Miadi can preview carries a `read_ref` (`miadi-chronicle://<n>/<path>`). `read_episode_file` (or `fetch` with that ref) returns the file's whole UTF-8 text, read as the person through Miadi's file door, so Miadi's audience and room rules apply. The answer names the episode, the path, the content type, the byte count and the sha256, and `verified` says whether the text received hashes to what Miadi read. Only md, txt, yaml, yml and json files up to 512 KiB are read. A traversal, absolute, hidden or encoded path is refused before any URL is built. A longer text comes in pages cut on character boundaries: pass `page.next` back, and the joined pages hash to `sha256`. Other kinds answer `unsupported`, a file over the limit `too_large`, a missing one `not_found`, a ceremony note below the write gate `forbidden`.
|
|
30
30
|
- **One narrow grant.** A person with no Miadi API tier who holds `chronicle_foundations_read` (ticked by an admin under /admin → People → Additional permissions; admins hold it through their role) reaches `read_episode_file` for foundation documents only: `foundations/<topic>/*.md`, read through Miadi's `GET /api/chronicle/episodes/<ref>/foundations/<topic>/<file>.md`, which checks the permission on every read. Naming the episode alone lists them. Every other file and every other tool stays refused, and the permission gives no API tier. Unticking it refuses the next read. `get_capabilities` reports it under `foundation_read`, from Miadi's answer at that moment.
|
|
31
31
|
- **Contributions** need Miadi's read tier and the `miadi:contribute` scope, chosen at sign-in. A record is moved on (`update_handoff`) only by its author or the write tier, and a request's receipt comes only from its decision. They append a record to the ledger and change nothing else, except `save_research`: it saves a report on the inquiry shelf as a new folder (the Markdown exactly as given, owner and visibility recorded, private by default), opens the folder's inquiry issue, and commits and pushes the folder in the shelf's repository. A long report is sent in parts (`part`, `parts`, `upload_id`) and saved when the last part arrives; the answer returns its bytes, sha256 and first and last lines.
|
|
32
|
+
- **Sharing a record.** A record's author shares it with a talking circle or one person by linking from it: `link_records` with `from` the record's id, `to` `miadi-circle:<circle id>` or the person's id, and `relation` `shared_with`. `share_withdrawn`, from the same record to the same reader, ends the share. Only the author's links count, and `link_records` refuses a share from anyone else. The record's page (`/records/<id>`) admits its author, the people and members of the circles it is shared with (their circles read from Miadi on every read), and the read tier, and it says how the reader was admitted. Miadi's `/research` lists what is shared with a person under Shared.
|
|
32
33
|
- **Requests** append a record that waits for a decision. The answer gives an `approval_url`; Miadi's `/research` page offers the same decisions to a signed-in person with the write tier, and `show_decisions` shows them as cards inside the conversation (below). The person approves, approves with changes (their instructions are carried into what runs), sends it back for revision with instructions (`revision_requested`, nothing runs, `get_run_result` returns the instructions), or declines. Only the approval door runs a request, once, as that person; a second decision on the same request, at the same time or later, is refused:
|
|
33
34
|
- a run becomes a brief in the factory queue, which the intake delivers to a session;
|
|
34
35
|
- a work proposal starts its work the same way, as a brief written from the proposal;
|
|
@@ -47,7 +48,7 @@ The model that asked cannot approve its own request.
|
|
|
47
48
|
A review is processed from the words of its video, so the connector acquires them itself, for a review made anywhere: the review service's own page, a manual edit, another client, or this connector's `create`.
|
|
48
49
|
|
|
49
50
|
- **`ensure_review_transcript`** starts one job per review. It needs a person who may contribute and who holds Miadi's write tier or registered the video's source. It asks no transcript decision and needs no pasted text: processing a review already carries that authority. It never overwrites, never creates a version and never publishes.
|
|
50
|
-
- **Order.** 1. The transcript the review service already holds is kept, read back and its digest recorded. 2. A source registered as withheld is held: nothing is read or stored until it is released. 3. The video's captions in its **spoken language** (the video's own `language`; YouTube auto-dubs a video into many languages and lists an `-orig` track for each dub, so the first `-orig` track is not taken, and a track in the wrong script is refused). 4. A transcription made on this host (`MIADI_TRANSCRIPT_LOCAL=faster-whisper`,
|
|
51
|
+
- **Order.** 1. The transcript the review service already holds is kept, read back and its digest recorded. 2. A source registered as withheld is held: nothing is read or stored until it is released. 3. The video's captions in its **spoken language** (the video's own `language`; YouTube auto-dubs a video into many languages and lists an `-orig` track for each dub, so the first `-orig` track is not taken, and a track in the wrong script is refused). 4. A transcription of the video's audio made on this host when the video has no usable caption track (`MIADI_TRANSCRIPT_LOCAL=faster-whisper`, one at a time, at most `MIADI_TRANSCRIPT_LOCAL_MAX_MINUTES` minutes). It runs for every review, because each job starts from an authority that covers processing it: the `review.created` fact, a person with the write tier or the source's registrant, or an approved mission. A withheld source is held before this step. Three attempts that produce no transcript end the job as `local_transcription_failed` with the last answer. On a host where it is off, the job keeps retrying and its failure names the operator. No model service is called and nothing costs money. 5. One `POST /api/reviews/{id}/transcript` with `overwrite: false` and the words' provenance. 6. A readback of the stored text, whose sha256 must match what was sent.
|
|
51
52
|
- **Progress and failure.** The answer comes within about 20 seconds with the job's state and goes on if it needs longer. `review_transcript_status` (read-only; `verify: true` reads the transcript back now) says `unknown`, `absent`, `acquiring`, `stored`, `held` or `failed`, with the stages, the attempts, `next_attempt_at` and `give_up_at`, the digest and coverage of what is stored, and for a failure its code, the remedy and who can do it (`operator`, `source_owner`). Captions that YouTube has not made yet are tried every 15 minutes for three days. A job a restart interrupted resumes from its receipt; a held job resumes when its source is released.
|
|
52
53
|
- **Links that need no card.** Every answer carries plain links: `status` (`/transcripts/<review id>`, a page that asks for a Miadi person token, or JSON with `Authorization: Bearer` and `?format=json`), `review`, `transcript_api` (the review service, with its token) and `job` (the job's record). `decision` is `null`: no decision stands between the request and the store. `review_lookup` and `review_versions` carry the same `transcript` state, and `show_decisions` and `get_run_result` answer with a line and a link for each request, so a client that draws no card still shows where things stand.
|
|
53
54
|
- **Every review, however it was made.** The review service announces `review.created` for each review it creates (its site, its API, a Shortcut, this connector), built with `@miadi/hooks-core`'s `buildReviewCreatedEvent` and signed like its other factory webhooks. Miadi's `/api/factory/review-events` normalizes it, records it in the event ledger (`@miadi/hooks-gateway`, `MIADI_EVENTS_DIR`, default `/srv/miadi/events`) and hands it to this connector's inbox, `inbox/connector-transcripts/`. Every 15 seconds the connector takes up to three: it asks the review service for the review again, starts the review's transcript job (a review that already holds one stores nothing, a withheld source is held), records the fact as the job's authority, and moves the file to `done/` or, with the reason, to `rejected/`. A fact waits in the inbox while the connector is down or the review service cannot be asked.
|
package/dist/approve.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export interface ApprovalDeps {
|
|
|
53
53
|
modelRouting?: ModelRoutingDeps;
|
|
54
54
|
/** Reads a video's captions for an approved create; without it a create stores no transcript (tests, other embedders). */
|
|
55
55
|
captions?: FetchCaptions;
|
|
56
|
-
/** A transcription made on this host from the video's audio, tried
|
|
56
|
+
/** A transcription made on this host from the video's audio, tried when the video has no captions (jgwill/Miadi#995). */
|
|
57
57
|
localTranscription?: FetchCaptions;
|
|
58
58
|
/** The event folder (`MIADI_EVENTS_DIR`, default /srv/miadi/events): the ledger of facts and this connector's inbox. Absent, no fact is taken or announced. */
|
|
59
59
|
eventsDir?: string;
|
package/dist/approve.js
CHANGED
|
@@ -19,6 +19,7 @@ import { DEFAULT_DECISION_WAIT_MS } from "./config.js";
|
|
|
19
19
|
import { MiadiError } from "./miadi.js";
|
|
20
20
|
import { MiadiUnavailable } from "./people.js";
|
|
21
21
|
import { current, newRecordId } from "./records.js";
|
|
22
|
+
import { recordAccess, recordSharedWithACircle } from "./record-shares.js";
|
|
22
23
|
import { APPROVABLE, projectRequest } from "./request-state.js";
|
|
23
24
|
import { factoryDir, runBriefFile, readQueueState } from "./queue-state.js";
|
|
24
25
|
import { factoryLedgerPath, readFactoryReceipts, receiptsForRecord } from "./factory-receipt.js";
|
|
@@ -1144,7 +1145,8 @@ export function registerApprovalRoutes(app, deps) {
|
|
|
1144
1145
|
const again = replayed ? "<p>This decision was already recorded. Nothing ran again; here is where it stands.</p>" : "";
|
|
1145
1146
|
res.type("html").send(page("Recorded", `<h1>${heading}</h1>${again}${summary(find(r.id))}${projectionBlock(p, receipt)}${p?.stage === "recording" ? refreshForm(token) : ""}`));
|
|
1146
1147
|
});
|
|
1147
|
-
// A record's own page, for citations in ChatGPT
|
|
1148
|
+
// A record's own page, for citations in ChatGPT and for a click on its id: its author, the people and the
|
|
1149
|
+
// talking circles its author shared it with, and anyone with Miadi's read tier may read it (jgwill/Miadi#1005).
|
|
1148
1150
|
app.get("/records/:id", (req, res) => {
|
|
1149
1151
|
res.type("html").send(page("Miadi record", recordForm(String(req.params.id))));
|
|
1150
1152
|
});
|
|
@@ -1166,10 +1168,26 @@ export function registerApprovalRoutes(app, deps) {
|
|
|
1166
1168
|
if (!canReadReading(r, current(deps.ledger.all()), person)) {
|
|
1167
1169
|
return void res.status(403).type("html").send(page("Miadi record", recordForm(String(req.params.id), "This source and its reading are private to the source owner and factory operators.")));
|
|
1168
1170
|
}
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
+
const ledger = current(deps.ledger.all());
|
|
1172
|
+
let circles;
|
|
1173
|
+
// The reader's circles are read only when a circle could admit them: the author and the read tier need none.
|
|
1174
|
+
if (r.actor.person_id !== person.id && !person.api_tier && recordSharedWithACircle(r, ledger)) {
|
|
1175
|
+
try {
|
|
1176
|
+
const b = (await deps.miadi.get(String((req.body ?? {}).person_token ?? "").trim(), "/api/circles"));
|
|
1177
|
+
circles = (b?.circles ?? []).filter((c) => c?.member === true && typeof c.id === "string").map((c) => c.id);
|
|
1178
|
+
}
|
|
1179
|
+
catch {
|
|
1180
|
+
return void res.status(503).type("html").send(page("Miadi record", recordForm(String(req.params.id), "Your talking circles could not be read from Miadi, so whether this record reaches you through one cannot be decided now. Try again in a minute.")));
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
const access = recordAccess(r, ledger, { id: person.id, api_tier: person.api_tier, circles });
|
|
1184
|
+
if (!access) {
|
|
1185
|
+
return void res.status(403).type("html").send(page("Miadi record", recordForm(String(req.params.id), `This record is read by its author, by the people and circles its author shares it with, and by Miadi's read tier; ${person.name} is none of these.`)));
|
|
1171
1186
|
}
|
|
1172
|
-
|
|
1187
|
+
const reached = access.as === "shared"
|
|
1188
|
+
? `<p>${access.routes.map((s) => escapeHtml(s.circle ? `Shared with the circle ${s.circle} by ${s.by}` : `Shared with you by ${s.by}`)).join("<br>")}</p>`
|
|
1189
|
+
: "";
|
|
1190
|
+
res.type("html").send(page("Miadi record", `<h1>${escapeHtml(r.kind)}</h1>${reached}${summary(r)}`));
|
|
1173
1191
|
});
|
|
1174
1192
|
}
|
|
1175
1193
|
/**
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* A transcription made on this host, for a video whose captions are missing (jgwill/Miadi#995).
|
|
3
3
|
*
|
|
4
4
|
* It is the second reader a transcript job tries, after YouTube's captions, and only where the host's
|
|
5
|
-
* operator enabled it (`MIADI_TRANSCRIPT_LOCAL=faster-whisper`)
|
|
6
|
-
*
|
|
7
|
-
* no money. The resources are bounded: one transcription at a time, a longest video
|
|
5
|
+
* operator enabled it (`MIADI_TRANSCRIPT_LOCAL=faster-whisper`). It downloads the video's audio, which a
|
|
6
|
+
* withheld source does not allow: the job holds such a source before it reaches this reader. It calls no
|
|
7
|
+
* model service and costs no money. The resources are bounded: one transcription at a time, a longest video
|
|
8
8
|
* (`MIADI_TRANSCRIPT_LOCAL_MAX_MINUTES`, default 90) and a time limit.
|
|
9
9
|
*/
|
|
10
10
|
import { execFile } from "node:child_process";
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A connector record shared through a talking circle or with one person: the rule jgwill/Miadi#1005 gives a
|
|
3
|
+
* shelf report, for a record (an inquiry, a handoff, a proposal).
|
|
4
|
+
*
|
|
5
|
+
* A share is a `link` record its author makes, from the record, to `miadi-circle:<circle id>` (or the bare
|
|
6
|
+
* `circle:<id>`) or a person's node id, with the relation `shared_with`. A later link from the author with
|
|
7
|
+
* the relation `share_withdrawn`, from the same record to the same reader, ends it. The ledger keeps both, so
|
|
8
|
+
* who shared what with whom, and when it ended, stays readable. A link anyone else makes shares nothing: the
|
|
9
|
+
* author decides each share.
|
|
10
|
+
*
|
|
11
|
+
* Ref: jgwill/Miadi#1005, jgwill/Miadi#879
|
|
12
|
+
*/
|
|
13
|
+
import type { ConnectorRecord } from "./records.js";
|
|
14
|
+
export declare const SHARE_RELATION = "shared_with";
|
|
15
|
+
export declare const WITHDRAW_RELATION = "share_withdrawn";
|
|
16
|
+
export interface RecordShare {
|
|
17
|
+
/** The person's node id or the talking circle's id, as the share names it. */
|
|
18
|
+
to: string;
|
|
19
|
+
person_id?: string;
|
|
20
|
+
circle?: string;
|
|
21
|
+
/** Who shared it, and when: the author, by name. */
|
|
22
|
+
by: string;
|
|
23
|
+
at: string;
|
|
24
|
+
/** The link record that made the share. */
|
|
25
|
+
link: string;
|
|
26
|
+
}
|
|
27
|
+
export interface RecordReader {
|
|
28
|
+
id: string;
|
|
29
|
+
api_tier?: string | null;
|
|
30
|
+
/** The talking circles the reader sits in now; read only when a record is shared with a circle. */
|
|
31
|
+
circles?: Iterable<string>;
|
|
32
|
+
}
|
|
33
|
+
export interface RecordAccess {
|
|
34
|
+
as: "author" | "shared" | "read_tier";
|
|
35
|
+
/** For a share: every share that reaches this reader. */
|
|
36
|
+
routes: RecordShare[];
|
|
37
|
+
}
|
|
38
|
+
/** Whom a share link names: a talking circle or a person, else nobody. */
|
|
39
|
+
export declare function shareTarget(to: string): {
|
|
40
|
+
person_id?: string;
|
|
41
|
+
circle?: string;
|
|
42
|
+
} | null;
|
|
43
|
+
export declare function isShareRelation(relation: unknown): boolean;
|
|
44
|
+
/** The shares of a record that stand now, oldest first. */
|
|
45
|
+
export declare function recordShares(record: ConnectorRecord, ledger: readonly ConnectorRecord[]): RecordShare[];
|
|
46
|
+
export declare function recordSharedWithACircle(record: ConnectorRecord, ledger: readonly ConnectorRecord[]): boolean;
|
|
47
|
+
/** How a reader may read a record: as its author, through a share (each one named), or with Miadi's read tier; null when not at all. */
|
|
48
|
+
export declare function recordAccess(record: ConnectorRecord, ledger: readonly ConnectorRecord[], reader: RecordReader): RecordAccess | null;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A connector record shared through a talking circle or with one person: the rule jgwill/Miadi#1005 gives a
|
|
3
|
+
* shelf report, for a record (an inquiry, a handoff, a proposal).
|
|
4
|
+
*
|
|
5
|
+
* A share is a `link` record its author makes, from the record, to `miadi-circle:<circle id>` (or the bare
|
|
6
|
+
* `circle:<id>`) or a person's node id, with the relation `shared_with`. A later link from the author with
|
|
7
|
+
* the relation `share_withdrawn`, from the same record to the same reader, ends it. The ledger keeps both, so
|
|
8
|
+
* who shared what with whom, and when it ended, stays readable. A link anyone else makes shares nothing: the
|
|
9
|
+
* author decides each share.
|
|
10
|
+
*
|
|
11
|
+
* Ref: jgwill/Miadi#1005, jgwill/Miadi#879
|
|
12
|
+
*/
|
|
13
|
+
export const SHARE_RELATION = "shared_with";
|
|
14
|
+
export const WITHDRAW_RELATION = "share_withdrawn";
|
|
15
|
+
/** Whom a share link names: a talking circle or a person, else nobody. */
|
|
16
|
+
export function shareTarget(to) {
|
|
17
|
+
const t = to.trim().replace(/^miadi-circle:(?:\/\/)?/i, "");
|
|
18
|
+
if (/^circle:[A-Za-z0-9._~:-]+$/.test(t))
|
|
19
|
+
return { circle: t };
|
|
20
|
+
if (/^(?:node:)?(?:human|agent|person)[:A-Za-z0-9._~-]*$/.test(t) && t.includes(":"))
|
|
21
|
+
return { person_id: t };
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
export function isShareRelation(relation) {
|
|
25
|
+
return relation === SHARE_RELATION || relation === WITHDRAW_RELATION;
|
|
26
|
+
}
|
|
27
|
+
/** The shares of a record that stand now, oldest first. */
|
|
28
|
+
export function recordShares(record, ledger) {
|
|
29
|
+
const active = new Map();
|
|
30
|
+
const links = ledger
|
|
31
|
+
.filter((l) => l.kind === "link" && l.actor?.person_id === record.actor?.person_id && l.body?.from === record.id)
|
|
32
|
+
.sort((a, b) => a.created_at.localeCompare(b.created_at));
|
|
33
|
+
for (const l of links) {
|
|
34
|
+
const b = l.body;
|
|
35
|
+
const who = typeof b.to === "string" ? shareTarget(b.to) : null;
|
|
36
|
+
if (!who)
|
|
37
|
+
continue;
|
|
38
|
+
const key = who.circle ?? who.person_id;
|
|
39
|
+
if (b.relation === SHARE_RELATION)
|
|
40
|
+
active.set(key, { to: key, ...who, by: l.actor.name, at: l.created_at, link: l.id });
|
|
41
|
+
else if (b.relation === WITHDRAW_RELATION)
|
|
42
|
+
active.delete(key);
|
|
43
|
+
}
|
|
44
|
+
return [...active.values()];
|
|
45
|
+
}
|
|
46
|
+
export function recordSharedWithACircle(record, ledger) {
|
|
47
|
+
return recordShares(record, ledger).some((s) => s.circle);
|
|
48
|
+
}
|
|
49
|
+
/** How a reader may read a record: as its author, through a share (each one named), or with Miadi's read tier; null when not at all. */
|
|
50
|
+
export function recordAccess(record, ledger, reader) {
|
|
51
|
+
if (record.actor?.person_id === reader.id)
|
|
52
|
+
return { as: "author", routes: [] };
|
|
53
|
+
const circles = new Set(reader.circles ?? []);
|
|
54
|
+
const routes = recordShares(record, ledger).filter((s) => s.person_id === reader.id || (s.circle !== undefined && circles.has(s.circle)));
|
|
55
|
+
if (routes.length)
|
|
56
|
+
return { as: "shared", routes };
|
|
57
|
+
if (reader.api_tier)
|
|
58
|
+
return { as: "read_tier", routes: [] };
|
|
59
|
+
return null;
|
|
60
|
+
}
|
package/dist/server.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ export interface ConnectorDeps {
|
|
|
47
47
|
clones?: (repository: string) => string | undefined;
|
|
48
48
|
/** Reads a video's captions for an approved create; the service passes youtubeCaptions, tests their own. */
|
|
49
49
|
captions?: FetchCaptions;
|
|
50
|
-
/** A transcription made on this host, tried
|
|
50
|
+
/** A transcription made on this host from the video's audio, tried when the video has no captions (jgwill/Miadi#995). */
|
|
51
51
|
localTranscription?: FetchCaptions;
|
|
52
52
|
/** The event folder: the review.created facts this connector takes, and the ledger it announces outcomes in (jgwill/Miadi#995). */
|
|
53
53
|
eventsDir?: string;
|
|
@@ -61,4 +61,4 @@ export declare function createConnectorApp(config: ConnectorConfig, deps: Connec
|
|
|
61
61
|
provider: MiadiOAuthProvider;
|
|
62
62
|
ledger: Ledger<ConnectorRecord>;
|
|
63
63
|
};
|
|
64
|
-
export declare const INSTRUCTIONS = "Miadi is a relational software factory: agent sessions, Miadi reviews of screenwalks, Chronicle episodes, talking circles and the five accountable circles (Story, Stewardship, Engineering, Evaluation, Continuity) across three domains (Creative, Ceremonial, Engineering).\n\nStart with get_capabilities: it says who you are signed in as, which tools are live, and which return not_implemented.\n\nEvery tool is offered on every connection. A client that loads tools on demand shows only those its last tool search matched: a tool you do not see is not missing. Search for it by its exact name, get_capabilities first, before telling the person a tool is absent. The main reads are get_capabilities, get_context, search, fetch, list_records, list_sessions, search_sessions, get_session, review_lookup, read_episode_file and show_decisions.\n\nRules every tool keeps:\n- Every record names the person who made it, with a claim category: observed, hypothesis, desired_future, fiction or verified_implementation. Keep fiction and desired futures apart from what was observed.\n- Requests (runs, work proposals, review operations, Deep Diver, review-to-episode links, inquiry-to-episode weaves, session completion) are recorded as awaiting_approval. Nothing runs, publishes or closes until a person decides. After making a request, call show_decisions: it shows the request as a card in the conversation, where the person decides with their own click (or follows its approval page). Never claim a decision the card has not reported. The person may approve, approve with changes (their instructions are carried into what runs), send it back for revision with instructions (approval_state revision_requested; read the instructions with get_run_result and revise it in place with revise_pending_request), or decline.\n- A new or revised run or work proposal answers with draft_review: the aspects of the mission standard to revise, each with why, the question to settle and who can settle it. Read it before show_decisions. It carries no verdict, it advises and blocks nothing, and next_action says what to do. Answer what your conversation holds, ask the person the rest, then revise. preferences lists the person's standing preferences for you to apply. Fill delivery with the one exact place the result lands, and person_words with the person's own words, verbatim, for anything credited to them.\n- A mission is revised, never re-requested: to change a run or work proposal that still awaits a decision, call revise_pending_request with its id and the version you read (expected_version). It keeps one id, one approval page and one card; get_request_history shows every version. A new request_authorized_run or propose_work is for a new mission only. Requests made earlier as separate versions are joined with supersede_pending_requests, naming their exact ids, only when the person names or confirms them.\n- A research report (a Deep Research report) is delivered with save_research exactly as written, never summarised or shortened, with its sources; a long report goes in parts. Check the bytes and first and last lines the answer returns against what you sent.\n- A review's transcript is acquired by ensure_review_transcript, for a review made anywhere. It needs no decision and no pasted text, takes the video's own captions, never overwrites and calls no model. review_lookup and review_versions carry the transcript's state (unknown, absent, acquiring, stored, held or failed). review_transcript_status follows a job, and every answer carries plain links that work when no card is shown.\n- An unknown id is answered as not found, never invented. A missing backing service is answered as unavailable.\n- Use the miadi-review:<uuid>, miadi-chronicle://<n>, owner/repo#n and session:<uuid> reference forms.";
|
|
64
|
+
export declare const INSTRUCTIONS = "Miadi is a relational software factory: agent sessions, Miadi reviews of screenwalks, Chronicle episodes, talking circles and the five accountable circles (Story, Stewardship, Engineering, Evaluation, Continuity) across three domains (Creative, Ceremonial, Engineering).\n\nStart with get_capabilities: it says who you are signed in as, which tools are live, and which return not_implemented.\n\nEvery tool is offered on every connection. A client that loads tools on demand shows only those its last tool search matched: a tool you do not see is not missing. Search for it by its exact name, get_capabilities first, before telling the person a tool is absent. The main reads are get_capabilities, get_context, search, fetch, list_records, list_sessions, search_sessions, get_session, review_lookup, read_episode_file and show_decisions.\n\nRules every tool keeps:\n- Every record names the person who made it, with a claim category: observed, hypothesis, desired_future, fiction or verified_implementation. Keep fiction and desired futures apart from what was observed.\n- Requests (runs, work proposals, review operations, Deep Diver, review-to-episode links, inquiry-to-episode weaves, session completion) are recorded as awaiting_approval. Nothing runs, publishes or closes until a person decides. After making a request, call show_decisions: it shows the request as a card in the conversation, where the person decides with their own click (or follows its approval page). Never claim a decision the card has not reported. The person may approve, approve with changes (their instructions are carried into what runs), send it back for revision with instructions (approval_state revision_requested; read the instructions with get_run_result and revise it in place with revise_pending_request), or decline.\n- A new or revised run or work proposal answers with draft_review: the aspects of the mission standard to revise, each with why, the question to settle and who can settle it. Read it before show_decisions. It carries no verdict, it advises and blocks nothing, and next_action says what to do. Answer what your conversation holds, ask the person the rest, then revise. preferences lists the person's standing preferences for you to apply. Fill delivery with the one exact place the result lands, and person_words with the person's own words, verbatim, for anything credited to them.\n- A mission is revised, never re-requested: to change a run or work proposal that still awaits a decision, call revise_pending_request with its id and the version you read (expected_version). It keeps one id, one approval page and one card; get_request_history shows every version. A new request_authorized_run or propose_work is for a new mission only. Requests made earlier as separate versions are joined with supersede_pending_requests, naming their exact ids, only when the person names or confirms them.\n- A research report (a Deep Research report) is delivered with save_research exactly as written, never summarised or shortened, with its sources; a long report goes in parts. Check the bytes and first and last lines the answer returns against what you sent.\n- A review's transcript is acquired by ensure_review_transcript, for a review made anywhere. It needs no decision and no pasted text, takes the video's own captions, or transcribes its audio on the Miadi host when the video has none, never overwrites and calls no model service. review_lookup and review_versions carry the transcript's state (unknown, absent, acquiring, stored, held or failed). review_transcript_status follows a job, and every answer carries plain links that work when no card is shown.\n- An unknown id is answered as not found, never invented. A missing backing service is answered as unavailable.\n- Use the miadi-review:<uuid>, miadi-chronicle://<n>, owner/repo#n and session:<uuid> reference forms.";
|
package/dist/server.js
CHANGED
|
@@ -192,6 +192,6 @@ Rules every tool keeps:
|
|
|
192
192
|
- A new or revised run or work proposal answers with draft_review: the aspects of the mission standard to revise, each with why, the question to settle and who can settle it. Read it before show_decisions. It carries no verdict, it advises and blocks nothing, and next_action says what to do. Answer what your conversation holds, ask the person the rest, then revise. preferences lists the person's standing preferences for you to apply. Fill delivery with the one exact place the result lands, and person_words with the person's own words, verbatim, for anything credited to them.
|
|
193
193
|
- A mission is revised, never re-requested: to change a run or work proposal that still awaits a decision, call revise_pending_request with its id and the version you read (expected_version). It keeps one id, one approval page and one card; get_request_history shows every version. A new request_authorized_run or propose_work is for a new mission only. Requests made earlier as separate versions are joined with supersede_pending_requests, naming their exact ids, only when the person names or confirms them.
|
|
194
194
|
- A research report (a Deep Research report) is delivered with save_research exactly as written, never summarised or shortened, with its sources; a long report goes in parts. Check the bytes and first and last lines the answer returns against what you sent.
|
|
195
|
-
- A review's transcript is acquired by ensure_review_transcript, for a review made anywhere. It needs no decision and no pasted text, takes the video's own captions, never overwrites and calls no model. review_lookup and review_versions carry the transcript's state (unknown, absent, acquiring, stored, held or failed). review_transcript_status follows a job, and every answer carries plain links that work when no card is shown.
|
|
195
|
+
- A review's transcript is acquired by ensure_review_transcript, for a review made anywhere. It needs no decision and no pasted text, takes the video's own captions, or transcribes its audio on the Miadi host when the video has none, never overwrites and calls no model service. review_lookup and review_versions carry the transcript's state (unknown, absent, acquiring, stored, held or failed). review_transcript_status follows a job, and every answer carries plain links that work when no card is shown.
|
|
196
196
|
- An unknown id is answered as not found, never invented. A missing backing service is answered as unavailable.
|
|
197
197
|
- Use the miadi-review:<uuid>, miadi-chronicle://<n>, owner/repo#n and session:<uuid> reference forms.`;
|
package/dist/tools.js
CHANGED
|
@@ -28,6 +28,7 @@ import { authorizesActions, missionStatus, primaryIssueOf, resolveMissionSubject
|
|
|
28
28
|
import { authorizationReceipt, authorizeProvider, CHOICE_PROVIDERS, isPersonId, needsPersonChoice, providerPolicyOf } from "./provider-policy.js";
|
|
29
29
|
import { candidatesFor, CRITICALITIES, jevAdapter, modelPreflight, PREFLIGHT_CONTRACT, PREFLIGHT_VERSION, TASK_TYPES, } from "./model-preflight.js";
|
|
30
30
|
import { ShelfRefusal, listShelfArtefacts, readShelfArtefact } from "./research-shelf.js";
|
|
31
|
+
import { isShareRelation, shareTarget } from "./record-shares.js";
|
|
31
32
|
import { DELIVERY_STATES, readSteerDelivery, revokeInInbox, settlementOf, transcriptPathOf } from "./runtime-steer.js";
|
|
32
33
|
import { ADAPTERS, readFactoryConfig, runSteering, STEERING_CONTRACT_ID, steeringSupport } from "./steering-adapters.js";
|
|
33
34
|
import { checkGrant, isBusy, steerAttempts, steeringGrantOf, steeringRevoked, steerSession } from "./steer.js";
|
|
@@ -428,7 +429,7 @@ export function registerTools(server, ctx) {
|
|
|
428
429
|
follow: "review_transcript_status",
|
|
429
430
|
status_page: `${config.publicUrl}/transcripts/<review id>`,
|
|
430
431
|
captions: ctx.approval?.captions ? "on (the video's spoken-language track)" : "off",
|
|
431
|
-
local_transcription: ctx.approval?.localTranscription ? "on (a
|
|
432
|
+
local_transcription: ctx.approval?.localTranscription ? "on (a video with no captions is transcribed from its audio on this host, never a withheld source)" : "off (the operator enables it with MIADI_TRANSCRIPT_LOCAL=faster-whisper)",
|
|
432
433
|
review_service_token: reviews.canSearch ? "present" : "absent",
|
|
433
434
|
decision_required: false,
|
|
434
435
|
independent_of_public_import: true,
|
|
@@ -940,7 +941,7 @@ export function registerTools(server, ctx) {
|
|
|
940
941
|
}));
|
|
941
942
|
server.registerTool("ensure_review_transcript", {
|
|
942
943
|
title: "Make sure a review holds its video's transcript",
|
|
943
|
-
description: "For an existing review made anywhere (the review service's own page, a manual edit, another client), acquire its video's transcript, store it on the review and read it back. It runs now under the authority that already covers processing a review: no transcript decision is asked, and nothing needs pasting. A transcript the review already holds is reused and kept. It takes the video's spoken-language YouTube captions,
|
|
944
|
+
description: "For an existing review made anywhere (the review service's own page, a manual edit, another client), acquire its video's transcript, store it on the review and read it back. It runs now under the authority that already covers processing a review: no transcript decision is asked, and nothing needs pasting. A transcript the review already holds is reused and kept. It takes the video's spoken-language YouTube captions and, when the video has none, transcribes its audio on the Miadi host where the operator enabled that. It calls no model service. A source registered as withheld is held until released. It never overwrites, never creates a version and never publishes. It answers within about 20 seconds with the job's progress, a plain summary and links, and the job goes on if it needs longer: follow it with review_transcript_status or the status link. Asking again is safe; it joins the running attempt. Needs a person who may contribute and who holds the write tier or registered the video's source.",
|
|
944
945
|
inputSchema: { review: z.string().min(1).describe("Review id, miadi-review:<uuid>, review URL, or the video's YouTube URL or id (when exactly one review of it exists)."), intention: z.string().max(2000).optional().describe("Why the transcript is needed, recorded with the job.") },
|
|
945
946
|
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: true, openWorldHint: true },
|
|
946
947
|
}, wrap(async (a, extra) => {
|
|
@@ -1366,12 +1367,22 @@ export function registerTools(server, ctx) {
|
|
|
1366
1367
|
}));
|
|
1367
1368
|
server.registerTool("link_records", {
|
|
1368
1369
|
title: "Relate two references",
|
|
1369
|
-
description: "Record a relation between two references (a review and an episode, a session and an issue, a beat and a source), with the relation's name and why."
|
|
1370
|
+
description: "Record a relation between two references (a review and an episode, a session and an issue, a beat and a source), with the relation's name and why. " +
|
|
1371
|
+
"To share a record you made (an inquiry, a handoff, a proposal) with a talking circle or one person, link from the record's id to miadi-circle:<circle id> or the person's id with the relation shared_with: its members, or that person, then read it on the record's page and in My Research. The relation share_withdrawn, from the same record to the same reader, ends the share. Only a record's author shares it.",
|
|
1370
1372
|
inputSchema: { from: z.string().min(1), to: z.string().min(1), relation: z.string().min(1).max(80), note: z.string().max(2000).optional(), ...base },
|
|
1371
1373
|
annotations: WRITE,
|
|
1372
1374
|
}, wrap(async (a, extra) => {
|
|
1373
1375
|
const { person, auth } = who(extra);
|
|
1374
1376
|
requireContribute(auth);
|
|
1377
|
+
if (isShareRelation(a.relation)) {
|
|
1378
|
+
const shared = all().find((r) => r.id === a.from);
|
|
1379
|
+
if (!shared)
|
|
1380
|
+
throw new ToolRefusal("not_found", `No record with the id ${a.from}: a share links from a record's id.`);
|
|
1381
|
+
if (shared.actor.person_id !== person.id)
|
|
1382
|
+
throw new ToolRefusal("forbidden", "Only a record's author shares it, or withdraws a share; this record was made by someone else.");
|
|
1383
|
+
if (!shareTarget(a.to))
|
|
1384
|
+
throw new ToolRefusal("invalid_ref", "A share reaches a talking circle (miadi-circle:<circle id>) or one person (their node id).");
|
|
1385
|
+
}
|
|
1375
1386
|
return append("link", person, auth, {
|
|
1376
1387
|
refs: [a.from, a.to],
|
|
1377
1388
|
intention: a.intention,
|
package/dist/transcript-job.d.ts
CHANGED
|
@@ -50,6 +50,10 @@ export interface TranscriptJobReceipt {
|
|
|
50
50
|
stored_at?: string;
|
|
51
51
|
readback?: Readback;
|
|
52
52
|
failure?: JobFailure;
|
|
53
|
+
/** The approved mission a worker later ran this job under (missionAuthority), recorded with the job it joined. */
|
|
54
|
+
authority?: Record<string, unknown>;
|
|
55
|
+
/** How many times this window ran the host's transcription of the audio. */
|
|
56
|
+
local_attempts?: number;
|
|
53
57
|
stages: JobStage[];
|
|
54
58
|
}
|
|
55
59
|
export interface ServiceAnswer {
|
|
@@ -95,7 +99,7 @@ export interface TranscriptJobIo {
|
|
|
95
99
|
service: ReviewTranscriptService;
|
|
96
100
|
/** The video's spoken-language captions. */
|
|
97
101
|
captions?: FetchCaptions;
|
|
98
|
-
/** A transcription made on this host, tried when captions
|
|
102
|
+
/** A transcription of the video's audio made on this host, tried when the video has no captions. Never for a withheld source. */
|
|
99
103
|
local?: FetchCaptions;
|
|
100
104
|
now?: () => number;
|
|
101
105
|
log?: (event: Record<string, unknown>) => void;
|
|
@@ -109,6 +113,8 @@ export interface TranscriptJobIo {
|
|
|
109
113
|
/** Told once each time a job reaches an ending (stored, held, failed), to announce it as a fact. Never fails the job. */
|
|
110
114
|
outcome?: (job: ConnectorRecord, receipt: TranscriptJobReceipt) => void | Promise<unknown>;
|
|
111
115
|
}
|
|
116
|
+
/** How many times one window runs this host's transcription of the audio before the job fails with what it last answered. */
|
|
117
|
+
export declare const MAX_LOCAL_ATTEMPTS = 3;
|
|
112
118
|
/** How long an attempt this process does not run may go without writing a stage before it counts as abandoned. */
|
|
113
119
|
export declare const STALE_MS: number;
|
|
114
120
|
export declare const jobKey: (reviewId: string) => string;
|
package/dist/transcript-job.js
CHANGED
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* 1. reuse: the review service already holds one, which stays (it is read back and its digest kept);
|
|
9
9
|
* 2. source: a source registered as withheld is neither read nor stored, until it is released;
|
|
10
10
|
* 3. acquire: the video's spoken-language captions, then a local transcription where the host enables it
|
|
11
|
-
*
|
|
11
|
+
* when the video has none. No model service is called and nothing here costs money;
|
|
12
12
|
* 4. store: one POST that never overwrites;
|
|
13
13
|
* 5. readback: the stored text is read from the service and its digest compared with what was sent.
|
|
14
14
|
*
|
|
@@ -74,6 +74,8 @@ const clock = (io) => (io.now ?? Date.now)();
|
|
|
74
74
|
const iso = (ms) => new Date(ms).toISOString();
|
|
75
75
|
/** A job that waits three days keeps the last stages only, so its receipt does not grow with every retry. */
|
|
76
76
|
const MAX_STAGES = 24;
|
|
77
|
+
/** How many times one window runs this host's transcription of the audio before the job fails with what it last answered. */
|
|
78
|
+
export const MAX_LOCAL_ATTEMPTS = 3;
|
|
77
79
|
/** How long an attempt this process does not run may go without writing a stage before it counts as abandoned. */
|
|
78
80
|
export const STALE_MS = 5 * 60_000;
|
|
79
81
|
export const jobKey = (reviewId) => `transcript:${reviewId}`;
|
|
@@ -203,6 +205,22 @@ const failures = {
|
|
|
203
205
|
owner: "operator",
|
|
204
206
|
retry: "none scheduled; ensure_review_transcript starts a new three-day window",
|
|
205
207
|
}),
|
|
208
|
+
// The video has no captions and this host does not transcribe audio: the job still retries (a track can arrive late),
|
|
209
|
+
// and names who can change the answer instead of saying nothing is needed.
|
|
210
|
+
local_off: (message) => ({
|
|
211
|
+
code: "waiting_for_captions",
|
|
212
|
+
message: `${message} Local transcription is off on this host, so the video's audio is not transcribed.`,
|
|
213
|
+
remedy: "An operator enables local transcription on the host (MIADI_TRANSCRIPT_LOCAL=faster-whisper). The next pass then transcribes the audio.",
|
|
214
|
+
owner: "operator",
|
|
215
|
+
retry: "every 15 minutes",
|
|
216
|
+
}),
|
|
217
|
+
local_failed: (message, attempts) => ({
|
|
218
|
+
code: "local_transcription_failed",
|
|
219
|
+
message: `The video has no usable captions, and this host's transcription of its audio produced no transcript in ${attempts} attempts. Last answer: ${message}`,
|
|
220
|
+
remedy: "Read the last answer. A video past the host's limit needs MIADI_TRANSCRIPT_LOCAL_MAX_MINUTES raised, and an engine error needs the host repaired. Then run ensure_review_transcript again, or the source owner supplies the exact transcript through request_review_operation store_transcript.",
|
|
221
|
+
owner: "operator",
|
|
222
|
+
retry: "none scheduled; ensure_review_transcript starts a new window",
|
|
223
|
+
}),
|
|
206
224
|
no_provider: () => ({
|
|
207
225
|
code: "provider_unavailable",
|
|
208
226
|
message: "This connector host has no way to read captions.",
|
|
@@ -240,11 +258,11 @@ async function attempt(io, startJob) {
|
|
|
240
258
|
delete r.next_attempt_at;
|
|
241
259
|
return save(note);
|
|
242
260
|
};
|
|
243
|
-
const wait = (code, message, stage, usedLocal = false) => {
|
|
261
|
+
const wait = (code, message, stage, usedLocal = false, specific) => {
|
|
244
262
|
const expired = clock(io) - Date.parse(r.since) >= TRANSCRIPT_WINDOW_MS;
|
|
245
263
|
if (expired)
|
|
246
264
|
return fail(failures.no_captions(message, usedLocal), stage, "Three days passed without a transcript.");
|
|
247
|
-
mark(stage, "waiting", message);
|
|
265
|
+
mark(stage, "waiting", specific?.message ?? message);
|
|
248
266
|
const next = clock(io) + TRANSCRIPT_RETRY_MS;
|
|
249
267
|
r = {
|
|
250
268
|
...r,
|
|
@@ -252,7 +270,9 @@ async function attempt(io, startJob) {
|
|
|
252
270
|
phase: code,
|
|
253
271
|
next_attempt_at: iso(next),
|
|
254
272
|
give_up_at: iso(Date.parse(r.since) + TRANSCRIPT_WINDOW_MS),
|
|
255
|
-
failure:
|
|
273
|
+
failure: specific
|
|
274
|
+
? { ...specific, retry: `every 15 minutes until ${iso(Date.parse(r.since) + TRANSCRIPT_WINDOW_MS)}` }
|
|
275
|
+
: { code, message, remedy: "None needed: the connector tries again by itself.", owner: "none", retry: `every 15 minutes until ${iso(Date.parse(r.since) + TRANSCRIPT_WINDOW_MS)}` },
|
|
256
276
|
};
|
|
257
277
|
return save(`Tries again at ${r.next_attempt_at}.`);
|
|
258
278
|
};
|
|
@@ -300,7 +320,7 @@ async function attempt(io, startJob) {
|
|
|
300
320
|
return save("Waiting for the source to be released.");
|
|
301
321
|
}
|
|
302
322
|
mark("source_check", "completed", source === "released" ? "The source is released for review." : "No source is registered for this video, and none is withheld.");
|
|
303
|
-
// 3. Acquire: captions first, then a
|
|
323
|
+
// 3. Acquire: captions first, then a transcription of the audio on this host where its operator enabled it.
|
|
304
324
|
if (!io.captions && !io.local)
|
|
305
325
|
return fail(failures.no_provider(), "acquire", "The host has no captions reader.");
|
|
306
326
|
mark("acquire", "started", "YouTube captions in the spoken language");
|
|
@@ -310,14 +330,23 @@ async function attempt(io, startJob) {
|
|
|
310
330
|
// The audio is downloaded and transcribed only when the video has no usable caption track. A reader that failed or a
|
|
311
331
|
// track not made yet waits and retries: a transient failure must not start sixteen minutes of work on this host.
|
|
312
332
|
const captionsAbsent = !io.captions || (answer?.state === "none_yet" && answer.absent === true);
|
|
313
|
-
|
|
314
|
-
|
|
333
|
+
// Every job starts from an authority that covers processing its review: the review service's review.created fact, a
|
|
334
|
+
// person with the write tier or the source's registrant, or an approved mission. So a review whose video has no
|
|
335
|
+
// captions gets its transcript from the audio as soon as it exists. A withheld source never reaches this point.
|
|
336
|
+
if ((!answer || answer.state !== "found") && io.local && captionsAbsent) {
|
|
337
|
+
r = { ...r, local_attempts: (r.local_attempts ?? 0) + 1 };
|
|
338
|
+
mark("acquire", "waiting", `Captions: ${answer?.state === "none_yet" ? answer.message ?? "none yet" : "no reader"} Transcribing the audio on this host (attempt ${r.local_attempts} of ${MAX_LOCAL_ATTEMPTS}).`);
|
|
315
339
|
save();
|
|
316
340
|
usedLocal = true;
|
|
317
341
|
answer = await io.local(r.video_id);
|
|
318
342
|
}
|
|
319
|
-
if (!answer || answer.state !== "found")
|
|
320
|
-
|
|
343
|
+
if (!answer || answer.state !== "found") {
|
|
344
|
+
const message = answer?.message ?? "YouTube has no captions for this video yet.";
|
|
345
|
+
// A transcription that keeps producing nothing ends as a failure a person reads, not as three days of retries.
|
|
346
|
+
if (usedLocal && (r.local_attempts ?? 0) >= MAX_LOCAL_ATTEMPTS)
|
|
347
|
+
return fail(failures.local_failed(message, r.local_attempts ?? MAX_LOCAL_ATTEMPTS), "acquire", "This host's transcription produced no transcript.");
|
|
348
|
+
return wait("waiting_for_captions", message, "acquire", usedLocal, !usedLocal && captionsAbsent ? failures.local_off(message) : undefined);
|
|
349
|
+
}
|
|
321
350
|
const text = answer.text.trim();
|
|
322
351
|
if (!text)
|
|
323
352
|
return wait("waiting_for_captions", "The captions hold no words.", "acquire", usedLocal);
|
|
@@ -435,11 +464,17 @@ export function ensureTranscript(io, input) {
|
|
|
435
464
|
}
|
|
436
465
|
else {
|
|
437
466
|
prior = receiptOf(job);
|
|
467
|
+
// A job an event opened records the approved mission a worker now runs it under.
|
|
468
|
+
if (input.authority?.basis === "approved_mission" && prior.authority?.mission !== input.authority.mission) {
|
|
469
|
+
prior = { ...prior, authority: input.authority };
|
|
470
|
+
job = commit(io, job, prior);
|
|
471
|
+
}
|
|
438
472
|
// A person asking again starts a new window when the job failed or was held, because the cause is usually repaired.
|
|
439
473
|
if (prior.state === "failed" || prior.state === "held") {
|
|
440
474
|
const next = { ...prior, state: "acquiring", phase: "requested", trigger: input.trigger, since: iso(now), stages: [...prior.stages, requested(iso(now), input.trigger)].slice(-MAX_STAGES) };
|
|
441
475
|
delete next.failure;
|
|
442
476
|
delete next.next_attempt_at;
|
|
477
|
+
delete next.local_attempts;
|
|
443
478
|
job = commit(io, job, next);
|
|
444
479
|
}
|
|
445
480
|
}
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "0.1.
|
|
1
|
+
export declare const VERSION = "0.1.38";
|
package/dist/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "0.1.
|
|
1
|
+
export const VERSION = "0.1.38";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@miadi/connector",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.38",
|
|
4
4
|
"description": "The Miadi connector: one remote MCP service through which a person signed in with their Miadi person token, from ChatGPT or any MCP client, reads sessions, reviews, episodes and circles and records observations, inquiries, handoffs and proposals with their name on each record.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Miadi",
|
|
@@ -36,6 +36,10 @@
|
|
|
36
36
|
"types": "./dist/research-shelf.d.ts",
|
|
37
37
|
"import": "./dist/research-shelf.js"
|
|
38
38
|
},
|
|
39
|
+
"./record-shares": {
|
|
40
|
+
"types": "./dist/record-shares.d.ts",
|
|
41
|
+
"import": "./dist/record-shares.js"
|
|
42
|
+
},
|
|
39
43
|
"./package.json": "./package.json"
|
|
40
44
|
},
|
|
41
45
|
"bin": {
|
|
@@ -47,7 +51,7 @@
|
|
|
47
51
|
"STEERING.md"
|
|
48
52
|
],
|
|
49
53
|
"dependencies": {
|
|
50
|
-
"@miadi/hooks-core": "^0.6.
|
|
54
|
+
"@miadi/hooks-core": "^0.6.1",
|
|
51
55
|
"@miadi/hooks-gateway": "^0.2.1",
|
|
52
56
|
"@miadi/inquiry-weave": "0.18.14",
|
|
53
57
|
"@miadi/node-service-kit": "0.1.2",
|