specweave 0.8.20 → 0.8.21
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/cli/helpers/issue-tracker/ado.d.ts.map +1 -1
- package/dist/cli/helpers/issue-tracker/ado.js +21 -13
- package/dist/cli/helpers/issue-tracker/ado.js.map +1 -1
- package/dist/cli/helpers/issue-tracker/types.d.ts +2 -1
- package/dist/cli/helpers/issue-tracker/types.d.ts.map +1 -1
- package/dist/cli/helpers/issue-tracker/types.js.map +1 -1
- package/dist/core/credentials-manager.d.ts +2 -1
- package/dist/core/credentials-manager.d.ts.map +1 -1
- package/dist/core/credentials-manager.js +30 -25
- package/dist/core/credentials-manager.js.map +1 -1
- package/dist/core/sync/folder-mapper.d.ts +71 -0
- package/dist/core/sync/folder-mapper.d.ts.map +1 -0
- package/dist/core/sync/folder-mapper.js +168 -0
- package/dist/core/sync/folder-mapper.js.map +1 -0
- package/dist/core/sync/profile-validator.d.ts +52 -0
- package/dist/core/sync/profile-validator.d.ts.map +1 -0
- package/dist/core/sync/profile-validator.js +225 -0
- package/dist/core/sync/profile-validator.js.map +1 -0
- package/dist/core/types/sync-profile.d.ts +52 -2
- package/dist/core/types/sync-profile.d.ts.map +1 -1
- package/dist/utils/env-multi-project-parser.d.ts +22 -12
- package/dist/utils/env-multi-project-parser.d.ts.map +1 -1
- package/dist/utils/env-multi-project-parser.js +31 -34
- package/dist/utils/env-multi-project-parser.js.map +1 -1
- package/dist/utils/string-utils.d.ts +40 -0
- package/dist/utils/string-utils.d.ts.map +1 -0
- package/dist/utils/string-utils.js +58 -0
- package/dist/utils/string-utils.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* String Utilities
|
|
3
|
+
*
|
|
4
|
+
* Utilities for string manipulation and formatting
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* Convert a string to kebab-case (lowercase with hyphens)
|
|
8
|
+
*
|
|
9
|
+
* Examples:
|
|
10
|
+
* - "Platform Engineering Team" → "platform-engineering-team"
|
|
11
|
+
* - "FRONTEND" → "frontend"
|
|
12
|
+
* - "League Scheduler Team" → "league-scheduler-team"
|
|
13
|
+
*
|
|
14
|
+
* @param str - Input string to slugify
|
|
15
|
+
* @returns Kebab-case string suitable for folder names
|
|
16
|
+
*/
|
|
17
|
+
export function slugify(str) {
|
|
18
|
+
return str
|
|
19
|
+
.toLowerCase()
|
|
20
|
+
.trim()
|
|
21
|
+
.replace(/[^\w\s-]/g, '') // Remove non-word chars except spaces and hyphens
|
|
22
|
+
.replace(/[\s_]+/g, '-') // Replace spaces and underscores with hyphens
|
|
23
|
+
.replace(/-+/g, '-') // Replace multiple hyphens with single hyphen
|
|
24
|
+
.replace(/^-+|-+$/g, ''); // Remove leading/trailing hyphens
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Parse comma-separated values and trim whitespace
|
|
28
|
+
*
|
|
29
|
+
* Examples:
|
|
30
|
+
* - "Team A, Team B, Team C" → ["Team A", "Team B", "Team C"]
|
|
31
|
+
* - "FRONTEND,BACKEND,QA" → ["FRONTEND", "BACKEND", "QA"]
|
|
32
|
+
*
|
|
33
|
+
* @param input - Comma-separated string
|
|
34
|
+
* @returns Array of trimmed strings (empty strings removed)
|
|
35
|
+
*/
|
|
36
|
+
export function parseCommaSeparated(input) {
|
|
37
|
+
return input
|
|
38
|
+
.split(',')
|
|
39
|
+
.map((s) => s.trim())
|
|
40
|
+
.filter((s) => s.length > 0);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Convert kebab-case to Title Case
|
|
44
|
+
*
|
|
45
|
+
* Examples:
|
|
46
|
+
* - "platform-engineering-team" → "Platform Engineering Team"
|
|
47
|
+
* - "frontend" → "Frontend"
|
|
48
|
+
*
|
|
49
|
+
* @param str - Kebab-case string
|
|
50
|
+
* @returns Title Case string
|
|
51
|
+
*/
|
|
52
|
+
export function unslugify(str) {
|
|
53
|
+
return str
|
|
54
|
+
.split('-')
|
|
55
|
+
.map((word) => word.charAt(0).toUpperCase() + word.slice(1).toLowerCase())
|
|
56
|
+
.join(' ');
|
|
57
|
+
}
|
|
58
|
+
//# sourceMappingURL=string-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"string-utils.js","sourceRoot":"","sources":["../../src/utils/string-utils.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH;;;;;;;;;;GAUG;AACH,MAAM,UAAU,OAAO,CAAC,GAAW;IACjC,OAAO,GAAG;SACP,WAAW,EAAE;SACb,IAAI,EAAE;SACN,OAAO,CAAC,WAAW,EAAE,EAAE,CAAC,CAAE,kDAAkD;SAC5E,OAAO,CAAC,SAAS,EAAE,GAAG,CAAC,CAAG,8CAA8C;SACxE,OAAO,CAAC,KAAK,EAAE,GAAG,CAAC,CAAO,8CAA8C;SACxE,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,CAAC,CAAE,kCAAkC;AACjE,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,mBAAmB,CAAC,KAAa;IAC/C,OAAO,KAAK;SACT,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;SACpB,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;AACjC,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,UAAU,SAAS,CAAC,GAAW;IACnC,OAAO,GAAG;SACP,KAAK,CAAC,GAAG,CAAC;SACV,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;SACzE,IAAI,CAAC,GAAG,CAAC,CAAC;AACf,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "specweave",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.21",
|
|
4
4
|
"description": "Spec-driven development framework for Claude Code. AI-native workflow with living documentation, intelligent agents, and multilingual support (9 languages). Enterprise-grade traceability with permanent specs and temporary increments.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|