@ouro.bot/cli 0.1.0-alpha.641 → 0.1.0-alpha.643

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,18 @@
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.643",
6
+ "changes": [
7
+ "Dependency audit hardening: refresh the Teams SDK family and vulnerable transitive packages, force Teams' stale msal-node edge onto the safe 5.2.x line, update Teams invoke handlers for the newer SDK route-handler return contract, and add a root npm audit gate to release preflight."
8
+ ]
9
+ },
10
+ {
11
+ "version": "0.1.0-alpha.642",
12
+ "changes": [
13
+ "Make private-return packet trace source requests runtime-authoritative: outward ponder packet payloads now always record the latest originating user request as sourceRequest, even if the model supplies a lossy sourceRequest in payload_json; tool guidance now tells the model to preserve literal markers and constraints separately while the runtime owns sourceRequest."
14
+ ]
15
+ },
4
16
  {
5
17
  "version": "0.1.0-alpha.641",
6
18
  "changes": [
@@ -1329,7 +1329,7 @@ async function runAgent(messages, callbacks, channel, signal, options) {
1329
1329
  if (!kind || !objective || !successCriteria || !payload) {
1330
1330
  throw new Error("ponder create requires kind, objective, success_criteria, and valid payload_json.");
1331
1331
  }
1332
- const packetPayload = sourceRequest && typeof payload.sourceRequest !== "string"
1332
+ const packetPayload = sourceRequest
1333
1333
  ? { ...payload, sourceRequest }
1334
1334
  : payload;
1335
1335
  const createLinkedReturnObligation = (id, packetId) => {
@@ -5,7 +5,7 @@ exports.ponderTool = {
5
5
  type: "function",
6
6
  function: {
7
7
  name: "ponder",
8
- description: "create or revise a typed ponder packet so i don't lose the plot while i keep working. use this for harness friction, research, or reflection that should survive the current turn. if the user asked me to think privately and return later from an outward session, preserve literal return tokens and constraints in payload_json/sourceRequest or success_criteria, then do not settle with the final private answer in the same outward turn; only acknowledge that the private pass is queued. in inner dialog, ponder only preserves state; it does not create a new self-return obligation, so surface any existing held item instead of pondering a replacement. ponder does not end the turn by itself and may be followed by more tools before i settle or rest. Don't ponder trivial questions.",
8
+ description: "create or revise a typed ponder packet so i don't lose the plot while i keep working. use this for harness friction, research, or reflection that should survive the current turn. if the user asked me to think privately and return later from an outward session, preserve literal return tokens and constraints in payload_json fields or success_criteria; the runtime records the latest user request as sourceRequest. then do not settle with the final private answer in the same outward turn; only acknowledge that the private pass is queued. in inner dialog, ponder only preserves state; it does not create a new self-return obligation, so surface any existing held item instead of pondering a replacement. ponder does not end the turn by itself and may be followed by more tools before i settle or rest. Don't ponder trivial questions.",
9
9
  parameters: {
10
10
  type: "object",
11
11
  properties: {
@@ -41,7 +41,7 @@ exports.ponderTool = {
41
41
  },
42
42
  payload_json: {
43
43
  type: "string",
44
- description: "JSON object string with packet-specific structured details. include sourceRequest when the user gave exact return wording, markers, or constraints the inner pass must preserve. use {} only when there are no such details.",
44
+ description: "JSON object string with packet-specific structured details. include exact markers, return wording fragments, or constraints the inner pass must preserve; sourceRequest is owned by the runtime from the latest user request. use {} only when there are no such details.",
45
45
  },
46
46
  thought: {
47
47
  type: "string",
@@ -946,7 +946,7 @@ function registerBotHandlers(app, label) {
946
946
  const turnKey = teamsTurnKey(convId);
947
947
  // Validate payload — graceful no-op for malformed invocations
948
948
  if (activity.value?.actionName !== "feedback" || !reaction) {
949
- return;
949
+ return undefined;
950
950
  }
951
951
  const syntheticText = buildFeedbackSyntheticText(reaction, comment);
952
952
  // Turn coordination: if a turn is active, enqueue as steering follow-up
@@ -957,7 +957,7 @@ function registerBotHandlers(app, label) {
957
957
  receivedAt: Date.now(),
958
958
  effect: (0, continuity_1.classifySteeringFollowUpEffect)(syntheticText),
959
959
  });
960
- return;
960
+ return undefined;
961
961
  }
962
962
  try {
963
963
  const teamsContext = {
@@ -978,6 +978,7 @@ function registerBotHandlers(app, label) {
978
978
  finally {
979
979
  _turnCoordinator.endTurn(turnKey);
980
980
  }
981
+ return undefined;
981
982
  });
982
983
  /* v8 ignore stop */
983
984
  // Handle bot install — send welcome Adaptive Card with prompt starters.
@@ -999,6 +1000,7 @@ function registerBotHandlers(app, label) {
999
1000
  const msg = err instanceof Error ? err.message : String(err);
1000
1001
  (0, runtime_1.emitNervesEvent)({ level: "error", event: "channel.welcome_handler_error", component: "channels", message: msg.slice(0, 200), meta: {} });
1001
1002
  }
1003
+ return undefined;
1002
1004
  });
1003
1005
  /* v8 ignore stop */
1004
1006
  app.on("message", async (ctx) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ouro.bot/cli",
3
- "version": "0.1.0-alpha.641",
3
+ "version": "0.1.0-alpha.643",
4
4
  "main": "dist/heart/daemon/ouro-entry.js",
5
5
  "bin": {
6
6
  "cli": "dist/heart/daemon/ouro-bot-entry.js",
@@ -52,12 +52,12 @@
52
52
  "@anthropic-ai/sdk": "^0.78.0",
53
53
  "@azure/identity": "^4.13.0",
54
54
  "@azure/storage-blob": "^12.31.0",
55
- "@microsoft/teams.api": "2.0.5",
56
- "@microsoft/teams.apps": "^2.0.5",
57
- "@microsoft/teams.cards": "2.0.5",
58
- "@microsoft/teams.common": "2.0.5",
59
- "@microsoft/teams.dev": "^2.0.5",
60
- "@microsoft/teams.graph": "2.0.5",
55
+ "@microsoft/teams.api": "2.0.11",
56
+ "@microsoft/teams.apps": "2.0.11",
57
+ "@microsoft/teams.cards": "2.0.11",
58
+ "@microsoft/teams.common": "2.0.11",
59
+ "@microsoft/teams.dev": "2.0.11",
60
+ "@microsoft/teams.graph": "2.0.11",
61
61
  "@types/react": "^17.0.91",
62
62
  "@types/ws": "^8.18.1",
63
63
  "fast-glob": "^3.3.3",
@@ -87,6 +87,9 @@
87
87
  "vitest": "^4.0.18"
88
88
  },
89
89
  "overrides": {
90
+ "@microsoft/teams.apps": {
91
+ "@azure/msal-node": "^5.2.2"
92
+ },
90
93
  "@testing-library/react": {
91
94
  "react": "$react",
92
95
  "@types/react": "$@types/react"