rig-constellation 0.1.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 (66) hide show
  1. package/LICENSE +201 -0
  2. package/LICENSE-CODEGRAPH.txt +27 -0
  3. package/NOTICE +15 -0
  4. package/README.md +121 -0
  5. package/dist/chunk-8sqjbsgt.js +42 -0
  6. package/dist/chunk-9754b9t6.js +70 -0
  7. package/dist/chunk-arpj39jd.js +10 -0
  8. package/dist/chunk-bnz0drs2.js +10 -0
  9. package/dist/chunk-hk4h7yej.js +71 -0
  10. package/dist/rig.js +11708 -0
  11. package/generated/.manifest +57 -0
  12. package/generated/core/anchors-registry.ts +70 -0
  13. package/generated/core/migrations.ts +79 -0
  14. package/generated/core/schema.sql +241 -0
  15. package/generated/installer/claude.instructions.md +345 -0
  16. package/generated/installer/claude.permissions.json +44 -0
  17. package/generated/installer/codex.instructions.md +345 -0
  18. package/generated/installer/codex.permissions.json +44 -0
  19. package/generated/installer/cursor.instructions.md +345 -0
  20. package/generated/installer/cursor.permissions.json +44 -0
  21. package/generated/installer/opencode.instructions.md +345 -0
  22. package/generated/installer/opencode.permissions.json +44 -0
  23. package/generated/installer/openrouter.instructions.md +345 -0
  24. package/generated/installer/openrouter.permissions.json +44 -0
  25. package/generated/mcp/handlers/rig_add_alias.handler.ts +34 -0
  26. package/generated/mcp/handlers/rig_add_node.handler.ts +34 -0
  27. package/generated/mcp/handlers/rig_aliases.handler.ts +25 -0
  28. package/generated/mcp/handlers/rig_annotate.handler.ts +34 -0
  29. package/generated/mcp/handlers/rig_callees.handler.ts +25 -0
  30. package/generated/mcp/handlers/rig_callers.handler.ts +25 -0
  31. package/generated/mcp/handlers/rig_chain.handler.ts +25 -0
  32. package/generated/mcp/handlers/rig_cluster.handler.ts +34 -0
  33. package/generated/mcp/handlers/rig_cold.handler.ts +25 -0
  34. package/generated/mcp/handlers/rig_context.handler.ts +29 -0
  35. package/generated/mcp/handlers/rig_critical_path.handler.ts +25 -0
  36. package/generated/mcp/handlers/rig_dep_conflicts.handler.ts +25 -0
  37. package/generated/mcp/handlers/rig_deps.handler.ts +25 -0
  38. package/generated/mcp/handlers/rig_drill.handler.ts +25 -0
  39. package/generated/mcp/handlers/rig_drop_waypoint.handler.ts +34 -0
  40. package/generated/mcp/handlers/rig_explore.handler.ts +29 -0
  41. package/generated/mcp/handlers/rig_files.handler.ts +25 -0
  42. package/generated/mcp/handlers/rig_focus.handler.ts +29 -0
  43. package/generated/mcp/handlers/rig_hotspots.handler.ts +25 -0
  44. package/generated/mcp/handlers/rig_hub_of.handler.ts +25 -0
  45. package/generated/mcp/handlers/rig_hubs.handler.ts +25 -0
  46. package/generated/mcp/handlers/rig_impact.handler.ts +25 -0
  47. package/generated/mcp/handlers/rig_neighbors.handler.ts +25 -0
  48. package/generated/mcp/handlers/rig_node.handler.ts +25 -0
  49. package/generated/mcp/handlers/rig_phantom_imports.handler.ts +25 -0
  50. package/generated/mcp/handlers/rig_promote.handler.ts +34 -0
  51. package/generated/mcp/handlers/rig_propose_edge.handler.ts +34 -0
  52. package/generated/mcp/handlers/rig_pull.handler.ts +25 -0
  53. package/generated/mcp/handlers/rig_relevant_skills.handler.ts +25 -0
  54. package/generated/mcp/handlers/rig_search.handler.ts +25 -0
  55. package/generated/mcp/handlers/rig_session_token.handler.ts +25 -0
  56. package/generated/mcp/handlers/rig_status.handler.ts +25 -0
  57. package/generated/mcp/handlers/rig_subscribe.handler.ts +25 -0
  58. package/generated/mcp/handlers/rig_undo.handler.ts +29 -0
  59. package/generated/mcp/handlers/rig_unused_deps.handler.ts +25 -0
  60. package/generated/mcp/handlers/rig_waypoints.handler.ts +25 -0
  61. package/generated/mcp/handlers-index.ts +40 -0
  62. package/generated/mcp/tools-manifest.json +2958 -0
  63. package/generated/web/ws-events.ts +237 -0
  64. package/package.json +77 -0
  65. package/packages/web/dist/assets/index-VRO-sxc2.js +54 -0
  66. package/packages/web/dist/index.html +35 -0
@@ -0,0 +1,237 @@
1
+ // GENERATED FILE — DO NOT EDIT.
2
+ // Source: .contracts/events/alias-added.contract.ts, .contracts/events/edge-accepted.contract.ts, .contracts/events/edge-proposed.contract.ts, .contracts/events/edge-rejected.contract.ts, .contracts/events/focus-requested.contract.ts, .contracts/events/index-progress.contract.ts, .contracts/events/node-added.contract.ts, .contracts/events/node-promoted.contract.ts, .contracts/events/selection-changed.contract.ts
3
+ // Edit the .contract.ts file(s), then run `bun run gen`.
4
+
5
+ // alias:added
6
+ // payload (JSON Schema):
7
+ // {
8
+ // "type": "object",
9
+ // "properties": {
10
+ // "node_id": {
11
+ // "type": "string"
12
+ // },
13
+ // "alias": {
14
+ // "type": "string"
15
+ // }
16
+ // },
17
+ // "required": [
18
+ // "node_id",
19
+ // "alias"
20
+ // ],
21
+ // "additionalProperties": false,
22
+ // "$schema": "http://json-schema.org/draft-07/schema#"
23
+ // }
24
+
25
+ // edge:accepted
26
+ // payload (JSON Schema):
27
+ // {
28
+ // "type": "object",
29
+ // "properties": {
30
+ // "pending_id": {
31
+ // "type": "integer"
32
+ // },
33
+ // "src": {
34
+ // "type": "string"
35
+ // },
36
+ // "dst": {
37
+ // "type": "string"
38
+ // }
39
+ // },
40
+ // "required": [
41
+ // "pending_id",
42
+ // "src",
43
+ // "dst"
44
+ // ],
45
+ // "additionalProperties": false,
46
+ // "$schema": "http://json-schema.org/draft-07/schema#"
47
+ // }
48
+
49
+ // edge:proposed
50
+ // payload (JSON Schema):
51
+ // {
52
+ // "type": "object",
53
+ // "properties": {
54
+ // "pending_id": {
55
+ // "type": "integer"
56
+ // },
57
+ // "src": {
58
+ // "type": "string"
59
+ // },
60
+ // "dst": {
61
+ // "type": "string"
62
+ // },
63
+ // "kind": {
64
+ // "type": "string"
65
+ // },
66
+ // "weight": {
67
+ // "type": "number"
68
+ // },
69
+ // "provenance": {
70
+ // "type": "string"
71
+ // },
72
+ // "rationale": {
73
+ // "type": "string"
74
+ // },
75
+ // "proposed_at": {
76
+ // "type": "integer"
77
+ // }
78
+ // },
79
+ // "required": [
80
+ // "pending_id",
81
+ // "src",
82
+ // "dst",
83
+ // "kind",
84
+ // "weight",
85
+ // "provenance",
86
+ // "rationale",
87
+ // "proposed_at"
88
+ // ],
89
+ // "additionalProperties": false,
90
+ // "$schema": "http://json-schema.org/draft-07/schema#"
91
+ // }
92
+
93
+ // edge:rejected
94
+ // payload (JSON Schema):
95
+ // {
96
+ // "type": "object",
97
+ // "properties": {
98
+ // "pending_id": {
99
+ // "type": "integer"
100
+ // }
101
+ // },
102
+ // "required": [
103
+ // "pending_id"
104
+ // ],
105
+ // "additionalProperties": false,
106
+ // "$schema": "http://json-schema.org/draft-07/schema#"
107
+ // }
108
+
109
+ // focus:requested
110
+ // payload (JSON Schema):
111
+ // {
112
+ // "type": "object",
113
+ // "properties": {
114
+ // "node_ids": {
115
+ // "type": "array",
116
+ // "items": {
117
+ // "type": "string"
118
+ // }
119
+ // }
120
+ // },
121
+ // "required": [
122
+ // "node_ids"
123
+ // ],
124
+ // "additionalProperties": false,
125
+ // "$schema": "http://json-schema.org/draft-07/schema#"
126
+ // }
127
+
128
+ // index:progress
129
+ // payload (JSON Schema):
130
+ // {
131
+ // "type": "object",
132
+ // "properties": {
133
+ // "phase": {
134
+ // "type": "string"
135
+ // },
136
+ // "current": {
137
+ // "type": "number"
138
+ // },
139
+ // "total": {
140
+ // "type": "number"
141
+ // },
142
+ // "detail": {
143
+ // "type": "string"
144
+ // },
145
+ // "done": {
146
+ // "type": "boolean"
147
+ // },
148
+ // "nodes": {
149
+ // "type": "number"
150
+ // },
151
+ // "edges": {
152
+ // "type": "number"
153
+ // },
154
+ // "files": {
155
+ // "type": "number"
156
+ // }
157
+ // },
158
+ // "required": [
159
+ // "phase"
160
+ // ],
161
+ // "additionalProperties": false,
162
+ // "$schema": "http://json-schema.org/draft-07/schema#"
163
+ // }
164
+
165
+ // node:added
166
+ // payload (JSON Schema):
167
+ // {
168
+ // "type": "object",
169
+ // "properties": {
170
+ // "id": {
171
+ // "type": "string"
172
+ // },
173
+ // "type": {
174
+ // "type": "string"
175
+ // },
176
+ // "name": {
177
+ // "type": "string"
178
+ // }
179
+ // },
180
+ // "required": [
181
+ // "id",
182
+ // "type",
183
+ // "name"
184
+ // ],
185
+ // "additionalProperties": false,
186
+ // "$schema": "http://json-schema.org/draft-07/schema#"
187
+ // }
188
+
189
+ // node:promoted
190
+ // payload (JSON Schema):
191
+ // {
192
+ // "type": "object",
193
+ // "properties": {
194
+ // "id": {
195
+ // "type": "string"
196
+ // },
197
+ // "hubness": {
198
+ // "type": "number"
199
+ // }
200
+ // },
201
+ // "required": [
202
+ // "id",
203
+ // "hubness"
204
+ // ],
205
+ // "additionalProperties": false,
206
+ // "$schema": "http://json-schema.org/draft-07/schema#"
207
+ // }
208
+
209
+ // selection:changed
210
+ // payload (JSON Schema):
211
+ // {
212
+ // "type": "object",
213
+ // "properties": {
214
+ // "node_id": {
215
+ // "type": [
216
+ // "string",
217
+ // "null"
218
+ // ]
219
+ // }
220
+ // },
221
+ // "required": [
222
+ // "node_id"
223
+ // ],
224
+ // "additionalProperties": false,
225
+ // "$schema": "http://json-schema.org/draft-07/schema#"
226
+ // }
227
+
228
+ export type WsEvent =
229
+ | { type: 'alias:added'; payload: unknown /* see schema above */ }
230
+ | { type: 'edge:accepted'; payload: unknown /* see schema above */ }
231
+ | { type: 'edge:proposed'; payload: unknown /* see schema above */ }
232
+ | { type: 'edge:rejected'; payload: unknown /* see schema above */ }
233
+ | { type: 'focus:requested'; payload: unknown /* see schema above */ }
234
+ | { type: 'index:progress'; payload: unknown /* see schema above */ }
235
+ | { type: 'node:added'; payload: unknown /* see schema above */ }
236
+ | { type: 'node:promoted'; payload: unknown /* see schema above */ }
237
+ | { type: 'selection:changed'; payload: unknown /* see schema above */ };
package/package.json ADDED
@@ -0,0 +1,77 @@
1
+ {
2
+ "name": "rig-constellation",
3
+ "version": "0.1.0",
4
+ "private": false,
5
+ "type": "module",
6
+ "description": "Local-first semantic knowledge graph",
7
+ "author": "Astralchemist <kingolajohn55@gmail.com>",
8
+ "license": "Apache-2.0",
9
+ "homepage": "https://github.com/Astralchemist/rig",
10
+ "repository": {
11
+ "type": "git",
12
+ "url": "https://github.com/Astralchemist/rig.git"
13
+ },
14
+ "bin": {
15
+ "rig": "./dist/rig.js"
16
+ },
17
+ "files": [
18
+ "dist",
19
+ "generated",
20
+ "packages/web/dist",
21
+ "LICENSE",
22
+ "LICENSE-CODEGRAPH.txt",
23
+ "NOTICE",
24
+ "README.md"
25
+ ],
26
+ "engines": {
27
+ "bun": ">=1.1",
28
+ "node": ">=20 <25"
29
+ },
30
+ "workspaces": [
31
+ "packages/*"
32
+ ],
33
+ "scripts": {
34
+ "gen": "bun run scripts/gen.ts",
35
+ "gen:check": "bun run scripts/gen-check.ts",
36
+ "gen:wasm": "bun run scripts/gen-wasm.ts",
37
+ "check:compat": "bun run scripts/compat-check.ts",
38
+ "compat:snapshot": "bun run scripts/compat-check.ts --write",
39
+ "check:migrations": "bun run scripts/migration-lock.ts",
40
+ "migration:lock": "bun run scripts/migration-lock.ts --write",
41
+ "test": "bun test",
42
+ "test:e2e": "playwright test",
43
+ "install:hooks": "bash scripts/install-hooks.sh",
44
+ "build": "bun run build:web && bun run build:cli",
45
+ "build:web": "cd packages/web && bunx vite build",
46
+ "build:cli": "bun run gen:wasm && bun run scripts/build-cli.ts",
47
+ "prepublishOnly": "bun run build && bun test && bun run gen:check && bun run check:compat && bun run check:migrations"
48
+ },
49
+ "dependencies": {
50
+ "@fastify/compress": "8.3.1",
51
+ "@fastify/cors": "11.2.0",
52
+ "@fastify/static": "9.1.3",
53
+ "@xenova/transformers": "^2.17",
54
+ "fastify": "5.8.5",
55
+ "ignore": "7.0.5",
56
+ "jsonc-parser": "3.3.1",
57
+ "tree-sitter-wasms": "0.1.13",
58
+ "web-tree-sitter": "^0.25.3",
59
+ "ws": "8.20.1",
60
+ "zod": "^3.23"
61
+ },
62
+ "optionalDependencies": {
63
+ "better-sqlite3": "^12"
64
+ },
65
+ "devDependencies": {
66
+ "@playwright/test": "1.60.0",
67
+ "@types/bun": "latest",
68
+ "@types/node": "^20",
69
+ "prettier": "^3",
70
+ "typescript": "^5.5",
71
+ "zod": "^3.23",
72
+ "zod-to-json-schema": "^3.23"
73
+ },
74
+ "comments": {
75
+ "design": "Local-first: bun:sqlite is the primary store, better-sqlite3 an optional Node fallback (the only optionalDependency today). Optional native accelerators (sqlite-vec, fastembed-rs) are planned as optionalDependencies — see backlog F1 — not yet declared."
76
+ }
77
+ }