@vibetasks/core 0.5.4 → 0.5.5
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/dist/index.d.ts +3 -3
- package/dist/index.js +4 -0
- package/package.json +48 -48
package/dist/index.d.ts
CHANGED
|
@@ -140,14 +140,14 @@ interface SupabaseConfig {
|
|
|
140
140
|
* @param config - Supabase configuration including URL, key, and optional access token
|
|
141
141
|
* @returns Configured Supabase client
|
|
142
142
|
*/
|
|
143
|
-
declare function createSupabaseClient(config: SupabaseConfig): SupabaseClient
|
|
143
|
+
declare function createSupabaseClient(config: SupabaseConfig): SupabaseClient<any, "public", "vibetasks", any, any>;
|
|
144
144
|
/**
|
|
145
145
|
* Create a Supabase client from environment variables
|
|
146
146
|
*
|
|
147
147
|
* @returns Configured Supabase client
|
|
148
148
|
* @throws Error if environment variables are not set
|
|
149
149
|
*/
|
|
150
|
-
declare function createSupabaseClientFromEnv(): SupabaseClient
|
|
150
|
+
declare function createSupabaseClientFromEnv(): SupabaseClient<any, "public", "vibetasks", any, any>;
|
|
151
151
|
|
|
152
152
|
type TaskFilter = 'all' | 'today' | 'upcoming' | 'completed' | 'archived';
|
|
153
153
|
type TaskPriority = 'none' | 'low' | 'medium' | 'high';
|
|
@@ -264,7 +264,7 @@ interface Task {
|
|
|
264
264
|
*/
|
|
265
265
|
declare class TaskOperations {
|
|
266
266
|
private supabase;
|
|
267
|
-
constructor(supabase: SupabaseClient);
|
|
267
|
+
constructor(supabase: SupabaseClient<any, any, any>);
|
|
268
268
|
/**
|
|
269
269
|
* Create TaskOperations from AuthManager
|
|
270
270
|
* Automatically refreshes expired tokens
|
package/dist/index.js
CHANGED
|
@@ -95,6 +95,10 @@ function createSupabaseClient(config) {
|
|
|
95
95
|
throw new Error("Supabase URL and key are required");
|
|
96
96
|
}
|
|
97
97
|
const client = createClient(supabaseUrl, supabaseKey, {
|
|
98
|
+
db: {
|
|
99
|
+
schema: "vibetasks"
|
|
100
|
+
// Use vibetasks schema for all queries
|
|
101
|
+
},
|
|
98
102
|
auth: {
|
|
99
103
|
persistSession: false,
|
|
100
104
|
// CLI/MCP don't need session persistence
|
package/package.json
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@vibetasks/core",
|
|
3
|
-
"version": "0.5.
|
|
4
|
-
"description": "Shared core logic for VibeTasks MCP server and CLI - authentication, task operations, and config management",
|
|
5
|
-
"author": "Vyas",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"main": "./dist/index.js",
|
|
8
|
-
"types": "./dist/index.d.ts",
|
|
9
|
-
"type": "module",
|
|
10
|
-
"files": [
|
|
11
|
-
"dist"
|
|
12
|
-
],
|
|
13
|
-
"keywords": [
|
|
14
|
-
"vibetasks",
|
|
15
|
-
"vibe",
|
|
16
|
-
"vibecoding",
|
|
17
|
-
"mcp",
|
|
18
|
-
"task-management",
|
|
19
|
-
"supabase",
|
|
20
|
-
"authentication",
|
|
21
|
-
"productivity"
|
|
22
|
-
],
|
|
23
|
-
"repository": {
|
|
24
|
-
"type": "git",
|
|
25
|
-
"url": "https://github.com/vyassathya/vibetasks.git",
|
|
26
|
-
"directory": "packages/mcp-core"
|
|
27
|
-
},
|
|
28
|
-
"publishConfig": {
|
|
29
|
-
"access": "public"
|
|
30
|
-
},
|
|
31
|
-
"scripts": {
|
|
32
|
-
"dev": "tsx src/index.ts",
|
|
33
|
-
"build": "tsup src/index.ts --format esm --clean --dts",
|
|
34
|
-
"typecheck": "tsc --noEmit"
|
|
35
|
-
},
|
|
36
|
-
"dependencies": {
|
|
37
|
-
"@vibetasks/shared": "
|
|
38
|
-
"@supabase/supabase-js": "^2.39.0",
|
|
39
|
-
"keytar": "^7.9.0",
|
|
40
|
-
"zod": "^3.22.0"
|
|
41
|
-
},
|
|
42
|
-
"devDependencies": {
|
|
43
|
-
"@types/node": "^20.0.0",
|
|
44
|
-
"tsx": "^4.7.0",
|
|
45
|
-
"tsup": "^8.0.0",
|
|
46
|
-
"typescript": "^5.3.3"
|
|
47
|
-
}
|
|
48
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@vibetasks/core",
|
|
3
|
+
"version": "0.5.5",
|
|
4
|
+
"description": "Shared core logic for VibeTasks MCP server and CLI - authentication, task operations, and config management",
|
|
5
|
+
"author": "Vyas",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"type": "module",
|
|
10
|
+
"files": [
|
|
11
|
+
"dist"
|
|
12
|
+
],
|
|
13
|
+
"keywords": [
|
|
14
|
+
"vibetasks",
|
|
15
|
+
"vibe",
|
|
16
|
+
"vibecoding",
|
|
17
|
+
"mcp",
|
|
18
|
+
"task-management",
|
|
19
|
+
"supabase",
|
|
20
|
+
"authentication",
|
|
21
|
+
"productivity"
|
|
22
|
+
],
|
|
23
|
+
"repository": {
|
|
24
|
+
"type": "git",
|
|
25
|
+
"url": "https://github.com/vyassathya/vibetasks.git",
|
|
26
|
+
"directory": "packages/mcp-core"
|
|
27
|
+
},
|
|
28
|
+
"publishConfig": {
|
|
29
|
+
"access": "public"
|
|
30
|
+
},
|
|
31
|
+
"scripts": {
|
|
32
|
+
"dev": "tsx src/index.ts",
|
|
33
|
+
"build": "tsup src/index.ts --format esm --clean --dts",
|
|
34
|
+
"typecheck": "tsc --noEmit"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@vibetasks/shared": "workspace:*",
|
|
38
|
+
"@supabase/supabase-js": "^2.39.0",
|
|
39
|
+
"keytar": "^7.9.0",
|
|
40
|
+
"zod": "^3.22.0"
|
|
41
|
+
},
|
|
42
|
+
"devDependencies": {
|
|
43
|
+
"@types/node": "^20.0.0",
|
|
44
|
+
"tsx": "^4.7.0",
|
|
45
|
+
"tsup": "^8.0.0",
|
|
46
|
+
"typescript": "^5.3.3"
|
|
47
|
+
}
|
|
48
|
+
}
|