sphica 0.6.62 → 0.6.63
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://anthropic.com/claude-code/plugin.schema.json",
|
|
3
3
|
"name": "sphica",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.63",
|
|
5
5
|
"description": "Records Claude Code and Codex sessions on your machine and keeps past implementation and decisions, with their sources, for your agent to find.",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "iroha924",
|
package/dist/mcp-record.js
CHANGED
|
@@ -49426,7 +49426,8 @@ async function checkRecord(db, target, raw, facts = prepareRecord(target.root, r
|
|
|
49426
49426
|
};
|
|
49427
49427
|
const adopted = newest(adoption.filter((x) => x.route !== "agent").map((x) => x.source));
|
|
49428
49428
|
const proposed = newest(evidence.filter((e) => e.role === "proposes").map((e) => e.source));
|
|
49429
|
-
|
|
49429
|
+
const midTurn = adopted && proposed?.author_kind === "assistant" && !proposed.external_id.includes(":ask:") && adopted.session_id !== null && adopted.turn_id !== null && proposed.session_id === adopted.session_id && proposed.turn_id === adopted.turn_id && await db.selectFrom("source").select("id").where("session_id", "=", adopted.session_id).where("created_at", "<", adopted.created_at).where("turn_id", "=", adopted.turn_id).executeTakeFirst() !== undefined;
|
|
49430
|
+
if (adopted && proposed && proposed.created_at > adopted.created_at && !midTurn)
|
|
49430
49431
|
problems.push(`${key}: its adoption (s${adopted.id}) is older than the proposal it cites (s${proposed.id}); if the proposal changed, quote the owner's reply to the final version or leave the adoption out; keep it if the adoption is right`);
|
|
49431
49432
|
}
|
|
49432
49433
|
const grounds = (["decision", "constraint"].includes(u.kind) ? adoption.find((x) => x.route !== "agent") : evidence[0])?.source ?? null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sphica",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.63",
|
|
4
4
|
"description": "Records Claude Code and Codex sessions on your machine and keeps past implementation and decisions, with their sources, for your agent to find.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|