@oleksandr.rudnychenko/sync_loop 0.2.4 → 0.3.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.
Files changed (50) hide show
  1. package/README.md +25 -4
  2. package/bin/cli.js +3 -128
  3. package/bin/cli.ts +171 -0
  4. package/dist/bin/cli.d.ts +15 -0
  5. package/dist/bin/cli.js +137 -0
  6. package/dist/bin/cli.js.map +1 -0
  7. package/dist/src/init.d.ts +24 -0
  8. package/dist/src/init.js +404 -0
  9. package/dist/src/init.js.map +1 -0
  10. package/dist/src/server.d.ts +13 -0
  11. package/dist/src/server.js +265 -0
  12. package/dist/src/server.js.map +1 -0
  13. package/dist/src/template/.agent-loop/README.md +75 -0
  14. package/dist/src/template/.agent-loop/feedback.md +395 -0
  15. package/dist/src/template/.agent-loop/glossary.md +113 -0
  16. package/dist/src/template/.agent-loop/patterns/api-standards.md +132 -0
  17. package/dist/src/template/.agent-loop/patterns/code-patterns.md +300 -0
  18. package/dist/src/template/.agent-loop/patterns/refactoring-workflow.md +114 -0
  19. package/dist/src/template/.agent-loop/patterns/testing-guide.md +258 -0
  20. package/dist/src/template/.agent-loop/patterns.md +256 -0
  21. package/dist/src/template/.agent-loop/reasoning-kernel.md +521 -0
  22. package/dist/src/template/.agent-loop/validate-env.md +332 -0
  23. package/dist/src/template/.agent-loop/validate-n.md +321 -0
  24. package/dist/src/template/AGENTS.md +157 -0
  25. package/dist/src/template/README.md +144 -0
  26. package/dist/src/template/bootstrap-prompt.md +37 -0
  27. package/dist/src/template/protocol-summary.md +54 -0
  28. package/dist/src/template/wiring/api-standards.md +15 -0
  29. package/dist/src/template/wiring/code-patterns.md +15 -0
  30. package/dist/src/template/wiring/feedback.md +18 -0
  31. package/dist/src/template/wiring/glossary.md +11 -0
  32. package/dist/src/template/wiring/patterns.md +18 -0
  33. package/dist/src/template/wiring/reasoning-kernel.md +18 -0
  34. package/dist/src/template/wiring/refactoring-workflow.md +15 -0
  35. package/dist/src/template/wiring/testing-guide.md +15 -0
  36. package/dist/src/template/wiring/validate-env.md +17 -0
  37. package/dist/src/template/wiring/validate-n.md +17 -0
  38. package/package.json +48 -34
  39. package/src/template/wiring/api-standards.md +15 -0
  40. package/src/template/wiring/code-patterns.md +15 -0
  41. package/src/template/wiring/feedback.md +18 -0
  42. package/src/template/wiring/glossary.md +11 -0
  43. package/src/template/wiring/patterns.md +18 -0
  44. package/src/template/wiring/reasoning-kernel.md +18 -0
  45. package/src/template/wiring/refactoring-workflow.md +15 -0
  46. package/src/template/wiring/testing-guide.md +15 -0
  47. package/src/template/wiring/validate-env.md +17 -0
  48. package/src/template/wiring/validate-n.md +17 -0
  49. package/src/init.js +0 -569
  50. package/src/server.js +0 -289
@@ -0,0 +1,18 @@
1
+ # SyncLoop Wiring: Feedback
2
+
3
+ This instruction delegates to:
4
+
5
+ - `.agent-loop/feedback.md`
6
+
7
+ Use that file as the authoritative protocol for gate failures, micro/macro fixes, patch contracts, pruning, and escalation.
8
+
9
+ ## Resolution Rule
10
+
11
+ If this file conflicts with `.agent-loop/feedback.md`, follow `.agent-loop/feedback.md`.
12
+
13
+ ## Related Sources
14
+
15
+ - `.agent-loop/reasoning-kernel.md`
16
+ - `.agent-loop/validate-env.md`
17
+ - `.agent-loop/validate-n.md`
18
+ - `.agent-loop/patterns.md`
@@ -0,0 +1,11 @@
1
+ # SyncLoop Wiring: Glossary
2
+
3
+ This instruction delegates canonical terminology to:
4
+
5
+ - `.agent-loop/glossary.md`
6
+
7
+ Use terms, naming rules, and deprecated aliases from that file for code, docs, and reasoning.
8
+
9
+ ## Resolution Rule
10
+
11
+ If this file conflicts with `.agent-loop/glossary.md`, follow `.agent-loop/glossary.md`.
@@ -0,0 +1,18 @@
1
+ # SyncLoop Wiring: Pattern Registry
2
+
3
+ This instruction delegates pattern routing and LEARN writes to:
4
+
5
+ - `.agent-loop/patterns.md`
6
+
7
+ Use the registry and routing table in that file as authoritative.
8
+
9
+ ## Pattern Specs
10
+
11
+ - `.agent-loop/patterns/code-patterns.md`
12
+ - `.agent-loop/patterns/refactoring-workflow.md`
13
+ - `.agent-loop/patterns/testing-guide.md`
14
+ - `.agent-loop/patterns/api-standards.md`
15
+
16
+ ## Resolution Rule
17
+
18
+ If this file conflicts with `.agent-loop/patterns.md`, follow `.agent-loop/patterns.md`.
@@ -0,0 +1,18 @@
1
+ # SyncLoop Wiring: Reasoning Kernel
2
+
3
+ This instruction file is wired to the project source-of-truth kernel at:
4
+
5
+ - `.agent-loop/reasoning-kernel.md`
6
+
7
+ Use the full 7-stage protocol from that file as authoritative for every turn.
8
+
9
+ ## Resolution Rule
10
+
11
+ When this file and `.agent-loop/reasoning-kernel.md` differ, follow `.agent-loop/reasoning-kernel.md`.
12
+
13
+ ## Required Companion Specs
14
+
15
+ - `.agent-loop/patterns.md`
16
+ - `.agent-loop/feedback.md`
17
+ - `.agent-loop/validate-env.md`
18
+ - `.agent-loop/validate-n.md`
@@ -0,0 +1,15 @@
1
+ # SyncLoop Wiring: Refactoring Workflow
2
+
3
+ This instruction delegates refactor process rules to:
4
+
5
+ - `.agent-loop/patterns/refactoring-workflow.md`
6
+
7
+ Use that file as authoritative for 4-phase refactoring, dependency impact checks, and safe migration flow.
8
+
9
+ ## Resolution Rule
10
+
11
+ If this file conflicts with `.agent-loop/patterns/refactoring-workflow.md`, follow `.agent-loop/patterns/refactoring-workflow.md`.
12
+
13
+ ## Registry Source
14
+
15
+ - `.agent-loop/patterns.md`
@@ -0,0 +1,15 @@
1
+ # SyncLoop Wiring: Testing Guide
2
+
3
+ This instruction delegates testing patterns and strategy to:
4
+
5
+ - `.agent-loop/patterns/testing-guide.md`
6
+
7
+ Use that file as authoritative for test pyramid placement, fixtures, mocking, and verification sequencing.
8
+
9
+ ## Resolution Rule
10
+
11
+ If this file conflicts with `.agent-loop/patterns/testing-guide.md`, follow `.agent-loop/patterns/testing-guide.md`.
12
+
13
+ ## Registry Source
14
+
15
+ - `.agent-loop/patterns.md`
@@ -0,0 +1,17 @@
1
+ # SyncLoop Wiring: Validate Environment
2
+
3
+ This instruction delegates Stage 1 validation to:
4
+
5
+ - `.agent-loop/validate-env.md`
6
+
7
+ Run gates and retries exactly as defined there.
8
+
9
+ ## Resolution Rule
10
+
11
+ If this file conflicts with `.agent-loop/validate-env.md`, follow `.agent-loop/validate-env.md`.
12
+
13
+ ## Related Sources
14
+
15
+ - `.agent-loop/reasoning-kernel.md`
16
+ - `.agent-loop/feedback.md`
17
+ - `.agent-loop/validate-n.md`
@@ -0,0 +1,17 @@
1
+ # SyncLoop Wiring: Validate Neighbors
2
+
3
+ This instruction delegates Stage 2 neighbor validation to:
4
+
5
+ - `.agent-loop/validate-n.md`
6
+
7
+ Run shape, boundary, and bridge checks exactly as defined there.
8
+
9
+ ## Resolution Rule
10
+
11
+ If this file conflicts with `.agent-loop/validate-n.md`, follow `.agent-loop/validate-n.md`.
12
+
13
+ ## Related Sources
14
+
15
+ - `.agent-loop/reasoning-kernel.md`
16
+ - `.agent-loop/feedback.md`
17
+ - `.agent-loop/validate-env.md`