veryfront 0.0.45 → 0.0.46
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/ai/index.d.ts +11 -1
- package/dist/ai/index.js +2 -2
- package/dist/ai/index.js.map +2 -2
- package/dist/cli.js +6 -4
- package/dist/components.js +1 -1
- package/dist/components.js.map +1 -1
- package/dist/config.d.ts +7 -0
- package/dist/config.js +1 -1
- package/dist/config.js.map +1 -1
- package/dist/data.js +1 -1
- package/dist/data.js.map +1 -1
- package/dist/index.js +32 -33
- package/dist/index.js.map +2 -2
- package/dist/integrations/_base/connector.json +11 -0
- package/dist/integrations/_base/files/SETUP.md +132 -0
- package/dist/integrations/_base/files/app/api/integrations/status/route.ts +38 -0
- package/dist/integrations/_base/files/app/setup/page.tsx +461 -0
- package/dist/integrations/_base/files/lib/oauth.ts +145 -0
- package/dist/integrations/_base/files/lib/token-store.ts +109 -0
- package/dist/integrations/calendar/connector.json +77 -0
- package/dist/integrations/calendar/files/ai/tools/create-event.ts +83 -0
- package/dist/integrations/calendar/files/ai/tools/find-free-time.ts +108 -0
- package/dist/integrations/calendar/files/ai/tools/list-events.ts +98 -0
- package/dist/integrations/calendar/files/app/api/auth/calendar/callback/route.ts +114 -0
- package/dist/integrations/calendar/files/app/api/auth/calendar/route.ts +29 -0
- package/dist/integrations/calendar/files/lib/calendar-client.ts +309 -0
- package/dist/integrations/calendar/files/lib/oauth.ts +145 -0
- package/dist/integrations/calendar/files/lib/token-store.ts +109 -0
- package/dist/integrations/github/connector.json +84 -0
- package/dist/integrations/github/files/ai/tools/create-issue.ts +75 -0
- package/dist/integrations/github/files/ai/tools/get-pr-diff.ts +82 -0
- package/dist/integrations/github/files/ai/tools/list-prs.ts +93 -0
- package/dist/integrations/github/files/ai/tools/list-repos.ts +81 -0
- package/dist/integrations/github/files/app/api/auth/github/callback/route.ts +132 -0
- package/dist/integrations/github/files/app/api/auth/github/route.ts +29 -0
- package/dist/integrations/github/files/lib/github-client.ts +282 -0
- package/dist/integrations/github/files/lib/oauth.ts +145 -0
- package/dist/integrations/github/files/lib/token-store.ts +109 -0
- package/dist/integrations/gmail/connector.json +78 -0
- package/dist/integrations/gmail/files/ai/tools/list-emails.ts +92 -0
- package/dist/integrations/gmail/files/ai/tools/search-emails.ts +92 -0
- package/dist/integrations/gmail/files/ai/tools/send-email.ts +77 -0
- package/dist/integrations/gmail/files/app/api/auth/gmail/callback/route.ts +114 -0
- package/dist/integrations/gmail/files/app/api/auth/gmail/route.ts +29 -0
- package/dist/integrations/gmail/files/lib/gmail-client.ts +259 -0
- package/dist/integrations/gmail/files/lib/oauth.ts +145 -0
- package/dist/integrations/gmail/files/lib/token-store.ts +109 -0
- package/dist/integrations/slack/connector.json +74 -0
- package/dist/integrations/slack/files/ai/tools/get-messages.ts +65 -0
- package/dist/integrations/slack/files/ai/tools/list-channels.ts +63 -0
- package/dist/integrations/slack/files/ai/tools/send-message.ts +49 -0
- package/dist/integrations/slack/files/app/api/auth/slack/callback/route.ts +132 -0
- package/dist/integrations/slack/files/app/api/auth/slack/route.ts +29 -0
- package/dist/integrations/slack/files/lib/oauth.ts +145 -0
- package/dist/integrations/slack/files/lib/slack-client.ts +215 -0
- package/dist/integrations/slack/files/lib/token-store.ts +109 -0
- package/package.json +1 -1
package/dist/ai/index.d.ts
CHANGED
|
@@ -9,7 +9,8 @@ export interface AgentConfig {
|
|
|
9
9
|
id?: string;
|
|
10
10
|
model: string;
|
|
11
11
|
system?: string | (() => string | Promise<string>);
|
|
12
|
-
tools
|
|
12
|
+
/** Tools available to the agent. Use `true` to enable all discovered tools, or specify individual tools. */
|
|
13
|
+
tools?: true | Record<string, boolean | object>;
|
|
13
14
|
memory?: {
|
|
14
15
|
type?: 'conversation' | 'summary' | 'buffer';
|
|
15
16
|
maxTokens?: number;
|
|
@@ -61,6 +62,15 @@ export declare const agentRegistry: {
|
|
|
61
62
|
register(id: string, agent: AgentInstance): void;
|
|
62
63
|
};
|
|
63
64
|
|
|
65
|
+
/** Get an agent by ID from the registry */
|
|
66
|
+
export declare function getAgent(id: string): AgentInstance | undefined;
|
|
67
|
+
|
|
68
|
+
/** Get all registered agent IDs */
|
|
69
|
+
export declare function getAllAgentIds(): string[];
|
|
70
|
+
|
|
71
|
+
/** Register an agent in the registry */
|
|
72
|
+
export declare function registerAgent(id: string, agent: AgentInstance): void;
|
|
73
|
+
|
|
64
74
|
// ============================================================================
|
|
65
75
|
// Tool Functions
|
|
66
76
|
// ============================================================================
|
package/dist/ai/index.js
CHANGED
|
@@ -1675,7 +1675,7 @@ var LRU_DEFAULT_MAX_SIZE_BYTES = 50 * 1024 * 1024;
|
|
|
1675
1675
|
// deno.json
|
|
1676
1676
|
var deno_default = {
|
|
1677
1677
|
name: "veryfront",
|
|
1678
|
-
version: "0.0.
|
|
1678
|
+
version: "0.0.46",
|
|
1679
1679
|
exclude: [
|
|
1680
1680
|
"npm/",
|
|
1681
1681
|
"dist/",
|
|
@@ -3441,7 +3441,7 @@ function createAgentStreamResult(stream) {
|
|
|
3441
3441
|
}
|
|
3442
3442
|
function agent(config) {
|
|
3443
3443
|
const id = config.id || generateAgentId();
|
|
3444
|
-
if (config.tools) {
|
|
3444
|
+
if (config.tools && config.tools !== true) {
|
|
3445
3445
|
for (const [name, entry] of Object.entries(config.tools)) {
|
|
3446
3446
|
if (entry && typeof entry === "object") {
|
|
3447
3447
|
const normalizedTool = entry.id === name ? entry : { ...entry, id: name };
|