zam-core 0.3.5 → 0.3.7
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/.agent/skills/zam/SKILL.md +7 -2
- package/.agents/skills/zam/SKILL.md +9 -3
- package/.claude/skills/zam/SKILL.md +38 -3
- package/dist/cli/index.js +410 -373
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +47 -9
- package/dist/index.js +224 -110
- package/dist/index.js.map +1 -1
- package/package.json +21 -3
- package/templates/personal/README.md +31 -0
- package/templates/personal/beliefs/README.md +19 -0
- package/templates/personal/goals/README.md +19 -0
- package/templates/personal/package.json +9 -0
package/package.json
CHANGED
|
@@ -1,13 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zam-core",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7",
|
|
4
4
|
"description": "The Symbiotic Learning Kernel: Elevating Human Intelligence through AI Collaboration.",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"engines": {
|
|
7
|
+
"node": ">=22"
|
|
8
|
+
},
|
|
9
|
+
"main": "dist/index.js",
|
|
10
|
+
"types": "dist/index.d.ts",
|
|
11
|
+
"exports": {
|
|
12
|
+
".": {
|
|
13
|
+
"types": "./dist/index.d.ts",
|
|
14
|
+
"import": "./dist/index.js"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
6
17
|
"files": [
|
|
7
18
|
"dist/",
|
|
8
19
|
".claude/skills/zam/",
|
|
9
20
|
".agent/skills/zam/",
|
|
10
21
|
".agents/skills/zam/",
|
|
22
|
+
"templates/personal/",
|
|
11
23
|
"README.md",
|
|
12
24
|
"LICENSE"
|
|
13
25
|
],
|
|
@@ -20,8 +32,10 @@
|
|
|
20
32
|
"dev": "tsx src/cli/index.ts",
|
|
21
33
|
"test": "vitest run",
|
|
22
34
|
"test:watch": "vitest",
|
|
35
|
+
"typecheck": "tsc --noEmit",
|
|
23
36
|
"lint": "biome check src/",
|
|
24
|
-
"format": "biome format --write src/"
|
|
37
|
+
"format": "biome format --write src/",
|
|
38
|
+
"desktop:prepare": "node scripts/prepare-desktop-bridge.mjs"
|
|
25
39
|
},
|
|
26
40
|
"repository": {
|
|
27
41
|
"type": "git",
|
|
@@ -42,12 +56,16 @@
|
|
|
42
56
|
"homepage": "https://github.com/zam-os/zam#readme",
|
|
43
57
|
"dependencies": {
|
|
44
58
|
"@inquirer/prompts": "^8.3.2",
|
|
59
|
+
"better-sqlite3": "^12.10.0",
|
|
45
60
|
"commander": "^14.0.3",
|
|
46
|
-
"libsql": "^0.5.29",
|
|
47
61
|
"ulid": "^3.0.2"
|
|
48
62
|
},
|
|
63
|
+
"optionalDependencies": {
|
|
64
|
+
"libsql": "^0.5.29"
|
|
65
|
+
},
|
|
49
66
|
"devDependencies": {
|
|
50
67
|
"@biomejs/biome": "^2.4.8",
|
|
68
|
+
"@types/better-sqlite3": "^7.6.13",
|
|
51
69
|
"@types/node": "^25.5.0",
|
|
52
70
|
"tsup": "^8.5.1",
|
|
53
71
|
"tsx": "^4.21.0",
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
# Your ZAM Personal Kernel
|
|
2
|
+
|
|
3
|
+
This is your personal ZAM repository. Fork it, make it yours, and start ZAM from here.
|
|
4
|
+
|
|
5
|
+
## What lives here
|
|
6
|
+
|
|
7
|
+
- **`beliefs/`** — Your personal worldview. What you hold to be true. The ZAM agent will propose changes through conversation; you approve them by committing.
|
|
8
|
+
- **`goals/`** — Your personal objectives. High-level goals decompose into tasks and learning tokens. Maintained collaboratively with the ZAM agent.
|
|
9
|
+
|
|
10
|
+
## Getting started
|
|
11
|
+
|
|
12
|
+
1. Fork this repository into your own account (e.g. `YourName/zam-personal`).
|
|
13
|
+
2. Install ZAM: `npm install -g zam`
|
|
14
|
+
3. Initialize the database: `zam init`
|
|
15
|
+
4. Set your identity: `zam whoami --set <your-id>`
|
|
16
|
+
5. Start a session: `zam session start --task "my first task"`
|
|
17
|
+
|
|
18
|
+
## How it works
|
|
19
|
+
|
|
20
|
+
Your personal repo holds the slow-changing parts of your ZAM experience: beliefs and goals. These are markdown files tracked in git. The git history is your approval trail — every committed change represents a conscious decision.
|
|
21
|
+
|
|
22
|
+
Fast-changing data (learning tokens, cards, review history, sessions) lives in the ZAM database at `~/.zam/zam.db`.
|
|
23
|
+
|
|
24
|
+
The core learning kernel lives in [`zam-os/zam`](https://github.com/zam-os/zam). It provides the CLI, the FSRS scheduler, the bridge protocol, and all the learning science. This repo provides *your* context.
|
|
25
|
+
|
|
26
|
+
## Beliefs vs. Goals
|
|
27
|
+
|
|
28
|
+
- **Beliefs** are premises — things you hold to be true. They guide how you interpret the world and how the ZAM agent interacts with you.
|
|
29
|
+
- **Goals** are intentions — things you want to achieve. They decompose into tasks, which surface learning opportunities.
|
|
30
|
+
|
|
31
|
+
Both evolve through conversation with the ZAM agent. Both require your explicit approval (a git commit) to take effect.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# My Beliefs
|
|
2
|
+
|
|
3
|
+
This folder captures what you hold to be true. These are not facts — they are your current understanding of the world. They will evolve as you learn and grow.
|
|
4
|
+
|
|
5
|
+
The ZAM agent reads these beliefs to understand your perspective. When new evidence or insight challenges a belief, the agent will propose a change through conversation. You approve changes by committing them.
|
|
6
|
+
|
|
7
|
+
## Structure
|
|
8
|
+
|
|
9
|
+
Each subfolder holds a belief and decomposes it into at most 7 components (Miller's number). Follow the same pattern as the [core beliefs](https://github.com/zam-os/zam/tree/main/beliefs).
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
You might start with beliefs about your professional domain:
|
|
14
|
+
|
|
15
|
+
- **Software quality** — Readable code matters more than clever code.
|
|
16
|
+
- **Learning** — Spaced repetition is the most effective way to retain technical knowledge.
|
|
17
|
+
- **Collaboration** — Pair programming produces better results than solo work for complex problems.
|
|
18
|
+
|
|
19
|
+
Create a subfolder for each belief. Write a `README.md` that states the belief and decomposes it.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# My Goals
|
|
2
|
+
|
|
3
|
+
This folder captures what you want to achieve. Goals are intentions that decompose into actionable tasks and learning opportunities.
|
|
4
|
+
|
|
5
|
+
The ZAM agent reads these goals to suggest tasks and prioritize your learning queue. When you complete a goal or your priorities shift, the agent will propose updates. You approve changes by committing them.
|
|
6
|
+
|
|
7
|
+
## Structure
|
|
8
|
+
|
|
9
|
+
Each subfolder holds a goal and decomposes it into at most 7 sub-goals or milestones (Miller's number). The hierarchy is:
|
|
10
|
+
|
|
11
|
+
**Goals** (markdown, here) -> **Tasks** (task connector) -> **Tokens** (database)
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
- **Master backend architecture** — Understand the full request lifecycle, from HTTP handler to database query, in the system I work on.
|
|
16
|
+
- **Run a 10K** — Build running endurance over the next 3 months through progressive training.
|
|
17
|
+
- **Learn conversational Spanish** — Reach B1 level by practicing 20 minutes daily with spaced repetition.
|
|
18
|
+
|
|
19
|
+
Create a subfolder for each goal. Write a `README.md` that states the goal and breaks it down.
|