@ouro.bot/cli 0.1.0-alpha.1016 → 0.1.0-alpha.1021
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/changelog.json
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_note": "This changelog is maintained as part of the PR/version-bump workflow. Agent-curated, not auto-generated. Agents read this file directly via read_file to understand what changed between versions.",
|
|
3
3
|
"versions": [
|
|
4
|
+
{
|
|
5
|
+
"version": "0.1.0-alpha.1021",
|
|
6
|
+
"changes": [
|
|
7
|
+
"A small host's install (npm config set omit optional) is now about 46 MB and 43 packages instead of 221 MB and 426: the bundled Bitwarden CLI and the terminal chat UI (ink, react) are optional packages too. Vault reads and writes are native, so bw is only fetched when a vault needs it, and without the chat UI ouro chats line by line. shell-quote, which the shell guardrails load, is now declared instead of arriving through ink, and a test keeps every runtime import declared. Native vault reads no longer need the access token to name the user (only writes do), and the edge benchmark's fake vault issues a real JWT, so it reads natively again."
|
|
8
|
+
]
|
|
9
|
+
},
|
|
4
10
|
{
|
|
5
11
|
"version": "0.1.0-alpha.1016",
|
|
6
12
|
"changes": [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0"?>
|
|
2
2
|
<Container version="2">
|
|
3
3
|
<Name>ouro-butler</Name>
|
|
4
|
-
<Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.
|
|
4
|
+
<Repository>ghcr.io/ourostack/ouroboros-butler:0.1.0-alpha.1021</Repository>
|
|
5
5
|
<Registry>https://github.com/ourostack/ouroboros/pkgs/container/ouroboros-butler</Registry>
|
|
6
6
|
<Network>host</Network>
|
|
7
7
|
<Shell>sh</Shell>
|
|
@@ -6,20 +6,26 @@ exports.importOptional = importOptional;
|
|
|
6
6
|
exports.describeStartupError = describeStartupError;
|
|
7
7
|
const runtime_1 = require("../nerves/runtime");
|
|
8
8
|
/**
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* only the
|
|
9
|
+
* Packages listed in package.json optionalDependencies: the product SDKs, the terminal chat UI
|
|
10
|
+
* (ink and react; without them `ouro` chats line by line) and the bundled Bitwarden CLI (vault
|
|
11
|
+
* reads and writes are native; bw is only for vaults the native client does not support, and is
|
|
12
|
+
* then found on PATH or installed). npm installs them by default; a small host can leave them out
|
|
13
|
+
* with `npm install --omit=optional` (about 46 MB instead of 221 MB), and only the feature that
|
|
14
|
+
* needs one stops working.
|
|
12
15
|
*/
|
|
13
16
|
exports.OPTIONAL_PACKAGES = [
|
|
14
17
|
"@azure/identity",
|
|
15
18
|
"@azure/storage-blob",
|
|
19
|
+
"@bitwarden/cli",
|
|
16
20
|
"@microsoft/teams.api",
|
|
17
21
|
"@microsoft/teams.apps",
|
|
18
22
|
"@microsoft/teams.cards",
|
|
19
23
|
"@microsoft/teams.common",
|
|
20
24
|
"@microsoft/teams.dev",
|
|
21
25
|
"@microsoft/teams.graph",
|
|
26
|
+
"ink",
|
|
22
27
|
"mailparser",
|
|
28
|
+
"react",
|
|
23
29
|
"smtp-server",
|
|
24
30
|
"stripe",
|
|
25
31
|
];
|
|
@@ -276,6 +276,8 @@ class NativeVaultReader {
|
|
|
276
276
|
meta: { email: this.email, update: existingId !== undefined },
|
|
277
277
|
});
|
|
278
278
|
const answer = await this.withSession(async (session) => {
|
|
279
|
+
if (!session.userId)
|
|
280
|
+
throw new NativeVaultUnsupportedError("writes with an access token that names no user");
|
|
279
281
|
const itemKeyString = existing ? stringField(existing, "key") : undefined;
|
|
280
282
|
const key = itemKeyString ? decryptKey(itemKeyString, session.userKey, "item key") : session.userKey;
|
|
281
283
|
const login = field(existing, "login");
|
|
@@ -379,8 +381,6 @@ class NativeVaultReader {
|
|
|
379
381
|
const expiresIn = Number(field(token, "expires_in"));
|
|
380
382
|
const userKey = decryptKey(protectedKey, keys.stretched, "user key");
|
|
381
383
|
const userId = tokenUserId(accessToken);
|
|
382
|
-
if (!userId)
|
|
383
|
-
throw new NativeVaultUnsupportedError("an access token without a user id");
|
|
384
384
|
this.session = { accessToken, expiresAt: this.deps.now() + (Number.isFinite(expiresIn) && expiresIn > 0 ? expiresIn : 3600) * 1000, userKey, userId };
|
|
385
385
|
return this.session;
|
|
386
386
|
}
|