@agentshouse/kit 0.2.1-alpha.13 → 0.2.1-alpha.14
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 +2 -0
- package/dist/bootstrap.json +5 -5
- package/dist/login.js +3 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,6 +17,8 @@ Add `--container` to run House Kit in one Docker container instead, with your
|
|
|
17
17
|
workspace mounted at `/agents/house`; your Agents then reach only that
|
|
18
18
|
workspace. On Windows 11 the container is the one choice. Append a `kit` or
|
|
19
19
|
`house` command to the container's command to run it in that container.
|
|
20
|
+
Running the command for the other choice on a connected computer asks you to
|
|
21
|
+
confirm, then replaces its Environment, whose Agents end, with a new one.
|
|
20
22
|
|
|
21
23
|
On your own Ubuntu 26.04 server, run the Linux command with `--linux` to
|
|
22
24
|
install House Kit natively, with its workspace at `/agents/house`; `kit` and
|
package/dist/bootstrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": 1,
|
|
3
|
-
"version": "0.2.1-alpha.
|
|
3
|
+
"version": "0.2.1-alpha.14",
|
|
4
4
|
"hosts": {
|
|
5
5
|
"linux": {
|
|
6
|
-
"command": "bash <(curl -fsSL https://github.com/agentshouse/kit/releases/download/v0.2.1-alpha.
|
|
6
|
+
"command": "bash <(curl -fsSL https://github.com/agentshouse/kit/releases/download/v0.2.1-alpha.14/connect-linux.sh)",
|
|
7
7
|
"asset": {
|
|
8
8
|
"name": "connect-linux.sh",
|
|
9
|
-
"url": "https://github.com/agentshouse/kit/releases/download/v0.2.1-alpha.
|
|
9
|
+
"url": "https://github.com/agentshouse/kit/releases/download/v0.2.1-alpha.14/connect-linux.sh"
|
|
10
10
|
},
|
|
11
11
|
"workspace": {
|
|
12
12
|
"argument": "--workspace",
|
|
@@ -17,10 +17,10 @@
|
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
19
|
"windows": {
|
|
20
|
-
"command": "& ([scriptblock]::Create((irm https://github.com/agentshouse/kit/releases/download/v0.2.1-alpha.
|
|
20
|
+
"command": "& ([scriptblock]::Create((irm https://github.com/agentshouse/kit/releases/download/v0.2.1-alpha.14/connect-windows.ps1)))",
|
|
21
21
|
"asset": {
|
|
22
22
|
"name": "connect-windows.ps1",
|
|
23
|
-
"url": "https://github.com/agentshouse/kit/releases/download/v0.2.1-alpha.
|
|
23
|
+
"url": "https://github.com/agentshouse/kit/releases/download/v0.2.1-alpha.14/connect-windows.ps1"
|
|
24
24
|
},
|
|
25
25
|
"workspace": {
|
|
26
26
|
"argument": "--workspace",
|
package/dist/login.js
CHANGED
|
@@ -71,11 +71,12 @@ export async function login(argv) {
|
|
|
71
71
|
});
|
|
72
72
|
const enrolled = await readEnrolment();
|
|
73
73
|
const house = values.house ?? enrolled?.house ?? DEFAULT_HOUSE;
|
|
74
|
-
const
|
|
74
|
+
const replaces = process.env.HOUSE_KIT_REPLACES;
|
|
75
|
+
const environment = replaces === undefined ? (values.environment ?? (enrolled?.house === house ? enrolled.environment : undefined)) : undefined;
|
|
75
76
|
const verifier = randomBytes(32).toString('base64url');
|
|
76
77
|
const started = {
|
|
77
78
|
...(environment === undefined
|
|
78
|
-
? { act: 'new_environment', label: hostname() }
|
|
79
|
+
? { act: 'new_environment', label: hostname(), ...(replaces === undefined ? {} : { replaces }) }
|
|
79
80
|
: { act: 'existing_environment', environment_id: environment }),
|
|
80
81
|
code_challenge: createHash('sha256').update(verifier).digest('base64url'),
|
|
81
82
|
};
|