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.
- package/LICENSE +201 -0
- package/LICENSE-CODEGRAPH.txt +27 -0
- package/NOTICE +15 -0
- package/README.md +121 -0
- package/dist/chunk-8sqjbsgt.js +42 -0
- package/dist/chunk-9754b9t6.js +70 -0
- package/dist/chunk-arpj39jd.js +10 -0
- package/dist/chunk-bnz0drs2.js +10 -0
- package/dist/chunk-hk4h7yej.js +71 -0
- package/dist/rig.js +11708 -0
- package/generated/.manifest +57 -0
- package/generated/core/anchors-registry.ts +70 -0
- package/generated/core/migrations.ts +79 -0
- package/generated/core/schema.sql +241 -0
- package/generated/installer/claude.instructions.md +345 -0
- package/generated/installer/claude.permissions.json +44 -0
- package/generated/installer/codex.instructions.md +345 -0
- package/generated/installer/codex.permissions.json +44 -0
- package/generated/installer/cursor.instructions.md +345 -0
- package/generated/installer/cursor.permissions.json +44 -0
- package/generated/installer/opencode.instructions.md +345 -0
- package/generated/installer/opencode.permissions.json +44 -0
- package/generated/installer/openrouter.instructions.md +345 -0
- package/generated/installer/openrouter.permissions.json +44 -0
- package/generated/mcp/handlers/rig_add_alias.handler.ts +34 -0
- package/generated/mcp/handlers/rig_add_node.handler.ts +34 -0
- package/generated/mcp/handlers/rig_aliases.handler.ts +25 -0
- package/generated/mcp/handlers/rig_annotate.handler.ts +34 -0
- package/generated/mcp/handlers/rig_callees.handler.ts +25 -0
- package/generated/mcp/handlers/rig_callers.handler.ts +25 -0
- package/generated/mcp/handlers/rig_chain.handler.ts +25 -0
- package/generated/mcp/handlers/rig_cluster.handler.ts +34 -0
- package/generated/mcp/handlers/rig_cold.handler.ts +25 -0
- package/generated/mcp/handlers/rig_context.handler.ts +29 -0
- package/generated/mcp/handlers/rig_critical_path.handler.ts +25 -0
- package/generated/mcp/handlers/rig_dep_conflicts.handler.ts +25 -0
- package/generated/mcp/handlers/rig_deps.handler.ts +25 -0
- package/generated/mcp/handlers/rig_drill.handler.ts +25 -0
- package/generated/mcp/handlers/rig_drop_waypoint.handler.ts +34 -0
- package/generated/mcp/handlers/rig_explore.handler.ts +29 -0
- package/generated/mcp/handlers/rig_files.handler.ts +25 -0
- package/generated/mcp/handlers/rig_focus.handler.ts +29 -0
- package/generated/mcp/handlers/rig_hotspots.handler.ts +25 -0
- package/generated/mcp/handlers/rig_hub_of.handler.ts +25 -0
- package/generated/mcp/handlers/rig_hubs.handler.ts +25 -0
- package/generated/mcp/handlers/rig_impact.handler.ts +25 -0
- package/generated/mcp/handlers/rig_neighbors.handler.ts +25 -0
- package/generated/mcp/handlers/rig_node.handler.ts +25 -0
- package/generated/mcp/handlers/rig_phantom_imports.handler.ts +25 -0
- package/generated/mcp/handlers/rig_promote.handler.ts +34 -0
- package/generated/mcp/handlers/rig_propose_edge.handler.ts +34 -0
- package/generated/mcp/handlers/rig_pull.handler.ts +25 -0
- package/generated/mcp/handlers/rig_relevant_skills.handler.ts +25 -0
- package/generated/mcp/handlers/rig_search.handler.ts +25 -0
- package/generated/mcp/handlers/rig_session_token.handler.ts +25 -0
- package/generated/mcp/handlers/rig_status.handler.ts +25 -0
- package/generated/mcp/handlers/rig_subscribe.handler.ts +25 -0
- package/generated/mcp/handlers/rig_undo.handler.ts +29 -0
- package/generated/mcp/handlers/rig_unused_deps.handler.ts +25 -0
- package/generated/mcp/handlers/rig_waypoints.handler.ts +25 -0
- package/generated/mcp/handlers-index.ts +40 -0
- package/generated/mcp/tools-manifest.json +2958 -0
- package/generated/web/ws-events.ts +237 -0
- package/package.json +77 -0
- package/packages/web/dist/assets/index-VRO-sxc2.js +54 -0
- package/packages/web/dist/index.html +35 -0
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// GENERATED FILE — DO NOT EDIT.
|
|
2
|
+
// Source: .contracts/tools/rig_subscribe.contract.ts
|
|
3
|
+
// Edit the .contract.ts file(s), then run `bun run gen`.
|
|
4
|
+
|
|
5
|
+
import type { ToolHandler } from '@rig/mcp/dispatch.ts';
|
|
6
|
+
import { ToolError } from '@rig/mcp/dispatch.ts';
|
|
7
|
+
import contract from '../../../.contracts/tools/rig_subscribe.contract.ts';
|
|
8
|
+
import { run as impl } from '@rig/mcp/tool-impls/rig_subscribe.ts';
|
|
9
|
+
|
|
10
|
+
export const rigSubscribeHandler: ToolHandler = {
|
|
11
|
+
name: 'rig_subscribe',
|
|
12
|
+
tier: 'live',
|
|
13
|
+
run: async (args, ctx) => {
|
|
14
|
+
const parsedIn = contract.input.safeParse(args);
|
|
15
|
+
if (!parsedIn.success) {
|
|
16
|
+
throw new ToolError('INPUT_INVALID', parsedIn.error.message);
|
|
17
|
+
}
|
|
18
|
+
const out = await impl(parsedIn.data, ctx);
|
|
19
|
+
const parsedOut = contract.output.safeParse(out);
|
|
20
|
+
if (!parsedOut.success) {
|
|
21
|
+
throw new ToolError('OUTPUT_INVALID', parsedOut.error.message);
|
|
22
|
+
}
|
|
23
|
+
return parsedOut.data;
|
|
24
|
+
},
|
|
25
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// GENERATED FILE — DO NOT EDIT.
|
|
2
|
+
// Source: .contracts/tools/rig_undo.contract.ts
|
|
3
|
+
// Edit the .contract.ts file(s), then run `bun run gen`.
|
|
4
|
+
|
|
5
|
+
import type { ToolHandler } from '@rig/mcp/dispatch.ts';
|
|
6
|
+
import { ToolError } from '@rig/mcp/dispatch.ts';
|
|
7
|
+
import contract from '../../../.contracts/tools/rig_undo.contract.ts';
|
|
8
|
+
import { run as impl } from '@rig/mcp/tool-impls/rig_undo.ts';
|
|
9
|
+
|
|
10
|
+
export const rigUndoHandler: ToolHandler = {
|
|
11
|
+
name: 'rig_undo',
|
|
12
|
+
tier: 'write',
|
|
13
|
+
provenanceRequired: true,
|
|
14
|
+
run: async (args, ctx) => {
|
|
15
|
+
if (!ctx.provenance) {
|
|
16
|
+
throw new ToolError('PROVENANCE_REQUIRED', 'rig_undo requires provenance');
|
|
17
|
+
}
|
|
18
|
+
const parsedIn = contract.input.safeParse(args);
|
|
19
|
+
if (!parsedIn.success) {
|
|
20
|
+
throw new ToolError('INPUT_INVALID', parsedIn.error.message);
|
|
21
|
+
}
|
|
22
|
+
const out = await impl(parsedIn.data, ctx);
|
|
23
|
+
const parsedOut = contract.output.safeParse(out);
|
|
24
|
+
if (!parsedOut.success) {
|
|
25
|
+
throw new ToolError('OUTPUT_INVALID', parsedOut.error.message);
|
|
26
|
+
}
|
|
27
|
+
return parsedOut.data;
|
|
28
|
+
},
|
|
29
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// GENERATED FILE — DO NOT EDIT.
|
|
2
|
+
// Source: .contracts/tools/rig_unused_deps.contract.ts
|
|
3
|
+
// Edit the .contract.ts file(s), then run `bun run gen`.
|
|
4
|
+
|
|
5
|
+
import type { ToolHandler } from '@rig/mcp/dispatch.ts';
|
|
6
|
+
import { ToolError } from '@rig/mcp/dispatch.ts';
|
|
7
|
+
import contract from '../../../.contracts/tools/rig_unused_deps.contract.ts';
|
|
8
|
+
import { run as impl } from '@rig/mcp/tool-impls/rig_unused_deps.ts';
|
|
9
|
+
|
|
10
|
+
export const rigUnusedDepsHandler: ToolHandler = {
|
|
11
|
+
name: 'rig_unused_deps',
|
|
12
|
+
tier: 'light',
|
|
13
|
+
run: async (args, ctx) => {
|
|
14
|
+
const parsedIn = contract.input.safeParse(args);
|
|
15
|
+
if (!parsedIn.success) {
|
|
16
|
+
throw new ToolError('INPUT_INVALID', parsedIn.error.message);
|
|
17
|
+
}
|
|
18
|
+
const out = await impl(parsedIn.data, ctx);
|
|
19
|
+
const parsedOut = contract.output.safeParse(out);
|
|
20
|
+
if (!parsedOut.success) {
|
|
21
|
+
throw new ToolError('OUTPUT_INVALID', parsedOut.error.message);
|
|
22
|
+
}
|
|
23
|
+
return parsedOut.data;
|
|
24
|
+
},
|
|
25
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// GENERATED FILE — DO NOT EDIT.
|
|
2
|
+
// Source: .contracts/tools/rig_waypoints.contract.ts
|
|
3
|
+
// Edit the .contract.ts file(s), then run `bun run gen`.
|
|
4
|
+
|
|
5
|
+
import type { ToolHandler } from '@rig/mcp/dispatch.ts';
|
|
6
|
+
import { ToolError } from '@rig/mcp/dispatch.ts';
|
|
7
|
+
import contract from '../../../.contracts/tools/rig_waypoints.contract.ts';
|
|
8
|
+
import { run as impl } from '@rig/mcp/tool-impls/rig_waypoints.ts';
|
|
9
|
+
|
|
10
|
+
export const rigWaypointsHandler: ToolHandler = {
|
|
11
|
+
name: 'rig_waypoints',
|
|
12
|
+
tier: 'light',
|
|
13
|
+
run: async (args, ctx) => {
|
|
14
|
+
const parsedIn = contract.input.safeParse(args);
|
|
15
|
+
if (!parsedIn.success) {
|
|
16
|
+
throw new ToolError('INPUT_INVALID', parsedIn.error.message);
|
|
17
|
+
}
|
|
18
|
+
const out = await impl(parsedIn.data, ctx);
|
|
19
|
+
const parsedOut = contract.output.safeParse(out);
|
|
20
|
+
if (!parsedOut.success) {
|
|
21
|
+
throw new ToolError('OUTPUT_INVALID', parsedOut.error.message);
|
|
22
|
+
}
|
|
23
|
+
return parsedOut.data;
|
|
24
|
+
},
|
|
25
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// GENERATED FILE — DO NOT EDIT.
|
|
2
|
+
// Source: .contracts/tools/rig_add_alias.contract.ts, .contracts/tools/rig_add_node.contract.ts, .contracts/tools/rig_aliases.contract.ts, .contracts/tools/rig_annotate.contract.ts, .contracts/tools/rig_callees.contract.ts, .contracts/tools/rig_callers.contract.ts, .contracts/tools/rig_chain.contract.ts, .contracts/tools/rig_cluster.contract.ts, .contracts/tools/rig_cold.contract.ts, .contracts/tools/rig_context.contract.ts, .contracts/tools/rig_critical_path.contract.ts, .contracts/tools/rig_dep_conflicts.contract.ts, .contracts/tools/rig_deps.contract.ts, .contracts/tools/rig_drill.contract.ts, .contracts/tools/rig_drop_waypoint.contract.ts, .contracts/tools/rig_explore.contract.ts, .contracts/tools/rig_files.contract.ts, .contracts/tools/rig_focus.contract.ts, .contracts/tools/rig_hotspots.contract.ts, .contracts/tools/rig_hub_of.contract.ts, .contracts/tools/rig_hubs.contract.ts, .contracts/tools/rig_impact.contract.ts, .contracts/tools/rig_neighbors.contract.ts, .contracts/tools/rig_node.contract.ts, .contracts/tools/rig_phantom_imports.contract.ts, .contracts/tools/rig_promote.contract.ts, .contracts/tools/rig_propose_edge.contract.ts, .contracts/tools/rig_pull.contract.ts, .contracts/tools/rig_relevant_skills.contract.ts, .contracts/tools/rig_search.contract.ts, .contracts/tools/rig_session_token.contract.ts, .contracts/tools/rig_status.contract.ts, .contracts/tools/rig_subscribe.contract.ts, .contracts/tools/rig_undo.contract.ts, .contracts/tools/rig_unused_deps.contract.ts, .contracts/tools/rig_waypoints.contract.ts
|
|
3
|
+
// Edit the .contract.ts file(s), then run `bun run gen`.
|
|
4
|
+
|
|
5
|
+
export { rigAddAliasHandler } from './handlers/rig_add_alias.handler.ts';
|
|
6
|
+
export { rigAddNodeHandler } from './handlers/rig_add_node.handler.ts';
|
|
7
|
+
export { rigAliasesHandler } from './handlers/rig_aliases.handler.ts';
|
|
8
|
+
export { rigAnnotateHandler } from './handlers/rig_annotate.handler.ts';
|
|
9
|
+
export { rigCalleesHandler } from './handlers/rig_callees.handler.ts';
|
|
10
|
+
export { rigCallersHandler } from './handlers/rig_callers.handler.ts';
|
|
11
|
+
export { rigChainHandler } from './handlers/rig_chain.handler.ts';
|
|
12
|
+
export { rigClusterHandler } from './handlers/rig_cluster.handler.ts';
|
|
13
|
+
export { rigColdHandler } from './handlers/rig_cold.handler.ts';
|
|
14
|
+
export { rigContextHandler } from './handlers/rig_context.handler.ts';
|
|
15
|
+
export { rigCriticalPathHandler } from './handlers/rig_critical_path.handler.ts';
|
|
16
|
+
export { rigDepConflictsHandler } from './handlers/rig_dep_conflicts.handler.ts';
|
|
17
|
+
export { rigDepsHandler } from './handlers/rig_deps.handler.ts';
|
|
18
|
+
export { rigDrillHandler } from './handlers/rig_drill.handler.ts';
|
|
19
|
+
export { rigDropWaypointHandler } from './handlers/rig_drop_waypoint.handler.ts';
|
|
20
|
+
export { rigExploreHandler } from './handlers/rig_explore.handler.ts';
|
|
21
|
+
export { rigFilesHandler } from './handlers/rig_files.handler.ts';
|
|
22
|
+
export { rigFocusHandler } from './handlers/rig_focus.handler.ts';
|
|
23
|
+
export { rigHotspotsHandler } from './handlers/rig_hotspots.handler.ts';
|
|
24
|
+
export { rigHubOfHandler } from './handlers/rig_hub_of.handler.ts';
|
|
25
|
+
export { rigHubsHandler } from './handlers/rig_hubs.handler.ts';
|
|
26
|
+
export { rigImpactHandler } from './handlers/rig_impact.handler.ts';
|
|
27
|
+
export { rigNeighborsHandler } from './handlers/rig_neighbors.handler.ts';
|
|
28
|
+
export { rigNodeHandler } from './handlers/rig_node.handler.ts';
|
|
29
|
+
export { rigPhantomImportsHandler } from './handlers/rig_phantom_imports.handler.ts';
|
|
30
|
+
export { rigPromoteHandler } from './handlers/rig_promote.handler.ts';
|
|
31
|
+
export { rigProposeEdgeHandler } from './handlers/rig_propose_edge.handler.ts';
|
|
32
|
+
export { rigPullHandler } from './handlers/rig_pull.handler.ts';
|
|
33
|
+
export { rigRelevantSkillsHandler } from './handlers/rig_relevant_skills.handler.ts';
|
|
34
|
+
export { rigSearchHandler } from './handlers/rig_search.handler.ts';
|
|
35
|
+
export { rigSessionTokenHandler } from './handlers/rig_session_token.handler.ts';
|
|
36
|
+
export { rigStatusHandler } from './handlers/rig_status.handler.ts';
|
|
37
|
+
export { rigSubscribeHandler } from './handlers/rig_subscribe.handler.ts';
|
|
38
|
+
export { rigUndoHandler } from './handlers/rig_undo.handler.ts';
|
|
39
|
+
export { rigUnusedDepsHandler } from './handlers/rig_unused_deps.handler.ts';
|
|
40
|
+
export { rigWaypointsHandler } from './handlers/rig_waypoints.handler.ts';
|