sphica 0.6.63 → 0.6.64

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.63",
4
+ "version": "0.6.64",
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",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sphica",
3
- "version": "0.6.63",
3
+ "version": "0.6.64",
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
  "author": {
6
6
  "name": "iroha924",
package/dist/capture.js CHANGED
@@ -46,6 +46,9 @@ function codexThread(input) {
46
46
  var ownThread = (input, thread) => Boolean(input.session_id) && thread?.id === input.session_id && thread?.threadSource === "user";
47
47
  var childThread = (input, thread) => input.session_id && thread?.threadSource === "subagent" && thread.parent === input.session_id && thread.id !== null && thread.id !== input.session_id && /^[\x21-\x7e]{1,200}$/.test(thread.id) ? thread.id : null;
48
48
 
49
+ // server/src/db-write.ts
50
+ import { constants as C2, DatabaseSync as DatabaseSync2 } from "node:sqlite";
51
+
49
52
  // server/node_modules/kysely/dist/util/object-utils.js
50
53
  function isUndefined(obj) {
51
54
  return typeof obj === "undefined" || obj === undefined;
@@ -11693,7 +11696,6 @@ function sqliteCode(e) {
11693
11696
  }
11694
11697
 
11695
11698
  // server/src/db-write.ts
11696
- import { constants as C2, DatabaseSync as DatabaseSync2 } from "node:sqlite";
11697
11699
  var ddl = null;
11698
11700
  var DDL = () => ddl ??= new Set([
11699
11701
  "SQLITE_ALTER_TABLE",
@@ -12403,7 +12405,7 @@ async function closeTurn(dir, turn, root) {
12403
12405
  return () => {
12404
12406
  if (newestTurn(readStarts(dir)) !== turn || JSON.stringify(readStart(startFile(dir, turn))) !== JSON.stringify(own))
12405
12407
  return [];
12406
- writeStart(dir, { ...own, ...now ?? {}, running: false });
12408
+ writeStart(dir, { ...own, ...now, running: false });
12407
12409
  return now ? changed(root, before, now) : [];
12408
12410
  };
12409
12411
  }
package/dist/cli.js CHANGED
@@ -5231,6 +5231,9 @@ function codexThread(input) {
5231
5231
  var ownThread = (input, thread) => Boolean(input.session_id) && thread?.id === input.session_id && thread?.threadSource === "user";
5232
5232
  var childThread = (input, thread) => input.session_id && thread?.threadSource === "subagent" && thread.parent === input.session_id && thread.id !== null && thread.id !== input.session_id && /^[\x21-\x7e]{1,200}$/.test(thread.id) ? thread.id : null;
5233
5233
 
5234
+ // server/src/db-write.ts
5235
+ import { constants as C2, DatabaseSync as DatabaseSync2 } from "node:sqlite";
5236
+
5234
5237
  // server/node_modules/kysely/dist/util/object-utils.js
5235
5238
  function isUndefined(obj) {
5236
5239
  return typeof obj === "undefined" || obj === undefined;
@@ -16073,7 +16076,6 @@ function sqliteCode(e) {
16073
16076
  }
16074
16077
 
16075
16078
  // server/src/db-write.ts
16076
- import { constants as C2, DatabaseSync as DatabaseSync2 } from "node:sqlite";
16077
16079
  var ddl = null;
16078
16080
  var DDL = () => ddl ??= new Set([
16079
16081
  "SQLITE_ALTER_TABLE",
@@ -16925,7 +16927,7 @@ async function closeTurn(dir, turn, root) {
16925
16927
  return () => {
16926
16928
  if (newestTurn(readStarts(dir)) !== turn || JSON.stringify(readStart(startFile(dir, turn))) !== JSON.stringify(own))
16927
16929
  return [];
16928
- writeStart(dir, { ...own, ...now ?? {}, running: false });
16930
+ writeStart(dir, { ...own, ...now, running: false });
16929
16931
  return now ? changed(root, before, now) : [];
16930
16932
  };
16931
16933
  }
package/dist/deliver.js CHANGED
@@ -11124,6 +11124,9 @@ function codexThread(input) {
11124
11124
  var ownThread = (input, thread) => Boolean(input.session_id) && thread?.id === input.session_id && thread?.threadSource === "user";
11125
11125
  var childThread = (input, thread) => input.session_id && thread?.threadSource === "subagent" && thread.parent === input.session_id && thread.id !== null && thread.id !== input.session_id && /^[\x21-\x7e]{1,200}$/.test(thread.id) ? thread.id : null;
11126
11126
 
11127
+ // server/src/db-write.ts
11128
+ import { constants as C2, DatabaseSync as DatabaseSync2 } from "node:sqlite";
11129
+
11127
11130
  // server/src/kysely-node-sqlite.ts
11128
11131
  var plain = (row) => {
11129
11132
  const out = {};
@@ -11791,7 +11794,6 @@ function byUnit(rows) {
11791
11794
  }
11792
11795
 
11793
11796
  // server/src/db-write.ts
11794
- import { constants as C2, DatabaseSync as DatabaseSync2 } from "node:sqlite";
11795
11797
  var ddl = null;
11796
11798
  var DDL = () => ddl ??= new Set([
11797
11799
  "SQLITE_ALTER_TABLE",
@@ -12498,7 +12500,7 @@ async function closeTurn(dir, turn, root) {
12498
12500
  return () => {
12499
12501
  if (newestTurn(readStarts(dir)) !== turn || JSON.stringify(readStart(startFile(dir, turn))) !== JSON.stringify(own))
12500
12502
  return [];
12501
- writeStart(dir, { ...own, ...now ?? {}, running: false });
12503
+ writeStart(dir, { ...own, ...now, running: false });
12502
12504
  return now ? changed(root, before, now) : [];
12503
12505
  };
12504
12506
  }
@@ -13127,6 +13129,10 @@ if (process.argv[1] && /capture\.(ts|js)$/.test(process.argv[1])) {
13127
13129
  main().catch(() => {});
13128
13130
  }
13129
13131
 
13132
+ // server/src/review-bridge.ts
13133
+ import fs9 from "node:fs";
13134
+ import path10 from "node:path";
13135
+
13130
13136
  // server/src/reply-budget.ts
13131
13137
  var READ_BUDGET = 32 * 1024;
13132
13138
 
@@ -13275,8 +13281,6 @@ async function selectForReview(db, projectId2, files) {
13275
13281
  }
13276
13282
 
13277
13283
  // server/src/review-bridge.ts
13278
- import fs9 from "node:fs";
13279
- import path10 from "node:path";
13280
13284
  var NAME = /^[\w.:/-]{1,100}$/;
13281
13285
  var MAX_DIFF = 4 * 1024 * 1024;
13282
13286
  var DIFF_DEADLINE = 5000;
@@ -34749,6 +34749,9 @@ function callerOf(meta3, env = process.env) {
34749
34749
  return { host: "claude-code", session, turn: null, toolUseId, mode, raw: entrypoint };
34750
34750
  }
34751
34751
 
34752
+ // server/src/db-write.ts
34753
+ import { constants as C2, DatabaseSync as DatabaseSync2 } from "node:sqlite";
34754
+
34752
34755
  // server/node_modules/kysely/dist/util/object-utils.js
34753
34756
  function isUndefined(obj) {
34754
34757
  return typeof obj === "undefined" || obj === undefined;
@@ -46485,7 +46488,6 @@ function sqliteCode(e) {
46485
46488
  }
46486
46489
 
46487
46490
  // server/src/db-write.ts
46488
- import { constants as C2, DatabaseSync as DatabaseSync2 } from "node:sqlite";
46489
46491
  var ddl = null;
46490
46492
  var DDL = () => ddl ??= new Set([
46491
46493
  "SQLITE_ALTER_TABLE",
@@ -47447,7 +47449,7 @@ async function closeTurn(dir, turn, root) {
47447
47449
  return () => {
47448
47450
  if (newestTurn(readStarts(dir)) !== turn || JSON.stringify(readStart(startFile(dir, turn))) !== JSON.stringify(own2))
47449
47451
  return [];
47450
- writeStart(dir, { ...own2, ...now ?? {}, running: false });
47452
+ writeStart(dir, { ...own2, ...now, running: false });
47451
47453
  return now ? changed(root, before, now) : [];
47452
47454
  };
47453
47455
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sphica",
3
- "version": "0.6.63",
3
+ "version": "0.6.64",
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",