bitcompass 0.3.0 → 0.3.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.
@@ -1,5 +1,5 @@
1
1
  import { type SupabaseClient } from '@supabase/supabase-js';
2
- import type { ActivityLog, ActivityLogInsert, Rule, RuleInsert } from '../types.js';
2
+ import type { ActivityLog, ActivityLogInsert, Rule, RuleInsert, RuleKind } from '../types.js';
3
3
  /** Shown when MCP is used before logging in; instructs user to login and restart MCP. */
4
4
  export declare const AUTH_REQUIRED_MSG = "BitCompass needs authentication. Run `bitcompass login`, then restart the MCP server in your editor.";
5
5
  /** Shown when Supabase URL/key are not set; instructs config then login then restart MCP. */
@@ -8,9 +8,9 @@ export declare const NOT_CONFIGURED_MSG = "BitCompass is not configured. Run `bi
8
8
  export declare const getSupabaseClient: () => SupabaseClient | null;
9
9
  /** Client for public read-only (rules/solutions). Works without login when RLS allows public select. */
10
10
  export declare const getSupabaseClientForRead: () => SupabaseClient | null;
11
- export declare const fetchRules: (kind?: "rule" | "solution") => Promise<Rule[]>;
11
+ export declare const fetchRules: (kind?: RuleKind) => Promise<Rule[]>;
12
12
  export declare const searchRules: (queryText: string, options?: {
13
- kind?: "rule" | "solution";
13
+ kind?: RuleKind;
14
14
  limit?: number;
15
15
  }) => Promise<Rule[]>;
16
16
  export declare const getRuleById: (id: string) => Promise<Rule | null>;
@@ -60,7 +60,7 @@ function createStdioServer() {
60
60
  description: 'Search BitCompass rules by query',
61
61
  inputSchema: {
62
62
  type: 'object',
63
- properties: { query: { type: 'string' }, kind: { type: 'string', enum: ['rule', 'solution'] }, limit: { type: 'number' } },
63
+ properties: { query: { type: 'string' }, kind: { type: 'string', enum: ['rule', 'solution', 'skill', 'command'] }, limit: { type: 'number' } },
64
64
  required: ['query'],
65
65
  },
66
66
  },
@@ -79,7 +79,7 @@ function createStdioServer() {
79
79
  inputSchema: {
80
80
  type: 'object',
81
81
  properties: {
82
- kind: { type: 'string', enum: ['rule', 'solution'] },
82
+ kind: { type: 'string', enum: ['rule', 'solution', 'skill', 'command'] },
83
83
  title: { type: 'string' },
84
84
  description: { type: 'string' },
85
85
  body: { type: 'string' },
package/dist/types.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export type RuleKind = 'rule' | 'solution';
1
+ export type RuleKind = 'rule' | 'solution' | 'skill' | 'command';
2
2
  export interface Rule {
3
3
  id: string;
4
4
  kind: RuleKind;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bitcompass",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "description": "BitCompass CLI - rules, solutions, and MCP server",
5
5
  "type": "module",
6
6
  "bin": {