@skaile/workspaces 0.12.1 → 0.13.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/CHANGELOG.md +41 -0
- package/dist/asset-manager/index.js +6 -8
- package/dist/asset-manager/installer.js +3 -4
- package/dist/asset-manager/src/index.d.ts +1 -2
- package/dist/asset-manager/src/index.d.ts.map +1 -1
- package/dist/asset-manager/src/{scaffold/layers/agents.d.ts → install-agent.d.ts} +11 -33
- package/dist/asset-manager/src/install-agent.d.ts.map +1 -0
- package/dist/base-assets/connectors/deploy.js +2 -2
- package/dist/base-assets/connectors/devserver.js +2 -2
- package/dist/base-assets/connectors/flow/adapter.js +2 -2
- package/dist/base-assets/connectors/flow/run-flow.js +3 -3
- package/dist/base-assets/connectors/flow.js +2 -2
- package/dist/base-assets/connectors/git.js +2 -2
- package/dist/base-assets/connectors/gmail.js +2 -2
- package/dist/base-assets/connectors/local.js +2 -2
- package/dist/base-assets/connectors/mattermost.js +2 -2
- package/dist/base-assets/connectors/memory.js +2 -2
- package/dist/base-assets/connectors/minio.js +2 -2
- package/dist/base-assets/connectors/postgres.js +2 -2
- package/dist/base-assets/connectors/redis.js +2 -2
- package/dist/base-assets/connectors/s3.js +2 -2
- package/dist/base-assets/connectors/sharepoint.js +2 -2
- package/dist/base-assets/connectors/sqlite.js +2 -2
- package/dist/base-assets/connectors/static-server.js +2 -2
- package/dist/base-assets/connectors/tunnel.js +2 -2
- package/dist/base-assets/connectors/webdav.js +2 -2
- package/dist/base-assets/connectors/xstate-store.js +2 -2
- package/dist/base-assets/connectors/xstate.js +2 -2
- package/dist/base-assets/connectors/yjs.js +2 -2
- package/dist/{chunk-UTKGPNLV.js → chunk-4DDQKKWX.js} +5 -5
- package/dist/{chunk-UTKGPNLV.js.map → chunk-4DDQKKWX.js.map} +1 -1
- package/dist/{chunk-DDVKNST3.js → chunk-CYRCPFZ2.js} +2 -2
- package/dist/{chunk-DDVKNST3.js.map → chunk-CYRCPFZ2.js.map} +1 -1
- package/dist/{chunk-M2NLRGIX.js → chunk-DZG3JD4Y.js} +160 -7
- package/dist/chunk-DZG3JD4Y.js.map +1 -0
- package/dist/{chunk-Z5PO7ZVP.js → chunk-GN6IYVJN.js} +2 -2
- package/dist/{chunk-Z5PO7ZVP.js.map → chunk-GN6IYVJN.js.map} +1 -1
- package/dist/{chunk-EARKGKKB.js → chunk-QG4X77V3.js} +6 -6
- package/dist/{chunk-EARKGKKB.js.map → chunk-QG4X77V3.js.map} +1 -1
- package/dist/cli/index.js +97 -37
- package/dist/cli/index.js.map +1 -1
- package/dist/connectors/config.js +2 -2
- package/dist/connectors/index.js +2 -2
- package/dist/core/index.js +2 -2
- package/dist/runner/index.js +7 -7
- package/dist/sdk/asset-manager.js +6 -8
- package/dist/sdk/core.js +2 -2
- package/dist/sdk/index.js +8 -8
- package/dist/sdk/runner.js +7 -7
- package/dist/{setup-WZFCLQ2J.js → setup-BQEST4RD.js} +4 -4
- package/dist/{setup-WZFCLQ2J.js.map → setup-BQEST4RD.js.map} +1 -1
- package/dist/{store-client-BM3IBDPT.js → store-client-CB6CYFXB.js} +4 -4
- package/dist/{store-client-BM3IBDPT.js.map → store-client-CB6CYFXB.js.map} +1 -1
- package/dist/tui/index.js +7 -7
- package/dist/workspace-plugin/adapters/mcp.js +2 -2
- package/dist/workspace-plugin/index.js +1 -1
- package/package.json +1 -7
- package/dist/asset-manager/scaffold.js +0 -18
- package/dist/asset-manager/scaffold.js.map +0 -1
- package/dist/asset-manager/src/scaffold/index.d.ts +0 -19
- package/dist/asset-manager/src/scaffold/index.d.ts.map +0 -1
- package/dist/asset-manager/src/scaffold/layers/agents.d.ts.map +0 -1
- package/dist/asset-manager/src/scaffold/layers/base.d.ts +0 -17
- package/dist/asset-manager/src/scaffold/layers/base.d.ts.map +0 -1
- package/dist/asset-manager/src/scaffold/layers/connectors.d.ts +0 -18
- package/dist/asset-manager/src/scaffold/layers/connectors.d.ts.map +0 -1
- package/dist/asset-manager/src/scaffold/layers/container.d.ts +0 -16
- package/dist/asset-manager/src/scaffold/layers/container.d.ts.map +0 -1
- package/dist/asset-manager/src/scaffold/layers/driver-target.d.ts +0 -17
- package/dist/asset-manager/src/scaffold/layers/driver-target.d.ts.map +0 -1
- package/dist/asset-manager/src/scaffold/layers/hooks.d.ts +0 -22
- package/dist/asset-manager/src/scaffold/layers/hooks.d.ts.map +0 -1
- package/dist/asset-manager/src/scaffold/layers/skills.d.ts +0 -31
- package/dist/asset-manager/src/scaffold/layers/skills.d.ts.map +0 -1
- package/dist/asset-manager/src/scaffold/layers/template.d.ts +0 -16
- package/dist/asset-manager/src/scaffold/layers/template.d.ts.map +0 -1
- package/dist/asset-manager/src/scaffold/scaffolder.d.ts +0 -77
- package/dist/asset-manager/src/scaffold/scaffolder.d.ts.map +0 -1
- package/dist/asset-manager/src/scaffold/types.d.ts +0 -241
- package/dist/asset-manager/src/scaffold/types.d.ts.map +0 -1
- package/dist/chunk-DIKFRNCS.js +0 -195
- package/dist/chunk-DIKFRNCS.js.map +0 -1
- package/dist/chunk-M2NLRGIX.js.map +0 -1
- package/dist/chunk-YHXBQLXX.js +0 -546
- package/dist/chunk-YHXBQLXX.js.map +0 -1
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Workspace scaffolding — merged from @skaile/agent-workspace.
|
|
3
|
-
*/
|
|
4
|
-
export type { AbilityRef, ConnectorRef, ContractRef, FragmentContext, FragmentId, } from "../fragments.js";
|
|
5
|
-
export { BUILT_IN_FRAGMENTS, loadPromptExtensions, resolveFragments, } from "../fragments.js";
|
|
6
|
-
export type { AgentRenderer, AgentRenderInput, AgentRenderResult, } from "../renderers.js";
|
|
7
|
-
export { AGENT_RENDERERS, claudeCodeRenderer, codexRenderer, driverTargetSupportsAgents, ompRenderer, } from "../renderers.js";
|
|
8
|
-
export type { AgentManifest } from "@skaile/workspaces/core";
|
|
9
|
-
export { applyAgentsLayer } from "./layers/agents.js";
|
|
10
|
-
export { applyBaseLayer } from "./layers/base.js";
|
|
11
|
-
export { applyContainerLayer } from "./layers/container.js";
|
|
12
|
-
export { applyDriverTargetLayer } from "./layers/driver-target.js";
|
|
13
|
-
export { applyHooksLayer } from "./layers/hooks.js";
|
|
14
|
-
export { applyConnectorsLayer } from "./layers/connectors.js";
|
|
15
|
-
export { applySkillsLayer } from "./layers/skills.js";
|
|
16
|
-
export { applyTemplateLayer } from "./layers/template.js";
|
|
17
|
-
export { listTemplates, loadTemplate, resolveTemplatePath, scaffoldWorkspace, setTemplatesDir, } from "./scaffolder.js";
|
|
18
|
-
export type { AgentInstallEntry, AgentsLayerConfig, ConnectorEntry, ContainerLayerConfig, DriverTargetLayerConfig, HooksLayerConfig, ScaffoldOptions, ScaffoldResult, SkillsLayerConfig, TemplateLayerConfig, TemplateManifest, } from "./types.js";
|
|
19
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../asset-manager/src/scaffold/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,YAAY,EACV,UAAU,EACV,YAAY,EACZ,WAAW,EACX,eAAe,EACf,UAAU,GACX,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,kBAAkB,EAClB,oBAAoB,EACpB,gBAAgB,GACjB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,aAAa,EACb,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,eAAe,EACf,kBAAkB,EAClB,aAAa,EACb,0BAA0B,EAC1B,WAAW,GACZ,MAAM,iBAAiB,CAAC;AACzB,YAAY,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAC5D,OAAO,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EACL,aAAa,EACb,YAAY,EACZ,mBAAmB,EACnB,iBAAiB,EACjB,eAAe,GAChB,MAAM,iBAAiB,CAAC;AACzB,YAAY,EACV,iBAAiB,EACjB,iBAAiB,EACjB,cAAc,EACd,oBAAoB,EACpB,uBAAuB,EACvB,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,GACjB,MAAM,YAAY,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../../../../asset-manager/src/scaffold/layers/agents.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAE/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAoErD;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,YAAY,CAC1B,MAAM,EAAE,MAAM,EACd,cAAc,EAAE,MAAM,EACtB,aAAa,EAAE,MAAM,EACrB,YAAY,EAAE,MAAM;AACpB,wEAAwE;AACxE,YAAY,EAAE,MAAM,EACpB,YAAY,EAAE,MAAM,GAAG,SAAS,EAChC,gBAAgB,EAAE,OAAO,EACzB,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,EACpB,QAAQ,EAAE,iBAAiB,GAAG,SAAS,EACvC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GAC1B;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CAoI3C;AAID;;;;;;;;;;;GAWG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,iBAAiB,GAAG,SAAS,EACrC,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,MAAM,EACnB,QAAQ,CAAC,EAAE,iBAAiB,EAC5B,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GAC1B,OAAO,CAAC;IAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAyCpD"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Base layer — creates .skaile/ directory, settings.json, and skaile.yaml.
|
|
3
|
-
*/
|
|
4
|
-
import type { AiResourcesLayerConfig, ScaffoldOptions } from "../types.js";
|
|
5
|
-
/**
|
|
6
|
-
* Apply the base scaffold layer — creates `.skaile/`, `settings.json`, and `skaile.yaml`.
|
|
7
|
-
*
|
|
8
|
-
* @param dest - Absolute path to the workspace root to create.
|
|
9
|
-
* @param aiResources - AI resource config from the template manifest (sources, requires).
|
|
10
|
-
* @param templateSettings - Template-default settings merged under user overrides.
|
|
11
|
-
* @param framework - Default agent framework written to `skaile.yaml` `agent-config`.
|
|
12
|
-
* @param opts - Full scaffold options (provides name, settings, resources, requires overrides).
|
|
13
|
-
* @returns Array of created file/directory paths relative to `dest`.
|
|
14
|
-
* @docLink packages/asset-manager/concepts#scaffold-layers
|
|
15
|
-
*/
|
|
16
|
-
export declare function applyBaseLayer(dest: string, aiResources: AiResourcesLayerConfig | undefined, templateSettings: Record<string, unknown> | undefined, framework: string, opts: ScaffoldOptions): string[];
|
|
17
|
-
//# sourceMappingURL=base.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../../../asset-manager/src/scaffold/layers/base.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,KAAK,EAAE,sBAAsB,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAE3E;;;;;;;;;;GAUG;AACH,wBAAgB,cAAc,CAC5B,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,sBAAsB,GAAG,SAAS,EAC/C,gBAAgB,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,EACrD,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,eAAe,GACpB,MAAM,EAAE,CAqEV"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Connectors layer — writes connector declarations to skaile.yaml
|
|
3
|
-
* and creates mount directories for mountable connectors.
|
|
4
|
-
*
|
|
5
|
-
* Actual sync/connect happens at runtime (in the runner), not at scaffold time.
|
|
6
|
-
*/
|
|
7
|
-
import type { ConnectorEntry } from "../types.js";
|
|
8
|
-
/**
|
|
9
|
-
* Apply the connectors scaffold layer — writes connector declarations to `skaile.yaml` and creates mount directories.
|
|
10
|
-
*
|
|
11
|
-
* @param dest - Absolute path to the workspace root.
|
|
12
|
-
* @param connectors - Connector entries from the template manifest.
|
|
13
|
-
* @param log - Optional logger callback for progress messages.
|
|
14
|
-
* @returns Array of created mount directory paths relative to `dest`.
|
|
15
|
-
* @docLink packages/asset-manager/concepts#scaffold-layers
|
|
16
|
-
*/
|
|
17
|
-
export declare function applyConnectorsLayer(dest: string, connectors: ConnectorEntry[] | undefined | null, log?: (msg: string) => void): string[];
|
|
18
|
-
//# sourceMappingURL=connectors.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../../../../../asset-manager/src/scaffold/layers/connectors.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAClC,IAAI,EAAE,MAAM,EACZ,UAAU,EAAE,cAAc,EAAE,GAAG,SAAS,GAAG,IAAI,EAC/C,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GAC1B,MAAM,EAAE,CAqCV"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Container layer — generates Dockerfile and docker-compose.yml for
|
|
3
|
-
* containerized agent workspaces.
|
|
4
|
-
*/
|
|
5
|
-
import type { ContainerLayerConfig } from "../types.js";
|
|
6
|
-
/**
|
|
7
|
-
* Apply the container scaffold layer — generates `Dockerfile`, `docker-compose.yml`, and `.dockerignore`.
|
|
8
|
-
*
|
|
9
|
-
* @param dest - Absolute path to the workspace root.
|
|
10
|
-
* @param config - Container layer configuration from the template manifest or `ScaffoldOptions.docker`.
|
|
11
|
-
* @param projectName - Project name used as the docker-compose service name.
|
|
12
|
-
* @returns Array of created file paths relative to `dest`.
|
|
13
|
-
* @docLink packages/asset-manager/concepts#scaffold-layers
|
|
14
|
-
*/
|
|
15
|
-
export declare function applyContainerLayer(dest: string, config: ContainerLayerConfig | undefined, projectName?: string): string[];
|
|
16
|
-
//# sourceMappingURL=container.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../../../asset-manager/src/scaffold/layers/container.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAExD;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,oBAAoB,GAAG,SAAS,EACxC,WAAW,CAAC,EAAE,MAAM,GACnB,MAAM,EAAE,CAmCV"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Driver target layer — creates agent-specific directories (.claude/, .omp/, etc.)
|
|
3
|
-
* based on the DRIVER_TARGETS configuration.
|
|
4
|
-
*/
|
|
5
|
-
import type { DriverTarget } from "@skaile/workspaces/core";
|
|
6
|
-
import type { DriverTargetLayerConfig } from "../types.js";
|
|
7
|
-
/**
|
|
8
|
-
* Apply the driver-target scaffold layer — creates framework-specific directories (`.claude/`, `.omp/`, etc.).
|
|
9
|
-
*
|
|
10
|
-
* @param dest - Absolute path to the workspace root.
|
|
11
|
-
* @param config - Driver target layer configuration from the template manifest.
|
|
12
|
-
* @param driverTargetOverride - Overrides `config["default-target"]` when provided.
|
|
13
|
-
* @returns Array of created directory paths relative to `dest`.
|
|
14
|
-
* @docLink packages/asset-manager/concepts#scaffold-layers
|
|
15
|
-
*/
|
|
16
|
-
export declare function applyDriverTargetLayer(dest: string, config: DriverTargetLayerConfig | undefined, driverTargetOverride?: DriverTarget): string[];
|
|
17
|
-
//# sourceMappingURL=driver-target.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"driver-target.d.ts","sourceRoot":"","sources":["../../../../../asset-manager/src/scaffold/layers/driver-target.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,aAAa,CAAC;AAE3D;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CACpC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,uBAAuB,GAAG,SAAS,EAC3C,oBAAoB,CAAC,EAAE,YAAY,GAClC,MAAM,EAAE,CA+BV"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Hooks layer — git init, .gitignore generation, and post-scaffold setup scripts.
|
|
3
|
-
*/
|
|
4
|
-
import type { HooksLayerConfig } from "../types.js";
|
|
5
|
-
/** Result of the hooks scaffold layer. */
|
|
6
|
-
export interface HooksResult {
|
|
7
|
-
/** Paths to files and directories created by this layer, relative to the workspace root. */
|
|
8
|
-
created: string[];
|
|
9
|
-
/** Non-fatal warnings collected during hook execution (e.g. failed setup scripts). */
|
|
10
|
-
warnings: string[];
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Apply the hooks scaffold layer — runs `git init`, appends `.gitignore` entries, and executes setup scripts.
|
|
14
|
-
*
|
|
15
|
-
* @param dest - Absolute path to the workspace root.
|
|
16
|
-
* @param config - Hooks layer configuration from the template manifest.
|
|
17
|
-
* @param log - Optional logger callback for progress messages.
|
|
18
|
-
* @returns {@link HooksResult} with created file paths and warnings.
|
|
19
|
-
* @docLink packages/asset-manager/concepts#scaffold-layers
|
|
20
|
-
*/
|
|
21
|
-
export declare function applyHooksLayer(dest: string, config: HooksLayerConfig | undefined, log?: (msg: string) => void): HooksResult;
|
|
22
|
-
//# sourceMappingURL=hooks.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../../../../asset-manager/src/scaffold/layers/hooks.ts"],"names":[],"mappings":"AAAA;;GAEG;AAKH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAEpD,0CAA0C;AAC1C,MAAM,WAAW,WAAW;IAC1B,4FAA4F;IAC5F,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,sFAAsF;IACtF,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAC7B,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,gBAAgB,GAAG,SAAS,EACpC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GAC1B,WAAW,CA+Db"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Skills layer — installs AI resources into the workspace using the asset manager.
|
|
3
|
-
*
|
|
4
|
-
* Now that this layer lives inside @skaile/asset-manager, the AssetManager class
|
|
5
|
-
* is loaded via a lazy import from the parent package index (no more dynamic
|
|
6
|
-
* external dependency hack).
|
|
7
|
-
*
|
|
8
|
-
* When a scopeDir is specified, the asset manager operates against that directory
|
|
9
|
-
* instead of the default project directory.
|
|
10
|
-
*/
|
|
11
|
-
import type { SkillsLayerConfig } from "../types.js";
|
|
12
|
-
/** Result of the skills scaffold layer. */
|
|
13
|
-
export interface SkillsInstallResult {
|
|
14
|
-
/** Asset refs (`kind:name`) installed by `skaile install` during scaffolding. */
|
|
15
|
-
installed: string[];
|
|
16
|
-
/** Non-fatal warnings (e.g. `skaile.yaml` not found, install failure). */
|
|
17
|
-
warnings: string[];
|
|
18
|
-
}
|
|
19
|
-
/**
|
|
20
|
-
* Apply the skills scaffold layer — runs `skaile install` to deploy all declared asset dependencies.
|
|
21
|
-
*
|
|
22
|
-
* Only runs when `config.autoInstall` is `true`. Skips silently when `skaile.yaml` is absent.
|
|
23
|
-
*
|
|
24
|
-
* @param dest - Absolute path to the workspace root.
|
|
25
|
-
* @param config - Skills layer configuration from the template manifest.
|
|
26
|
-
* @param log - Optional logger callback for progress messages.
|
|
27
|
-
* @returns {@link SkillsInstallResult} with installed refs and warnings.
|
|
28
|
-
* @docLink packages/asset-manager/concepts#scaffold-layers
|
|
29
|
-
*/
|
|
30
|
-
export declare function applySkillsLayer(dest: string, config: SkillsLayerConfig | undefined, log?: (msg: string) => void): Promise<SkillsInstallResult>;
|
|
31
|
-
//# sourceMappingURL=skills.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skills.d.ts","sourceRoot":"","sources":["../../../../../asset-manager/src/scaffold/layers/skills.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD,2CAA2C;AAC3C,MAAM,WAAW,mBAAmB;IAClC,iFAAiF;IACjF,SAAS,EAAE,MAAM,EAAE,CAAC;IACpB,0EAA0E;IAC1E,QAAQ,EAAE,MAAM,EAAE,CAAC;CACpB;AAeD;;;;;;;;;;GAUG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,iBAAiB,GAAG,SAAS,EACrC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,IAAI,GAC1B,OAAO,CAAC,mBAAmB,CAAC,CAqC9B"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Template layer — applies agent definition files (SOUL.md, RULES.md, knowledge/)
|
|
3
|
-
* and any additional template files.
|
|
4
|
-
*/
|
|
5
|
-
import type { TemplateLayerConfig } from "../types.js";
|
|
6
|
-
/**
|
|
7
|
-
* Apply the template overlay layer — copies agent definition files (`SOUL.md`, `RULES.md`, `knowledge/`) and additional static template files into the workspace.
|
|
8
|
-
*
|
|
9
|
-
* @param dest - Absolute path to the workspace root.
|
|
10
|
-
* @param config - Template layer configuration from the template manifest.
|
|
11
|
-
* @param templateDir - Absolute path to the template directory (used to resolve relative `files[].src` paths).
|
|
12
|
-
* @returns Array of created file paths relative to `dest`.
|
|
13
|
-
* @docLink packages/asset-manager/concepts#scaffold-layers
|
|
14
|
-
*/
|
|
15
|
-
export declare function applyTemplateLayer(dest: string, config: TemplateLayerConfig | undefined, templateDir?: string): string[];
|
|
16
|
-
//# sourceMappingURL=template.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../../../asset-manager/src/scaffold/layers/template.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAkBvD;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAChC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,mBAAmB,GAAG,SAAS,EACvC,WAAW,CAAC,EAAE,MAAM,GACnB,MAAM,EAAE,CAwEV"}
|
|
@@ -1,77 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Main scaffolder — loads a workspace template (workspace.yaml) and applies
|
|
3
|
-
* all configured layers in order: base → framework → template → skills → hooks → container.
|
|
4
|
-
*/
|
|
5
|
-
import type { ScaffoldOptions, ScaffoldResult, TemplateManifest } from "./types.js";
|
|
6
|
-
/**
|
|
7
|
-
* Override the built-in templates directory. Call this from apps that bundle
|
|
8
|
-
* skaile-agent-workspace (e.g. Nitro/Nuxt) where `import.meta.url` doesn't
|
|
9
|
-
* resolve to the source package.
|
|
10
|
-
*
|
|
11
|
-
* @param dir - Absolute path to the custom templates directory.
|
|
12
|
-
* @docLink packages/asset-manager/concepts#scaffolder
|
|
13
|
-
*/
|
|
14
|
-
export declare function setTemplatesDir(dir: string): void;
|
|
15
|
-
/**
|
|
16
|
-
* Resolve a template name or path to an absolute path to `workspace.yaml`.
|
|
17
|
-
*
|
|
18
|
-
* Lookup order:
|
|
19
|
-
* 1. Absolute or relative path to a `workspace.yaml` file.
|
|
20
|
-
* 2. Directory containing `workspace.yaml`.
|
|
21
|
-
* 3. Built-in template name matching `templates/<name>/workspace.yaml`.
|
|
22
|
-
*
|
|
23
|
-
* @param template - Template name (e.g. `"minimal"`) or path to a `workspace.yaml` / directory.
|
|
24
|
-
* @returns Absolute path to `workspace.yaml`, or `null` when the template cannot be found.
|
|
25
|
-
* @docLink packages/asset-manager/concepts#scaffolder
|
|
26
|
-
*/
|
|
27
|
-
export declare function resolveTemplatePath(template: string): string | null;
|
|
28
|
-
/**
|
|
29
|
-
* Load and merge a template manifest, following `extends` chains.
|
|
30
|
-
*
|
|
31
|
-
* @param templatePath - Absolute path to a `workspace.yaml` template file.
|
|
32
|
-
* @returns Merged `TemplateManifest` with parent sections folded in, and the template directory.
|
|
33
|
-
* @docLink packages/asset-manager/concepts#scaffolder
|
|
34
|
-
*/
|
|
35
|
-
export declare function loadTemplate(templatePath: string): {
|
|
36
|
-
manifest: TemplateManifest;
|
|
37
|
-
dir: string;
|
|
38
|
-
};
|
|
39
|
-
/**
|
|
40
|
-
* List all available built-in templates.
|
|
41
|
-
*
|
|
42
|
-
* @returns Array of objects with `name`, `description`, and `path` for each available template.
|
|
43
|
-
* @docLink packages/asset-manager/concepts#scaffolder
|
|
44
|
-
*/
|
|
45
|
-
export declare function listTemplates(): Array<{
|
|
46
|
-
name: string;
|
|
47
|
-
description: string;
|
|
48
|
-
path: string;
|
|
49
|
-
}>;
|
|
50
|
-
/**
|
|
51
|
-
* Scaffold a new Skaile workspace from a template, applying layers in order.
|
|
52
|
-
*
|
|
53
|
-
* Layer application order:
|
|
54
|
-
* 1. **Base** — creates `.skaile/`, `settings.json`, and `skaile.yaml`
|
|
55
|
-
* 2. **Connectors** — writes connector declarations to `skaile.yaml`
|
|
56
|
-
* 3. **Driver target** — creates framework-specific directories (`.claude/`, `.omp/`, etc.)
|
|
57
|
-
* 4. **Template** — copies agent definition files and static template overlays
|
|
58
|
-
* 5. **Agents** — renders and installs GitAgent packages
|
|
59
|
-
* 6. **Skills** — runs `skaile install` (unless `opts.skipInstall` is `true`)
|
|
60
|
-
* 7. **Hooks** — runs `git init`, writes `.gitignore`, executes setup scripts
|
|
61
|
-
* 8. **Container** — generates `Dockerfile` and `docker-compose.yml` (when enabled)
|
|
62
|
-
*
|
|
63
|
-
* @param opts - Scaffold options including destination, template, and layer overrides.
|
|
64
|
-
* @returns {@link ScaffoldResult} with created paths, installed skills, and warnings.
|
|
65
|
-
* @example
|
|
66
|
-
* ```ts
|
|
67
|
-
* const result = await scaffoldWorkspace({
|
|
68
|
-
* dest: "./my-workspace",
|
|
69
|
-
* template: "minimal",
|
|
70
|
-
* driverTarget: "claude-code",
|
|
71
|
-
* });
|
|
72
|
-
* console.log(`Created ${result.created.length} files`);
|
|
73
|
-
* ```
|
|
74
|
-
* @docLink packages/asset-manager/concepts#scaffolder
|
|
75
|
-
*/
|
|
76
|
-
export declare function scaffoldWorkspace(opts: ScaffoldOptions): Promise<ScaffoldResult>;
|
|
77
|
-
//# sourceMappingURL=scaffolder.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"scaffolder.d.ts","sourceRoot":"","sources":["../../../../asset-manager/src/scaffold/scaffolder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAeH,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAgBpF;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAEjD;AAID;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAiBnE;AAED;;;;;;GAMG;AACH,wBAAgB,YAAY,CAAC,YAAY,EAAE,MAAM,GAAG;IAAE,QAAQ,EAAE,gBAAgB,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,CAwB9F;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,IAAI,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAwB1F;AAID;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,cAAc,CAAC,CAsGtF"}
|
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Workspace scaffolder types.
|
|
3
|
-
*/
|
|
4
|
-
import type { DriverTarget } from "@skaile/workspaces/core";
|
|
5
|
-
/**
|
|
6
|
-
* A `workspace.yaml` template manifest that drives workspace scaffolding.
|
|
7
|
-
*
|
|
8
|
-
* @docLink packages/asset-manager/concepts#scaffold-types
|
|
9
|
-
*/
|
|
10
|
-
export interface TemplateManifest {
|
|
11
|
-
/** Human-readable template name shown in `skaile workspace list`. */
|
|
12
|
-
name: string;
|
|
13
|
-
/** One-line description of the template. */
|
|
14
|
-
description: string;
|
|
15
|
-
/** Semantic version of the template. */
|
|
16
|
-
version: string;
|
|
17
|
-
/** Base template to extend (layered inheritance). */
|
|
18
|
-
extends?: string;
|
|
19
|
-
/** Initial `.skaile/settings.json` values written during scaffolding. */
|
|
20
|
-
settings?: Record<string, unknown>;
|
|
21
|
-
/** AI resource config written to `skaile.yaml` (sources, requires). */
|
|
22
|
-
"ai-assets"?: AiResourcesLayerConfig;
|
|
23
|
-
/**
|
|
24
|
-
* Framework scaffold config. `default-target` is the single source of truth
|
|
25
|
-
* for the agent framework — used both to write `skaile.yaml` and to
|
|
26
|
-
* create framework-specific directories (`.claude/`, `.omp/`, etc.).
|
|
27
|
-
*/
|
|
28
|
-
framework?: DriverTargetLayerConfig;
|
|
29
|
-
/** Connector declarations written to the `skaile.yaml` resources section. */
|
|
30
|
-
connectors?: ConnectorEntry[];
|
|
31
|
-
/** Template overlay layer config: agent definition files and static file copies. */
|
|
32
|
-
template?: TemplateLayerConfig;
|
|
33
|
-
/** Agent installation layer config: GitAgent packages to install. */
|
|
34
|
-
agents?: AgentsLayerConfig;
|
|
35
|
-
/** Skills installation layer config: asset-manager resource installation. */
|
|
36
|
-
skills?: SkillsLayerConfig;
|
|
37
|
-
/** Hooks layer config: git init, gitignore, and setup scripts. */
|
|
38
|
-
hooks?: HooksLayerConfig;
|
|
39
|
-
/** Container layer config: Dockerfile and docker-compose generation. */
|
|
40
|
-
container?: ContainerLayerConfig;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* AI resource configuration written to the `skaile.yaml` `ai_resources` section.
|
|
44
|
-
*
|
|
45
|
-
* @docLink packages/asset-manager/concepts#scaffold-types
|
|
46
|
-
*/
|
|
47
|
-
export interface AiResourcesLayerConfig {
|
|
48
|
-
/** Skill/agent source repository declarations (name, local path, optional branch). */
|
|
49
|
-
resources?: Array<{
|
|
50
|
-
name: string;
|
|
51
|
-
path: string;
|
|
52
|
-
branch?: string;
|
|
53
|
-
}>;
|
|
54
|
-
/** Asset refs (`kind:name`) that must be installed in this workspace. */
|
|
55
|
-
requires?: string[];
|
|
56
|
-
}
|
|
57
|
-
/**
|
|
58
|
-
* Framework scaffold config that controls which agent directories are created.
|
|
59
|
-
*
|
|
60
|
-
* @docLink packages/asset-manager/concepts#scaffold-types
|
|
61
|
-
*/
|
|
62
|
-
export interface DriverTargetLayerConfig {
|
|
63
|
-
/**
|
|
64
|
-
* Default agent driver target (e.g. `"claude-code"`, `"omp"`).
|
|
65
|
-
* Single source of truth — controls both the `skaile.yaml` framework field and
|
|
66
|
-
* the framework-specific directories created during scaffolding (`.claude/`, `.omp/`, etc.).
|
|
67
|
-
* YAML key: `default-target`.
|
|
68
|
-
*/
|
|
69
|
-
"default-target": string;
|
|
70
|
-
/** Additional directories to create inside the workspace root (beyond framework defaults). */
|
|
71
|
-
extras?: string[];
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Template overlay layer configuration.
|
|
75
|
-
*
|
|
76
|
-
* @docLink packages/asset-manager/concepts#scaffold-types
|
|
77
|
-
*/
|
|
78
|
-
export interface TemplateLayerConfig {
|
|
79
|
-
/** Path to the agent definition directory containing `SOUL.md`, `RULES.md`, and `knowledge/`. Relative to the template dir. */
|
|
80
|
-
agentDir?: string;
|
|
81
|
-
/** Inline `SOUL.md` content (alternative to `agentDir` when the soul is embedded in the manifest). */
|
|
82
|
-
soul?: string;
|
|
83
|
-
/** Inline `RULES.md` content. */
|
|
84
|
-
rules?: string;
|
|
85
|
-
/** Static files to copy from the template directory into the workspace root. */
|
|
86
|
-
files?: Array<{
|
|
87
|
-
src: string;
|
|
88
|
-
dest: string;
|
|
89
|
-
condition?: string;
|
|
90
|
-
}>;
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* A single agent installation entry in the `agents.install` list.
|
|
94
|
-
*
|
|
95
|
-
* @docLink packages/asset-manager/concepts#scaffold-types
|
|
96
|
-
*/
|
|
97
|
-
export interface AgentInstallEntry {
|
|
98
|
-
/** Path to the agent source directory (contains agent.yaml). Relative to template dir or absolute. */
|
|
99
|
-
src: string;
|
|
100
|
-
/** Install name override. Defaults to the name field in agent.yaml. */
|
|
101
|
-
name?: string;
|
|
102
|
-
/**
|
|
103
|
-
* Whether to resolve and install sub-agents from agent.yaml requires[].
|
|
104
|
-
* Each required agent is mounted at {agentDir}/{mount}. Default: true.
|
|
105
|
-
*/
|
|
106
|
-
includeSubAgents?: boolean;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Agent installation layer configuration.
|
|
110
|
-
*
|
|
111
|
-
* @docLink packages/asset-manager/concepts#scaffold-layers
|
|
112
|
-
*/
|
|
113
|
-
export interface AgentsLayerConfig {
|
|
114
|
-
/** GitAgent packages to install into the framework's agent deploy directory. */
|
|
115
|
-
install?: AgentInstallEntry[];
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Skills installation layer configuration.
|
|
119
|
-
*
|
|
120
|
-
* @docLink packages/asset-manager/concepts#scaffold-layers
|
|
121
|
-
*/
|
|
122
|
-
export interface SkillsLayerConfig {
|
|
123
|
-
/** Run `skaile install` automatically after scaffolding to deploy all declared dependencies. */
|
|
124
|
-
autoInstall?: boolean;
|
|
125
|
-
/** Catalog scope directory for asset manager operations. Defaults to project-level scope. */
|
|
126
|
-
scopeDir?: string;
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Hooks layer configuration: git initialization and post-scaffold scripts.
|
|
130
|
-
*
|
|
131
|
-
* @docLink packages/asset-manager/concepts#scaffold-layers
|
|
132
|
-
*/
|
|
133
|
-
export interface HooksLayerConfig {
|
|
134
|
-
/** Run `git init` in the scaffolded workspace. */
|
|
135
|
-
gitInit?: boolean;
|
|
136
|
-
/** Lines to append to `.gitignore` (entries that don't already exist are added). */
|
|
137
|
-
gitignore?: string[];
|
|
138
|
-
/** Shell commands to run sequentially after all layers complete. */
|
|
139
|
-
setupScripts?: Array<{
|
|
140
|
-
name: string;
|
|
141
|
-
run: string;
|
|
142
|
-
cwd?: string;
|
|
143
|
-
}>;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Container layer configuration for Dockerfile and docker-compose generation.
|
|
147
|
-
*
|
|
148
|
-
* @docLink packages/asset-manager/concepts#scaffold-layers
|
|
149
|
-
*/
|
|
150
|
-
export interface ContainerLayerConfig {
|
|
151
|
-
/** Set to `true` to generate `Dockerfile` and `docker-compose.yml`. */
|
|
152
|
-
enabled?: boolean;
|
|
153
|
-
/** Base Docker image (e.g. `"node:22-alpine"`). */
|
|
154
|
-
baseImage?: string;
|
|
155
|
-
/** Agent CLI package names to pre-install in the container image. */
|
|
156
|
-
agents?: string[];
|
|
157
|
-
/** Alpine system packages to install via `apk add`. */
|
|
158
|
-
packages?: string[];
|
|
159
|
-
/** Volume or bind-mount definitions passed to docker-compose. */
|
|
160
|
-
mounts?: Array<{
|
|
161
|
-
type: "bind" | "volume";
|
|
162
|
-
source: string;
|
|
163
|
-
target: string;
|
|
164
|
-
}>;
|
|
165
|
-
/** Ports to expose from the container (e.g. `["3000:3000"]`). */
|
|
166
|
-
ports?: string[];
|
|
167
|
-
/** Environment variable names to pass through from the host to the container. */
|
|
168
|
-
env?: string[];
|
|
169
|
-
/** WebSocket port used for agent IPC inside the container. */
|
|
170
|
-
wsPort?: number;
|
|
171
|
-
}
|
|
172
|
-
/**
|
|
173
|
-
* A connector declaration written to the `skaile.yaml` resources section.
|
|
174
|
-
*
|
|
175
|
-
* @docLink packages/asset-manager/concepts#scaffold-types
|
|
176
|
-
*/
|
|
177
|
-
export interface ConnectorEntry {
|
|
178
|
-
/** Unique connector ID used to reference the connector in tools and configs. */
|
|
179
|
-
id: string;
|
|
180
|
-
/** Connector driver type (e.g. `"postgres"`, `"redis"`, `"sqlite"`, `"webdav"`). */
|
|
181
|
-
driver: string;
|
|
182
|
-
/** Data access level enforced at runtime. Defaults to `"read-only"`. */
|
|
183
|
-
access?: "read-only" | "read-write";
|
|
184
|
-
/** Authentication method identifier for the connector. */
|
|
185
|
-
auth?: string;
|
|
186
|
-
/** When `true`, mount the connector automatically on session start. */
|
|
187
|
-
autoMount?: boolean;
|
|
188
|
-
/** Filesystem path where the connector's mount is mounted. */
|
|
189
|
-
mountPath?: string;
|
|
190
|
-
/** Driver-specific options passed through to the connector adapter. */
|
|
191
|
-
options?: Record<string, unknown>;
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* Options for {@link scaffoldWorkspace}. All fields except `dest` and `template` are overrides that win over the template manifest.
|
|
195
|
-
*
|
|
196
|
-
* @docLink packages/asset-manager/concepts#scaffolder
|
|
197
|
-
*/
|
|
198
|
-
export interface ScaffoldOptions {
|
|
199
|
-
/** Absolute or relative path to the target directory to scaffold into. */
|
|
200
|
-
dest: string;
|
|
201
|
-
/** Built-in template name (e.g. `"minimal"`) or path to a `workspace.yaml` file. */
|
|
202
|
-
template: string;
|
|
203
|
-
/** Project name written to `skaile.yaml`. Defaults to `basename(dest)`. */
|
|
204
|
-
name?: string;
|
|
205
|
-
/** Settings merged over template defaults and written to `.skaile/settings.json`. */
|
|
206
|
-
settings?: Record<string, unknown>;
|
|
207
|
-
/** Override the agent driver target declared in the template. */
|
|
208
|
-
driverTarget?: DriverTarget;
|
|
209
|
-
/** Override the AI resource repository sources declared in the template. */
|
|
210
|
-
resources?: Array<{
|
|
211
|
-
name: string;
|
|
212
|
-
path: string;
|
|
213
|
-
branch?: string;
|
|
214
|
-
}>;
|
|
215
|
-
/** Override the skill requirements declared in the template. */
|
|
216
|
-
requires?: string[];
|
|
217
|
-
/** GitAgent packages to install (overrides the template `agents.install` list). */
|
|
218
|
-
agentInstall?: AgentInstallEntry[];
|
|
219
|
-
/** Skip the asset install step even when the template has `skills.autoInstall: true`. */
|
|
220
|
-
skipInstall?: boolean;
|
|
221
|
-
/** Enable Docker support even when the template does not declare a container layer. */
|
|
222
|
-
docker?: boolean;
|
|
223
|
-
/** Optional logger callback for layer-by-layer progress messages. */
|
|
224
|
-
log?: (msg: string) => void;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Result of a completed {@link scaffoldWorkspace} call.
|
|
228
|
-
*
|
|
229
|
-
* @docLink packages/asset-manager/concepts#scaffolder
|
|
230
|
-
*/
|
|
231
|
-
export interface ScaffoldResult {
|
|
232
|
-
/** Absolute path to the scaffolded workspace. */
|
|
233
|
-
path: string;
|
|
234
|
-
/** Paths to files and directories created, relative to `dest`. */
|
|
235
|
-
created: string[];
|
|
236
|
-
/** Asset refs installed by the skills layer (empty when `skipInstall` is `true`). */
|
|
237
|
-
installed: string[];
|
|
238
|
-
/** Non-fatal warnings collected across all layers. */
|
|
239
|
-
warnings: string[];
|
|
240
|
-
}
|
|
241
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../asset-manager/src/scaffold/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAI5D;;;;GAIG;AACH,MAAM,WAAW,gBAAgB;IAC/B,qEAAqE;IACrE,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,OAAO,EAAE,MAAM,CAAC;IAEhB,qDAAqD;IACrD,OAAO,CAAC,EAAE,MAAM,CAAC;IAEjB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEnC,uEAAuE;IACvE,WAAW,CAAC,EAAE,sBAAsB,CAAC;IAErC;;;;OAIG;IACH,SAAS,CAAC,EAAE,uBAAuB,CAAC;IAEpC,6EAA6E;IAC7E,UAAU,CAAC,EAAE,cAAc,EAAE,CAAC;IAE9B,oFAAoF;IACpF,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,qEAAqE;IACrE,M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