@inferencesh/sdk 0.1.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 +34 -0
- package/LICENSE +22 -0
- package/README.md +216 -0
- package/dist/client.d.ts +77 -0
- package/dist/client.js +249 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +23 -0
- package/dist/index.mjs +1 -0
- package/dist/stream.d.ts +29 -0
- package/dist/stream.js +120 -0
- package/dist/types.d.ts +3019 -0
- package/dist/types.js +257 -0
- package/package.json +77 -0
package/dist/types.js
ADDED
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by tygo. DO NOT EDIT.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.IntegrationTypeTeams = exports.IntegrationTypeDiscord = exports.IntegrationTypeSlack = exports.ChatMessageContentTypeTool = exports.ChatMessageContentTypeFile = exports.ChatMessageContentTypeImage = exports.ChatMessageContentTypeReasoning = exports.ChatMessageContentTypeText = exports.ChatMessageRoleTool = exports.ChatMessageRoleAssistant = exports.ChatMessageRoleUser = exports.ChatMessageRoleSystem = exports.AgentPlanStepStatusCancelled = exports.AgentPlanStepStatusCompleted = exports.AgentPlanStepStatusInProgress = exports.AgentPlanStepStatusPending = exports.ChatStatusCancelled = exports.ChatStatusCompleted = exports.ChatStatusInProgress = exports.ChatStatusPending = exports.BlogPostCommentStatusArchived = exports.BlogPostCommentStatusPublished = exports.BlogPostCommentStatusDraft = exports.BlogPostCommentStatusUnknown = exports.BlogPostStatusArchived = exports.BlogPostStatusPublished = exports.BlogPostStatusDraft = exports.BlogPostStatusUnknown = exports.PermExec = exports.PermWrite = exports.PermRead = exports.PartnerFeeTypePerSecond = exports.PartnerFeeTypeFixed = exports.GPUTypeApple = exports.GPUTypeAMD = exports.GPUTypeNvidia = exports.GPUTypeIntel = exports.GPUTypeNone = exports.GPUTypeAny = exports.AppCategoryFlow = exports.AppCategoryOther = exports.AppCategory3D = exports.AppCategoryChat = exports.AppCategoryText = exports.AppCategoryAudio = exports.AppCategoryVideo = exports.AppCategoryImage = exports.AppStatusPending = exports.AppStatusInactive = exports.AppStatusActive = void 0;
|
|
5
|
+
exports.GraphNodeStatusSkipped = exports.GraphNodeStatusCancelled = exports.GraphNodeStatusFailed = exports.GraphNodeStatusCompleted = exports.GraphNodeStatusRunning = exports.GraphNodeStatusReady = exports.GraphNodeStatusPending = exports.GraphStatusCancelled = exports.GraphStatusFailed = exports.GraphStatusCompleted = exports.GraphStatusRunning = exports.GraphStatusPending = exports.FlowRunStatusCancelled = exports.FlowRunStatusFailed = exports.FlowRunStatusCompleted = exports.FlowRunStatusRunning = exports.FlowRunStatusPending = exports.FlowRunStatusUnknown = exports.EngineStatusStopped = exports.EngineStatusStopping = exports.EngineStatusPending = exports.EngineStatusRunning = exports.OpIsNotEmpty = exports.OpIsEmpty = exports.OpIsNotNull = exports.OpIsNull = exports.OpNotContains = exports.OpContains = exports.OpILike = exports.OpLike = exports.OpLessEqual = exports.OpLess = exports.OpGreaterEqual = exports.OpGreater = exports.OpNotIn = exports.OpIn = exports.OpNotEqual = exports.OpEqual = exports.ToolInvocationStatusCancelled = exports.ToolInvocationStatusFailed = exports.ToolInvocationStatusCompleted = exports.ToolInvocationStatusAwaitingInput = exports.ToolInvocationStatusInProgress = exports.ToolInvocationStatusPending = exports.ToolInvocationTypeUnknown = exports.ToolInvocationTypeWidget = exports.ToolInvocationTypeAgent = exports.ToolInvocationTypeApp = exports.ToolInvocationTypeInternal = exports.IntegrationTypeTelegram = void 0;
|
|
6
|
+
exports.TeamRoleAdmin = exports.TeamRoleOwner = exports.TaskLogTypeTask = exports.TaskLogTypeSetup = exports.TaskLogTypeServe = exports.TaskLogTypeRun = exports.TaskLogTypeBuild = exports.InfraPrivateFirst = exports.InfraCloud = exports.InfraPrivate = exports.TaskStatusCancelled = exports.TaskStatusFailed = exports.TaskStatusCompleted = exports.TaskStatusUploading = exports.TaskStatusRunning = exports.TaskStatusSettingUp = exports.TaskStatusServing = exports.TaskStatusPreparing = exports.TaskStatusScheduled = exports.TaskStatusQueued = exports.TaskStatusReceived = exports.TaskStatusUnknown = exports.InstanceTypeDeploymentTypeBaremetal = exports.InstanceTypeDeploymentTypeContainer = exports.InstanceTypeDeploymentTypeVM = exports.InstanceStatusDeleted = exports.InstanceStatusActive = exports.InstanceStatusPending = exports.CloudShade = exports.CloudVultr = exports.CloudMassedCompute = exports.CloudDatacrunch = exports.CloudPaperspace = exports.CloudOblivus = exports.CloudJarvisLabs = exports.CloudLatitude = exports.CloudRunPod = exports.CloudTensorDock = exports.CloudLambdaLabs = exports.CloudAzure = exports.CloudAWS = exports.ProjectTypeOther = exports.ProjectTypeFlow = exports.ProjectTypeApp = exports.ProjectTypeAgent = exports.GraphEdgeTypeError = exports.GraphEdgeTypeConditional = exports.GraphEdgeTypeFlow = exports.GraphEdgeTypeDependency = exports.GraphNodeStatusBlocked = void 0;
|
|
7
|
+
exports.WSEventWorkerUpdate = exports.WSEventEngineTelemetry = exports.WSEventEngineHeartbeat = exports.WSEventEngineDeleteHFCacheRepo = exports.WSEventEngineStop = exports.WSEventTaskForceCancel = exports.WSEventTaskCancel = exports.WSEventTaskRun = exports.WSEventTaskFailed = exports.WSEventTaskOutput = exports.WSEventTaskProgress = exports.WSEventTaskLog = exports.WSEventTaskStatus = exports.WidgetNodeTypeCol = exports.WidgetNodeTypeRow = exports.WidgetNodeTypeCheckbox = exports.WidgetNodeTypeSelect = exports.WidgetNodeTypeInput = exports.WidgetNodeTypeButton = exports.WidgetNodeTypeBadge = exports.WidgetNodeTypeImage = exports.WidgetNodeTypeMarkdown = exports.WidgetNodeTypeText = exports.RoleSystem = exports.RoleAdmin = exports.RoleUser = exports.UsageEventResourceTierCloud = exports.UsageEventResourceTierPrivate = exports.StripeTransactionStatusExpired = exports.StripeTransactionStatusComplete = exports.StripeTransactionStatusOpen = exports.TransactionTypeDebit = exports.TransactionTypeCredit = exports.ToolParamTypeNull = exports.ToolParamTypeArray = exports.ToolParamTypeBoolean = exports.ToolParamTypeNumber = exports.ToolParamTypeInteger = exports.ToolParamTypeString = exports.ToolParamTypeObject = exports.ToolTypeFunction = exports.TeamRoleMember = void 0;
|
|
8
|
+
exports.AppStatusActive = "active";
|
|
9
|
+
exports.AppStatusInactive = "inactive";
|
|
10
|
+
exports.AppStatusPending = "pending";
|
|
11
|
+
exports.AppCategoryImage = "image";
|
|
12
|
+
exports.AppCategoryVideo = "video";
|
|
13
|
+
exports.AppCategoryAudio = "audio";
|
|
14
|
+
exports.AppCategoryText = "text";
|
|
15
|
+
exports.AppCategoryChat = "chat";
|
|
16
|
+
exports.AppCategory3D = "3d";
|
|
17
|
+
exports.AppCategoryOther = "other";
|
|
18
|
+
exports.AppCategoryFlow = "flow";
|
|
19
|
+
exports.GPUTypeAny = "any";
|
|
20
|
+
exports.GPUTypeNone = "none";
|
|
21
|
+
exports.GPUTypeIntel = "intel";
|
|
22
|
+
exports.GPUTypeNvidia = "nvidia";
|
|
23
|
+
exports.GPUTypeAMD = "amd";
|
|
24
|
+
exports.GPUTypeApple = "apple";
|
|
25
|
+
exports.PartnerFeeTypeFixed = "fixed";
|
|
26
|
+
exports.PartnerFeeTypePerSecond = "per_second";
|
|
27
|
+
exports.PermRead = "read";
|
|
28
|
+
exports.PermWrite = "write";
|
|
29
|
+
exports.PermExec = "exec";
|
|
30
|
+
exports.BlogPostStatusUnknown = 0; // 0
|
|
31
|
+
exports.BlogPostStatusDraft = 1; // 1
|
|
32
|
+
exports.BlogPostStatusPublished = 2; // 2
|
|
33
|
+
exports.BlogPostStatusArchived = 3; // 3
|
|
34
|
+
exports.BlogPostCommentStatusUnknown = 0; // 0
|
|
35
|
+
exports.BlogPostCommentStatusDraft = 1; // 1
|
|
36
|
+
exports.BlogPostCommentStatusPublished = 2; // 2
|
|
37
|
+
exports.BlogPostCommentStatusArchived = 3; // 3
|
|
38
|
+
exports.ChatStatusPending = "pending";
|
|
39
|
+
exports.ChatStatusInProgress = "in_progress";
|
|
40
|
+
exports.ChatStatusCompleted = "completed";
|
|
41
|
+
exports.ChatStatusCancelled = "cancelled";
|
|
42
|
+
exports.AgentPlanStepStatusPending = "pending";
|
|
43
|
+
exports.AgentPlanStepStatusInProgress = "in_progress";
|
|
44
|
+
exports.AgentPlanStepStatusCompleted = "completed";
|
|
45
|
+
exports.AgentPlanStepStatusCancelled = "cancelled";
|
|
46
|
+
exports.ChatMessageRoleSystem = "system";
|
|
47
|
+
exports.ChatMessageRoleUser = "user";
|
|
48
|
+
exports.ChatMessageRoleAssistant = "assistant";
|
|
49
|
+
exports.ChatMessageRoleTool = "tool";
|
|
50
|
+
exports.ChatMessageContentTypeText = "text";
|
|
51
|
+
exports.ChatMessageContentTypeReasoning = "reasoning";
|
|
52
|
+
exports.ChatMessageContentTypeImage = "image";
|
|
53
|
+
exports.ChatMessageContentTypeFile = "file";
|
|
54
|
+
exports.ChatMessageContentTypeTool = "tool";
|
|
55
|
+
exports.IntegrationTypeSlack = "slack";
|
|
56
|
+
exports.IntegrationTypeDiscord = "discord";
|
|
57
|
+
exports.IntegrationTypeTeams = "teams";
|
|
58
|
+
exports.IntegrationTypeTelegram = "telegram";
|
|
59
|
+
exports.ToolInvocationTypeInternal = "internal";
|
|
60
|
+
exports.ToolInvocationTypeApp = "app";
|
|
61
|
+
exports.ToolInvocationTypeAgent = "agent";
|
|
62
|
+
exports.ToolInvocationTypeWidget = "widget";
|
|
63
|
+
exports.ToolInvocationTypeUnknown = "unknown";
|
|
64
|
+
exports.ToolInvocationStatusPending = "pending";
|
|
65
|
+
exports.ToolInvocationStatusInProgress = "in_progress";
|
|
66
|
+
exports.ToolInvocationStatusAwaitingInput = "awaiting_input";
|
|
67
|
+
exports.ToolInvocationStatusCompleted = "completed";
|
|
68
|
+
exports.ToolInvocationStatusFailed = "failed";
|
|
69
|
+
exports.ToolInvocationStatusCancelled = "cancelled";
|
|
70
|
+
exports.OpEqual = "eq";
|
|
71
|
+
exports.OpNotEqual = "neq";
|
|
72
|
+
exports.OpIn = "in";
|
|
73
|
+
exports.OpNotIn = "not_in";
|
|
74
|
+
exports.OpGreater = "gt";
|
|
75
|
+
exports.OpGreaterEqual = "gte";
|
|
76
|
+
exports.OpLess = "lt";
|
|
77
|
+
exports.OpLessEqual = "lte";
|
|
78
|
+
exports.OpLike = "like";
|
|
79
|
+
exports.OpILike = "ilike";
|
|
80
|
+
exports.OpContains = "contains";
|
|
81
|
+
exports.OpNotContains = "not_contains";
|
|
82
|
+
/**
|
|
83
|
+
* Null checks
|
|
84
|
+
*/
|
|
85
|
+
exports.OpIsNull = "is_null";
|
|
86
|
+
exports.OpIsNotNull = "is_not_null";
|
|
87
|
+
/**
|
|
88
|
+
* Empty checks (for strings)
|
|
89
|
+
*/
|
|
90
|
+
exports.OpIsEmpty = "is_empty";
|
|
91
|
+
exports.OpIsNotEmpty = "is_not_empty";
|
|
92
|
+
exports.EngineStatusRunning = "running";
|
|
93
|
+
exports.EngineStatusPending = "pending";
|
|
94
|
+
exports.EngineStatusStopping = "stopping";
|
|
95
|
+
exports.EngineStatusStopped = "stopped";
|
|
96
|
+
exports.FlowRunStatusUnknown = 0; // 0
|
|
97
|
+
exports.FlowRunStatusPending = 1; // 1
|
|
98
|
+
exports.FlowRunStatusRunning = 2; // 2
|
|
99
|
+
exports.FlowRunStatusCompleted = 3; // 3
|
|
100
|
+
exports.FlowRunStatusFailed = 4; // 4
|
|
101
|
+
exports.FlowRunStatusCancelled = 5; // 5
|
|
102
|
+
exports.GraphStatusPending = "pending";
|
|
103
|
+
exports.GraphStatusRunning = "running";
|
|
104
|
+
exports.GraphStatusCompleted = "completed";
|
|
105
|
+
exports.GraphStatusFailed = "failed";
|
|
106
|
+
exports.GraphStatusCancelled = "cancelled";
|
|
107
|
+
exports.GraphNodeStatusPending = "pending";
|
|
108
|
+
exports.GraphNodeStatusReady = "ready"; // Dependencies satisfied
|
|
109
|
+
exports.GraphNodeStatusRunning = "running";
|
|
110
|
+
exports.GraphNodeStatusCompleted = "completed";
|
|
111
|
+
exports.GraphNodeStatusFailed = "failed";
|
|
112
|
+
exports.GraphNodeStatusCancelled = "cancelled";
|
|
113
|
+
exports.GraphNodeStatusSkipped = "skipped"; // Conditional branch not taken
|
|
114
|
+
exports.GraphNodeStatusBlocked = "blocked"; // Dependency failed
|
|
115
|
+
exports.GraphEdgeTypeDependency = "dependency"; // Blocking dependency
|
|
116
|
+
exports.GraphEdgeTypeFlow = "flow"; // Non-blocking flow
|
|
117
|
+
exports.GraphEdgeTypeConditional = "conditional"; // Conditional flow
|
|
118
|
+
exports.GraphEdgeTypeError = "error"; // Error handling flow
|
|
119
|
+
exports.ProjectTypeAgent = "agent";
|
|
120
|
+
exports.ProjectTypeApp = "app";
|
|
121
|
+
exports.ProjectTypeFlow = "flow";
|
|
122
|
+
exports.ProjectTypeOther = "other";
|
|
123
|
+
exports.CloudAWS = "aws";
|
|
124
|
+
exports.CloudAzure = "azure";
|
|
125
|
+
exports.CloudLambdaLabs = "lambdalabs";
|
|
126
|
+
exports.CloudTensorDock = "tensordock";
|
|
127
|
+
exports.CloudRunPod = "runpod";
|
|
128
|
+
exports.CloudLatitude = "latitude";
|
|
129
|
+
exports.CloudJarvisLabs = "jarvislabs";
|
|
130
|
+
exports.CloudOblivus = "oblivus";
|
|
131
|
+
exports.CloudPaperspace = "paperspace";
|
|
132
|
+
exports.CloudDatacrunch = "datacrunch";
|
|
133
|
+
exports.CloudMassedCompute = "massedcompute";
|
|
134
|
+
exports.CloudVultr = "vultr";
|
|
135
|
+
exports.CloudShade = "shade";
|
|
136
|
+
exports.InstanceStatusPending = "pending";
|
|
137
|
+
exports.InstanceStatusActive = "active";
|
|
138
|
+
exports.InstanceStatusDeleted = "deleted";
|
|
139
|
+
exports.InstanceTypeDeploymentTypeVM = "vm";
|
|
140
|
+
exports.InstanceTypeDeploymentTypeContainer = "container";
|
|
141
|
+
exports.InstanceTypeDeploymentTypeBaremetal = "baremetal";
|
|
142
|
+
exports.TaskStatusUnknown = 0; // 0
|
|
143
|
+
exports.TaskStatusReceived = 1; // 1
|
|
144
|
+
exports.TaskStatusQueued = 2; // 2
|
|
145
|
+
exports.TaskStatusScheduled = 3; // 3
|
|
146
|
+
exports.TaskStatusPreparing = 4; // 4
|
|
147
|
+
exports.TaskStatusServing = 5; // 5
|
|
148
|
+
exports.TaskStatusSettingUp = 6; // 6
|
|
149
|
+
exports.TaskStatusRunning = 7; // 7
|
|
150
|
+
exports.TaskStatusUploading = 8; // 8
|
|
151
|
+
exports.TaskStatusCompleted = 9; // 9
|
|
152
|
+
exports.TaskStatusFailed = 10; // 10
|
|
153
|
+
exports.TaskStatusCancelled = 11; // 11
|
|
154
|
+
exports.InfraPrivate = "private";
|
|
155
|
+
exports.InfraCloud = "cloud";
|
|
156
|
+
exports.InfraPrivateFirst = "private_first";
|
|
157
|
+
exports.TaskLogTypeBuild = 0; // 0
|
|
158
|
+
exports.TaskLogTypeRun = 1;
|
|
159
|
+
exports.TaskLogTypeServe = 2;
|
|
160
|
+
exports.TaskLogTypeSetup = 3;
|
|
161
|
+
exports.TaskLogTypeTask = 4;
|
|
162
|
+
exports.TeamRoleOwner = "owner";
|
|
163
|
+
exports.TeamRoleAdmin = "admin";
|
|
164
|
+
exports.TeamRoleMember = "member";
|
|
165
|
+
//////////
|
|
166
|
+
// source: tool.go
|
|
167
|
+
/**
|
|
168
|
+
* Tool types and parameter types
|
|
169
|
+
*/
|
|
170
|
+
exports.ToolTypeFunction = "function";
|
|
171
|
+
/**
|
|
172
|
+
* Tool types and parameter types
|
|
173
|
+
*/
|
|
174
|
+
exports.ToolParamTypeObject = "object";
|
|
175
|
+
/**
|
|
176
|
+
* Tool types and parameter types
|
|
177
|
+
*/
|
|
178
|
+
exports.ToolParamTypeString = "string";
|
|
179
|
+
/**
|
|
180
|
+
* Tool types and parameter types
|
|
181
|
+
*/
|
|
182
|
+
exports.ToolParamTypeInteger = "integer";
|
|
183
|
+
/**
|
|
184
|
+
* Tool types and parameter types
|
|
185
|
+
*/
|
|
186
|
+
exports.ToolParamTypeNumber = "number";
|
|
187
|
+
/**
|
|
188
|
+
* Tool types and parameter types
|
|
189
|
+
*/
|
|
190
|
+
exports.ToolParamTypeBoolean = "boolean";
|
|
191
|
+
/**
|
|
192
|
+
* Tool types and parameter types
|
|
193
|
+
*/
|
|
194
|
+
exports.ToolParamTypeArray = "array";
|
|
195
|
+
/**
|
|
196
|
+
* Tool types and parameter types
|
|
197
|
+
*/
|
|
198
|
+
exports.ToolParamTypeNull = "null";
|
|
199
|
+
exports.TransactionTypeCredit = "credit"; // Adding credits
|
|
200
|
+
exports.TransactionTypeDebit = "debit"; // Removing credits
|
|
201
|
+
exports.StripeTransactionStatusOpen = 0;
|
|
202
|
+
exports.StripeTransactionStatusComplete = 1;
|
|
203
|
+
exports.StripeTransactionStatusExpired = 2;
|
|
204
|
+
exports.UsageEventResourceTierPrivate = "private";
|
|
205
|
+
exports.UsageEventResourceTierCloud = "cloud";
|
|
206
|
+
exports.RoleUser = "user";
|
|
207
|
+
exports.RoleAdmin = "admin";
|
|
208
|
+
exports.RoleSystem = "system";
|
|
209
|
+
exports.WidgetNodeTypeText = "text";
|
|
210
|
+
exports.WidgetNodeTypeMarkdown = "markdown";
|
|
211
|
+
exports.WidgetNodeTypeImage = "image";
|
|
212
|
+
exports.WidgetNodeTypeBadge = "badge";
|
|
213
|
+
exports.WidgetNodeTypeButton = "button";
|
|
214
|
+
exports.WidgetNodeTypeInput = "input";
|
|
215
|
+
exports.WidgetNodeTypeSelect = "select";
|
|
216
|
+
exports.WidgetNodeTypeCheckbox = "checkbox";
|
|
217
|
+
exports.WidgetNodeTypeRow = "row";
|
|
218
|
+
exports.WidgetNodeTypeCol = "col";
|
|
219
|
+
//////////
|
|
220
|
+
// source: ws.go
|
|
221
|
+
/**
|
|
222
|
+
* WebSocket message types
|
|
223
|
+
*/
|
|
224
|
+
exports.WSEventTaskStatus = "task_status";
|
|
225
|
+
/**
|
|
226
|
+
* Task WebSocket
|
|
227
|
+
*/
|
|
228
|
+
exports.WSEventTaskLog = "task_log";
|
|
229
|
+
/**
|
|
230
|
+
* Task WebSocket
|
|
231
|
+
*/
|
|
232
|
+
exports.WSEventTaskProgress = "task_progress";
|
|
233
|
+
/**
|
|
234
|
+
* Task WebSocket
|
|
235
|
+
*/
|
|
236
|
+
exports.WSEventTaskOutput = "task_output";
|
|
237
|
+
/**
|
|
238
|
+
* Task WebSocket
|
|
239
|
+
*/
|
|
240
|
+
exports.WSEventTaskFailed = "task_failed";
|
|
241
|
+
exports.WSEventTaskRun = "task_run";
|
|
242
|
+
exports.WSEventTaskCancel = "task_cancel";
|
|
243
|
+
exports.WSEventTaskForceCancel = "task_force_cancel";
|
|
244
|
+
exports.WSEventEngineStop = "engine_stop";
|
|
245
|
+
exports.WSEventEngineDeleteHFCacheRepo = "engine_delete_hfcache_repo";
|
|
246
|
+
/**
|
|
247
|
+
* Engine WebSocket
|
|
248
|
+
*/
|
|
249
|
+
exports.WSEventEngineHeartbeat = "engine_heartbeat";
|
|
250
|
+
/**
|
|
251
|
+
* Engine WebSocket
|
|
252
|
+
*/
|
|
253
|
+
exports.WSEventEngineTelemetry = "engine_telemetry";
|
|
254
|
+
/**
|
|
255
|
+
* Worker WebSocket
|
|
256
|
+
*/
|
|
257
|
+
exports.WSEventWorkerUpdate = "worker_update";
|
package/package.json
ADDED
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@inferencesh/sdk",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "Official JavaScript/TypeScript SDK for inference.sh - Run AI models with a simple API",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"module": "dist/index.mjs",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"import": "./dist/index.mjs",
|
|
11
|
+
"require": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"scripts": {
|
|
16
|
+
"build": "tsc && npm run build:esm",
|
|
17
|
+
"build:esm": "echo 'export * from \"./index.js\";' > dist/index.mjs",
|
|
18
|
+
"test": "jest",
|
|
19
|
+
"test:watch": "jest --watch",
|
|
20
|
+
"test:coverage": "jest --coverage",
|
|
21
|
+
"lint": "eslint src --ext .ts",
|
|
22
|
+
"lint:fix": "eslint src --ext .ts --fix",
|
|
23
|
+
"format": "prettier --write \"src/**/*.ts\"",
|
|
24
|
+
"format:check": "prettier --check \"src/**/*.ts\"",
|
|
25
|
+
"clean": "rimraf dist coverage",
|
|
26
|
+
"prepublishOnly": "npm run clean && npm run build && npm test",
|
|
27
|
+
"example": "node examples/basic.cjs",
|
|
28
|
+
"test:local": "node examples/_local-test.cjs"
|
|
29
|
+
},
|
|
30
|
+
"keywords": [
|
|
31
|
+
"inference",
|
|
32
|
+
"ai",
|
|
33
|
+
"ml",
|
|
34
|
+
"machine-learning",
|
|
35
|
+
"api",
|
|
36
|
+
"sdk",
|
|
37
|
+
"typescript",
|
|
38
|
+
"image-generation",
|
|
39
|
+
"llm",
|
|
40
|
+
"generative-ai"
|
|
41
|
+
],
|
|
42
|
+
"author": "Okaris <hello@inference.sh>",
|
|
43
|
+
"license": "MIT",
|
|
44
|
+
"repository": {
|
|
45
|
+
"type": "git",
|
|
46
|
+
"url": "git+https://github.com/inference-sh/sdk-js.git"
|
|
47
|
+
},
|
|
48
|
+
"homepage": "https://inference.sh",
|
|
49
|
+
"bugs": {
|
|
50
|
+
"url": "https://github.com/inference-sh/sdk-js/issues"
|
|
51
|
+
},
|
|
52
|
+
"engines": {
|
|
53
|
+
"node": ">=18.0.0"
|
|
54
|
+
},
|
|
55
|
+
"dependencies": {
|
|
56
|
+
"eventsource": "^4.0.0"
|
|
57
|
+
},
|
|
58
|
+
"devDependencies": {
|
|
59
|
+
"@types/jest": "^29.5.12",
|
|
60
|
+
"@types/node": "^24.1.0",
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "^8.38.0",
|
|
62
|
+
"@typescript-eslint/parser": "^8.38.0",
|
|
63
|
+
"eslint": "^9.32.0",
|
|
64
|
+
"eslint-config-prettier": "^10.1.8",
|
|
65
|
+
"jest": "^29.7.0",
|
|
66
|
+
"prettier": "^3.6.2",
|
|
67
|
+
"rimraf": "^6.0.1",
|
|
68
|
+
"ts-jest": "^29.2.5",
|
|
69
|
+
"typescript": "^5.8.3"
|
|
70
|
+
},
|
|
71
|
+
"files": [
|
|
72
|
+
"dist",
|
|
73
|
+
"README.md",
|
|
74
|
+
"LICENSE",
|
|
75
|
+
"CHANGELOG.md"
|
|
76
|
+
]
|
|
77
|
+
}
|