@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.
Files changed (65) hide show
  1. package/dist/client.d.ts +36 -0
  2. package/dist/client.d.ts.map +1 -1
  3. package/dist/client.js +48 -0
  4. package/dist/client.js.map +1 -1
  5. package/dist/index.d.ts +24 -0
  6. package/dist/index.d.ts.map +1 -1
  7. package/dist/index.js +25 -1
  8. package/dist/index.js.map +1 -1
  9. package/dist/resources/accounting.d.ts +50 -0
  10. package/dist/resources/accounting.d.ts.map +1 -0
  11. package/dist/resources/accounting.js +47 -0
  12. package/dist/resources/accounting.js.map +1 -0
  13. package/dist/resources/agents.d.ts +0 -4
  14. package/dist/resources/agents.d.ts.map +1 -1
  15. package/dist/resources/agents.js +0 -8
  16. package/dist/resources/agents.js.map +1 -1
  17. package/dist/resources/browser.d.ts +55 -0
  18. package/dist/resources/browser.d.ts.map +1 -0
  19. package/dist/resources/browser.js +59 -0
  20. package/dist/resources/browser.js.map +1 -0
  21. package/dist/resources/byollm.d.ts +2 -0
  22. package/dist/resources/byollm.d.ts.map +1 -1
  23. package/dist/resources/byollm.js +4 -0
  24. package/dist/resources/byollm.js.map +1 -1
  25. package/dist/resources/creative.d.ts +63 -0
  26. package/dist/resources/creative.d.ts.map +1 -0
  27. package/dist/resources/creative.js +58 -0
  28. package/dist/resources/creative.js.map +1 -0
  29. package/dist/resources/cybersecurity.d.ts +81 -0
  30. package/dist/resources/cybersecurity.d.ts.map +1 -0
  31. package/dist/resources/cybersecurity.js +88 -0
  32. package/dist/resources/cybersecurity.js.map +1 -0
  33. package/dist/resources/design.d.ts +61 -0
  34. package/dist/resources/design.d.ts.map +1 -0
  35. package/dist/resources/design.js +70 -0
  36. package/dist/resources/design.js.map +1 -0
  37. package/dist/resources/health.d.ts +52 -0
  38. package/dist/resources/health.d.ts.map +1 -0
  39. package/dist/resources/health.js +50 -0
  40. package/dist/resources/health.js.map +1 -0
  41. package/dist/resources/integrations.d.ts +65 -0
  42. package/dist/resources/integrations.d.ts.map +1 -0
  43. package/dist/resources/integrations.js +70 -0
  44. package/dist/resources/integrations.js.map +1 -0
  45. package/dist/resources/marketing.d.ts +65 -0
  46. package/dist/resources/marketing.d.ts.map +1 -0
  47. package/dist/resources/marketing.js +63 -0
  48. package/dist/resources/marketing.js.map +1 -0
  49. package/dist/resources/memory.d.ts +82 -0
  50. package/dist/resources/memory.d.ts.map +1 -0
  51. package/dist/resources/memory.js +82 -0
  52. package/dist/resources/memory.js.map +1 -0
  53. package/dist/resources/oilgas.d.ts +108 -0
  54. package/dist/resources/oilgas.d.ts.map +1 -0
  55. package/dist/resources/oilgas.js +86 -0
  56. package/dist/resources/oilgas.js.map +1 -0
  57. package/dist/resources/terminal.d.ts +74 -0
  58. package/dist/resources/terminal.d.ts.map +1 -0
  59. package/dist/resources/terminal.js +73 -0
  60. package/dist/resources/terminal.js.map +1 -0
  61. package/dist/resources/toolbuilder.d.ts +39 -0
  62. package/dist/resources/toolbuilder.d.ts.map +1 -0
  63. package/dist/resources/toolbuilder.js +34 -0
  64. package/dist/resources/toolbuilder.js.map +1 -0
  65. package/package.json +1 -1
@@ -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,CAA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@@
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novalabai/adk",
3
- "version": "2.3.0",
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",