sinapse-ai 1.12.2 → 1.13.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 (89) hide show
  1. package/.claude/CLAUDE.md +2 -2
  2. package/.claude/rules/agent-memory-imports.md +2 -0
  3. package/.sinapse-ai/cli/commands/pro/index.js +8 -48
  4. package/.sinapse-ai/constitution.md +6 -2
  5. package/.sinapse-ai/data/entity-registry.yaml +12 -36
  6. package/.sinapse-ai/development/agents/architect/MEMORY.md +35 -0
  7. package/.sinapse-ai/development/agents/data-engineer/MEMORY.md +38 -0
  8. package/.sinapse-ai/development/agents/developer/MEMORY.md +36 -0
  9. package/.sinapse-ai/development/agents/devops/MEMORY.md +39 -0
  10. package/.sinapse-ai/development/agents/product-lead/MEMORY.md +36 -0
  11. package/.sinapse-ai/development/agents/project-lead/MEMORY.md +36 -0
  12. package/.sinapse-ai/development/agents/quality-gate/MEMORY.md +35 -0
  13. package/.sinapse-ai/development/agents/sprint-lead/MEMORY.md +36 -0
  14. package/.sinapse-ai/development/templates/chrome-brain/knowledge-base/chrome-brain.md +2 -2
  15. package/.sinapse-ai/infrastructure/scripts/ide-sync/index.js +15 -0
  16. package/.sinapse-ai/infrastructure/scripts/validate-agents.js +159 -8
  17. package/.sinapse-ai/install-manifest.yaml +12 -148
  18. package/AGENTS.md +13 -2
  19. package/CHANGELOG.md +122 -2
  20. package/README.en.md +1 -1
  21. package/README.md +6 -26
  22. package/bin/cli.js +2 -7
  23. package/bin/commands/install.js +19 -257
  24. package/bin/commands/update.js +18 -78
  25. package/bin/lib/command-generator.js +261 -0
  26. package/bin/lib/prompts.js +2 -65
  27. package/bin/modules/chrome-brain-installer.js +2 -1
  28. package/bin/postinstall.js +6 -6
  29. package/docs/getting-started.md +0 -1
  30. package/docs/pt/getting-started.md +1 -1
  31. package/docs/security/dependabot-triage.md +17 -17
  32. package/package.json +6 -3
  33. package/packages/installer/src/wizard/i18n.js +3 -204
  34. package/packages/installer/src/wizard/index.js +1 -1
  35. package/packages/installer/src/wizard/questions.js +5 -368
  36. package/packages/installer/src/wizard/wizard.js +0 -9
  37. package/scripts/generate-install-manifest.js +6 -0
  38. package/scripts/validate-changelog-tags.js +97 -0
  39. package/scripts/validate-no-personal-leaks.js +184 -28
  40. package/scripts/validate-schemas.js +55 -10
  41. package/scripts/validate-story-meta.js +25 -12
  42. package/squads/claude-code-mastery/agents/claude-mastery-chief.md +1 -1
  43. package/squads/claude-code-mastery/agents/hooks-architect.md +12 -20
  44. package/squads/claude-code-mastery/tasks/audit-setup.md +1 -1
  45. package/squads/squad-product/agents/product-orqx.md +0 -1
  46. package/squads/squad-product/agents/ps-client-product-manager.md +0 -1
  47. package/squads/squad-product/agents/ps-delivery-manager.md +0 -1
  48. package/squads/squad-product/agents/ps-discovery-lead.md +0 -1
  49. package/squads/squad-product/agents/ps-product-analyst.md +0 -1
  50. package/squads/squad-product/agents/ps-product-ops-specialist.md +0 -1
  51. package/squads/squad-product/agents/ps-product-strategist.md +0 -1
  52. package/.sinapse-ai/core/grounding/README.md +0 -83
  53. package/.sinapse-ai/core/grounding/brand.cjs +0 -29
  54. package/.sinapse-ai/core/grounding/config-loader.cjs +0 -52
  55. package/.sinapse-ai/core/grounding/design-system.cjs +0 -29
  56. package/.sinapse-ai/core/grounding/vault.cjs +0 -36
  57. package/.sinapse-ai/development/scripts/approval-workflow.js +0 -643
  58. package/.sinapse-ai/development/scripts/backup-manager.js +0 -607
  59. package/.sinapse-ai/development/scripts/branch-manager.js +0 -390
  60. package/.sinapse-ai/development/scripts/code-quality-improver.js +0 -1329
  61. package/.sinapse-ai/development/scripts/commit-message-generator.js +0 -850
  62. package/.sinapse-ai/development/scripts/conflict-resolver.js +0 -675
  63. package/.sinapse-ai/development/scripts/dependency-analyzer.js +0 -638
  64. package/.sinapse-ai/development/scripts/diff-generator.js +0 -352
  65. package/.sinapse-ai/development/scripts/git-wrapper.js +0 -462
  66. package/.sinapse-ai/development/scripts/modification-validator.js +0 -555
  67. package/.sinapse-ai/development/scripts/performance-analyzer.js +0 -758
  68. package/.sinapse-ai/development/scripts/refactoring-suggester.js +0 -1148
  69. package/.sinapse-ai/development/scripts/rollback-handler.js +0 -531
  70. package/.sinapse-ai/development/scripts/security-checker.js +0 -359
  71. package/.sinapse-ai/development/scripts/template-engine.js +0 -240
  72. package/.sinapse-ai/development/scripts/template-validator.js +0 -279
  73. package/.sinapse-ai/development/scripts/test-generator.js +0 -844
  74. package/.sinapse-ai/development/scripts/transaction-manager.js +0 -590
  75. package/.sinapse-ai/development/scripts/yaml-validator.js +0 -397
  76. package/.sinapse-ai/hooks/sinapse-brand-grounding.cjs +0 -162
  77. package/.sinapse-ai/hooks/sinapse-ds-grounding.cjs +0 -211
  78. package/.sinapse-ai/hooks/sinapse-vault-grounding.cjs +0 -194
  79. package/bin/lib/register-grounding-hooks.js +0 -145
  80. package/docs/guides/agents/traces/execution-traces.zip +0 -0
  81. package/docs/guides/grounding-setup.md +0 -154
  82. package/docs/guides/workflows/SINAPSE-WORKFLOWS.zip +0 -0
  83. package/packages/installer/src/pro/pro-scaffolder.js +0 -449
  84. package/packages/installer/src/wizard/grounding-config.js +0 -131
  85. package/packages/installer/src/wizard/pro-setup.js +0 -1439
  86. package/packages/installer/templates/README.md +0 -16
  87. package/packages/installer/templates/brand-routing.example.json +0 -12
  88. package/packages/installer/templates/ds-routing.example.json +0 -12
  89. package/packages/installer/templates/vault-routing.example.json +0 -12
@@ -1,29 +0,0 @@
1
- /**
2
- * Brand grounding hook — opt-in BYO.
3
- *
4
- * @story 10.47
5
- *
6
- * Reads the user's brandbook path from `~/.claude/sinapse-ai-config.yaml`
7
- * (`grounding.brand`). Returns a stub envelope when configured, `null`
8
- * otherwise. Concrete brandbook parser (positioning, MVV, tone-of-voice
9
- * extraction) lands in a follow-up.
10
- */
11
-
12
- 'use strict';
13
-
14
- const configLoader = require('./config-loader.cjs');
15
-
16
- function brandGroundingHook(_context = {}) {
17
- const section = configLoader.getSection('brand');
18
- if (!section || !section.enabled || !section.brandbookPath) return null;
19
-
20
- return {
21
- source: 'brand',
22
- profileName: section.profileName || '',
23
- brandbookPath: section.brandbookPath,
24
- note: 'Brand grounding configured. Concrete brandbook parser ships in a follow-up story.',
25
- };
26
- }
27
-
28
- module.exports = brandGroundingHook;
29
- module.exports.brandGroundingHook = brandGroundingHook;
@@ -1,52 +0,0 @@
1
- /**
2
- * Shared config loader for grounding hooks.
3
- *
4
- * @story 10.47
5
- *
6
- * Reads `~/.claude/sinapse-ai-config.yaml` once per call. Pure function: no
7
- * caching, no side effects, never throws — returns `null` on any error so
8
- * each hook can short-circuit cleanly.
9
- */
10
-
11
- 'use strict';
12
-
13
- const fs = require('fs');
14
- const os = require('os');
15
- const path = require('path');
16
-
17
- const CONFIG_PATH = path.join(os.homedir(), '.claude', 'sinapse-ai-config.yaml');
18
-
19
- function loadGroundingConfig(configPath = CONFIG_PATH) {
20
- try {
21
- if (!fs.existsSync(configPath)) return null;
22
- const raw = fs.readFileSync(configPath, 'utf8');
23
- // Lazy-require so absence of js-yaml in a downstream consumer never
24
- // crashes the hook chain — yaml is shipped via packages/installer
25
- // dependency tree but downstream installs may strip dev deps.
26
- let yaml;
27
- try { yaml = require('js-yaml'); } catch { return null; }
28
- const parsed = yaml.load(raw);
29
- if (!parsed || typeof parsed !== 'object') return null;
30
- return parsed;
31
- } catch {
32
- return null;
33
- }
34
- }
35
-
36
- function isSectionEnabled(section, configPath = CONFIG_PATH) {
37
- const cfg = loadGroundingConfig(configPath);
38
- return Boolean(cfg && cfg.grounding && cfg.grounding[section] && cfg.grounding[section].enabled);
39
- }
40
-
41
- function getSection(section, configPath = CONFIG_PATH) {
42
- const cfg = loadGroundingConfig(configPath);
43
- if (!cfg || !cfg.grounding) return null;
44
- return cfg.grounding[section] || null;
45
- }
46
-
47
- module.exports = {
48
- CONFIG_PATH,
49
- loadGroundingConfig,
50
- isSectionEnabled,
51
- getSection,
52
- };
@@ -1,29 +0,0 @@
1
- /**
2
- * Design system grounding hook — opt-in BYO.
3
- *
4
- * @story 10.47
5
- *
6
- * Reads the user's design-system root from
7
- * `~/.claude/sinapse-ai-config.yaml` (`grounding.designSystem`). Returns a
8
- * stub envelope when configured, `null` otherwise. The concrete DS resolver
9
- * (token lookup, component registry, brandbook diff) lands in a follow-up.
10
- */
11
-
12
- 'use strict';
13
-
14
- const configLoader = require('./config-loader.cjs');
15
-
16
- function designSystemGroundingHook(_context = {}) {
17
- const section = configLoader.getSection('designSystem');
18
- if (!section || !section.enabled || !section.rootPath) return null;
19
-
20
- return {
21
- source: 'designSystem',
22
- profileName: section.profileName || '',
23
- rootPath: section.rootPath,
24
- note: 'Design system grounding configured. Concrete DS resolver ships in a follow-up story.',
25
- };
26
- }
27
-
28
- module.exports = designSystemGroundingHook;
29
- module.exports.designSystemGroundingHook = designSystemGroundingHook;
@@ -1,36 +0,0 @@
1
- /**
2
- * Vault grounding hook — opt-in BYO.
3
- *
4
- * @story 10.47
5
- *
6
- * Reads the user's vault path from `~/.claude/sinapse-ai-config.yaml`
7
- * (`grounding.vault`) and is the entry point for future context injection
8
- * from a markdown notes vault.
9
- *
10
- * Today this hook is a **structural no-op**: when the section is enabled
11
- * it returns a stub envelope describing the available vault path so
12
- * downstream tooling can detect the integration point. When disabled or
13
- * missing config, returns `null` silently. The concrete vault parser and
14
- * relevance scorer land in a follow-up story.
15
- */
16
-
17
- 'use strict';
18
-
19
- // Use module reference (not destructuring) so tests can stub
20
- // configLoader.getSection at runtime via jest mocks.
21
- const configLoader = require('./config-loader.cjs');
22
-
23
- function vaultGroundingHook(_context = {}) {
24
- const section = configLoader.getSection('vault');
25
- if (!section || !section.enabled || !section.path) return null;
26
-
27
- return {
28
- source: 'vault',
29
- path: section.path,
30
- domains: Array.isArray(section.domains) ? section.domains : [],
31
- note: 'Vault grounding configured. Concrete content injection ships in a follow-up story.',
32
- };
33
- }
34
-
35
- module.exports = vaultGroundingHook;
36
- module.exports.vaultGroundingHook = vaultGroundingHook;