@inferencesh/sdk 0.14.1 → 0.15.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/CHANGELOG.md +21 -0
- package/dist/agent/actions.js +36 -0
- package/dist/agent/api.d.ts +2 -1
- package/dist/agent/api.js +4 -0
- package/dist/agent/types.d.ts +5 -1
- package/dist/hook-builder.d.ts +14 -1
- package/dist/hook-builder.js +26 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/types.d.ts +230 -4
- package/dist/types.js +59 -0
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,27 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.15.0] - 2026-10-02
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- `useAgentActions().updateChatSettings(settings)`: change a chat's name, visibility, `allow_all_tools` (run every tool without asking; switching it on approves the calls already waiting), `disable_hooks` and `forget_memory` (`POST /chats/{id}/settings`).
|
|
15
|
+
- `useAgentActions().switchAgent(agentRef)`: hand the chat to another agent our loop runs; the next message goes to it. A harness agent is refused.
|
|
16
|
+
- Types: `ChatSettingsRequest`; `ChatData.allow_all_tools` and `disable_hooks`; per-server MCP headers; API key scope and an optional `last_used_at`; engine-picker provider options.
|
|
17
|
+
|
|
18
|
+
### Changed
|
|
19
|
+
|
|
20
|
+
- The `inference-src` export condition is listed before `types`, so a bundler that sets it resolves the TypeScript source.
|
|
21
|
+
|
|
22
|
+
## [0.14.2] - 2026-10-01
|
|
23
|
+
|
|
24
|
+
### Added
|
|
25
|
+
|
|
26
|
+
- Instance types: `InstanceRentalType` (`on_demand`, `spot`), `rental_type` on availability and engine-picker offers, `hourly_price` on spot entries.
|
|
27
|
+
- `lifecycleHook(event).builtin(name)` for hooks the platform runs itself.
|
|
28
|
+
- `learningHooks({ suggest, learn })`: `suggest` adds the team's matching skills, knowledge and apps to context before each turn (`belt:suggest`); `learn` saves reusable knowledge from the conversation to the team's registry every 10th user turn and before compaction (`belt:extract`). Both are off unless set.
|
|
29
|
+
- `BuiltinHookBeltExtract`.
|
|
30
|
+
|
|
10
31
|
## [0.14.1] - 2026-10-01
|
|
11
32
|
|
|
12
33
|
### Added
|
package/dist/agent/actions.js
CHANGED
|
@@ -386,6 +386,42 @@ export function createActions(ctx) {
|
|
|
386
386
|
throw error;
|
|
387
387
|
}
|
|
388
388
|
},
|
|
389
|
+
updateChatSettings: async (settings) => {
|
|
390
|
+
const chatId = getChatId();
|
|
391
|
+
if (!chatId) {
|
|
392
|
+
console.error('[AgentSDK] Cannot change chat settings without a chatId');
|
|
393
|
+
return;
|
|
394
|
+
}
|
|
395
|
+
try {
|
|
396
|
+
// The response carries the chat without its messages: update the
|
|
397
|
+
// chat and keep the conversation on screen.
|
|
398
|
+
dispatch({ type: 'UPDATE_CHAT', payload: await api.updateChatSettings(client, chatId, settings) });
|
|
399
|
+
}
|
|
400
|
+
catch (error) {
|
|
401
|
+
console.error('[AgentSDK] Failed to change chat settings:', error);
|
|
402
|
+
const err = error instanceof Error ? error : new Error('Failed to change chat settings');
|
|
403
|
+
dispatch({ type: 'SET_ERROR', payload: err.message });
|
|
404
|
+
callbacks.onError?.(err);
|
|
405
|
+
throw error;
|
|
406
|
+
}
|
|
407
|
+
},
|
|
408
|
+
switchAgent: async (agentRef) => {
|
|
409
|
+
const chatId = getChatId();
|
|
410
|
+
if (!chatId) {
|
|
411
|
+
console.error('[AgentSDK] Cannot switch the agent without a chatId');
|
|
412
|
+
return;
|
|
413
|
+
}
|
|
414
|
+
try {
|
|
415
|
+
dispatch({ type: 'UPDATE_CHAT', payload: await api.setAgent(client, chatId, agentRef) });
|
|
416
|
+
}
|
|
417
|
+
catch (error) {
|
|
418
|
+
console.error('[AgentSDK] Failed to switch the agent:', error);
|
|
419
|
+
const err = error instanceof Error ? error : new Error('Failed to switch the agent');
|
|
420
|
+
dispatch({ type: 'SET_ERROR', payload: err.message });
|
|
421
|
+
callbacks.onError?.(err);
|
|
422
|
+
throw error;
|
|
423
|
+
}
|
|
424
|
+
},
|
|
389
425
|
cancelMessage: async (messageId) => {
|
|
390
426
|
try {
|
|
391
427
|
await api.cancelMessage(client, messageId);
|
package/dist/agent/api.d.ts
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*
|
|
8
8
|
* /agents/run stays for A2A/programmatic use.
|
|
9
9
|
*/
|
|
10
|
-
import type { ChatDTO, ChatMessageDTO, InterruptDTO } from '../types';
|
|
10
|
+
import type { ChatDTO, ChatMessageDTO, ChatSettingsRequest, InterruptDTO } from '../types';
|
|
11
11
|
import type { AgentOptions, AgentClient, AgentInfo, FileRef } from './types';
|
|
12
12
|
export interface SendResult {
|
|
13
13
|
chatId: string;
|
|
@@ -47,6 +47,7 @@ export declare function submitToolResult(client: AgentClient, toolInvocationId:
|
|
|
47
47
|
export declare function approveTool(client: AgentClient, toolInvocationId: string): Promise<void>;
|
|
48
48
|
export declare function rejectTool(client: AgentClient, toolInvocationId: string, reason?: string): Promise<void>;
|
|
49
49
|
export declare function alwaysAllowTool(client: AgentClient, chatId: string, toolInvocationId: string, toolName: string): Promise<void>;
|
|
50
|
+
export declare function updateChatSettings(client: AgentClient, chatId: string, settings: ChatSettingsRequest): Promise<ChatDTO>;
|
|
50
51
|
export declare function resolveInterrupt(client: AgentClient, interruptId: string, decision: 'allow' | 'deny'): Promise<InterruptDTO>;
|
|
51
52
|
export declare function listRunInterrupts(client: AgentClient, runId: string): Promise<InterruptDTO[]>;
|
|
52
53
|
export declare function uploadFile(client: AgentClient, file: globalThis.File): Promise<FileRef>;
|
package/dist/agent/api.js
CHANGED
|
@@ -156,6 +156,10 @@ export async function alwaysAllowTool(client, chatId, toolInvocationId, toolName
|
|
|
156
156
|
data: { tool_name: toolName }
|
|
157
157
|
});
|
|
158
158
|
}
|
|
159
|
+
export async function updateChatSettings(client, chatId, settings) {
|
|
160
|
+
const resp = await client.http.request('post', `/chats/${chatId}/settings`, { data: settings });
|
|
161
|
+
return resp.data;
|
|
162
|
+
}
|
|
159
163
|
// =========================================================================
|
|
160
164
|
// Interrupt operations
|
|
161
165
|
// =========================================================================
|
package/dist/agent/types.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Public types for the Agent chat module.
|
|
5
5
|
*/
|
|
6
6
|
import type { Dispatch } from 'react';
|
|
7
|
-
import type { AgentRunDTO, AgentVersionDTO, ChatDTO, ChatMessageDTO, AgentTool, AgentConfigInput as GeneratedAgentConfig, CoreAppConfigInput as CoreAppConfig, FileRef, ElicitResult } from '../types';
|
|
7
|
+
import type { AgentRunDTO, AgentVersionDTO, ChatDTO, ChatMessageDTO, ChatSettingsRequest, AgentTool, AgentConfigInput as GeneratedAgentConfig, CoreAppConfigInput as CoreAppConfig, FileRef, ElicitResult } from '../types';
|
|
8
8
|
import type { HttpClient } from '../http/client';
|
|
9
9
|
import type { StreamableManager } from '../http/streamable';
|
|
10
10
|
import type { PollManager } from '../http/poll';
|
|
@@ -134,6 +134,10 @@ export interface AgentChatActions {
|
|
|
134
134
|
rejectTool: (toolInvocationId: string, reason?: string) => Promise<void>;
|
|
135
135
|
/** Always allow a tool for this chat (approves + auto-approves future invocations) */
|
|
136
136
|
alwaysAllowTool: (toolInvocationId: string, toolName: string) => Promise<void>;
|
|
137
|
+
/** Change this chat's settings, e.g. allow_all_tools (switching it on approves the calls waiting) */
|
|
138
|
+
updateChatSettings: (settings: ChatSettingsRequest) => Promise<void>;
|
|
139
|
+
/** Hand this chat to another agent (namespace/name); the next message goes to it. Agents our loop runs only. */
|
|
140
|
+
switchAgent: (agentRef: string) => Promise<void>;
|
|
137
141
|
/** Cancel a queued message before the agent processes it */
|
|
138
142
|
cancelMessage: (messageId: string) => Promise<void>;
|
|
139
143
|
/** Resolve an interrupt gate (allow or deny) */
|
package/dist/hook-builder.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hook Builder - Fluent API for defining lifecycle hooks
|
|
3
3
|
*/
|
|
4
|
-
import { LifecycleHookConfig, HookEvent } from './types';
|
|
4
|
+
import { LifecycleHookConfig, HookEvent, BuiltinHook } from './types';
|
|
5
5
|
export declare class LifecycleHookBuilder {
|
|
6
6
|
private event;
|
|
7
7
|
private handlerType;
|
|
@@ -13,6 +13,8 @@ export declare class LifecycleHookBuilder {
|
|
|
13
13
|
webhook(url: string): this;
|
|
14
14
|
/** Set handler to a task (agent ref) */
|
|
15
15
|
task(agentRef: string): this;
|
|
16
|
+
/** Set handler to a builtin the platform runs itself (e.g. belt:suggest) */
|
|
17
|
+
builtin(name: BuiltinHook): this;
|
|
16
18
|
/** Set async execution */
|
|
17
19
|
async(enabled: boolean): this;
|
|
18
20
|
/** Set handler timeout in seconds */
|
|
@@ -21,3 +23,14 @@ export declare class LifecycleHookBuilder {
|
|
|
21
23
|
}
|
|
22
24
|
/** Create a lifecycle hook for an agent event */
|
|
23
25
|
export declare const lifecycleHook: (event: HookEvent) => LifecycleHookBuilder;
|
|
26
|
+
/**
|
|
27
|
+
* The built-in learning hooks, attached to the events each one runs on.
|
|
28
|
+
* - `suggest`: before each turn, add the team's matching skills, knowledge and apps to context.
|
|
29
|
+
* - `learn`: every 10th user turn and before compaction, save reusable knowledge from the
|
|
30
|
+
* conversation to the team's registry, deduplicated. Runs on the agent's own model, and only
|
|
31
|
+
* for chats by the agent's owning team.
|
|
32
|
+
*/
|
|
33
|
+
export declare function learningHooks(opts: {
|
|
34
|
+
suggest?: boolean;
|
|
35
|
+
learn?: boolean;
|
|
36
|
+
}): LifecycleHookConfig[];
|
package/dist/hook-builder.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hook Builder - Fluent API for defining lifecycle hooks
|
|
3
3
|
*/
|
|
4
|
-
import { HookHandlerWebhook, HookHandlerTask } from './types';
|
|
4
|
+
import { HookHandlerWebhook, HookHandlerTask, HookHandlerBuiltin, BuiltinHookBeltSuggest, BuiltinHookBeltExtract, HookEventTurnStart, HookEventAgentComplete, HookEventPreCompact, } from './types';
|
|
5
5
|
// =============================================================================
|
|
6
6
|
// Hook Builder
|
|
7
7
|
// =============================================================================
|
|
@@ -23,6 +23,12 @@ export class LifecycleHookBuilder {
|
|
|
23
23
|
this.handlerRef = agentRef;
|
|
24
24
|
return this;
|
|
25
25
|
}
|
|
26
|
+
/** Set handler to a builtin the platform runs itself (e.g. belt:suggest) */
|
|
27
|
+
builtin(name) {
|
|
28
|
+
this.handlerType = HookHandlerBuiltin;
|
|
29
|
+
this.handlerRef = name;
|
|
30
|
+
return this;
|
|
31
|
+
}
|
|
26
32
|
/** Set async execution */
|
|
27
33
|
async(enabled) {
|
|
28
34
|
this.isAsync = enabled;
|
|
@@ -48,3 +54,22 @@ export class LifecycleHookBuilder {
|
|
|
48
54
|
// =============================================================================
|
|
49
55
|
/** Create a lifecycle hook for an agent event */
|
|
50
56
|
export const lifecycleHook = (event) => new LifecycleHookBuilder(event);
|
|
57
|
+
/**
|
|
58
|
+
* The built-in learning hooks, attached to the events each one runs on.
|
|
59
|
+
* - `suggest`: before each turn, add the team's matching skills, knowledge and apps to context.
|
|
60
|
+
* - `learn`: every 10th user turn and before compaction, save reusable knowledge from the
|
|
61
|
+
* conversation to the team's registry, deduplicated. Runs on the agent's own model, and only
|
|
62
|
+
* for chats by the agent's owning team.
|
|
63
|
+
*/
|
|
64
|
+
export function learningHooks(opts) {
|
|
65
|
+
const hooks = [];
|
|
66
|
+
if (opts.suggest) {
|
|
67
|
+
hooks.push(lifecycleHook(HookEventTurnStart).builtin(BuiltinHookBeltSuggest).build());
|
|
68
|
+
}
|
|
69
|
+
if (opts.learn) {
|
|
70
|
+
for (const event of [HookEventAgentComplete, HookEventPreCompact]) {
|
|
71
|
+
hooks.push(lifecycleHook(event).builtin(BuiltinHookBeltExtract).build());
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
return hooks;
|
|
75
|
+
}
|
package/dist/index.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export { isLiveField, parseMediaType, pcmFormat, splitLiveSchema, binaryLiveFiel
|
|
|
31
31
|
export type { JsonSchema, MediaType, PCMFormat, LiveField } from './live/schema';
|
|
32
32
|
export { tool, appTool, agentTool, webhookTool, httpTool, callTool, mcpTool, internalTools, string, number, integer, boolean, enumOf, object, array, optional, } from './tool-builder';
|
|
33
33
|
export type { ClientTool, ClientToolHandler } from './tool-builder';
|
|
34
|
-
export { lifecycleHook } from './hook-builder';
|
|
34
|
+
export { lifecycleHook, learningHooks } from './hook-builder';
|
|
35
35
|
export type { LifecycleHookBuilder } from './hook-builder';
|
|
36
36
|
export { DeltaAccumulator, createLLMDeltaAccumulator, type DeltaEvent, type FieldTags, type FieldTagsRegistry } from './delta';
|
|
37
37
|
export { parseStatus, isTerminalStatus, isChatBusy, isAwaitingHuman, isRunTerminal, isRunInterrupted, isRunSettled, isRunWorking, isMessageTerminal, pendingApprovals, } from './utils';
|
package/dist/index.js
CHANGED
|
@@ -33,7 +33,7 @@ export { isLiveField, parseMediaType, pcmFormat, splitLiveSchema, binaryLiveFiel
|
|
|
33
33
|
// Tool Builder (fluent API)
|
|
34
34
|
export { tool, appTool, agentTool, webhookTool, httpTool, callTool, mcpTool, internalTools, string, number, integer, boolean, enumOf, object, array, optional, } from './tool-builder';
|
|
35
35
|
// Hook Builder (fluent API)
|
|
36
|
-
export { lifecycleHook } from './hook-builder';
|
|
36
|
+
export { lifecycleHook, learningHooks } from './hook-builder';
|
|
37
37
|
// Delta accumulator for streaming responses
|
|
38
38
|
export { DeltaAccumulator, createLLMDeltaAccumulator } from './delta';
|
|
39
39
|
// Status utilities (handle both int and string status values)
|
package/dist/types.d.ts
CHANGED
|
@@ -7,6 +7,10 @@ export interface InternalToolsConfig {
|
|
|
7
7
|
widget?: boolean;
|
|
8
8
|
finish?: boolean;
|
|
9
9
|
skills?: boolean;
|
|
10
|
+
/**
|
|
11
|
+
* Deprecated: ignored. Host context is disabled until embed context has a
|
|
12
|
+
* replacement; agents are never offered get_host_context or send_to_host.
|
|
13
|
+
*/
|
|
10
14
|
host_context?: boolean;
|
|
11
15
|
meta?: boolean;
|
|
12
16
|
artifact?: boolean;
|
|
@@ -548,6 +552,18 @@ export interface MeResponse {
|
|
|
548
552
|
*/
|
|
549
553
|
team_view?: TeamViewDTO;
|
|
550
554
|
diagnostics?: DiagnosticsConfig;
|
|
555
|
+
/**
|
|
556
|
+
* PersonalTeamID is the caller's personal workspace, empty for a managed
|
|
557
|
+
* account, which has none.
|
|
558
|
+
*/
|
|
559
|
+
personal_team_id?: string;
|
|
560
|
+
/**
|
|
561
|
+
* NeedsUsername: the caller has not chosen a username yet (their
|
|
562
|
+
* personal workspace's setup is incomplete). Every new account picks one
|
|
563
|
+
* before landing, whichever team it lands in (an invite's included), via
|
|
564
|
+
* POST /teams/{personal_team_id}/complete-setup.
|
|
565
|
+
*/
|
|
566
|
+
needs_username: boolean;
|
|
551
567
|
}
|
|
552
568
|
export interface TeamCreateRequest {
|
|
553
569
|
name: string;
|
|
@@ -662,6 +678,11 @@ export interface CreateApiKeyRequest {
|
|
|
662
678
|
name: string;
|
|
663
679
|
expires_at?: string;
|
|
664
680
|
scopes?: string[];
|
|
681
|
+
/**
|
|
682
|
+
* Scope is who the key acts as. Empty means user (a personal key);
|
|
683
|
+
* workspace requires manage_keys.
|
|
684
|
+
*/
|
|
685
|
+
scope?: ApiKeyScope;
|
|
665
686
|
}
|
|
666
687
|
/**
|
|
667
688
|
* EstimateCostRequest is the request for POST /store/apps/{appId}/estimate.
|
|
@@ -1038,10 +1059,24 @@ export interface ScopePreset {
|
|
|
1038
1059
|
export interface ApiKeyDTO extends BaseModelDTO, PermissionModelDTO {
|
|
1039
1060
|
name: string;
|
|
1040
1061
|
key: string;
|
|
1041
|
-
|
|
1062
|
+
/**
|
|
1063
|
+
* LastUsedAt is absent for a key that has never been used.
|
|
1064
|
+
*/
|
|
1065
|
+
last_used_at?: string;
|
|
1042
1066
|
expires_at?: string;
|
|
1043
1067
|
scopes: Scope[];
|
|
1044
1068
|
source?: string;
|
|
1069
|
+
/**
|
|
1070
|
+
* Scope is who the key acts as: its creator (user) or the workspace.
|
|
1071
|
+
*/
|
|
1072
|
+
scope: ApiKeyScope;
|
|
1073
|
+
/**
|
|
1074
|
+
* CreatedBy is the person who created the key; Creator is that person,
|
|
1075
|
+
* set on lists. On a workspace key user_id is the workspace's service
|
|
1076
|
+
* account, so these are what show who made it.
|
|
1077
|
+
*/
|
|
1078
|
+
created_by: string;
|
|
1079
|
+
creator?: TeamMemberUserDTO;
|
|
1045
1080
|
}
|
|
1046
1081
|
/**
|
|
1047
1082
|
* AppPricing configures all pricing using CEL expressions.
|
|
@@ -1712,6 +1747,36 @@ export interface SubmitBountyResponse {
|
|
|
1712
1747
|
submission: BountySubmissionDTO;
|
|
1713
1748
|
granted_amount?: number;
|
|
1714
1749
|
}
|
|
1750
|
+
/**
|
|
1751
|
+
* ChatSettingsRequest changes a chat's settings. A field left out is left as
|
|
1752
|
+
* it is.
|
|
1753
|
+
*/
|
|
1754
|
+
export interface ChatSettingsRequest {
|
|
1755
|
+
/**
|
|
1756
|
+
* Name renames the chat. It cannot be empty.
|
|
1757
|
+
*/
|
|
1758
|
+
name?: string;
|
|
1759
|
+
/**
|
|
1760
|
+
* Visibility is who can open the chat: private (only you), team (your
|
|
1761
|
+
* workspace) or public (anyone with the link).
|
|
1762
|
+
*/
|
|
1763
|
+
visibility?: Visibility;
|
|
1764
|
+
/**
|
|
1765
|
+
* AllowAllTools runs every tool call without asking. Switching it on also
|
|
1766
|
+
* approves the calls already waiting.
|
|
1767
|
+
*/
|
|
1768
|
+
allow_all_tools?: boolean;
|
|
1769
|
+
/**
|
|
1770
|
+
* DisableHooks stops the agent's lifecycle hooks (suggest, learn,
|
|
1771
|
+
* webhooks, gates) firing in this chat.
|
|
1772
|
+
*/
|
|
1773
|
+
disable_hooks?: boolean;
|
|
1774
|
+
/**
|
|
1775
|
+
* ForgetMemory removes these keys from the chat's memory, the notes the
|
|
1776
|
+
* agent keeps for this conversation. A key that is not there is ignored.
|
|
1777
|
+
*/
|
|
1778
|
+
forget_memory?: string[];
|
|
1779
|
+
}
|
|
1715
1780
|
/**
|
|
1716
1781
|
* ChatDTO for API responses
|
|
1717
1782
|
*/
|
|
@@ -2065,7 +2130,7 @@ export interface EntitlementErrorMeta {
|
|
|
2065
2130
|
* and APIError.Code on the legacy envelope. Clients branch on these, so a
|
|
2066
2131
|
* code is a named const here, where it generates into models and the SDKs.
|
|
2067
2132
|
*/
|
|
2068
|
-
export type ErrorCode = "invalid_request" | "validation_error" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "name_conflict" | "already_exists" | "not_configured" | "method_not_allowed" | "rate_limited" | "internal_error" | "team_role_required" | "blocked_by_usage_policy" | "otp_required" | "mcp_auth_expired" | "limit_exceeded" | "feature_not_available" | "entitlement_unavailable" | "payment_required" | "payment_method_required" | "agents_disabled" | "remote_offline" | "remote_timeout" | "harness_not_drivable" | "harness_too_old";
|
|
2133
|
+
export type ErrorCode = "invalid_request" | "validation_error" | "unauthorized" | "forbidden" | "not_found" | "conflict" | "name_conflict" | "already_exists" | "not_configured" | "method_not_allowed" | "rate_limited" | "internal_error" | "team_role_required" | "blocked_by_usage_policy" | "last_owner" | "account_deactivated" | "account_banned" | "person_required" | "otp_required" | "mcp_auth_expired" | "limit_exceeded" | "feature_not_available" | "entitlement_unavailable" | "payment_required" | "payment_method_required" | "agents_disabled" | "remote_offline" | "remote_timeout" | "harness_not_drivable" | "harness_too_old";
|
|
2069
2134
|
export declare const ErrorCodeInvalidRequest: ErrorCode;
|
|
2070
2135
|
export declare const ErrorCodeValidationError: ErrorCode;
|
|
2071
2136
|
export declare const ErrorCodeUnauthorized: ErrorCode;
|
|
@@ -2089,6 +2154,25 @@ export declare const ErrorCodeTeamRoleRequired: ErrorCode;
|
|
|
2089
2154
|
* usage policy. The message names who to ask.
|
|
2090
2155
|
*/
|
|
2091
2156
|
export declare const ErrorCodeBlockedByUsagePolicy: ErrorCode;
|
|
2157
|
+
/**
|
|
2158
|
+
* ErrorCodeLastOwner (400): the change would leave a team (or an org's
|
|
2159
|
+
* workspace) without an owner.
|
|
2160
|
+
*/
|
|
2161
|
+
export declare const ErrorCodeLastOwner: ErrorCode;
|
|
2162
|
+
/**
|
|
2163
|
+
* ErrorCodeAccountDeactivated (403): an org deactivated this managed
|
|
2164
|
+
* account; sign-in and every request are refused until an org admin
|
|
2165
|
+
* reactivates it. ErrorCodeAccountBanned (403): the platform suspended
|
|
2166
|
+
* the account.
|
|
2167
|
+
*/
|
|
2168
|
+
export declare const ErrorCodeAccountDeactivated: ErrorCode;
|
|
2169
|
+
export declare const ErrorCodeAccountBanned: ErrorCode;
|
|
2170
|
+
/**
|
|
2171
|
+
* ErrorCodePersonRequired (403): only a person may do this, and the
|
|
2172
|
+
* caller is a workspace's service account (a workspace API key), or the
|
|
2173
|
+
* account is one and cannot sign in.
|
|
2174
|
+
*/
|
|
2175
|
+
export declare const ErrorCodePersonRequired: ErrorCode;
|
|
2092
2176
|
export declare const ErrorCodeOTPRequired: ErrorCode;
|
|
2093
2177
|
export declare const ErrorCodeMCPAuthExpired: ErrorCode;
|
|
2094
2178
|
/**
|
|
@@ -2498,6 +2582,7 @@ export interface InstanceDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
2498
2582
|
status: InstanceStatus;
|
|
2499
2583
|
cost_estimate: string;
|
|
2500
2584
|
hourly_price: number;
|
|
2585
|
+
rental_type?: InstanceRentalType;
|
|
2501
2586
|
template_id?: string;
|
|
2502
2587
|
volume_ids?: string[];
|
|
2503
2588
|
tags?: string[];
|
|
@@ -2519,6 +2604,16 @@ export interface InstanceTypeDTO extends BaseModelDTO, PermissionModelDTO {
|
|
|
2519
2604
|
cloud_instance_type: string;
|
|
2520
2605
|
deployment_type: InstanceTypeDeploymentType;
|
|
2521
2606
|
hourly_price: number;
|
|
2607
|
+
/**
|
|
2608
|
+
* RentalType is set on engine-picker offers: Region and HourlyPrice are
|
|
2609
|
+
* for this rental type. Empty on the raw catalog.
|
|
2610
|
+
*/
|
|
2611
|
+
rental_type?: InstanceRentalType;
|
|
2612
|
+
/**
|
|
2613
|
+
* Options lists every in-stock provider for an engine-picker offer,
|
|
2614
|
+
* cheapest first; the offer itself is the first one. Empty on the raw catalog.
|
|
2615
|
+
*/
|
|
2616
|
+
options?: InstanceTypeOptionDTO[];
|
|
2522
2617
|
configuration?: InstanceTypeConfiguration;
|
|
2523
2618
|
availability: InstanceTypeAvailability[];
|
|
2524
2619
|
boot_time?: InstanceTypeBootTime;
|
|
@@ -2538,6 +2633,33 @@ export interface InstanceTypeConfiguration {
|
|
|
2538
2633
|
export interface InstanceTypeAvailability {
|
|
2539
2634
|
available: boolean;
|
|
2540
2635
|
region: string;
|
|
2636
|
+
rental_type?: InstanceRentalType;
|
|
2637
|
+
/**
|
|
2638
|
+
* HourlyPrice is the spot price in cents, set on spot entries only.
|
|
2639
|
+
*/
|
|
2640
|
+
hourly_price?: number;
|
|
2641
|
+
}
|
|
2642
|
+
/**
|
|
2643
|
+
* InstanceTypeOptionDTO is one launchable provider behind an engine-picker
|
|
2644
|
+
* offer. Launch with its cloud and shade_instance_type, one of its regions and
|
|
2645
|
+
* the offer's rental_type.
|
|
2646
|
+
*/
|
|
2647
|
+
export interface InstanceTypeOptionDTO {
|
|
2648
|
+
cloud: InstanceCloudProvider;
|
|
2649
|
+
cloud_logo_url?: string;
|
|
2650
|
+
shade_instance_type: string;
|
|
2651
|
+
cloud_instance_type: string;
|
|
2652
|
+
hourly_price: number;
|
|
2653
|
+
configuration?: InstanceTypeConfiguration;
|
|
2654
|
+
regions: InstanceTypeOptionRegion[];
|
|
2655
|
+
}
|
|
2656
|
+
/**
|
|
2657
|
+
* InstanceTypeOptionRegion is an in-stock region and its hourly price in
|
|
2658
|
+
* cents. Spot prices can differ by region.
|
|
2659
|
+
*/
|
|
2660
|
+
export interface InstanceTypeOptionRegion {
|
|
2661
|
+
region: string;
|
|
2662
|
+
hourly_price: number;
|
|
2541
2663
|
}
|
|
2542
2664
|
export interface InstanceTypeBootTime {
|
|
2543
2665
|
average_seconds: number;
|
|
@@ -2899,6 +3021,17 @@ export interface MCPServerDTO {
|
|
|
2899
3021
|
auth_type: MCPServerAuthType;
|
|
2900
3022
|
oauth_client_id?: string;
|
|
2901
3023
|
default_scopes: StringSlice;
|
|
3024
|
+
/**
|
|
3025
|
+
* Headers are static HTTP headers sent on every request to the server,
|
|
3026
|
+
* set by the team's admins (e.g. X-MCP-Toolsets, X-MCP-Readonly).
|
|
3027
|
+
*/
|
|
3028
|
+
headers?: {
|
|
3029
|
+
[key: string]: string;
|
|
3030
|
+
};
|
|
3031
|
+
/**
|
|
3032
|
+
* Setup is what the server's directory entry knows about setting it up.
|
|
3033
|
+
*/
|
|
3034
|
+
setup?: MCPServerSetup;
|
|
2902
3035
|
documentation_url: string;
|
|
2903
3036
|
connection_status?: string;
|
|
2904
3037
|
/**
|
|
@@ -2907,6 +3040,27 @@ export interface MCPServerDTO {
|
|
|
2907
3040
|
*/
|
|
2908
3041
|
connection_scope?: CredentialScope;
|
|
2909
3042
|
}
|
|
3043
|
+
/**
|
|
3044
|
+
* MCPServerSetup is what a server's directory entry knows about setting the
|
|
3045
|
+
* server up, as data: shown to whoever connects a server on the same host,
|
|
3046
|
+
* so no server's specifics live in code.
|
|
3047
|
+
*/
|
|
3048
|
+
export interface MCPServerSetup {
|
|
3049
|
+
/**
|
|
3050
|
+
* ResourceAppID is the id the server's API has at its authorization
|
|
3051
|
+
* server, which an organization must know before it can approve access
|
|
3052
|
+
* (for a Microsoft Entra resource: the application id a tenant needs a
|
|
3053
|
+
* service principal for).
|
|
3054
|
+
*/
|
|
3055
|
+
resource_app_id?: string;
|
|
3056
|
+
/**
|
|
3057
|
+
* RecommendedHeaders are the least-privilege static headers the server
|
|
3058
|
+
* documents (e.g. X-MCP-Toolsets), offered by the headers editor.
|
|
3059
|
+
*/
|
|
3060
|
+
recommended_headers?: {
|
|
3061
|
+
[key: string]: string;
|
|
3062
|
+
};
|
|
3063
|
+
}
|
|
2910
3064
|
/**
|
|
2911
3065
|
* NotificationDTO is the data transfer object
|
|
2912
3066
|
*/
|
|
@@ -3778,6 +3932,12 @@ export interface TeamDTO extends BaseModelDTO {
|
|
|
3778
3932
|
* OrgID of the org this team belongs to ('' = standalone team).
|
|
3779
3933
|
*/
|
|
3780
3934
|
org_id?: string;
|
|
3935
|
+
/**
|
|
3936
|
+
* OrgName is that org's display name (its workspace's name), set on the
|
|
3937
|
+
* caller's team list (/teams) so a member of one of its teams sees whose
|
|
3938
|
+
* org it is without belonging to the org workspace.
|
|
3939
|
+
*/
|
|
3940
|
+
org_name?: string;
|
|
3781
3941
|
/**
|
|
3782
3942
|
* UsagePolicyID of the team's own usage policy ('' = inherit the org's,
|
|
3783
3943
|
* or ungoverned when standalone, INF-808).
|
|
@@ -3972,6 +4132,11 @@ export interface UserDTO extends BaseModelDTO {
|
|
|
3972
4132
|
* cannot create teams/orgs).
|
|
3973
4133
|
*/
|
|
3974
4134
|
managed_by_org_id?: string;
|
|
4135
|
+
/**
|
|
4136
|
+
* ServiceTeamID: set on a workspace's service account, the principal its
|
|
4137
|
+
* workspace API keys act as.
|
|
4138
|
+
*/
|
|
4139
|
+
service_team_id?: string;
|
|
3975
4140
|
email: string;
|
|
3976
4141
|
name: string;
|
|
3977
4142
|
full_name: string;
|
|
@@ -4182,6 +4347,23 @@ export interface A2UISurface {
|
|
|
4182
4347
|
components: A2UIComponent[];
|
|
4183
4348
|
dataModel?: any;
|
|
4184
4349
|
}
|
|
4350
|
+
/**
|
|
4351
|
+
* ApiKeyScope is who an API key acts as, chosen when it is created, the way a
|
|
4352
|
+
* credential's scope says who owns it.
|
|
4353
|
+
*/
|
|
4354
|
+
export type ApiKeyScope = "user" | "workspace";
|
|
4355
|
+
/**
|
|
4356
|
+
* ApiKeyScopeUser is a personal key: it acts as the person who created it,
|
|
4357
|
+
* in the workspace it was created in, and ends when they can no longer
|
|
4358
|
+
* act there. Device-auth, `belt auth token`, OAuth and engine keys are
|
|
4359
|
+
* always personal.
|
|
4360
|
+
*/
|
|
4361
|
+
export declare const ApiKeyScopeUser: ApiKeyScope;
|
|
4362
|
+
/**
|
|
4363
|
+
* ApiKeyScopeWorkspace is a workspace key: it acts as the workspace's
|
|
4364
|
+
* service account, not a person, and outlives the admin who created it.
|
|
4365
|
+
*/
|
|
4366
|
+
export declare const ApiKeyScopeWorkspace: ApiKeyScope;
|
|
4185
4367
|
export type AppCategory = "image" | "video" | "audio" | "text" | "chat" | "3d" | "other" | "flow";
|
|
4186
4368
|
export declare const AppCategoryImage: AppCategory;
|
|
4187
4369
|
export declare const AppCategoryVideo: AppCategory;
|
|
@@ -4315,6 +4497,17 @@ export interface ChatData {
|
|
|
4315
4497
|
plan_steps: PlanStep[];
|
|
4316
4498
|
memory: StringEncodedMap;
|
|
4317
4499
|
always_allowed_tools: string[];
|
|
4500
|
+
/**
|
|
4501
|
+
* AllowAllTools runs every tool call in this chat without asking. The
|
|
4502
|
+
* person switches it in the chat's settings, and off again at any time.
|
|
4503
|
+
*/
|
|
4504
|
+
allow_all_tools: boolean;
|
|
4505
|
+
/**
|
|
4506
|
+
* DisableHooks stops the agent's lifecycle hooks firing in this chat. A
|
|
4507
|
+
* review branch is opened with it set, so a review cannot fire the hook
|
|
4508
|
+
* that reviews it.
|
|
4509
|
+
*/
|
|
4510
|
+
disable_hooks?: boolean;
|
|
4318
4511
|
}
|
|
4319
4512
|
/**
|
|
4320
4513
|
* PlanStep represents a step in an agent's execution plan
|
|
@@ -4785,6 +4978,13 @@ export type InstanceTypeDeploymentType = "vm" | "container" | "baremetal";
|
|
|
4785
4978
|
export declare const InstanceTypeDeploymentTypeVM: InstanceTypeDeploymentType;
|
|
4786
4979
|
export declare const InstanceTypeDeploymentTypeContainer: InstanceTypeDeploymentType;
|
|
4787
4980
|
export declare const InstanceTypeDeploymentTypeBaremetal: InstanceTypeDeploymentType;
|
|
4981
|
+
/**
|
|
4982
|
+
* InstanceRentalType is how a Shadeform instance is rented. Spot is discounted
|
|
4983
|
+
* but can be reclaimed at any time.
|
|
4984
|
+
*/
|
|
4985
|
+
export type InstanceRentalType = "on_demand" | "spot";
|
|
4986
|
+
export declare const InstanceRentalTypeOnDemand: InstanceRentalType;
|
|
4987
|
+
export declare const InstanceRentalTypeSpot: InstanceRentalType;
|
|
4788
4988
|
export type AppSessionStatus = "active" | "ended" | "expired";
|
|
4789
4989
|
export declare const AppSessionStatusActive: AppSessionStatus;
|
|
4790
4990
|
export declare const AppSessionStatusEnded: AppSessionStatus;
|
|
@@ -5304,11 +5504,24 @@ export declare const TeamKindOrg: TeamKind;
|
|
|
5304
5504
|
* TeamCapability is one thing a caller may do to a team's settings. The set is
|
|
5305
5505
|
* closed; team.Subject.Can is the only place that grants them.
|
|
5306
5506
|
*/
|
|
5307
|
-
export type TeamCapability = "edit_profile" | "manage_members" | "view_members" | "manage_keys" | "manage_vault" | "view_billing" | "manage_billing" | "view_policy" | "manage_policy" | "manage_org" | "manage_sso" | "archive" | "create_team" | "create_org" | "connect_org_credential" | "connect_platform_credential";
|
|
5507
|
+
export type TeamCapability = "edit_profile" | "manage_members" | "manage_admins" | "view_members" | "manage_keys" | "create_keys" | "manage_vault" | "view_billing" | "manage_billing" | "view_policy" | "manage_policy" | "manage_org" | "manage_sso" | "archive" | "create_team" | "create_org" | "connect_org_credential" | "connect_platform_credential";
|
|
5308
5508
|
export declare const TeamCapabilityEditProfile: TeamCapability;
|
|
5309
5509
|
export declare const TeamCapabilityManageMembers: TeamCapability;
|
|
5510
|
+
/**
|
|
5511
|
+
* ManageAdmins: granting, changing and removing the admin and owner
|
|
5512
|
+
* roles. Owners only; admins manage plain members.
|
|
5513
|
+
*/
|
|
5514
|
+
export declare const TeamCapabilityManageAdmins: TeamCapability;
|
|
5310
5515
|
export declare const TeamCapabilityViewMembers: TeamCapability;
|
|
5516
|
+
/**
|
|
5517
|
+
* ManageKeys: the workspace's keys. Creating workspace keys, and listing
|
|
5518
|
+
* and revoking every key of the workspace, whoever created it.
|
|
5519
|
+
*/
|
|
5311
5520
|
export declare const TeamCapabilityManageKeys: TeamCapability;
|
|
5521
|
+
/**
|
|
5522
|
+
* CreateKeys: creating, listing and revoking your own personal keys.
|
|
5523
|
+
*/
|
|
5524
|
+
export declare const TeamCapabilityCreateKeys: TeamCapability;
|
|
5312
5525
|
export declare const TeamCapabilityManageVault: TeamCapability;
|
|
5313
5526
|
export declare const TeamCapabilityViewBilling: TeamCapability;
|
|
5314
5527
|
export declare const TeamCapabilityManageBilling: TeamCapability;
|
|
@@ -5579,8 +5792,21 @@ export declare const HookHandlerBuiltin: HookHandlerType;
|
|
|
5579
5792
|
* agent config is validated against it, and clients enumerate it to show what
|
|
5580
5793
|
* an agent can switch on without hosting anything.
|
|
5581
5794
|
*/
|
|
5582
|
-
export type BuiltinHook = "belt:suggest";
|
|
5795
|
+
export type BuiltinHook = "belt:suggest" | "belt:extract";
|
|
5796
|
+
/**
|
|
5797
|
+
* BuiltinHookBeltSuggest searches the team's skills, knowledge and apps
|
|
5798
|
+
* for what the turn is about and injects the matches, so an agent picks up
|
|
5799
|
+
* procedural knowledge it was never prompted with.
|
|
5800
|
+
*/
|
|
5583
5801
|
export declare const BuiltinHookBeltSuggest: BuiltinHook;
|
|
5802
|
+
/**
|
|
5803
|
+
* BuiltinHookBeltExtract reviews the conversation for reusable knowledge
|
|
5804
|
+
* and saves it to the team's registry, deduplicated against what is
|
|
5805
|
+
* there, so belt:suggest can hand it back later. It runs in the
|
|
5806
|
+
* background: on agent.complete every tenth user turn, and before
|
|
5807
|
+
* compaction drops the turns it would have learned from.
|
|
5808
|
+
*/
|
|
5809
|
+
export declare const BuiltinHookBeltExtract: BuiltinHook;
|
|
5584
5810
|
/**
|
|
5585
5811
|
* BuiltinHookDefinition describes a builtin hook and where it may be used.
|
|
5586
5812
|
*/
|
package/dist/types.js
CHANGED
|
@@ -325,6 +325,25 @@ export const ErrorCodeTeamRoleRequired = "team_role_required";
|
|
|
325
325
|
* usage policy. The message names who to ask.
|
|
326
326
|
*/
|
|
327
327
|
export const ErrorCodeBlockedByUsagePolicy = "blocked_by_usage_policy";
|
|
328
|
+
/**
|
|
329
|
+
* ErrorCodeLastOwner (400): the change would leave a team (or an org's
|
|
330
|
+
* workspace) without an owner.
|
|
331
|
+
*/
|
|
332
|
+
export const ErrorCodeLastOwner = "last_owner";
|
|
333
|
+
/**
|
|
334
|
+
* ErrorCodeAccountDeactivated (403): an org deactivated this managed
|
|
335
|
+
* account; sign-in and every request are refused until an org admin
|
|
336
|
+
* reactivates it. ErrorCodeAccountBanned (403): the platform suspended
|
|
337
|
+
* the account.
|
|
338
|
+
*/
|
|
339
|
+
export const ErrorCodeAccountDeactivated = "account_deactivated";
|
|
340
|
+
export const ErrorCodeAccountBanned = "account_banned";
|
|
341
|
+
/**
|
|
342
|
+
* ErrorCodePersonRequired (403): only a person may do this, and the
|
|
343
|
+
* caller is a workspace's service account (a workspace API key), or the
|
|
344
|
+
* account is one and cannot sign in.
|
|
345
|
+
*/
|
|
346
|
+
export const ErrorCodePersonRequired = "person_required";
|
|
328
347
|
export const ErrorCodeOTPRequired = "otp_required";
|
|
329
348
|
export const ErrorCodeMCPAuthExpired = "mcp_auth_expired";
|
|
330
349
|
/**
|
|
@@ -500,6 +519,18 @@ export const A2UIForm = "Form";
|
|
|
500
519
|
* the viewer. Rendered from the artifact's /render endpoint.
|
|
501
520
|
*/
|
|
502
521
|
export const A2UIArtifact = "Artifact";
|
|
522
|
+
/**
|
|
523
|
+
* ApiKeyScopeUser is a personal key: it acts as the person who created it,
|
|
524
|
+
* in the workspace it was created in, and ends when they can no longer
|
|
525
|
+
* act there. Device-auth, `belt auth token`, OAuth and engine keys are
|
|
526
|
+
* always personal.
|
|
527
|
+
*/
|
|
528
|
+
export const ApiKeyScopeUser = "user";
|
|
529
|
+
/**
|
|
530
|
+
* ApiKeyScopeWorkspace is a workspace key: it acts as the workspace's
|
|
531
|
+
* service account, not a person, and outlives the admin who created it.
|
|
532
|
+
*/
|
|
533
|
+
export const ApiKeyScopeWorkspace = "workspace";
|
|
503
534
|
export const AppCategoryImage = "image";
|
|
504
535
|
export const AppCategoryVideo = "video";
|
|
505
536
|
export const AppCategoryAudio = "audio";
|
|
@@ -734,6 +765,8 @@ export const InstanceStatusDeleted = "deleted";
|
|
|
734
765
|
export const InstanceTypeDeploymentTypeVM = "vm";
|
|
735
766
|
export const InstanceTypeDeploymentTypeContainer = "container";
|
|
736
767
|
export const InstanceTypeDeploymentTypeBaremetal = "baremetal";
|
|
768
|
+
export const InstanceRentalTypeOnDemand = "on_demand";
|
|
769
|
+
export const InstanceRentalTypeSpot = "spot";
|
|
737
770
|
export const AppSessionStatusActive = "active";
|
|
738
771
|
export const AppSessionStatusEnded = "ended";
|
|
739
772
|
export const AppSessionStatusExpired = "expired";
|
|
@@ -1092,8 +1125,21 @@ export const TeamKindOrgMember = "org_member";
|
|
|
1092
1125
|
export const TeamKindOrg = "org";
|
|
1093
1126
|
export const TeamCapabilityEditProfile = "edit_profile";
|
|
1094
1127
|
export const TeamCapabilityManageMembers = "manage_members";
|
|
1128
|
+
/**
|
|
1129
|
+
* ManageAdmins: granting, changing and removing the admin and owner
|
|
1130
|
+
* roles. Owners only; admins manage plain members.
|
|
1131
|
+
*/
|
|
1132
|
+
export const TeamCapabilityManageAdmins = "manage_admins";
|
|
1095
1133
|
export const TeamCapabilityViewMembers = "view_members";
|
|
1134
|
+
/**
|
|
1135
|
+
* ManageKeys: the workspace's keys. Creating workspace keys, and listing
|
|
1136
|
+
* and revoking every key of the workspace, whoever created it.
|
|
1137
|
+
*/
|
|
1096
1138
|
export const TeamCapabilityManageKeys = "manage_keys";
|
|
1139
|
+
/**
|
|
1140
|
+
* CreateKeys: creating, listing and revoking your own personal keys.
|
|
1141
|
+
*/
|
|
1142
|
+
export const TeamCapabilityCreateKeys = "create_keys";
|
|
1097
1143
|
export const TeamCapabilityManageVault = "manage_vault";
|
|
1098
1144
|
export const TeamCapabilityViewBilling = "view_billing";
|
|
1099
1145
|
export const TeamCapabilityManageBilling = "manage_billing";
|
|
@@ -1201,7 +1247,20 @@ export const HookHandlerWebhook = "webhook";
|
|
|
1201
1247
|
export const HookHandlerTask = "task";
|
|
1202
1248
|
export const HookHandlerGate = "gate";
|
|
1203
1249
|
export const HookHandlerBuiltin = "builtin";
|
|
1250
|
+
/**
|
|
1251
|
+
* BuiltinHookBeltSuggest searches the team's skills, knowledge and apps
|
|
1252
|
+
* for what the turn is about and injects the matches, so an agent picks up
|
|
1253
|
+
* procedural knowledge it was never prompted with.
|
|
1254
|
+
*/
|
|
1204
1255
|
export const BuiltinHookBeltSuggest = "belt:suggest";
|
|
1256
|
+
/**
|
|
1257
|
+
* BuiltinHookBeltExtract reviews the conversation for reusable knowledge
|
|
1258
|
+
* and saves it to the team's registry, deduplicated against what is
|
|
1259
|
+
* there, so belt:suggest can hand it back later. It runs in the
|
|
1260
|
+
* background: on agent.complete every tenth user turn, and before
|
|
1261
|
+
* compaction drops the turns it would have learned from.
|
|
1262
|
+
*/
|
|
1263
|
+
export const BuiltinHookBeltExtract = "belt:extract";
|
|
1205
1264
|
export const ToolInvocationStatusPending = "pending";
|
|
1206
1265
|
export const ToolInvocationStatusInProgress = "in_progress";
|
|
1207
1266
|
export const ToolInvocationStatusAwaitingInput = "awaiting_input";
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inferencesh/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "Official JavaScript/TypeScript SDK for inference.sh - Run AI models with a simple API",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"types": "dist/index.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": {
|
|
10
|
-
"types": "./dist/index.d.ts",
|
|
11
10
|
"inference-src": "./src/index.ts",
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
12
|
"default": "./dist/index.js"
|
|
13
13
|
},
|
|
14
14
|
"./proxy": {
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"default": "./dist/proxy/hono.js"
|
|
29
29
|
},
|
|
30
30
|
"./proxy/remix": {
|
|
31
|
-
"types": "./dist/proxy/remix.d.ts",
|
|
32
31
|
"inference-src": "./src/proxy/remix.ts",
|
|
32
|
+
"types": "./dist/proxy/remix.d.ts",
|
|
33
33
|
"default": "./dist/proxy/remix.js"
|
|
34
34
|
},
|
|
35
35
|
"./proxy/svelte": {
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
"default": "./dist/proxy/svelte.js"
|
|
38
38
|
},
|
|
39
39
|
"./agent": {
|
|
40
|
-
"types": "./dist/agent/index.d.ts",
|
|
41
40
|
"inference-src": "./src/agent/index.ts",
|
|
41
|
+
"types": "./dist/agent/index.d.ts",
|
|
42
42
|
"default": "./dist/agent/index.js"
|
|
43
43
|
},
|
|
44
44
|
"./internal/upload": {
|
|
45
|
-
"types": "./dist/api/files.d.ts",
|
|
46
45
|
"inference-src": "./src/api/files.ts",
|
|
46
|
+
"types": "./dist/api/files.d.ts",
|
|
47
47
|
"default": "./dist/api/files.js"
|
|
48
48
|
}
|
|
49
49
|
},
|