@zenera/neo 1.1.9 → 1.1.11

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.
@@ -18,6 +18,7 @@ declare const provider: z.ZodObject<{
18
18
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
19
19
  timeoutMs: z.ZodOptional<z.ZodNumber>;
20
20
  maxRetries: z.ZodOptional<z.ZodInt>;
21
+ concurrency: z.ZodOptional<z.ZodInt>;
21
22
  apiKey: z.ZodOptional<z.ZodString>;
22
23
  apiKeyEnv: z.ZodOptional<z.ZodString>;
23
24
  baseURL: z.ZodOptional<z.ZodString>;
@@ -93,6 +94,7 @@ declare const embeddingSpec: z.ZodObject<{
93
94
  dimensions: z.ZodOptional<z.ZodInt>;
94
95
  title: z.ZodOptional<z.ZodString>;
95
96
  maxBatch: z.ZodOptional<z.ZodInt>;
97
+ maxBatchTokens: z.ZodOptional<z.ZodInt>;
96
98
  routing: z.ZodOptional<z.ZodObject<{
97
99
  order: z.ZodOptional<z.ZodArray<z.ZodString>>;
98
100
  only: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -161,6 +163,7 @@ export declare const projectSchema: z.ZodObject<{
161
163
  headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
162
164
  timeoutMs: z.ZodOptional<z.ZodNumber>;
163
165
  maxRetries: z.ZodOptional<z.ZodInt>;
166
+ concurrency: z.ZodOptional<z.ZodInt>;
164
167
  apiKey: z.ZodOptional<z.ZodString>;
165
168
  apiKeyEnv: z.ZodOptional<z.ZodString>;
166
169
  baseURL: z.ZodOptional<z.ZodString>;
@@ -226,6 +229,7 @@ export declare const projectSchema: z.ZodObject<{
226
229
  dimensions: z.ZodOptional<z.ZodInt>;
227
230
  title: z.ZodOptional<z.ZodString>;
228
231
  maxBatch: z.ZodOptional<z.ZodInt>;
232
+ maxBatchTokens: z.ZodOptional<z.ZodInt>;
229
233
  routing: z.ZodOptional<z.ZodObject<{
230
234
  order: z.ZodOptional<z.ZodArray<z.ZodString>>;
231
235
  only: z.ZodOptional<z.ZodArray<z.ZodString>>;
@@ -46,6 +46,13 @@ const provider = z
46
46
  headers: z.record(z.string().min(1), z.string()).optional(),
47
47
  timeoutMs: z.number().positive().optional(),
48
48
  maxRetries: z.int().nonnegative().optional(),
49
+ /**
50
+ * Ceiling on embedding requests in flight against this connection. The
51
+ * working number is discovered from the provider's own refusals; this
52
+ * only caps how high that may climb, for a key shared with something
53
+ * else that also needs quota.
54
+ */
55
+ concurrency: z.int().positive().optional(),
49
56
  })
50
57
  .strict();
51
58
  /**
@@ -120,8 +127,13 @@ const embeddingSpec = z
120
127
  dimensions: z.int().positive().optional(),
121
128
  /** gemini only: a document title the retrieval task type takes into account */
122
129
  title: z.string().min(1).optional(),
123
- /** gemini only: texts per request; every `gemini-embedding-*` model takes one */
130
+ /**
131
+ * Ceilings on how a batch is split into requests. Both default to what
132
+ * the model is known to accept, so setting them is for a gateway whose
133
+ * caps are not the vendor's.
134
+ */
124
135
  maxBatch: z.int().positive().optional(),
136
+ maxBatchTokens: z.int().positive().optional(),
125
137
  /** openrouter only: who serves the request */
126
138
  routing: routing.optional(),
127
139
  })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenera/neo",
3
- "version": "1.1.9",
3
+ "version": "1.1.11",
4
4
  "description": "A multi-agent runtime for Node.js: agents, models, tools, skills, memory and an append-only trajectory.",
5
5
  "keywords": [
6
6
  "agents",