@agent-finops/core 0.9.4 → 0.9.5
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/actionVerification.d.ts +52 -52
- package/dist/activitySnapshot.d.ts +57 -57
- package/dist/agentEconomicsReceipt.d.ts +62 -62
- package/dist/projectIndexStore.d.ts +20 -20
- package/dist/qualitativeIndexCache.d.ts +20 -20
- package/package.json +1 -1
- package/dist/emailAddress.d.ts +0 -7
- package/dist/emailAddress.js +0 -16
|
@@ -60,14 +60,14 @@ declare const valueSchema: z.ZodObject<{
|
|
|
60
60
|
contextTokens: z.ZodNumber;
|
|
61
61
|
totalTokens: z.ZodNumber;
|
|
62
62
|
source: z.ZodEnum<{
|
|
63
|
-
transcript_last_token_usage: "transcript_last_token_usage";
|
|
64
63
|
assistant_message_usage: "assistant_message_usage";
|
|
64
|
+
transcript_last_token_usage: "transcript_last_token_usage";
|
|
65
65
|
call_usage: "call_usage";
|
|
66
66
|
}>;
|
|
67
67
|
}, z.core.$strict>>;
|
|
68
68
|
usageScope: z.ZodOptional<z.ZodEnum<{
|
|
69
|
-
session_cumulative: "session_cumulative";
|
|
70
69
|
turn: "turn";
|
|
70
|
+
session_cumulative: "session_cumulative";
|
|
71
71
|
}>>;
|
|
72
72
|
usageSupport: z.ZodOptional<z.ZodEnum<{
|
|
73
73
|
complete: "complete";
|
|
@@ -82,9 +82,9 @@ declare const valueSchema: z.ZodObject<{
|
|
|
82
82
|
not_separately_reported: "not_separately_reported";
|
|
83
83
|
}>;
|
|
84
84
|
cacheWriteTokens: z.ZodEnum<{
|
|
85
|
-
partial: "partial";
|
|
86
85
|
observed: "observed";
|
|
87
86
|
not_separately_reported: "not_separately_reported";
|
|
87
|
+
partial: "partial";
|
|
88
88
|
}>;
|
|
89
89
|
thoughtTokens: z.ZodEnum<{
|
|
90
90
|
observed: "observed";
|
|
@@ -99,8 +99,8 @@ declare const valueSchema: z.ZodObject<{
|
|
|
99
99
|
calculated_partial: "calculated_partial";
|
|
100
100
|
}>;
|
|
101
101
|
reportedTotalTokens: z.ZodEnum<{
|
|
102
|
-
not_reported: "not_reported";
|
|
103
102
|
provider_reported: "provider_reported";
|
|
103
|
+
not_reported: "not_reported";
|
|
104
104
|
}>;
|
|
105
105
|
}, z.core.$strict>>;
|
|
106
106
|
sourceVersion: z.ZodOptional<z.ZodString>;
|
|
@@ -121,8 +121,8 @@ declare const valueSchema: z.ZodObject<{
|
|
|
121
121
|
total: z.ZodOptional<z.ZodNumber>;
|
|
122
122
|
cacheAccounting: z.ZodEnum<{
|
|
123
123
|
unknown: "unknown";
|
|
124
|
-
none: "none";
|
|
125
124
|
included: "included";
|
|
125
|
+
none: "none";
|
|
126
126
|
}>;
|
|
127
127
|
}, z.core.$strict>>;
|
|
128
128
|
usage: z.ZodObject<{
|
|
@@ -159,14 +159,13 @@ declare const valueSchema: z.ZodObject<{
|
|
|
159
159
|
activity: z.ZodOptional<z.ZodObject<{
|
|
160
160
|
summary: z.ZodString;
|
|
161
161
|
kind: z.ZodEnum<{
|
|
162
|
-
|
|
162
|
+
project: "project";
|
|
163
163
|
agent: "agent";
|
|
164
|
+
file: "file";
|
|
164
165
|
task: "task";
|
|
165
|
-
project: "project";
|
|
166
166
|
automation: "automation";
|
|
167
167
|
}>;
|
|
168
168
|
action: z.ZodEnum<{
|
|
169
|
-
working: "working";
|
|
170
169
|
building: "building";
|
|
171
170
|
refining: "refining";
|
|
172
171
|
fixing: "fixing";
|
|
@@ -176,11 +175,12 @@ declare const valueSchema: z.ZodObject<{
|
|
|
176
175
|
configuring: "configuring";
|
|
177
176
|
publishing: "publishing";
|
|
178
177
|
running: "running";
|
|
178
|
+
working: "working";
|
|
179
179
|
}>;
|
|
180
180
|
source: z.ZodEnum<{
|
|
181
|
-
user_prompts: "user_prompts";
|
|
182
181
|
project: "project";
|
|
183
182
|
agent_title: "agent_title";
|
|
183
|
+
user_prompts: "user_prompts";
|
|
184
184
|
file_activity: "file_activity";
|
|
185
185
|
}>;
|
|
186
186
|
promptCount: z.ZodNumber;
|
|
@@ -232,9 +232,9 @@ declare const valueSchema: z.ZodObject<{
|
|
|
232
232
|
}, z.core.$strict>>;
|
|
233
233
|
diagnostics: z.ZodArray<z.ZodObject<{
|
|
234
234
|
code: z.ZodEnum<{
|
|
235
|
+
unsupported_token_shape: "unsupported_token_shape";
|
|
235
236
|
malformed_jsonl: "malformed_jsonl";
|
|
236
237
|
malformed_session_file: "malformed_session_file";
|
|
237
|
-
unsupported_token_shape: "unsupported_token_shape";
|
|
238
238
|
}>;
|
|
239
239
|
count: z.ZodNumber;
|
|
240
240
|
}, z.core.$strict>>;
|
|
@@ -285,14 +285,14 @@ export declare const qualitativeEntryValueSchema: z.ZodObject<{
|
|
|
285
285
|
contextTokens: z.ZodNumber;
|
|
286
286
|
totalTokens: z.ZodNumber;
|
|
287
287
|
source: z.ZodEnum<{
|
|
288
|
-
transcript_last_token_usage: "transcript_last_token_usage";
|
|
289
288
|
assistant_message_usage: "assistant_message_usage";
|
|
289
|
+
transcript_last_token_usage: "transcript_last_token_usage";
|
|
290
290
|
call_usage: "call_usage";
|
|
291
291
|
}>;
|
|
292
292
|
}, z.core.$strict>>;
|
|
293
293
|
usageScope: z.ZodOptional<z.ZodEnum<{
|
|
294
|
-
session_cumulative: "session_cumulative";
|
|
295
294
|
turn: "turn";
|
|
295
|
+
session_cumulative: "session_cumulative";
|
|
296
296
|
}>>;
|
|
297
297
|
usageSupport: z.ZodOptional<z.ZodEnum<{
|
|
298
298
|
complete: "complete";
|
|
@@ -307,9 +307,9 @@ export declare const qualitativeEntryValueSchema: z.ZodObject<{
|
|
|
307
307
|
not_separately_reported: "not_separately_reported";
|
|
308
308
|
}>;
|
|
309
309
|
cacheWriteTokens: z.ZodEnum<{
|
|
310
|
-
partial: "partial";
|
|
311
310
|
observed: "observed";
|
|
312
311
|
not_separately_reported: "not_separately_reported";
|
|
312
|
+
partial: "partial";
|
|
313
313
|
}>;
|
|
314
314
|
thoughtTokens: z.ZodEnum<{
|
|
315
315
|
observed: "observed";
|
|
@@ -324,8 +324,8 @@ export declare const qualitativeEntryValueSchema: z.ZodObject<{
|
|
|
324
324
|
calculated_partial: "calculated_partial";
|
|
325
325
|
}>;
|
|
326
326
|
reportedTotalTokens: z.ZodEnum<{
|
|
327
|
-
not_reported: "not_reported";
|
|
328
327
|
provider_reported: "provider_reported";
|
|
328
|
+
not_reported: "not_reported";
|
|
329
329
|
}>;
|
|
330
330
|
}, z.core.$strict>>;
|
|
331
331
|
sourceVersion: z.ZodOptional<z.ZodString>;
|
|
@@ -346,8 +346,8 @@ export declare const qualitativeEntryValueSchema: z.ZodObject<{
|
|
|
346
346
|
total: z.ZodOptional<z.ZodNumber>;
|
|
347
347
|
cacheAccounting: z.ZodEnum<{
|
|
348
348
|
unknown: "unknown";
|
|
349
|
-
none: "none";
|
|
350
349
|
included: "included";
|
|
350
|
+
none: "none";
|
|
351
351
|
}>;
|
|
352
352
|
}, z.core.$strict>>;
|
|
353
353
|
usage: z.ZodObject<{
|
|
@@ -384,14 +384,13 @@ export declare const qualitativeEntryValueSchema: z.ZodObject<{
|
|
|
384
384
|
activity: z.ZodOptional<z.ZodObject<{
|
|
385
385
|
summary: z.ZodString;
|
|
386
386
|
kind: z.ZodEnum<{
|
|
387
|
-
|
|
387
|
+
project: "project";
|
|
388
388
|
agent: "agent";
|
|
389
|
+
file: "file";
|
|
389
390
|
task: "task";
|
|
390
|
-
project: "project";
|
|
391
391
|
automation: "automation";
|
|
392
392
|
}>;
|
|
393
393
|
action: z.ZodEnum<{
|
|
394
|
-
working: "working";
|
|
395
394
|
building: "building";
|
|
396
395
|
refining: "refining";
|
|
397
396
|
fixing: "fixing";
|
|
@@ -401,11 +400,12 @@ export declare const qualitativeEntryValueSchema: z.ZodObject<{
|
|
|
401
400
|
configuring: "configuring";
|
|
402
401
|
publishing: "publishing";
|
|
403
402
|
running: "running";
|
|
403
|
+
working: "working";
|
|
404
404
|
}>;
|
|
405
405
|
source: z.ZodEnum<{
|
|
406
|
-
user_prompts: "user_prompts";
|
|
407
406
|
project: "project";
|
|
408
407
|
agent_title: "agent_title";
|
|
408
|
+
user_prompts: "user_prompts";
|
|
409
409
|
file_activity: "file_activity";
|
|
410
410
|
}>;
|
|
411
411
|
promptCount: z.ZodNumber;
|
|
@@ -457,9 +457,9 @@ export declare const qualitativeEntryValueSchema: z.ZodObject<{
|
|
|
457
457
|
}, z.core.$strict>>;
|
|
458
458
|
diagnostics: z.ZodArray<z.ZodObject<{
|
|
459
459
|
code: z.ZodEnum<{
|
|
460
|
+
unsupported_token_shape: "unsupported_token_shape";
|
|
460
461
|
malformed_jsonl: "malformed_jsonl";
|
|
461
462
|
malformed_session_file: "malformed_session_file";
|
|
462
|
-
unsupported_token_shape: "unsupported_token_shape";
|
|
463
463
|
}>;
|
|
464
464
|
count: z.ZodNumber;
|
|
465
465
|
}, z.core.$strict>>;
|
package/package.json
CHANGED
package/dist/emailAddress.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* One intentionally pragmatic normalizer for waitlist and receipt-email
|
|
3
|
-
* boundaries. It prevents header/control injection without pretending to be
|
|
4
|
-
* a mailbox-verification system; ownership still requires an explicit flow.
|
|
5
|
-
*/
|
|
6
|
-
export declare function normalizeAibillEmailAddress(value: string): string | undefined;
|
|
7
|
-
//# sourceMappingURL=emailAddress.d.ts.map
|
package/dist/emailAddress.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
const controlCharacters = /[\u0000-\u001F\u007F]/u;
|
|
2
|
-
const pragmaticEmailAddress = /^[^\s@]+@[^\s@]+\.[^\s@]+$/u;
|
|
3
|
-
/**
|
|
4
|
-
* One intentionally pragmatic normalizer for waitlist and receipt-email
|
|
5
|
-
* boundaries. It prevents header/control injection without pretending to be
|
|
6
|
-
* a mailbox-verification system; ownership still requires an explicit flow.
|
|
7
|
-
*/
|
|
8
|
-
export function normalizeAibillEmailAddress(value) {
|
|
9
|
-
const normalized = value.trim().toLowerCase();
|
|
10
|
-
if (normalized.length < 3 || normalized.length > 254)
|
|
11
|
-
return undefined;
|
|
12
|
-
if (controlCharacters.test(normalized))
|
|
13
|
-
return undefined;
|
|
14
|
-
return pragmaticEmailAddress.test(normalized) ? normalized : undefined;
|
|
15
|
-
}
|
|
16
|
-
//# sourceMappingURL=emailAddress.js.map
|