opencode-diane 0.0.5
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/CHANGELOG.md +180 -0
- package/LICENSE +21 -0
- package/README.md +206 -0
- package/WIKI.md +1430 -0
- package/dist/index.d.ts +28 -0
- package/dist/index.js +1632 -0
- package/dist/ingest/adaptive.d.ts +47 -0
- package/dist/ingest/adaptive.js +182 -0
- package/dist/ingest/code-health.d.ts +58 -0
- package/dist/ingest/code-health.js +202 -0
- package/dist/ingest/code-map.d.ts +71 -0
- package/dist/ingest/code-map.js +670 -0
- package/dist/ingest/cross-refs.d.ts +59 -0
- package/dist/ingest/cross-refs.js +1207 -0
- package/dist/ingest/docs.d.ts +49 -0
- package/dist/ingest/docs.js +325 -0
- package/dist/ingest/git.d.ts +77 -0
- package/dist/ingest/git.js +390 -0
- package/dist/ingest/live-session.d.ts +101 -0
- package/dist/ingest/live-session.js +173 -0
- package/dist/ingest/project-notes.d.ts +28 -0
- package/dist/ingest/project-notes.js +102 -0
- package/dist/ingest/project.d.ts +35 -0
- package/dist/ingest/project.js +430 -0
- package/dist/ingest/session-snapshot.d.ts +63 -0
- package/dist/ingest/session-snapshot.js +94 -0
- package/dist/ingest/sessions.d.ts +29 -0
- package/dist/ingest/sessions.js +164 -0
- package/dist/ingest/tables.d.ts +52 -0
- package/dist/ingest/tables.js +360 -0
- package/dist/mining/skill-miner.d.ts +53 -0
- package/dist/mining/skill-miner.js +234 -0
- package/dist/search/bm25.d.ts +81 -0
- package/dist/search/bm25.js +334 -0
- package/dist/search/e5-embedder.d.ts +30 -0
- package/dist/search/e5-embedder.js +91 -0
- package/dist/search/embed-pass.d.ts +26 -0
- package/dist/search/embed-pass.js +43 -0
- package/dist/search/embedder.d.ts +58 -0
- package/dist/search/embedder.js +85 -0
- package/dist/search/inverted-index.d.ts +51 -0
- package/dist/search/inverted-index.js +139 -0
- package/dist/search/ppr.d.ts +44 -0
- package/dist/search/ppr.js +118 -0
- package/dist/search/tokenize.d.ts +26 -0
- package/dist/search/tokenize.js +98 -0
- package/dist/store/eviction.d.ts +16 -0
- package/dist/store/eviction.js +37 -0
- package/dist/store/repository.d.ts +222 -0
- package/dist/store/repository.js +420 -0
- package/dist/store/sqlite-store.d.ts +89 -0
- package/dist/store/sqlite-store.js +252 -0
- package/dist/store/vector-store.d.ts +66 -0
- package/dist/store/vector-store.js +160 -0
- package/dist/types.d.ts +385 -0
- package/dist/types.js +9 -0
- package/dist/utils/file-log.d.ts +87 -0
- package/dist/utils/file-log.js +215 -0
- package/dist/utils/peer-detection.d.ts +45 -0
- package/dist/utils/peer-detection.js +90 -0
- package/dist/utils/shell.d.ts +43 -0
- package/dist/utils/shell.js +110 -0
- package/dist/utils/usage-skill.d.ts +42 -0
- package/dist/utils/usage-skill.js +129 -0
- package/dist/utils/xlsx.d.ts +36 -0
- package/dist/utils/xlsx.js +270 -0
- package/grammars/tree-sitter-c.wasm +0 -0
- package/grammars/tree-sitter-c_sharp.wasm +0 -0
- package/grammars/tree-sitter-cpp.wasm +0 -0
- package/grammars/tree-sitter-css.wasm +0 -0
- package/grammars/tree-sitter-go.wasm +0 -0
- package/grammars/tree-sitter-html.wasm +0 -0
- package/grammars/tree-sitter-java.wasm +0 -0
- package/grammars/tree-sitter-javascript.wasm +0 -0
- package/grammars/tree-sitter-json.wasm +0 -0
- package/grammars/tree-sitter-php.wasm +0 -0
- package/grammars/tree-sitter-python.wasm +0 -0
- package/grammars/tree-sitter-rust.wasm +0 -0
- package/grammars/tree-sitter-typescript.wasm +0 -0
- package/package.json +80 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* opencode-diane — OpenCode plugin entry point.
|
|
3
|
+
*
|
|
4
|
+
* A hierarchical, BM25-ranked memory store for any git repository,
|
|
5
|
+
* in any language. Pre-fills from git history (read as structure —
|
|
6
|
+
* diff shape, co-change, churn, recency, never the commit message
|
|
7
|
+
* as a signal) and from project files (recognised by name,
|
|
8
|
+
* summarised by format — JSON/TOML/YAML/etc., never by language
|
|
9
|
+
* semantics). Ingests past OpenCode sessions on demand; mines
|
|
10
|
+
* reusable SKILL.md files from recurring memory clusters.
|
|
11
|
+
* No LLM at the core, no convention assumptions; optional opt-in
|
|
12
|
+
* cross-lingual semantic search via a small multilingual e5 model.
|
|
13
|
+
*
|
|
14
|
+
* Tools exposed to the agent:
|
|
15
|
+
* memory_recall — hierarchical search over the store
|
|
16
|
+
* memory_remember — add an explicit note
|
|
17
|
+
* memory_snapshot — record this session's understanding for resume by a later session
|
|
18
|
+
* memory_outline — table of contents (counts per category)
|
|
19
|
+
* memory_status — store size, hit stats, plugin version
|
|
20
|
+
* memory_code_map — Aider-style tree-sitter signature map
|
|
21
|
+
* memory_skill — read one mined skill by name
|
|
22
|
+
* memory_ingest_sessions — pull facts from past OpenCode sessions
|
|
23
|
+
* memory_ingest_git — re-scan git history (pull/merge/rebase)
|
|
24
|
+
* memory_mine_skills — turn clusters into .opencode/skills/<x>/SKILL.md (background)
|
|
25
|
+
*/
|
|
26
|
+
import type { Plugin } from "@opencode-ai/plugin";
|
|
27
|
+
export type { BackgroundJobHandle, Category, Memory, MemoryStoreFile, RecallHit, ResolvedConfig, UserConfig, } from "./types.js";
|
|
28
|
+
export declare const OpencodeDiane: Plugin;
|