@graview/ship 0.1.56 → 0.1.58
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 +1 -1
- package/dist/cli.d.ts +1 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +1 -1
- package/dist/connections.d.ts +27 -8
- package/dist/connections.d.ts.map +1 -1
- package/dist/connections.js +62 -7
- package/dist/connections.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -574,7 +574,7 @@ host of the same API, and it consumes this package the way any customer would.
|
|
|
574
574
|
| Default content moving | `seedSteps`, `applySteps`, `graview sync-seed` | when to run it, and for whom |
|
|
575
575
|
| An agent attaching | `graview mcp`, `graview apply`, `--remote-url`, `--header` | issuing the keys those headers carry |
|
|
576
576
|
| Schema moving | `version`, `migrations[]`, `graview check` | fleet upgrades |
|
|
577
|
-
| Another system kept in step | `connections` in the declaration, `runConnections` (`graview serve`, `graview preview`; `--no-sync`) | each workspace's tokens, through `token({ connection, refresh })`, and where the engines' state is kept |
|
|
577
|
+
| Another system kept in step (a Google calendar, a Notion database) | `connections` in the declaration, `runConnections` (`graview serve`, `graview preview`; `--no-sync`), credentials from the environment (`GOOGLE_*`, and NOTION_TOKEN for Notion), one set of links shared by every connection so a Notion relation finds the record another connection keeps | each workspace's tokens and Notion secrets, through `token({ connection, declaration, refresh })`, the calendar or database it keeps (`calendar`, `database`), and where the engines' state is kept |
|
|
578
578
|
|
|
579
579
|
## The boundary
|
|
580
580
|
|
package/dist/cli.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ import type { StoredMeta } from "./meta.js";
|
|
|
12
12
|
* `meta.json` carrying the stored version. `--sqlite` swaps the adapter and
|
|
13
13
|
* changes nothing else, which is the actual claim about adapters.
|
|
14
14
|
*/
|
|
15
|
-
export declare const SERVE_USAGE = " graview serve <entry> [--data <dir>] [--port <n>] [--seed <file>] [--sqlite <file>]\n [--host <address>] [--trust-seat-headers] [--no-sync] [--no-friction]\n Serves the app's store over HTTP, and live over a WebSocket at\n /graview/live. The op log is the wire: a client sends calls, the\n store judges them under the caller's own seat, and the ops come back,\n pushed to every socket as they land. Data lives in <dir> (default\n ./data) as readable JSON, or in a SQLite file with --sqlite. It listens on 127.0.0.1 and\n believes the seat a request names in its headers, because only this\n machine can reach it; on any other --host it will not start unless\n --trust-seat-headers says the network in front of it can be trusted.\n The app's declared connections (a Google calendar) run beside it, with\n credentials from the environment and their cursors beside the data;\n --no-sync leaves them off. What people looked for and could not do\n (a search that found nothing, an act refused) is kept for 90 days in\n friction.json beside the data, each person reading only their own and\n the counts, never a visitor's; --no-friction keeps none.\n\n graview sync-seed <entry> --seed <file> [--data <dir> | --sqlite <file>]\n [--apply] [--prune] [--json]\n Diffs the bootstrap seed against the live store and says, as content\n steps, what would bring the store in step with it: records put,\n fields patched, ties made. Prints and exits by default; --apply lands\n the steps as one logged, undoable operation; --prune also drops what\n the seed no longer has. The seed itself is only ever read at first\n install \u2014 this is how default content moves afterwards, in place of\n deleting the store.\n\n graview preview <document.json | app module> [--seed <file>] [--port <n>] [--host <address>]\n [--data <dir> | --sqlite <file>] [--as <id>] [--roles a,b] [--no-sync]\n [--view <view.js> --manifest <manifest.json>]\n Serves the store and Graview's own faces over it \u2014 the scene and\n Pages, with the bar \u2014 so a document and a snapshot can be looked at\n with no product. Nothing to build or install: the page ships with\n graview. An app declared in code is taken as graview check takes it\n (./dist/domain/app.js), its module bundled for the page with the\n project's esbuild. The store is in memory unless --data or --sqlite\n name where to keep it; the page sits as a person holding every role\n the app declares, unless --as or --roles say who. Its connections run as\n serve's do, unless --no-sync. --view and --manifest draw a worker view\n proposed and not kept where it attaches, marked as a draft. Each of\n the app's forms for visitors is at /forms/<name>, drawn alone and\n answered as a visitor minted for that page.\n\n graview shots <document.json | app module> [--seed <file>] [--places a,b] [--out <dir>]\n [--scheme light|dark|both] [--width <px>[,<px>]] [--faces pages,scene]\n [--view <view.js> --manifest <manifest.json>]\n Photographs places headless to PNGs, <place>-<scheme>-<width>.png in\n <dir> (default ./shots): each place by its address word or title (the\n home, overview, a lens's name, a kind's plural) or a path such as\n /tasks/t1; every place when none is named. Needs Playwright, which you\n install beside the project (npm i -D playwright, then npx playwright\n install chromium). --view and --manifest picture a proposed view\n before it is kept: name its place by its title, as a kept view's.\n";
|
|
15
|
+
export declare const SERVE_USAGE = " graview serve <entry> [--data <dir>] [--port <n>] [--seed <file>] [--sqlite <file>]\n [--host <address>] [--trust-seat-headers] [--no-sync] [--no-friction]\n Serves the app's store over HTTP, and live over a WebSocket at\n /graview/live. The op log is the wire: a client sends calls, the\n store judges them under the caller's own seat, and the ops come back,\n pushed to every socket as they land. Data lives in <dir> (default\n ./data) as readable JSON, or in a SQLite file with --sqlite. It listens on 127.0.0.1 and\n believes the seat a request names in its headers, because only this\n machine can reach it; on any other --host it will not start unless\n --trust-seat-headers says the network in front of it can be trusted.\n The app's declared connections (a Google calendar, a Notion database) run beside it, with\n credentials from the environment and their cursors beside the data;\n --no-sync leaves them off. What people looked for and could not do\n (a search that found nothing, an act refused) is kept for 90 days in\n friction.json beside the data, each person reading only their own and\n the counts, never a visitor's; --no-friction keeps none.\n\n graview sync-seed <entry> --seed <file> [--data <dir> | --sqlite <file>]\n [--apply] [--prune] [--json]\n Diffs the bootstrap seed against the live store and says, as content\n steps, what would bring the store in step with it: records put,\n fields patched, ties made. Prints and exits by default; --apply lands\n the steps as one logged, undoable operation; --prune also drops what\n the seed no longer has. The seed itself is only ever read at first\n install \u2014 this is how default content moves afterwards, in place of\n deleting the store.\n\n graview preview <document.json | app module> [--seed <file>] [--port <n>] [--host <address>]\n [--data <dir> | --sqlite <file>] [--as <id>] [--roles a,b] [--no-sync]\n [--view <view.js> --manifest <manifest.json>]\n Serves the store and Graview's own faces over it \u2014 the scene and\n Pages, with the bar \u2014 so a document and a snapshot can be looked at\n with no product. Nothing to build or install: the page ships with\n graview. An app declared in code is taken as graview check takes it\n (./dist/domain/app.js), its module bundled for the page with the\n project's esbuild. The store is in memory unless --data or --sqlite\n name where to keep it; the page sits as a person holding every role\n the app declares, unless --as or --roles say who. Its connections run as\n serve's do, unless --no-sync. --view and --manifest draw a worker view\n proposed and not kept where it attaches, marked as a draft. Each of\n the app's forms for visitors is at /forms/<name>, drawn alone and\n answered as a visitor minted for that page.\n\n graview shots <document.json | app module> [--seed <file>] [--places a,b] [--out <dir>]\n [--scheme light|dark|both] [--width <px>[,<px>]] [--faces pages,scene]\n [--view <view.js> --manifest <manifest.json>]\n Photographs places headless to PNGs, <place>-<scheme>-<width>.png in\n <dir> (default ./shots): each place by its address word or title (the\n home, overview, a lens's name, a kind's plural) or a path such as\n /tasks/t1; every place when none is named. Needs Playwright, which you\n install beside the project (npm i -D playwright, then npx playwright\n install chromium). --view and --manifest picture a proposed view\n before it is kept: name its place by its title, as a kept view's.\n";
|
|
16
16
|
/** The same store, whichever command asked: parsed from the flags every store command shares. */
|
|
17
17
|
export declare const STORE_FLAGS = "--data <dir> (default ./data) | --sqlite <file>, and --seed <file> for a first install";
|
|
18
18
|
export declare function flag(argv: readonly string[], name: string): string | undefined;
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAc,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAQpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAQnD,OAAO,EAAuD,KAAK,SAAS,EAAE,MAAM,iBAAiB,CAAC;AACtG,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAE5C;;;;;;;;;GASG;AACH,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAc,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAQpE,OAAO,KAAK,EA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AI,EAAE,MAAM,CAAC;CACvB;AAkED;;;GAGG;AACH,wBAAsB,OAAO,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CA0D7F;AAED;;;GAGG;AACH,wBAAsB,KAAK,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,EAAE,WAAW,GAAG,OAAO,CAAC,MAAM,CAAC,CAoE3F"}
|
package/dist/cli.js
CHANGED
|
@@ -37,7 +37,7 @@ export const SERVE_USAGE = ` graview serve <entry> [--data <dir>] [--port <n>]
|
|
|
37
37
|
believes the seat a request names in its headers, because only this
|
|
38
38
|
machine can reach it; on any other --host it will not start unless
|
|
39
39
|
--trust-seat-headers says the network in front of it can be trusted.
|
|
40
|
-
The app's declared connections (a Google calendar) run beside it, with
|
|
40
|
+
The app's declared connections (a Google calendar, a Notion database) run beside it, with
|
|
41
41
|
credentials from the environment and their cursors beside the data;
|
|
42
42
|
--no-sync leaves them off. What people looked for and could not do
|
|
43
43
|
(a search that found nothing, an act refused) is kept for 90 days in
|
package/dist/connections.d.ts
CHANGED
|
@@ -15,11 +15,21 @@ import { type ConnectionDeclaration, type Fetcher, type GoogleTokenRequest, type
|
|
|
15
15
|
* declaration names, are `./connections-file.ts`'s (main entry only).
|
|
16
16
|
*
|
|
17
17
|
* Credentials are never in the declaration. By default they come from the
|
|
18
|
-
* environment
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
18
|
+
* environment, and failing that from the KEY=value file `auth.file` names:
|
|
19
|
+
* for a Google calendar `<auth.env>_CLIENT_ID`, `_CLIENT_SECRET` and
|
|
20
|
+
* `_REFRESH_TOKEN` (auth.env is "GOOGLE" unless declared); for a Notion
|
|
21
|
+
* database the internal integration's secret, `<auth.env>_TOKEN` (auth.env
|
|
22
|
+
* is "NOTION" unless declared, so `NOTION_TOKEN`). A host that keeps them
|
|
23
|
+
* itself (Graview Cloud, per workspace) hands `token` instead — Google's
|
|
24
|
+
* access token, asked again with `{ refresh: true }` when Google refuses
|
|
25
|
+
* one, or Notion's secret.
|
|
26
|
+
*
|
|
27
|
+
* Every connection shares one set of links (`sharedLinks()`), so a Notion
|
|
28
|
+
* relation finds the record another connection keeps (a check's reindeer, in
|
|
29
|
+
* the fleet's table), and after each pass every engine links what it held
|
|
30
|
+
* for a page another one has linked since — the order they run in does not
|
|
31
|
+
* matter. A host gets this by running them here; one that makes its own
|
|
32
|
+
* engines with `connection()` passes them one `links`.
|
|
23
33
|
*/
|
|
24
34
|
export interface ConnectionTokenRequest extends GoogleTokenRequest {
|
|
25
35
|
/** The connection's name in the declaration. */
|
|
@@ -33,16 +43,25 @@ export interface RunConnectionsOptions<S extends AnySchema> {
|
|
|
33
43
|
readonly state?: ConnectionStateStore;
|
|
34
44
|
/** Reads the KEY=value file a declaration's `auth.file` names (`readEnvFile`). Absent: that file is not read. */
|
|
35
45
|
readFile?(path: string): Readonly<Record<string, string>>;
|
|
36
|
-
/**
|
|
46
|
+
/**
|
|
47
|
+
* THE HOST SEAM: a connection's credential — a Google access token, or a
|
|
48
|
+
* Notion integration's secret (`declaration.system` says which). Absent:
|
|
49
|
+
* read from the credentials the declaration names.
|
|
50
|
+
*/
|
|
37
51
|
token?(request: ConnectionTokenRequest): Promise<string> | string;
|
|
38
|
-
/**
|
|
52
|
+
/** A Google calendar's id, when the host keeps it. Absent: the declaration's, or the environment variable it names. */
|
|
39
53
|
calendar?(request: {
|
|
40
54
|
readonly connection: string;
|
|
41
55
|
readonly declaration: ConnectionDeclaration;
|
|
42
56
|
}): string | undefined;
|
|
57
|
+
/** A Notion database's id, when the host keeps it. Absent: the declaration's, or the environment variable it names. */
|
|
58
|
+
database?(request: {
|
|
59
|
+
readonly connection: string;
|
|
60
|
+
readonly declaration: ConnectionDeclaration;
|
|
61
|
+
}): string | undefined;
|
|
43
62
|
/** Where credentials and a calendar's `env` are read. `process.env` by default. */
|
|
44
63
|
readonly env?: Readonly<Record<string, string | undefined>>;
|
|
45
|
-
/** Google's API and its token endpoint, for a test to script. */
|
|
64
|
+
/** Google's API and its token endpoint, and Notion's API, for a test to script (`scriptedNotion().fetch`). */
|
|
46
65
|
readonly fetch?: Fetcher;
|
|
47
66
|
/** Run nothing, and say so: `graview serve --no-sync`. */
|
|
48
67
|
readonly paused?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../src/connections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,
|
|
1
|
+
{"version":3,"file":"connections.d.ts","sourceRoot":"","sources":["../src/connections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAClE,OAAO,EAA4C,KAAK,qBAAqB,EAAE,KAAK,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,UAAU,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAElL;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB;IAChE,gDAAgD;IAChD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,WAAW,EAAE,qBAAqB,CAAC;CAC7C;AAED,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,SAAS;IACxD,QAAQ,CAAC,GAAG,EAAE,UAAU,CAAC,CAAC,CAAC,CAAC;IAC5B,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC;IACzB,mJAAmJ;IACnJ,QAAQ,CAAC,KAAK,CAAC,EAAE,oBAAoB,CAAC;IACtC,iHAAiH;IACjH,QAAQ,CAAC,CAAC,IAAI,EAAE,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3D,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAEzD,kGAAkG;AAClG,MAAM,WAAW,oBAAoB;IACnC,IAAI,IAAI,gBAAgB,CAAC;IACzB,KAAK,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAAC;CACvC;AAQD,2DAA2D;AAC3D,eAAO,MAAM,gBAAgB,wCAAwC,CAAC;AAsBtE,iEAAiE;AACjE,wBAAgB,SAAS,CAAC,MAAM,EAAE,UAAU,GAAG,MAAM,GAAG,SAAS,CAahE;AAKD,wBAAgB,cAAc,CAAC,CAAC,SAAS,SAAS,EAAE,OAAO,EAAE,qBAAqB,CAAC,CAAC,CAAC,GAAG,kBAAkB,CA4JzG"}
|
package/dist/connections.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { connection } from "@graview/core/sync";
|
|
1
|
+
import { NOTION_AUTH_ENV, connection, sharedLinks } from "@graview/core/sync";
|
|
2
2
|
/** What a connection reads its credentials and calendar from: the environment, then the declared file. */
|
|
3
3
|
function lookupFor(declaration, env, readFile) {
|
|
4
4
|
const file = declaration.auth?.file && readFile ? readFile(declaration.auth.file) : {};
|
|
@@ -29,36 +29,78 @@ function refreshingToken(credentials, name, post) {
|
|
|
29
29
|
}
|
|
30
30
|
/** One pass's news in a line, or nothing when there was none. */
|
|
31
31
|
export function sayReport(report) {
|
|
32
|
+
const notion = report.system === "notion";
|
|
33
|
+
const place = notion ? "Notion" : "the calendar";
|
|
32
34
|
const said = [];
|
|
33
35
|
if (report.applied.length)
|
|
34
|
-
said.push(`took ${report.applied.length} from
|
|
36
|
+
said.push(`took ${report.applied.length} from ${place}`);
|
|
35
37
|
if (report.pushed.length)
|
|
36
|
-
said.push(`sent ${report.pushed.length} to it`);
|
|
38
|
+
said.push(`sent ${report.pushed.length} to ${notion ? "Notion" : "it"}`);
|
|
37
39
|
if (report.gone.length)
|
|
38
40
|
said.push(`${report.gone.length} gone there`);
|
|
39
|
-
// A change coming in that this store refused names the calendar's event, which may have no record here.
|
|
41
|
+
// A change coming in that this store refused names the calendar's event or Notion's page, which may have no record here.
|
|
40
42
|
if (report.refused.length)
|
|
41
|
-
said.push(`refused: ${report.refused.map((one) => `${one.resource ?
|
|
43
|
+
said.push(`refused: ${report.refused.map((one) => `${one.resource ? `${notion ? "Notion's page" : "the calendar's"} ${one.id}` : one.localId} (${one.error})`).join(", ")}`);
|
|
42
44
|
if (report.resolved.length)
|
|
43
45
|
said.push(`${report.resolved.length} conflict${report.resolved.length === 1 ? "" : "s"} settled`);
|
|
44
46
|
if (report.conflicts.length)
|
|
45
47
|
said.push(`${report.conflicts.length} conflict${report.conflicts.length === 1 ? "" : "s"} held`);
|
|
46
48
|
if (report.offline)
|
|
47
|
-
said.push(
|
|
49
|
+
said.push(`could not reach ${place}${report.problem ? ` (${report.problem})` : ""}; will try again`);
|
|
48
50
|
return said.length > 0 ? said.join(" · ") : undefined;
|
|
49
51
|
}
|
|
52
|
+
/** The systems a connection's changes are authored by: a change of theirs landing here starts no pass. */
|
|
53
|
+
const CONNECTION_SYSTEMS = new Set(["google-calendar", "notion"]);
|
|
50
54
|
export function runConnections(options) {
|
|
51
55
|
const say = options.say ?? (() => undefined);
|
|
52
56
|
const declared = Object.entries(options.app.connections ?? {});
|
|
53
57
|
const env = options.env ?? globalThis.process?.env ?? {};
|
|
54
58
|
const kept = options.state?.read() ?? {};
|
|
55
59
|
const engines = [];
|
|
60
|
+
const links = sharedLinks();
|
|
56
61
|
for (const [name, declaration] of declared) {
|
|
57
62
|
if (options.paused || declaration.paused) {
|
|
58
63
|
say(`${name}: paused${options.paused ? " (--no-sync)" : " (declared)"}; nothing is synced`);
|
|
59
64
|
continue;
|
|
60
65
|
}
|
|
61
66
|
const lookup = lookupFor(declaration, env, options.readFile);
|
|
67
|
+
if (declaration.system === "notion") {
|
|
68
|
+
const databaseId = options.database?.({ connection: name, declaration }) ?? (typeof declaration.database === "string" ? declaration.database : lookup(declaration.database.env));
|
|
69
|
+
if (!databaseId) {
|
|
70
|
+
say(`${name}: not started: no database id in ${typeof declaration.database === "string" ? "the declaration" : declaration.database.env}`);
|
|
71
|
+
continue;
|
|
72
|
+
}
|
|
73
|
+
const secretName = `${declaration.auth?.env ?? NOTION_AUTH_ENV}_TOKEN`;
|
|
74
|
+
let secret;
|
|
75
|
+
if (options.token) {
|
|
76
|
+
const host = options.token;
|
|
77
|
+
secret = () => host({ connection: name, declaration });
|
|
78
|
+
}
|
|
79
|
+
else {
|
|
80
|
+
const value = lookup(secretName);
|
|
81
|
+
if (!value) {
|
|
82
|
+
say(`${name}: not started: ${secretName} is not set${declaration.auth?.file ? ` in the environment or ${declaration.auth.file}` : " in the environment"}`);
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
secret = () => value;
|
|
86
|
+
}
|
|
87
|
+
const made = connection({
|
|
88
|
+
name,
|
|
89
|
+
declaration,
|
|
90
|
+
app: options.app,
|
|
91
|
+
store: options.store,
|
|
92
|
+
databaseId,
|
|
93
|
+
token: secret,
|
|
94
|
+
...(options.token ? {} : { secretName }),
|
|
95
|
+
...(options.fetch ? { fetch: options.fetch } : {}),
|
|
96
|
+
...(kept[name] ? { state: kept[name] } : {}),
|
|
97
|
+
say: (line) => say(`${name}: ${line}`),
|
|
98
|
+
links,
|
|
99
|
+
});
|
|
100
|
+
engines.push({ name, every: (declaration.every ?? 30) * 1000, engine: made.engine });
|
|
101
|
+
say(`${name}: ${declaration.direction === "read" ? "reading" : "keeping in step with"} a Notion database into ${declaration.kind}, every ${declaration.every ?? 30} s`);
|
|
102
|
+
continue;
|
|
103
|
+
}
|
|
62
104
|
const calendarId = options.calendar?.({ connection: name, declaration }) ?? (typeof declaration.calendar === "string" ? declaration.calendar : lookup(declaration.calendar.env));
|
|
63
105
|
if (!calendarId) {
|
|
64
106
|
say(`${name}: not started: no calendar id in ${typeof declaration.calendar === "string" ? "the declaration" : declaration.calendar.env}`);
|
|
@@ -112,6 +154,19 @@ export function runConnections(options) {
|
|
|
112
154
|
say(`${name}: the pass failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
113
155
|
}
|
|
114
156
|
}
|
|
157
|
+
// A page one connection's relation reached before another connection read it is linked now, with nothing sent.
|
|
158
|
+
for (const { name, engine } of engines) {
|
|
159
|
+
try {
|
|
160
|
+
const linked = engine.resolveHeld();
|
|
161
|
+
if (linked.length > 0) {
|
|
162
|
+
say(`${name}: linked ${linked.length} to records another connection read`);
|
|
163
|
+
kept[name] = engine.snapshot;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
catch (error) {
|
|
167
|
+
say(`${name}: linking failed: ${error instanceof Error ? error.message : String(error)}`);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
115
170
|
options.state?.write(kept);
|
|
116
171
|
return reports;
|
|
117
172
|
};
|
|
@@ -136,7 +191,7 @@ export function runConnections(options) {
|
|
|
136
191
|
timers.push(setInterval(() => void runNow(), every));
|
|
137
192
|
// A change made here — not one a connection itself landed — starts a pass soon after.
|
|
138
193
|
unsubscribe = options.store.subscribe((_diff, ops) => {
|
|
139
|
-
if (ops.every((op) => op.author.kind === "system" && op.author.id
|
|
194
|
+
if (ops.every((op) => op.author.kind === "system" && CONNECTION_SYSTEMS.has(op.author.id ?? "")))
|
|
140
195
|
return;
|
|
141
196
|
if (settling)
|
|
142
197
|
clearTimeout(settling);
|
package/dist/connections.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../src/connections.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAsG,MAAM,oBAAoB,CAAC;AAuEpJ,0GAA0G;AAC1G,SAAS,SAAS,CAAC,WAAkC,EAAE,GAAiD,EAAE,QAA6D;IACrK,MAAM,IAAI,GAAqC,WAAW,CAAC,IAAI,EAAE,IAAI,IAAI,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CA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|
1
1
|
{
|
|
2
2
|
"name": "@graview/ship",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.58",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
}
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@graview/core": "0.1.
|
|
30
|
+
"@graview/core": "0.1.58"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"zod": "^4.6.5"
|