@vertesia/build-tools 1.2.0 → 1.4.0-dev.20260614.160504Z
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 +3 -3
- package/lib/bin/build.d.ts +35 -0
- package/lib/bin/build.d.ts.map +1 -0
- package/lib/bin/build.js +79 -0
- package/lib/bin/build.js.map +1 -0
- package/lib/bin/config.d.ts +24 -0
- package/lib/bin/config.d.ts.map +1 -0
- package/lib/bin/config.js +91 -0
- package/lib/bin/config.js.map +1 -0
- package/lib/core/compilers/widget.d.ts +27 -0
- package/lib/core/compilers/widget.d.ts.map +1 -0
- package/lib/core/compilers/widget.js +37 -0
- package/lib/core/compilers/widget.js.map +1 -0
- package/lib/{types → core}/parsers/frontmatter.d.ts +1 -1
- package/lib/core/parsers/frontmatter.d.ts.map +1 -0
- package/lib/{esm → core}/parsers/frontmatter.js +1 -1
- package/lib/core/parsers/frontmatter.js.map +1 -0
- package/lib/core/transformers/index.d.ts +10 -0
- package/lib/core/transformers/index.d.ts.map +1 -0
- package/lib/core/transformers/index.js +10 -0
- package/lib/core/transformers/index.js.map +1 -0
- package/lib/{types/presets → core/transformers}/prompt.d.ts +7 -21
- package/lib/core/transformers/prompt.d.ts.map +1 -0
- package/lib/{esm/presets → core/transformers}/prompt.js +17 -14
- package/lib/core/transformers/prompt.js.map +1 -0
- package/lib/core/transformers/raw.d.ts.map +1 -0
- package/lib/{esm/presets → core/transformers}/raw.js +2 -2
- package/lib/core/transformers/raw.js.map +1 -0
- package/lib/core/transformers/skill-collection.d.ts.map +1 -0
- package/lib/{esm/presets → core/transformers}/skill-collection.js +5 -12
- package/lib/core/transformers/skill-collection.js.map +1 -0
- package/lib/core/transformers/skill.d.ts +111 -0
- package/lib/core/transformers/skill.d.ts.map +1 -0
- package/lib/{esm/presets → core/transformers}/skill.js +70 -51
- package/lib/core/transformers/skill.js.map +1 -0
- package/lib/core/transformers/template-collection.d.ts.map +1 -0
- package/lib/{esm/presets → core/transformers}/template-collection.js +5 -12
- package/lib/core/transformers/template-collection.js.map +1 -0
- package/lib/{types/presets → core/transformers}/template.d.ts +7 -22
- package/lib/core/transformers/template.d.ts.map +1 -0
- package/lib/{esm/presets → core/transformers}/template.js +16 -11
- package/lib/core/transformers/template.js.map +1 -0
- package/lib/{types → core}/types.d.ts +5 -61
- package/lib/core/types.d.ts.map +1 -0
- package/lib/core/types.js +6 -0
- package/lib/{cjs → core}/types.js.map +1 -1
- package/lib/core/utils/asset-copy.d.ts.map +1 -0
- package/lib/core/utils/asset-copy.js.map +1 -0
- package/lib/core/utils/asset-discovery.d.ts.map +1 -0
- package/lib/{esm → core}/utils/asset-discovery.js +4 -4
- package/lib/core/utils/asset-discovery.js.map +1 -0
- package/lib/core/utils/template-asset-discovery.d.ts.map +1 -0
- package/lib/{esm → core}/utils/template-asset-discovery.js +3 -7
- package/lib/core/utils/template-asset-discovery.js.map +1 -0
- package/lib/import-transform/builtins.d.ts +21 -0
- package/lib/import-transform/builtins.d.ts.map +1 -0
- package/lib/import-transform/builtins.js +50 -0
- package/lib/import-transform/builtins.js.map +1 -0
- package/lib/import-transform/chunk-emitter.d.ts +24 -0
- package/lib/import-transform/chunk-emitter.d.ts.map +1 -0
- package/lib/import-transform/chunk-emitter.js +35 -0
- package/lib/import-transform/chunk-emitter.js.map +1 -0
- package/lib/import-transform/detector.d.ts +24 -0
- package/lib/import-transform/detector.d.ts.map +1 -0
- package/lib/import-transform/detector.js +34 -0
- package/lib/import-transform/detector.js.map +1 -0
- package/lib/import-transform/index.d.ts +47 -0
- package/lib/import-transform/index.d.ts.map +1 -0
- package/lib/import-transform/index.js +115 -0
- package/lib/import-transform/index.js.map +1 -0
- package/lib/import-transform/patterns.d.ts +25 -0
- package/lib/import-transform/patterns.d.ts.map +1 -0
- package/lib/import-transform/patterns.js +27 -0
- package/lib/import-transform/patterns.js.map +1 -0
- package/lib/import-transform/resolver.d.ts +23 -0
- package/lib/import-transform/resolver.d.ts.map +1 -0
- package/lib/import-transform/resolver.js +30 -0
- package/lib/import-transform/resolver.js.map +1 -0
- package/lib/import-transform/rewriter.d.ts +21 -0
- package/lib/import-transform/rewriter.d.ts.map +1 -0
- package/lib/import-transform/rewriter.js +30 -0
- package/lib/import-transform/rewriter.js.map +1 -0
- package/lib/import-transform/scanner.d.ts +17 -0
- package/lib/import-transform/scanner.d.ts.map +1 -0
- package/lib/import-transform/scanner.js +46 -0
- package/lib/import-transform/scanner.js.map +1 -0
- package/lib/index.d.ts +39 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +43 -0
- package/lib/index.js.map +1 -0
- package/lib/vite/api-server.d.ts +54 -0
- package/lib/vite/api-server.d.ts.map +1 -0
- package/lib/vite/api-server.js +94 -0
- package/lib/vite/api-server.js.map +1 -0
- package/lib/vite/dev-server.d.ts +42 -0
- package/lib/vite/dev-server.d.ts.map +1 -0
- package/lib/vite/dev-server.js +111 -0
- package/lib/vite/dev-server.js.map +1 -0
- package/lib/vite/index.d.ts +15 -0
- package/lib/vite/index.d.ts.map +1 -0
- package/lib/vite/index.js +15 -0
- package/lib/vite/index.js.map +1 -0
- package/package.json +38 -28
- package/src/bin/build.ts +83 -0
- package/src/bin/config.ts +113 -0
- package/src/core/compilers/widget.ts +69 -0
- package/src/{parsers → core/parsers}/frontmatter.ts +2 -2
- package/src/core/transformers/index.ts +27 -0
- package/src/{presets → core/transformers}/prompt.ts +35 -32
- package/src/{presets → core/transformers}/raw.ts +2 -2
- package/src/{presets → core/transformers}/skill-collection.ts +5 -12
- package/src/{presets → core/transformers}/skill.ts +119 -99
- package/src/{presets → core/transformers}/template-collection.ts +76 -83
- package/src/{presets → core/transformers}/template.ts +121 -116
- package/src/core/types.ts +71 -0
- package/src/{utils → core/utils}/asset-copy.ts +3 -2
- package/src/{utils → core/utils}/asset-discovery.ts +5 -5
- package/src/{utils → core/utils}/template-asset-discovery.ts +70 -77
- package/src/import-transform/builtins.ts +56 -0
- package/src/import-transform/chunk-emitter.ts +60 -0
- package/src/import-transform/detector.ts +56 -0
- package/src/import-transform/index.ts +171 -0
- package/src/import-transform/patterns.ts +34 -0
- package/src/import-transform/resolver.ts +57 -0
- package/src/import-transform/rewriter.ts +48 -0
- package/src/import-transform/scanner.ts +55 -0
- package/src/index.ts +67 -42
- package/src/vite/api-server.ts +142 -0
- package/src/vite/dev-server.ts +128 -0
- package/src/vite/index.ts +15 -0
- package/lib/build-tools.js +0 -2031
- package/lib/build-tools.js.map +0 -1
- package/lib/cjs/index.js +0 -43
- package/lib/cjs/index.js.map +0 -1
- package/lib/cjs/package.json +0 -3
- package/lib/cjs/parsers/frontmatter.js +0 -25
- package/lib/cjs/parsers/frontmatter.js.map +0 -1
- package/lib/cjs/plugin.js +0 -150
- package/lib/cjs/plugin.js.map +0 -1
- package/lib/cjs/presets/index.js +0 -25
- package/lib/cjs/presets/index.js.map +0 -1
- package/lib/cjs/presets/prompt.js +0 -185
- package/lib/cjs/presets/prompt.js.map +0 -1
- package/lib/cjs/presets/raw.js +0 -25
- package/lib/cjs/presets/raw.js.map +0 -1
- package/lib/cjs/presets/skill-collection.js +0 -83
- package/lib/cjs/presets/skill-collection.js.map +0 -1
- package/lib/cjs/presets/skill.js +0 -272
- package/lib/cjs/presets/skill.js.map +0 -1
- package/lib/cjs/presets/template-collection.js +0 -80
- package/lib/cjs/presets/template-collection.js.map +0 -1
- package/lib/cjs/presets/template.js +0 -105
- package/lib/cjs/presets/template.js.map +0 -1
- package/lib/cjs/types.js +0 -6
- package/lib/cjs/utils/asset-copy.js +0 -61
- package/lib/cjs/utils/asset-copy.js.map +0 -1
- package/lib/cjs/utils/asset-discovery.js +0 -100
- package/lib/cjs/utils/asset-discovery.js.map +0 -1
- package/lib/cjs/utils/template-asset-discovery.js +0 -63
- package/lib/cjs/utils/template-asset-discovery.js.map +0 -1
- package/lib/cjs/utils/widget-compiler.js +0 -115
- package/lib/cjs/utils/widget-compiler.js.map +0 -1
- package/lib/cjs/vite.js +0 -45
- package/lib/cjs/vite.js.map +0 -1
- package/lib/esm/index.js +0 -26
- package/lib/esm/index.js.map +0 -1
- package/lib/esm/parsers/frontmatter.js.map +0 -1
- package/lib/esm/plugin.js +0 -144
- package/lib/esm/plugin.js.map +0 -1
- package/lib/esm/presets/index.js +0 -10
- package/lib/esm/presets/index.js.map +0 -1
- package/lib/esm/presets/prompt.js.map +0 -1
- package/lib/esm/presets/raw.js.map +0 -1
- package/lib/esm/presets/skill-collection.js.map +0 -1
- package/lib/esm/presets/skill.js.map +0 -1
- package/lib/esm/presets/template-collection.js.map +0 -1
- package/lib/esm/presets/template.js.map +0 -1
- package/lib/esm/types.js +0 -5
- package/lib/esm/types.js.map +0 -1
- package/lib/esm/utils/asset-copy.js.map +0 -1
- package/lib/esm/utils/asset-discovery.js.map +0 -1
- package/lib/esm/utils/template-asset-discovery.js.map +0 -1
- package/lib/esm/utils/widget-compiler.js +0 -76
- package/lib/esm/utils/widget-compiler.js.map +0 -1
- package/lib/esm/vite.js +0 -42
- package/lib/esm/vite.js.map +0 -1
- package/lib/types/index.d.ts +0 -24
- package/lib/types/index.d.ts.map +0 -1
- package/lib/types/parsers/frontmatter.d.ts.map +0 -1
- package/lib/types/plugin.d.ts +0 -10
- package/lib/types/plugin.d.ts.map +0 -1
- package/lib/types/presets/index.d.ts +0 -10
- package/lib/types/presets/index.d.ts.map +0 -1
- package/lib/types/presets/prompt.d.ts.map +0 -1
- package/lib/types/presets/raw.d.ts.map +0 -1
- package/lib/types/presets/skill-collection.d.ts.map +0 -1
- package/lib/types/presets/skill.d.ts +0 -361
- package/lib/types/presets/skill.d.ts.map +0 -1
- package/lib/types/presets/template-collection.d.ts.map +0 -1
- package/lib/types/presets/template.d.ts.map +0 -1
- package/lib/types/types.d.ts.map +0 -1
- package/lib/types/utils/asset-copy.d.ts.map +0 -1
- package/lib/types/utils/asset-discovery.d.ts.map +0 -1
- package/lib/types/utils/template-asset-discovery.d.ts.map +0 -1
- package/lib/types/utils/widget-compiler.d.ts +0 -15
- package/lib/types/utils/widget-compiler.d.ts.map +0 -1
- package/lib/types/vite.d.ts +0 -32
- package/lib/types/vite.d.ts.map +0 -1
- package/src/plugin.ts +0 -166
- package/src/presets/index.ts +0 -10
- package/src/types.ts +0 -140
- package/src/utils/widget-compiler.ts +0 -98
- package/src/vite.ts +0 -45
- /package/lib/{types/presets → core/transformers}/raw.d.ts +0 -0
- /package/lib/{types/presets → core/transformers}/skill-collection.d.ts +0 -0
- /package/lib/{types/presets → core/transformers}/template-collection.d.ts +0 -0
- /package/lib/{types → core}/utils/asset-copy.d.ts +0 -0
- /package/lib/{esm → core}/utils/asset-copy.js +0 -0
- /package/lib/{types → core}/utils/asset-discovery.d.ts +0 -0
- /package/lib/{types → core}/utils/template-asset-discovery.d.ts +0 -0
package/lib/esm/vite.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vite-specific helpers for tool server development.
|
|
3
|
-
*
|
|
4
|
-
* Provides a pre-configured Vite plugin that handles SKILL.md, prompt,
|
|
5
|
-
* and raw file imports — the same transforms used by rollup at build time.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```typescript
|
|
9
|
-
* // vite.server.config.ts
|
|
10
|
-
* import { defineConfig } from 'vite';
|
|
11
|
-
* import devServer from '@hono/vite-dev-server';
|
|
12
|
-
* import { vertesiaDevServerPlugin } from '@vertesia/build-tools/vite';
|
|
13
|
-
*
|
|
14
|
-
* export default defineConfig({
|
|
15
|
-
* plugins: [
|
|
16
|
-
* vertesiaDevServerPlugin(),
|
|
17
|
-
* devServer({ entry: 'tools/server.ts' }),
|
|
18
|
-
* ],
|
|
19
|
-
* });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
import { vertesiaImportPlugin } from './plugin.js';
|
|
23
|
-
import { skillTransformer, rawTransformer, promptTransformer } from './presets/index.js';
|
|
24
|
-
/**
|
|
25
|
-
* Creates a pre-configured Vite plugin for tool server dev mode.
|
|
26
|
-
* Includes skill, prompt, and raw file transformers with asset copying disabled
|
|
27
|
-
* (assets are only needed at build time, not during dev).
|
|
28
|
-
*
|
|
29
|
-
* @param overrides - Optional overrides for the plugin config
|
|
30
|
-
*/
|
|
31
|
-
export function vertesiaDevServerPlugin(overrides) {
|
|
32
|
-
return vertesiaImportPlugin({
|
|
33
|
-
transformers: [
|
|
34
|
-
skillTransformer,
|
|
35
|
-
promptTransformer,
|
|
36
|
-
rawTransformer,
|
|
37
|
-
],
|
|
38
|
-
assetsDir: false,
|
|
39
|
-
...overrides,
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
//# sourceMappingURL=vite.js.map
|
package/lib/esm/vite.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vite.js","sourceRoot":"","sources":["../../src/vite.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,EAAE,gBAAgB,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AAGzF;;;;;;GAMG;AACH,MAAM,UAAU,uBAAuB,CAAC,SAAiC;IACrE,OAAO,oBAAoB,CAAC;QACxB,YAAY,EAAE;YACV,gBAAgB;YAChB,iBAAiB;YACjB,cAAc;SACjB;QACD,SAAS,EAAE,KAAK;QAChB,GAAG,SAAS;KACf,CAAC,CAAC;AACP,CAAC"}
|
package/lib/types/index.d.ts
DELETED
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vertesia Rollup Import Plugin
|
|
3
|
-
*
|
|
4
|
-
* A flexible Rollup plugin for transforming imports with custom compilers and validation.
|
|
5
|
-
* Supports preset transformers for common use cases (skills, raw files) and custom transformers.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```typescript
|
|
9
|
-
* import { vertesiaImportPlugin, skillTransformer, rawTransformer } from '@vertesia/build-tools';
|
|
10
|
-
*
|
|
11
|
-
* export default {
|
|
12
|
-
* plugins: [
|
|
13
|
-
* vertesiaImportPlugin({
|
|
14
|
-
* transformers: [skillTransformer, rawTransformer]
|
|
15
|
-
* })
|
|
16
|
-
* ]
|
|
17
|
-
* };
|
|
18
|
-
* ```
|
|
19
|
-
*/
|
|
20
|
-
export { vertesiaImportPlugin } from './plugin.js';
|
|
21
|
-
export type { PluginConfig, TransformerRule, TransformerPreset, TransformFunction, TransformResult, AssetFile, WidgetConfig } from './types.js';
|
|
22
|
-
export { skillTransformer, rawTransformer, skillCollectionTransformer, templateTransformer, templateCollectionTransformer, promptTransformer, SkillDefinitionSchema, SkillPropertiesSchema, RenderingTemplateDefinitionSchema, PromptDefinitionSchema, type SkillDefinition, type SkillContentType, type RenderingTemplateDefinition, type PromptDefinition, type PromptContentType, PromptRole, TemplateType } from './presets/index.js';
|
|
23
|
-
export { parseFrontmatter, type FrontmatterResult } from './parsers/frontmatter.js';
|
|
24
|
-
//# sourceMappingURL=index.d.ts.map
|
package/lib/types/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAGH,OAAO,EAAE,oBAAoB,EAAE,MAAM,aAAa,CAAC;AAGnD,YAAY,EACR,YAAY,EACZ,eAAe,EACf,iBAAiB,EACjB,iBAAiB,EACjB,eAAe,EACf,SAAS,EACT,YAAY,EACf,MAAM,YAAY,CAAC;AAGpB,OAAO,EACH,gBAAgB,EAChB,cAAc,EACd,0BAA0B,EAC1B,mBAAmB,EACnB,6BAA6B,EAC7B,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,iCAAiC,EACjC,sBAAsB,EACtB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,EAChC,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,UAAU,EACV,YAAY,EACf,MAAM,oBAAoB,CAAC;AAG5B,OAAO,EAAE,gBAAgB,EAAE,KAAK,iBAAiB,EAAE,MAAM,0BAA0B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"frontmatter.d.ts","sourceRoot":"","sources":["../../../src/parsers/frontmatter.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,MAAM,WAAW,iBAAiB;IAC9B,8BAA8B;IAC9B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IAEjC,kCAAkC;IAClC,OAAO,EAAE,MAAM,CAAC;IAEhB,4BAA4B;IAC5B,QAAQ,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,iBAAiB,CAQnE"}
|
package/lib/types/plugin.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core Rollup plugin implementation for transforming imports
|
|
3
|
-
*/
|
|
4
|
-
import type { Plugin } from 'rollup';
|
|
5
|
-
import type { PluginConfig } from './types.js';
|
|
6
|
-
/**
|
|
7
|
-
* Creates a Rollup plugin that transforms imports based on configured rules
|
|
8
|
-
*/
|
|
9
|
-
export declare function vertesiaImportPlugin(config: PluginConfig): Plugin;
|
|
10
|
-
//# sourceMappingURL=plugin.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/plugin.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGrC,OAAO,KAAK,EAAE,YAAY,EAA8B,MAAM,YAAY,CAAC;AAK3E;;GAEG;AACH,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,YAAY,GAAG,MAAM,CAsJjE"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Preset transformers for common use cases
|
|
3
|
-
*/
|
|
4
|
-
export { skillTransformer, SkillDefinitionSchema, SkillPropertiesSchema, type SkillDefinition, type SkillContentType } from './skill.js';
|
|
5
|
-
export { skillCollectionTransformer } from './skill-collection.js';
|
|
6
|
-
export { templateTransformer, RenderingTemplateDefinitionSchema, type RenderingTemplateDefinition } from './template.js';
|
|
7
|
-
export { templateCollectionTransformer } from './template-collection.js';
|
|
8
|
-
export { rawTransformer } from './raw.js';
|
|
9
|
-
export { promptTransformer, PromptDefinitionSchema, type PromptDefinition, type PromptContentType, PromptRole, TemplateType } from './prompt.js';
|
|
10
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presets/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,KAAK,eAAe,EAAE,KAAK,gBAAgB,EAAE,MAAM,YAAY,CAAC;AACzI,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,EAAE,mBAAmB,EAAE,iCAAiC,EAAE,KAAK,2BAA2B,EAAE,MAAM,eAAe,CAAC;AACzH,OAAO,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACzE,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,KAAK,gBAAgB,EAAE,KAAK,iBAAiB,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../../src/presets/prompt.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAGrD,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEhD;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC;AAkB7C;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;EAOjC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAiGtE;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,iBAAiB,EAAE,iBA4D/B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"raw.d.ts","sourceRoot":"","sources":["../../../src/presets/raw.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD;;;;;;;;;GASG;AACH,eAAO,MAAM,cAAc,EAAE,iBAO5B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skill-collection.d.ts","sourceRoot":"","sources":["../../../src/presets/skill-collection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,0BAA0B,EAAE,iBAyDxC,CAAC"}
|
|
@@ -1,361 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Skill transformer preset for markdown files with frontmatter
|
|
3
|
-
*/
|
|
4
|
-
import { z } from 'zod';
|
|
5
|
-
import type { TransformerPreset } from '../types.js';
|
|
6
|
-
/**
|
|
7
|
-
* Content type for skill instructions
|
|
8
|
-
*/
|
|
9
|
-
export type SkillContentType = 'md' | 'jst';
|
|
10
|
-
/**
|
|
11
|
-
* MUST be kept in sync with @vertesia/tools-sdk SkillDefinition
|
|
12
|
-
* Zod schema for skill definition
|
|
13
|
-
* This validates the structure of skill objects generated from markdown
|
|
14
|
-
* Matches the SkillDefinition interface from @vertesia/tools-sdk
|
|
15
|
-
*
|
|
16
|
-
* Note: The isEnabled property is not included in this schema because Zod cannot
|
|
17
|
-
* properly validate function signatures. It will be type-checked by TypeScript instead.
|
|
18
|
-
*/
|
|
19
|
-
export declare const SkillDefinitionSchema: z.ZodObject<{
|
|
20
|
-
name: z.ZodString;
|
|
21
|
-
title: z.ZodOptional<z.ZodString>;
|
|
22
|
-
description: z.ZodString;
|
|
23
|
-
instructions: z.ZodString;
|
|
24
|
-
content_type: z.ZodEnum<["md", "jst"]>;
|
|
25
|
-
input_schema: z.ZodOptional<z.ZodObject<{
|
|
26
|
-
type: z.ZodLiteral<"object">;
|
|
27
|
-
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
28
|
-
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
29
|
-
}, "strip", z.ZodTypeAny, {
|
|
30
|
-
type: "object";
|
|
31
|
-
properties?: Record<string, any> | undefined;
|
|
32
|
-
required?: string[] | undefined;
|
|
33
|
-
}, {
|
|
34
|
-
type: "object";
|
|
35
|
-
properties?: Record<string, any> | undefined;
|
|
36
|
-
required?: string[] | undefined;
|
|
37
|
-
}>>;
|
|
38
|
-
context_triggers: z.ZodOptional<z.ZodObject<{
|
|
39
|
-
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
40
|
-
tool_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
41
|
-
data_patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
42
|
-
}, "strip", z.ZodTypeAny, {
|
|
43
|
-
keywords?: string[] | undefined;
|
|
44
|
-
tool_names?: string[] | undefined;
|
|
45
|
-
data_patterns?: string[] | undefined;
|
|
46
|
-
}, {
|
|
47
|
-
keywords?: string[] | undefined;
|
|
48
|
-
tool_names?: string[] | undefined;
|
|
49
|
-
data_patterns?: string[] | undefined;
|
|
50
|
-
}>>;
|
|
51
|
-
execution: z.ZodOptional<z.ZodObject<{
|
|
52
|
-
language: z.ZodString;
|
|
53
|
-
packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
54
|
-
system_packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
55
|
-
template: z.ZodOptional<z.ZodString>;
|
|
56
|
-
}, "strip", z.ZodTypeAny, {
|
|
57
|
-
language: string;
|
|
58
|
-
template?: string | undefined;
|
|
59
|
-
packages?: string[] | undefined;
|
|
60
|
-
system_packages?: string[] | undefined;
|
|
61
|
-
}, {
|
|
62
|
-
language: string;
|
|
63
|
-
template?: string | undefined;
|
|
64
|
-
packages?: string[] | undefined;
|
|
65
|
-
system_packages?: string[] | undefined;
|
|
66
|
-
}>>;
|
|
67
|
-
related_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
68
|
-
scripts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
69
|
-
widgets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
70
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
71
|
-
name: z.ZodString;
|
|
72
|
-
title: z.ZodOptional<z.ZodString>;
|
|
73
|
-
description: z.ZodString;
|
|
74
|
-
instructions: z.ZodString;
|
|
75
|
-
content_type: z.ZodEnum<["md", "jst"]>;
|
|
76
|
-
input_schema: z.ZodOptional<z.ZodObject<{
|
|
77
|
-
type: z.ZodLiteral<"object">;
|
|
78
|
-
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
79
|
-
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
80
|
-
}, "strip", z.ZodTypeAny, {
|
|
81
|
-
type: "object";
|
|
82
|
-
properties?: Record<string, any> | undefined;
|
|
83
|
-
required?: string[] | undefined;
|
|
84
|
-
}, {
|
|
85
|
-
type: "object";
|
|
86
|
-
properties?: Record<string, any> | undefined;
|
|
87
|
-
required?: string[] | undefined;
|
|
88
|
-
}>>;
|
|
89
|
-
context_triggers: z.ZodOptional<z.ZodObject<{
|
|
90
|
-
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
91
|
-
tool_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
92
|
-
data_patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
93
|
-
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
keywords?: string[] | undefined;
|
|
95
|
-
tool_names?: string[] | undefined;
|
|
96
|
-
data_patterns?: string[] | undefined;
|
|
97
|
-
}, {
|
|
98
|
-
keywords?: string[] | undefined;
|
|
99
|
-
tool_names?: string[] | undefined;
|
|
100
|
-
data_patterns?: string[] | undefined;
|
|
101
|
-
}>>;
|
|
102
|
-
execution: z.ZodOptional<z.ZodObject<{
|
|
103
|
-
language: z.ZodString;
|
|
104
|
-
packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
105
|
-
system_packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
106
|
-
template: z.ZodOptional<z.ZodString>;
|
|
107
|
-
}, "strip", z.ZodTypeAny, {
|
|
108
|
-
language: string;
|
|
109
|
-
template?: string | undefined;
|
|
110
|
-
packages?: string[] | undefined;
|
|
111
|
-
system_packages?: string[] | undefined;
|
|
112
|
-
}, {
|
|
113
|
-
language: string;
|
|
114
|
-
template?: string | undefined;
|
|
115
|
-
packages?: string[] | undefined;
|
|
116
|
-
system_packages?: string[] | undefined;
|
|
117
|
-
}>>;
|
|
118
|
-
related_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
119
|
-
scripts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
120
|
-
widgets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
121
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
122
|
-
name: z.ZodString;
|
|
123
|
-
title: z.ZodOptional<z.ZodString>;
|
|
124
|
-
description: z.ZodString;
|
|
125
|
-
instructions: z.ZodString;
|
|
126
|
-
content_type: z.ZodEnum<["md", "jst"]>;
|
|
127
|
-
input_schema: z.ZodOptional<z.ZodObject<{
|
|
128
|
-
type: z.ZodLiteral<"object">;
|
|
129
|
-
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
130
|
-
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
131
|
-
}, "strip", z.ZodTypeAny, {
|
|
132
|
-
type: "object";
|
|
133
|
-
properties?: Record<string, any> | undefined;
|
|
134
|
-
required?: string[] | undefined;
|
|
135
|
-
}, {
|
|
136
|
-
type: "object";
|
|
137
|
-
properties?: Record<string, any> | undefined;
|
|
138
|
-
required?: string[] | undefined;
|
|
139
|
-
}>>;
|
|
140
|
-
context_triggers: z.ZodOptional<z.ZodObject<{
|
|
141
|
-
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
142
|
-
tool_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
143
|
-
data_patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
144
|
-
}, "strip", z.ZodTypeAny, {
|
|
145
|
-
keywords?: string[] | undefined;
|
|
146
|
-
tool_names?: string[] | undefined;
|
|
147
|
-
data_patterns?: string[] | undefined;
|
|
148
|
-
}, {
|
|
149
|
-
keywords?: string[] | undefined;
|
|
150
|
-
tool_names?: string[] | undefined;
|
|
151
|
-
data_patterns?: string[] | undefined;
|
|
152
|
-
}>>;
|
|
153
|
-
execution: z.ZodOptional<z.ZodObject<{
|
|
154
|
-
language: z.ZodString;
|
|
155
|
-
packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
156
|
-
system_packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
157
|
-
template: z.ZodOptional<z.ZodString>;
|
|
158
|
-
}, "strip", z.ZodTypeAny, {
|
|
159
|
-
language: string;
|
|
160
|
-
template?: string | undefined;
|
|
161
|
-
packages?: string[] | undefined;
|
|
162
|
-
system_packages?: string[] | undefined;
|
|
163
|
-
}, {
|
|
164
|
-
language: string;
|
|
165
|
-
template?: string | undefined;
|
|
166
|
-
packages?: string[] | undefined;
|
|
167
|
-
system_packages?: string[] | undefined;
|
|
168
|
-
}>>;
|
|
169
|
-
related_tools: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
170
|
-
scripts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
171
|
-
widgets: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
172
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
173
|
-
/**
|
|
174
|
-
* Schema for validating properties exported from properties.ts
|
|
175
|
-
* This is a partial schema - allows any subset of SkillDefinition fields
|
|
176
|
-
*
|
|
177
|
-
* Note: Function properties like isEnabled cannot be validated by Zod for their signatures.
|
|
178
|
-
* Zod will only check that they are functions, not their specific parameter/return types.
|
|
179
|
-
* Use TypeScript for proper type checking of function signatures.
|
|
180
|
-
*/
|
|
181
|
-
export declare const SkillPropertiesSchema: z.ZodObject<{
|
|
182
|
-
name: z.ZodOptional<z.ZodString>;
|
|
183
|
-
title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
184
|
-
description: z.ZodOptional<z.ZodString>;
|
|
185
|
-
instructions: z.ZodOptional<z.ZodString>;
|
|
186
|
-
content_type: z.ZodOptional<z.ZodEnum<["md", "jst"]>>;
|
|
187
|
-
input_schema: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
188
|
-
type: z.ZodLiteral<"object">;
|
|
189
|
-
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
190
|
-
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
191
|
-
}, "strip", z.ZodTypeAny, {
|
|
192
|
-
type: "object";
|
|
193
|
-
properties?: Record<string, any> | undefined;
|
|
194
|
-
required?: string[] | undefined;
|
|
195
|
-
}, {
|
|
196
|
-
type: "object";
|
|
197
|
-
properties?: Record<string, any> | undefined;
|
|
198
|
-
required?: string[] | undefined;
|
|
199
|
-
}>>>;
|
|
200
|
-
context_triggers: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
201
|
-
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
202
|
-
tool_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
203
|
-
data_patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
204
|
-
}, "strip", z.ZodTypeAny, {
|
|
205
|
-
keywords?: string[] | undefined;
|
|
206
|
-
tool_names?: string[] | undefined;
|
|
207
|
-
data_patterns?: string[] | undefined;
|
|
208
|
-
}, {
|
|
209
|
-
keywords?: string[] | undefined;
|
|
210
|
-
tool_names?: string[] | undefined;
|
|
211
|
-
data_patterns?: string[] | undefined;
|
|
212
|
-
}>>>;
|
|
213
|
-
execution: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
214
|
-
language: z.ZodString;
|
|
215
|
-
packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
216
|
-
system_packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
217
|
-
template: z.ZodOptional<z.ZodString>;
|
|
218
|
-
}, "strip", z.ZodTypeAny, {
|
|
219
|
-
language: string;
|
|
220
|
-
template?: string | undefined;
|
|
221
|
-
packages?: string[] | undefined;
|
|
222
|
-
system_packages?: string[] | undefined;
|
|
223
|
-
}, {
|
|
224
|
-
language: string;
|
|
225
|
-
template?: string | undefined;
|
|
226
|
-
packages?: string[] | undefined;
|
|
227
|
-
system_packages?: string[] | undefined;
|
|
228
|
-
}>>>;
|
|
229
|
-
related_tools: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
230
|
-
scripts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
231
|
-
widgets: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
232
|
-
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
233
|
-
name: z.ZodOptional<z.ZodString>;
|
|
234
|
-
title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
235
|
-
description: z.ZodOptional<z.ZodString>;
|
|
236
|
-
instructions: z.ZodOptional<z.ZodString>;
|
|
237
|
-
content_type: z.ZodOptional<z.ZodEnum<["md", "jst"]>>;
|
|
238
|
-
input_schema: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
239
|
-
type: z.ZodLiteral<"object">;
|
|
240
|
-
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
241
|
-
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
242
|
-
}, "strip", z.ZodTypeAny, {
|
|
243
|
-
type: "object";
|
|
244
|
-
properties?: Record<string, any> | undefined;
|
|
245
|
-
required?: string[] | undefined;
|
|
246
|
-
}, {
|
|
247
|
-
type: "object";
|
|
248
|
-
properties?: Record<string, any> | undefined;
|
|
249
|
-
required?: string[] | undefined;
|
|
250
|
-
}>>>;
|
|
251
|
-
context_triggers: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
252
|
-
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
253
|
-
tool_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
254
|
-
data_patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
255
|
-
}, "strip", z.ZodTypeAny, {
|
|
256
|
-
keywords?: string[] | undefined;
|
|
257
|
-
tool_names?: string[] | undefined;
|
|
258
|
-
data_patterns?: string[] | undefined;
|
|
259
|
-
}, {
|
|
260
|
-
keywords?: string[] | undefined;
|
|
261
|
-
tool_names?: string[] | undefined;
|
|
262
|
-
data_patterns?: string[] | undefined;
|
|
263
|
-
}>>>;
|
|
264
|
-
execution: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
265
|
-
language: z.ZodString;
|
|
266
|
-
packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
267
|
-
system_packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
268
|
-
template: z.ZodOptional<z.ZodString>;
|
|
269
|
-
}, "strip", z.ZodTypeAny, {
|
|
270
|
-
language: string;
|
|
271
|
-
template?: string | undefined;
|
|
272
|
-
packages?: string[] | undefined;
|
|
273
|
-
system_packages?: string[] | undefined;
|
|
274
|
-
}, {
|
|
275
|
-
language: string;
|
|
276
|
-
template?: string | undefined;
|
|
277
|
-
packages?: string[] | undefined;
|
|
278
|
-
system_packages?: string[] | undefined;
|
|
279
|
-
}>>>;
|
|
280
|
-
related_tools: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
281
|
-
scripts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
282
|
-
widgets: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
283
|
-
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
284
|
-
name: z.ZodOptional<z.ZodString>;
|
|
285
|
-
title: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
286
|
-
description: z.ZodOptional<z.ZodString>;
|
|
287
|
-
instructions: z.ZodOptional<z.ZodString>;
|
|
288
|
-
content_type: z.ZodOptional<z.ZodEnum<["md", "jst"]>>;
|
|
289
|
-
input_schema: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
290
|
-
type: z.ZodLiteral<"object">;
|
|
291
|
-
properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
292
|
-
required: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
293
|
-
}, "strip", z.ZodTypeAny, {
|
|
294
|
-
type: "object";
|
|
295
|
-
properties?: Record<string, any> | undefined;
|
|
296
|
-
required?: string[] | undefined;
|
|
297
|
-
}, {
|
|
298
|
-
type: "object";
|
|
299
|
-
properties?: Record<string, any> | undefined;
|
|
300
|
-
required?: string[] | undefined;
|
|
301
|
-
}>>>;
|
|
302
|
-
context_triggers: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
303
|
-
keywords: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
304
|
-
tool_names: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
305
|
-
data_patterns: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
306
|
-
}, "strip", z.ZodTypeAny, {
|
|
307
|
-
keywords?: string[] | undefined;
|
|
308
|
-
tool_names?: string[] | undefined;
|
|
309
|
-
data_patterns?: string[] | undefined;
|
|
310
|
-
}, {
|
|
311
|
-
keywords?: string[] | undefined;
|
|
312
|
-
tool_names?: string[] | undefined;
|
|
313
|
-
data_patterns?: string[] | undefined;
|
|
314
|
-
}>>>;
|
|
315
|
-
execution: z.ZodOptional<z.ZodOptional<z.ZodObject<{
|
|
316
|
-
language: z.ZodString;
|
|
317
|
-
packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
318
|
-
system_packages: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
319
|
-
template: z.ZodOptional<z.ZodString>;
|
|
320
|
-
}, "strip", z.ZodTypeAny, {
|
|
321
|
-
language: string;
|
|
322
|
-
template?: string | undefined;
|
|
323
|
-
packages?: string[] | undefined;
|
|
324
|
-
system_packages?: string[] | undefined;
|
|
325
|
-
}, {
|
|
326
|
-
language: string;
|
|
327
|
-
template?: string | undefined;
|
|
328
|
-
packages?: string[] | undefined;
|
|
329
|
-
system_packages?: string[] | undefined;
|
|
330
|
-
}>>>;
|
|
331
|
-
related_tools: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
332
|
-
scripts: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
333
|
-
widgets: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
334
|
-
}, z.ZodTypeAny, "passthrough">>;
|
|
335
|
-
/**
|
|
336
|
-
* TypeScript type inferred from the Zod schema
|
|
337
|
-
* Can also be imported from consumer packages for type safety
|
|
338
|
-
*/
|
|
339
|
-
export type SkillDefinition = z.infer<typeof SkillDefinitionSchema>;
|
|
340
|
-
/**
|
|
341
|
-
* Skill transformer preset
|
|
342
|
-
* Transforms markdown files with ?skill suffix OR SKILL.md files into skill definition objects
|
|
343
|
-
*
|
|
344
|
-
* Matches:
|
|
345
|
-
* - Files with ?skill suffix: ./my-skill.md?skill
|
|
346
|
-
* - SKILL.md files: ./my-skill/SKILL.md
|
|
347
|
-
*
|
|
348
|
-
* Runtime Properties:
|
|
349
|
-
* - Supports properties.ts file in skill directory for runtime properties (functions, overrides)
|
|
350
|
-
* - Properties from properties.ts override those from frontmatter
|
|
351
|
-
* - See README.md for detailed usage examples
|
|
352
|
-
*
|
|
353
|
-
* @example
|
|
354
|
-
* ```typescript
|
|
355
|
-
* import skill1 from './my-skill.md?skill';
|
|
356
|
-
* import skill2 from './my-skill/SKILL.md';
|
|
357
|
-
* // Both are SkillDefinition objects
|
|
358
|
-
* ```
|
|
359
|
-
*/
|
|
360
|
-
export declare const skillTransformer: TransformerPreset;
|
|
361
|
-
//# sourceMappingURL=skill.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skill.d.ts","sourceRoot":"","sources":["../../../src/presets/skill.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAIrD;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,KAAK,CAAC;AA6E5C;;;;;;;;GAQG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAgBlB,CAAC;AAEjB;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAAgD,CAAC;AAEnF;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAiGpE;;;;;;;;;;;;;;;;;;;GAmBG;AACH,eAAO,MAAM,gBAAgB,EAAE,iBAqE9B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"template-collection.d.ts","sourceRoot":"","sources":["../../../src/presets/template-collection.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAErD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,6BAA6B,EAAE,iBAuD3C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"template.d.ts","sourceRoot":"","sources":["../../../src/presets/template.ts"],"names":[],"mappings":"AAAA;;GAEG;AAGH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAgBrD;;;GAGG;AACH,eAAO,MAAM,iCAAiC;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAS9B,CAAC;AAEjB;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iCAAiC,CAAC,CAAC;AAgB5F;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,mBAAmB,EAAE,iBA4CjC,CAAC"}
|
package/lib/types/types.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACrC,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAE7B;;GAEG;AACH,MAAM,WAAW,SAAS;IACtB,kCAAkC;IAClC,UAAU,EAAE,MAAM,CAAC;IAEnB,wDAAwD;IACxD,QAAQ,EAAE,MAAM,CAAC;IAEjB,oCAAoC;IACpC,IAAI,EAAE,QAAQ,GAAG,UAAU,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,sDAAsD;IACtD,IAAI,EAAE,OAAO,CAAC;IAEd,gFAAgF;IAChF,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IAEnB,uEAAuE;IACvE,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,+CAA+C;IAC/C,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IAErB,gDAAgD;IAChD,OAAO,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACnD;AAED;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAC5B,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,KACf,eAAe,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,eAAe;IAC5B,uEAAuE;IACvE,OAAO,EAAE,MAAM,CAAC;IAEhB,iDAAiD;IACjD,SAAS,EAAE,iBAAiB,CAAC;IAE7B,0CAA0C;IAC1C,MAAM,CAAC,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IAExB,qFAAqF;IACrF,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACrC;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IAEpB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAErC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,YAAY;IACzB,0CAA0C;IAC1C,YAAY,EAAE,eAAe,EAAE,CAAC;IAEhC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAE3B;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;CAC/B;AAED;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,MAAM,EAAE,YAAY,KAAK,MAAM,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"asset-copy.d.ts","sourceRoot":"","sources":["../../../src/utils/asset-copy.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAgB7C;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAgBxE;AAED;;;;;;GAMG;AACH,wBAAgB,UAAU,CAAC,MAAM,EAAE,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAS1E"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"asset-discovery.d.ts","sourceRoot":"","sources":["../../../src/utils/asset-discovery.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,2CAA2C;IAC3C,IAAI,EAAE,MAAM,CAAC;IAEb,mCAAmC;IACnC,IAAI,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,gBAAgB;IAC7B,oDAAoD;IACpD,OAAO,EAAE,MAAM,EAAE,CAAC;IAElB,iDAAiD;IACjD,OAAO,EAAE,MAAM,EAAE,CAAC;IAElB,sCAAsC;IACtC,cAAc,EAAE,cAAc,EAAE,CAAC;IAEjC,+BAA+B;IAC/B,UAAU,EAAE,SAAS,EAAE,CAAC;CAC3B;AAgDD;;;;;;GAMG;AACH,wBAAgB,mBAAmB,CAC/B,aAAa,EAAE,MAAM,EACrB,OAAO,GAAE;IACL,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;CAClB,GACP,gBAAgB,CA0ClB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"template-asset-discovery.d.ts","sourceRoot":"","sources":["../../../src/utils/template-asset-discovery.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACrC,kDAAkD;IAClD,SAAS,EAAE,MAAM,EAAE,CAAC;IAEpB,+BAA+B;IAC/B,UAAU,EAAE,SAAS,EAAE,CAAC;CAC3B;AAgBD;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAClC,gBAAgB,EAAE,MAAM,EACxB,YAAY,EAAE,MAAM,GACrB,wBAAwB,CAgC1B"}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Widget compilation utility using Rollup
|
|
3
|
-
*/
|
|
4
|
-
import type { WidgetConfig } from '../types.js';
|
|
5
|
-
import type { WidgetMetadata } from './asset-discovery.js';
|
|
6
|
-
/**
|
|
7
|
-
* Compile widgets using Rollup
|
|
8
|
-
*
|
|
9
|
-
* @param widgets - Array of widget metadata to compile
|
|
10
|
-
* @param outputDir - Directory to write compiled widgets
|
|
11
|
-
* @param config - Widget compilation configuration
|
|
12
|
-
* @returns Number of widgets compiled
|
|
13
|
-
*/
|
|
14
|
-
export declare function compileWidgets(widgets: WidgetMetadata[], outputDir: string, config?: WidgetConfig): Promise<number>;
|
|
15
|
-
//# sourceMappingURL=widget-compiler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"widget-compiler.d.ts","sourceRoot":"","sources":["../../../src/utils/widget-compiler.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAa3D;;;;;;;GAOG;AACH,wBAAsB,cAAc,CAChC,OAAO,EAAE,cAAc,EAAE,EACzB,SAAS,EAAE,MAAM,EACjB,MAAM,GAAE,YAAiB,GAC1B,OAAO,CAAC,MAAM,CAAC,CAiEjB"}
|
package/lib/types/vite.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Vite-specific helpers for tool server development.
|
|
3
|
-
*
|
|
4
|
-
* Provides a pre-configured Vite plugin that handles SKILL.md, prompt,
|
|
5
|
-
* and raw file imports — the same transforms used by rollup at build time.
|
|
6
|
-
*
|
|
7
|
-
* @example
|
|
8
|
-
* ```typescript
|
|
9
|
-
* // vite.server.config.ts
|
|
10
|
-
* import { defineConfig } from 'vite';
|
|
11
|
-
* import devServer from '@hono/vite-dev-server';
|
|
12
|
-
* import { vertesiaDevServerPlugin } from '@vertesia/build-tools/vite';
|
|
13
|
-
*
|
|
14
|
-
* export default defineConfig({
|
|
15
|
-
* plugins: [
|
|
16
|
-
* vertesiaDevServerPlugin(),
|
|
17
|
-
* devServer({ entry: 'tools/server.ts' }),
|
|
18
|
-
* ],
|
|
19
|
-
* });
|
|
20
|
-
* ```
|
|
21
|
-
*/
|
|
22
|
-
import type { Plugin } from 'rollup';
|
|
23
|
-
import type { PluginConfig } from './types.js';
|
|
24
|
-
/**
|
|
25
|
-
* Creates a pre-configured Vite plugin for tool server dev mode.
|
|
26
|
-
* Includes skill, prompt, and raw file transformers with asset copying disabled
|
|
27
|
-
* (assets are only needed at build time, not during dev).
|
|
28
|
-
*
|
|
29
|
-
* @param overrides - Optional overrides for the plugin config
|
|
30
|
-
*/
|
|
31
|
-
export declare function vertesiaDevServerPlugin(overrides?: Partial<PluginConfig>): Plugin;
|
|
32
|
-
//# sourceMappingURL=vite.d.ts.map
|
package/lib/types/vite.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vite.d.ts","sourceRoot":"","sources":["../../src/vite.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGrC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE/C;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,SAAS,CAAC,EAAE,OAAO,CAAC,YAAY,CAAC,GAAG,MAAM,CAUjF"}
|