@compilr-dev/agents 0.2.1 → 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.
- package/dist/agent.d.ts +11 -0
- package/dist/agent.js +210 -122
- package/dist/anchors/manager.d.ts +34 -0
- package/dist/anchors/manager.js +86 -0
- package/dist/anchors/types.d.ts +29 -0
- package/dist/providers/ollama.d.ts +2 -2
- package/dist/providers/ollama.js +3 -3
- package/dist/skills/index.js +476 -235
- package/dist/tools/builtin/ask-user-simple.d.ts +64 -0
- package/dist/tools/builtin/ask-user-simple.js +149 -0
- package/dist/tools/builtin/ask-user.d.ts +85 -0
- package/dist/tools/builtin/ask-user.js +195 -0
- package/dist/tools/builtin/backlog.d.ts +121 -0
- package/dist/tools/builtin/backlog.js +368 -0
- package/dist/tools/builtin/bash.js +180 -13
- package/dist/tools/builtin/index.d.ts +11 -1
- package/dist/tools/builtin/index.js +16 -0
- package/dist/tools/builtin/task.d.ts +14 -4
- package/dist/tools/builtin/task.js +9 -9
- package/dist/tools/define.d.ts +7 -0
- package/dist/tools/define.js +1 -0
- package/dist/tools/registry.d.ts +3 -2
- package/dist/tools/registry.js +19 -6
- package/dist/tools/types.d.ts +29 -2
- package/package.json +1 -1
package/dist/anchors/types.d.ts
CHANGED
|
@@ -57,6 +57,11 @@ export interface Anchor {
|
|
|
57
57
|
* Optional metadata for custom use
|
|
58
58
|
*/
|
|
59
59
|
metadata?: Record<string, unknown>;
|
|
60
|
+
/**
|
|
61
|
+
* Optional project association for project-scoped anchors
|
|
62
|
+
* If not provided, the anchor is considered "global"
|
|
63
|
+
*/
|
|
64
|
+
projectId?: string;
|
|
60
65
|
}
|
|
61
66
|
/**
|
|
62
67
|
* Input for adding a new anchor (id and createdAt are auto-generated if not provided)
|
|
@@ -69,6 +74,10 @@ export interface AnchorInput {
|
|
|
69
74
|
expiresAt?: Date;
|
|
70
75
|
tags?: string[];
|
|
71
76
|
metadata?: Record<string, unknown>;
|
|
77
|
+
/**
|
|
78
|
+
* Optional project association for project-scoped anchors
|
|
79
|
+
*/
|
|
80
|
+
projectId?: string;
|
|
72
81
|
}
|
|
73
82
|
/**
|
|
74
83
|
* Options for querying anchors
|
|
@@ -90,6 +99,16 @@ export interface AnchorQueryOptions {
|
|
|
90
99
|
* Include expired temporary anchors (default: false)
|
|
91
100
|
*/
|
|
92
101
|
includeExpired?: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Filter by project ID
|
|
104
|
+
* Only returns anchors associated with this project
|
|
105
|
+
*/
|
|
106
|
+
projectId?: string;
|
|
107
|
+
/**
|
|
108
|
+
* If true, only return global anchors (those without a projectId)
|
|
109
|
+
* Cannot be used together with projectId
|
|
110
|
+
*/
|
|
111
|
+
globalOnly?: boolean;
|
|
93
112
|
}
|
|
94
113
|
/**
|
|
95
114
|
* Options for clearing anchors
|
|
@@ -107,6 +126,15 @@ export interface AnchorClearOptions {
|
|
|
107
126
|
* Clear only expired anchors
|
|
108
127
|
*/
|
|
109
128
|
expiredOnly?: boolean;
|
|
129
|
+
/**
|
|
130
|
+
* Clear only anchors associated with this project
|
|
131
|
+
*/
|
|
132
|
+
projectId?: string;
|
|
133
|
+
/**
|
|
134
|
+
* If true, only clear global anchors (those without a projectId)
|
|
135
|
+
* Cannot be used together with projectId
|
|
136
|
+
*/
|
|
137
|
+
globalOnly?: boolean;
|
|
110
138
|
}
|
|
111
139
|
/**
|
|
112
140
|
* Configuration for the AnchorManager
|
|
@@ -148,6 +176,7 @@ export interface SerializedAnchor {
|
|
|
148
176
|
expiresAt?: string;
|
|
149
177
|
tags?: string[];
|
|
150
178
|
metadata?: Record<string, unknown>;
|
|
179
|
+
projectId?: string;
|
|
151
180
|
}
|
|
152
181
|
/**
|
|
153
182
|
* Event types for anchor operations
|
|
@@ -7,14 +7,14 @@
|
|
|
7
7
|
* @example
|
|
8
8
|
* ```typescript
|
|
9
9
|
* const provider = createOllamaProvider({
|
|
10
|
-
* model: 'llama3.
|
|
10
|
+
* model: 'llama3.2',
|
|
11
11
|
* baseUrl: 'http://localhost:11434'
|
|
12
12
|
* });
|
|
13
13
|
* ```
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
16
|
* - Requires Ollama to be running locally
|
|
17
|
-
* - Default model is llama3.
|
|
17
|
+
* - Default model is llama3.2 (supports tool calling)
|
|
18
18
|
* - Extended thinking is not supported (Claude-specific feature)
|
|
19
19
|
*/
|
|
20
20
|
import type { ChatOptions } from './types.js';
|
package/dist/providers/ollama.js
CHANGED
|
@@ -7,20 +7,20 @@
|
|
|
7
7
|
* @example
|
|
8
8
|
* ```typescript
|
|
9
9
|
* const provider = createOllamaProvider({
|
|
10
|
-
* model: 'llama3.
|
|
10
|
+
* model: 'llama3.2',
|
|
11
11
|
* baseUrl: 'http://localhost:11434'
|
|
12
12
|
* });
|
|
13
13
|
* ```
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
16
|
* - Requires Ollama to be running locally
|
|
17
|
-
* - Default model is llama3.
|
|
17
|
+
* - Default model is llama3.2 (supports tool calling)
|
|
18
18
|
* - Extended thinking is not supported (Claude-specific feature)
|
|
19
19
|
*/
|
|
20
20
|
import { ProviderError } from '../errors.js';
|
|
21
21
|
import { OpenAICompatibleProvider } from './openai-compatible.js';
|
|
22
22
|
// Default configuration
|
|
23
|
-
const DEFAULT_MODEL = 'llama3.
|
|
23
|
+
const DEFAULT_MODEL = 'llama3.2';
|
|
24
24
|
const DEFAULT_BASE_URL = 'http://localhost:11434';
|
|
25
25
|
/**
|
|
26
26
|
* Ollama LLM Provider
|