@jefuriiij/synthra 0.1.9 → 0.1.10

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.
package/dist/cli/index.js CHANGED
@@ -18,7 +18,7 @@ var init_package = __esm({
18
18
  "package.json"() {
19
19
  package_default = {
20
20
  name: "@jefuriiij/synthra",
21
- version: "0.1.8",
21
+ version: "0.1.10",
22
22
  publishConfig: {
23
23
  access: "public"
24
24
  },
@@ -2926,7 +2926,29 @@ var DEFAULT_IGNORE = [
2926
2926
  ".turbo/",
2927
2927
  ".cache/",
2928
2928
  ".vscode/",
2929
- ".idea/"
2929
+ ".idea/",
2930
+ ".vs/",
2931
+ // Flutter / Dart build caches — IDE-rehydrated, contain third-party
2932
+ // type stubs (typescript.d.ts, babylon.js etc.) that contaminate the graph.
2933
+ ".dart_tool/",
2934
+ ".flutter-plugins",
2935
+ ".flutter-plugins-dependencies",
2936
+ // Android / Java / Kotlin / Rust
2937
+ ".gradle/",
2938
+ "target/",
2939
+ // iOS / Xcode
2940
+ "Pods/",
2941
+ "DerivedData/",
2942
+ // Python
2943
+ "__pycache__/",
2944
+ ".venv/",
2945
+ "venv/",
2946
+ ".tox/",
2947
+ ".pytest_cache/",
2948
+ ".mypy_cache/",
2949
+ ".ruff_cache/",
2950
+ // .NET
2951
+ "obj/"
2930
2952
  ];
2931
2953
  var BINARY_EXTS = /* @__PURE__ */ new Set([
2932
2954
  ".png",
@@ -3051,7 +3073,7 @@ import { mkdir as mkdir5, readFile as readFile10, stat as stat2, writeFile as wr
3051
3073
 
3052
3074
  // src/hooks/claude-md.ts
3053
3075
  import { readFile as readFile9, writeFile as writeFile4 } from "fs/promises";
3054
- var POLICY_VERSION = 2;
3076
+ var POLICY_VERSION = 3;
3055
3077
  var POLICY_BEGIN = `<!-- synthra-policy v${POLICY_VERSION} BEGIN -->`;
3056
3078
  var POLICY_END = `<!-- synthra-policy v${POLICY_VERSION} END -->`;
3057
3079
  var ANY_BLOCK_RE = /<!--\s*synthra-policy\s+v\d+\s+BEGIN\s*-->[\s\S]*?<!--\s*synthra-policy\s+v\d+\s+END\s*-->\s*/g;
@@ -3130,14 +3152,20 @@ function policyBlock() {
3130
3152
  "### Session-end resume note",
3131
3153
  "",
3132
3154
  `When the user signals they're done (e.g. "bye", "wrap up", "done"),`,
3133
- "proactively update `.synthra/CONTEXT.md` with:",
3155
+ "persist the resume state by calling `context_remember` once per bullet.",
3156
+ "Synthra re-renders `.synthra/CONTEXT.md` from those entries at session",
3157
+ "end \u2014 do **NOT** write to `CONTEXT.md` directly, it is a derived view",
3158
+ "and direct edits are overwritten by the Stop hook.",
3134
3159
  "",
3135
- "- **Current Task**: one sentence on what was being worked on",
3136
- "- **Key Decisions**: bullet list, max 3 items",
3137
- "- **Next Steps**: bullet list, max 3 items",
3160
+ "Use these `kind` values:",
3138
3161
  "",
3139
- "Keep `CONTEXT.md` under 20 lines total. Don't summarise the conversation",
3140
- "\u2014 write only what's needed to resume next session.",
3162
+ '- **`kind: "task"`** \u2014 what is being worked on right now (1 entry)',
3163
+ '- **`kind: "decision"`** \u2014 non-obvious choices made this session (max 3)',
3164
+ '- **`kind: "next"`** \u2014 concrete next steps (max 3)',
3165
+ "",
3166
+ 'Tag entries with the relevant area (`tags: ["auth"]`) and the files',
3167
+ 'they touch (`files: ["src/auth.ts"]`) so later `context_recall` queries',
3168
+ "can filter. Keep each `text` to 1\u20132 sentences.",
3141
3169
  "",
3142
3170
  "_This block is managed by Synthra. Edits inside the BEGIN/END markers",
3143
3171
  "are overwritten on every `syn .` run._",