clawvault 2.1.1 → 2.1.2

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.
@@ -1,9 +1,9 @@
1
1
  // src/observer/compressor.ts
2
2
  var DATE_HEADING_RE = /^##\s+(\d{4}-\d{2}-\d{2})\s*$/;
3
3
  var OBSERVATION_LINE_RE = /^(🔴|🟡|🟢)\s+(.+)$/u;
4
- var CRITICAL_RE = /(?:\b(?:decision|decided|chose|chosen|selected|picked|opted|switched to)\s*:?|\bdecid(?:e|ed|ing|ion)\b|\berror\b|\bfail(?:ed|ure|ing)?\b|\bblock(?:ed|er)?\b|\bbreaking(?:\s+change)?s?\b|\bcritical\b|\b\w+\s+chosen\s+(?:for|over|as)\b|\bpublish(?:ed)?\b.*@?\d+\.\d+|\bmerge[d]?\s+(?:PR|pull\s+request)\b|\bshipped\b|\breleased?\b.*v?\d+\.\d+)/i;
4
+ var CRITICAL_RE = /(?:\b(?:decision|decided|chose|chosen|selected|picked|opted|switched to)\s*:?|\bdecid(?:e|ed|ing|ion)\b|\berror\b|\bfail(?:ed|ure|ing)?\b|\bblock(?:ed|er)?\b|\bbreaking(?:\s+change)?s?\b|\bcritical\b|\b\w+\s+chosen\s+(?:for|over|as)\b|\bpublish(?:ed)?\b.*@?\d+\.\d+|\bmerge[d]?\s+(?:PR|pull\s+request)\b|\bshipped\b|\breleased?\b.*v?\d+\.\d+|\bsigned\b.*\b(?:contract|agreement|deal)\b|\bpricing\b.*\$|\bdemo\b.*\b(?:completed?|done|finished)\b|\bmeeting\b.*\b(?:completed?|done|finished)\b|\bstrategy\b.*\b(?:pivot|change|shift)\b)/i;
5
5
  var DEADLINE_WITH_DATE_RE = /(?:(?:\bdeadline\b|\bdue(?:\s+date)?\b|\bcutoff\b).*(?:\d{4}-\d{2}-\d{2}|\d{1,2}\/\d{1,2}(?:\/\d{2,4})?|(?:jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)[a-z]*\s+\d{1,2})|(?:\d{4}-\d{2}-\d{2}|\d{1,2}\/\d{1,2}(?:\/\d{2,4})?|(?:jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)[a-z]*\s+\d{1,2}).*(?:\bdeadline\b|\bdue(?:\s+date)?\b|\bcutoff\b))/i;
6
- var NOTABLE_RE = /\b(prefer(?:ence|s)?|likes?|dislikes?|context|pattern|architecture|approach|trade[- ]?off|milestone|stakeholder|teammate|collaborat(?:e|ed|ion)|discussion|notable|deadline|due|timeline|deploy(?:ed|ment)?|built|configured|launched)\b/i;
6
+ var NOTABLE_RE = /\b(prefer(?:ence|s)?|likes?|dislikes?|context|pattern|architecture|approach|trade[- ]?off|milestone|stakeholder|teammate|collaborat(?:e|ed|ion)|discussion|notable|deadline|due|timeline|deploy(?:ed|ment)?|built|configured|launched|proposal|pitch|onboard(?:ed|ing)?|migrat(?:e|ed|ion)|domain|DNS|infra(?:structure)?)\b/i;
7
7
  var Compressor = class {
8
8
  model;
9
9
  now;
@@ -55,8 +55,8 @@ var Compressor = class {
55
55
  "- Group observations by date heading: ## YYYY-MM-DD",
56
56
  "- Each line must follow: <emoji> <HH:MM> <observation>",
57
57
  "- Priority emojis: \u{1F534} critical, \u{1F7E1} notable, \u{1F7E2} info",
58
- "- \u{1F534} for: decisions between alternatives, blockers, deadlines with explicit dates, breaking changes, commitments made to people, version releases/publishes, merged PRs, shipped features",
59
- "- \u{1F7E1} for: preferences, architecture discussions, trade-offs, milestones, people interactions, notable context, deployments to production, new tools/commands built, project configuration changes",
58
+ "- \u{1F534} for: decisions, blockers, deadlines, breaking changes, commitments to people, version releases, merged PRs, shipped features, client meetings/demos, pricing/contract decisions, strategy changes, signed agreements",
59
+ "- \u{1F7E1} for: preferences, architecture discussions, trade-offs, milestones, people interactions, notable context, production deploys, new tools built, config changes, proposals sent, content published, infrastructure changes",
60
60
  "- \u{1F7E2} for: routine tasks, intermediate build steps, general progress, minor fixes",
61
61
  "- Preserve source tags when present (e.g., [main], [telegram-dm], [discord], [telegram-group]).",
62
62
  "",
@@ -73,13 +73,17 @@ var Compressor = class {
73
73
  "- If only one agent is acting, attribution is optional.",
74
74
  "",
75
75
  "PROJECT MILESTONES (critical \u2014 these are the most valuable observations):",
76
- '- Version releases: "\u{1F534} HH:MM Published project@version to npm/PyPI/etc" \u2014 ALWAYS \u{1F534}',
77
- '- PR merges: "\u{1F534} HH:MM Merged PR #N: <title> into <branch>" \u2014 ALWAYS \u{1F534}',
78
- '- Feature completion: "\u{1F534} HH:MM Shipped <feature> in <project>" \u2014 ALWAYS \u{1F534}',
79
- '- Production deploys: "\u{1F7E1} HH:MM Deployed <project> to <url>" \u2014 ALWAYS at least \u{1F7E1}',
80
- '- New commands/APIs: "\u{1F7E1} HH:MM Built <command/endpoint> for <project>"',
81
- '- Config/infra changes: "\u{1F7E1} HH:MM Changed <what> in <project> (<why>)"',
82
- "- Do NOT collapse multiple releases into one line \u2014 each version matters for history.",
76
+ "Projects are NOT just code. Milestones include business, strategy, client, and operational events.",
77
+ "- \u{1F534} ALWAYS for: version releases/publishes, PR merges, shipped features, signed contracts, pricing decisions, client meetings/demos, strategy pivots, partnership agreements, major config changes",
78
+ "- \u{1F7E1} ALWAYS for: production deploys, new tools/commands built, pitch decks sent, proposals delivered, infrastructure changes, domain/DNS changes, onboarding steps, content published (blog posts, landing pages)",
79
+ "- Examples:",
80
+ ' "\u{1F534} 14:00 Published clawvault@2.1.0 to npm with active session observer"',
81
+ ' "\u{1F534} 14:00 Artemisa demo completed \u2014 #1 pain point confirmed: quick estimates"',
82
+ ' "\u{1F534} 14:00 Pricing decision: $33K one-time + $3K/mo for Artemisa"',
83
+ ' "\u{1F534} 14:00 Merged PR #2: Active session observation into master"',
84
+ ' "\u{1F7E1} 14:00 Deployed pitch deck to artemisa-pitch-deck.vercel.app"',
85
+ ' "\u{1F7E1} 14:00 Moved docs.clawvault.dev domain to new Vercel project"',
86
+ "- Do NOT collapse multiple milestones into one line \u2014 each matters for history.",
83
87
  "",
84
88
  "COMMITMENT FORMAT (when someone promises/agrees to something):",
85
89
  '- Use: "\u{1F534} HH:MM [COMMITMENT] <who> committed to <what> by <when>" (include deadline if mentioned)',
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  Observer,
6
6
  parseSessionFile
7
- } from "./chunk-USAY3OIO.js";
7
+ } from "./chunk-5MQB7B37.js";
8
8
  import {
9
9
  resolveVaultPath
10
10
  } from "./chunk-MXSSG3QU.js";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  observeCommand,
3
3
  registerObserveCommand
4
- } from "../chunk-UPHUI5PD.js";
4
+ } from "../chunk-FEQ2CQ3Y.js";
5
5
  import "../chunk-HRLWZGMA.js";
6
- import "../chunk-USAY3OIO.js";
6
+ import "../chunk-5MQB7B37.js";
7
7
  import "../chunk-MXSSG3QU.js";
8
8
  export {
9
9
  observeCommand,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Observer,
3
3
  parseSessionFile
4
- } from "../chunk-USAY3OIO.js";
4
+ } from "../chunk-5MQB7B37.js";
5
5
  import {
6
6
  clearDirtyFlag
7
7
  } from "../chunk-MZZJLQNQ.js";
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import {
6
6
  SessionWatcher,
7
7
  observeCommand,
8
8
  registerObserveCommand
9
- } from "./chunk-UPHUI5PD.js";
9
+ } from "./chunk-FEQ2CQ3Y.js";
10
10
  import {
11
11
  buildSessionRecap,
12
12
  formatSessionRecapMarkdown,
@@ -21,7 +21,7 @@ import {
21
21
  Observer,
22
22
  Reflector,
23
23
  parseSessionFile
24
- } from "./chunk-USAY3OIO.js";
24
+ } from "./chunk-5MQB7B37.js";
25
25
  import {
26
26
  buildContext,
27
27
  contextCommand,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "clawvault",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
4
4
  "description": "ClawVault™ - 🐘 An elephant never forgets. Structured memory for OpenClaw agents. Context death resilience, Obsidian-compatible markdown, local semantic search.",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",