@troykelly/openclaw-projects 0.0.54 → 0.0.55
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/config.d.ts +30 -260
- package/dist/config.d.ts.map +1 -1
- package/dist/register-openclaw.d.ts +2 -20
- package/dist/register-openclaw.d.ts.map +1 -1
- package/dist/tools/api-credential-manage.d.ts +17 -41
- package/dist/tools/api-credential-manage.d.ts.map +1 -1
- package/dist/tools/api-credential-manage.js +1 -1
- package/dist/tools/api-get.d.ts +1 -5
- package/dist/tools/api-get.d.ts.map +1 -1
- package/dist/tools/api-get.js +1 -1
- package/dist/tools/api-list.d.ts +6 -10
- package/dist/tools/api-list.d.ts.map +1 -1
- package/dist/tools/api-list.js +1 -1
- package/dist/tools/api-onboard.d.ts +14 -74
- package/dist/tools/api-onboard.d.ts.map +1 -1
- package/dist/tools/api-onboard.js +2 -2
- package/dist/tools/api-onboard.js.map +1 -1
- package/dist/tools/api-recall.d.ts +7 -15
- package/dist/tools/api-recall.d.ts.map +1 -1
- package/dist/tools/api-recall.js +1 -1
- package/dist/tools/api-refresh.d.ts +1 -5
- package/dist/tools/api-refresh.d.ts.map +1 -1
- package/dist/tools/api-refresh.js +1 -1
- package/dist/tools/api-remove.d.ts +1 -5
- package/dist/tools/api-remove.d.ts.map +1 -1
- package/dist/tools/api-remove.js +1 -1
- package/dist/tools/api-restore.d.ts +1 -5
- package/dist/tools/api-restore.d.ts.map +1 -1
- package/dist/tools/api-restore.js +1 -1
- package/dist/tools/api-update.d.ts +7 -15
- package/dist/tools/api-update.d.ts.map +1 -1
- package/dist/tools/api-update.js +1 -1
- package/dist/tools/contacts.d.ts +3 -21
- package/dist/tools/contacts.d.ts.map +1 -1
- package/dist/tools/contacts.js +3 -3
- package/dist/tools/context-search.d.ts +15 -11
- package/dist/tools/context-search.d.ts.map +1 -1
- package/dist/tools/context-search.js +1 -1
- package/dist/tools/dev-prompts.d.ts +21 -53
- package/dist/tools/dev-prompts.d.ts.map +1 -1
- package/dist/tools/dev-prompts.js +6 -6
- package/dist/tools/dev-prompts.js.map +1 -1
- package/dist/tools/dev-session-search.d.ts +1 -9
- package/dist/tools/dev-session-search.d.ts.map +1 -1
- package/dist/tools/dev-session-search.js +1 -1
- package/dist/tools/dev-sessions.d.ts +9 -97
- package/dist/tools/dev-sessions.d.ts.map +1 -1
- package/dist/tools/dev-sessions.js +5 -5
- package/dist/tools/email-send.d.ts +1 -15
- package/dist/tools/email-send.d.ts.map +1 -1
- package/dist/tools/email-send.js +1 -1
- package/dist/tools/entity-links.d.ts +45 -39
- package/dist/tools/entity-links.d.ts.map +1 -1
- package/dist/tools/entity-links.js +3 -3
- package/dist/tools/file-share.d.ts +1 -9
- package/dist/tools/file-share.d.ts.map +1 -1
- package/dist/tools/file-share.js +1 -1
- package/dist/tools/memory-forget.d.ts +2 -14
- package/dist/tools/memory-forget.d.ts.map +1 -1
- package/dist/tools/memory-forget.js +1 -1
- package/dist/tools/memory-recall.d.ts +19 -35
- package/dist/tools/memory-recall.d.ts.map +1 -1
- package/dist/tools/memory-recall.js +1 -1
- package/dist/tools/memory-store.d.ts +13 -78
- package/dist/tools/memory-store.d.ts.map +1 -1
- package/dist/tools/memory-store.js +1 -1
- package/dist/tools/message-search.d.ts +6 -14
- package/dist/tools/message-search.d.ts.map +1 -1
- package/dist/tools/message-search.js +1 -1
- package/dist/tools/notebooks.d.ts +3 -23
- package/dist/tools/notebooks.d.ts.map +1 -1
- package/dist/tools/notebooks.js +3 -3
- package/dist/tools/notes.d.ts +33 -71
- package/dist/tools/notes.d.ts.map +1 -1
- package/dist/tools/notes.js +5 -5
- package/dist/tools/project-search.d.ts +7 -25
- package/dist/tools/project-search.d.ts.map +1 -1
- package/dist/tools/project-search.js +1 -1
- package/dist/tools/projects.d.ts +13 -23
- package/dist/tools/projects.d.ts.map +1 -1
- package/dist/tools/projects.js +3 -3
- package/dist/tools/relationships.d.ts +2 -22
- package/dist/tools/relationships.d.ts.map +1 -1
- package/dist/tools/relationships.js +2 -2
- package/dist/tools/skill-store.d.ts +28 -123
- package/dist/tools/skill-store.d.ts.map +1 -1
- package/dist/tools/skill-store.js +8 -8
- package/dist/tools/skill-store.js.map +1 -1
- package/dist/tools/sms-send.d.ts +1 -9
- package/dist/tools/sms-send.d.ts.map +1 -1
- package/dist/tools/sms-send.js +1 -1
- package/dist/tools/terminal-connections.d.ts +41 -92
- package/dist/tools/terminal-connections.d.ts.map +1 -1
- package/dist/tools/terminal-connections.js +8 -8
- package/dist/tools/terminal-search.d.ts +16 -34
- package/dist/tools/terminal-search.d.ts.map +1 -1
- package/dist/tools/terminal-search.js +2 -2
- package/dist/tools/terminal-sessions.d.ts +7 -63
- package/dist/tools/terminal-sessions.d.ts.map +1 -1
- package/dist/tools/terminal-sessions.js +7 -7
- package/dist/tools/terminal-tunnels.d.ts +13 -29
- package/dist/tools/terminal-tunnels.d.ts.map +1 -1
- package/dist/tools/terminal-tunnels.js +3 -3
- package/dist/tools/threads.d.ts +6 -17
- package/dist/tools/threads.d.ts.map +1 -1
- package/dist/tools/threads.js +2 -2
- package/dist/tools/todo-search.d.ts +9 -27
- package/dist/tools/todo-search.d.ts.map +1 -1
- package/dist/tools/todo-search.js +1 -1
- package/dist/tools/todos.d.ts +3 -25
- package/dist/tools/todos.d.ts.map +1 -1
- package/dist/tools/todos.js +3 -3
- package/dist/tools/tool-guide.d.ts +1 -9
- package/dist/tools/tool-guide.d.ts.map +1 -1
- package/dist/tools/tool-guide.js +1 -1
- package/dist/utils/zod-to-json-schema.d.ts +7 -0
- package/dist/utils/zod-to-json-schema.d.ts.map +1 -1
- package/dist/utils/zod-to-json-schema.js +65 -25
- package/dist/utils/zod-to-json-schema.js.map +1 -1
- package/openclaw.plugin.json +1 -1
- package/package.json +6 -6
|
@@ -14,34 +14,16 @@ import type { PluginConfig } from '../config.js';
|
|
|
14
14
|
export declare const ProjectSearchParamsSchema: z.ZodObject<{
|
|
15
15
|
query: z.ZodString;
|
|
16
16
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
17
|
-
status: z.ZodOptional<z.ZodEnum<
|
|
17
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
18
|
+
active: "active";
|
|
19
|
+
completed: "completed";
|
|
20
|
+
archived: "archived";
|
|
21
|
+
}>>;
|
|
18
22
|
location: z.ZodOptional<z.ZodObject<{
|
|
19
23
|
lat: z.ZodNumber;
|
|
20
24
|
lng: z.ZodNumber;
|
|
21
|
-
},
|
|
22
|
-
|
|
23
|
-
lng: number;
|
|
24
|
-
}, {
|
|
25
|
-
lat: number;
|
|
26
|
-
lng: number;
|
|
27
|
-
}>>;
|
|
28
|
-
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
query: string;
|
|
30
|
-
status?: "active" | "completed" | "archived" | undefined;
|
|
31
|
-
limit?: number | undefined;
|
|
32
|
-
location?: {
|
|
33
|
-
lat: number;
|
|
34
|
-
lng: number;
|
|
35
|
-
} | undefined;
|
|
36
|
-
}, {
|
|
37
|
-
query: string;
|
|
38
|
-
status?: "active" | "completed" | "archived" | undefined;
|
|
39
|
-
limit?: number | undefined;
|
|
40
|
-
location?: {
|
|
41
|
-
lat: number;
|
|
42
|
-
lng: number;
|
|
43
|
-
} | undefined;
|
|
44
|
-
}>;
|
|
25
|
+
}, z.core.$strip>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
45
27
|
export type ProjectSearchParams = z.infer<typeof ProjectSearchParamsSchema>;
|
|
46
28
|
/** Search result item */
|
|
47
29
|
export interface ProjectSearchItem {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project-search.d.ts","sourceRoot":"","sources":["../../src/tools/project-search.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC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oB,GAAG,oBAAoB,CAAC;AAE9E,yBAAyB;AACzB,MAAM,WAAW,wBAAwB;IACvC,MAAM,EAAE,SAAS,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,YAAY,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,sBAAsB;AACtB,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,yBAAyB,CAAC;IAC7C,OAAO,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,OAAO,CAAC,mBAAmB,CAAC,CAAC;CACxE;AASD;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,wBAAwB,GAAG,iBAAiB,CA4J5F"}
|
|
@@ -39,7 +39,7 @@ export function createProjectSearchTool(options) {
|
|
|
39
39
|
async execute(params) {
|
|
40
40
|
const parseResult = ProjectSearchParamsSchema.safeParse(params);
|
|
41
41
|
if (!parseResult.success) {
|
|
42
|
-
const errorMessage = parseResult.error.
|
|
42
|
+
const errorMessage = parseResult.error.issues.map((e) => `${e.path.join('.')}: ${e.message}`).join(', ');
|
|
43
43
|
return { success: false, error: errorMessage };
|
|
44
44
|
}
|
|
45
45
|
const { query, limit = 10, status, location } = parseResult.data;
|
package/dist/tools/projects.d.ts
CHANGED
|
@@ -7,22 +7,22 @@ import type { ApiClient } from '../api-client.js';
|
|
|
7
7
|
import type { Logger } from '../logger.js';
|
|
8
8
|
import type { PluginConfig } from '../config.js';
|
|
9
9
|
/** Project status enum */
|
|
10
|
-
export declare const ProjectStatus: z.ZodEnum<
|
|
10
|
+
export declare const ProjectStatus: z.ZodEnum<{
|
|
11
|
+
active: "active";
|
|
12
|
+
completed: "completed";
|
|
13
|
+
archived: "archived";
|
|
14
|
+
}>;
|
|
11
15
|
export type ProjectStatus = z.infer<typeof ProjectStatus>;
|
|
12
16
|
/** Parameters for project_list tool */
|
|
13
17
|
export declare const ProjectListParamsSchema: z.ZodObject<{
|
|
14
|
-
status: z.ZodOptional<z.ZodEnum<
|
|
18
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
19
|
+
active: "active";
|
|
20
|
+
completed: "completed";
|
|
21
|
+
archived: "archived";
|
|
22
|
+
}>>;
|
|
15
23
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
16
24
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
17
|
-
},
|
|
18
|
-
status?: "active" | "completed" | "archived" | undefined;
|
|
19
|
-
limit?: number | undefined;
|
|
20
|
-
offset?: number | undefined;
|
|
21
|
-
}, {
|
|
22
|
-
status?: "active" | "completed" | "archived" | undefined;
|
|
23
|
-
limit?: number | undefined;
|
|
24
|
-
offset?: number | undefined;
|
|
25
|
-
}>;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
26
|
export type ProjectListParams = z.infer<typeof ProjectListParamsSchema>;
|
|
27
27
|
/** Project item from API */
|
|
28
28
|
export interface Project {
|
|
@@ -73,11 +73,7 @@ export declare function createProjectListTool(options: ProjectToolOptions): Proj
|
|
|
73
73
|
/** Parameters for project_get tool */
|
|
74
74
|
export declare const ProjectGetParamsSchema: z.ZodObject<{
|
|
75
75
|
id: z.ZodString;
|
|
76
|
-
},
|
|
77
|
-
id: string;
|
|
78
|
-
}, {
|
|
79
|
-
id: string;
|
|
80
|
-
}>;
|
|
76
|
+
}, z.core.$strip>;
|
|
81
77
|
export type ProjectGetParams = z.infer<typeof ProjectGetParamsSchema>;
|
|
82
78
|
/** Successful get result */
|
|
83
79
|
export interface ProjectGetSuccess {
|
|
@@ -105,13 +101,7 @@ export declare function createProjectGetTool(options: ProjectToolOptions): Proje
|
|
|
105
101
|
export declare const ProjectCreateParamsSchema: z.ZodObject<{
|
|
106
102
|
name: z.ZodString;
|
|
107
103
|
description: z.ZodOptional<z.ZodString>;
|
|
108
|
-
},
|
|
109
|
-
name: string;
|
|
110
|
-
description?: string | undefined;
|
|
111
|
-
}, {
|
|
112
|
-
name: string;
|
|
113
|
-
description?: string | undefined;
|
|
114
|
-
}>;
|
|
104
|
+
}, z.core.$strip>;
|
|
115
105
|
export type ProjectCreateParams = z.infer<typeof ProjectCreateParamsSchema>;
|
|
116
106
|
/** Successful create result */
|
|
117
107
|
export interface ProjectCreateSuccess {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/tools/projects.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAMjD,0BAA0B;AAC1B,eAAO,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"projects.d.ts","sourceRoot":"","sources":["../../src/tools/projects.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAMjD,0BAA0B;AAC1B,eAAO,MAAM,aAAa;;;;EAA8C,CAAC;AACzE,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAI1D,uCAAuC;AACvC,eAAO,MAAM,uBAAuB;;;;;;;;iBAIlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,4BAA4B;AAC5B,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,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mB,CAAC,CAAC;CACxE;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,kBAAkB,GAAG,iBAAiB,CAgFtF"}
|
package/dist/tools/projects.js
CHANGED
|
@@ -46,7 +46,7 @@ export function createProjectListTool(options) {
|
|
|
46
46
|
async execute(params) {
|
|
47
47
|
const parseResult = ProjectListParamsSchema.safeParse(params);
|
|
48
48
|
if (!parseResult.success) {
|
|
49
|
-
const errorMessage = parseResult.error.
|
|
49
|
+
const errorMessage = parseResult.error.issues.map((e) => `${e.path.join('.')}: ${e.message}`).join(', ');
|
|
50
50
|
return { success: false, error: errorMessage };
|
|
51
51
|
}
|
|
52
52
|
const { status, limit = 20, offset = 0 } = parseResult.data;
|
|
@@ -126,7 +126,7 @@ export function createProjectGetTool(options) {
|
|
|
126
126
|
async execute(params) {
|
|
127
127
|
const parseResult = ProjectGetParamsSchema.safeParse(params);
|
|
128
128
|
if (!parseResult.success) {
|
|
129
|
-
const errorMessage = parseResult.error.
|
|
129
|
+
const errorMessage = parseResult.error.issues.map((e) => `${e.path.join('.')}: ${e.message}`).join(', ');
|
|
130
130
|
return { success: false, error: errorMessage };
|
|
131
131
|
}
|
|
132
132
|
const { id } = parseResult.data;
|
|
@@ -192,7 +192,7 @@ export function createProjectCreateTool(options) {
|
|
|
192
192
|
async execute(params) {
|
|
193
193
|
const parseResult = ProjectCreateParamsSchema.safeParse(params);
|
|
194
194
|
if (!parseResult.success) {
|
|
195
|
-
const errorMessage = parseResult.error.
|
|
195
|
+
const errorMessage = parseResult.error.issues.map((e) => `${e.path.join('.')}: ${e.message}`).join(', ');
|
|
196
196
|
return { success: false, error: errorMessage };
|
|
197
197
|
}
|
|
198
198
|
const { name, description } = parseResult.data;
|
|
@@ -17,19 +17,7 @@ export declare const RelationshipSetParamsSchema: z.ZodObject<{
|
|
|
17
17
|
relationship: z.ZodString;
|
|
18
18
|
notes: z.ZodOptional<z.ZodString>;
|
|
19
19
|
namespace: z.ZodOptional<z.ZodString>;
|
|
20
|
-
},
|
|
21
|
-
contact_a: string;
|
|
22
|
-
contact_b: string;
|
|
23
|
-
relationship: string;
|
|
24
|
-
namespace?: string | undefined;
|
|
25
|
-
notes?: string | undefined;
|
|
26
|
-
}, {
|
|
27
|
-
contact_a: string;
|
|
28
|
-
contact_b: string;
|
|
29
|
-
relationship: string;
|
|
30
|
-
namespace?: string | undefined;
|
|
31
|
-
notes?: string | undefined;
|
|
32
|
-
}>;
|
|
20
|
+
}, z.core.$strip>;
|
|
33
21
|
export type RelationshipSetParams = z.infer<typeof RelationshipSetParamsSchema>;
|
|
34
22
|
/** Successful set result */
|
|
35
23
|
export interface RelationshipSetSuccess {
|
|
@@ -87,15 +75,7 @@ export declare const RelationshipQueryParamsSchema: z.ZodObject<{
|
|
|
87
75
|
contact: z.ZodString;
|
|
88
76
|
type_filter: z.ZodOptional<z.ZodString>;
|
|
89
77
|
namespace: z.ZodOptional<z.ZodString>;
|
|
90
|
-
},
|
|
91
|
-
contact: string;
|
|
92
|
-
namespace?: string | undefined;
|
|
93
|
-
type_filter?: string | undefined;
|
|
94
|
-
}, {
|
|
95
|
-
contact: string;
|
|
96
|
-
namespace?: string | undefined;
|
|
97
|
-
type_filter?: string | undefined;
|
|
98
|
-
}>;
|
|
78
|
+
}, z.core.$strip>;
|
|
99
79
|
export type RelationshipQueryParams = z.infer<typeof RelationshipQueryParamsSchema>;
|
|
100
80
|
/** Related contact entry from API */
|
|
101
81
|
export interface RelatedContact {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"relationships.d.ts","sourceRoot":"","sources":["../../src/tools/relationships.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EA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ACH,CAAC;CACH;AAED,MAAM,MAAM,uBAAuB,GAAG,wBAAwB,GAAG,mBAAmB,CAAC;AAErF,sBAAsB;AACtB,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,OAAO,6BAA6B,CAAC;IACjD,OAAO,EAAE,CAAC,MAAM,EAAE,uBAAuB,KAAK,OAAO,CAAC,uBAAuB,CAAC,CAAC;CAChF;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,uBAAuB,GAAG,qBAAqB,CAgHnG"}
|
|
@@ -44,7 +44,7 @@ export function createRelationshipSetTool(options) {
|
|
|
44
44
|
// Validate parameters
|
|
45
45
|
const parseResult = RelationshipSetParamsSchema.safeParse(params);
|
|
46
46
|
if (!parseResult.success) {
|
|
47
|
-
const errorMessage = parseResult.error.
|
|
47
|
+
const errorMessage = parseResult.error.issues.map((e) => `${e.path.join('.')}: ${e.message}`).join(', ');
|
|
48
48
|
return { success: false, error: errorMessage };
|
|
49
49
|
}
|
|
50
50
|
const { contact_a, contact_b, relationship, notes, namespace } = parseResult.data;
|
|
@@ -148,7 +148,7 @@ export function createRelationshipQueryTool(options) {
|
|
|
148
148
|
// Validate parameters
|
|
149
149
|
const parseResult = RelationshipQueryParamsSchema.safeParse(params);
|
|
150
150
|
if (!parseResult.success) {
|
|
151
|
-
const errorMessage = parseResult.error.
|
|
151
|
+
const errorMessage = parseResult.error.issues.map((e) => `${e.path.join('.')}: ${e.message}`).join(', ');
|
|
152
152
|
return { success: false, error: errorMessage };
|
|
153
153
|
}
|
|
154
154
|
const { contact, type_filter, namespace } = parseResult.data;
|
|
@@ -23,44 +23,12 @@ export declare const SkillStorePutParamsSchema: z.ZodObject<{
|
|
|
23
23
|
media_url: z.ZodOptional<z.ZodString>;
|
|
24
24
|
media_type: z.ZodOptional<z.ZodString>;
|
|
25
25
|
source_url: z.ZodOptional<z.ZodString>;
|
|
26
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
26
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
27
27
|
priority: z.ZodOptional<z.ZodNumber>;
|
|
28
28
|
expires_at: z.ZodOptional<z.ZodString>;
|
|
29
29
|
pinned: z.ZodOptional<z.ZodBoolean>;
|
|
30
30
|
user_email: z.ZodOptional<z.ZodString>;
|
|
31
|
-
},
|
|
32
|
-
skill_id: string;
|
|
33
|
-
key?: string | undefined;
|
|
34
|
-
data?: Record<string, unknown> | undefined;
|
|
35
|
-
user_email?: string | undefined;
|
|
36
|
-
content?: string | undefined;
|
|
37
|
-
title?: string | undefined;
|
|
38
|
-
tags?: string[] | undefined;
|
|
39
|
-
summary?: string | undefined;
|
|
40
|
-
expires_at?: string | undefined;
|
|
41
|
-
collection?: string | undefined;
|
|
42
|
-
media_url?: string | undefined;
|
|
43
|
-
media_type?: string | undefined;
|
|
44
|
-
source_url?: string | undefined;
|
|
45
|
-
priority?: number | undefined;
|
|
46
|
-
pinned?: boolean | undefined;
|
|
47
|
-
}, {
|
|
48
|
-
skill_id: string;
|
|
49
|
-
key?: string | undefined;
|
|
50
|
-
data?: Record<string, unknown> | undefined;
|
|
51
|
-
user_email?: string | undefined;
|
|
52
|
-
content?: string | undefined;
|
|
53
|
-
title?: string | undefined;
|
|
54
|
-
tags?: string[] | undefined;
|
|
55
|
-
summary?: string | undefined;
|
|
56
|
-
expires_at?: string | undefined;
|
|
57
|
-
collection?: string | undefined;
|
|
58
|
-
media_url?: string | undefined;
|
|
59
|
-
media_type?: string | undefined;
|
|
60
|
-
source_url?: string | undefined;
|
|
61
|
-
priority?: number | undefined;
|
|
62
|
-
pinned?: boolean | undefined;
|
|
63
|
-
}>;
|
|
31
|
+
}, z.core.$strip>;
|
|
64
32
|
export type SkillStorePutParams = z.infer<typeof SkillStorePutParamsSchema>;
|
|
65
33
|
/** Zod schema for skill_store_get parameters */
|
|
66
34
|
export declare const SkillStoreGetParamsSchema: z.ZodObject<{
|
|
@@ -68,50 +36,29 @@ export declare const SkillStoreGetParamsSchema: z.ZodObject<{
|
|
|
68
36
|
skill_id: z.ZodOptional<z.ZodString>;
|
|
69
37
|
collection: z.ZodOptional<z.ZodString>;
|
|
70
38
|
key: z.ZodOptional<z.ZodString>;
|
|
71
|
-
},
|
|
72
|
-
key?: string | undefined;
|
|
73
|
-
id?: string | undefined;
|
|
74
|
-
skill_id?: string | undefined;
|
|
75
|
-
collection?: string | undefined;
|
|
76
|
-
}, {
|
|
77
|
-
key?: string | undefined;
|
|
78
|
-
id?: string | undefined;
|
|
79
|
-
skill_id?: string | undefined;
|
|
80
|
-
collection?: string | undefined;
|
|
81
|
-
}>;
|
|
39
|
+
}, z.core.$strip>;
|
|
82
40
|
export type SkillStoreGetParams = z.infer<typeof SkillStoreGetParamsSchema>;
|
|
83
41
|
/** Zod schema for skill_store_list parameters */
|
|
84
42
|
export declare const SkillStoreListParamsSchema: z.ZodObject<{
|
|
85
43
|
skill_id: z.ZodString;
|
|
86
44
|
collection: z.ZodOptional<z.ZodString>;
|
|
87
|
-
status: z.ZodOptional<z.ZodEnum<
|
|
88
|
-
|
|
45
|
+
status: z.ZodOptional<z.ZodEnum<{
|
|
46
|
+
active: "active";
|
|
47
|
+
archived: "archived";
|
|
48
|
+
processing: "processing";
|
|
49
|
+
}>>;
|
|
50
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
89
51
|
since: z.ZodOptional<z.ZodString>;
|
|
90
52
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
91
53
|
offset: z.ZodOptional<z.ZodNumber>;
|
|
92
|
-
order_by: z.ZodOptional<z.ZodEnum<
|
|
54
|
+
order_by: z.ZodOptional<z.ZodEnum<{
|
|
55
|
+
title: "title";
|
|
56
|
+
priority: "priority";
|
|
57
|
+
created_at: "created_at";
|
|
58
|
+
updated_at: "updated_at";
|
|
59
|
+
}>>;
|
|
93
60
|
user_email: z.ZodOptional<z.ZodString>;
|
|
94
|
-
},
|
|
95
|
-
skill_id: string;
|
|
96
|
-
status?: "active" | "archived" | "processing" | undefined;
|
|
97
|
-
user_email?: string | undefined;
|
|
98
|
-
limit?: number | undefined;
|
|
99
|
-
tags?: string[] | undefined;
|
|
100
|
-
offset?: number | undefined;
|
|
101
|
-
collection?: string | undefined;
|
|
102
|
-
since?: string | undefined;
|
|
103
|
-
order_by?: "title" | "priority" | "created_at" | "updated_at" | undefined;
|
|
104
|
-
}, {
|
|
105
|
-
skill_id: string;
|
|
106
|
-
status?: "active" | "archived" | "processing" | undefined;
|
|
107
|
-
user_email?: string | undefined;
|
|
108
|
-
limit?: number | undefined;
|
|
109
|
-
tags?: string[] | undefined;
|
|
110
|
-
offset?: number | undefined;
|
|
111
|
-
collection?: string | undefined;
|
|
112
|
-
since?: string | undefined;
|
|
113
|
-
order_by?: "title" | "priority" | "created_at" | "updated_at" | undefined;
|
|
114
|
-
}>;
|
|
61
|
+
}, z.core.$strip>;
|
|
115
62
|
export type SkillStoreListParams = z.infer<typeof SkillStoreListParamsSchema>;
|
|
116
63
|
/** Zod schema for skill_store_delete parameters */
|
|
117
64
|
export declare const SkillStoreDeleteParamsSchema: z.ZodObject<{
|
|
@@ -119,17 +66,7 @@ export declare const SkillStoreDeleteParamsSchema: z.ZodObject<{
|
|
|
119
66
|
skill_id: z.ZodOptional<z.ZodString>;
|
|
120
67
|
collection: z.ZodOptional<z.ZodString>;
|
|
121
68
|
key: z.ZodOptional<z.ZodString>;
|
|
122
|
-
},
|
|
123
|
-
key?: string | undefined;
|
|
124
|
-
id?: string | undefined;
|
|
125
|
-
skill_id?: string | undefined;
|
|
126
|
-
collection?: string | undefined;
|
|
127
|
-
}, {
|
|
128
|
-
key?: string | undefined;
|
|
129
|
-
id?: string | undefined;
|
|
130
|
-
skill_id?: string | undefined;
|
|
131
|
-
collection?: string | undefined;
|
|
132
|
-
}>;
|
|
69
|
+
}, z.core.$strip>;
|
|
133
70
|
export type SkillStoreDeleteParams = z.infer<typeof SkillStoreDeleteParamsSchema>;
|
|
134
71
|
/** Skill store item response from API */
|
|
135
72
|
export interface SkillStoreItem {
|
|
@@ -201,66 +138,34 @@ export declare const SkillStoreSearchParamsSchema: z.ZodObject<{
|
|
|
201
138
|
skill_id: z.ZodString;
|
|
202
139
|
query: z.ZodString;
|
|
203
140
|
collection: z.ZodOptional<z.ZodString>;
|
|
204
|
-
tags: z.ZodOptional<z.ZodArray<z.ZodString
|
|
141
|
+
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
205
142
|
semantic: z.ZodOptional<z.ZodBoolean>;
|
|
206
143
|
min_similarity: z.ZodOptional<z.ZodNumber>;
|
|
207
144
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
208
145
|
user_email: z.ZodOptional<z.ZodString>;
|
|
209
|
-
},
|
|
210
|
-
query: string;
|
|
211
|
-
skill_id: string;
|
|
212
|
-
user_email?: string | undefined;
|
|
213
|
-
limit?: number | undefined;
|
|
214
|
-
tags?: string[] | undefined;
|
|
215
|
-
semantic?: boolean | undefined;
|
|
216
|
-
collection?: string | undefined;
|
|
217
|
-
min_similarity?: number | undefined;
|
|
218
|
-
}, {
|
|
219
|
-
query: string;
|
|
220
|
-
skill_id: string;
|
|
221
|
-
user_email?: string | undefined;
|
|
222
|
-
limit?: number | undefined;
|
|
223
|
-
tags?: string[] | undefined;
|
|
224
|
-
semantic?: boolean | undefined;
|
|
225
|
-
collection?: string | undefined;
|
|
226
|
-
min_similarity?: number | undefined;
|
|
227
|
-
}>;
|
|
146
|
+
}, z.core.$strip>;
|
|
228
147
|
export type SkillStoreSearchParams = z.infer<typeof SkillStoreSearchParamsSchema>;
|
|
229
148
|
/** Zod schema for skill_store_collections parameters */
|
|
230
149
|
export declare const SkillStoreCollectionsParamsSchema: z.ZodObject<{
|
|
231
150
|
skill_id: z.ZodString;
|
|
232
151
|
user_email: z.ZodOptional<z.ZodString>;
|
|
233
|
-
},
|
|
234
|
-
skill_id: string;
|
|
235
|
-
user_email?: string | undefined;
|
|
236
|
-
}, {
|
|
237
|
-
skill_id: string;
|
|
238
|
-
user_email?: string | undefined;
|
|
239
|
-
}>;
|
|
152
|
+
}, z.core.$strip>;
|
|
240
153
|
export type SkillStoreCollectionsParams = z.infer<typeof SkillStoreCollectionsParamsSchema>;
|
|
241
154
|
/** Zod schema for skill_store_aggregate parameters */
|
|
242
155
|
export declare const SkillStoreAggregateParamsSchema: z.ZodObject<{
|
|
243
156
|
skill_id: z.ZodString;
|
|
244
157
|
collection: z.ZodOptional<z.ZodString>;
|
|
245
|
-
operation: z.ZodEnum<
|
|
158
|
+
operation: z.ZodEnum<{
|
|
159
|
+
count: "count";
|
|
160
|
+
count_by_tag: "count_by_tag";
|
|
161
|
+
count_by_status: "count_by_status";
|
|
162
|
+
latest: "latest";
|
|
163
|
+
oldest: "oldest";
|
|
164
|
+
}>;
|
|
246
165
|
since: z.ZodOptional<z.ZodString>;
|
|
247
166
|
until: z.ZodOptional<z.ZodString>;
|
|
248
167
|
user_email: z.ZodOptional<z.ZodString>;
|
|
249
|
-
},
|
|
250
|
-
skill_id: string;
|
|
251
|
-
operation: "count" | "count_by_tag" | "count_by_status" | "latest" | "oldest";
|
|
252
|
-
user_email?: string | undefined;
|
|
253
|
-
collection?: string | undefined;
|
|
254
|
-
since?: string | undefined;
|
|
255
|
-
until?: string | undefined;
|
|
256
|
-
}, {
|
|
257
|
-
skill_id: string;
|
|
258
|
-
operation: "count" | "count_by_tag" | "count_by_status" | "latest" | "oldest";
|
|
259
|
-
user_email?: string | undefined;
|
|
260
|
-
collection?: string | undefined;
|
|
261
|
-
since?: string | undefined;
|
|
262
|
-
until?: string | undefined;
|
|
263
|
-
}>;
|
|
168
|
+
}, z.core.$strip>;
|
|
264
169
|
export type SkillStoreAggregateParams = z.infer<typeof SkillStoreAggregateParamsSchema>;
|
|
265
170
|
/**
|
|
266
171
|
* Create the skill_store_search tool.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skill-store.d.ts","sourceRoot":"","sources":["../../src/tools/skill-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,kBAAkB,CAAC;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AA0CjD,gDAAgD;AAChD,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"skill-store.d.ts","sourceRoot":"","sources":["../../src/tools/skill-store.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,SAAS,EAAe,MAAM,kBAAkB,CAAC;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AA0CjD,gDAAgD;AAChD,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;iBAgBpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,gDAAgD;AAChD,eAAO,MAAM,yBAAyB;;;;;iBAKpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,iDAAiD;AACjD,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;iBAUrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,mDAAmD;AACnD,eAAO,MAAM,4BAA4B;;;;;iBAKvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC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AAO,EAAE,qBAAqB,GAAG,cAAc,CA6E9F;AAED;;GAEG;AACH,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,qBAAqB,GAAG,cAAc,CAsE5F"}
|
|
@@ -51,7 +51,7 @@ export const SkillStorePutParamsSchema = z.object({
|
|
|
51
51
|
title: z.string().max(500).optional(),
|
|
52
52
|
summary: z.string().max(2000).optional(),
|
|
53
53
|
content: z.string().max(50000).optional(),
|
|
54
|
-
data: z.record(z.unknown()).optional(),
|
|
54
|
+
data: z.record(z.string(), z.unknown()).optional(),
|
|
55
55
|
media_url: z.string().url().optional(),
|
|
56
56
|
media_type: z.string().max(100).optional(),
|
|
57
57
|
source_url: z.string().url().optional(),
|
|
@@ -105,7 +105,7 @@ export function createSkillStorePutTool(options) {
|
|
|
105
105
|
async execute(params) {
|
|
106
106
|
const parseResult = SkillStorePutParamsSchema.safeParse(params);
|
|
107
107
|
if (!parseResult.success) {
|
|
108
|
-
const errorMessage = parseResult.error.
|
|
108
|
+
const errorMessage = parseResult.error.issues.map((e) => `${e.path.join('.')}: ${e.message}`).join(', ');
|
|
109
109
|
return { success: false, error: errorMessage };
|
|
110
110
|
}
|
|
111
111
|
const validated = parseResult.data;
|
|
@@ -226,7 +226,7 @@ export function createSkillStoreGetTool(options) {
|
|
|
226
226
|
async execute(params) {
|
|
227
227
|
const parseResult = SkillStoreGetParamsSchema.safeParse(params);
|
|
228
228
|
if (!parseResult.success) {
|
|
229
|
-
const errorMessage = parseResult.error.
|
|
229
|
+
const errorMessage = parseResult.error.issues.map((e) => `${e.path.join('.')}: ${e.message}`).join(', ');
|
|
230
230
|
return { success: false, error: errorMessage };
|
|
231
231
|
}
|
|
232
232
|
const validated = parseResult.data;
|
|
@@ -317,7 +317,7 @@ export function createSkillStoreListTool(options) {
|
|
|
317
317
|
async execute(params) {
|
|
318
318
|
const parseResult = SkillStoreListParamsSchema.safeParse(params);
|
|
319
319
|
if (!parseResult.success) {
|
|
320
|
-
const errorMessage = parseResult.error.
|
|
320
|
+
const errorMessage = parseResult.error.issues.map((e) => `${e.path.join('.')}: ${e.message}`).join(', ');
|
|
321
321
|
return { success: false, error: errorMessage };
|
|
322
322
|
}
|
|
323
323
|
const validated = parseResult.data;
|
|
@@ -395,7 +395,7 @@ export function createSkillStoreDeleteTool(options) {
|
|
|
395
395
|
async execute(params) {
|
|
396
396
|
const parseResult = SkillStoreDeleteParamsSchema.safeParse(params);
|
|
397
397
|
if (!parseResult.success) {
|
|
398
|
-
const errorMessage = parseResult.error.
|
|
398
|
+
const errorMessage = parseResult.error.issues.map((e) => `${e.path.join('.')}: ${e.message}`).join(', ');
|
|
399
399
|
return { success: false, error: errorMessage };
|
|
400
400
|
}
|
|
401
401
|
const validated = parseResult.data;
|
|
@@ -583,7 +583,7 @@ export function createSkillStoreSearchTool(options) {
|
|
|
583
583
|
async execute(params) {
|
|
584
584
|
const parseResult = SkillStoreSearchParamsSchema.safeParse(params);
|
|
585
585
|
if (!parseResult.success) {
|
|
586
|
-
const errorMessage = parseResult.error.
|
|
586
|
+
const errorMessage = parseResult.error.issues.map((e) => `${e.path.join('.')}: ${e.message}`).join(', ');
|
|
587
587
|
return { success: false, error: errorMessage };
|
|
588
588
|
}
|
|
589
589
|
const validated = parseResult.data;
|
|
@@ -684,7 +684,7 @@ export function createSkillStoreCollectionsTool(options) {
|
|
|
684
684
|
async execute(params) {
|
|
685
685
|
const parseResult = SkillStoreCollectionsParamsSchema.safeParse(params);
|
|
686
686
|
if (!parseResult.success) {
|
|
687
|
-
const errorMessage = parseResult.error.
|
|
687
|
+
const errorMessage = parseResult.error.issues.map((e) => `${e.path.join('.')}: ${e.message}`).join(', ');
|
|
688
688
|
return { success: false, error: errorMessage };
|
|
689
689
|
}
|
|
690
690
|
const validated = parseResult.data;
|
|
@@ -755,7 +755,7 @@ export function createSkillStoreAggregateTool(options) {
|
|
|
755
755
|
async execute(params) {
|
|
756
756
|
const parseResult = SkillStoreAggregateParamsSchema.safeParse(params);
|
|
757
757
|
if (!parseResult.success) {
|
|
758
|
-
const errorMessage = parseResult.error.
|
|
758
|
+
const errorMessage = parseResult.error.issues.map((e) => `${e.path.join('.')}: ${e.message}`).join(', ');
|
|
759
759
|
return { success: false, error: errorMessage };
|
|
760
760
|
}
|
|
761
761
|
const validated = parseResult.data;
|