Files
yetone 1a05a77431 powercontext 0.2.1: the README and page say capture feeds Memory/Topic, not Experience (#607)
pluoki (on X) found that magpie's capture never gives PowerContext's
scheduled Experience anything to incubate. That holds: persist writes
every conversation as content Sources (POST v1/sources/content, metadata
origin "magpie", event "conversation_completed"), and nothing else.

Checked against oceanbase/powercontext at 5032075:
- builtin/artifacts/experience/incubation.py skips every Source whose
  metadata kind isn't "task-outcome" (TASK_OUTCOME_SOURCE_KIND);
  docs/en/docs/workflows/create-and-review-experience.md: "Ordinary prompt
  Sources are ignored", and incubation creates candidates for review only.
- http/_generated/operations.py: RECORD_TASK_OUTCOME is POST
  /v1/work/outcomes/record, operation_id record_task_outcome, and
  server/mcp.py exposes it as an MCP tool.

This ships option (a) of the issue only. The README gets a section
"Capture feeds Memory and Topic Memory, not Experience" saying so, that
task-outcome Sources come from the agent through PowerContext's
record_task_outcome MCP tool at a real completion boundary, and why the
plugin does not derive one from a chat turn; Memory tools names it too.
The page's visible capture disclosure ("What is sent") says the same in
en, zh, zh-TW, ja and de. No behaviour changes. Option (b), an opt-in
that records host-derived outcomes on a real boundary, is not done.

Run (mote, at this tree on origin/main 53e3820, after debc0f7):
- HOME=$(mktemp -d) bun test: 4558 pass, 0 fail, 9 skip (live checks).
- bun scripts/check.mjs: ok.
- Broken by hand: the README heading removed, and ja's disclosure without
  the note: the new guard test red each time, green after.
Not tried: a real PowerContext server; nothing it receives changed.
2026-11-02 02:42:22 +08:00

51 lines
1.3 KiB
JSON

{
"name": "@magpie-community/gateway-powercontext",
"version": "0.2.1",
"description": "PowerContext context recall and asynchronous conversation capture for clients behind Magpie",
"type": "module",
"files": [
"powercontext.hooks.mjs",
"conversation.mjs",
"README.md",
"page"
],
"keywords": [
"magpie",
"magpie-gateway",
"powercontext",
"memory",
"llm-gateway"
],
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/magpie-community/plugins.git",
"directory": "packages/powercontext"
},
"magpie": {
"icon": "https://raw.githubusercontent.com/oceanbase/powercontext/master/src/powercontext/server/dashboard/static/brand/favicon-color.svg",
"hooks": "./powercontext.hooks.mjs",
"options": {
"authorizationEnv": "POWERCONTEXT_AUTHORIZATION",
"gatewayTimeoutMs": 5000,
"requestTimeoutMs": 1000,
"recallBackoffMs": 30000,
"maxBytes": 8000,
"capture": false,
"captureRemote": false,
"recallRemote": false
},
"page": {
"title": "PowerContext",
"file": "page/settings.html",
"icon": "page/powercontext-favicon-color.svg"
}
},
"scripts": {
"check": "bun test ./*.test.mjs"
},
"engines": {
"bun": ">=1.4.2"
}
}