@ouro.bot/cli 0.1.0-alpha.157 → 0.1.0-alpha.159
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/AdoptionSpecialist.ouro/agent.json +3 -2
- package/AdoptionSpecialist.ouro/psyche/SOUL.md +1 -1
- package/README.md +5 -4
- package/changelog.json +24 -0
- package/dist/heart/config.js +0 -7
- package/dist/heart/core.js +51 -36
- package/dist/heart/daemon/auth-flow.js +45 -25
- package/dist/heart/daemon/daemon-cli.js +117 -11
- package/dist/heart/daemon/daemon.js +2 -0
- package/dist/heart/daemon/hatch-flow.js +2 -0
- package/dist/heart/daemon/hooks/agent-config-v2.js +33 -0
- package/dist/heart/daemon/run-hooks.js +2 -0
- package/dist/heart/daemon/specialist-prompt.js +3 -1
- package/dist/heart/identity.js +78 -40
- package/dist/heart/migrate-config.js +127 -0
- package/dist/heart/provider-ping.js +19 -6
- package/dist/heart/providers/anthropic.js +9 -10
- package/dist/heart/providers/azure.js +5 -5
- package/dist/heart/providers/github-copilot.js +6 -6
- package/dist/heart/providers/minimax.js +4 -4
- package/dist/heart/providers/openai-codex.js +6 -6
- package/dist/mind/friends/channel.js +12 -0
- package/dist/mind/prompt.js +3 -3
- package/dist/repertoire/guardrails.js +1 -0
- package/dist/repertoire/tasks/board.js +31 -5
- package/dist/repertoire/tasks/fix.js +182 -0
- package/dist/repertoire/tasks/index.js +5 -1
- package/dist/repertoire/tasks/lifecycle.js +2 -2
- package/dist/repertoire/tasks/parser.js +3 -0
- package/dist/repertoire/tasks/scanner.js +194 -37
- package/dist/repertoire/tasks/transitions.js +10 -8
- package/dist/repertoire/tools-base.js +2 -0
- package/dist/senses/bluebubbles-client.js +1 -1
- package/dist/senses/bluebubbles.js +1 -1
- package/dist/senses/cli.js +4 -2
- package/dist/senses/pipeline.js +5 -2
- package/dist/senses/teams.js +1 -1
- package/package.json +1 -1
|
@@ -711,7 +711,7 @@ async function handleBlueBubblesNormalizedEvent(event, resolvedDeps, source) {
|
|
|
711
711
|
const callbacks = createBlueBubblesCallbacks(client, event.chat, replyTarget, event.chat.isGroup);
|
|
712
712
|
const controller = new AbortController();
|
|
713
713
|
// BB-specific tool context wrappers
|
|
714
|
-
const summarize = (0, core_1.createSummarize)();
|
|
714
|
+
const summarize = (0, core_1.createSummarize)("human");
|
|
715
715
|
const bbCapabilities = (0, channel_1.getChannelCapabilities)("bluebubbles");
|
|
716
716
|
const pendingDir = (0, pending_1.getPendingDir)(resolvedDeps.getAgentName(), friendId, "bluebubbles", event.chat.sessionKey);
|
|
717
717
|
// ── Compute trust gate context for group/acquaintance rules ─────
|
package/dist/senses/cli.js
CHANGED
|
@@ -72,6 +72,7 @@ const channel_1 = require("../mind/friends/channel");
|
|
|
72
72
|
const session_lock_1 = require("./session-lock");
|
|
73
73
|
const update_hooks_1 = require("../heart/daemon/update-hooks");
|
|
74
74
|
const bundle_meta_1 = require("../heart/daemon/hooks/bundle-meta");
|
|
75
|
+
const agent_config_v2_1 = require("../heart/daemon/hooks/agent-config-v2");
|
|
75
76
|
const bundle_manifest_1 = require("../mind/bundle-manifest");
|
|
76
77
|
const cli_layout_1 = require("./cli-layout");
|
|
77
78
|
var cli_layout_2 = require("./cli-layout");
|
|
@@ -782,9 +783,10 @@ async function main(agentName, options) {
|
|
|
782
783
|
(0, nerves_1.registerSpinnerHooks)(pauseActiveSpinner, resumeActiveSpinner);
|
|
783
784
|
// Fallback: apply pending updates for daemon-less direct CLI usage
|
|
784
785
|
(0, update_hooks_1.registerUpdateHook)(bundle_meta_1.bundleMetaHook);
|
|
786
|
+
(0, update_hooks_1.registerUpdateHook)(agent_config_v2_1.agentConfigV2Hook);
|
|
785
787
|
await (0, update_hooks_1.applyPendingUpdates)((0, identity_1.getAgentBundlesRoot)(), (0, bundle_manifest_1.getPackageVersion)());
|
|
786
788
|
// Fail fast if provider is misconfigured (triggers human-readable error + exit)
|
|
787
|
-
(0, core_1.getProvider)();
|
|
789
|
+
(0, core_1.getProvider)("human");
|
|
788
790
|
// Resolve context kernel (identity + channel) for CLI
|
|
789
791
|
const friendsPath = path.join((0, identity_1.getAgentRoot)(), "friends");
|
|
790
792
|
const friendStore = new store_file_1.FileFriendStore(friendsPath);
|
|
@@ -829,7 +831,7 @@ async function main(agentName, options) {
|
|
|
829
831
|
const cliCapabilities = (0, channel_1.getChannelCapabilities)("cli");
|
|
830
832
|
const currentAgentName = (0, identity_1.getAgentName)();
|
|
831
833
|
const pendingDir = (0, pending_1.getPendingDir)(currentAgentName, friendId, "cli", "session");
|
|
832
|
-
const summarize = (0, core_1.createSummarize)();
|
|
834
|
+
const summarize = (0, core_1.createSummarize)("human");
|
|
833
835
|
const cliFailoverState = { pending: null };
|
|
834
836
|
try {
|
|
835
837
|
await runCliSession({
|
package/dist/senses/pipeline.js
CHANGED
|
@@ -37,7 +37,9 @@ function emptyTaskBoard() {
|
|
|
37
37
|
paused: [],
|
|
38
38
|
blocked: [],
|
|
39
39
|
done: [],
|
|
40
|
+
cancelled: [],
|
|
40
41
|
},
|
|
42
|
+
issues: [],
|
|
41
43
|
actionRequired: [],
|
|
42
44
|
unresolvedDependencies: [],
|
|
43
45
|
activeSessions: [],
|
|
@@ -122,7 +124,8 @@ async function handleInboundTurn(input) {
|
|
|
122
124
|
if (failoverAction.action === "switch") {
|
|
123
125
|
let switchSucceeded = false;
|
|
124
126
|
try {
|
|
125
|
-
(0, auth_flow_1.writeAgentProviderSelection)(failoverAgentName, failoverAction.provider);
|
|
127
|
+
(0, auth_flow_1.writeAgentProviderSelection)(failoverAgentName, "human", failoverAction.provider);
|
|
128
|
+
(0, auth_flow_1.writeAgentProviderSelection)(failoverAgentName, "agent", failoverAction.provider);
|
|
126
129
|
switchSucceeded = true;
|
|
127
130
|
/* v8 ignore start -- defensive: write failure during provider switch @preserve */
|
|
128
131
|
}
|
|
@@ -414,7 +417,7 @@ async function handleInboundTurn(input) {
|
|
|
414
417
|
try {
|
|
415
418
|
const agentName = (0, identity_1.getAgentName)();
|
|
416
419
|
const agentConfig = (0, identity_1.loadAgentConfig)();
|
|
417
|
-
const currentProvider = agentConfig.provider;
|
|
420
|
+
const currentProvider = agentConfig.humanFacing.provider;
|
|
418
421
|
/* v8 ignore next -- defensive: errorClassification always set when errored @preserve */
|
|
419
422
|
const classification = result.errorClassification ?? "unknown";
|
|
420
423
|
const inventory = await (0, provider_ping_1.runHealthInventory)(agentName, currentProvider);
|
package/dist/senses/teams.js
CHANGED
|
@@ -639,7 +639,7 @@ async function handleTeamsMessage(text, stream, conversationId, teamsContext, se
|
|
|
639
639
|
adoToken: teamsContext.adoToken,
|
|
640
640
|
githubToken: teamsContext.githubToken,
|
|
641
641
|
signin: teamsContext.signin,
|
|
642
|
-
summarize: (0, core_1.createSummarize)(),
|
|
642
|
+
summarize: (0, core_1.createSummarize)("human"),
|
|
643
643
|
tenantId: teamsContext.tenantId,
|
|
644
644
|
botApi: teamsContext.botApi,
|
|
645
645
|
} : {};
|