vantio-agent-sdk 1.0.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.
@@ -0,0 +1,10 @@
1
+ export declare class VantioSession {
2
+ /**
3
+ * Executes AI agent logic within a sovereign Vantio isolation boundary.
4
+ * Injects cryptographic traces for the eBPF Ring-0 hypervisor to intercept.
5
+ */
6
+ static execute<T>(agentLogic: (traceId: string) => Promise<T>, options?: {
7
+ traceId?: string;
8
+ }): Promise<T>;
9
+ }
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,qBAAa,aAAa;IACxB;;;OAGG;WACU,OAAO,CAAC,CAAC,EACpB,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,CAAC,CAAC,EAC3C,OAAO,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAC7B,OAAO,CAAC,CAAC,CAAC;CAYd"}
package/dist/index.js ADDED
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.VantioSession = void 0;
4
+ const uuid_1 = require("uuid");
5
+ class VantioSession {
6
+ /**
7
+ * Executes AI agent logic within a sovereign Vantio isolation boundary.
8
+ * Injects cryptographic traces for the eBPF Ring-0 hypervisor to intercept.
9
+ */
10
+ static async execute(agentLogic, options) {
11
+ const traceId = options?.traceId || (0, uuid_1.v4)();
12
+ process.env['VANTIO_TRACE_ID'] = traceId;
13
+ process.env['VANTIO_PHANTOM_MODE'] = 'true';
14
+ try {
15
+ return await agentLogic(traceId);
16
+ }
17
+ finally {
18
+ delete process.env['VANTIO_TRACE_ID'];
19
+ delete process.env['VANTIO_PHANTOM_MODE'];
20
+ }
21
+ }
22
+ }
23
+ exports.VantioSession = VantioSession;
24
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,+BAAoC;AAEpC,MAAa,aAAa;IACxB;;;OAGG;IACH,MAAM,CAAC,KAAK,CAAC,OAAO,CAClB,UAA2C,EAC3C,OAA8B;QAE9B,MAAM,OAAO,GAAG,OAAO,EAAE,OAAO,IAAI,IAAA,SAAM,GAAE,CAAC;QAC7C,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,GAAG,OAAO,CAAC;QACzC,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,GAAG,MAAM,CAAC;QAE5C,IAAI,CAAC;YACH,OAAO,MAAM,UAAU,CAAC,OAAO,CAAC,CAAC;QACnC,CAAC;gBAAS,CAAC;YACT,OAAO,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC;YACtC,OAAO,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC;QAC5C,CAAC;IACH,CAAC;CACF;AApBD,sCAoBC"}
package/package.json ADDED
@@ -0,0 +1,22 @@
1
+ {
2
+ "name": "vantio-agent-sdk",
3
+ "version": "1.0.0",
4
+ "description": "Vantio Agent SDK for TypeScript",
5
+ "main": "dist/index.js",
6
+ "types": "dist/index.d.ts",
7
+ "scripts": {
8
+ "build": "tsc"
9
+ },
10
+ "keywords": [],
11
+ "author": "",
12
+ "license": "ISC",
13
+ "type": "commonjs",
14
+ "dependencies": {
15
+ "uuid": "^13.0.0"
16
+ },
17
+ "devDependencies": {
18
+ "@types/node": "^25.5.2",
19
+ "@types/uuid": "^10.0.0",
20
+ "typescript": "^6.0.2"
21
+ }
22
+ }
package/src/index.ts ADDED
@@ -0,0 +1,23 @@
1
+ import { v4 as uuidv4 } from 'uuid';
2
+
3
+ export class VantioSession {
4
+ /**
5
+ * Executes AI agent logic within a sovereign Vantio isolation boundary.
6
+ * Injects cryptographic traces for the eBPF Ring-0 hypervisor to intercept.
7
+ */
8
+ static async execute<T>(
9
+ agentLogic: (traceId: string) => Promise<T>,
10
+ options?: { traceId?: string }
11
+ ): Promise<T> {
12
+ const traceId = options?.traceId || uuidv4();
13
+ process.env['VANTIO_TRACE_ID'] = traceId;
14
+ process.env['VANTIO_PHANTOM_MODE'] = 'true';
15
+
16
+ try {
17
+ return await agentLogic(traceId);
18
+ } finally {
19
+ delete process.env['VANTIO_TRACE_ID'];
20
+ delete process.env['VANTIO_PHANTOM_MODE'];
21
+ }
22
+ }
23
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "compilerOptions": {
3
+ "target": "ES2022",
4
+ "module": "commonjs",
5
+ "lib": ["ES2022"],
6
+ "rootDir": "./src",
7
+ "outDir": "./dist",
8
+ "declaration": true,
9
+ "declarationMap": true,
10
+ "sourceMap": true,
11
+ "strict": true,
12
+ "skipLibCheck": true,
13
+ "types": ["node"]
14
+ },
15
+ "include": ["src/**/*"]
16
+ }