behavior-wrapped 0.8.10 → 0.8.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "behavior-wrapped",
3
- "version": "0.8.10",
3
+ "version": "0.8.11",
4
4
  "description": "A private, local-first Wrapped report for Claude Code, Cowork, and Codex behavior.",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -87,9 +87,10 @@ function repeatedInstructions(sessionRecords) {
87
87
  for (let sessionIndex = 0; sessionIndex < sessionRecords.length; sessionIndex++) {
88
88
  for (const record of sessionRecords[sessionIndex].records) {
89
89
  if (record.type !== "user" || record.isMeta) continue;
90
- const cleaned = redactAggregateText(proseText(visibleText(record)));
90
+ const cleaned = redactAggregateText(proseText(localOpeningPrompt(visibleText(record))));
91
91
  if (!cleaned || /\[(?:REDACTED|REMOVED)[^\]]*\]/i.test(cleaned)) continue;
92
92
  for (const rawClause of cleaned.split(/(?<=[.!?])\s+|[;\n]+/)) {
93
+ if (/\*\*[^*\n]{2,80}:\*\*/.test(rawClause)) continue;
93
94
  const instruction = rawClause.replace(/^[-*\d.)\s]+/, "").replace(/\s+/g, " ").trim();
94
95
  const words = instruction.match(/\p{L}+(?:['’]\p{L}+)?/gu) || [];
95
96
  if (words.length < 3 || words.length > 18 || instruction.length > 160 || !instructionOpeningPattern.test(instruction)) continue;
@@ -74,7 +74,7 @@ function isSshIdentity(match, offset, source) {
74
74
  return localPart === "git" || /ssh:\/\/$/i.test(before) || after === ":";
75
75
  }
76
76
 
77
- const NON_PERSON_WORDS = new Set("agent assistant user system model tool team claude zulip github person someone anyone everyone nobody only the this that new latest direct explicit online private prior session status handoff instruction instructions message messages ping pings task work context state directory window".split(" "));
77
+ const NON_PERSON_WORDS = new Set("agent assistant user system model tool team claude zulip github person someone anyone everyone nobody being only the this that new latest direct explicit online private prior session status handoff instruction instructions message messages ping pings task work context state directory window".split(" "));
78
78
 
79
79
  function replaceLikelyPersonNames(value) {
80
80
  return String(value)