@ouro.bot/cli 0.1.0-alpha.671 → 0.1.0-alpha.673
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 +13 -0
- package/dist/a2a/card.js +2 -1
- package/dist/a2a/client.js +37 -0
- package/dist/a2a/delegation-stores.js +56 -0
- package/dist/a2a/did-resolution.js +93 -0
- package/dist/a2a/identity.js +163 -0
- package/dist/a2a/inbound-share.js +107 -0
- package/dist/a2a/mission-result-wire.js +196 -0
- package/dist/a2a/onboarding.js +35 -3
- package/dist/a2a/pin-store.js +132 -0
- package/dist/a2a/seen-ledger.js +120 -0
- package/dist/a2a/server.js +111 -5
- package/dist/a2a/transport.js +45 -0
- package/dist/repertoire/tools-a2a.js +417 -0
- package/dist/senses/a2a-entry.js +31 -1
- package/package.json +2 -2
package/dist/senses/a2a-entry.js
CHANGED
|
@@ -53,11 +53,41 @@ const runtime_1 = require("../nerves/runtime");
|
|
|
53
53
|
message: "booting A2A entrypoint",
|
|
54
54
|
meta: { entry: "a2a", agentName },
|
|
55
55
|
});
|
|
56
|
-
Promise.
|
|
56
|
+
Promise.all([
|
|
57
|
+
Promise.resolve().then(() => __importStar(require("../a2a/server"))),
|
|
58
|
+
Promise.resolve().then(() => __importStar(require("../a2a/identity"))),
|
|
59
|
+
Promise.resolve().then(() => __importStar(require("../heart/runtime-credentials"))),
|
|
60
|
+
Promise.resolve().then(() => __importStar(require("../heart/machine-identity"))),
|
|
61
|
+
Promise.resolve().then(() => __importStar(require("@ouro.bot/friends/a2a-client"))),
|
|
62
|
+
])
|
|
63
|
+
.then(async ([{ startA2AServer }, { loadOrMintA2AIdentity }, { waitForRuntimeCredentialBootstrap, readMachineRuntimeCredentialConfig, upsertMachineRuntimeCredentialConfig }, { loadOrCreateMachineIdentity }, { ready },]) => {
|
|
64
|
+
const os = await Promise.resolve().then(() => __importStar(require("node:os")));
|
|
65
|
+
// Wait for the daemon to deliver the machine-local runtime config (carrying the
|
|
66
|
+
// a2a identity seed) into the in-memory cache before we read or mint identity.
|
|
67
|
+
const bootstrapped = await waitForRuntimeCredentialBootstrap(agentName);
|
|
68
|
+
(0, runtime_1.emitNervesEvent)({
|
|
69
|
+
component: "senses",
|
|
70
|
+
event: "senses.a2a_bootstrap_waited",
|
|
71
|
+
message: "awaited runtime-credential bootstrap before A2A identity load",
|
|
72
|
+
meta: { entry: "a2a", agentName, bootstrapped },
|
|
73
|
+
});
|
|
74
|
+
const sodium = await ready();
|
|
75
|
+
const machineId = loadOrCreateMachineIdentity({ homeDir: os.homedir() }).machineId;
|
|
76
|
+
const machineConfigRead = readMachineRuntimeCredentialConfig(agentName);
|
|
77
|
+
const machineConfig = machineConfigRead.ok ? machineConfigRead.config : {};
|
|
78
|
+
const identity = await loadOrMintA2AIdentity({
|
|
79
|
+
agentName,
|
|
80
|
+
sodium,
|
|
81
|
+
config: machineConfig,
|
|
82
|
+
upsert: async (next) => {
|
|
83
|
+
await upsertMachineRuntimeCredentialConfig(agentName, machineId, next);
|
|
84
|
+
},
|
|
85
|
+
});
|
|
57
86
|
const rawPort = argValue("--port");
|
|
58
87
|
const port = rawPort ? Number.parseInt(rawPort, 10) : undefined;
|
|
59
88
|
await startA2AServer({
|
|
60
89
|
agentName,
|
|
90
|
+
identity,
|
|
61
91
|
...(argValue("--host") ? { host: argValue("--host") } : {}),
|
|
62
92
|
...(Number.isInteger(port) ? { port } : {}),
|
|
63
93
|
...(argValue("--base-url") ? { baseUrl: argValue("--base-url") } : {}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ouro.bot/cli",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.673",
|
|
4
4
|
"main": "dist/heart/daemon/ouro-entry.js",
|
|
5
5
|
"bin": {
|
|
6
6
|
"cli": "dist/heart/daemon/ouro-bot-entry.js",
|
|
@@ -50,7 +50,6 @@
|
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
52
|
"@anthropic-ai/sdk": "^0.78.0",
|
|
53
|
-
"@ouro.bot/friends": "git+https://github.com/ourostack/friends.git#250d1a4bbbad5cd50687975afc463e60e3ff8366",
|
|
54
53
|
"@azure/identity": "^4.13.0",
|
|
55
54
|
"@azure/storage-blob": "^12.31.0",
|
|
56
55
|
"@microsoft/teams.api": "2.0.11",
|
|
@@ -59,6 +58,7 @@
|
|
|
59
58
|
"@microsoft/teams.common": "2.0.11",
|
|
60
59
|
"@microsoft/teams.dev": "2.0.11",
|
|
61
60
|
"@microsoft/teams.graph": "2.0.11",
|
|
61
|
+
"@ouro.bot/friends": "0.1.0-alpha.7",
|
|
62
62
|
"@types/react": "^17.0.91",
|
|
63
63
|
"@types/ws": "^8.18.1",
|
|
64
64
|
"fast-glob": "^3.3.3",
|