@drewpayment/mink 0.1.0 → 0.2.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 +191 -8
- package/dist/cli.js +87605 -0
- package/package.json +7 -3
- package/skills/mink-note/SKILL.md +131 -0
- package/src/cli.ts +46 -0
- package/src/commands/dashboard.ts +1 -1
- package/src/commands/init.ts +77 -4
- package/src/commands/note.ts +267 -0
- package/src/commands/session-start.ts +26 -0
- package/src/commands/session-stop.ts +148 -2
- package/src/commands/skill.ts +186 -0
- package/src/commands/wiki.ts +250 -0
- package/src/core/daemon.ts +2 -1
- package/src/core/dashboard-server.ts +47 -48
- package/src/core/note-index.ts +262 -0
- package/src/core/note-linker.ts +161 -0
- package/src/core/note-writer.ts +203 -0
- package/src/core/runtime.ts +214 -0
- package/src/core/vault-templates.ts +179 -0
- package/src/core/vault.ts +132 -0
- package/src/types/config.ts +7 -0
- package/src/types/note.ts +60 -0
package/src/types/config.ts
CHANGED
|
@@ -4,6 +4,7 @@ export interface GlobalConfig {
|
|
|
4
4
|
"wiki.sync-mode"?: string;
|
|
5
5
|
"wiki.git-backup"?: string;
|
|
6
6
|
"wiki.git-remote"?: string;
|
|
7
|
+
"notes.default-category"?: string;
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
export type ConfigKey = keyof GlobalConfig & string;
|
|
@@ -46,6 +47,12 @@ export const CONFIG_KEYS: ConfigKeyMeta[] = [
|
|
|
46
47
|
envVar: "MINK_WIKI_GIT_REMOTE",
|
|
47
48
|
description: "Git remote name for push",
|
|
48
49
|
},
|
|
50
|
+
{
|
|
51
|
+
key: "notes.default-category",
|
|
52
|
+
default: "inbox",
|
|
53
|
+
envVar: "MINK_NOTES_DEFAULT_CATEGORY",
|
|
54
|
+
description: "Default category for notes captured via CLI",
|
|
55
|
+
},
|
|
49
56
|
];
|
|
50
57
|
|
|
51
58
|
const VALID_KEYS = new Set<string>(CONFIG_KEYS.map((k) => k.key));
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
export type NoteCategory =
|
|
2
|
+
| "inbox"
|
|
3
|
+
| "projects"
|
|
4
|
+
| "areas"
|
|
5
|
+
| "resources"
|
|
6
|
+
| "archives";
|
|
7
|
+
|
|
8
|
+
export const NOTE_CATEGORIES: NoteCategory[] = [
|
|
9
|
+
"inbox",
|
|
10
|
+
"projects",
|
|
11
|
+
"areas",
|
|
12
|
+
"resources",
|
|
13
|
+
"archives",
|
|
14
|
+
];
|
|
15
|
+
|
|
16
|
+
export interface NoteMetadata {
|
|
17
|
+
title: string;
|
|
18
|
+
category: NoteCategory;
|
|
19
|
+
tags: string[];
|
|
20
|
+
created: string;
|
|
21
|
+
updated: string;
|
|
22
|
+
template?: string;
|
|
23
|
+
projectSlug?: string;
|
|
24
|
+
sourceProject?: string;
|
|
25
|
+
body: string;
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export interface NoteFrontmatter {
|
|
29
|
+
created: string;
|
|
30
|
+
updated: string;
|
|
31
|
+
tags: string[];
|
|
32
|
+
category: NoteCategory;
|
|
33
|
+
source_project?: string;
|
|
34
|
+
aliases?: string[];
|
|
35
|
+
[key: string]: unknown;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface VaultManifest {
|
|
39
|
+
version: number;
|
|
40
|
+
createdAt: string;
|
|
41
|
+
totalNotes: number;
|
|
42
|
+
categories: Record<NoteCategory, number>;
|
|
43
|
+
lastOrganized: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface VaultIndexEntry {
|
|
47
|
+
filePath: string;
|
|
48
|
+
title: string;
|
|
49
|
+
description: string;
|
|
50
|
+
tags: string[];
|
|
51
|
+
category: NoteCategory;
|
|
52
|
+
estimatedTokens: number;
|
|
53
|
+
lastModified: string;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export interface VaultIndex {
|
|
57
|
+
lastScanTimestamp: string;
|
|
58
|
+
totalNotes: number;
|
|
59
|
+
entries: Record<string, VaultIndexEntry>;
|
|
60
|
+
}
|