@north-light/cli 0.3.712 → 0.3.713
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/clients/attach/input/controller.d.ts +6 -0
- package/dist/clients/attach/input/controller.js +3 -3
- package/dist/clients/attach/input/local-files.d.ts +16 -0
- package/dist/clients/attach/input/local-files.js +6 -0
- package/dist/clients/attach/session/editor-frame.d.ts +2 -2
- package/dist/clients/attach/session/editor-frame.js +1 -1
- package/dist/clients/attach/viewer.js +406 -402
- package/dist/commands/node/bash.js +1 -1
- package/dist/core/bash-guard.d.ts +10 -0
- package/dist/core/bash-guard.js +4 -4
- package/dist/core/broker-client/client.d.ts +2 -2
- package/dist/core/conversation-store/row-store.js +1 -1
- package/dist/core/graph/documents.d.ts +5 -5
- package/dist/core/graph/documents.js +9 -9
- package/dist/core/graph/kinds/custom.js +2 -2
- package/dist/core/graph/kinds/document.js +4 -4
- package/dist/core/graph/kinds/environment.js +2 -2
- package/dist/core/graph/kinds/job.js +2 -2
- package/dist/core/graph/kinds/kind.d.ts +9 -1
- package/dist/core/graph/kinds/live-read.d.ts +4 -2
- package/dist/core/graph/kinds/live-read.js +1 -1
- package/dist/core/graph/kinds/node.js +5 -5
- package/dist/core/graph/kinds/owner.js +2 -2
- package/dist/core/runtime/bearings-render.d.ts +3 -0
- package/dist/core/runtime/bearings-render.js +7 -7
- package/dist/core/runtime/bearings.js +5 -5
- package/dist/core/runtime/broker/frame-dispatch.js +1 -1
- package/dist/core/runtime/broker/frame-read.d.ts +5 -1
- package/dist/core/runtime/broker/frame-read.js +1 -1
- package/dist/core/runtime/broker-protocol.d.ts +37 -2
- package/dist/daemon/api/handlers/broker-ops.js +1 -1
- package/dist/daemon/api/handlers/llm.js +3 -3
- package/dist/daemon/api/handlers/objects.js +3 -3
- package/dist/daemon/api/handlers/reviews.js +1 -1
- package/dist/daemon/api/map.d.ts +6 -0
- package/dist/daemon/api/map.js +1 -1
- package/dist/daemon/reconcilers/node-lifecycle/tick.js +1 -1
- package/dist/pi-extensions/canvas-inbox-watcher.js +2 -2
- package/docs/ci-runner.md +4 -4
- package/package.json +3 -3
- package/packages/crouter-api/dist/clients/attach/input/controller.js +43 -12
- package/packages/crouter-api/dist/clients/attach/input/local-files.js +97 -0
- package/packages/crouter-api/dist/clients/attach/session/editor-frame.js +27 -8
- package/packages/crouter-api/dist/commands/node/bash.js +2 -2
- package/packages/crouter-api/dist/core/bash-guard.js +1 -1
- package/packages/crouter-api/dist/core/conversation-store/row-store.js +1 -1
- package/packages/crouter-api/dist/core/graph/documents.js +12 -24
- package/packages/crouter-api/dist/core/graph/kinds/custom.js +1 -3
- package/packages/crouter-api/dist/core/graph/kinds/document.js +8 -25
- package/packages/crouter-api/dist/core/graph/kinds/environment.js +1 -3
- package/packages/crouter-api/dist/core/graph/kinds/job.js +1 -3
- package/packages/crouter-api/dist/core/graph/kinds/node.js +1 -3
- package/packages/crouter-api/dist/core/graph/kinds/owner.js +1 -3
- package/packages/crouter-api/dist/core/runtime/bearings-render.js +11 -0
- package/packages/crouter-api/dist/core/runtime/bearings.js +6 -2
- package/packages/crouter-api/dist/daemon/api/handlers/broker-ops.js +5 -5
- package/packages/crouter-api/dist/daemon/api/map.js +1 -1
- package/packages/crouter-api/dist/{clients/attach/chrome/git-info.js → shared/git-status.js} +5 -5
- package/packages/crouter-api/package.json +1 -1
- package/packages/crouter-identity/package.json +1 -1
- package/packages/crouter-plugin/package.json +3 -3
- package/runtime.lock.json +14 -14
- package/packages/crouter-api/dist/core/graph/kinds/live-read.js +0 -11
- /package/dist/{clients/attach/chrome/git-info.d.ts → shared/git-status.d.ts} +0 -0
- /package/dist/{clients/attach/chrome/git-info.js → shared/git-status.js} +0 -0
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { recordLiveRead } from './live-read.js';
|
|
2
1
|
import { header } from './render.js';
|
|
3
2
|
import { objectDTO } from './dto.js';
|
|
4
3
|
import { receiverForObject } from '../receivers.js';
|
|
@@ -10,8 +9,7 @@ export function customKind(name, declared) {
|
|
|
10
9
|
created: { level: 4 }, read: { level: 1 }, watched: { level: 1 },
|
|
11
10
|
deleted: { level: 5 }, configured: { level: 1 }, ...events,
|
|
12
11
|
}, addressable: 'name', receiverFor: receiverForObject,
|
|
13
|
-
async read(db,
|
|
14
|
-
await recordLiveRead(db, reader, object, opts.reposFn);
|
|
12
|
+
async read(db, _reader, object) {
|
|
15
13
|
const row = await db.prepare('SELECT description, summary, state_json, published_at, receiver_json, dropped FROM custom_objects WHERE object = ?')
|
|
16
14
|
.get(object.id);
|
|
17
15
|
const receiver = row?.receiver_json == null ? null : JSON.parse(row.receiver_json);
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { deliveryDocOf, nodeSubject, ownerHandle } from '../../substrate/delivery/corpus.js';
|
|
3
|
-
import { recordContentDelivery } from '../../substrate/delivery/deliver.js';
|
|
1
|
+
import { deliveryDocOf, nodeSubject } from '../../substrate/delivery/corpus.js';
|
|
4
2
|
import { renderExplicitRead } from '../../substrate/delivery/render-event.js';
|
|
5
3
|
import { permits, resolveReader } from '../../permissions/evaluator.js';
|
|
6
|
-
import { documentRecord, readDocument } from '../documents.js';
|
|
7
|
-
import { loadLedger
|
|
8
|
-
import { getById } from '../objects.js';
|
|
4
|
+
import { documentRecord, headsKeyOf, readDocument } from '../documents.js';
|
|
5
|
+
import { loadLedger } from '../exposures.js';
|
|
9
6
|
import { rulesOf } from '../rules.js';
|
|
10
7
|
import { objectDTO, objectDTOs } from './dto.js';
|
|
11
8
|
import { withBase } from './kind.js';
|
|
@@ -28,21 +25,7 @@ async function explicitReadAttachments(db, reader, doc) {
|
|
|
28
25
|
const ledger = isNode ? await loadLedger(db, reader.node.id) : { node: '', preferenceSnapshot: null, objects: new Map(), listed: new Map() };
|
|
29
26
|
const ctx = { db, reader, subject: isNode ? await nodeSubject(db, reader) : null, ledger, channel: 'transcript' };
|
|
30
27
|
const read = await renderExplicitRead(ctx, await deliveryDocOf(db, reader, doc));
|
|
31
|
-
|
|
32
|
-
await recordContentDelivery(db, reader, read.delivered);
|
|
33
|
-
await saveLedger(db, ledger);
|
|
34
|
-
}
|
|
35
|
-
return { attachments: read.attachments, linked: read.linked.map((d) => d.object) };
|
|
36
|
-
}
|
|
37
|
-
/** A node's explicit read of a knowledge or preference document is the analytics memory log's
|
|
38
|
-
* `read` event; its companions are `loaded` rows, written by `recordContentDelivery`. */
|
|
39
|
-
async function recordExplicitMemoryRead(db, reader, doc) {
|
|
40
|
-
if (reader.class !== 'node' || (doc.kind !== 'knowledge' && doc.kind !== 'preference') || doc.owner === null)
|
|
41
|
-
return;
|
|
42
|
-
const owner = await getById(db, doc.owner);
|
|
43
|
-
if (owner === null)
|
|
44
|
-
return;
|
|
45
|
-
await recordMemoryReadsIn(db, reader.node.id, [{ name: doc.name, scope: ownerHandle(owner), at: new Date().toISOString(), type: 'read' }]);
|
|
28
|
+
return { attachments: read.attachments, linked: read.linked.map((d) => d.object), ...(isNode ? { ledger } : {}), delivered: read.delivered };
|
|
46
29
|
}
|
|
47
30
|
function render(o, d) {
|
|
48
31
|
const lines = [];
|
|
@@ -104,11 +87,10 @@ export const documentKind = {
|
|
|
104
87
|
return { summary: (await documentRecord(db, doc)).summary ?? null, rules: (await rulesOf(db, doc)).length };
|
|
105
88
|
},
|
|
106
89
|
async read(db, reader, doc, opts) {
|
|
107
|
-
const read = await readDocument(db, reader, doc
|
|
108
|
-
await recordExplicitMemoryRead(db, reader, doc);
|
|
90
|
+
const read = await readDocument(db, reader, doc);
|
|
109
91
|
const rec = read.record;
|
|
110
92
|
const under = await listingOf(db, await resolveReader(db, reader), doc);
|
|
111
|
-
const { attachments, linked } = await explicitReadAttachments(db, reader, doc);
|
|
93
|
+
const { attachments, linked, ledger, delivered } = await explicitReadAttachments(db, reader, doc);
|
|
112
94
|
const listed = new Set(under.map((o) => o.id));
|
|
113
95
|
const listing = [...under, ...await objectDTOs(db, linked.filter((o) => !listed.has(o.id)))];
|
|
114
96
|
const data = {
|
|
@@ -127,6 +109,7 @@ export const documentKind = {
|
|
|
127
109
|
})),
|
|
128
110
|
};
|
|
129
111
|
}
|
|
130
|
-
return { data: data, text: render(await objectDTO(db, doc), data)
|
|
112
|
+
return { data: data, text: render(await objectDTO(db, doc), data),
|
|
113
|
+
record: { headsKey: headsKeyOf(read.heads), ...(ledger === undefined ? {} : { ledger }), delivered } };
|
|
131
114
|
},
|
|
132
115
|
};
|
|
@@ -1,17 +1,15 @@
|
|
|
1
1
|
/** The environment kind: a place objects run. Today only the machine an install runs on. */
|
|
2
2
|
import { objectDTO } from './dto.js';
|
|
3
3
|
import { withBase } from './kind.js';
|
|
4
|
-
import { recordLiveRead } from './live-read.js';
|
|
5
4
|
import { attr, header } from './render.js';
|
|
6
5
|
export const environmentKind = {
|
|
7
6
|
name: 'environment',
|
|
8
7
|
addressable: 'id',
|
|
9
8
|
events: withBase(),
|
|
10
|
-
async read(db,
|
|
9
|
+
async read(db, _reader, environment) {
|
|
11
10
|
const row = await db.prepare('SELECT kind, machine_id, last_seen_at FROM environments WHERE object = ?').get(environment.id);
|
|
12
11
|
if (!row)
|
|
13
12
|
throw new Error(`environment object ${environment.id} has no environments row`);
|
|
14
|
-
await recordLiveRead(db, reader, environment, opts.reposFn);
|
|
15
13
|
const o = await objectDTO(db, environment);
|
|
16
14
|
const data = { kind: row.kind, machine_id: row.machine_id, last_seen_at: row.last_seen_at };
|
|
17
15
|
const text = [header('object', o, attr('machine_id', data.machine_id) + attr('last_seen_at', data.last_seen_at)),
|
|
@@ -2,17 +2,15 @@
|
|
|
2
2
|
import { jobRow } from '../jobs.js';
|
|
3
3
|
import { objectDTO } from './dto.js';
|
|
4
4
|
import { withBase } from './kind.js';
|
|
5
|
-
import { recordLiveRead } from './live-read.js';
|
|
6
5
|
import { attr, header } from './render.js';
|
|
7
6
|
export const jobKind = {
|
|
8
7
|
name: 'job',
|
|
9
8
|
addressable: 'id',
|
|
10
9
|
events: withBase({ exited: { level: 7 }, killed: { level: 7 }, silent: { level: 7 } }),
|
|
11
|
-
async read(db,
|
|
10
|
+
async read(db, _reader, job) {
|
|
12
11
|
const row = await jobRow(db, job);
|
|
13
12
|
if (!row)
|
|
14
13
|
throw new Error(`job object ${job.id} has no jobs row`);
|
|
15
|
-
await recordLiveRead(db, reader, job, opts.reposFn);
|
|
16
14
|
const o = await objectDTO(db, job);
|
|
17
15
|
const data = { command: row.command, status: row.status, exit_code: row.exit_code, output_key: row.output_key };
|
|
18
16
|
const text = [
|
|
@@ -6,7 +6,6 @@ import { readGoal } from '../../runtime/kickoff.js';
|
|
|
6
6
|
import { permits, resolveReader } from '../../permissions/evaluator.js';
|
|
7
7
|
import { objectDTO } from './dto.js';
|
|
8
8
|
import { withBase } from './kind.js';
|
|
9
|
-
import { recordLiveRead } from './live-read.js';
|
|
10
9
|
import { attr, header, section } from './render.js';
|
|
11
10
|
import { mapAsync } from '../../async-array.js';
|
|
12
11
|
const TIERED = [3, 5, 7];
|
|
@@ -65,14 +64,13 @@ export const nodeKind = {
|
|
|
65
64
|
'notice.deadline': { level: 5, levels: TIERED, durable: true, carriesBody: true, elevatesTier: true },
|
|
66
65
|
'notice.close': { level: 5, levels: TIERED, durable: true, carriesBody: true, elevatesTier: true },
|
|
67
66
|
}),
|
|
68
|
-
async read(db, reader, node
|
|
67
|
+
async read(db, reader, node) {
|
|
69
68
|
const row = await db.prepare('SELECT status FROM nodes WHERE node_id = ?').get(node.id);
|
|
70
69
|
const read = await permits(db, await resolveReader(db, reader), 'read', 'o');
|
|
71
70
|
const visible = async (rows) => await mapAsync(rows, async (o) => await objectDTO(db, o));
|
|
72
71
|
const children = await db.prepareUncached(`SELECT o.* FROM nodes n JOIN objects o ON o.id = n.node_id
|
|
73
72
|
WHERE n.parent = ? AND o.deleted_at IS NULL AND ${read.sql} ORDER BY o.seq`).all(node.id, ...read.params);
|
|
74
73
|
const owned = await db.prepareUncached(`SELECT o.* FROM objects o WHERE o.owner = ? AND o.deleted_at IS NULL AND ${read.sql} ORDER BY o.seq`).all(node.id, ...read.params);
|
|
75
|
-
await recordLiveRead(db, reader, node, opts.reposFn);
|
|
76
74
|
const data = {
|
|
77
75
|
status: row?.status ?? 'deleted', mandate_first_line: firstLine(await readGoal(node.id)), children: await visible(children),
|
|
78
76
|
owned: await visible(owned.filter((o) => o.type !== 'job')), jobs: await visible(owned.filter((o) => o.type === 'job')),
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
/** The owner kinds — person, app, repo, profile, group: identities that own objects. Base events only. */
|
|
2
2
|
import { objectDTO } from './dto.js';
|
|
3
3
|
import { withBase } from './kind.js';
|
|
4
|
-
import { recordLiveRead } from './live-read.js';
|
|
5
4
|
import { header } from './render.js';
|
|
6
5
|
function ownerKind(name) {
|
|
7
6
|
return {
|
|
8
7
|
name,
|
|
9
8
|
addressable: 'handle',
|
|
10
9
|
events: withBase(),
|
|
11
|
-
async read(db,
|
|
10
|
+
async read(db, _reader, owner) {
|
|
12
11
|
const id = await db.prepare('SELECT scheme, external_id FROM identities WHERE object = ?').get(owner.id);
|
|
13
|
-
await recordLiveRead(db, reader, owner, opts.reposFn);
|
|
14
12
|
const data = {
|
|
15
13
|
handle: owner.name, display_name: owner.preview || owner.name,
|
|
16
14
|
identity: { scheme: id?.scheme ?? '', external_id: id?.external_id ?? '' },
|
|
@@ -172,6 +172,17 @@ export function contextDirNote(nodeId, grantee) {
|
|
|
172
172
|
'scripts, data, logs and page modules. Your working dir is the project, NOT this directory, so a ' +
|
|
173
173
|
'bare relative `context/...` lands in the repo, not here.');
|
|
174
174
|
}
|
|
175
|
+
/** Where the node's engine and shell run, by the runner of its latest execution. A cloud sandbox is not the person's
|
|
176
|
+
* computer, so a path from their Mac (a pasted screenshot's temp file, a `/Users/...` path) does not exist there. */
|
|
177
|
+
export function whereYouRunNote(runner) {
|
|
178
|
+
if (runner === 'blaxel') {
|
|
179
|
+
return 'You run in a cloud sandbox, not on the person\'s computer. A file path from their Mac (such as `/Users/...` or `/var/folders/...`) does not exist here; their Mac\'s files and shell are reached through `crtr device`.';
|
|
180
|
+
}
|
|
181
|
+
if (runner === 'process' || runner === 'machine') {
|
|
182
|
+
return 'You run on the person\'s own computer: file paths they give you exist here.';
|
|
183
|
+
}
|
|
184
|
+
return '';
|
|
185
|
+
}
|
|
175
186
|
/** The profile-purview note — rendered ONLY when the profile resolves to a
|
|
176
187
|
* manifest that names at least one project dir. Phrased as PURVIEW, not a cwd
|
|
177
188
|
* replacement: the node's cwd is still its one working dir (bash/edits run
|
|
@@ -15,7 +15,7 @@ import { cadenceDisplay } from '../wake.js';
|
|
|
15
15
|
import { renderKnowledge, renderWorkspaceOpen } from '../substrate/delivery/render-boot.js';
|
|
16
16
|
import { situationalContextEnvelope } from './situational-context.js';
|
|
17
17
|
import { statusRank } from '../canvas/node-order.js';
|
|
18
|
-
import { buildProjectContextBlock, contextDirNote, orchestratorContextNote, profileNote as profileNoteShared, renderGraphMap, buildIdentityAssertion as buildIdentityAssertionShared, worktreeNote, } from './bearings-render.js';
|
|
18
|
+
import { buildProjectContextBlock, contextDirNote, orchestratorContextNote, whereYouRunNote, profileNote as profileNoteShared, renderGraphMap, buildIdentityAssertion as buildIdentityAssertionShared, worktreeNote, } from './bearings-render.js';
|
|
19
19
|
import { mapAsync } from '../async-array.js';
|
|
20
20
|
/** The bearings custom type is shared with every attached renderer. */
|
|
21
21
|
export { CONTEXT_INTRO_CUSTOM_TYPE } from '../../shared/generated-context.js';
|
|
@@ -162,7 +162,11 @@ function managedWorktreeNote(node) {
|
|
|
162
162
|
* documents owned by the directory's repo (its `<repo>/index` is the workspace front door). */
|
|
163
163
|
async function bearingsShell(nodeId, knowledge, workspaceContext) {
|
|
164
164
|
const node = await getNode(nodeId);
|
|
165
|
+
const execution = await latestExecutionForNode(nodeId);
|
|
165
166
|
const bearings = ['<crtr-bearings>', await buildIdentityAssertion(nodeId, node)];
|
|
167
|
+
const whereYouRun = whereYouRunNote(execution?.runner);
|
|
168
|
+
if (whereYouRun !== '')
|
|
169
|
+
bearings.push('', '## Where you run', whereYouRun);
|
|
166
170
|
const map = await buildGraphMap(nodeId, node);
|
|
167
171
|
if (map !== '')
|
|
168
172
|
bearings.push('', '## Your place in the canvas', map);
|
|
@@ -183,7 +187,7 @@ async function bearingsShell(nodeId, knowledge, workspaceContext) {
|
|
|
183
187
|
// nested card inside the outer envelope. Never routed through the visible
|
|
184
188
|
// chat/digest path. '' when nothing was ever set.
|
|
185
189
|
const situational = await situationalContextEnvelope(nodeId) ?? '';
|
|
186
|
-
const projectCtx = node?.cwd !== undefined &&
|
|
190
|
+
const projectCtx = node?.cwd !== undefined && execution?.runner === 'process' ? buildProjectContextBlock(node.cwd) : ''; // reads this host
|
|
187
191
|
return [bearings.join('\n'), knowledge, workspaceContext, situational, projectCtx]
|
|
188
192
|
.filter((s) => s !== '')
|
|
189
193
|
.join('\n');
|
|
@@ -382,9 +382,9 @@ async function residentBlaxelCanIdle(nodeId, viewer) {
|
|
|
382
382
|
&& !await isHeldAwake(nodeId, viewer)
|
|
383
383
|
&& (await runningJobs(await openDb(), nodeId)).length === 0;
|
|
384
384
|
}
|
|
385
|
-
/** A yield's settle: a broker that can start the next cycle itself is told to ask for it; any other exits and is relaunched. */
|
|
386
|
-
function refreshDirective(request) {
|
|
387
|
-
return request.inPlaceCycle === true ? { action: '
|
|
385
|
+
/** A yield's settle: a broker that can start the next cycle itself is told to ask for it, unless that cycle is already recorded and starting; any other exits and is relaunched. */
|
|
386
|
+
function refreshDirective(request, node) {
|
|
387
|
+
return request.inPlaceCycle !== true ? { action: 'shutdown' } : node.cycle_pending === true ? { action: 'stay_dormant' } : { action: 'new_cycle' };
|
|
388
388
|
}
|
|
389
389
|
async function settleBroker(nodeId, request, viewer) {
|
|
390
390
|
const node = await getNode(nodeId);
|
|
@@ -418,7 +418,7 @@ async function settleBroker(nodeId, request, viewer) {
|
|
|
418
418
|
if (request.stopReason !== 'stop' && request.stopReason !== 'length') {
|
|
419
419
|
await clearFault(nodeId, { link: 'daemon→node' });
|
|
420
420
|
if (node.intent === 'refresh')
|
|
421
|
-
return { directive: refreshDirective(request), closePane: false };
|
|
421
|
+
return { directive: refreshDirective(request, node), closePane: false };
|
|
422
422
|
// The broker reports a recorded fatal provider fault with no retry or fallback armed: nothing is left to run, so a resident
|
|
423
423
|
// Blaxel broker goes idle like any settled one, instead of holding its awake sandbox until the unattended park clock tears it
|
|
424
424
|
// down. A pending structured-output request keeps it awake as before.
|
|
@@ -437,7 +437,7 @@ async function settleBroker(nodeId, request, viewer) {
|
|
|
437
437
|
}
|
|
438
438
|
if (node.intent === 'refresh') {
|
|
439
439
|
await clearFault(nodeId);
|
|
440
|
-
return { directive: refreshDirective(request), closePane: false };
|
|
440
|
+
return { directive: refreshDirective(request, node), closePane: false };
|
|
441
441
|
}
|
|
442
442
|
const decision = await evaluateStop(nodeId, signals);
|
|
443
443
|
await clearFault(nodeId);
|
|
@@ -723,7 +723,7 @@ function statusForExitCode(exitCode) {
|
|
|
723
723
|
* line (capped) turns an opaque `internal error` into an actionable one while
|
|
724
724
|
* still refusing to leak multi-line traces. The router logs the FULL error
|
|
725
725
|
* (with stack) server-side alongside this. */
|
|
726
|
-
function boundedCause(err) {
|
|
726
|
+
export function boundedCause(err) {
|
|
727
727
|
const raw = err instanceof Error ? err.message : String(err);
|
|
728
728
|
const firstLine = raw.split('\n', 1)[0].trim();
|
|
729
729
|
if (firstLine === '')
|
package/packages/crouter-api/dist/{clients/attach/chrome/git-info.js → shared/git-status.js}
RENAMED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
//
|
|
2
|
-
//
|
|
3
|
-
//
|
|
4
|
-
//
|
|
5
|
-
//
|
|
1
|
+
// shared/git-status.ts — async, non-blocking git context: the working dir's last
|
|
2
|
+
// path segment, current branch, and status symbols (dirty / ahead / behind).
|
|
3
|
+
// Shells out via execFile (never sync — neither the viewer's input pump nor the
|
|
4
|
+
// broker's frame loop may block on a subprocess). The broker reads it for its
|
|
5
|
+
// own cwd (`get_git_status`); the attach viewer paints the reply.
|
|
6
6
|
import { execFile } from 'node:child_process';
|
|
7
7
|
import { basename } from 'node:path';
|
|
8
8
|
/** Parse `git status --porcelain=v1 --branch` into {@link GitInfo} flags. The
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/api",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.713",
|
|
4
4
|
"description": "Typed crtrd /v1 API contract — DTOs, route builders, the error contract, the CrtrClient, and the command-plugin manifest format. Zero runtime dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/api/index.js",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/plugin",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.713",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"postpack": "node ../../scripts/pack-minify.mjs postpack packages/crouter-plugin"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@north-light/api": "0.3.
|
|
31
|
-
"@north-light/identity": "0.3.
|
|
30
|
+
"@north-light/api": "0.3.713",
|
|
31
|
+
"@north-light/identity": "0.3.713"
|
|
32
32
|
},
|
|
33
33
|
"license": "UNLICENSED",
|
|
34
34
|
"publishConfig": {
|
package/runtime.lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@north-light/cli",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.713",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@north-light/cli",
|
|
9
|
-
"version": "0.3.
|
|
9
|
+
"version": "0.3.713",
|
|
10
10
|
"hasInstallScript": true,
|
|
11
11
|
"license": "UNLICENSED",
|
|
12
12
|
"workspaces": [
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"@milkdown/preset-gfm": "^7.22.3",
|
|
29
29
|
"@milkdown/prose": "^7.22.3",
|
|
30
30
|
"@milkdown/utils": "^7.22.3",
|
|
31
|
-
"@north-light/identity": "0.3.
|
|
32
|
-
"@north-light/plugin": "0.3.
|
|
31
|
+
"@north-light/identity": "0.3.713",
|
|
32
|
+
"@north-light/plugin": "0.3.713",
|
|
33
33
|
"cron-parser": "^5.6.0",
|
|
34
34
|
"esbuild": "0.28.2",
|
|
35
35
|
"jose": "^6.2.12",
|
|
@@ -11902,17 +11902,17 @@
|
|
|
11902
11902
|
},
|
|
11903
11903
|
"packages/crouter-api": {
|
|
11904
11904
|
"name": "@north-light/api",
|
|
11905
|
-
"version": "0.3.
|
|
11905
|
+
"version": "0.3.713",
|
|
11906
11906
|
"license": "UNLICENSED"
|
|
11907
11907
|
},
|
|
11908
11908
|
"packages/crouter-env-docker": {
|
|
11909
11909
|
"name": "@north-light/env-docker",
|
|
11910
|
-
"version": "0.3.
|
|
11910
|
+
"version": "0.3.713",
|
|
11911
11911
|
"license": "UNLICENSED"
|
|
11912
11912
|
},
|
|
11913
11913
|
"packages/crouter-identity": {
|
|
11914
11914
|
"name": "@north-light/identity",
|
|
11915
|
-
"version": "0.3.
|
|
11915
|
+
"version": "0.3.713",
|
|
11916
11916
|
"license": "UNLICENSED",
|
|
11917
11917
|
"dependencies": {
|
|
11918
11918
|
"jose": "^6.2.1"
|
|
@@ -11920,21 +11920,21 @@
|
|
|
11920
11920
|
},
|
|
11921
11921
|
"packages/crouter-plugin": {
|
|
11922
11922
|
"name": "@north-light/plugin",
|
|
11923
|
-
"version": "0.3.
|
|
11923
|
+
"version": "0.3.713",
|
|
11924
11924
|
"license": "UNLICENSED",
|
|
11925
11925
|
"dependencies": {
|
|
11926
|
-
"@north-light/api": "0.3.
|
|
11927
|
-
"@north-light/identity": "0.3.
|
|
11926
|
+
"@north-light/api": "0.3.713",
|
|
11927
|
+
"@north-light/identity": "0.3.713"
|
|
11928
11928
|
}
|
|
11929
11929
|
},
|
|
11930
11930
|
"packages/crouter-sdk": {
|
|
11931
11931
|
"name": "@north-light/sdk",
|
|
11932
|
-
"version": "0.3.
|
|
11932
|
+
"version": "0.3.713",
|
|
11933
11933
|
"license": "UNLICENSED",
|
|
11934
11934
|
"dependencies": {
|
|
11935
|
-
"@north-light/api": "0.3.
|
|
11936
|
-
"@north-light/identity": "0.3.
|
|
11937
|
-
"@north-light/plugin": "0.3.
|
|
11935
|
+
"@north-light/api": "0.3.713",
|
|
11936
|
+
"@north-light/identity": "0.3.713",
|
|
11937
|
+
"@north-light/plugin": "0.3.713",
|
|
11938
11938
|
"jose": "^6.2.1"
|
|
11939
11939
|
},
|
|
11940
11940
|
"bin": {
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { actorOf } from '../documents.js';
|
|
2
|
-
import { publish } from '../events.js';
|
|
3
|
-
import { recordWatch } from '../watches.js';
|
|
4
|
-
/** A live read of a non-document object: the reader watches it and its other watchers hear `read`. */
|
|
5
|
-
export async function recordLiveRead(db, reader, object, reposFn) {
|
|
6
|
-
const actor = actorOf(reader);
|
|
7
|
-
if (actor.id === object.id)
|
|
8
|
-
return; // reading yourself is not an act on anything
|
|
9
|
-
await recordWatch(db, actor, object, 'read');
|
|
10
|
-
await publish(db, { event: 'read', object, actor, attrs: {} }, reposFn);
|
|
11
|
-
}
|
|
File without changes
|
|
File without changes
|