cdeops 12.0.4-alpha.13 → 12.0.4-alpha.431
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/client.d.ts +75 -14
- package/package.json +2 -2
package/client.d.ts
CHANGED
|
@@ -47,7 +47,7 @@ declare module 'cdeops/client' {
|
|
|
47
47
|
default?: any;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
export interface
|
|
50
|
+
export interface ICodeJavascriptRequest {
|
|
51
51
|
script: string;
|
|
52
52
|
args: any[];
|
|
53
53
|
timeout?: number;
|
|
@@ -68,7 +68,7 @@ declare module 'cdeops/client' {
|
|
|
68
68
|
targetInput: string;
|
|
69
69
|
}
|
|
70
70
|
|
|
71
|
-
export interface
|
|
71
|
+
export interface ICodeJavascriptResponse {
|
|
72
72
|
result: any;
|
|
73
73
|
error?: string;
|
|
74
74
|
executionTime: number;
|
|
@@ -465,23 +465,20 @@ declare module 'cdeops/client' {
|
|
|
465
465
|
export function getCommands(filterInternal?: boolean): Promise<string[]>;
|
|
466
466
|
}
|
|
467
467
|
|
|
468
|
-
|
|
469
|
-
* Namespace for AI services. Provides access to AI worker, workflow, and node registry functionality.
|
|
470
|
-
*/
|
|
471
|
-
export namespace ai {
|
|
468
|
+
export namespace code {
|
|
472
469
|
/**
|
|
473
|
-
*
|
|
470
|
+
* Namespace for JavaScript code execution and library management.
|
|
474
471
|
*/
|
|
475
|
-
export namespace
|
|
472
|
+
export namespace javascript {
|
|
476
473
|
/**
|
|
477
|
-
* Executes a script in the
|
|
474
|
+
* Executes a script in the JavaScript environment.
|
|
478
475
|
* @param request The script execution request.
|
|
479
476
|
* @returns Promise that resolves to the execution result.
|
|
480
477
|
*/
|
|
481
|
-
export function executeScript(request:
|
|
478
|
+
export function executeScript(request: ICodeJavascriptRequest): Promise<ICodeJavascriptResponse>;
|
|
482
479
|
|
|
483
480
|
/**
|
|
484
|
-
* Installs a library in the
|
|
481
|
+
* Installs a library in the JavaScript environment.
|
|
485
482
|
* @param url The URL of the library to install.
|
|
486
483
|
* @param accessors The accessor names for the library.
|
|
487
484
|
* @returns Promise that resolves when the library is installed.
|
|
@@ -489,19 +486,83 @@ declare module 'cdeops/client' {
|
|
|
489
486
|
export function installLibrary(url: string, accessors: string[]): Promise<any>;
|
|
490
487
|
|
|
491
488
|
/**
|
|
492
|
-
* Uninstalls libraries from the
|
|
489
|
+
* Uninstalls libraries from the JavaScript environment.
|
|
493
490
|
* @param accessors The accessor names to uninstall.
|
|
494
491
|
* @returns Promise that resolves to the uninstall result.
|
|
495
492
|
*/
|
|
496
493
|
export function uninstallLibrary(accessors: string[]): Promise<{ success: boolean; error?: string }>;
|
|
497
494
|
|
|
498
495
|
/**
|
|
499
|
-
* Resets the
|
|
496
|
+
* Resets the JavaScript environment context.
|
|
500
497
|
* @returns Promise that resolves when the context is reset.
|
|
501
498
|
*/
|
|
502
499
|
export function resetContext(): Promise<void>;
|
|
503
|
-
}
|
|
504
500
|
|
|
501
|
+
/**
|
|
502
|
+
* Gets code completions for the given context.
|
|
503
|
+
* @param context The completion context with text, position, and optional scope.
|
|
504
|
+
* @returns Promise that resolves to completions and metadata.
|
|
505
|
+
*/
|
|
506
|
+
export function getCompletions(context: { text: string; position: number; scope?: string[] }): Promise<{
|
|
507
|
+
completions: Array<{
|
|
508
|
+
name: string;
|
|
509
|
+
type?: string;
|
|
510
|
+
doc?: string;
|
|
511
|
+
url?: string;
|
|
512
|
+
}>;
|
|
513
|
+
isIncomplete: boolean;
|
|
514
|
+
}>;
|
|
515
|
+
|
|
516
|
+
/**
|
|
517
|
+
* Gets type information for a symbol.
|
|
518
|
+
* @param symbol The symbol name to get type info for.
|
|
519
|
+
* @param scope Optional scope context.
|
|
520
|
+
* @returns Type information or null if not found.
|
|
521
|
+
*/
|
|
522
|
+
export function getTypeInfo(
|
|
523
|
+
symbol: string,
|
|
524
|
+
scope?: string[],
|
|
525
|
+
): { type?: string; doc?: string; url?: string } | null;
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Gets list of available definition libraries.
|
|
529
|
+
* @returns Array of definition library names.
|
|
530
|
+
*/
|
|
531
|
+
export function getAvailableDefinitions(): string[];
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* Gets the current autocomplete configuration.
|
|
535
|
+
* @returns The current autocomplete settings.
|
|
536
|
+
*/
|
|
537
|
+
export function getAutocompleteConfig(): {
|
|
538
|
+
includeDefaults: boolean;
|
|
539
|
+
includeLibraries: boolean;
|
|
540
|
+
enableDynamicLibraries: boolean;
|
|
541
|
+
customDefinitions: string[];
|
|
542
|
+
};
|
|
543
|
+
|
|
544
|
+
/**
|
|
545
|
+
* Updates the autocomplete configuration.
|
|
546
|
+
* @param config Partial configuration to update.
|
|
547
|
+
*/
|
|
548
|
+
export function updateAutocompleteConfig(config: {
|
|
549
|
+
includeDefaults?: boolean;
|
|
550
|
+
includeLibraries?: boolean;
|
|
551
|
+
enableDynamicLibraries?: boolean;
|
|
552
|
+
customDefinitions?: string[];
|
|
553
|
+
}): void;
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* Gets the raw Tern definitions for debugging and inspection.
|
|
557
|
+
* @returns The combined Tern definition object.
|
|
558
|
+
*/
|
|
559
|
+
export function getTernDefinitions(): unknown;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
/**
|
|
563
|
+
* Namespace for AI services. Provides access to AI workflow, and node registry functionality.
|
|
564
|
+
*/
|
|
565
|
+
export namespace ai {
|
|
505
566
|
/**
|
|
506
567
|
* AI Workflow service for managing and executing workflows.
|
|
507
568
|
*/
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cdeops",
|
|
3
|
-
"version": "12.0.4-alpha.
|
|
3
|
+
"version": "12.0.4-alpha.431",
|
|
4
4
|
"description": "Cdecode - Extension API: build extensions that enhance coding experience in your cdeops editor",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "CDMBase LLC",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"publishConfig": {
|
|
30
30
|
"access": "public"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "c80933f3c461175d3761cd6cee225098654070e4"
|
|
33
33
|
}
|