@codemieai/cdk 0.1.632 → 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 +18 -0
- package/dist/cli/index.js +657 -306
- package/dist/index.d.ts +5 -22
- package/dist/index.js +551 -234
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -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"
|
|
@@ -629,11 +607,16 @@ declare function backupResources(options: {
|
|
|
629
607
|
appConfig: AppConfig;
|
|
630
608
|
}): Promise<void>;
|
|
631
609
|
|
|
610
|
+
/**
|
|
611
|
+
* The resource kinds `codemie import` knows how to import from the platform.
|
|
612
|
+
*/
|
|
632
613
|
type ImportResourceType = 'assistant' | 'datasource' | 'workflow' | 'skill';
|
|
614
|
+
|
|
633
615
|
interface ImportOptions {
|
|
634
616
|
appConfig: AppConfig;
|
|
635
617
|
resourceType: ImportResourceType;
|
|
636
618
|
slug: string;
|
|
619
|
+
update?: boolean;
|
|
637
620
|
}
|
|
638
621
|
/**
|
|
639
622
|
* Import a single resource from the CodeMie platform into the local IaC configuration.
|