@codemieai/cdk 0.1.631 → 0.1.633
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/README.md +19 -0
- package/dist/cli/index.js +859 -429
- package/dist/index.d.ts +10 -24
- package/dist/index.js +739 -354
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -251,7 +251,7 @@ interface SkillState {
|
|
|
251
251
|
configChecksum: string;
|
|
252
252
|
}
|
|
253
253
|
interface WorkflowYaml {
|
|
254
|
-
assistants
|
|
254
|
+
assistants?: WorkflowAssistantReference[];
|
|
255
255
|
states: WorkflowStateDefinition[];
|
|
256
256
|
}
|
|
257
257
|
interface WorkflowAssistantReference {
|
|
@@ -304,28 +304,6 @@ declare class CodemieConfigLoader {
|
|
|
304
304
|
valid: boolean;
|
|
305
305
|
errors: string[];
|
|
306
306
|
};
|
|
307
|
-
/**
|
|
308
|
-
* Resolve $import directives recursively
|
|
309
|
-
* Automatically handles:
|
|
310
|
-
* 1. Single resource import (object)
|
|
311
|
-
* 2. Multiple resources import (array)
|
|
312
|
-
* 3. Mixed inline + imports
|
|
313
|
-
* Includes circular import detection to prevent infinite recursion
|
|
314
|
-
*/
|
|
315
|
-
private resolveImports;
|
|
316
|
-
/**
|
|
317
|
-
* Resolve imports in arrays
|
|
318
|
-
* Intelligently handles:
|
|
319
|
-
* - Inline objects (keep as-is)
|
|
320
|
-
* - $import with single object (add to array)
|
|
321
|
-
* - $import with array (flatten into parent array)
|
|
322
|
-
* Includes circular import detection
|
|
323
|
-
*/
|
|
324
|
-
private resolveArrayImports;
|
|
325
|
-
/**
|
|
326
|
-
* Load YAML file with error handling
|
|
327
|
-
*/
|
|
328
|
-
private loadYamlFile;
|
|
329
307
|
/**
|
|
330
308
|
* Recursively resolve all $ref in an object/array structure
|
|
331
309
|
* Handles both object references { $ref: "path" } and string references "$ref:path"
|
|
@@ -601,6 +579,7 @@ declare function deployWorkflows(config: ReturnType<CodemieConfigLoader['loadCon
|
|
|
601
579
|
declare function deployResources(options: {
|
|
602
580
|
appConfig: AppConfig;
|
|
603
581
|
prune?: boolean;
|
|
582
|
+
skipDatasources?: boolean;
|
|
604
583
|
}): Promise<void>;
|
|
605
584
|
|
|
606
585
|
declare function validateConfig(options: {
|
|
@@ -611,7 +590,9 @@ declare function validateConfig(options: {
|
|
|
611
590
|
errors: string[];
|
|
612
591
|
}>;
|
|
613
592
|
|
|
614
|
-
declare function previewChanges(appConfig: AppConfig, existingClient?: CodeMieClient
|
|
593
|
+
declare function previewChanges(appConfig: AppConfig, existingClient?: CodeMieClient, options?: {
|
|
594
|
+
skipDatasources?: boolean;
|
|
595
|
+
}): Promise<{
|
|
615
596
|
changes: Change[];
|
|
616
597
|
summary: {
|
|
617
598
|
deleted: number;
|
|
@@ -626,11 +607,16 @@ declare function backupResources(options: {
|
|
|
626
607
|
appConfig: AppConfig;
|
|
627
608
|
}): Promise<void>;
|
|
628
609
|
|
|
610
|
+
/**
|
|
611
|
+
* The resource kinds `codemie import` knows how to import from the platform.
|
|
612
|
+
*/
|
|
629
613
|
type ImportResourceType = 'assistant' | 'datasource' | 'workflow' | 'skill';
|
|
614
|
+
|
|
630
615
|
interface ImportOptions {
|
|
631
616
|
appConfig: AppConfig;
|
|
632
617
|
resourceType: ImportResourceType;
|
|
633
618
|
slug: string;
|
|
619
|
+
update?: boolean;
|
|
634
620
|
}
|
|
635
621
|
/**
|
|
636
622
|
* Import a single resource from the CodeMie platform into the local IaC configuration.
|