@wayai/cli 0.2.58 → 0.2.59
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/dist/lib/utils.d.ts +1 -1
- package/dist/lib/utils.js +2 -2
- package/package.json +1 -1
package/dist/lib/utils.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare function prompt(question: string): Promise<string>;
|
|
|
12
12
|
export declare function confirm(question: string): Promise<boolean>;
|
|
13
13
|
/**
|
|
14
14
|
* Slugify a string: lowercase, normalize accents, replace non-alphanumeric with hyphens.
|
|
15
|
-
*
|
|
15
|
+
* Must match @wayai/shared slugifySkillName (workers/shared/src/resources.ts)
|
|
16
16
|
*/
|
|
17
17
|
export declare function slugify(input: string): string;
|
|
18
18
|
/**
|
package/dist/lib/utils.js
CHANGED
|
@@ -31,7 +31,7 @@ export function confirm(question) {
|
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* Slugify a string: lowercase, normalize accents, replace non-alphanumeric with hyphens.
|
|
34
|
-
*
|
|
34
|
+
* Must match @wayai/shared slugifySkillName (workers/shared/src/resources.ts)
|
|
35
35
|
*/
|
|
36
36
|
export function slugify(input) {
|
|
37
37
|
return input
|
|
@@ -41,7 +41,7 @@ export function slugify(input) {
|
|
|
41
41
|
.replace(/[^a-z0-9]+/g, '-') // non-alphanumeric → hyphens
|
|
42
42
|
.replace(/-+/g, '-') // collapse consecutive
|
|
43
43
|
.replace(/^-|-$/g, '') // trim leading/trailing
|
|
44
|
-
.slice(0,
|
|
44
|
+
.slice(0, 64); // limit length
|
|
45
45
|
}
|
|
46
46
|
/**
|
|
47
47
|
* Resolve the hub YAML path in a folder: tries hub.yaml first, falls back to wayai.yaml.
|