@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.
@@ -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.1',
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.1 (supports tool calling)
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';
@@ -7,20 +7,20 @@
7
7
  * @example
8
8
  * ```typescript
9
9
  * const provider = createOllamaProvider({
10
- * model: 'llama3.1',
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.1 (supports tool calling)
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.1';
23
+ const DEFAULT_MODEL = 'llama3.2';
24
24
  const DEFAULT_BASE_URL = 'http://localhost:11434';
25
25
  /**
26
26
  * Ollama LLM Provider