sphica 0.5.5 → 0.5.6
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/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/README.md +2 -0
- package/dist/mcp-record.js +15 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://anthropic.com/claude-code/plugin.schema.json",
|
|
3
3
|
"name": "sphica",
|
|
4
|
-
"version": "0.5.
|
|
4
|
+
"version": "0.5.6",
|
|
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/README.md
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
[](https://www.npmjs.com/package/sphica#provenance)
|
|
8
8
|
[](https://github.com/iroha924/sphica/blob/main/.github/dependabot.yml)
|
|
9
9
|
|
|
10
|
+
What the badges cover: CI runs the checks in [Contributing](https://github.com/iroha924/sphica#contributing), and how each release is built and published is in [Security](https://github.com/iroha924/sphica#security). A passing badge does not mean the code is free of bugs or vulnerabilities.
|
|
11
|
+
|
|
10
12
|
English | [日本語](https://github.com/iroha924/sphica/blob/main/README.ja.md)
|
|
11
13
|
|
|
12
14
|
**Local memory of past implementation and decisions for Claude Code and Codex.**
|
package/dist/mcp-record.js
CHANGED
|
@@ -46750,9 +46750,23 @@ import { promisify } from "node:util";
|
|
|
46750
46750
|
var exec = promisify(execFile);
|
|
46751
46751
|
var MAX_ISSUES = 5;
|
|
46752
46752
|
var CLOSES = /\b(?:close[sd]?|fix(?:e[sd])?|resolve[sd]?)\s*:?\s+(?:([\w.-]+\/[\w.-]+)#|https:\/\/github\.com\/([\w.-]+\/[\w.-]+)\/issues\/|#)(\d{1,9})\b/gi;
|
|
46753
|
+
function visible2(body) {
|
|
46754
|
+
let out = "";
|
|
46755
|
+
let at = 0;
|
|
46756
|
+
for (;; ) {
|
|
46757
|
+
const open2 = body.indexOf("<!--", at);
|
|
46758
|
+
if (open2 < 0)
|
|
46759
|
+
return out + body.slice(at);
|
|
46760
|
+
out += body.slice(at, open2);
|
|
46761
|
+
const close = body.indexOf("-->", open2 + 4);
|
|
46762
|
+
if (close < 0)
|
|
46763
|
+
return out;
|
|
46764
|
+
at = close + 3;
|
|
46765
|
+
}
|
|
46766
|
+
}
|
|
46753
46767
|
function closingRefs(body, repo) {
|
|
46754
46768
|
const here = repo?.toLowerCase();
|
|
46755
|
-
return [...body.matchAll(CLOSES)].flatMap((m) => {
|
|
46769
|
+
return [...visible2(body).matchAll(CLOSES)].flatMap((m) => {
|
|
46756
46770
|
const named = (m[1] ?? m[2])?.toLowerCase();
|
|
46757
46771
|
return !named || named === here ? [Number(m[3])] : [];
|
|
46758
46772
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sphica",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.6",
|
|
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",
|