@beehexa/hexasync-template-assets 2608.20.18 → 2608.20.32
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/assetPath.d.ts +96 -0
- package/dist/assetPath.d.ts.map +1 -0
- package/dist/assetPath.js +170 -0
- package/dist/assetPath.js.map +1 -0
- package/dist/classify.d.ts +44 -0
- package/dist/classify.d.ts.map +1 -0
- package/dist/classify.js +147 -0
- package/dist/classify.js.map +1 -0
- package/dist/env.d.ts +57 -0
- package/dist/env.d.ts.map +1 -0
- package/dist/env.js +97 -0
- package/dist/env.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -0
- package/dist/install.d.ts +83 -0
- package/dist/install.d.ts.map +1 -0
- package/dist/install.js +248 -0
- package/dist/install.js.map +1 -0
- package/dist/lint.d.ts +66 -0
- package/dist/lint.d.ts.map +1 -0
- package/dist/lint.js +141 -0
- package/dist/lint.js.map +1 -0
- package/dist/mcpClients.d.ts +65 -0
- package/dist/mcpClients.d.ts.map +1 -0
- package/dist/mcpClients.js +114 -0
- package/dist/mcpClients.js.map +1 -0
- package/dist/ports.d.ts +62 -0
- package/dist/ports.d.ts.map +1 -0
- package/dist/ports.js +9 -0
- package/dist/ports.js.map +1 -0
- package/dist/update.d.ts +55 -0
- package/dist/update.d.ts.map +1 -0
- package/dist/update.js +158 -0
- package/dist/update.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Writing an MCP server entry into each client's own configuration (Story 7.5).
|
|
3
|
+
*
|
|
4
|
+
* ### Why this is data, not four code paths
|
|
5
|
+
*
|
|
6
|
+
* Every client stores the same three facts — a name, a command, its arguments — under a different key, in a different
|
|
7
|
+
* file, with a different nesting. Four bespoke writers would be four places to update when a fifth client appears, and
|
|
8
|
+
* four chances for one of them to overwrite something. So a client is a **row**, and one merge serves all of them.
|
|
9
|
+
*
|
|
10
|
+
* ### Pure, so the decision is testable without a filesystem
|
|
11
|
+
*
|
|
12
|
+
* `mergeClientConfig` takes the existing file's text and returns the text to write. The caller does the reading and
|
|
13
|
+
* writing. That is what makes AC-2 (*"those survive — the file is extended, never overwritten"*) and AC-4 (*"nothing
|
|
14
|
+
* changes"*) assertable on strings rather than on a temp directory.
|
|
15
|
+
*/
|
|
16
|
+
/** How one client stores MCP servers. */
|
|
17
|
+
export interface McpClient {
|
|
18
|
+
readonly id: string;
|
|
19
|
+
readonly label: string;
|
|
20
|
+
/** Project-scoped path, relative to the workspace root. `undefined` when the client is user-scoped only. */
|
|
21
|
+
readonly file?: string;
|
|
22
|
+
/** The property that holds the server map — clients disagree about this. */
|
|
23
|
+
readonly key: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The clients this writes for.
|
|
27
|
+
*
|
|
28
|
+
* ⚠️ `claude-desktop` has **no project-scoped file** — its configuration is user-scoped and lives outside any
|
|
29
|
+
* workspace. Writing there would edit a file the user did not put under version control and did not ask us to touch, so
|
|
30
|
+
* AC-3 prints a snippet instead. That is a deliberate refusal, not a gap.
|
|
31
|
+
*/
|
|
32
|
+
export declare const MCP_CLIENTS: readonly McpClient[];
|
|
33
|
+
/** The entry every client gets — the same server, however each one spells the surrounding structure. */
|
|
34
|
+
export declare const SERVER_ENTRY: {
|
|
35
|
+
readonly command: 'hexasync';
|
|
36
|
+
readonly args: readonly ['mcp'];
|
|
37
|
+
};
|
|
38
|
+
export declare const SERVER_NAME = "hexasync";
|
|
39
|
+
export interface MergeOutcome {
|
|
40
|
+
/** The text to write, or `undefined` when nothing needs writing (AC-4). */
|
|
41
|
+
readonly text?: string;
|
|
42
|
+
/** Why, in one line — for a report a human reads. */
|
|
43
|
+
readonly reason: string;
|
|
44
|
+
/** True when the file already said the right thing. */
|
|
45
|
+
readonly unchanged: boolean;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Merge our entry into a client's configuration.
|
|
49
|
+
*
|
|
50
|
+
* ⛔ **Never overwrites.** The existing document is parsed, one key is added under the server map, and everything else
|
|
51
|
+
* is preserved — including servers this feature knows nothing about. A configuration file is the user's, and the most
|
|
52
|
+
* damaging thing an installer can do is silently drop someone else's entry.
|
|
53
|
+
*
|
|
54
|
+
* ⚠️ Unparseable input is REFUSED rather than replaced. A file with a syntax error still contains the user's work, and
|
|
55
|
+
* overwriting it to make the install succeed would trade their configuration for our convenience.
|
|
56
|
+
*/
|
|
57
|
+
export declare function mergeClientConfig(client: McpClient, existing: string | undefined): MergeOutcome;
|
|
58
|
+
/**
|
|
59
|
+
* The snippet for a client we will not write to (AC-3).
|
|
60
|
+
*
|
|
61
|
+
* Named by client and ready to paste, because "configure it yourself" without the exact shape is how a user ends up
|
|
62
|
+
* with a subtly wrong key name.
|
|
63
|
+
*/
|
|
64
|
+
export declare function clientSnippet(client: McpClient): string;
|
|
65
|
+
//# sourceMappingURL=mcpClients.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcpClients.d.ts","sourceRoot":"","sources":["../src/mcpClients.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,yCAAyC;AACzC,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,4GAA4G;IAC5G,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,4EAA4E;IAC5E,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;GAMG;AACH,eAAO,MAAM,WAAW,EAAE,SAAS,SAAS,EAqB3C,CAAC;AAEF,wGAAwG;AACxG,eAAO,MAAM,YAAY;aAAK,OAAO,EAAE,UAAU;aAAE,IAAI,YAAG,KAAK;CAAY,CAAC;AAE5E,eAAO,MAAM,WAAW,aAAa,CAAC;AAEtC,MAAM,WAAW,YAAY;IAC3B,2EAA2E;IAC3E,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IACvB,qDAAqD;IACrD,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,uDAAuD;IACvD,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;;;;;GASG;AACH,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,SAAS,EACjB,QAAQ,EAAE,MAAM,GAAG,SAAS,GAC3B,YAAY,CA6Cd;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,MAAM,EAAE,SAAS,GAAG,MAAM,CASvD"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Writing an MCP server entry into each client's own configuration (Story 7.5).
|
|
3
|
+
*
|
|
4
|
+
* ### Why this is data, not four code paths
|
|
5
|
+
*
|
|
6
|
+
* Every client stores the same three facts — a name, a command, its arguments — under a different key, in a different
|
|
7
|
+
* file, with a different nesting. Four bespoke writers would be four places to update when a fifth client appears, and
|
|
8
|
+
* four chances for one of them to overwrite something. So a client is a **row**, and one merge serves all of them.
|
|
9
|
+
*
|
|
10
|
+
* ### Pure, so the decision is testable without a filesystem
|
|
11
|
+
*
|
|
12
|
+
* `mergeClientConfig` takes the existing file's text and returns the text to write. The caller does the reading and
|
|
13
|
+
* writing. That is what makes AC-2 (*"those survive — the file is extended, never overwritten"*) and AC-4 (*"nothing
|
|
14
|
+
* changes"*) assertable on strings rather than on a temp directory.
|
|
15
|
+
*/
|
|
16
|
+
/**
|
|
17
|
+
* The clients this writes for.
|
|
18
|
+
*
|
|
19
|
+
* ⚠️ `claude-desktop` has **no project-scoped file** — its configuration is user-scoped and lives outside any
|
|
20
|
+
* workspace. Writing there would edit a file the user did not put under version control and did not ask us to touch, so
|
|
21
|
+
* AC-3 prints a snippet instead. That is a deliberate refusal, not a gap.
|
|
22
|
+
*/
|
|
23
|
+
export const MCP_CLIENTS = [
|
|
24
|
+
{ id: 'vscode', label: 'VS Code', file: '.vscode/mcp.json', key: 'servers' },
|
|
25
|
+
{
|
|
26
|
+
id: 'cursor',
|
|
27
|
+
label: 'Cursor',
|
|
28
|
+
file: '.cursor/mcp.json',
|
|
29
|
+
key: 'mcpServers',
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: 'claude-code',
|
|
33
|
+
label: 'Claude Code',
|
|
34
|
+
file: '.mcp.json',
|
|
35
|
+
key: 'mcpServers',
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: 'windsurf',
|
|
39
|
+
label: 'Windsurf',
|
|
40
|
+
file: '.windsurf/mcp.json',
|
|
41
|
+
key: 'mcpServers',
|
|
42
|
+
},
|
|
43
|
+
{ id: 'claude-desktop', label: 'Claude Desktop', key: 'mcpServers' },
|
|
44
|
+
];
|
|
45
|
+
/** The entry every client gets — the same server, however each one spells the surrounding structure. */
|
|
46
|
+
export const SERVER_ENTRY = { command: 'hexasync', args: ['mcp'] };
|
|
47
|
+
export const SERVER_NAME = 'hexasync';
|
|
48
|
+
/**
|
|
49
|
+
* Merge our entry into a client's configuration.
|
|
50
|
+
*
|
|
51
|
+
* ⛔ **Never overwrites.** The existing document is parsed, one key is added under the server map, and everything else
|
|
52
|
+
* is preserved — including servers this feature knows nothing about. A configuration file is the user's, and the most
|
|
53
|
+
* damaging thing an installer can do is silently drop someone else's entry.
|
|
54
|
+
*
|
|
55
|
+
* ⚠️ Unparseable input is REFUSED rather than replaced. A file with a syntax error still contains the user's work, and
|
|
56
|
+
* overwriting it to make the install succeed would trade their configuration for our convenience.
|
|
57
|
+
*/
|
|
58
|
+
export function mergeClientConfig(client, existing) {
|
|
59
|
+
let document = {};
|
|
60
|
+
if (existing !== undefined && existing.trim() !== '') {
|
|
61
|
+
try {
|
|
62
|
+
const parsed = JSON.parse(existing);
|
|
63
|
+
if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) {
|
|
64
|
+
return {
|
|
65
|
+
reason: `${client.label}: its configuration is not a JSON object, so it was left alone.`,
|
|
66
|
+
unchanged: true,
|
|
67
|
+
};
|
|
68
|
+
}
|
|
69
|
+
document = parsed;
|
|
70
|
+
}
|
|
71
|
+
catch {
|
|
72
|
+
return {
|
|
73
|
+
reason: `${client.label}: its configuration does not parse as JSON, so it was left alone — it still holds your ` +
|
|
74
|
+
`work, and overwriting it would trade that for a successful install.`,
|
|
75
|
+
unchanged: true,
|
|
76
|
+
};
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
const servers = document[client.key] ?? {};
|
|
80
|
+
const current = servers[SERVER_NAME];
|
|
81
|
+
if (JSON.stringify(current) === JSON.stringify(SERVER_ENTRY)) {
|
|
82
|
+
// AC-4 — already correct, so nothing is written. Rewriting an identical file churns a diff and a mtime for nothing.
|
|
83
|
+
return { reason: `${client.label}: already configured.`, unchanged: true };
|
|
84
|
+
}
|
|
85
|
+
const merged = {
|
|
86
|
+
...document,
|
|
87
|
+
[client.key]: { ...servers, [SERVER_NAME]: SERVER_ENTRY },
|
|
88
|
+
};
|
|
89
|
+
const others = Object.keys(servers).filter((name) => name !== SERVER_NAME);
|
|
90
|
+
return {
|
|
91
|
+
text: `${JSON.stringify(merged, null, 2)}\n`,
|
|
92
|
+
reason: others.length > 0
|
|
93
|
+
? `${client.label}: added \`${SERVER_NAME}\`, keeping ${others.length} other server(s).`
|
|
94
|
+
: `${client.label}: added \`${SERVER_NAME}\`.`,
|
|
95
|
+
unchanged: false,
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* The snippet for a client we will not write to (AC-3).
|
|
100
|
+
*
|
|
101
|
+
* Named by client and ready to paste, because "configure it yourself" without the exact shape is how a user ends up
|
|
102
|
+
* with a subtly wrong key name.
|
|
103
|
+
*/
|
|
104
|
+
export function clientSnippet(client) {
|
|
105
|
+
/**
|
|
106
|
+
* ⚠️ A `parent` field once let a client nest the server map under an outer object. No client declared it, no test
|
|
107
|
+
* exercised it, and a mutation throwing inside both branches ran 18 tests green — so it was capability nobody could
|
|
108
|
+
* see was broken. Removed rather than kept "just in case": all four supported clients key the map at the root, and
|
|
109
|
+
* a nesting client can have it back in a few lines, with a row that proves it.
|
|
110
|
+
*/
|
|
111
|
+
const body = { [client.key]: { [SERVER_NAME]: SERVER_ENTRY } };
|
|
112
|
+
return `${client.label} (user-scoped — paste this into its config):\n${JSON.stringify(body, null, 2)}`;
|
|
113
|
+
}
|
|
114
|
+
//# sourceMappingURL=mcpClients.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcpClients.js","sourceRoot":"","sources":["../src/mcpClients.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAYH;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,WAAW,GAAyB;IAC/C,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,kBAAkB,EAAE,GAAG,EAAE,SAAS,EAAE;IAC5E;QACE,EAAE,EAAE,QAAQ;QACZ,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,kBAAkB;QACxB,GAAG,EAAE,YAAY;KAClB;IACD;QACE,EAAE,EAAE,aAAa;QACjB,KAAK,EAAE,aAAa;QACpB,IAAI,EAAE,WAAW;QACjB,GAAG,EAAE,YAAY;KAClB;IACD;QACE,EAAE,EAAE,UAAU;QACd,KAAK,EAAE,UAAU;QACjB,IAAI,EAAE,oBAAoB;QAC1B,GAAG,EAAE,YAAY;KAClB;IACD,EAAE,EAAE,EAAE,gBAAgB,EAAE,KAAK,EAAE,gBAAgB,EAAE,GAAG,EAAE,YAAY,EAAE;CACrE,CAAC;AAEF,wGAAwG;AACxG,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC,KAAK,CAAC,EAAW,CAAC;AAE5E,MAAM,CAAC,MAAM,WAAW,GAAG,UAAU,CAAC;AAWtC;;;;;;;;;GASG;AAC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,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,KAAK,WAAW,CAAC,CAAC;IAE3E,OAAO;QACL,IAAI,EAAE,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,IAAI;QAC5C,MAAM,EACJ,MAAM,CAAC,MAAM,GAAG,CAAC;YACf,CAAC,CAAC,GAAG,MAAM,CAAC,KAAK,aAAa,WAAW,eAAe,MAAM,CAAC,MAAM,mBAAmB;YACxF,CAAC,CAAC,GAAG,MAAM,CAAC,KAAK,aAAa,WAAW,KAAK;QAClD,SAAS,EAAE,KAAK;KACjB,CAAC;AACJ,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,aAAa,CAAC,MAAiB;IAC7C;;;;;OAKG;IACH,MAAM,IAAI,GAAG,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,YAAY,EAAE,EAAE,CAAC;IAC/D,OAAO,GAAG,MAAM,CAAC,KAAK,iDAAiD,IAAI,CAAC,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;AACzG,CAAC"}
|
package/dist/ports.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ports (AD-4). Core declares what it needs; adapters supply it.
|
|
3
|
+
*
|
|
4
|
+
* Every port is async (AD-11) even where a synchronous implementation would do,
|
|
5
|
+
* so promoting core into another process — or onto the web host, whose crypto
|
|
6
|
+
* and filesystem APIs are inherently async — is a transport swap, not a rewrite.
|
|
7
|
+
*/
|
|
8
|
+
/** Supplies the canonical asset payload. Paths are relative, POSIX-separated. */
|
|
9
|
+
export interface AssetSource {
|
|
10
|
+
/** Every asset file, as paths relative to the bundle root. */
|
|
11
|
+
list(): Promise<readonly string[]>;
|
|
12
|
+
read(relativePath: string): Promise<Uint8Array>;
|
|
13
|
+
/** The asset-bundle integer (AD-16). */
|
|
14
|
+
bundleVersion(): Promise<number>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Reads back what was installed, so an update can classify it before overwriting.
|
|
18
|
+
*
|
|
19
|
+
* Separate from `AssetSource`, which reads the *bundle*. This reads the *target* — the
|
|
20
|
+
* developer's copy, which may have been edited. Conflating the two is how an update
|
|
21
|
+
* would compare a file against itself.
|
|
22
|
+
*/
|
|
23
|
+
export interface FileReader {
|
|
24
|
+
/** Bytes at a URI, or `undefined` when nothing is there. */
|
|
25
|
+
read(uri: string): Promise<Uint8Array | undefined>;
|
|
26
|
+
}
|
|
27
|
+
/** Receives bytes. The only thing in this package permitted to write. */
|
|
28
|
+
export interface FileSink {
|
|
29
|
+
write(uri: string, bytes: Uint8Array): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* Removes a file this sink wrote. Optional.
|
|
32
|
+
*
|
|
33
|
+
* Exists so a failed install can undo its own partial work. Without it the
|
|
34
|
+
* story's acceptance criterion — "no partial asset tree is left behind" — held
|
|
35
|
+
* only for validation failures: once writing started, a filesystem error on the
|
|
36
|
+
* third of four files left two behind and nothing could remove them.
|
|
37
|
+
*
|
|
38
|
+
* Optional rather than required because a sink may be genuinely append-only. A
|
|
39
|
+
* sink that cannot delete simply cannot be unwound, and `installAssets` reports
|
|
40
|
+
* that honestly instead of pretending.
|
|
41
|
+
*/
|
|
42
|
+
remove?(uri: string): Promise<void>;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Content hashing. A port rather than `node:crypto` because AD-3 forbids Node
|
|
46
|
+
* builtins in core, and the web host offers only the async Web Crypto API.
|
|
47
|
+
*/
|
|
48
|
+
export interface Hasher {
|
|
49
|
+
hash(bytes: Uint8Array): Promise<string>;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Injected so manifests are deterministic under test.
|
|
53
|
+
*
|
|
54
|
+
* Async like every other port even though `new Date()` is synchronous
|
|
55
|
+
* everywhere: AD-11 asks for async at the boundary *including* where a
|
|
56
|
+
* synchronous call would work, precisely so that no caller can grow a
|
|
57
|
+
* dependency on the sync shape and block the LSP promotion later.
|
|
58
|
+
*/
|
|
59
|
+
export interface Clock {
|
|
60
|
+
now(): Promise<string>;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=ports.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ports.d.ts","sourceRoot":"","sources":["../src/ports.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,iFAAiF;AACjF,MAAM,WAAW,WAAW;IAC1B,8DAA8D;IAC9D,IAAI,IAAI,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAC;IACnC,IAAI,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAChD,wCAAwC;IACxC,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAClC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,UAAU;IACzB,4DAA4D;IAC5D,IAAI,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,GAAG,SAAS,CAAC,CAAC;CACpD;AAED,yEAAyE;AACzE,MAAM,WAAW,QAAQ;IACvB,KAAK,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACrD;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;CACrC;AAED;;;GAGG;AACH,MAAM,WAAW,MAAM;IACrB,IAAI,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;CAC1C;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,KAAK;IACpB,GAAG,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CACxB"}
|
package/dist/ports.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ports (AD-4). Core declares what it needs; adapters supply it.
|
|
3
|
+
*
|
|
4
|
+
* Every port is async (AD-11) even where a synchronous implementation would do,
|
|
5
|
+
* so promoting core into another process — or onto the web host, whose crypto
|
|
6
|
+
* and filesystem APIs are inherently async — is a transport swap, not a rewrite.
|
|
7
|
+
*/
|
|
8
|
+
export {};
|
|
9
|
+
//# sourceMappingURL=ports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ports.js","sourceRoot":"","sources":["../src/ports.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
package/dist/update.d.ts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Updating an installed target without destroying local work (FR-21).
|
|
3
|
+
*
|
|
4
|
+
* The rule this implements: a write that would discard something the developer cannot recover
|
|
5
|
+
* requires explicit confirmation, per file. Everything else proceeds. A declined file is left
|
|
6
|
+
* exactly as it was and the rest of the update continues — refusing the whole update because
|
|
7
|
+
* one file was edited would make the feature unusable on any real target.
|
|
8
|
+
*
|
|
9
|
+
* Pure: no IO of its own (AD-4).
|
|
10
|
+
*/
|
|
11
|
+
import { type AssetKind } from './assetPath.js';
|
|
12
|
+
import { type ClassifiedFile, type Classification, type FileState } from './classify.js';
|
|
13
|
+
import type { AssetSource, Clock, FileReader, FileSink, Hasher } from './ports.js';
|
|
14
|
+
/** Asked once per destructive write. Returning false leaves the file untouched. */
|
|
15
|
+
export type ConfirmOverwrite = (file: ClassifiedFile, diff: OverwriteDiff) => Promise<boolean>;
|
|
16
|
+
export interface OverwriteDiff {
|
|
17
|
+
readonly path: string;
|
|
18
|
+
readonly installedText: string;
|
|
19
|
+
readonly bundleText: string;
|
|
20
|
+
}
|
|
21
|
+
export interface UpdateOptions {
|
|
22
|
+
readonly source: AssetSource;
|
|
23
|
+
readonly reader: FileReader;
|
|
24
|
+
readonly sink: FileSink;
|
|
25
|
+
readonly hasher: Hasher;
|
|
26
|
+
readonly clock: Clock;
|
|
27
|
+
readonly targetUri: string;
|
|
28
|
+
/** Which half to update. Documentation must be updatable on its own (Story 2.7). */
|
|
29
|
+
readonly kind?: AssetKind;
|
|
30
|
+
readonly confirmOverwrite: ConfirmOverwrite;
|
|
31
|
+
readonly onProgress?: (progress: {
|
|
32
|
+
written: number;
|
|
33
|
+
total: number;
|
|
34
|
+
path: string;
|
|
35
|
+
}) => void;
|
|
36
|
+
}
|
|
37
|
+
export interface UpdateOutcome {
|
|
38
|
+
readonly path: string;
|
|
39
|
+
readonly state: FileState;
|
|
40
|
+
/** What actually happened, which is not always what the state implied. */
|
|
41
|
+
readonly action: 'written' | 'skipped-unchanged' | 'declined' | 'left-newer' | 'left-in-place';
|
|
42
|
+
}
|
|
43
|
+
export interface UpdateResult {
|
|
44
|
+
readonly destinationUri: string;
|
|
45
|
+
readonly classification: Classification;
|
|
46
|
+
readonly outcomes: readonly UpdateOutcome[];
|
|
47
|
+
readonly written: number;
|
|
48
|
+
readonly declined: number;
|
|
49
|
+
/** True when the target was pinned and nothing was touched (FR-24, Story 2.8). */
|
|
50
|
+
readonly pinned: boolean;
|
|
51
|
+
}
|
|
52
|
+
export declare function updateAssets(options: UpdateOptions): Promise<UpdateResult>;
|
|
53
|
+
/** Thrown when a caller asks to update a target that was never installed. */
|
|
54
|
+
export declare function assertInstalled(classification: Classification): void;
|
|
55
|
+
//# sourceMappingURL=update.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../src/update.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EAIL,KAAK,SAAS,EACf,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,SAAS,EACf,MAAM,eAAe,CAAC;AAMvB,OAAO,KAAK,EACV,WAAW,EACX,KAAK,EACL,UAAU,EACV,QAAQ,E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cAAc,CAAC;IACxC,QAAQ,CAAC,QAAQ,EAAE,SAAS,aAAa,EAAE,CAAC;IAC5C,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,kFAAkF;IAClF,QAAQ,CAAC,MAAM,EAAE,OAAO,CAAC;CAC1B;AAID,wBAAsB,YAAY,CAChC,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,YAAY,CAAC,CA2JvB;AAED,6EAA6E;AAC7E,wBAAgB,eAAe,CAAC,cAAc,EAAE,cAAc,GAAG,IAAI,CASpE"}
|
package/dist/update.js
ADDED
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Updating an installed target without destroying local work (FR-21).
|
|
3
|
+
*
|
|
4
|
+
* The rule this implements: a write that would discard something the developer cannot recover
|
|
5
|
+
* requires explicit confirmation, per file. Everything else proceeds. A declined file is left
|
|
6
|
+
* exactly as it was and the rest of the update continues — refusing the whole update because
|
|
7
|
+
* one file was edited would make the feature unusable on any real target.
|
|
8
|
+
*
|
|
9
|
+
* Pure: no IO of its own (AD-4).
|
|
10
|
+
*/
|
|
11
|
+
import { encodeAssetSegments, isKind, parseAssetRelativePath, } from './assetPath.js';
|
|
12
|
+
import { classifyTarget, } from './classify.js';
|
|
13
|
+
import { AssetInstallError, MANIFEST_FILENAME, } from './install.js';
|
|
14
|
+
import { joinUri } from '@beehexa/hexasync-template-model';
|
|
15
|
+
const WRITE_WITHOUT_ASKING = ['outdated', 'missing'];
|
|
16
|
+
export async function updateAssets(options) {
|
|
17
|
+
const { source, reader, sink, hasher, clock, confirmOverwrite } = options;
|
|
18
|
+
const kind = options.kind ?? 'all';
|
|
19
|
+
const full = await classifyTarget({
|
|
20
|
+
source,
|
|
21
|
+
reader,
|
|
22
|
+
hasher,
|
|
23
|
+
targetUri: options.targetUri,
|
|
24
|
+
});
|
|
25
|
+
// Narrow to the requested half AFTER classifying, so the manifest rewrite below still sees
|
|
26
|
+
// every file: filtering first would drop the other half from the manifest and the next
|
|
27
|
+
// update would report it all as `missing`.
|
|
28
|
+
const classification = {
|
|
29
|
+
...full,
|
|
30
|
+
files: full.files.filter((f) => isKind(f.path, kind)),
|
|
31
|
+
};
|
|
32
|
+
const untouched = full.files.filter((f) => !isKind(f.path, kind));
|
|
33
|
+
// A pinned target is skipped entirely, not partially updated. Reported, never silent.
|
|
34
|
+
if (classification.pinned) {
|
|
35
|
+
return {
|
|
36
|
+
destinationUri: classification.destinationUri,
|
|
37
|
+
classification,
|
|
38
|
+
outcomes: classification.files.map((f) => ({
|
|
39
|
+
path: f.path,
|
|
40
|
+
state: f.state,
|
|
41
|
+
action: 'left-in-place',
|
|
42
|
+
})),
|
|
43
|
+
written: 0,
|
|
44
|
+
declined: 0,
|
|
45
|
+
pinned: true,
|
|
46
|
+
};
|
|
47
|
+
}
|
|
48
|
+
// Files in the half we were not asked to touch keep their manifest entries, so updating one
|
|
49
|
+
// half never makes the other look uninstalled.
|
|
50
|
+
const preservedFromOtherHalf = untouched
|
|
51
|
+
.filter((f) => f.installedChecksum !== undefined)
|
|
52
|
+
.map((f) => ({ path: f.path, checksum: f.installedChecksum }));
|
|
53
|
+
const outcomes = [];
|
|
54
|
+
const files = [];
|
|
55
|
+
/** Declined files, recorded at their CURRENT on-disk checksum — see below. */
|
|
56
|
+
const declinedEntries = [];
|
|
57
|
+
let written = 0;
|
|
58
|
+
let declined = 0;
|
|
59
|
+
const writable = classification.files.filter((f) => f.state !== 'added');
|
|
60
|
+
for (const file of classification.files) {
|
|
61
|
+
if (file.state === 'added') {
|
|
62
|
+
// In the target, no longer in the bundle. Deleting it would be the destructive act.
|
|
63
|
+
outcomes.push({
|
|
64
|
+
path: file.path,
|
|
65
|
+
state: file.state,
|
|
66
|
+
action: 'left-in-place',
|
|
67
|
+
});
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
if (file.state === 'unchanged') {
|
|
71
|
+
outcomes.push({
|
|
72
|
+
path: file.path,
|
|
73
|
+
state: file.state,
|
|
74
|
+
action: 'skipped-unchanged',
|
|
75
|
+
});
|
|
76
|
+
files.push({
|
|
77
|
+
path: file.path,
|
|
78
|
+
checksum: await hasher.hash(await source.read(file.path)),
|
|
79
|
+
});
|
|
80
|
+
continue;
|
|
81
|
+
}
|
|
82
|
+
if (file.state === 'newer-than-installer') {
|
|
83
|
+
// Never silently downgrade. The developer may be testing an unreleased bundle.
|
|
84
|
+
outcomes.push({
|
|
85
|
+
path: file.path,
|
|
86
|
+
state: file.state,
|
|
87
|
+
action: 'left-newer',
|
|
88
|
+
});
|
|
89
|
+
continue;
|
|
90
|
+
}
|
|
91
|
+
if (!WRITE_WITHOUT_ASKING.includes(file.state)) {
|
|
92
|
+
const installed = await reader.read(joinUri(classification.destinationUri, encodeAssetSegments(parseAssetRelativePath(file.path))));
|
|
93
|
+
const bundle = await source.read(file.path);
|
|
94
|
+
const confirmed = await confirmOverwrite(file, {
|
|
95
|
+
path: file.path,
|
|
96
|
+
installedText: new TextDecoder().decode(installed ?? new Uint8Array()),
|
|
97
|
+
bundleText: new TextDecoder().decode(bundle),
|
|
98
|
+
});
|
|
99
|
+
if (!confirmed) {
|
|
100
|
+
declined += 1;
|
|
101
|
+
outcomes.push({
|
|
102
|
+
path: file.path,
|
|
103
|
+
state: file.state,
|
|
104
|
+
action: 'declined',
|
|
105
|
+
});
|
|
106
|
+
// Carry the file's ORIGINAL manifest entry forward. Omitting it would leave the next
|
|
107
|
+
// update unable to tell an edited file from an unrecorded one — it would still prompt,
|
|
108
|
+
// so the protection holds either way, but it would report `unknown` instead of
|
|
109
|
+
// `locally-modified` and lose the reason. Recording the *bundle* checksum instead would
|
|
110
|
+
// be worse: it would silently adopt the local edit as canonical, and the next update
|
|
111
|
+
// would overwrite it without asking.
|
|
112
|
+
if (file.installedChecksum !== undefined) {
|
|
113
|
+
declinedEntries.push({
|
|
114
|
+
path: file.path,
|
|
115
|
+
checksum: file.installedChecksum,
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
continue;
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
const bytes = await source.read(file.path);
|
|
122
|
+
const uri = joinUri(classification.destinationUri, encodeAssetSegments(parseAssetRelativePath(file.path)));
|
|
123
|
+
await sink.write(uri, bytes);
|
|
124
|
+
written += 1;
|
|
125
|
+
files.push({ path: file.path, checksum: await hasher.hash(bytes) });
|
|
126
|
+
outcomes.push({ path: file.path, state: file.state, action: 'written' });
|
|
127
|
+
options.onProgress?.({ written, total: writable.length, path: file.path });
|
|
128
|
+
}
|
|
129
|
+
// The manifest describes what is now on disk, with one deliberate exception: a declined file
|
|
130
|
+
// keeps the checksum the PREVIOUS manifest recorded. Two alternatives are both wrong —
|
|
131
|
+
// recording its current (edited) checksum would make the edit look like the installed state
|
|
132
|
+
// and the next update would call it `outdated` and overwrite it silently; omitting it
|
|
133
|
+
// entirely still protects the file but reports `unknown`, losing the reason. Carrying the
|
|
134
|
+
// original forward keeps it `locally-modified` run after run.
|
|
135
|
+
const manifest = {
|
|
136
|
+
generator: '@beehexa/hexasync-template-assets',
|
|
137
|
+
assetBundleVersion: classification.availableBundleVersion,
|
|
138
|
+
installedAt: await clock.now(),
|
|
139
|
+
files: [...files, ...declinedEntries, ...preservedFromOtherHalf].sort((a, b) => a.path.localeCompare(b.path)),
|
|
140
|
+
};
|
|
141
|
+
await sink.write(joinUri(classification.destinationUri, MANIFEST_FILENAME), new TextEncoder().encode(`${JSON.stringify(manifest, null, 2)}\n`));
|
|
142
|
+
return {
|
|
143
|
+
destinationUri: classification.destinationUri,
|
|
144
|
+
classification,
|
|
145
|
+
outcomes,
|
|
146
|
+
written,
|
|
147
|
+
declined,
|
|
148
|
+
pinned: false,
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
/** Thrown when a caller asks to update a target that was never installed. */
|
|
152
|
+
export function assertInstalled(classification) {
|
|
153
|
+
if (!classification.hasManifest &&
|
|
154
|
+
classification.files.every((f) => f.state === 'missing')) {
|
|
155
|
+
throw new AssetInstallError(`Nothing is installed at ${classification.destinationUri}. Run install rather than update.`);
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
//# sourceMappingURL=update.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../src/update.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,EACL,mBAAmB,EACnB,MAAM,EACN,sBAAsB,GAEvB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,cAAc,GAIf,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,iBAAiB,EACjB,iBAAiB,GAElB,MAAM,cAAc,CAAC;AAQtB,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAqD3D,MAAM,oBAAoB,GAAyB,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;AAE3E,MAAM,CAAC,KAAK,UAAU,YAAY,CAChC,OAAsB;IAEtB,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,gBAAgB,EAAE,GAAG,OAAO,CAAC;IAC1E,MAAM,IAAI,GAAG,OAAO,CAAC,IAAI,IAAI,KAAK,CAAC;IACnC,MAAM,IAAI,GAAG,MAAM,cAAc,CAAC;QAChC,MAAM;QACN,MAAM;QACN,MAAM;QACN,SAAS,EAAE,OAAO,CAAC,SAAS;KAC7B,CAAC,CAAC;IACH,2FAA2F;IAC3F,uFAAuF;IACvF,2CAA2C;IAC3C,MAAM,cAAc,GAAmB;QACrC,GAAG,IAAI;QACP,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;KACtD,CAAC;IACF,MAAM,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EA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KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,SAAS,CAAC,EACxD,CAAC;QACD,MAAM,IAAI,iBAAiB,CACzB,2BAA2B,cAAc,CAAC,cAAc,mCAAmC,CAC5F,CAAC;IACJ,CAAC;AACH,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@beehexa/hexasync-template-assets",
|
|
3
|
-
"version": "2608.20.
|
|
3
|
+
"version": "2608.20.32",
|
|
4
4
|
"description": "Canonical intellisense asset installation. Pure core: ports in, no IO.",
|
|
5
5
|
"license": "SEE LICENSE IN ../../LICENSE",
|
|
6
6
|
"type": "module",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"main": "./dist/index.js",
|
|
21
21
|
"types": "./dist/index.d.ts",
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@beehexa/hexasync-template-model": "2608.20.
|
|
23
|
+
"@beehexa/hexasync-template-model": "2608.20.32"
|
|
24
24
|
},
|
|
25
25
|
"hexasync": {
|
|
26
26
|
"layer": "core"
|