@aimount/core 0.1.0 → 0.2.0-beta.0

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/part.d.ts DELETED
@@ -1,68 +0,0 @@
1
- export type MessageProviderMetadata = Record<string, unknown>;
2
- export type MessageToolApproval = {
3
- id: string;
4
- approved?: boolean | undefined;
5
- reason?: string | undefined;
6
- };
7
- export interface MessagePartReasoning {
8
- type: 'reasoning';
9
- text: string;
10
- state: 'streaming' | 'done';
11
- providerMetadata?: MessageProviderMetadata | undefined;
12
- [key: string]: unknown;
13
- }
14
- export interface MessagePartText {
15
- type: 'text';
16
- text: string;
17
- state: 'streaming' | 'done';
18
- providerMetadata?: MessageProviderMetadata | undefined;
19
- [key: string]: unknown;
20
- }
21
- export interface MessagePartTool {
22
- type: 'tool';
23
- name: string;
24
- toolCallId: string;
25
- input: unknown;
26
- output?: unknown | undefined;
27
- state: 'streaming' | 'call' | 'done' | 'error' | 'canceled';
28
- error?: string | undefined;
29
- providerExecuted?: boolean | undefined;
30
- callProviderMetadata?: MessageProviderMetadata | undefined;
31
- approval?: MessageToolApproval | undefined;
32
- preliminary?: boolean | undefined;
33
- title?: string | undefined;
34
- [key: string]: unknown;
35
- }
36
- export interface MessagePartSourceUrl {
37
- type: 'source-url';
38
- sourceId: string;
39
- url: string;
40
- title?: string | undefined;
41
- providerMetadata?: MessageProviderMetadata | undefined;
42
- [key: string]: unknown;
43
- }
44
- export interface MessagePartSourceDocument {
45
- type: 'source-document';
46
- sourceId: string;
47
- mediaType: string;
48
- title: string;
49
- filename?: string | undefined;
50
- providerMetadata?: MessageProviderMetadata | undefined;
51
- [key: string]: unknown;
52
- }
53
- export interface MessagePartFile {
54
- type: 'file';
55
- mediaType: string;
56
- url: string;
57
- filename?: string | undefined;
58
- providerMetadata?: MessageProviderMetadata | undefined;
59
- [key: string]: unknown;
60
- }
61
- export interface MessagePartUnknown {
62
- type: 'unknown';
63
- rawType?: string | undefined;
64
- reason?: 'unsupported_chunk' | 'invalid_chunk' | undefined;
65
- payload?: unknown | undefined;
66
- }
67
- export type MessagePart = MessageKnownPart | MessagePartUnknown;
68
- export type MessageKnownPart = MessagePartText | MessagePartTool | MessagePartReasoning | MessagePartSourceUrl | MessagePartSourceDocument | MessagePartFile;
package/dist/profile.d.ts DELETED
@@ -1,42 +0,0 @@
1
- export type RuntimeConfiguration = {
2
- profile: {
3
- id: string;
4
- name: string;
5
- description: string | null;
6
- };
7
- agents: RuntimeAgent[];
8
- models: Model[];
9
- limits: RuntimeConfigurationLimits;
10
- };
11
- export type RuntimeAgent = {
12
- id: string;
13
- name: string;
14
- };
15
- export type Model = {
16
- id: string;
17
- name: string;
18
- };
19
- export type RuntimeConfigurationLimits = {
20
- maxMessages: number | null;
21
- maxTokens: number | null;
22
- messagesPerMinute: number | null;
23
- messagesPerHour: number | null;
24
- messagesPerDay: number | null;
25
- messagesPerWeek: number | null;
26
- messagesPerMonth: number | null;
27
- weightedTokensPerHour: number | null;
28
- };
29
- export type RuntimeLimitRemainingWindow = {
30
- limit: number;
31
- used: number;
32
- remaining: number;
33
- resetAt: Date | null;
34
- };
35
- export type RuntimeRemainingLimits = {
36
- messagesPerMinute: RuntimeLimitRemainingWindow | null;
37
- messagesPerHour: RuntimeLimitRemainingWindow | null;
38
- messagesPerDay: RuntimeLimitRemainingWindow | null;
39
- messagesPerWeek: RuntimeLimitRemainingWindow | null;
40
- messagesPerMonth: RuntimeLimitRemainingWindow | null;
41
- weightedTokensPerHour: RuntimeLimitRemainingWindow | null;
42
- };
package/dist/session.d.ts DELETED
@@ -1,16 +0,0 @@
1
- export type Session = {
2
- id: string;
3
- title: string | null;
4
- starred: boolean;
5
- lastActivityAt: Date;
6
- createdAt: Date;
7
- updatedAt: Date;
8
- };
9
- export type SessionPage = {
10
- items: Session[];
11
- nextCursor: string | null;
12
- };
13
- export type SessionStar = {
14
- sessionId: string;
15
- starred: boolean;
16
- };
@@ -1,13 +0,0 @@
1
- import { Session, SessionPage, SessionStar } from './session';
2
- export type RuntimeSession = Session;
3
- export type RuntimeSessionPage = SessionPage;
4
- export type RuntimeSessionStar = SessionStar;
5
- export type RuntimeGetSessionsParams = {
6
- limit?: number;
7
- cursor?: string;
8
- starred?: boolean;
9
- query?: string;
10
- };
11
- export type RuntimeCreateSessionParams = {
12
- title?: string;
13
- };
package/dist/status.d.ts DELETED
@@ -1,7 +0,0 @@
1
- export type MessageStatusCode = 'in_progress' | 'waiting_tool_outputs' | 'completed' | 'interrupted' | 'failed';
2
- export type MessageStatusReason = 'system.started' | 'system.resumed' | 'system.awaiting_tool_outputs' | 'system.timeout' | 'system.resume_unavailable' | 'system.internal_error' | 'system.network_error' | 'system.stream_corrupted' | 'system.runtime_protocol_violation' | 'system.lease_expired' | 'user.cancelled' | 'provider.stop' | 'provider.max_tokens' | 'provider.content_filtered' | 'provider.other_finish_reason' | 'provider.error';
3
- export type MessageStatus = {
4
- version: 1;
5
- code: MessageStatusCode;
6
- reason: MessageStatusReason;
7
- };
package/dist/tool.d.ts DELETED
@@ -1,22 +0,0 @@
1
- import { Schema } from 'ai';
2
- import { default as z } from 'zod/v4';
3
- export type ToolSignature = {
4
- description: string;
5
- claim?: 'required' | 'optional' | undefined;
6
- inputSchema: Schema;
7
- outputSchema: Schema;
8
- };
9
- export type ToolSignatures = Record<string, ToolSignature>;
10
- export type Tools = Record<string, Tool>;
11
- export interface Tool<I extends z.ZodTypeAny = z.ZodTypeAny, O extends z.ZodTypeAny = z.ZodTypeAny> {
12
- description: string;
13
- claim?: 'required' | 'optional' | undefined;
14
- inputSchema: I;
15
- outputSchema: O;
16
- execute: (props: ToolExecuteProps<I>) => Promise<z.infer<O>>;
17
- }
18
- export interface ToolExecuteProps<Input extends z.ZodTypeAny> {
19
- toolCallId: string;
20
- input: z.infer<Input>;
21
- }
22
- export declare function createTool<I extends z.ZodTypeAny, O extends z.ZodTypeAny>(tool: Tool<I, O>): Tool<I, O>;
package/dist/tools.d.ts DELETED
@@ -1,39 +0,0 @@
1
- export type RuntimeToolClaimPolicy = 'required' | 'optional';
2
- export type RuntimeToolSignature = {
3
- description: string;
4
- claim?: RuntimeToolClaimPolicy | undefined;
5
- inputSchema: {
6
- jsonSchema: Record<string, unknown>;
7
- };
8
- outputSchema: {
9
- jsonSchema: Record<string, unknown>;
10
- };
11
- };
12
- export type RuntimeToolClaim = {
13
- toolCallId: string;
14
- claimToken: string;
15
- claimExpiresAt: Date;
16
- operationKey: string;
17
- claim: RuntimeToolClaimPolicy;
18
- };
19
- export type RuntimeToolOutputOutcome = 'success' | 'error' | 'denied';
20
- export type RuntimeToolOutputCommitRequest = {
21
- toolCallId: string;
22
- claimToken?: string;
23
- outcome: RuntimeToolOutputOutcome;
24
- output?: unknown;
25
- error?: string;
26
- };
27
- export type RuntimeToolClaimRequest = {
28
- responseId: string;
29
- runId: string;
30
- toolCallId: string;
31
- signal?: AbortSignal;
32
- };
33
- export type RuntimeToolClaimRenewParams = {
34
- responseId: string;
35
- runId: string;
36
- toolCallId: string;
37
- claimToken: string;
38
- signal?: AbortSignal;
39
- };