@agentshouse/kit 0.1.0-alpha.14 → 0.1.0-alpha.16
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/bootstrap.json +3 -3
- package/package.json +2 -2
- package/src/contract.js +1 -1
- package/src/mount.js +6 -14
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ On Linux `amd64` or `arm64` with a working Docker Engine, run the published,
|
|
|
10
10
|
versioned bootstrap once:
|
|
11
11
|
|
|
12
12
|
```sh
|
|
13
|
-
bash <(curl -fsSL https://github.com/agentshouse/kit/releases/download/v0.1.0-alpha.
|
|
13
|
+
bash <(curl -fsSL https://github.com/agentshouse/kit/releases/download/v0.1.0-alpha.16/connect-linux.sh)
|
|
14
14
|
```
|
|
15
15
|
|
|
16
16
|
The release asset pins one immutable multi-architecture image digest. It creates
|
package/bootstrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.16",
|
|
4
4
|
"hosts": {
|
|
5
5
|
"linux": {
|
|
6
|
-
"command": "bash <(curl -fsSL https://github.com/agentshouse/kit/releases/download/v0.1.0-alpha.
|
|
6
|
+
"command": "bash <(curl -fsSL https://github.com/agentshouse/kit/releases/download/v0.1.0-alpha.16/connect-linux.sh)",
|
|
7
7
|
"asset": {
|
|
8
8
|
"name": "connect-linux.sh",
|
|
9
|
-
"url": "https://github.com/agentshouse/kit/releases/download/v0.1.0-alpha.
|
|
9
|
+
"url": "https://github.com/agentshouse/kit/releases/download/v0.1.0-alpha.16/connect-linux.sh"
|
|
10
10
|
},
|
|
11
11
|
"workspace": {
|
|
12
12
|
"argument": "--workspace",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentshouse/kit",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.16",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@agentclientprotocol/sdk": "1.5.0",
|
|
19
|
-
"@agentshouse/mdmodel": "0.1.0-alpha.
|
|
19
|
+
"@agentshouse/mdmodel": "0.1.0-alpha.15",
|
|
20
20
|
"ws": "8.22.0",
|
|
21
21
|
"yaml": "2.9.1",
|
|
22
22
|
"zod": "4.6.5"
|
package/src/contract.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CLAUDE_PASTED_CODE, CODEX_DEVICE_CODE, GROK_DEVICE_CODE } from "./agent-logins.js";
|
|
2
2
|
|
|
3
|
-
export const KIT_CONTRACT_VERSION = "2026-09-
|
|
3
|
+
export const KIT_CONTRACT_VERSION = "2026-09-28-working-copies";
|
|
4
4
|
export const KIT_CAPTURE_BATCH_MAX = 100;
|
|
5
5
|
export const COMMAND_INPUT_MAX_BYTES = 4 * 1024;
|
|
6
6
|
export const AUTHORIZATION_OUTPUT_MAX_BYTES = 4 * 1024;
|
package/src/mount.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { createHash } from "node:crypto";
|
|
2
2
|
import { join } from "node:path";
|
|
3
3
|
import { readFile, writeFile } from "node:fs/promises";
|
|
4
|
-
import { apply, links, parse, serialize } from "@agentshouse/mdmodel";
|
|
4
|
+
import { apply, links, parse, retarget, serialize } from "@agentshouse/mdmodel";
|
|
5
5
|
import {
|
|
6
6
|
KIT_DOOR_BATCH_PATH,
|
|
7
7
|
KIT_DOOR_BOOTSTRAP_PATH,
|
|
@@ -128,16 +128,11 @@ function authorityFor(discovery, target) {
|
|
|
128
128
|
};
|
|
129
129
|
}
|
|
130
130
|
|
|
131
|
-
function hrefSuffix(href) {
|
|
132
|
-
const match = /[?#]/.exec(href);
|
|
133
|
-
return match === null ? "" : href.slice(match.index);
|
|
134
|
-
}
|
|
135
|
-
|
|
136
131
|
function replaceLink(document, href, destination) {
|
|
137
132
|
const marker = `house-kit-link:${operationId()}`;
|
|
138
133
|
const located = apply(document, { kind: "link", href, to: marker });
|
|
139
134
|
if (located.outcome !== "applied") refuse("kit_mount_link_unwritable", href);
|
|
140
|
-
const cleared = parse(serialize(located.document).replaceAll(
|
|
135
|
+
const cleared = parse(serialize(located.document).replaceAll(retarget(href, marker), marker));
|
|
141
136
|
if (!cleared.ok) refuse("kit_mount_link_unwritable", href);
|
|
142
137
|
const changed = apply(cleared.document, { kind: "link", href: marker, to: destination });
|
|
143
138
|
if (changed.outcome !== "applied") refuse("kit_mount_link_unwritable", href);
|
|
@@ -178,11 +173,8 @@ export function rewriteAttachmentLinks(held, mintVersion) {
|
|
|
178
173
|
refuse("kit_migrator_referrer_undeclared", `${relative} -> ${path}`);
|
|
179
174
|
}
|
|
180
175
|
const version = mintVersion(path);
|
|
181
|
-
const
|
|
182
|
-
|
|
183
|
-
href: link.href,
|
|
184
|
-
to: `${PENDING_LINK_SCHEME}:${version}`,
|
|
185
|
-
});
|
|
176
|
+
const pending = `${PENDING_LINK_SCHEME}:${version}`;
|
|
177
|
+
const applied = apply(document, { kind: "link", href: link.href, to: pending });
|
|
186
178
|
if (applied.outcome !== "applied") refuse("kit_mount_link_unwritable", link.href);
|
|
187
179
|
document = applied.document;
|
|
188
180
|
let save = saves.find((entry) => entry.path === path);
|
|
@@ -191,8 +183,8 @@ export function rewriteAttachmentLinks(held, mintVersion) {
|
|
|
191
183
|
saves.push(save);
|
|
192
184
|
}
|
|
193
185
|
if (!save.documents.includes(relative)) save.documents.push(relative);
|
|
194
|
-
const suffix =
|
|
195
|
-
const href =
|
|
186
|
+
const suffix = retarget(link.href, "");
|
|
187
|
+
const href = retarget(link.href, pending);
|
|
196
188
|
if (!save.hrefs.some((entry) => entry.document === relative && entry.href === href)) {
|
|
197
189
|
save.hrefs.push({ document: relative, href, suffix });
|
|
198
190
|
}
|