@vertesia/common 1.0.0 → 1.1.0-dev.20260427.060440Z
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/lib/cjs/access-control.js +2 -0
- package/lib/cjs/access-control.js.map +1 -1
- package/lib/cjs/apikey.js.map +1 -1
- package/lib/cjs/apps.js +35 -0
- package/lib/cjs/apps.js.map +1 -1
- package/lib/cjs/audit-trail.js +7 -0
- package/lib/cjs/audit-trail.js.map +1 -1
- package/lib/cjs/cost-analytics.js +13 -0
- package/lib/cjs/cost-analytics.js.map +1 -0
- package/lib/cjs/group.js +2 -1
- package/lib/cjs/group.js.map +1 -1
- package/lib/cjs/index.js +3 -1
- package/lib/cjs/index.js.map +1 -1
- package/lib/cjs/interaction.js +2 -0
- package/lib/cjs/interaction.js.map +1 -1
- package/lib/cjs/oauth-server.js +3 -0
- package/lib/cjs/oauth-server.js.map +1 -0
- package/lib/cjs/oauth.js +1 -1
- package/lib/cjs/project.js.map +1 -1
- package/lib/cjs/store/conversation-state.js.map +1 -1
- package/lib/cjs/store/rendering.js +4 -0
- package/lib/cjs/store/rendering.js.map +1 -1
- package/lib/cjs/store/schedule.js.map +1 -1
- package/lib/cjs/store/store.js +4 -1
- package/lib/cjs/store/store.js.map +1 -1
- package/lib/cjs/store/workflow.js.map +1 -1
- package/lib/cjs/user.js +1 -0
- package/lib/cjs/user.js.map +1 -1
- package/lib/esm/access-control.js +2 -0
- package/lib/esm/access-control.js.map +1 -1
- package/lib/esm/apikey.js.map +1 -1
- package/lib/esm/apps.js +30 -0
- package/lib/esm/apps.js.map +1 -1
- package/lib/esm/audit-trail.js +6 -1
- package/lib/esm/audit-trail.js.map +1 -1
- package/lib/esm/cost-analytics.js +10 -0
- package/lib/esm/cost-analytics.js.map +1 -0
- package/lib/esm/group.js +1 -0
- package/lib/esm/group.js.map +1 -1
- package/lib/esm/index.js +3 -1
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/interaction.js +2 -0
- package/lib/esm/interaction.js.map +1 -1
- package/lib/esm/oauth-server.js +2 -0
- package/lib/esm/oauth-server.js.map +1 -0
- package/lib/esm/oauth.js +1 -1
- package/lib/esm/project.js.map +1 -1
- package/lib/esm/store/conversation-state.js.map +1 -1
- package/lib/esm/store/rendering.js +3 -0
- package/lib/esm/store/rendering.js.map +1 -1
- package/lib/esm/store/schedule.js.map +1 -1
- package/lib/esm/store/store.js +3 -0
- package/lib/esm/store/store.js.map +1 -1
- package/lib/esm/store/workflow.js.map +1 -1
- package/lib/esm/user.js +1 -0
- package/lib/esm/user.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/access-control.d.ts +2 -0
- package/lib/types/access-control.d.ts.map +1 -1
- package/lib/types/analytics.d.ts +12 -6
- package/lib/types/analytics.d.ts.map +1 -1
- package/lib/types/apikey.d.ts +1 -0
- package/lib/types/apikey.d.ts.map +1 -1
- package/lib/types/apps.d.ts +351 -40
- package/lib/types/apps.d.ts.map +1 -1
- package/lib/types/ask-user.d.ts +0 -4
- package/lib/types/ask-user.d.ts.map +1 -1
- package/lib/types/audit-trail.d.ts +32 -5
- package/lib/types/audit-trail.d.ts.map +1 -1
- package/lib/types/cost-analytics.d.ts +154 -0
- package/lib/types/cost-analytics.d.ts.map +1 -0
- package/lib/types/group.d.ts +1 -0
- package/lib/types/group.d.ts.map +1 -1
- package/lib/types/index.d.ts +3 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/interaction.d.ts +33 -4
- package/lib/types/interaction.d.ts.map +1 -1
- package/lib/types/oauth-server.d.ts +224 -0
- package/lib/types/oauth-server.d.ts.map +1 -0
- package/lib/types/oauth.d.ts +29 -18
- package/lib/types/oauth.d.ts.map +1 -1
- package/lib/types/project.d.ts +87 -19
- package/lib/types/project.d.ts.map +1 -1
- package/lib/types/query.d.ts +7 -0
- package/lib/types/query.d.ts.map +1 -1
- package/lib/types/refs.d.ts +4 -0
- package/lib/types/refs.d.ts.map +1 -1
- package/lib/types/runs.d.ts +14 -0
- package/lib/types/runs.d.ts.map +1 -1
- package/lib/types/store/agent-run.d.ts +160 -2
- package/lib/types/store/agent-run.d.ts.map +1 -1
- package/lib/types/store/conversation-state.d.ts +21 -2
- package/lib/types/store/conversation-state.d.ts.map +1 -1
- package/lib/types/store/doc-analyzer.d.ts +10 -0
- package/lib/types/store/doc-analyzer.d.ts.map +1 -1
- package/lib/types/store/rendering.d.ts +6 -0
- package/lib/types/store/rendering.d.ts.map +1 -1
- package/lib/types/store/schedule.d.ts +2 -5
- package/lib/types/store/schedule.d.ts.map +1 -1
- package/lib/types/store/store.d.ts +9 -0
- package/lib/types/store/store.d.ts.map +1 -1
- package/lib/types/store/workflow.d.ts +2 -2
- package/lib/types/store/workflow.d.ts.map +1 -1
- package/lib/types/tool-execution.d.ts +4 -0
- package/lib/types/tool-execution.d.ts.map +1 -1
- package/lib/types/transient-tokens.d.ts +1 -1
- package/lib/types/transient-tokens.d.ts.map +1 -1
- package/lib/types/user.d.ts +1 -0
- package/lib/types/user.d.ts.map +1 -1
- package/lib/types/workflow-analytics.d.ts +12 -0
- package/lib/types/workflow-analytics.d.ts.map +1 -1
- package/lib/vertesia-common.js +1 -1
- package/lib/vertesia-common.js.map +1 -1
- package/package.json +4 -4
- package/src/access-control.ts +2 -0
- package/src/analytics.ts +13 -6
- package/src/apikey.ts +1 -0
- package/src/apps.ts +401 -40
- package/src/ask-user.ts +0 -4
- package/src/audit-trail.ts +44 -5
- package/src/cost-analytics.ts +165 -0
- package/src/group.ts +3 -1
- package/src/index.ts +3 -2
- package/src/interaction.ts +37 -3
- package/src/oauth-server.ts +248 -0
- package/src/oauth.ts +30 -18
- package/src/project.ts +94 -21
- package/src/query.ts +7 -0
- package/src/refs.ts +4 -0
- package/src/runs.ts +15 -0
- package/src/store/agent-run.ts +186 -2
- package/src/store/conversation-state.ts +24 -2
- package/src/store/doc-analyzer.ts +12 -0
- package/src/store/rendering.ts +10 -0
- package/src/store/schedule.ts +2 -6
- package/src/store/store.ts +11 -0
- package/src/store/workflow.ts +3 -2
- package/src/tool-execution.ts +4 -0
- package/src/transient-tokens.ts +1 -1
- package/src/user.ts +1 -0
- package/src/workflow-analytics.ts +12 -0
package/src/store/workflow.ts
CHANGED
|
@@ -507,6 +507,9 @@ export interface AgentTask {
|
|
|
507
507
|
|
|
508
508
|
/** LLM stop reason for llm_call tasks (e.g., "stop", "length", "tool_use") */
|
|
509
509
|
finish_reason?: string;
|
|
510
|
+
|
|
511
|
+
/** Warnings about the task outcome (e.g. unexpected model behavior). */
|
|
512
|
+
warnings?: string[];
|
|
510
513
|
}
|
|
511
514
|
|
|
512
515
|
export interface WorkflowRun {
|
|
@@ -728,8 +731,6 @@ export interface RequestInputDetails {
|
|
|
728
731
|
options?: Array<{ id: string; label: string }>;
|
|
729
732
|
variant?: string;
|
|
730
733
|
multiSelect?: boolean;
|
|
731
|
-
allowFreeResponse?: boolean;
|
|
732
|
-
placeholder?: string;
|
|
733
734
|
};
|
|
734
735
|
[key: string]: unknown;
|
|
735
736
|
}
|
package/src/tool-execution.ts
CHANGED
package/src/transient-tokens.ts
CHANGED
package/src/user.ts
CHANGED
|
@@ -142,6 +142,10 @@ export interface LlmCallEvent extends BaseAgentEvent {
|
|
|
142
142
|
eventType: AgentEventType.LlmCall;
|
|
143
143
|
/** Number of input/prompt tokens */
|
|
144
144
|
promptTokens: number;
|
|
145
|
+
/** Number of prompt tokens served from cache */
|
|
146
|
+
promptCachedTokens?: number;
|
|
147
|
+
/** Number of prompt tokens written into cache */
|
|
148
|
+
promptCacheWriteTokens?: number;
|
|
145
149
|
/** Number of output/completion tokens */
|
|
146
150
|
completionTokens: number;
|
|
147
151
|
/** Total tokens used */
|
|
@@ -352,6 +356,10 @@ export interface WorkflowToolParametersQuery extends WorkflowAnalyticsQueryBase
|
|
|
352
356
|
export interface TokenUsageMetrics {
|
|
353
357
|
/** Total input/prompt tokens */
|
|
354
358
|
inputTokens: number;
|
|
359
|
+
/** Total cached input tokens */
|
|
360
|
+
cachedInputTokens?: number;
|
|
361
|
+
/** Total cache write input tokens */
|
|
362
|
+
cacheWriteInputTokens?: number;
|
|
355
363
|
/** Total output/completion tokens */
|
|
356
364
|
outputTokens: number;
|
|
357
365
|
/** Total tokens (input + output) */
|
|
@@ -682,6 +690,10 @@ export interface AgentFilterOption {
|
|
|
682
690
|
id: string;
|
|
683
691
|
/** The display name (resolved from interaction) */
|
|
684
692
|
name: string;
|
|
693
|
+
/** Interaction status (published, archived, code, etc.) */
|
|
694
|
+
status?: string;
|
|
695
|
+
/** Interaction version number */
|
|
696
|
+
version?: number;
|
|
685
697
|
}
|
|
686
698
|
|
|
687
699
|
/**
|