@novalabai/adk 2.3.0 → 2.4.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/client.d.ts +36 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +48 -0
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +24 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +25 -1
- package/dist/index.js.map +1 -1
- package/dist/resources/accounting.d.ts +50 -0
- package/dist/resources/accounting.d.ts.map +1 -0
- package/dist/resources/accounting.js +47 -0
- package/dist/resources/accounting.js.map +1 -0
- package/dist/resources/agents.d.ts +0 -4
- package/dist/resources/agents.d.ts.map +1 -1
- package/dist/resources/agents.js +0 -8
- package/dist/resources/agents.js.map +1 -1
- package/dist/resources/browser.d.ts +55 -0
- package/dist/resources/browser.d.ts.map +1 -0
- package/dist/resources/browser.js +59 -0
- package/dist/resources/browser.js.map +1 -0
- package/dist/resources/byollm.d.ts +2 -0
- package/dist/resources/byollm.d.ts.map +1 -1
- package/dist/resources/byollm.js +4 -0
- package/dist/resources/byollm.js.map +1 -1
- package/dist/resources/creative.d.ts +63 -0
- package/dist/resources/creative.d.ts.map +1 -0
- package/dist/resources/creative.js +58 -0
- package/dist/resources/creative.js.map +1 -0
- package/dist/resources/cybersecurity.d.ts +81 -0
- package/dist/resources/cybersecurity.d.ts.map +1 -0
- package/dist/resources/cybersecurity.js +88 -0
- package/dist/resources/cybersecurity.js.map +1 -0
- package/dist/resources/design.d.ts +61 -0
- package/dist/resources/design.d.ts.map +1 -0
- package/dist/resources/design.js +70 -0
- package/dist/resources/design.js.map +1 -0
- package/dist/resources/health.d.ts +52 -0
- package/dist/resources/health.d.ts.map +1 -0
- package/dist/resources/health.js +50 -0
- package/dist/resources/health.js.map +1 -0
- package/dist/resources/integrations.d.ts +65 -0
- package/dist/resources/integrations.d.ts.map +1 -0
- package/dist/resources/integrations.js +70 -0
- package/dist/resources/integrations.js.map +1 -0
- package/dist/resources/marketing.d.ts +65 -0
- package/dist/resources/marketing.d.ts.map +1 -0
- package/dist/resources/marketing.js +63 -0
- package/dist/resources/marketing.js.map +1 -0
- package/dist/resources/memory.d.ts +82 -0
- package/dist/resources/memory.d.ts.map +1 -0
- package/dist/resources/memory.js +82 -0
- package/dist/resources/memory.js.map +1 -0
- package/dist/resources/oilgas.d.ts +108 -0
- package/dist/resources/oilgas.d.ts.map +1 -0
- package/dist/resources/oilgas.js +86 -0
- package/dist/resources/oilgas.js.map +1 -0
- package/dist/resources/terminal.d.ts +74 -0
- package/dist/resources/terminal.d.ts.map +1 -0
- package/dist/resources/terminal.js +73 -0
- package/dist/resources/terminal.js.map +1 -0
- package/dist/resources/toolbuilder.d.ts +39 -0
- package/dist/resources/toolbuilder.d.ts.map +1 -0
- package/dist/resources/toolbuilder.js +34 -0
- package/dist/resources/toolbuilder.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IntegrationsResource = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* AI-powered integration agent — discover, connect, and execute third-party
|
|
6
|
+
* service integrations with auto-generated code and documentation.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* const nova = new NovaClient({ apiKey: 'nova_xxx' });
|
|
11
|
+
*
|
|
12
|
+
* // Discover integration capabilities
|
|
13
|
+
* const info = await nova.integrations.discover('stripe');
|
|
14
|
+
*
|
|
15
|
+
* // Connect to a service
|
|
16
|
+
* const conn = await nova.integrations.connect('stripe', { api_key: 'sk_...' });
|
|
17
|
+
*
|
|
18
|
+
* // Execute an API call
|
|
19
|
+
* const result = await nova.integrations.execute('stripe', 'GET', '/v1/customers');
|
|
20
|
+
*
|
|
21
|
+
* // Get documentation
|
|
22
|
+
* const docs = await nova.integrations.docs('stripe');
|
|
23
|
+
*
|
|
24
|
+
* // Generate integration code
|
|
25
|
+
* const code = await nova.integrations.code('stripe', 'python', 'list_customers');
|
|
26
|
+
*
|
|
27
|
+
* // List all available services
|
|
28
|
+
* const services = await nova.integrations.services();
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
class IntegrationsResource {
|
|
32
|
+
http;
|
|
33
|
+
constructor(http) {
|
|
34
|
+
this.http = http;
|
|
35
|
+
}
|
|
36
|
+
/** Discover integration capabilities for a service */
|
|
37
|
+
async discover(service) {
|
|
38
|
+
return this.http.get('/integrations/discover', { service });
|
|
39
|
+
}
|
|
40
|
+
/** Connect to a third-party service */
|
|
41
|
+
async connect(service, credentials) {
|
|
42
|
+
return this.http.post('/integrations/connect', { service, credentials });
|
|
43
|
+
}
|
|
44
|
+
/** Execute an API call against a connected service */
|
|
45
|
+
async execute(service, method, endpoint, body) {
|
|
46
|
+
const payload = { service, method, endpoint };
|
|
47
|
+
if (body)
|
|
48
|
+
payload.body = body;
|
|
49
|
+
return this.http.post('/integrations/execute', payload);
|
|
50
|
+
}
|
|
51
|
+
/** Get documentation for a service integration */
|
|
52
|
+
async docs(service) {
|
|
53
|
+
return this.http.get('/integrations/docs', { service });
|
|
54
|
+
}
|
|
55
|
+
/** Generate integration code for a service */
|
|
56
|
+
async code(service, language, action) {
|
|
57
|
+
const params = { service };
|
|
58
|
+
if (language)
|
|
59
|
+
params.language = language;
|
|
60
|
+
if (action)
|
|
61
|
+
params.action = action;
|
|
62
|
+
return this.http.get('/integrations/code', params);
|
|
63
|
+
}
|
|
64
|
+
/** List all available integration services */
|
|
65
|
+
async services() {
|
|
66
|
+
return this.http.get('/integrations/services');
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
exports.IntegrationsResource = IntegrationsResource;
|
|
70
|
+
//# sourceMappingURL=integrations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"integrations.js","sourceRoot":"","sources":["../../src/resources/integrations.ts"],"names":[],"mappings":";;;AA0BA;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CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;IACrD,CAAC;IAED,8CAA8C;IAC9C,KAAK,CAAC,QAAQ;QACZ,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;IACjD,CAAC;CACF;AArCD,oDAqCC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import type { HttpClient } from '../core/http.js';
|
|
2
|
+
export interface MarketingSkill {
|
|
3
|
+
slug: string;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
[key: string]: unknown;
|
|
7
|
+
}
|
|
8
|
+
export interface MarketingDetectResult {
|
|
9
|
+
skill: string;
|
|
10
|
+
confidence: number;
|
|
11
|
+
[key: string]: unknown;
|
|
12
|
+
}
|
|
13
|
+
export interface MarketingRunParams {
|
|
14
|
+
skill: string;
|
|
15
|
+
message: string;
|
|
16
|
+
}
|
|
17
|
+
export interface MarketingResult {
|
|
18
|
+
output: string;
|
|
19
|
+
source: string;
|
|
20
|
+
[key: string]: unknown;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* AI-powered marketing agent — skill discovery, intent detection, campaign
|
|
24
|
+
* execution, and conversational marketing AI.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```typescript
|
|
28
|
+
* const nova = new NovaClient({ apiKey: 'nova_xxx' });
|
|
29
|
+
*
|
|
30
|
+
* // List available marketing skills
|
|
31
|
+
* const skills = await nova.marketing.skills();
|
|
32
|
+
*
|
|
33
|
+
* // Get a specific skill
|
|
34
|
+
* const skill = await nova.marketing.skill('seo-audit');
|
|
35
|
+
*
|
|
36
|
+
* // Detect marketing intent
|
|
37
|
+
* const detected = await nova.marketing.detect('I need help with SEO');
|
|
38
|
+
*
|
|
39
|
+
* // Run a marketing skill
|
|
40
|
+
* const result = await nova.marketing.run('seo-audit', 'Analyze example.com');
|
|
41
|
+
*
|
|
42
|
+
* // Chat with marketing AI
|
|
43
|
+
* const chat = await nova.marketing.chat('Help me plan a product launch');
|
|
44
|
+
*
|
|
45
|
+
* // Get tools registry
|
|
46
|
+
* const tools = await nova.marketing.toolsRegistry();
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
export declare class MarketingResource {
|
|
50
|
+
private http;
|
|
51
|
+
constructor(http: HttpClient);
|
|
52
|
+
/** List all available marketing skills */
|
|
53
|
+
skills(): Promise<MarketingSkill[]>;
|
|
54
|
+
/** Get details of a specific marketing skill */
|
|
55
|
+
skill(slug: string): Promise<MarketingSkill>;
|
|
56
|
+
/** Detect marketing intent from a message */
|
|
57
|
+
detect(message: string): Promise<MarketingDetectResult>;
|
|
58
|
+
/** Run a specific marketing skill with a message */
|
|
59
|
+
run(skill: string, message: string): Promise<MarketingResult>;
|
|
60
|
+
/** Chat with the marketing AI assistant */
|
|
61
|
+
chat(message: string): Promise<MarketingResult>;
|
|
62
|
+
/** Get the marketing tools registry */
|
|
63
|
+
toolsRegistry(): Promise<Record<string, unknown>>;
|
|
64
|
+
}
|
|
65
|
+
//# sourceMappingURL=marketing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketing.d.ts","sourceRoot":"","sources":["../../src/resources/marketing.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,EAAE,MAAM,CAAC;IACnB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,qBAAa,iBAAiB;IAChB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,0CAA0C;IACpC,MAAM,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;IAKzC,gDAAgD;IAC1C,KAAK,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,CAAC;IAIlD,6CAA6C;IACvC,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,qBAAqB,CAAC;IAI7D,oDAAoD;IAC9C,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAInE,2CAA2C;IACrC,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC;IAIrD,uCAAuC;IACjC,aAAa,IAAI,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAGxD"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MarketingResource = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* AI-powered marketing agent — skill discovery, intent detection, campaign
|
|
6
|
+
* execution, and conversational marketing AI.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* const nova = new NovaClient({ apiKey: 'nova_xxx' });
|
|
11
|
+
*
|
|
12
|
+
* // List available marketing skills
|
|
13
|
+
* const skills = await nova.marketing.skills();
|
|
14
|
+
*
|
|
15
|
+
* // Get a specific skill
|
|
16
|
+
* const skill = await nova.marketing.skill('seo-audit');
|
|
17
|
+
*
|
|
18
|
+
* // Detect marketing intent
|
|
19
|
+
* const detected = await nova.marketing.detect('I need help with SEO');
|
|
20
|
+
*
|
|
21
|
+
* // Run a marketing skill
|
|
22
|
+
* const result = await nova.marketing.run('seo-audit', 'Analyze example.com');
|
|
23
|
+
*
|
|
24
|
+
* // Chat with marketing AI
|
|
25
|
+
* const chat = await nova.marketing.chat('Help me plan a product launch');
|
|
26
|
+
*
|
|
27
|
+
* // Get tools registry
|
|
28
|
+
* const tools = await nova.marketing.toolsRegistry();
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
class MarketingResource {
|
|
32
|
+
http;
|
|
33
|
+
constructor(http) {
|
|
34
|
+
this.http = http;
|
|
35
|
+
}
|
|
36
|
+
/** List all available marketing skills */
|
|
37
|
+
async skills() {
|
|
38
|
+
const result = await this.http.get('/marketing/skills');
|
|
39
|
+
return result.skills ?? result;
|
|
40
|
+
}
|
|
41
|
+
/** Get details of a specific marketing skill */
|
|
42
|
+
async skill(slug) {
|
|
43
|
+
return this.http.get(`/marketing/skills/${slug}`);
|
|
44
|
+
}
|
|
45
|
+
/** Detect marketing intent from a message */
|
|
46
|
+
async detect(message) {
|
|
47
|
+
return this.http.post('/marketing/detect', { message });
|
|
48
|
+
}
|
|
49
|
+
/** Run a specific marketing skill with a message */
|
|
50
|
+
async run(skill, message) {
|
|
51
|
+
return this.http.post('/marketing/run', { skill, message });
|
|
52
|
+
}
|
|
53
|
+
/** Chat with the marketing AI assistant */
|
|
54
|
+
async chat(message) {
|
|
55
|
+
return this.http.post('/marketing/chat', { message });
|
|
56
|
+
}
|
|
57
|
+
/** Get the marketing tools registry */
|
|
58
|
+
async toolsRegistry() {
|
|
59
|
+
return this.http.get('/marketing/tools-registry');
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
exports.MarketingResource = MarketingResource;
|
|
63
|
+
//# sourceMappingURL=marketing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"marketing.js","sourceRoot":"","sources":["../../src/resources/marketing.ts"],"names":[],"mappings":";;;AA0BA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,MAAa,iBAAiB;IACR;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,0CAA0C;IAC1C,KAAK,CAAC,MAAM;QACV,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;QACxD,OAAQ,MAAc,CAAC,MAAM,IAAI,MAAM,CAAC;IAC1C,CAAC;IAED,gDAAgD;IAChD,KAAK,CAAC,KAAK,CAAC,IAAY;QACtB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,qBAAqB,IAAI,EAAE,CAAC,CAAC;IACpD,CAAC;IAED,6CAA6C;IAC7C,KAAK,CAAC,MAAM,CAAC,OAAe;QAC1B,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IAC1D,CAAC;IAED,oDAAoD;IACpD,KAAK,CAAC,GAAG,CAAC,KAAa,EAAE,OAAe;QACtC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED,2CAA2C;IAC3C,KAAK,CAAC,IAAI,CAAC,OAAe;QACxB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;IACxD,CAAC;IAED,uCAAuC;IACvC,KAAK,CAAC,aAAa;QACjB,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,2BAA2B,CAAC,CAAC;IACpD,CAAC;CACF;AAjCD,8CAiCC"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { HttpClient } from '../core/http.js';
|
|
2
|
+
export interface MemorySearchParams {
|
|
3
|
+
q: string;
|
|
4
|
+
wing?: string;
|
|
5
|
+
room?: string;
|
|
6
|
+
limit?: number;
|
|
7
|
+
}
|
|
8
|
+
export interface MemoryStoreParams {
|
|
9
|
+
content: string;
|
|
10
|
+
wing: string;
|
|
11
|
+
room: string;
|
|
12
|
+
source?: string;
|
|
13
|
+
}
|
|
14
|
+
export interface MemoryKgAddParams {
|
|
15
|
+
subject: string;
|
|
16
|
+
predicate: string;
|
|
17
|
+
object: string;
|
|
18
|
+
valid_from?: string;
|
|
19
|
+
}
|
|
20
|
+
export interface MemoryAutoSaveParams {
|
|
21
|
+
session_id: string;
|
|
22
|
+
messages: Record<string, unknown>[];
|
|
23
|
+
}
|
|
24
|
+
export interface MemoryStatusResult {
|
|
25
|
+
wings: number;
|
|
26
|
+
rooms: number;
|
|
27
|
+
memories: number;
|
|
28
|
+
[key: string]: unknown;
|
|
29
|
+
}
|
|
30
|
+
export interface MemorySearchResult {
|
|
31
|
+
results: Record<string, unknown>[];
|
|
32
|
+
[key: string]: unknown;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* AI-powered memory palace (MemPalace) — semantic search, structured storage,
|
|
36
|
+
* knowledge graphs, and automatic session saving.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```typescript
|
|
40
|
+
* const nova = new NovaClient({ apiKey: 'nova_xxx' });
|
|
41
|
+
*
|
|
42
|
+
* // Search memories
|
|
43
|
+
* const results = await nova.memory.search('project deadlines', 'work', 'projects', 5);
|
|
44
|
+
*
|
|
45
|
+
* // Store a memory
|
|
46
|
+
* await nova.memory.store('Meeting notes from standup', 'work', 'meetings');
|
|
47
|
+
*
|
|
48
|
+
* // Get memory status
|
|
49
|
+
* const status = await nova.memory.status();
|
|
50
|
+
*
|
|
51
|
+
* // Add a knowledge graph triple
|
|
52
|
+
* await nova.memory.kgAdd('ProjectX', 'deadline', '2025-03-01');
|
|
53
|
+
*
|
|
54
|
+
* // Query knowledge graph
|
|
55
|
+
* const kg = await nova.memory.kgQuery('ProjectX');
|
|
56
|
+
*
|
|
57
|
+
* // Get entity timeline
|
|
58
|
+
* const timeline = await nova.memory.kgTimeline('ProjectX');
|
|
59
|
+
*
|
|
60
|
+
* // Auto-save session messages
|
|
61
|
+
* await nova.memory.autoSave('sess_123', messages);
|
|
62
|
+
* ```
|
|
63
|
+
*/
|
|
64
|
+
export declare class MemoryResource {
|
|
65
|
+
private http;
|
|
66
|
+
constructor(http: HttpClient);
|
|
67
|
+
/** Search memories using semantic search */
|
|
68
|
+
search(query: string, wing?: string, room?: string, limit?: number): Promise<MemorySearchResult>;
|
|
69
|
+
/** Store a new memory in the palace */
|
|
70
|
+
store(content: string, wing: string, room: string, source?: string): Promise<Record<string, unknown>>;
|
|
71
|
+
/** Get memory palace status and statistics */
|
|
72
|
+
status(): Promise<MemoryStatusResult>;
|
|
73
|
+
/** Add a triple to the knowledge graph */
|
|
74
|
+
kgAdd(subject: string, predicate: string, object: string, validFrom?: string): Promise<Record<string, unknown>>;
|
|
75
|
+
/** Query the knowledge graph for an entity */
|
|
76
|
+
kgQuery(entity: string): Promise<Record<string, unknown>>;
|
|
77
|
+
/** Get the timeline for a knowledge graph entity */
|
|
78
|
+
kgTimeline(entity: string): Promise<Record<string, unknown>>;
|
|
79
|
+
/** Auto-save session messages to memory */
|
|
80
|
+
autoSave(sessionId: string, messages: Record<string, unknown>[]): Promise<Record<string, unknown>>;
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=memory.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../src/resources/memory.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,WAAW,kBAAkB;IACjC,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KA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AC,MAAM,EAAE,OAAO,CAAC,CAAC;IAM3G,8CAA8C;IACxC,MAAM,IAAI,OAAO,CAAC,kBAAkB,CAAC;IAI3C,0CAA0C;IACpC,KAAK,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAMrH,8CAA8C;IACxC,OAAO,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAI/D,oDAAoD;IAC9C,UAAU,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAIlE,2CAA2C;IACrC,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAGzG"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MemoryResource = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* AI-powered memory palace (MemPalace) — semantic search, structured storage,
|
|
6
|
+
* knowledge graphs, and automatic session saving.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* const nova = new NovaClient({ apiKey: 'nova_xxx' });
|
|
11
|
+
*
|
|
12
|
+
* // Search memories
|
|
13
|
+
* const results = await nova.memory.search('project deadlines', 'work', 'projects', 5);
|
|
14
|
+
*
|
|
15
|
+
* // Store a memory
|
|
16
|
+
* await nova.memory.store('Meeting notes from standup', 'work', 'meetings');
|
|
17
|
+
*
|
|
18
|
+
* // Get memory status
|
|
19
|
+
* const status = await nova.memory.status();
|
|
20
|
+
*
|
|
21
|
+
* // Add a knowledge graph triple
|
|
22
|
+
* await nova.memory.kgAdd('ProjectX', 'deadline', '2025-03-01');
|
|
23
|
+
*
|
|
24
|
+
* // Query knowledge graph
|
|
25
|
+
* const kg = await nova.memory.kgQuery('ProjectX');
|
|
26
|
+
*
|
|
27
|
+
* // Get entity timeline
|
|
28
|
+
* const timeline = await nova.memory.kgTimeline('ProjectX');
|
|
29
|
+
*
|
|
30
|
+
* // Auto-save session messages
|
|
31
|
+
* await nova.memory.autoSave('sess_123', messages);
|
|
32
|
+
* ```
|
|
33
|
+
*/
|
|
34
|
+
class MemoryResource {
|
|
35
|
+
http;
|
|
36
|
+
constructor(http) {
|
|
37
|
+
this.http = http;
|
|
38
|
+
}
|
|
39
|
+
/** Search memories using semantic search */
|
|
40
|
+
async search(query, wing, room, limit) {
|
|
41
|
+
const params = { q: query };
|
|
42
|
+
if (wing)
|
|
43
|
+
params.wing = wing;
|
|
44
|
+
if (room)
|
|
45
|
+
params.room = room;
|
|
46
|
+
if (limit !== undefined)
|
|
47
|
+
params.limit = limit;
|
|
48
|
+
return this.http.get('/memory/search', params);
|
|
49
|
+
}
|
|
50
|
+
/** Store a new memory in the palace */
|
|
51
|
+
async store(content, wing, room, source) {
|
|
52
|
+
const payload = { content, wing, room };
|
|
53
|
+
if (source)
|
|
54
|
+
payload.source = source;
|
|
55
|
+
return this.http.post('/memory/store', payload);
|
|
56
|
+
}
|
|
57
|
+
/** Get memory palace status and statistics */
|
|
58
|
+
async status() {
|
|
59
|
+
return this.http.get('/memory/status');
|
|
60
|
+
}
|
|
61
|
+
/** Add a triple to the knowledge graph */
|
|
62
|
+
async kgAdd(subject, predicate, object, validFrom) {
|
|
63
|
+
const payload = { subject, predicate, object };
|
|
64
|
+
if (validFrom)
|
|
65
|
+
payload.valid_from = validFrom;
|
|
66
|
+
return this.http.post('/memory/kg/add', payload);
|
|
67
|
+
}
|
|
68
|
+
/** Query the knowledge graph for an entity */
|
|
69
|
+
async kgQuery(entity) {
|
|
70
|
+
return this.http.get('/memory/kg/query', { entity });
|
|
71
|
+
}
|
|
72
|
+
/** Get the timeline for a knowledge graph entity */
|
|
73
|
+
async kgTimeline(entity) {
|
|
74
|
+
return this.http.get('/memory/kg/timeline', { entity });
|
|
75
|
+
}
|
|
76
|
+
/** Auto-save session messages to memory */
|
|
77
|
+
async autoSave(sessionId, messages) {
|
|
78
|
+
return this.http.post('/memory/auto-save', { session_id: sessionId, messages });
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.MemoryResource = MemoryResource;
|
|
82
|
+
//# sourceMappingURL=memory.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"memory.js","sourceRoot":"","sources":["../../src/resources/memory.ts"],"names":[],"mappings":";;;AAwCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,MAAa,cAAc;IACL;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,4CAA4C;IAC5C,KAAK,CAAC,MAAM,CAAC,KAAa,EAAE,IAAa,EAAE,IAAa,EAAE,KAAc;QACtE,MAAM,MAAM,GAAoC,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC;QAC7D,IAAI,IAAI;YAAE,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC;QAC7B,IAAI,IAAI;YAAE,MAAM,CAAC,IAAI,GAAG,IAAI,CAAC;QAC7B,IAAI,KAAK,KAAK,SAAS;YAAE,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC;QAC9C,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;IAED,uCAAuC;IACvC,KAAK,CAAC,KAAK,CAAC,OAAe,EAAE,IAAY,EAAE,IAAY,EAAE,MAAe;QACtE,MAAM,OAAO,GAA4B,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CA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Type = 'decline_curve_analysis' | 'drilling_report' | 'hse_report' | 'production_analysis' | 'well_analysis' | 'cost_analysis' | 'maintenance_prediction' | 'compliance_check' | 'oilgas_dashboard' | 'general_oilgas';
|
|
4
|
+
export interface OilGasAnalyzeParams {
|
|
5
|
+
prompt: string;
|
|
6
|
+
task_type?: OilGasTaskType;
|
|
7
|
+
data?: Record<string, unknown>;
|
|
8
|
+
file_content?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface OilGasResult {
|
|
11
|
+
output: string;
|
|
12
|
+
source: string;
|
|
13
|
+
task_type: string;
|
|
14
|
+
industry: string;
|
|
15
|
+
}
|
|
16
|
+
export interface DeclineCurveParams {
|
|
17
|
+
qi?: number;
|
|
18
|
+
di?: number;
|
|
19
|
+
b?: number;
|
|
20
|
+
months?: number;
|
|
21
|
+
}
|
|
22
|
+
export interface DeclineCurveForecastPoint {
|
|
23
|
+
month: number;
|
|
24
|
+
rate_per_day: number;
|
|
25
|
+
monthly_volume: number;
|
|
26
|
+
cumulative: number;
|
|
27
|
+
}
|
|
28
|
+
export interface DeclineCurveResult {
|
|
29
|
+
forecast: DeclineCurveForecastPoint[];
|
|
30
|
+
parameters: {
|
|
31
|
+
qi: number;
|
|
32
|
+
di: number;
|
|
33
|
+
b: number;
|
|
34
|
+
months: number;
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
export interface ProductionSummary {
|
|
38
|
+
total_oil_bbl: number;
|
|
39
|
+
total_gas_mcf: number;
|
|
40
|
+
total_water_bbl: number;
|
|
41
|
+
avg_oil_bopd: number;
|
|
42
|
+
avg_gas_mcfd: number;
|
|
43
|
+
water_cut_pct: number;
|
|
44
|
+
gor: number;
|
|
45
|
+
days: number;
|
|
46
|
+
}
|
|
47
|
+
export interface OilGasWorkflow {
|
|
48
|
+
name: string;
|
|
49
|
+
description: string;
|
|
50
|
+
icon: string;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Oil & Gas industry AI resource — production analysis, drilling reports,
|
|
54
|
+
* HSE compliance, decline curve forecasting, predictive maintenance, and more.
|
|
55
|
+
*
|
|
56
|
+
* @example
|
|
57
|
+
* ```typescript
|
|
58
|
+
* const nova = new NovaClient({ apiKey: 'nova_xxx' });
|
|
59
|
+
*
|
|
60
|
+
* // Run decline curve analysis
|
|
61
|
+
* const result = await nova.oilgas.analyze({
|
|
62
|
+
* prompt: 'Analyze decline curve for Well #A-14, Permian Basin',
|
|
63
|
+
* task_type: 'decline_curve_analysis',
|
|
64
|
+
* data: { qi: 450, di: 0.06, b: 0.8 }
|
|
65
|
+
* });
|
|
66
|
+
*
|
|
67
|
+
* // Generate HSE report
|
|
68
|
+
* const report = await nova.oilgas.hseReport('H2S alarm at Well Pad 7');
|
|
69
|
+
*
|
|
70
|
+
* // Calculate forecast
|
|
71
|
+
* const forecast = await nova.oilgas.declineCurve({ qi: 500, di: 0.05, b: 0.5 });
|
|
72
|
+
*
|
|
73
|
+
* // List workflows
|
|
74
|
+
* const workflows = await nova.oilgas.workflows();
|
|
75
|
+
* ```
|
|
76
|
+
*/
|
|
77
|
+
export declare class OilGasResource {
|
|
78
|
+
private http;
|
|
79
|
+
constructor(http: HttpClient);
|
|
80
|
+
/** Run an oil & gas AI analysis workflow */
|
|
81
|
+
analyze(params: OilGasAnalyzeParams): Promise<OilGasResult>;
|
|
82
|
+
/** List available oil & gas AI workflows */
|
|
83
|
+
workflows(): Promise<Record<string, OilGasWorkflow>>;
|
|
84
|
+
/** Calculate decline curve forecast */
|
|
85
|
+
declineCurve(params?: DeclineCurveParams): Promise<DeclineCurveResult>;
|
|
86
|
+
/** Parse production data from CSV text */
|
|
87
|
+
parseProduction(data: string): Promise<{
|
|
88
|
+
records: unknown[];
|
|
89
|
+
summary: ProductionSummary;
|
|
90
|
+
}>;
|
|
91
|
+
/** Generate O&G specific dashboard design */
|
|
92
|
+
dashboard(prompt: string): Promise<Record<string, unknown>>;
|
|
93
|
+
/** Decline curve analysis shortcut */
|
|
94
|
+
declineAnalysis(prompt: string, data?: Record<string, unknown>): Promise<OilGasResult>;
|
|
95
|
+
/** Daily drilling report shortcut */
|
|
96
|
+
drillingReport(prompt: string, data?: Record<string, unknown>): Promise<OilGasResult>;
|
|
97
|
+
/** HSE incident report shortcut */
|
|
98
|
+
hseReport(prompt: string, data?: Record<string, unknown>): Promise<OilGasResult>;
|
|
99
|
+
/** Production analysis shortcut */
|
|
100
|
+
productionReport(prompt: string, data?: Record<string, unknown>): Promise<OilGasResult>;
|
|
101
|
+
/** Cost analysis shortcut */
|
|
102
|
+
costReport(prompt: string, data?: Record<string, unknown>): Promise<OilGasResult>;
|
|
103
|
+
/** Predictive maintenance shortcut */
|
|
104
|
+
maintenanceCheck(prompt: string, data?: Record<string, unknown>): Promise<OilGasResult>;
|
|
105
|
+
/** Regulatory compliance check shortcut */
|
|
106
|
+
complianceCheck(prompt: string, data?: Record<string, unknown>): Promise<OilGasResult>;
|
|
107
|
+
}
|
|
108
|
+
//# sourceMappingURL=oilgas.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oilgas.d.ts","sourceRoot":"","sources":["../../src/resources/oilgas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,2BAA2B;AAC3B,MAAM,MAAM,cAAc,GACtB,wBAAwB,GACxB,iBAAiB,GACjB,YAAY,GACZ,qBAAqB,GACrB,eAAe,GACf,eAAe,GACf,wBAAwB,GACxB,kBAAkB,GAClB,kBAAkB,GAClB,gBAAgB,CAAC;AAErB,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,cAAc,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EA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AE,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;IAI7F,2CAA2C;IACrC,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,YAAY,CAAC;CAG7F"}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OilGasResource = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* Oil & Gas industry AI resource — production analysis, drilling reports,
|
|
6
|
+
* HSE compliance, decline curve forecasting, predictive maintenance, and more.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* const nova = new NovaClient({ apiKey: 'nova_xxx' });
|
|
11
|
+
*
|
|
12
|
+
* // Run decline curve analysis
|
|
13
|
+
* const result = await nova.oilgas.analyze({
|
|
14
|
+
* prompt: 'Analyze decline curve for Well #A-14, Permian Basin',
|
|
15
|
+
* task_type: 'decline_curve_analysis',
|
|
16
|
+
* data: { qi: 450, di: 0.06, b: 0.8 }
|
|
17
|
+
* });
|
|
18
|
+
*
|
|
19
|
+
* // Generate HSE report
|
|
20
|
+
* const report = await nova.oilgas.hseReport('H2S alarm at Well Pad 7');
|
|
21
|
+
*
|
|
22
|
+
* // Calculate forecast
|
|
23
|
+
* const forecast = await nova.oilgas.declineCurve({ qi: 500, di: 0.05, b: 0.5 });
|
|
24
|
+
*
|
|
25
|
+
* // List workflows
|
|
26
|
+
* const workflows = await nova.oilgas.workflows();
|
|
27
|
+
* ```
|
|
28
|
+
*/
|
|
29
|
+
class OilGasResource {
|
|
30
|
+
http;
|
|
31
|
+
constructor(http) {
|
|
32
|
+
this.http = http;
|
|
33
|
+
}
|
|
34
|
+
/** Run an oil & gas AI analysis workflow */
|
|
35
|
+
async analyze(params) {
|
|
36
|
+
return this.http.post('/oilgas/analyze', params);
|
|
37
|
+
}
|
|
38
|
+
/** List available oil & gas AI workflows */
|
|
39
|
+
async workflows() {
|
|
40
|
+
const result = await this.http.get('/oilgas/workflows');
|
|
41
|
+
return result.workflows ?? {};
|
|
42
|
+
}
|
|
43
|
+
/** Calculate decline curve forecast */
|
|
44
|
+
async declineCurve(params) {
|
|
45
|
+
return this.http.post('/oilgas/decline-curve', params ?? {});
|
|
46
|
+
}
|
|
47
|
+
/** Parse production data from CSV text */
|
|
48
|
+
async parseProduction(data) {
|
|
49
|
+
return this.http.post('/oilgas/parse-production', { data });
|
|
50
|
+
}
|
|
51
|
+
/** Generate O&G specific dashboard design */
|
|
52
|
+
async dashboard(prompt) {
|
|
53
|
+
return this.http.post('/oilgas/dashboard', { prompt });
|
|
54
|
+
}
|
|
55
|
+
// ── Convenience shortcuts ──
|
|
56
|
+
/** Decline curve analysis shortcut */
|
|
57
|
+
async declineAnalysis(prompt, data) {
|
|
58
|
+
return this.analyze({ prompt, task_type: 'decline_curve_analysis', data });
|
|
59
|
+
}
|
|
60
|
+
/** Daily drilling report shortcut */
|
|
61
|
+
async drillingReport(prompt, data) {
|
|
62
|
+
return this.analyze({ prompt, task_type: 'drilling_report', data });
|
|
63
|
+
}
|
|
64
|
+
/** HSE incident report shortcut */
|
|
65
|
+
async hseReport(prompt, data) {
|
|
66
|
+
return this.analyze({ prompt, task_type: 'hse_report', data });
|
|
67
|
+
}
|
|
68
|
+
/** Production analysis shortcut */
|
|
69
|
+
async productionReport(prompt, data) {
|
|
70
|
+
return this.analyze({ prompt, task_type: 'production_analysis', data });
|
|
71
|
+
}
|
|
72
|
+
/** Cost analysis shortcut */
|
|
73
|
+
async costReport(prompt, data) {
|
|
74
|
+
return this.analyze({ prompt, task_type: 'cost_analysis', data });
|
|
75
|
+
}
|
|
76
|
+
/** Predictive maintenance shortcut */
|
|
77
|
+
async maintenanceCheck(prompt, data) {
|
|
78
|
+
return this.analyze({ prompt, task_type: 'maintenance_prediction', data });
|
|
79
|
+
}
|
|
80
|
+
/** Regulatory compliance check shortcut */
|
|
81
|
+
async complianceCheck(prompt, data) {
|
|
82
|
+
return this.analyze({ prompt, task_type: 'compliance_check', data });
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.OilGasResource = OilGasResource;
|
|
86
|
+
//# sourceMappingURL=oilgas.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"oilgas.js","sourceRoot":"","sources":["../../src/resources/oilgas.ts"],"names":[],"mappings":";;;AAiEA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAa,cAAc;IACL;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,4CAA4C;IAC5C,KAAK,CAAC,OAAO,CAAC,MAA2B;QACvC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC;IACnD,CAAC;IAED,4CAA4C;IAC5C,KAAK,CAAC,SAAS;QACb,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,mBAAmB,CAAC,CAAC;QACxD,OAAQ,MAAc,CAAC,SAAS,IAAI,EAAE,CAAC;IACzC,CAAC;IAED,uCAAuC;IACvC,KAAK,CAAC,YAAY,CAAC,MAA2B;QAC5C,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,uBAAuB,EAAE,MAAM,IAAI,EAAE,CAAC,CAAC;IAC/D,CAAC;IAED,0CAA0C;IAC1C,KAAK,CAAC,eAAe,CAAC,IAAY;QAChC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9D,CAAC;IAED,6CAA6C;IAC7C,KAAK,CAAC,SAAS,CAAC,MAAc;QAC5B,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;IACzD,CA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kBAAkB,EAAE,IAAI,EAAE,CAAC,CAAC;IACvE,CAAC;CACF;AAjED,wCAiEC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { HttpClient } from '../core/http.js';
|
|
2
|
+
export interface TerminalExecParams {
|
|
3
|
+
command: string;
|
|
4
|
+
timeout?: number;
|
|
5
|
+
}
|
|
6
|
+
export interface TerminalRunParams {
|
|
7
|
+
code: string;
|
|
8
|
+
language?: string;
|
|
9
|
+
timeout?: number;
|
|
10
|
+
}
|
|
11
|
+
export interface TerminalInstallParams {
|
|
12
|
+
packages: string | string[];
|
|
13
|
+
manager?: string;
|
|
14
|
+
}
|
|
15
|
+
export interface TerminalGitParams {
|
|
16
|
+
operation: string;
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
export interface TerminalFileOpsParams {
|
|
20
|
+
operation: string;
|
|
21
|
+
path: string;
|
|
22
|
+
}
|
|
23
|
+
export interface TerminalExecResult {
|
|
24
|
+
output: string;
|
|
25
|
+
stderr?: string;
|
|
26
|
+
exit_code: number;
|
|
27
|
+
[key: string]: unknown;
|
|
28
|
+
}
|
|
29
|
+
export interface TerminalStatusResult {
|
|
30
|
+
uptime: number;
|
|
31
|
+
status: string;
|
|
32
|
+
[key: string]: unknown;
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* AI-powered terminal operations — command execution, code running,
|
|
36
|
+
* package management, git operations, and file management.
|
|
37
|
+
*
|
|
38
|
+
* @example
|
|
39
|
+
* ```typescript
|
|
40
|
+
* const nova = new NovaClient({ apiKey: 'nova_xxx' });
|
|
41
|
+
*
|
|
42
|
+
* // Execute a shell command
|
|
43
|
+
* const result = await nova.terminal.exec({ command: 'ls -la /tmp' });
|
|
44
|
+
*
|
|
45
|
+
* // Run code
|
|
46
|
+
* const code = await nova.terminal.run({ code: 'console.log("Hello")', language: 'javascript' });
|
|
47
|
+
*
|
|
48
|
+
* // Install packages
|
|
49
|
+
* const install = await nova.terminal.install({ packages: ['lodash', 'axios'], manager: 'npm' });
|
|
50
|
+
*
|
|
51
|
+
* // Git operations
|
|
52
|
+
* const git = await nova.terminal.git({ operation: 'status' });
|
|
53
|
+
*
|
|
54
|
+
* // File operations
|
|
55
|
+
* const files = await nova.terminal.fileOps({ operation: 'list', path: '/tmp' });
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
export declare class TerminalResource {
|
|
59
|
+
private http;
|
|
60
|
+
constructor(http: HttpClient);
|
|
61
|
+
/** Execute a shell command */
|
|
62
|
+
exec(params: TerminalExecParams): Promise<TerminalExecResult>;
|
|
63
|
+
/** Run code in a sandboxed environment */
|
|
64
|
+
run(params: TerminalRunParams): Promise<TerminalExecResult>;
|
|
65
|
+
/** Install packages using a package manager */
|
|
66
|
+
install(params: TerminalInstallParams): Promise<Record<string, unknown>>;
|
|
67
|
+
/** Get terminal/sandbox status */
|
|
68
|
+
status(): Promise<TerminalStatusResult>;
|
|
69
|
+
/** Run a git operation */
|
|
70
|
+
git(params: TerminalGitParams): Promise<Record<string, unknown>>;
|
|
71
|
+
/** Perform file system operations */
|
|
72
|
+
fileOps(params: TerminalFileOpsParams): Promise<Record<string, unknown>>;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=terminal.d.ts.map
|