@novalabai/adk 2.2.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 +39 -0
- package/dist/client.d.ts.map +1 -1
- package/dist/client.js +52 -0
- package/dist/client.js.map +1 -1
- package/dist/index.d.ts +26 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +27 -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/billing.d.ts +49 -0
- package/dist/resources/billing.d.ts.map +1 -0
- package/dist/resources/billing.js +82 -0
- package/dist/resources/billing.js.map +1 -0
- 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/dist/types/billing.d.ts +150 -0
- package/dist/types/billing.d.ts.map +1 -0
- package/dist/types/billing.js +4 -0
- package/dist/types/billing.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
import type { HttpClient } from '../core/http.js';
|
|
2
|
+
/** Oil & Gas task types */
|
|
3
|
+
export type OilGasTaskType = '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,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,c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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;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,EAAE,CAAC,CAAC;IACtE,CAAC;IAED,mCAAmC;IACnC,KAAK,CAAC,SAAS,CAAC,MAAc,EAAE,IAA8B;QAC5D,OAAO,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC,CAAC;IACjE,CAAC;IAED,mCAAmC;IACnC,KAAK,CAAC,gBAAgB,CAAC,MAAc,EAAE,IAA8B;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,qBAAqB,EAAE,IAAI,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED,6BAA6B;IAC7B,KAAK,CAAC,UAAU,CAAC,MAAc,EAAE,IAA8B;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,CAAC;IACpE,CAAC;IAED,sCAAsC;IACtC,KAAK,CAAC,gBAAgB,CAAC,MAAc,EAAE,IAA8B;QACnE,OAAO,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,wBAAwB,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED,2CAA2C;IAC3C,KAAK,CAAC,eAAe,CAAC,MAAc,EAAE,IAA8B;QAClE,OAAO,IAAI,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,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
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal.d.ts","sourceRoot":"","sources":["../../src/resources/terminal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,SAAS,EAAE,MAAM,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,qBAAqB;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;IACf,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBAAa,gBAAgB;IACf,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,8BAA8B;IACxB,IAAI,CAAC,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAOnE,0CAA0C;IACpC,GAAG,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAQjE,+CAA+C;IACzC,OAAO,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAQ9E,kCAAkC;IAC5B,MAAM,IAAI,OAAO,CAAC,oBAAoB,CAAC;IAI7C,0BAA0B;IACpB,GAAG,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAItE,qCAAqC;IAC/B,OAAO,CAAC,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAM/E"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TerminalResource = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* AI-powered terminal operations — command execution, code running,
|
|
6
|
+
* package management, git operations, and file management.
|
|
7
|
+
*
|
|
8
|
+
* @example
|
|
9
|
+
* ```typescript
|
|
10
|
+
* const nova = new NovaClient({ apiKey: 'nova_xxx' });
|
|
11
|
+
*
|
|
12
|
+
* // Execute a shell command
|
|
13
|
+
* const result = await nova.terminal.exec({ command: 'ls -la /tmp' });
|
|
14
|
+
*
|
|
15
|
+
* // Run code
|
|
16
|
+
* const code = await nova.terminal.run({ code: 'console.log("Hello")', language: 'javascript' });
|
|
17
|
+
*
|
|
18
|
+
* // Install packages
|
|
19
|
+
* const install = await nova.terminal.install({ packages: ['lodash', 'axios'], manager: 'npm' });
|
|
20
|
+
*
|
|
21
|
+
* // Git operations
|
|
22
|
+
* const git = await nova.terminal.git({ operation: 'status' });
|
|
23
|
+
*
|
|
24
|
+
* // File operations
|
|
25
|
+
* const files = await nova.terminal.fileOps({ operation: 'list', path: '/tmp' });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
class TerminalResource {
|
|
29
|
+
http;
|
|
30
|
+
constructor(http) {
|
|
31
|
+
this.http = http;
|
|
32
|
+
}
|
|
33
|
+
/** Execute a shell command */
|
|
34
|
+
async exec(params) {
|
|
35
|
+
return this.http.post('/terminal/exec', {
|
|
36
|
+
command: params.command,
|
|
37
|
+
timeout: params.timeout ?? 30,
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/** Run code in a sandboxed environment */
|
|
41
|
+
async run(params) {
|
|
42
|
+
return this.http.post('/terminal/run', {
|
|
43
|
+
code: params.code,
|
|
44
|
+
language: params.language ?? 'python',
|
|
45
|
+
timeout: params.timeout ?? 30,
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
/** Install packages using a package manager */
|
|
49
|
+
async install(params) {
|
|
50
|
+
const packages = typeof params.packages === 'string' ? [params.packages] : params.packages;
|
|
51
|
+
return this.http.post('/terminal/install', {
|
|
52
|
+
packages,
|
|
53
|
+
manager: params.manager ?? 'pip',
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
/** Get terminal/sandbox status */
|
|
57
|
+
async status() {
|
|
58
|
+
return this.http.get('/terminal/status');
|
|
59
|
+
}
|
|
60
|
+
/** Run a git operation */
|
|
61
|
+
async git(params) {
|
|
62
|
+
return this.http.post('/terminal/git', params);
|
|
63
|
+
}
|
|
64
|
+
/** Perform file system operations */
|
|
65
|
+
async fileOps(params) {
|
|
66
|
+
return this.http.post('/terminal/files', {
|
|
67
|
+
operation: params.operation,
|
|
68
|
+
path: params.path,
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
exports.TerminalResource = TerminalResource;
|
|
73
|
+
//# sourceMappingURL=terminal.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terminal.js","sourceRoot":"","sources":["../../src/resources/terminal.ts"],"names":[],"mappings":";;;AAyCA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,MAAa,gBAAgB;IACP;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,8BAA8B;IAC9B,KAAK,CAAC,IAAI,CAAC,MAA0B;QACnC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACtC,OAAO,EAAE,MAAM,CAAC,OAAO;YACvB,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,EAAE;SAC9B,CAAC,CAAC;IACL,CAAC;IAED,0CAA0C;IAC1C,KAAK,CAAC,GAAG,CAAC,MAAyB;QACjC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE;YACrC,IAAI,EAAE,MAAM,CAAC,IAAI;YACjB,QAAQ,EAAE,MAAM,CAAC,QAAQ,IAAI,QAAQ;YACrC,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,EAAE;SAC9B,CAAC,CAAC;IACL,CAAC;IAED,+CAA+C;IAC/C,KAAK,CAAC,OAAO,CAAC,MAA6B;QACzC,MAAM,QAAQ,GAAG,OAAO,MAAM,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC;QAC3F,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,mBAAmB,EAAE;YACzC,QAAQ;YACR,OAAO,EAAE,MAAM,CAAC,OAAO,IAAI,KAAK;SACjC,CAAC,CAAC;IACL,CAAC;IAED,kCAAkC;IAClC,KAAK,CAAC,MAAM;QACV,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;IAC3C,CAAC;IAED,0BAA0B;IAC1B,KAAK,CAAC,GAAG,CAAC,MAAyB;QACjC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,eAAe,EAAE,MAAM,CAAC,CAAC;IACjD,CAAC;IAED,qCAAqC;IACrC,KAAK,CAAC,OAAO,CAAC,MAA6B;QACzC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE;YACvC,SAAS,EAAE,MAAM,CAAC,SAAS;YAC3B,IAAI,EAAE,MAAM,CAAC,IAAI;SAClB,CAAC,CAAC;IACL,CAAC;CACF;AA9CD,4CA8CC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import type { HttpClient } from '../core/http.js';
|
|
2
|
+
export interface ToolBuilderBuildParams {
|
|
3
|
+
prompt: string;
|
|
4
|
+
}
|
|
5
|
+
export interface ToolBuilderBuildResult {
|
|
6
|
+
tool: Record<string, unknown>;
|
|
7
|
+
code: string;
|
|
8
|
+
schema: Record<string, unknown>;
|
|
9
|
+
[key: string]: unknown;
|
|
10
|
+
}
|
|
11
|
+
export interface ToolBuilderType {
|
|
12
|
+
name: string;
|
|
13
|
+
description: string;
|
|
14
|
+
schema?: Record<string, unknown>;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* AI-powered tool building — generate custom tools from natural language prompts.
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```typescript
|
|
21
|
+
* const nova = new NovaClient({ apiKey: 'nova_xxx' });
|
|
22
|
+
*
|
|
23
|
+
* // Build a custom tool
|
|
24
|
+
* const result = await nova.toolbuilder.build({ prompt: 'Create a CSV to JSON converter tool' });
|
|
25
|
+
* console.log(result.tool);
|
|
26
|
+
*
|
|
27
|
+
* // List available tool types
|
|
28
|
+
* const types = await nova.toolbuilder.types();
|
|
29
|
+
* ```
|
|
30
|
+
*/
|
|
31
|
+
export declare class ToolBuilderResource {
|
|
32
|
+
private http;
|
|
33
|
+
constructor(http: HttpClient);
|
|
34
|
+
/** Build a custom tool from a natural language prompt */
|
|
35
|
+
build(params: ToolBuilderBuildParams): Promise<ToolBuilderBuildResult>;
|
|
36
|
+
/** List available tool types and templates */
|
|
37
|
+
types(): Promise<ToolBuilderType[]>;
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=toolbuilder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbuilder.d.ts","sourceRoot":"","sources":["../../src/resources/toolbuilder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,sBAAsB;IACrC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAChC,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AAED;;;;;;;;;;;;;;GAcG;AACH,qBAAa,mBAAmB;IAClB,OAAO,CAAC,IAAI;gBAAJ,IAAI,EAAE,UAAU;IAEpC,yDAAyD;IACnD,KAAK,CAAC,MAAM,EAAE,sBAAsB,GAAG,OAAO,CAAC,sBAAsB,CAAC;IAI5E,8CAA8C;IACxC,KAAK,IAAI,OAAO,CAAC,eAAe,EAAE,CAAC;CAG1C"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ToolBuilderResource = void 0;
|
|
4
|
+
/**
|
|
5
|
+
* AI-powered tool building — generate custom tools from natural language prompts.
|
|
6
|
+
*
|
|
7
|
+
* @example
|
|
8
|
+
* ```typescript
|
|
9
|
+
* const nova = new NovaClient({ apiKey: 'nova_xxx' });
|
|
10
|
+
*
|
|
11
|
+
* // Build a custom tool
|
|
12
|
+
* const result = await nova.toolbuilder.build({ prompt: 'Create a CSV to JSON converter tool' });
|
|
13
|
+
* console.log(result.tool);
|
|
14
|
+
*
|
|
15
|
+
* // List available tool types
|
|
16
|
+
* const types = await nova.toolbuilder.types();
|
|
17
|
+
* ```
|
|
18
|
+
*/
|
|
19
|
+
class ToolBuilderResource {
|
|
20
|
+
http;
|
|
21
|
+
constructor(http) {
|
|
22
|
+
this.http = http;
|
|
23
|
+
}
|
|
24
|
+
/** Build a custom tool from a natural language prompt */
|
|
25
|
+
async build(params) {
|
|
26
|
+
return this.http.post('/toolbuilder/build', params);
|
|
27
|
+
}
|
|
28
|
+
/** List available tool types and templates */
|
|
29
|
+
async types() {
|
|
30
|
+
return this.http.get('/toolbuilder/types');
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
exports.ToolBuilderResource = ToolBuilderResource;
|
|
34
|
+
//# sourceMappingURL=toolbuilder.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"toolbuilder.js","sourceRoot":"","sources":["../../src/resources/toolbuilder.ts"],"names":[],"mappings":";;;AAmBA;;;;;;;;;;;;;;GAcG;AACH,MAAa,mBAAmB;IACV;IAApB,YAAoB,IAAgB;QAAhB,SAAI,GAAJ,IAAI,CAAY;IAAG,CAAC;IAExC,yDAAyD;IACzD,KAAK,CAAC,KAAK,CAAC,MAA8B;QACxC,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;IACtD,CAAC;IAED,8CAA8C;IAC9C,KAAK,CAAC,KAAK;QACT,OAAO,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,oBAAoB,CAAC,CAAC;IAC7C,CAAC;CACF;AAZD,kDAYC"}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/** Billing types for the Nova ADK. */
|
|
2
|
+
export interface PlanFeatures {
|
|
3
|
+
premium_models: boolean;
|
|
4
|
+
analytics: string;
|
|
5
|
+
sso: boolean;
|
|
6
|
+
audit_log: boolean;
|
|
7
|
+
custom_models: boolean;
|
|
8
|
+
dedicated_resources: boolean;
|
|
9
|
+
}
|
|
10
|
+
export interface Plan {
|
|
11
|
+
id: string;
|
|
12
|
+
name: string;
|
|
13
|
+
price_cents: number;
|
|
14
|
+
price_eur: number;
|
|
15
|
+
currency: string;
|
|
16
|
+
api_calls_monthly: number;
|
|
17
|
+
rate_limit_rpm: number;
|
|
18
|
+
agents_limit: number;
|
|
19
|
+
file_upload_mb: number;
|
|
20
|
+
rag_documents: number;
|
|
21
|
+
chat_sessions: number;
|
|
22
|
+
models: string | string[];
|
|
23
|
+
support: string;
|
|
24
|
+
overage_allowed: boolean;
|
|
25
|
+
overage_per_call_cents: number;
|
|
26
|
+
features: PlanFeatures;
|
|
27
|
+
}
|
|
28
|
+
export interface SubscriptionInfo {
|
|
29
|
+
plan: string;
|
|
30
|
+
display_name: string;
|
|
31
|
+
status: string;
|
|
32
|
+
cancel_at_period_end: boolean;
|
|
33
|
+
is_enterprise: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface UsageInfo {
|
|
36
|
+
api_calls: number;
|
|
37
|
+
limit: number;
|
|
38
|
+
tokens_in: number;
|
|
39
|
+
tokens_out: number;
|
|
40
|
+
models: Record<string, number>;
|
|
41
|
+
cost: number;
|
|
42
|
+
}
|
|
43
|
+
export interface BillingInfo {
|
|
44
|
+
currency: string;
|
|
45
|
+
base_price: number;
|
|
46
|
+
overage_calls: number;
|
|
47
|
+
overage_cost: number;
|
|
48
|
+
volume_discount: {
|
|
49
|
+
discount_pct: number;
|
|
50
|
+
label: string;
|
|
51
|
+
};
|
|
52
|
+
discount_amount: number;
|
|
53
|
+
estimated_total: number;
|
|
54
|
+
}
|
|
55
|
+
export interface CycleInfo {
|
|
56
|
+
start: string;
|
|
57
|
+
end: string;
|
|
58
|
+
days_remaining: number;
|
|
59
|
+
days_elapsed: number;
|
|
60
|
+
}
|
|
61
|
+
export interface LimitsInfo {
|
|
62
|
+
rate_limit_rpm: number;
|
|
63
|
+
agents: number;
|
|
64
|
+
file_upload_mb: number;
|
|
65
|
+
rag_documents: number;
|
|
66
|
+
chat_sessions: number;
|
|
67
|
+
}
|
|
68
|
+
export interface BillingSummary {
|
|
69
|
+
subscription: SubscriptionInfo;
|
|
70
|
+
usage: UsageInfo;
|
|
71
|
+
billing: BillingInfo;
|
|
72
|
+
cycle: CycleInfo;
|
|
73
|
+
limits: LimitsInfo;
|
|
74
|
+
features: Record<string, boolean | string>;
|
|
75
|
+
enterprise_contract: EnterpriseContract | null;
|
|
76
|
+
}
|
|
77
|
+
export interface Invoice {
|
|
78
|
+
id: string;
|
|
79
|
+
stripe_invoice_id?: string;
|
|
80
|
+
amount_cents: number;
|
|
81
|
+
amount_eur: number;
|
|
82
|
+
currency: string;
|
|
83
|
+
status: string;
|
|
84
|
+
description?: string;
|
|
85
|
+
period_start?: string;
|
|
86
|
+
period_end?: string;
|
|
87
|
+
pdf_url?: string;
|
|
88
|
+
created_at?: string;
|
|
89
|
+
}
|
|
90
|
+
export interface VolumeDiscountTier {
|
|
91
|
+
min: number;
|
|
92
|
+
max: number | null;
|
|
93
|
+
discount_pct: number;
|
|
94
|
+
label: string;
|
|
95
|
+
}
|
|
96
|
+
export interface EnterpriseContract {
|
|
97
|
+
id?: string;
|
|
98
|
+
company_name: string;
|
|
99
|
+
contact_email: string;
|
|
100
|
+
contract_start?: string;
|
|
101
|
+
contract_end?: string;
|
|
102
|
+
monthly_price_cents: number;
|
|
103
|
+
monthly_price_eur: number;
|
|
104
|
+
api_call_limit: number;
|
|
105
|
+
rate_limit_rpm: number;
|
|
106
|
+
volume_discount_pct: number;
|
|
107
|
+
sla_uptime_pct: number;
|
|
108
|
+
dedicated_ollama: boolean;
|
|
109
|
+
custom_models: string[];
|
|
110
|
+
status: string;
|
|
111
|
+
}
|
|
112
|
+
export interface CheckoutSessionParams {
|
|
113
|
+
plan: string;
|
|
114
|
+
success_url?: string;
|
|
115
|
+
cancel_url?: string;
|
|
116
|
+
}
|
|
117
|
+
export interface CheckoutSessionResult {
|
|
118
|
+
checkout_url: string;
|
|
119
|
+
session_id: string;
|
|
120
|
+
}
|
|
121
|
+
export interface PortalSessionResult {
|
|
122
|
+
portal_url: string;
|
|
123
|
+
}
|
|
124
|
+
export interface AuditEntry {
|
|
125
|
+
action: string;
|
|
126
|
+
details: Record<string, unknown>;
|
|
127
|
+
ip?: string;
|
|
128
|
+
timestamp?: string;
|
|
129
|
+
}
|
|
130
|
+
export interface SSOConfig {
|
|
131
|
+
sso_enabled: boolean;
|
|
132
|
+
provider: string;
|
|
133
|
+
domain: string;
|
|
134
|
+
}
|
|
135
|
+
export interface EnterpriseContractParams {
|
|
136
|
+
api_key?: string;
|
|
137
|
+
company_name: string;
|
|
138
|
+
contact_email?: string;
|
|
139
|
+
monthly_price_cents: number;
|
|
140
|
+
contract_months?: number;
|
|
141
|
+
api_call_limit?: number;
|
|
142
|
+
rate_limit_rpm?: number;
|
|
143
|
+
volume_discount_pct?: number;
|
|
144
|
+
sla_uptime_pct?: number;
|
|
145
|
+
dedicated_ollama?: boolean;
|
|
146
|
+
custom_models?: string[];
|
|
147
|
+
sso_provider?: string;
|
|
148
|
+
sso_domain?: string;
|
|
149
|
+
}
|
|
150
|
+
//# sourceMappingURL=billing.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing.d.ts","sourceRoot":"","sources":["../../src/types/billing.ts"],"names":[],"mappings":"AAAA,sCAAsC;AAEtC,MAAM,WAAW,YAAY;IAC3B,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,OAAO,CAAC;IACb,SAAS,EAAE,OAAO,CAAC;IACnB,aAAa,EAAE,OAAO,CAAC;IACvB,mBAAmB,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,WAAW,IAAI;IACnB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC1B,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,OAAO,CAAC;IACzB,sBAAsB,EAAE,MAAM,CAAC;IAC/B,QAAQ,EAAE,YAAY,CAAC;CACxB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,OAAO,CAAC;IAC9B,aAAa,EAAE,OAAO,CAAC;CACxB;AAED,MAAM,WAAW,SAAS;IACxB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CA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OAAO,CAAC,CAAC;IACjC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,SAAS;IACxB,WAAW,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,wBAAwB;IACvC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"billing.js","sourceRoot":"","sources":["../../src/types/billing.ts"],"names":[],"mappings":";AAAA,sCAAsC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@novalabai/adk",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.4.0",
|
|
4
4
|
"description": "NovaLab Agent Development Kit — Build, test, and deploy Nova AI agents with multi-agent orchestration, smart model routing, trust layer, and confidence scoring",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|