instavm 0.15.0 → 0.17.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/README.md +133 -9
- package/dist/InstaVM-DjkmUcaP.d.mts +1393 -0
- package/dist/InstaVM-DjkmUcaP.d.ts +1393 -0
- package/dist/_instavmToolsCore-34H4iqVZ.d.mts +26 -0
- package/dist/_instavmToolsCore-BuaJyxXB.d.ts +26 -0
- package/dist/cli.js +7973 -2227
- package/dist/cli.js.map +1 -1
- package/dist/index.d.mts +12 -919
- package/dist/index.d.ts +12 -919
- package/dist/index.js +1465 -141
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1450 -136
- package/dist/index.mjs.map +1 -1
- package/dist/integrations/azure-openai.d.mts +18 -0
- package/dist/integrations/azure-openai.d.ts +18 -0
- package/dist/integrations/azure-openai.js +332 -0
- package/dist/integrations/azure-openai.js.map +1 -0
- package/dist/integrations/azure-openai.mjs +299 -0
- package/dist/integrations/azure-openai.mjs.map +1 -0
- package/dist/integrations/langchain.d.mts +7 -0
- package/dist/integrations/langchain.d.ts +7 -0
- package/dist/integrations/langchain.js +364 -0
- package/dist/integrations/langchain.js.map +1 -0
- package/dist/integrations/langchain.mjs +327 -0
- package/dist/integrations/langchain.mjs.map +1 -0
- package/dist/integrations/llamaindex.d.mts +11 -0
- package/dist/integrations/llamaindex.d.ts +11 -0
- package/dist/integrations/llamaindex.js +415 -0
- package/dist/integrations/llamaindex.js.map +1 -0
- package/dist/integrations/llamaindex.mjs +378 -0
- package/dist/integrations/llamaindex.mjs.map +1 -0
- package/dist/integrations/ollama.d.mts +35 -0
- package/dist/integrations/ollama.d.ts +35 -0
- package/dist/integrations/ollama.js +421 -0
- package/dist/integrations/ollama.js.map +1 -0
- package/dist/integrations/ollama.mjs +391 -0
- package/dist/integrations/ollama.mjs.map +1 -0
- package/dist/integrations/openai.d.mts +19 -0
- package/dist/integrations/openai.d.ts +19 -0
- package/dist/integrations/openai.js +302 -0
- package/dist/integrations/openai.js.map +1 -0
- package/dist/integrations/openai.mjs +272 -0
- package/dist/integrations/openai.mjs.map +1 -0
- package/package.json +46 -4
- package/dist/integrations/openai/index.d.mts +0 -16
- package/dist/integrations/openai/index.d.ts +0 -16
- package/dist/integrations/openai/index.js +0 -38
- package/dist/integrations/openai/index.js.map +0 -1
- package/dist/integrations/openai/index.mjs +0 -12
- package/dist/integrations/openai/index.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "instavm",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.17.0",
|
|
4
4
|
"description": "Official JavaScript SDK and CLI for InstaVM",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.mjs",
|
|
@@ -18,6 +18,42 @@
|
|
|
18
18
|
"types": "./dist/integrations/openai.d.ts",
|
|
19
19
|
"import": "./dist/integrations/openai.mjs",
|
|
20
20
|
"require": "./dist/integrations/openai.js"
|
|
21
|
+
},
|
|
22
|
+
"./integrations/azure-openai": {
|
|
23
|
+
"types": "./dist/integrations/azure-openai.d.ts",
|
|
24
|
+
"import": "./dist/integrations/azure-openai.mjs",
|
|
25
|
+
"require": "./dist/integrations/azure-openai.js"
|
|
26
|
+
},
|
|
27
|
+
"./integrations/langchain": {
|
|
28
|
+
"types": "./dist/integrations/langchain.d.ts",
|
|
29
|
+
"import": "./dist/integrations/langchain.mjs",
|
|
30
|
+
"require": "./dist/integrations/langchain.js"
|
|
31
|
+
},
|
|
32
|
+
"./integrations/llamaindex": {
|
|
33
|
+
"types": "./dist/integrations/llamaindex.d.ts",
|
|
34
|
+
"import": "./dist/integrations/llamaindex.mjs",
|
|
35
|
+
"require": "./dist/integrations/llamaindex.js"
|
|
36
|
+
},
|
|
37
|
+
"./integrations/ollama": {
|
|
38
|
+
"types": "./dist/integrations/ollama.d.ts",
|
|
39
|
+
"import": "./dist/integrations/ollama.mjs",
|
|
40
|
+
"require": "./dist/integrations/ollama.js"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"peerDependencies": {
|
|
44
|
+
"@langchain/core": ">=0.2.0",
|
|
45
|
+
"llamaindex": ">=0.10.0",
|
|
46
|
+
"zod": ">=3.22.0"
|
|
47
|
+
},
|
|
48
|
+
"peerDependenciesMeta": {
|
|
49
|
+
"@langchain/core": {
|
|
50
|
+
"optional": true
|
|
51
|
+
},
|
|
52
|
+
"llamaindex": {
|
|
53
|
+
"optional": true
|
|
54
|
+
},
|
|
55
|
+
"zod": {
|
|
56
|
+
"optional": true
|
|
21
57
|
}
|
|
22
58
|
},
|
|
23
59
|
"files": [
|
|
@@ -30,13 +66,15 @@
|
|
|
30
66
|
"type-check": "tsc --noEmit",
|
|
31
67
|
"test": "vitest run",
|
|
32
68
|
"test:unit": "vitest run tests/unit",
|
|
69
|
+
"test:smoke": "vitest run tests/smoke",
|
|
33
70
|
"test:integration": "vitest run tests/integration",
|
|
71
|
+
"test:e2e": "vitest run tests/integration",
|
|
34
72
|
"test:watch": "vitest --watch",
|
|
35
73
|
"test:coverage": "vitest --coverage",
|
|
36
74
|
"lint": "eslint src --ext .ts,.tsx",
|
|
37
75
|
"lint:fix": "eslint src --ext .ts,.tsx --fix",
|
|
38
76
|
"format": "prettier --write src/**/*.ts",
|
|
39
|
-
"prepublishOnly": "npm run build && npm run test:unit",
|
|
77
|
+
"prepublishOnly": "npm run build && npm run test:unit && npm run test:smoke",
|
|
40
78
|
"clean": "rm -rf dist"
|
|
41
79
|
},
|
|
42
80
|
"keywords": [
|
|
@@ -70,9 +108,12 @@
|
|
|
70
108
|
"commander": "^12.1.0",
|
|
71
109
|
"eventemitter3": "^5.0.1",
|
|
72
110
|
"form-data": "^4.0.1",
|
|
73
|
-
"ws": "^8.18.0"
|
|
111
|
+
"ws": "^8.18.0",
|
|
112
|
+
"yaml": "^2.8.1"
|
|
74
113
|
},
|
|
75
114
|
"devDependencies": {
|
|
115
|
+
"@langchain/core": "^0.3.57",
|
|
116
|
+
"llamaindex": "^0.10.6",
|
|
76
117
|
"@types/node": "^22.10.5",
|
|
77
118
|
"@types/ws": "^8.5.13",
|
|
78
119
|
"@typescript-eslint/eslint-plugin": "^8.18.2",
|
|
@@ -84,6 +125,7 @@
|
|
|
84
125
|
"prettier": "^3.4.2",
|
|
85
126
|
"tsup": "^8.3.5",
|
|
86
127
|
"typescript": "^5.7.2",
|
|
87
|
-
"vitest": "^2.1.8"
|
|
128
|
+
"vitest": "^2.1.8",
|
|
129
|
+
"zod": "^3.24.1"
|
|
88
130
|
}
|
|
89
131
|
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface OpenAITool {
|
|
2
|
-
type: 'function';
|
|
3
|
-
function: {
|
|
4
|
-
name: string;
|
|
5
|
-
description: string;
|
|
6
|
-
parameters: {
|
|
7
|
-
type: 'object';
|
|
8
|
-
properties: Record<string, any>;
|
|
9
|
-
required?: string[];
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
declare function getOpenAITools(): OpenAITool[];
|
|
14
|
-
declare function executeToolCall(client: any, toolCall: any, session?: any): Promise<any>;
|
|
15
|
-
|
|
16
|
-
export { type OpenAITool, executeToolCall, getOpenAITools };
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
interface OpenAITool {
|
|
2
|
-
type: 'function';
|
|
3
|
-
function: {
|
|
4
|
-
name: string;
|
|
5
|
-
description: string;
|
|
6
|
-
parameters: {
|
|
7
|
-
type: 'object';
|
|
8
|
-
properties: Record<string, any>;
|
|
9
|
-
required?: string[];
|
|
10
|
-
};
|
|
11
|
-
};
|
|
12
|
-
}
|
|
13
|
-
declare function getOpenAITools(): OpenAITool[];
|
|
14
|
-
declare function executeToolCall(client: any, toolCall: any, session?: any): Promise<any>;
|
|
15
|
-
|
|
16
|
-
export { type OpenAITool, executeToolCall, getOpenAITools };
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
|
|
20
|
-
// src/integrations/openai/index.ts
|
|
21
|
-
var openai_exports = {};
|
|
22
|
-
__export(openai_exports, {
|
|
23
|
-
executeToolCall: () => executeToolCall,
|
|
24
|
-
getOpenAITools: () => getOpenAITools
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(openai_exports);
|
|
27
|
-
function getOpenAITools() {
|
|
28
|
-
return [];
|
|
29
|
-
}
|
|
30
|
-
async function executeToolCall(client, toolCall, session) {
|
|
31
|
-
throw new Error("OpenAI integration not yet implemented");
|
|
32
|
-
}
|
|
33
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
-
0 && (module.exports = {
|
|
35
|
-
executeToolCall,
|
|
36
|
-
getOpenAITools
|
|
37
|
-
});
|
|
38
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/integrations/openai/index.ts"],"sourcesContent":["// OpenAI integration will be implemented in a future version\n// This file is a placeholder for the OpenAI function calling integration\n\nexport interface OpenAITool {\n type: 'function';\n function: {\n name: string;\n description: string;\n parameters: {\n type: 'object';\n properties: Record<string, any>;\n required?: string[];\n };\n };\n}\n\n// Placeholder - will be implemented with full OpenAI integration\nexport function getOpenAITools(): OpenAITool[] {\n return [];\n}\n\n// Placeholder - will be implemented with full OpenAI integration \nexport async function executeToolCall(\n client: any,\n toolCall: any,\n session?: any\n): Promise<any> {\n throw new Error('OpenAI integration not yet implemented');\n}"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAiBO,SAAS,iBAA+B;AAC7C,SAAO,CAAC;AACV;AAGA,eAAsB,gBACpB,QACA,UACA,SACc;AACd,QAAM,IAAI,MAAM,wCAAwC;AAC1D;","names":[]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
// src/integrations/openai/index.ts
|
|
2
|
-
function getOpenAITools() {
|
|
3
|
-
return [];
|
|
4
|
-
}
|
|
5
|
-
async function executeToolCall(client, toolCall, session) {
|
|
6
|
-
throw new Error("OpenAI integration not yet implemented");
|
|
7
|
-
}
|
|
8
|
-
export {
|
|
9
|
-
executeToolCall,
|
|
10
|
-
getOpenAITools
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/integrations/openai/index.ts"],"sourcesContent":["// OpenAI integration will be implemented in a future version\n// This file is a placeholder for the OpenAI function calling integration\n\nexport interface OpenAITool {\n type: 'function';\n function: {\n name: string;\n description: string;\n parameters: {\n type: 'object';\n properties: Record<string, any>;\n required?: string[];\n };\n };\n}\n\n// Placeholder - will be implemented with full OpenAI integration\nexport function getOpenAITools(): OpenAITool[] {\n return [];\n}\n\n// Placeholder - will be implemented with full OpenAI integration \nexport async function executeToolCall(\n client: any,\n toolCall: any,\n session?: any\n): Promise<any> {\n throw new Error('OpenAI integration not yet implemented');\n}"],"mappings":";AAiBO,SAAS,iBAA+B;AAC7C,SAAO,CAAC;AACV;AAGA,eAAsB,gBACpB,QACA,UACA,SACc;AACd,QAAM,IAAI,MAAM,wCAAwC;AAC1D;","names":[]}
|