tsunami-memory 1.0.0 → 1.0.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.
package/README.md CHANGED
@@ -162,14 +162,14 @@ Memories don't exist in isolation — they form a graph. Every memory can be lin
162
162
  </div>
163
163
 
164
164
  ```bash
165
- bun install
165
+ bun add tsunami-memory
166
166
  ```
167
167
 
168
168
  ```typescript
169
169
  import {
170
170
  tsunamiAdd, tsunamiSearch,
171
171
  buildTsunamiStormCenter, formatTsunamiStormCenterText,
172
- } from './src/index.ts';
172
+ } from 'tsunami-memory';
173
173
 
174
174
  // Store a memory
175
175
  const id = await tsunamiAdd('project', 'tasks', 'Completed API refactor', 5);
@@ -383,7 +383,7 @@ import {
383
383
  buildTsunamiStormCenter, formatTsunamiStormCenterText,
384
384
  buildTsunamiExecutionGate, applyTsunamiExecutionGateToTool,
385
385
  classifyMemory,
386
- } from './src/index.ts';
386
+ } from 'tsunami-memory';
387
387
 
388
388
  const id = await tsunamiAdd('project', 'tasks', 'Completed API refactor', 5);
389
389
  const hits = await tsunamiSearch('refactor', 'project', undefined, 10);
package/README.zh-CN.md CHANGED
@@ -162,14 +162,14 @@ graph TD
162
162
  </div>
163
163
 
164
164
  ```bash
165
- bun install
165
+ bun add tsunami-memory
166
166
  ```
167
167
 
168
168
  ```typescript
169
169
  import {
170
170
  tsunamiAdd, tsunamiSearch,
171
171
  buildTsunamiStormCenter, formatTsunamiStormCenterText,
172
- } from './src/index.ts';
172
+ } from 'tsunami-memory';
173
173
 
174
174
  // 存储记忆
175
175
  const id = await tsunamiAdd('project', 'tasks', '完成了认证模块的 API 重构', 5);
@@ -379,7 +379,7 @@ import {
379
379
  buildTsunamiStormCenter, formatTsunamiStormCenterText,
380
380
  buildTsunamiExecutionGate, applyTsunamiExecutionGateToTool,
381
381
  classifyMemory,
382
- } from './src/index.ts';
382
+ } from 'tsunami-memory';
383
383
 
384
384
  const id = await tsunamiAdd('project', 'tasks', '完成认证模块重构', 5);
385
385
  const hits = await tsunamiSearch('重构', 'project', undefined, 10);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tsunami-memory",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "TSUNAMI — Bun-native oceanic memory system with basin/current flow, storm center, hot+cold retrieval, knowledge graph sync, and evidence linking.",
5
5
  "main": "src/index.ts",
6
6
  "files": [
@@ -10,10 +10,10 @@
10
10
  ],
11
11
  "repository": {
12
12
  "type": "git",
13
- "url": "git+https://github.com/tsunami-memory/tsunami.git"
13
+ "url": "git+https://github.com/lilShawtty-byte/Tsunami-Memory.git"
14
14
  },
15
15
  "bugs": {
16
- "url": "https://github.com/tsunami-memory/tsunami/issues"
16
+ "url": "https://github.com/lilShawtty-byte/Tsunami-Memory/issues"
17
17
  },
18
18
  "type": "module",
19
19
  "scripts": {
@@ -1,5 +1,6 @@
1
1
  // Storm center — supporting basin analysis
2
2
  import { classifyTsunamiText } from '../tsunami_classifier';
3
+ import type { DurableRecoveryRecord } from '../runtime/checkpoints/durable_recovery';
3
4
  import type { TsunamiStormCenter } from './types';
4
5
 
5
6
  export function buildSupportingBasins(input: {
@@ -1,4 +1,5 @@
1
1
  import type { TsunamiStormPressure, TsunamiStormReadiness, TsunamiStormCenterStormMode, TsunamiStormBoundary } from './types';
2
+ import type { TsunamiStormCenter } from './types';
2
3
 
3
4
  export function buildStormBoundary(input: {
4
5
  stormPressure?: TsunamiStormPressure;
@@ -1,4 +1,5 @@
1
1
  import type { TsunamiStormPressure, TsunamiStormCenterStormMode, TsunamiStormDirective, TsunamiStormAction } from './types';
2
+ import type { TsunamiStormCenter } from './types';
2
3
 
3
4
  export function buildStormDirective(input: {
4
5
  stormPressure?: TsunamiStormPressure;
@@ -4,7 +4,14 @@ import { basename, join } from 'node:path';
4
4
  import { listProjectWikiPages } from '../core/project_state';
5
5
  import type { ProjectHandoffRecord, ProjectTaskThread } from '../core/project_state';
6
6
  import type { DurableRecoveryRecord } from '../runtime/checkpoints/durable_recovery';
7
- import type { TsunamiStormCenterCurrent } from './types';
7
+ import type { TsunamiStormCenterCurrent, TsunamiStormCenter } from './types';
8
+
9
+ type TsunamiFallbackDocSupport = {
10
+ anchors: TsunamiStormCenter['anchors'];
11
+ evidence: TsunamiStormCenter['evidence'];
12
+ mainlineTitle?: string;
13
+ mainlineSummary?: string;
14
+ };
8
15
 
9
16
  const TSUNAMI_STORM_RETRY_DELAYS_MS = [8, 18, 36] as const;
10
17
 
@@ -1,4 +1,5 @@
1
1
  import type { TsunamiStormPressure, TsunamiStormReadiness, TsunamiStormBoundary, TsunamiStormCenterStormMode, TsunamiStormHorizon } from './types';
2
+ import type { TsunamiStormCenter } from './types';
2
3
 
3
4
  export function buildStormHorizon(input: {
4
5
  stormPressure?: TsunamiStormPressure;
@@ -1,4 +1,6 @@
1
1
  import type { TsunamiStormCenterCurrentMix, TsunamiStormCenterStormMode, TsunamiStormPressure } from './types';
2
+ import type { TsunamiStormCenter } from './types';
3
+ import type { DurableRecoveryRecord } from '../runtime/checkpoints/durable_recovery';
2
4
 
3
5
  export function buildStormPressure(input: {
4
6
  currentMix: TsunamiStormCenterCurrentMix[];
@@ -1,4 +1,5 @@
1
- import type { TsunamiStormReadiness } from './types';
1
+ import type { DurableRecoveryRecord } from '../runtime/checkpoints/durable_recovery';
2
+ import type { TsunamiStormReadiness, TsunamiStormCenter } from './types';
2
3
 
3
4
  export function buildStormReadiness(input: {
4
5
  hasMainline: boolean;
@@ -1,5 +1,7 @@
1
1
  // Storm center — signal analysis
2
2
  import { clampEnergy, safeTrim, buildProjectNode, buildTaskThreadNode, buildHandoffNode, buildAnchorNode, buildRecoveryNode } from './helpers';
3
+ import type { ProjectTaskThread, ProjectHandoffRecord } from '../core/project_state';
4
+ import type { DurableRecoveryRecord } from '../runtime/checkpoints/durable_recovery';
3
5
  import type { StormCurrentKind, TsunamiStormCenterCurrent, TsunamiStormCenterCurrentMix, TsunamiStormCenter } from './types';
4
6
 
5
7
  export function buildCurrents(input: {
@@ -3,6 +3,12 @@ import type { ProjectHandoffRecord, ProjectTaskThread } from '../core/project_st
3
3
  import type { DurableRecoveryRecord } from '../runtime/checkpoints/durable_recovery';
4
4
  import type { TsunamiRuntimeGraphSyncSummary } from '../tsunami_runtime_graph_sync';
5
5
 
6
+ // Forward-declare return types used in TsunamiStormCenter — these are stubs
7
+ // since the real implementations live in stub modules; this keeps types.ts clean.
8
+ type WikiEvidenceSnippet = { snippetId: string; pageId: string; title: string; sourcePath?: string; sourceRef?: string; quote: string; tags: string[] };
9
+ type MemoryIssue = { code: string; severity?: string; detail?: string };
10
+ type MemoryRepairSuggestion = { title: string; priority?: string; detail?: string };
11
+
6
12
  export type BuildStormCenterOpts = {
7
13
  projectDir?: string;
8
14
  query?: string;
@@ -13,7 +19,7 @@ export type BuildStormCenterOpts = {
13
19
  relationLimit?: number;
14
20
  };
15
21
 
16
- type StormCurrentKind =
22
+ export type StormCurrentKind =
17
23
  | 'primary_thread'
18
24
  | 'handoff'
19
25
  | 'anchor'
@@ -169,7 +175,7 @@ export type TsunamiStormCenter = {
169
175
  confidence: number;
170
176
  tags: string[];
171
177
  }>;
172
- evidence: ReturnType<typeof queryProjectWiki>['evidence'];
178
+ evidence: WikiEvidenceSnippet[];
173
179
  graph: {
174
180
  project: Record<string, unknown>[];
175
181
  thread: Record<string, unknown>[];
@@ -177,8 +183,8 @@ export type TsunamiStormCenter = {
177
183
  anchor: Record<string, unknown>[];
178
184
  recovery: Record<string, unknown>[];
179
185
  };
180
- issues: ReturnType<typeof auditMemoryFabric>['issues'];
181
- repairSuggestions: ReturnType<typeof auditMemoryFabric>['repairSuggestions'];
186
+ issues: MemoryIssue[];
187
+ repairSuggestions: MemoryRepairSuggestion[];
182
188
  currents: TsunamiStormCenterCurrent[];
183
189
  currentMix: TsunamiStormCenterCurrentMix[];
184
190
  stormMode?: TsunamiStormCenterStormMode;