@apart-tech/apart-intelligence 0.1.0 → 1.0.0

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.
Files changed (3) hide show
  1. package/README.md +134 -0
  2. package/dist/index.js +1 -1
  3. package/package.json +10 -10
package/README.md ADDED
@@ -0,0 +1,134 @@
1
+ # Apart Intelligence
2
+
3
+ A knowledge graph for institutional knowledge. AI writes. AI reads. Humans curate. The graph grows as agents work.
4
+
5
+ Apart Intelligence captures decisions, processes, policies, and architecture as interconnected nodes — so your team's knowledge compounds instead of getting lost in Slack threads and stale wikis.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ npm install -g @apart-tech/apart-intelligence
11
+ ```
12
+
13
+ Or run directly:
14
+
15
+ ```bash
16
+ npx @apart-tech/apart-intelligence --help
17
+ ```
18
+
19
+ ## Quick Start
20
+
21
+ ### Option A: Connect to a hosted server
22
+
23
+ ```bash
24
+ ai login https://your-server.run.app
25
+ ai init
26
+ ```
27
+
28
+ ### Option B: Use a local PostgreSQL database
29
+
30
+ Prerequisites: PostgreSQL 16+ with the `pgvector` extension.
31
+
32
+ ```bash
33
+ ai init
34
+ # Follow the prompts to configure your database and OpenAI API key
35
+ ```
36
+
37
+ ## Commands
38
+
39
+ ### Core
40
+
41
+ | Command | Description |
42
+ |---------|-------------|
43
+ | `ai add <content>` | Add a knowledge node (decision, process, policy, etc.) |
44
+ | `ai search <query>` | Hybrid semantic + keyword search |
45
+ | `ai context <query>` | Assemble a context package for a topic |
46
+ | `ai get <id>` | Get a node by ID with its edges |
47
+ | `ai update <id>` | Update a node's content or metadata |
48
+ | `ai delete <id>` | Delete a node or edge |
49
+
50
+ ### Organization
51
+
52
+ | Command | Description |
53
+ |---------|-------------|
54
+ | `ai link <source> <target>` | Link two nodes with a relationship |
55
+ | `ai status <id> <status>` | Set node status (draft/reviewed/approved/archived) |
56
+ | `ai drafts` | List nodes pending curation |
57
+ | `ai types` | List all node and relationship types in use |
58
+ | `ai domains` | Manage knowledge domains |
59
+
60
+ ### Graph Quality
61
+
62
+ | Command | Description |
63
+ |---------|-------------|
64
+ | `ai health` | Comprehensive graph health report |
65
+ | `ai orphans` | Find nodes with no connections |
66
+ | `ai duplicates` | Find near-duplicate nodes by embedding similarity |
67
+ | `ai suggest-links` | Suggest missing links based on similarity |
68
+ | `ai islands` | Detect disconnected clusters |
69
+ | `ai validate` | Validate edge integrity and detect issues |
70
+ | `ai normalize` | Analyze and normalize relationship types |
71
+
72
+ ### Codebase Mapping
73
+
74
+ | Command | Description |
75
+ |---------|-------------|
76
+ | `ai map [directory]` | Map a codebase into the knowledge graph |
77
+ | `ai graph` | Generate an interactive HTML visualization |
78
+
79
+ ### Auth & Config
80
+
81
+ | Command | Description |
82
+ |---------|-------------|
83
+ | `ai init` | Set up Apart Intelligence in the current directory |
84
+ | `ai login [url]` | Log in to an Apart Intelligence server |
85
+ | `ai logout` | Log out from the server |
86
+ | `ai whoami` | Show current login info |
87
+
88
+ ## Examples
89
+
90
+ ```bash
91
+ # Capture a decision
92
+ ai add "We chose Hono over Express for the API server because it's lightweight \
93
+ and has native TypeScript support" --type decision --title "Use Hono for API"
94
+
95
+ # Search for knowledge
96
+ ai search "API framework"
97
+
98
+ # Get context for an AI agent
99
+ ai context "onboarding process" --max-nodes 20
100
+
101
+ # Map your codebase
102
+ ai map ./src --domain engineering/backend
103
+
104
+ # Review and approve drafts
105
+ ai drafts
106
+ ai status <node-id> approved
107
+
108
+ # Visualize the knowledge graph
109
+ ai graph --open
110
+ ```
111
+
112
+ ## Claude Code Integration
113
+
114
+ Apart Intelligence ships with Claude Code skills for capturing knowledge as a natural byproduct of development:
115
+
116
+ | Skill | Description |
117
+ |-------|-------------|
118
+ | `/capture <text>` | Quick-capture a decision, process, or knowledge node |
119
+ | `/document [path]` | Analyze recent changes, generate documentation nodes |
120
+ | `/sync [range]` | Incremental knowledge graph update from git diff |
121
+
122
+ Copy the `.claude/` directory from the [repository](https://github.com/aleksander-apart/the-collective) to your project to enable these skills.
123
+
124
+ ## Architecture
125
+
126
+ Apart Intelligence uses a PostgreSQL database with `pgvector` for semantic search and `tsvector` for keyword search. Nodes are embedded using OpenAI's embedding model and connected via typed, weighted edges.
127
+
128
+ Two modes of operation:
129
+ - **Direct mode** — connects to PostgreSQL directly (for local development or self-hosted)
130
+ - **API mode** — connects to a hosted Apart Intelligence server (via `ai login`)
131
+
132
+ ## License
133
+
134
+ MIT
package/dist/index.js CHANGED
@@ -29,7 +29,7 @@ const program = new Command();
29
29
  program
30
30
  .name("ai")
31
31
  .description("Apart Intelligence — the knowledge graph for your company")
32
- .version("0.1.0");
32
+ .version("1.0.0");
33
33
  // Register commands
34
34
  addCommand(program);
35
35
  searchCommand(program);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@apart-tech/apart-intelligence",
3
- "version": "0.1.0",
3
+ "version": "1.0.0",
4
4
  "description": "Apart Intelligence — the knowledge graph CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -12,20 +12,14 @@
12
12
  "publishConfig": {
13
13
  "access": "public"
14
14
  },
15
- "scripts": {
16
- "build": "tsc",
17
- "dev": "tsc --watch",
18
- "lint": "tsc --noEmit",
19
- "test": "vitest run"
20
- },
21
15
  "dependencies": {
22
16
  "@prisma/client": "^6.6.0",
23
17
  "@prisma/extension-accelerate": "^3.0.1",
24
- "@apart-tech/intelligence-core": "workspace:*",
25
18
  "chalk": "^5.4.0",
26
19
  "commander": "^13.0.0",
27
20
  "prompts": "^2.4.2",
28
- "yaml": "^2.6.0"
21
+ "yaml": "^2.6.0",
22
+ "@apart-tech/intelligence-core": "1.0.0"
29
23
  },
30
24
  "devDependencies": {
31
25
  "@types/node": "^25.5.0",
@@ -33,5 +27,11 @@
33
27
  "dotenv": "^17.3.1",
34
28
  "typescript": "^5.7.0",
35
29
  "vitest": "^3.0.0"
30
+ },
31
+ "scripts": {
32
+ "build": "tsc",
33
+ "dev": "tsc --watch",
34
+ "lint": "tsc --noEmit",
35
+ "test": "vitest run"
36
36
  }
37
- }
37
+ }