@agentshouse/kit 0.2.1-alpha.9 → 0.2.1-c14f8446ba284
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 +37 -20
- package/dist/abort.js +9 -0
- package/dist/acp.js +18 -75
- package/dist/agents.js +246 -52
- package/dist/api.js +36 -4
- package/dist/app-git.js +64 -0
- package/dist/bootstrap.json +10 -14
- package/dist/bridge.js +99 -70
- package/dist/clis-main.js +23 -0
- package/dist/clis.js +171 -71
- package/dist/codex-main.js +58 -0
- package/dist/conversations.js +324 -199
- package/dist/copies.js +70 -68
- package/dist/end.js +8 -0
- package/dist/events.js +521 -0
- package/dist/files.js +16 -1
- package/dist/git-main.js +2 -2
- package/dist/git.js +6 -2
- package/dist/home.js +32 -3
- package/dist/house-main.js +117 -44
- package/dist/instructions.js +13 -12
- package/dist/kit-main.js +7 -1
- package/dist/login.js +39 -94
- package/dist/logout.js +21 -0
- package/dist/mcp.js +39 -0
- package/dist/operation.js +7 -4
- package/dist/parts.js +64 -0
- package/dist/refusals.js +53 -0
- package/dist/relay.js +10 -0
- package/dist/resident.js +46 -21
- package/dist/scope.js +203 -0
- package/dist/secret-input.js +7 -2
- package/dist/shell.js +3 -0
- package/dist/sign-in.js +48 -11
- package/dist/skills.js +5 -10
- package/dist/stream.js +31 -6
- package/dist/transcription.js +170 -0
- package/dist/update.js +119 -0
- package/dist/work.js +348 -0
- package/how-we-work.md +10 -12
- package/package.json +4 -7
- package/dist/blocks.js +0 -51
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@agentshouse/kit",
|
|
3
|
-
"version": "0.2.1-
|
|
3
|
+
"version": "0.2.1-c14f8446ba284",
|
|
4
4
|
"description": "House Kit connects an Environment to agents.house.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -22,17 +22,17 @@
|
|
|
22
22
|
],
|
|
23
23
|
"scripts": {
|
|
24
24
|
"build": "tsc -p tsconfig.build.json && node scripts/bootstrap-manifest.mjs",
|
|
25
|
+
"engine": "mkdir -p tmp/engine && docker run --rm -v \"$PWD:/kit\" -w /kit alpine:3.24@sha256:294b683cb724975bec92580e1e685676bd4b50bda910ddb8c51d4cabeaec77e6 sh scripts/engine.sh tmp/engine",
|
|
25
26
|
"test": "tsc -p tsconfig.json && vitest run"
|
|
26
27
|
},
|
|
27
28
|
"dependencies": {
|
|
28
29
|
"@agentclientprotocol/sdk": "1.7.0",
|
|
29
|
-
"@agentshouse/mdmodel": "0.1.0-alpha.
|
|
30
|
+
"@agentshouse/mdmodel": "0.1.0-alpha.19",
|
|
30
31
|
"yaml": "2.9.1"
|
|
31
32
|
},
|
|
32
33
|
"peerDependencies": {
|
|
33
34
|
"@agentclientprotocol/claude-agent-acp": "0.85.1",
|
|
34
|
-
"@agentclientprotocol/codex-acp": "2.1.1"
|
|
35
|
-
"@xai-official/grok": "1.0.46"
|
|
35
|
+
"@agentclientprotocol/codex-acp": "2.1.1"
|
|
36
36
|
},
|
|
37
37
|
"peerDependenciesMeta": {
|
|
38
38
|
"@agentclientprotocol/claude-agent-acp": {
|
|
@@ -40,9 +40,6 @@
|
|
|
40
40
|
},
|
|
41
41
|
"@agentclientprotocol/codex-acp": {
|
|
42
42
|
"optional": true
|
|
43
|
-
},
|
|
44
|
-
"@xai-official/grok": {
|
|
45
|
-
"optional": true
|
|
46
43
|
}
|
|
47
44
|
},
|
|
48
45
|
"devDependencies": {
|
package/dist/blocks.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
const FENCE = /^\s*(`{3,}|~{3,})\s*(\S*)/;
|
|
2
|
-
export function blocksOf(text) {
|
|
3
|
-
const blocks = [];
|
|
4
|
-
let paragraph = [];
|
|
5
|
-
let fence = null;
|
|
6
|
-
const closeParagraph = () => {
|
|
7
|
-
const joined = paragraph.join('\n').trim();
|
|
8
|
-
if (joined.length > 0)
|
|
9
|
-
blocks.push({ type: 'paragraph', text: joined });
|
|
10
|
-
paragraph = [];
|
|
11
|
-
};
|
|
12
|
-
const closeFence = () => {
|
|
13
|
-
const joined = fence.lines.join('\n');
|
|
14
|
-
if (joined.length > 0)
|
|
15
|
-
blocks.push({ type: 'code', language: fence.language, text: joined });
|
|
16
|
-
fence = null;
|
|
17
|
-
};
|
|
18
|
-
for (const line of text.split('\n')) {
|
|
19
|
-
if (fence !== null) {
|
|
20
|
-
if (line.trim().startsWith(fence.marker))
|
|
21
|
-
closeFence();
|
|
22
|
-
else
|
|
23
|
-
fence.lines.push(line);
|
|
24
|
-
continue;
|
|
25
|
-
}
|
|
26
|
-
const opening = FENCE.exec(line);
|
|
27
|
-
if (opening !== null) {
|
|
28
|
-
closeParagraph();
|
|
29
|
-
fence = { marker: opening[1], language: opening[2] || null, lines: [] };
|
|
30
|
-
}
|
|
31
|
-
else if (line.trim().length === 0) {
|
|
32
|
-
closeParagraph();
|
|
33
|
-
}
|
|
34
|
-
else {
|
|
35
|
-
paragraph.push(line);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
if (fence !== null)
|
|
39
|
-
closeFence();
|
|
40
|
-
closeParagraph();
|
|
41
|
-
return blocks;
|
|
42
|
-
}
|
|
43
|
-
export function firstChange(before, after) {
|
|
44
|
-
let index = 0;
|
|
45
|
-
while (index < before.length &&
|
|
46
|
-
index < after.length &&
|
|
47
|
-
JSON.stringify(before[index]) === JSON.stringify(after[index])) {
|
|
48
|
-
index++;
|
|
49
|
-
}
|
|
50
|
-
return index;
|
|
51
|
-
}
|