@imunitic/synapse 0.13.17 → 0.14.1

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.
@@ -239,13 +239,9 @@ function configureClaude() {
239
239
  const rendered = renderHooksTemplate(path.join(PKG_ROOT, "harness", "claude", "hooks.json"), hookBin);
240
240
  settings.hooks = mergeHooksInto(settings.hooks, rendered);
241
241
 
242
- // The npm-install counterpart to $CLAUDE_PLUGIN_ROOT -- conf.zig's own
243
- // resolveConfPath and session_start.zig's synapse-claude.md/Index.md.template
244
- // lookups both check this env var now that there's no plugin marketplace
245
- // to set CLAUDE_PLUGIN_ROOT for them. Points at PKG_ROOT, the same
246
- // relative shape CLAUDE_PLUGIN_ROOT used to point at plugins/synapse/ --
247
- // synapse-claude.md, Index.md.template, and every *.conf.template sit
248
- // directly under it.
242
+ // SYNAPSE_CONTENT_ROOT points at PKG_ROOT: the config resolution in
243
+ // Conf_Files and the session-start hook look up synapse-claude.md,
244
+ // Index.md.template and every *.conf.template directly under it.
249
245
  settings.env = settings.env || {};
250
246
  settings.env.SYNAPSE_CONTENT_ROOT = PKG_ROOT;
251
247
 
@@ -148,5 +148,5 @@ note live containing only the leftovers, trimmed of everything that did get merg
148
148
  only the wipe-with-preservation step before it and the note-merge step after it.
149
149
  - The wipe itself is `synapse graph-wipe` (via `synapse graph-wipe`), mirroring
150
150
  `synapse graph-clean` as the only other destructive tool in the system.
151
- - Resolves the namespace the same way `/synapse-init` and `/synapse-rebuild-diff` do -- one chain, in `core/identity.zig`
151
+ - Resolves the namespace the same way `/synapse-init` and `/synapse-rebuild-diff` do -- one chain, in `Core.Identity`
152
152
  — never re-derives repo/branch/remote independently.
@@ -146,4 +146,4 @@ note live containing only the leftovers, trimmed of everything that did get merg
146
146
  - The wipe itself is `synapse graph-wipe` (via `synapse graph-wipe`), mirroring
147
147
  `synapse graph-clean` as the only other destructive tool in the system.
148
148
  - Resolves the namespace the same way the synapse-init and synapse-rebuild-diff skills do -- one
149
- chain, in `core/identity.zig` — never re-derives repo/branch/remote independently.
149
+ chain, in `Core.Identity` — never re-derives repo/branch/remote independently.
@@ -2,7 +2,7 @@
2
2
  // Code's hooks.json already calls, translating OpenCode's plugin callbacks
3
3
  // into the same stdin JSON payload / stdout `hookSpecificOutput` shape the
4
4
  // binary already reads and writes. No engine change -- see
5
- // `src/apps/hook/main.zig`'s own doc comment for that contract.
5
+ // `src/hooks/synapse-hooks-dispatch.ads`'s own doc comment for that contract.
6
6
  //
7
7
  // Ported to the OpenCode v2 plugin API (2.0.x). The v2 loader rejects this
8
8
  // file's old shape outright at load time -- it requires a default export
@@ -15,9 +15,9 @@ const path = require("path");
15
15
  const CLI_NAME = "synapse";
16
16
  const HOOK_NAME = "synapse-hook";
17
17
 
18
- // Matches process.platform/process.arch directly (not a Zig target triple)
18
+ // Matches process.platform/process.arch directly (not a compiler target triple)
19
19
  // since that's what npm's own `os`/`cpu` fields select against -- the
20
- // release pipeline maps its Zig target names to this naming once, at
20
+ // release pipeline maps its target names to this naming once, at
21
21
  // publish time, not here.
22
22
  function platformPackageName() {
23
23
  return `@imunitic/synapse-${process.platform}-${process.arch}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@imunitic/synapse",
3
- "version": "0.13.17",
3
+ "version": "0.14.1",
4
4
  "description": "Memory for Claude Code, Codex CLI, and OpenCode: a durable markdown vault plus a per-repo code graph.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -23,9 +23,9 @@
23
23
  "*.conf.template"
24
24
  ],
25
25
  "optionalDependencies": {
26
- "@imunitic/synapse-darwin-arm64": "0.13.17",
27
- "@imunitic/synapse-linux-x64": "0.13.17",
28
- "@imunitic/synapse-linux-arm64": "0.13.17"
26
+ "@imunitic/synapse-darwin-arm64": "0.14.1",
27
+ "@imunitic/synapse-linux-x64": "0.14.1",
28
+ "@imunitic/synapse-linux-arm64": "0.14.1"
29
29
  },
30
30
  "license": "SEE LICENSE IN LICENSE"
31
31
  }
@@ -44,7 +44,7 @@ conf file actually lives"): the first tier with a file at all wins, whether or n
44
44
  sets `SYNAPSE_AUTHOR_POOL` — a `synapse.conf` at `~/.claude/` is not consulted when one already
45
45
  exists at the XDG tier, even if the XDG one is silent on this key. Absent, empty, or malformed
46
46
  all fall through to `0`. **This is read by you, the orchestrating agent, directly — not by any
47
- Zig binary.** Nothing compiled dispatches subagents, so there is nothing for a `synapse` flag to
47
+ compiled binary.** Nothing compiled dispatches subagents, so there is nothing for a `synapse` flag to
48
48
  feed. The conf file is the shared home for the setting; the reader is markdown, not code.
49
49
 
50
50
  `pool = 0` is not "a pool of zero workers" — go to §2. `pool >= 1` is a real worker pool — go
@@ -142,7 +142,7 @@ convention. State it here, every time, rather than assuming it travels for free.
142
142
  ### 3d. Verify on completion, retry once, then fall back
143
143
 
144
144
  When a completion notification arrives, read `b-NN.md` yourself — this is a check you read the
145
- file for, same as the section check next to it, not a shell one-liner (`core/query.zig` is this
145
+ file for, same as the section check next to it, not a shell one-liner (`Core.Frontmatter` is this
146
146
  codebase's own tested, compiled frontmatter reader — a fresh hand-rolled `grep`/`sed`/`awk`
147
147
  pattern here would drift from it the same way the gap this section exists to close first
148
148
  happened). Confirm the file exists, opens with
@@ -406,9 +406,9 @@ discipline — never assume a patch worked from reading it:
406
406
 
407
407
  A per-file "this file depends on library L" edge narrows an ambiguous reference (a name defined in
408
408
  more than one node) to the candidate the referencing file actually declares a dependency on —
409
- `core/links.zig`'s own real signal for that case, read from `synapse-dependency-rules.conf`
409
+ `Core.Links`' own real signal for that case, read from `synapse-dependency-rules.conf`
410
410
  (`SYNAPSE_DEPENDENCY_RULES_CONF` overrides the path), a second registry alongside
411
- `synapse-namespace-rules.conf` and reusing the exact same `core/namespace.Rule`/`Registry` shape
411
+ `synapse-namespace-rules.conf` and reusing the exact same `Core.Namespace.Rule`/`Registry` shape
412
412
  unchanged — a rule per extension, `kind` `in-file` or `build-file`, ordered `prefix`/`terminator`,
413
413
  first match wins, no per-language branching in code. A separate file, not a second key on the same
414
414
  one: an extension can need both a namespace rule (what a file *is*) and a dependency rule (what a
@@ -44,7 +44,7 @@ SYNAPSE_GRAMMARS_DIR="$HOME/.cache/synapse/grammars"
44
44
  # -- the safest choice and the only one that preserves cross-node authorial
45
45
  # memory. N>=1 fans out to a worker pool of that size instead, each node
46
46
  # written by an isolated subagent. Read directly by the orchestrating agent
47
- # when it runs /synapse-init, not by any Zig binary -- nothing compiled
47
+ # when it runs /synapse-init, not by any compiled binary -- nothing compiled
48
48
  # dispatches subagents.
49
49
  #SYNAPSE_AUTHOR_POOL=0
50
50