@imunitic/synapse 0.0.1-test.0

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.
Files changed (40) hide show
  1. package/Index.md.template +23 -0
  2. package/bin/synapse-hook.cjs +19 -0
  3. package/bin/synapse-setup.cjs +420 -0
  4. package/bin/synapse.cjs +20 -0
  5. package/commands/synapse-design-note.md +229 -0
  6. package/commands/synapse-init.md +354 -0
  7. package/commands/synapse-note.md +196 -0
  8. package/commands/synapse-rebuild-diff.md +314 -0
  9. package/commands/synapse-rebuild-full.md +152 -0
  10. package/commands/synapse-status.md +144 -0
  11. package/commands/synapse-task-note.md +133 -0
  12. package/commands/synapse-vault-tidy.md +187 -0
  13. package/harness/claude/hooks.json +54 -0
  14. package/harness/codex/hooks.json +54 -0
  15. package/harness/codex/skills/synapse-design-note/SKILL.md +236 -0
  16. package/harness/codex/skills/synapse-init/SKILL.md +354 -0
  17. package/harness/codex/skills/synapse-note/SKILL.md +212 -0
  18. package/harness/codex/skills/synapse-rebuild-diff/SKILL.md +315 -0
  19. package/harness/codex/skills/synapse-rebuild-full/SKILL.md +149 -0
  20. package/harness/codex/skills/synapse-status/SKILL.md +146 -0
  21. package/harness/codex/skills/synapse-task-note/SKILL.md +133 -0
  22. package/harness/codex/skills/synapse-vault-tidy/SKILL.md +187 -0
  23. package/harness/opencode/plugin/synapse.js +164 -0
  24. package/lib/obsidian-mcp-refresh.cjs +303 -0
  25. package/lib/resolve-binaries.cjs +54 -0
  26. package/package.json +26 -0
  27. package/skills/synapse-node/SKILL.md +211 -0
  28. package/skills/synapse-node-authoring/SKILL.md +188 -0
  29. package/skills/synapse-node-format/SKILL.md +205 -0
  30. package/skills/synapse-orientation/SKILL.md +468 -0
  31. package/skills/synapse-query/SKILL.md +99 -0
  32. package/skills/synapse-task/SKILL.md +261 -0
  33. package/skills/synapse-vault/SKILL.md +107 -0
  34. package/synapse-claude.md +220 -0
  35. package/synapse-fence-languages.conf.template +24 -0
  36. package/synapse-ignore-files.conf.template +45 -0
  37. package/synapse-module-boilerplate.conf.template +24 -0
  38. package/synapse-projects.conf.template +14 -0
  39. package/synapse-prompt-stopwords.conf.template +594 -0
  40. package/synapse.conf.template +23 -0
@@ -0,0 +1,24 @@
1
+ # Copy this to ~/.claude/synapse-module-boilerplate.conf (setup.sh does this
2
+ # for you). Never overwritten once installed -- add your own ecosystem's
3
+ # conventions any time.
4
+ #
5
+ # Boilerplate path-segment chains that module_of() (synapse query,
6
+ # synapse write-node's ## Sources mirror) strips through wholesale when
7
+ # aggregating a node's sources into module buckets. These chains carry no
8
+ # subsystem information of their own -- the real module name is the segment
9
+ # before the chain, e.g. lightweight-impl/src/main/java/... groups as
10
+ # lightweight-impl.
11
+ #
12
+ # Anything NOT listed here keeps one path segment past src/ instead of
13
+ # collapsing it, because for most non-Java layouts (OCaml, Rust, Go, a flat
14
+ # JS/TS src/<subsystem>/...) that next segment IS the subsystem, not
15
+ # boilerplate -- collapsing it the same way would erase the one distinction
16
+ # the grouping exists to preserve.
17
+ #
18
+ # Format: one chain per line, matched as a literal path substring
19
+ # /<chain>/. No leading or trailing slash. Blank lines and #-comments
20
+ # ignored.
21
+
22
+ src/main/java
23
+ src/test/java
24
+ src/main/resources
@@ -0,0 +1,14 @@
1
+ # Copy this to ~/.claude/synapse-projects.conf (setup.sh does this for you).
2
+ #
3
+ # Known project -> task-prefix mappings for THIS machine only. Deliberately
4
+ # separate from the portable Synapse package (never committed
5
+ # there, never copied between machines) so contexts that shouldn't mix
6
+ # (e.g. personal vs. work projects) never end up in the same file.
7
+ #
8
+ # Self-managed by /synapse-note: when it resolves a project it hasn't seen
9
+ # before (via this file, then a vault search, then asking you directly), it
10
+ # appends the new pair here so it won't have to ask again. Also safe to edit
11
+ # by hand -- add, remove, or fix a line any time.
12
+ #
13
+ # Format: one pair per line, "project-name=prefix". project-name is matched
14
+ # loosely against the current repo's CLAUDE.md title or git remote name.
@@ -0,0 +1,594 @@
1
+ # Copy this to ~/.claude/synapse-prompt-stopwords.conf (setup.sh does this for
2
+ # you). Never overwritten once installed -- edit or extend any time.
3
+ #
4
+ # Common English function words, filtered out by `synapse vocab` before
5
+ # building a search pattern from a raw prompt -- without this, an ordinary
6
+ # sentence's "how"/"does"/"the"/"when" survive as tokens alongside the terms
7
+ # that actually matter. Source: stopwords-json (MIT), English list, 570 words:
8
+ # https://github.com/6/stopwords-json
9
+ #
10
+ # English only by default, not all ~50 languages that project covers combined
11
+ # -- most Claude Code prompts are English, and an unfiltered non-English
12
+ # function word just adds mild noise to the match set (this mechanism doesn't
13
+ # explode the way raw search_simple sentence queries did -- see the design
14
+ # note), not a broken result. Add another language with one command:
15
+ #
16
+ # curl -sL https://raw.githubusercontent.com/6/stopwords-json/master/dist/{lang}.json \
17
+ # | jq -r '.[]' >> ~/.claude/synapse-prompt-stopwords.conf
18
+ #
19
+ # One word per line, matched by exact (case-folded) lookup in
20
+ # `core.vocab.keep()` -- no shell, no regex. Blank lines and lines starting
21
+ # with # are themselves harmless here since the symbol-word splitter never
22
+ # produces a token containing a literal # or apostrophe, so entries like
23
+ # "a's" below are inert but kept for fidelity with the upstream source.
24
+
25
+ a
26
+ a's
27
+ able
28
+ about
29
+ above
30
+ according
31
+ accordingly
32
+ across
33
+ actually
34
+ after
35
+ afterwards
36
+ again
37
+ against
38
+ ain't
39
+ all
40
+ allow
41
+ allows
42
+ almost
43
+ alone
44
+ along
45
+ already
46
+ also
47
+ although
48
+ always
49
+ am
50
+ among
51
+ amongst
52
+ an
53
+ and
54
+ another
55
+ any
56
+ anybody
57
+ anyhow
58
+ anyone
59
+ anything
60
+ anyway
61
+ anyways
62
+ anywhere
63
+ apart
64
+ appear
65
+ appreciate
66
+ appropriate
67
+ are
68
+ aren't
69
+ around
70
+ as
71
+ aside
72
+ ask
73
+ asking
74
+ associated
75
+ at
76
+ available
77
+ away
78
+ awfully
79
+ b
80
+ be
81
+ became
82
+ because
83
+ become
84
+ becomes
85
+ becoming
86
+ been
87
+ before
88
+ beforehand
89
+ behind
90
+ being
91
+ believe
92
+ below
93
+ beside
94
+ besides
95
+ best
96
+ better
97
+ between
98
+ beyond
99
+ both
100
+ brief
101
+ but
102
+ by
103
+ c
104
+ c'mon
105
+ c's
106
+ came
107
+ can
108
+ can't
109
+ cannot
110
+ cant
111
+ cause
112
+ causes
113
+ certain
114
+ certainly
115
+ changes
116
+ clearly
117
+ co
118
+ com
119
+ come
120
+ comes
121
+ concerning
122
+ consequently
123
+ consider
124
+ considering
125
+ contain
126
+ containing
127
+ contains
128
+ corresponding
129
+ could
130
+ couldn't
131
+ course
132
+ currently
133
+ d
134
+ definitely
135
+ described
136
+ despite
137
+ did
138
+ didn't
139
+ different
140
+ do
141
+ does
142
+ doesn't
143
+ doing
144
+ don't
145
+ done
146
+ down
147
+ downwards
148
+ during
149
+ e
150
+ each
151
+ edu
152
+ eg
153
+ eight
154
+ either
155
+ else
156
+ elsewhere
157
+ enough
158
+ entirely
159
+ especially
160
+ et
161
+ etc
162
+ even
163
+ ever
164
+ every
165
+ everybody
166
+ everyone
167
+ everything
168
+ everywhere
169
+ ex
170
+ exactly
171
+ example
172
+ except
173
+ f
174
+ far
175
+ few
176
+ fifth
177
+ first
178
+ five
179
+ followed
180
+ following
181
+ follows
182
+ for
183
+ former
184
+ formerly
185
+ forth
186
+ four
187
+ from
188
+ further
189
+ furthermore
190
+ g
191
+ get
192
+ gets
193
+ getting
194
+ given
195
+ gives
196
+ go
197
+ goes
198
+ going
199
+ gone
200
+ got
201
+ gotten
202
+ greetings
203
+ h
204
+ had
205
+ hadn't
206
+ happens
207
+ hardly
208
+ has
209
+ hasn't
210
+ have
211
+ haven't
212
+ having
213
+ he
214
+ he's
215
+ hello
216
+ help
217
+ hence
218
+ her
219
+ here
220
+ here's
221
+ hereafter
222
+ hereby
223
+ herein
224
+ hereupon
225
+ hers
226
+ herself
227
+ hi
228
+ him
229
+ himself
230
+ his
231
+ hither
232
+ hopefully
233
+ how
234
+ howbeit
235
+ however
236
+ i
237
+ i'd
238
+ i'll
239
+ i'm
240
+ i've
241
+ ie
242
+ if
243
+ ignored
244
+ immediate
245
+ in
246
+ inasmuch
247
+ inc
248
+ indeed
249
+ indicate
250
+ indicated
251
+ indicates
252
+ inner
253
+ insofar
254
+ instead
255
+ into
256
+ inward
257
+ is
258
+ isn't
259
+ it
260
+ it'd
261
+ it'll
262
+ it's
263
+ its
264
+ itself
265
+ j
266
+ just
267
+ k
268
+ keep
269
+ keeps
270
+ kept
271
+ know
272
+ known
273
+ knows
274
+ l
275
+ last
276
+ lately
277
+ later
278
+ latter
279
+ latterly
280
+ least
281
+ less
282
+ lest
283
+ let
284
+ let's
285
+ like
286
+ liked
287
+ likely
288
+ little
289
+ look
290
+ looking
291
+ looks
292
+ ltd
293
+ m
294
+ mainly
295
+ many
296
+ may
297
+ maybe
298
+ me
299
+ mean
300
+ meanwhile
301
+ merely
302
+ might
303
+ more
304
+ moreover
305
+ most
306
+ mostly
307
+ much
308
+ must
309
+ my
310
+ myself
311
+ n
312
+ name
313
+ namely
314
+ nd
315
+ near
316
+ nearly
317
+ necessary
318
+ need
319
+ needs
320
+ neither
321
+ never
322
+ nevertheless
323
+ new
324
+ next
325
+ nine
326
+ no
327
+ nobody
328
+ non
329
+ none
330
+ noone
331
+ nor
332
+ normally
333
+ not
334
+ nothing
335
+ novel
336
+ now
337
+ nowhere
338
+ o
339
+ obviously
340
+ of
341
+ off
342
+ often
343
+ oh
344
+ ok
345
+ okay
346
+ old
347
+ on
348
+ once
349
+ one
350
+ ones
351
+ only
352
+ onto
353
+ or
354
+ other
355
+ others
356
+ otherwise
357
+ ought
358
+ our
359
+ ours
360
+ ourselves
361
+ out
362
+ outside
363
+ over
364
+ overall
365
+ own
366
+ p
367
+ particular
368
+ particularly
369
+ per
370
+ perhaps
371
+ placed
372
+ please
373
+ plus
374
+ possible
375
+ presumably
376
+ probably
377
+ provides
378
+ q
379
+ que
380
+ quite
381
+ qv
382
+ r
383
+ rather
384
+ rd
385
+ re
386
+ really
387
+ reasonably
388
+ regarding
389
+ regardless
390
+ regards
391
+ relatively
392
+ respectively
393
+ right
394
+ s
395
+ said
396
+ same
397
+ saw
398
+ say
399
+ saying
400
+ says
401
+ second
402
+ secondly
403
+ see
404
+ seeing
405
+ seem
406
+ seemed
407
+ seeming
408
+ seems
409
+ seen
410
+ self
411
+ selves
412
+ sensible
413
+ sent
414
+ serious
415
+ seriously
416
+ seven
417
+ several
418
+ shall
419
+ she
420
+ should
421
+ shouldn't
422
+ since
423
+ six
424
+ so
425
+ some
426
+ somebody
427
+ somehow
428
+ someone
429
+ something
430
+ sometime
431
+ sometimes
432
+ somewhat
433
+ somewhere
434
+ soon
435
+ sorry
436
+ specified
437
+ specify
438
+ specifying
439
+ still
440
+ sub
441
+ such
442
+ sup
443
+ sure
444
+ t
445
+ t's
446
+ take
447
+ taken
448
+ tell
449
+ tends
450
+ th
451
+ than
452
+ thank
453
+ thanks
454
+ thanx
455
+ that
456
+ that's
457
+ thats
458
+ the
459
+ their
460
+ theirs
461
+ them
462
+ themselves
463
+ then
464
+ thence
465
+ there
466
+ there's
467
+ thereafter
468
+ thereby
469
+ therefore
470
+ therein
471
+ theres
472
+ thereupon
473
+ these
474
+ they
475
+ they'd
476
+ they'll
477
+ they're
478
+ they've
479
+ think
480
+ third
481
+ this
482
+ thorough
483
+ thoroughly
484
+ those
485
+ though
486
+ three
487
+ through
488
+ throughout
489
+ thru
490
+ thus
491
+ to
492
+ together
493
+ too
494
+ took
495
+ toward
496
+ towards
497
+ tried
498
+ tries
499
+ truly
500
+ try
501
+ trying
502
+ twice
503
+ two
504
+ u
505
+ un
506
+ under
507
+ unfortunately
508
+ unless
509
+ unlikely
510
+ until
511
+ unto
512
+ up
513
+ upon
514
+ us
515
+ use
516
+ used
517
+ useful
518
+ uses
519
+ using
520
+ usually
521
+ uucp
522
+ v
523
+ value
524
+ various
525
+ very
526
+ via
527
+ viz
528
+ vs
529
+ w
530
+ want
531
+ wants
532
+ was
533
+ wasn't
534
+ way
535
+ we
536
+ we'd
537
+ we'll
538
+ we're
539
+ we've
540
+ welcome
541
+ well
542
+ went
543
+ were
544
+ weren't
545
+ what
546
+ what's
547
+ whatever
548
+ when
549
+ whence
550
+ whenever
551
+ where
552
+ where's
553
+ whereafter
554
+ whereas
555
+ whereby
556
+ wherein
557
+ whereupon
558
+ wherever
559
+ whether
560
+ which
561
+ while
562
+ whither
563
+ who
564
+ who's
565
+ whoever
566
+ whole
567
+ whom
568
+ whose
569
+ why
570
+ will
571
+ willing
572
+ wish
573
+ with
574
+ within
575
+ without
576
+ won't
577
+ wonder
578
+ would
579
+ wouldn't
580
+ x
581
+ y
582
+ yes
583
+ yet
584
+ you
585
+ you'd
586
+ you'll
587
+ you're
588
+ you've
589
+ your
590
+ yours
591
+ yourself
592
+ yourselves
593
+ z
594
+ zero
@@ -0,0 +1,23 @@
1
+ # Copy this to ~/.claude/synapse.conf and edit the path for this machine.
2
+ OBSIDIAN_VAULT_DIR="$HOME/Obsidian/YourVault"
3
+
4
+ # Where Synapse clones/builds tree-sitter grammars (shared across every
5
+ # project -- not per-repo). Safe to leave at the default.
6
+ SYNAPSE_GRAMMARS_DIR="$HOME/.cache/synapse/grammars"
7
+
8
+ # How often the Stop hook pushes the vault's auto-commits to its remote,
9
+ # counted in turns. Only acts when the vault actually has an upstream and is
10
+ # genuinely ahead of it, so a remote-less vault (local versioned undo only) is
11
+ # unaffected either way. Set to 0 to never push. Default 5 if unset.
12
+ #SYNAPSE_VAULT_PUSH_EVERY=5
13
+
14
+ # How many nodes /synapse-init authors concurrently in its final step, via the
15
+ # synapse-node-authoring skill. 0 (the default if unset) means the original
16
+ # inline procedure: one node at a time, no subagents, same session throughout
17
+ # -- the safest choice and the only one that preserves cross-node authorial
18
+ # memory. N>=1 fans out to a worker pool of that size instead, each node
19
+ # written by an isolated subagent. Read directly by the orchestrating agent
20
+ # when it runs /synapse-init, not by any Zig binary -- nothing compiled
21
+ # dispatches subagents.
22
+ #SYNAPSE_AUTHOR_POOL=0
23
+