@autonav/core 1.1.5 → 1.3.1
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/adapter/claude-adapter.d.ts +2 -2
- package/dist/adapter/claude-adapter.d.ts.map +1 -1
- package/dist/adapter/claude-adapter.js +34 -8
- package/dist/adapter/claude-adapter.js.map +1 -1
- package/dist/cli/autonav.js +6 -0
- package/dist/cli/autonav.js.map +1 -1
- package/dist/cli/nav-migrate.d.ts +16 -0
- package/dist/cli/nav-migrate.d.ts.map +1 -0
- package/dist/cli/nav-migrate.js +180 -0
- package/dist/cli/nav-migrate.js.map +1 -0
- package/dist/cli/nav-query.js +1 -1
- package/dist/cli/nav-query.js.map +1 -1
- package/dist/interview/App.d.ts.map +1 -1
- package/dist/interview/App.js +3 -2
- package/dist/interview/App.js.map +1 -1
- package/dist/interview/prompts.d.ts +1 -1
- package/dist/interview/prompts.d.ts.map +1 -1
- package/dist/interview/prompts.js +3 -1
- package/dist/interview/prompts.js.map +1 -1
- package/dist/interview/ui/ActivityIndicator.d.ts +23 -0
- package/dist/interview/ui/ActivityIndicator.d.ts.map +1 -0
- package/dist/interview/ui/ActivityIndicator.js +81 -0
- package/dist/interview/ui/ActivityIndicator.js.map +1 -0
- package/dist/interview/ui/Banner.d.ts +14 -0
- package/dist/interview/ui/Banner.d.ts.map +1 -0
- package/dist/interview/ui/Banner.js +23 -0
- package/dist/interview/ui/Banner.js.map +1 -0
- package/dist/interview/ui/CompletionScreen.d.ts +12 -0
- package/dist/interview/ui/CompletionScreen.d.ts.map +1 -0
- package/dist/interview/ui/CompletionScreen.js +43 -0
- package/dist/interview/ui/CompletionScreen.js.map +1 -0
- package/dist/interview/ui/Divider.d.ts +7 -0
- package/dist/interview/ui/Divider.d.ts.map +1 -0
- package/dist/interview/ui/Divider.js +15 -0
- package/dist/interview/ui/Divider.js.map +1 -0
- package/dist/interview/ui/SystemMessage.d.ts +13 -0
- package/dist/interview/ui/SystemMessage.d.ts.map +1 -0
- package/dist/interview/ui/SystemMessage.js +37 -0
- package/dist/interview/ui/SystemMessage.js.map +1 -0
- package/dist/interview/ui/UserResponse.d.ts +12 -0
- package/dist/interview/ui/UserResponse.d.ts.map +1 -0
- package/dist/interview/ui/UserResponse.js +25 -0
- package/dist/interview/ui/UserResponse.js.map +1 -0
- package/dist/interview/ui/index.d.ts +12 -0
- package/dist/interview/ui/index.d.ts.map +1 -0
- package/dist/interview/ui/index.js +12 -0
- package/dist/interview/ui/index.js.map +1 -0
- package/dist/interview/ui/test-indicator.d.ts +9 -0
- package/dist/interview/ui/test-indicator.d.ts.map +1 -0
- package/dist/interview/ui/test-indicator.js +18 -0
- package/dist/interview/ui/test-indicator.js.map +1 -0
- package/dist/interview/ui/text-utils.d.ts +12 -0
- package/dist/interview/ui/text-utils.d.ts.map +1 -0
- package/dist/interview/ui/text-utils.js +60 -0
- package/dist/interview/ui/text-utils.js.map +1 -0
- package/dist/interview/ui/theme.d.ts +90 -0
- package/dist/interview/ui/theme.d.ts.map +1 -0
- package/dist/interview/ui/theme.js +114 -0
- package/dist/interview/ui/theme.js.map +1 -0
- package/dist/migrations/index.d.ts +38 -0
- package/dist/migrations/index.d.ts.map +1 -0
- package/dist/migrations/index.js +74 -0
- package/dist/migrations/index.js.map +1 -0
- package/dist/migrations/types.d.ts +60 -0
- package/dist/migrations/types.d.ts.map +1 -0
- package/dist/migrations/types.js +8 -0
- package/dist/migrations/types.js.map +1 -0
- package/dist/migrations/versions/v1.3.1-submit-answer.d.ts +14 -0
- package/dist/migrations/versions/v1.3.1-submit-answer.d.ts.map +1 -0
- package/dist/migrations/versions/v1.3.1-submit-answer.js +230 -0
- package/dist/migrations/versions/v1.3.1-submit-answer.js.map +1 -0
- package/dist/skill-generator/index.d.ts.map +1 -1
- package/dist/skill-generator/index.js +9 -0
- package/dist/skill-generator/index.js.map +1 -1
- package/dist/templates/CLAUDE-pack.md.template +13 -1
- package/dist/templates/CLAUDE.md.template +39 -36
- package/dist/templates/system-configuration.md.template +17 -13
- package/dist/tools/response.d.ts.map +1 -1
- package/dist/tools/response.js +6 -3
- package/dist/tools/response.js.map +1 -1
- package/package.json +3 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-utils.js","sourceRoot":"","sources":["../../../src/interview/ui/text-utils.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH;;;;;;GAMG;AACH,MAAM,UAAU,QAAQ,CAAC,IAAY,EAAE,QAAgB;IACrD,MAAM,KAAK,GAAa,EAAE,CAAC;IAE3B,mCAAmC;IACnC,MAAM,UAAU,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAEpC,KAAK,MAAM,SAAS,IAAI,UAAU,EAAE,CAAC;QACnC,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC3B,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;YACf,SAAS;QACX,CAAC;QAED,IAAI,SAAS,CAAC,MAAM,IAAI,QAAQ,EAAE,CAAC;YACjC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACtB,SAAS;QACX,CAAC;QAED,8BAA8B;QAC9B,MAAM,KAAK,GAAG,SAAS,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;QACnC,IAAI,WAAW,GAAG,EAAE,CAAC;QAErB,KAAK,MAAM,IAAI,IAAI,KAAK,EAAE,CAAC;YACzB,8DAA8D;YAC9D,IAAI,IAAI,CAAC,MAAM,GAAG,QAAQ,EAAE,CAAC;gBAC3B,IAAI,WAAW,EAAE,CAAC;oBAChB,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC,CAAC;oBAC/B,WAAW,GAAG,EAAE,CAAC;gBACnB,CAAC;gBACD,kCAAkC;gBAClC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,QAAQ,EAAE,CAAC;oBAC/C,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC;gBAC1C,CAAC;gBACD,SAAS;YACX,CAAC;YAED,kCAAkC;YAClC,MAAM,QAAQ,GAAG,WAAW,CAAC,CAAC,CAAC,GAAG,WAAW,IAAI,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;YAE/D,IAAI,QAAQ,CAAC,MAAM,IAAI,QAAQ,EAAE,CAAC;gBAChC,WAAW,GAAG,QAAQ,CAAC;YACzB,CAAC;iBAAM,CAAC;gBACN,uCAAuC;gBACvC,IAAI,WAAW,EAAE,CAAC;oBAChB,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;gBAC1B,CAAC;gBACD,WAAW,GAAG,IAAI,CAAC;YACrB,CAAC;QACH,CAAC;QAED,qBAAqB;QACrB,IAAI,WAAW,EAAE,CAAC;YAChB,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC1B,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Theme configuration for cyberpunk glitch UI
|
|
3
|
+
*
|
|
4
|
+
* Provides colors, characters, and glyphs for the interview TUI
|
|
5
|
+
*/
|
|
6
|
+
/** Color palette */
|
|
7
|
+
export declare const colors: {
|
|
8
|
+
readonly primary: "green";
|
|
9
|
+
readonly accent: "cyan";
|
|
10
|
+
readonly dimmed: "gray";
|
|
11
|
+
readonly error: "red";
|
|
12
|
+
readonly warning: "yellow";
|
|
13
|
+
};
|
|
14
|
+
/** Box-drawing characters */
|
|
15
|
+
export declare const boxChars: {
|
|
16
|
+
readonly double: {
|
|
17
|
+
readonly topLeft: "╔";
|
|
18
|
+
readonly topRight: "╗";
|
|
19
|
+
readonly bottomLeft: "╚";
|
|
20
|
+
readonly bottomRight: "╝";
|
|
21
|
+
readonly horizontal: "═";
|
|
22
|
+
readonly vertical: "║";
|
|
23
|
+
readonly leftT: "╠";
|
|
24
|
+
readonly rightT: "╣";
|
|
25
|
+
};
|
|
26
|
+
readonly single: {
|
|
27
|
+
readonly topLeft: "┌";
|
|
28
|
+
readonly topRight: "┐";
|
|
29
|
+
readonly bottomLeft: "└";
|
|
30
|
+
readonly bottomRight: "┘";
|
|
31
|
+
readonly horizontal: "─";
|
|
32
|
+
readonly vertical: "│";
|
|
33
|
+
readonly leftT: "├";
|
|
34
|
+
readonly rightT: "┤";
|
|
35
|
+
};
|
|
36
|
+
readonly rounded: {
|
|
37
|
+
readonly topLeft: "╭";
|
|
38
|
+
readonly topRight: "╮";
|
|
39
|
+
readonly bottomLeft: "╰";
|
|
40
|
+
readonly bottomRight: "╯";
|
|
41
|
+
readonly horizontal: "─";
|
|
42
|
+
readonly vertical: "│";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
/** Glitch block characters for decorations */
|
|
46
|
+
export declare const glitchBlocks: readonly ["░", "▒", "▓", "█"];
|
|
47
|
+
/** Matrix-style glyph sets for animated activity indicator */
|
|
48
|
+
export declare const glyphSetA: readonly ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ":", ".", "=", "*", "+", "-", "<", ">", "|", "/", "\\", "^", "~", "_", "│", "─", "┤", "┐", "└", "┴", "┬", "├", "┼", "┘", "┌", "░", "▒", "▓", "█", "▀", "▄", "■", "□"];
|
|
49
|
+
export declare const glyphSetB: readonly ["░", "▒", "▓", "█", "▀", "▄", "■", "□", "▪", "▫", "░", "▒", "▓", "█", "▀", "▄", "■", "□", "▪", "▫", "│", "─", "║", "═", "╬", "╪", "┼", "╔", "╗", "╚", "╝", ":", ".", "*", "#", "@", "$", "%", "&", "=", "+", "-", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
50
|
+
export declare const glyphSetC: readonly ["0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ":", ".", "=", "*", "+", "-", "<", ">", "|", "/", "\\", "░", "▒", "▓", "█", "#", "@", "$", "%", "&", "^", "~"];
|
|
51
|
+
export declare const glyphSetD: readonly ["│", "─", "┤", "┐", "└", "┴", "┬", "├", "┼", "┘", "┌", "║", "═", "╬", "╪", "╔", "╗", "╚", "╝", "╠", "╣", "╦", "╩", "│", "─", "┤", "┐", "└", "┴", "┬", "├", "┼", "┘", "┌", "░", "▒", "▓", "█", "▀", "▄", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"];
|
|
52
|
+
export declare const glyphSetE: readonly ["░", "▒", "▓", "█", "▀", "▄", "■", "□", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "░", "▒", "▓", "█", "▀", "▄", "■", "□"];
|
|
53
|
+
export declare const matrixGlyphs: readonly ["A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", ":", ".", "=", "*", "+", "-", "<", ">", "|", "/", "\\", "^", "~", "_", "│", "─", "┤", "┐", "└", "┴", "┬", "├", "┼", "┘", "┌", "░", "▒", "▓", "█", "▀", "▄", "■", "□"];
|
|
54
|
+
/** Brightness levels for Matrix fade effect */
|
|
55
|
+
export declare const matrixBrightness: {
|
|
56
|
+
readonly bright: {
|
|
57
|
+
readonly r: 0;
|
|
58
|
+
readonly g: 255;
|
|
59
|
+
readonly b: 70;
|
|
60
|
+
};
|
|
61
|
+
readonly medium: {
|
|
62
|
+
readonly r: 0;
|
|
63
|
+
readonly g: 190;
|
|
64
|
+
readonly b: 0;
|
|
65
|
+
};
|
|
66
|
+
readonly dim: {
|
|
67
|
+
readonly r: 0;
|
|
68
|
+
readonly g: 100;
|
|
69
|
+
readonly b: 0;
|
|
70
|
+
};
|
|
71
|
+
readonly darkest: {
|
|
72
|
+
readonly r: 0;
|
|
73
|
+
readonly g: 40;
|
|
74
|
+
readonly b: 0;
|
|
75
|
+
};
|
|
76
|
+
};
|
|
77
|
+
/** Block-letter alphabet for ASCII art headers */
|
|
78
|
+
export declare const blockLetters: {
|
|
79
|
+
readonly A: readonly ["▄▀█", "█▀█"];
|
|
80
|
+
readonly U: readonly ["█░█", "█▄█"];
|
|
81
|
+
readonly T: readonly ["▀█▀", "░█░"];
|
|
82
|
+
readonly O: readonly ["█▀█", "█▄█"];
|
|
83
|
+
readonly N: readonly ["█▄░█", "█░▀█"];
|
|
84
|
+
readonly V: readonly ["█░█", "▀▄▀"];
|
|
85
|
+
readonly C: readonly ["█▀▀", "█░░", "▀▀▀"];
|
|
86
|
+
readonly R: readonly ["█▀█", "█▀▄", "▀░▀"];
|
|
87
|
+
readonly E: readonly ["█▀▀", "█▀▀", "▀▀▀"];
|
|
88
|
+
readonly D: readonly ["█▀▄", "█░█", "▀▀░"];
|
|
89
|
+
};
|
|
90
|
+
//# sourceMappingURL=theme.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../src/interview/ui/theme.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,oBAAoB;AACpB,eAAO,MAAM,MAAM;;;;;;CAMT,CAAC;AAEX,6BAA6B;AAC7B,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgCX,CAAC;AAEX,8CAA8C;AAC9C,eAAO,MAAM,YAAY,+BAAgC,CAAC;AAE1D,8DAA8D;AAG9D,eAAO,MAAM,SAAS,qWAOZ,CAAC;AAGX,eAAO,MAAM,SAAS,+QAMZ,CAAC;AAGX,eAAO,MAAM,SAAS,8NAMZ,CAAC;AAGX,eAAO,MAAM,SAAS,qQAMZ,CAAC;AAGX,eAAO,MAAM,SAAS,6IAIZ,CAAC;AAGX,eAAO,MAAM,YAAY,qWAAY,CAAC;AAEtC,+CAA+C;AAC/C,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;CAMnB,CAAC;AAEX,kDAAkD;AAClD,eAAO,MAAM,YAAY;;;;;;;;;;;CAYf,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Theme configuration for cyberpunk glitch UI
|
|
3
|
+
*
|
|
4
|
+
* Provides colors, characters, and glyphs for the interview TUI
|
|
5
|
+
*/
|
|
6
|
+
/** Color palette */
|
|
7
|
+
export const colors = {
|
|
8
|
+
primary: "green",
|
|
9
|
+
accent: "cyan",
|
|
10
|
+
dimmed: "gray",
|
|
11
|
+
error: "red",
|
|
12
|
+
warning: "yellow",
|
|
13
|
+
};
|
|
14
|
+
/** Box-drawing characters */
|
|
15
|
+
export const boxChars = {
|
|
16
|
+
// Double-line borders
|
|
17
|
+
double: {
|
|
18
|
+
topLeft: "╔",
|
|
19
|
+
topRight: "╗",
|
|
20
|
+
bottomLeft: "╚",
|
|
21
|
+
bottomRight: "╝",
|
|
22
|
+
horizontal: "═",
|
|
23
|
+
vertical: "║",
|
|
24
|
+
leftT: "╠",
|
|
25
|
+
rightT: "╣",
|
|
26
|
+
},
|
|
27
|
+
// Single-line borders
|
|
28
|
+
single: {
|
|
29
|
+
topLeft: "┌",
|
|
30
|
+
topRight: "┐",
|
|
31
|
+
bottomLeft: "└",
|
|
32
|
+
bottomRight: "┘",
|
|
33
|
+
horizontal: "─",
|
|
34
|
+
vertical: "│",
|
|
35
|
+
leftT: "├",
|
|
36
|
+
rightT: "┤",
|
|
37
|
+
},
|
|
38
|
+
// Rounded borders
|
|
39
|
+
rounded: {
|
|
40
|
+
topLeft: "╭",
|
|
41
|
+
topRight: "╮",
|
|
42
|
+
bottomLeft: "╰",
|
|
43
|
+
bottomRight: "╯",
|
|
44
|
+
horizontal: "─",
|
|
45
|
+
vertical: "│",
|
|
46
|
+
},
|
|
47
|
+
};
|
|
48
|
+
/** Glitch block characters for decorations */
|
|
49
|
+
export const glitchBlocks = ["░", "▒", "▓", "█"];
|
|
50
|
+
/** Matrix-style glyph sets for animated activity indicator */
|
|
51
|
+
// A. Classic Mix: Letters + Numbers + Symbols + Blocks
|
|
52
|
+
export const glyphSetA = [
|
|
53
|
+
"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M",
|
|
54
|
+
"N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z",
|
|
55
|
+
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
|
|
56
|
+
":", ".", "=", "*", "+", "-", "<", ">", "|", "/", "\\", "^", "~", "_",
|
|
57
|
+
"│", "─", "┤", "┐", "└", "┴", "┬", "├", "┼", "┘", "┌",
|
|
58
|
+
"░", "▒", "▓", "█", "▀", "▄", "■", "□",
|
|
59
|
+
];
|
|
60
|
+
// B. Block Heavy: Mostly blocks and symbols
|
|
61
|
+
export const glyphSetB = [
|
|
62
|
+
"░", "▒", "▓", "█", "▀", "▄", "■", "□", "▪", "▫",
|
|
63
|
+
"░", "▒", "▓", "█", "▀", "▄", "■", "□", "▪", "▫", // Repeat for density
|
|
64
|
+
"│", "─", "║", "═", "╬", "╪", "┼", "╔", "╗", "╚", "╝",
|
|
65
|
+
":", ".", "*", "#", "@", "$", "%", "&", "=", "+", "-",
|
|
66
|
+
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
|
|
67
|
+
];
|
|
68
|
+
// C. Numbers + Symbols: Digital/binary feel
|
|
69
|
+
export const glyphSetC = [
|
|
70
|
+
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
|
|
71
|
+
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", // More numbers
|
|
72
|
+
":", ".", "=", "*", "+", "-", "<", ">", "|", "/", "\\",
|
|
73
|
+
"░", "▒", "▓", "█",
|
|
74
|
+
"#", "@", "$", "%", "&", "^", "~",
|
|
75
|
+
];
|
|
76
|
+
// D. Box Drawing: Geometric/architectural
|
|
77
|
+
export const glyphSetD = [
|
|
78
|
+
"│", "─", "┤", "┐", "└", "┴", "┬", "├", "┼", "┘", "┌",
|
|
79
|
+
"║", "═", "╬", "╪", "╔", "╗", "╚", "╝", "╠", "╣", "╦", "╩",
|
|
80
|
+
"│", "─", "┤", "┐", "└", "┴", "┬", "├", "┼", "┘", "┌", // Repeat
|
|
81
|
+
"░", "▒", "▓", "█", "▀", "▄",
|
|
82
|
+
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
|
|
83
|
+
];
|
|
84
|
+
// E. Minimal: Just blocks and numbers
|
|
85
|
+
export const glyphSetE = [
|
|
86
|
+
"░", "▒", "▓", "█", "▀", "▄", "■", "□",
|
|
87
|
+
"0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
|
|
88
|
+
"░", "▒", "▓", "█", "▀", "▄", "■", "□", // Repeat for more blocks
|
|
89
|
+
];
|
|
90
|
+
// Default export for backwards compatibility
|
|
91
|
+
export const matrixGlyphs = glyphSetA;
|
|
92
|
+
/** Brightness levels for Matrix fade effect */
|
|
93
|
+
export const matrixBrightness = {
|
|
94
|
+
// RGB values for green fade: bright → medium → dark
|
|
95
|
+
bright: { r: 0, g: 255, b: 70 }, // Bright white-green
|
|
96
|
+
medium: { r: 0, g: 190, b: 0 }, // Medium green
|
|
97
|
+
dim: { r: 0, g: 100, b: 0 }, // Dark green
|
|
98
|
+
darkest: { r: 0, g: 40, b: 0 }, // Nearly black
|
|
99
|
+
};
|
|
100
|
+
/** Block-letter alphabet for ASCII art headers */
|
|
101
|
+
export const blockLetters = {
|
|
102
|
+
A: ["▄▀█", "█▀█"],
|
|
103
|
+
U: ["█░█", "█▄█"],
|
|
104
|
+
T: ["▀█▀", "░█░"],
|
|
105
|
+
O: ["█▀█", "█▄█"],
|
|
106
|
+
N: ["█▄░█", "█░▀█"],
|
|
107
|
+
V: ["█░█", "▀▄▀"],
|
|
108
|
+
C: ["█▀▀", "█░░", "▀▀▀"],
|
|
109
|
+
R: ["█▀█", "█▀▄", "▀░▀"],
|
|
110
|
+
E: ["█▀▀", "█▀▀", "▀▀▀"],
|
|
111
|
+
D: ["█▀▄", "█░█", "▀▀░"],
|
|
112
|
+
// Add more as needed
|
|
113
|
+
};
|
|
114
|
+
//# sourceMappingURL=theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../src/interview/ui/theme.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,oBAAoB;AACpB,MAAM,CAAC,MAAM,MAAM,GAAG;IACpB,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,MAAM;IACd,MAAM,EAAE,MAAM;IACd,KAAK,EAAE,KAAK;IACZ,OAAO,EAAE,QAAQ;CACT,CAAC;AAEX,6BAA6B;AAC7B,MAAM,CAAC,MAAM,QAAQ,GAAG;IACtB,sBAAsB;IACtB,MAAM,EAAE;QACN,OAAO,EAAE,GAAG;QACZ,QAAQ,EAAE,GAAG;QACb,UAAU,EAAE,GAAG;QACf,WAAW,EAAE,GAAG;QAChB,UAAU,EAAE,GAAG;QACf,QAAQ,EAAE,GAAG;QACb,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;KACZ;IACD,sBAAsB;IACtB,MAAM,EAAE;QACN,OAAO,EAAE,GAAG;QACZ,QAAQ,EAAE,GAAG;QACb,UAAU,EAAE,GAAG;QACf,WAAW,EAAE,GAAG;QAChB,UAAU,EAAE,GAAG;QACf,QAAQ,EAAE,GAAG;QACb,KAAK,EAAE,GAAG;QACV,MAAM,EAAE,GAAG;KACZ;IACD,kBAAkB;IAClB,OAAO,EAAE;QACP,OAAO,EAAE,GAAG;QACZ,QAAQ,EAAE,GAAG;QACb,UAAU,EAAE,GAAG;QACf,WAAW,EAAE,GAAG;QAChB,UAAU,EAAE,GAAG;QACf,QAAQ,EAAE,GAAG;KACd;CACO,CAAC;AAEX,8CAA8C;AAC9C,MAAM,CAAC,MAAM,YAAY,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AG,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAE,EAAQ,aAAa;IAChD,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAK,eAAe;CAC1C,CAAC;AAEX,kDAAkD;AAClD,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACjB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACjB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACjB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACjB,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;IACnB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC;IACjB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;IACxB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;IACxB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;IACxB,CAAC,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC;IACxB,qBAAqB;CACb,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration system
|
|
3
|
+
*
|
|
4
|
+
* Manages versioned migrations that bring navigators up to spec with
|
|
5
|
+
* latest best practices.
|
|
6
|
+
*/
|
|
7
|
+
import type { Migration, MigrationCheck, MigrationResult } from "./types.js";
|
|
8
|
+
/**
|
|
9
|
+
* Get the current version of a navigator
|
|
10
|
+
*/
|
|
11
|
+
export declare function getNavigatorVersion(navPath: string): string | null;
|
|
12
|
+
/**
|
|
13
|
+
* Check which migrations are needed for a navigator
|
|
14
|
+
*/
|
|
15
|
+
export declare function checkMigrations(navPath: string): Promise<Array<{
|
|
16
|
+
migration: Migration;
|
|
17
|
+
check: MigrationCheck;
|
|
18
|
+
}>>;
|
|
19
|
+
/**
|
|
20
|
+
* Apply a specific migration to a navigator
|
|
21
|
+
*/
|
|
22
|
+
export declare function applyMigration(navPath: string, migration: Migration, confirm: (action: string, details: string) => Promise<boolean>): Promise<MigrationResult>;
|
|
23
|
+
/**
|
|
24
|
+
* Apply all needed migrations to a navigator
|
|
25
|
+
*/
|
|
26
|
+
export declare function applyAllMigrations(navPath: string, confirm: (action: string, details: string) => Promise<boolean>): Promise<{
|
|
27
|
+
results: Array<{
|
|
28
|
+
migration: Migration;
|
|
29
|
+
result: MigrationResult;
|
|
30
|
+
}>;
|
|
31
|
+
success: boolean;
|
|
32
|
+
}>;
|
|
33
|
+
/**
|
|
34
|
+
* Get all available migrations
|
|
35
|
+
*/
|
|
36
|
+
export declare function getAllMigrations(): Migration[];
|
|
37
|
+
export type { Migration, MigrationCheck, MigrationResult, ConfirmFn } from "./types.js";
|
|
38
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,KAAK,EAAE,SAAS,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAU7E;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAalE;AAED;;GAEG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,KAAK,CAAC;IAAE,SAAS,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,cAAc,CAAA;CAAE,CAAC,CAAC,CAWtH;AAED;;GAEG;AACH,wBAAsB,cAAc,CAClC,OAAO,EAAE,MAAM,EACf,SAAS,EAAE,SAAS,EACpB,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,GAC7D,OAAO,CAAC,eAAe,CAAC,CAE1B;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CACtC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,GAC7D,OAAO,CAAC;IAAE,OAAO,EAAE,KAAK,CAAC;QAAE,SAAS,EAAE,SAAS,CAAC;QAAC,MAAM,EAAE,eAAe,CAAA;KAAE,CAAC,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,CAAC,CAiBlG;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,SAAS,EAAE,CAE9C;AAGD,YAAY,EAAE,SAAS,EAAE,cAAc,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration system
|
|
3
|
+
*
|
|
4
|
+
* Manages versioned migrations that bring navigators up to spec with
|
|
5
|
+
* latest best practices.
|
|
6
|
+
*/
|
|
7
|
+
import * as fs from "node:fs";
|
|
8
|
+
import * as path from "node:path";
|
|
9
|
+
import { migration as v1_3_1_submitAnswer } from "./versions/v1.3.1-submit-answer.js";
|
|
10
|
+
/**
|
|
11
|
+
* All available migrations in order
|
|
12
|
+
*/
|
|
13
|
+
const MIGRATIONS = [
|
|
14
|
+
v1_3_1_submitAnswer,
|
|
15
|
+
];
|
|
16
|
+
/**
|
|
17
|
+
* Get the current version of a navigator
|
|
18
|
+
*/
|
|
19
|
+
export function getNavigatorVersion(navPath) {
|
|
20
|
+
const configPath = path.join(navPath, "config.json");
|
|
21
|
+
if (!fs.existsSync(configPath)) {
|
|
22
|
+
return null;
|
|
23
|
+
}
|
|
24
|
+
try {
|
|
25
|
+
const config = JSON.parse(fs.readFileSync(configPath, "utf-8"));
|
|
26
|
+
return config.version || null;
|
|
27
|
+
}
|
|
28
|
+
catch {
|
|
29
|
+
return null;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Check which migrations are needed for a navigator
|
|
34
|
+
*/
|
|
35
|
+
export async function checkMigrations(navPath) {
|
|
36
|
+
const needed = [];
|
|
37
|
+
for (const migration of MIGRATIONS) {
|
|
38
|
+
const check = await migration.check(navPath);
|
|
39
|
+
if (check.needed) {
|
|
40
|
+
needed.push({ migration, check });
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
return needed;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Apply a specific migration to a navigator
|
|
47
|
+
*/
|
|
48
|
+
export async function applyMigration(navPath, migration, confirm) {
|
|
49
|
+
return migration.apply(navPath, confirm);
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Apply all needed migrations to a navigator
|
|
53
|
+
*/
|
|
54
|
+
export async function applyAllMigrations(navPath, confirm) {
|
|
55
|
+
const needed = await checkMigrations(navPath);
|
|
56
|
+
const results = [];
|
|
57
|
+
for (const { migration } of needed) {
|
|
58
|
+
const result = await applyMigration(navPath, migration, confirm);
|
|
59
|
+
results.push({ migration, result });
|
|
60
|
+
// Stop if a migration fails
|
|
61
|
+
if (!result.success) {
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
const success = results.every(({ result }) => result.success);
|
|
66
|
+
return { results, success };
|
|
67
|
+
}
|
|
68
|
+
/**
|
|
69
|
+
* Get all available migrations
|
|
70
|
+
*/
|
|
71
|
+
export function getAllMigrations() {
|
|
72
|
+
return [...MIGRATIONS];
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/migrations/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AA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C,KAAK,UAAU,kBAAkB,CACtC,OAAe,EACf,OAA8D;IAE9D,MAAM,MAAM,GAAG,MAAM,eAAe,CAAC,OAAO,CAAC,CAAC;IAC9C,MAAM,OAAO,GAA6D,EAAE,CAAC;IAE7E,KAAK,MAAM,EAAE,SAAS,EAAE,IAAI,MAAM,EAAE,CAAC;QACnC,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,OAAO,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC;QACjE,OAAO,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,CAAC,CAAC;QAEpC,4BAA4B;QAC5B,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;YACpB,MAAM;QACR,CAAC;IACH,CAAC;IAED,MAAM,OAAO,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;IAE9D,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;AAC9B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB;IAC9B,OAAO,CAAC,GAAG,UAAU,CAAC,CAAC;AACzB,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration system types
|
|
3
|
+
*
|
|
4
|
+
* Migrations bring existing navigators up to spec with latest best practices.
|
|
5
|
+
* Each migration is versioned, interactive, and safe.
|
|
6
|
+
*/
|
|
7
|
+
/**
|
|
8
|
+
* User confirmation function
|
|
9
|
+
* @param action - Brief description of the action
|
|
10
|
+
* @param details - Detailed explanation of what will change
|
|
11
|
+
* @returns Promise resolving to true if user confirms, false otherwise
|
|
12
|
+
*/
|
|
13
|
+
export type ConfirmFn = (action: string, details: string) => Promise<boolean>;
|
|
14
|
+
/**
|
|
15
|
+
* Result of checking if a migration is needed
|
|
16
|
+
*/
|
|
17
|
+
export interface MigrationCheck {
|
|
18
|
+
/** Whether this migration is needed */
|
|
19
|
+
needed: boolean;
|
|
20
|
+
/** Human-readable reason why it's needed (or why not) */
|
|
21
|
+
reason: string;
|
|
22
|
+
/** Current version detected (if applicable) */
|
|
23
|
+
currentVersion?: string;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Result of applying a migration
|
|
27
|
+
*/
|
|
28
|
+
export interface MigrationResult {
|
|
29
|
+
/** Whether the migration succeeded */
|
|
30
|
+
success: boolean;
|
|
31
|
+
/** Human-readable message about what happened */
|
|
32
|
+
message: string;
|
|
33
|
+
/** List of files that were modified */
|
|
34
|
+
filesModified: string[];
|
|
35
|
+
/** List of errors encountered (if any) */
|
|
36
|
+
errors?: string[];
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* A migration that can be applied to a navigator
|
|
40
|
+
*/
|
|
41
|
+
export interface Migration {
|
|
42
|
+
/** Semver version this migration brings the navigator to */
|
|
43
|
+
version: string;
|
|
44
|
+
/** Human-readable description of what this migration does */
|
|
45
|
+
description: string;
|
|
46
|
+
/**
|
|
47
|
+
* Check if this migration is needed for the given navigator
|
|
48
|
+
* @param navPath - Absolute path to navigator directory
|
|
49
|
+
* @returns Check result indicating if migration is needed
|
|
50
|
+
*/
|
|
51
|
+
check: (navPath: string) => Promise<MigrationCheck>;
|
|
52
|
+
/**
|
|
53
|
+
* Apply this migration to the given navigator
|
|
54
|
+
* @param navPath - Absolute path to navigator directory
|
|
55
|
+
* @param confirm - Function to ask user for confirmation before each change
|
|
56
|
+
* @returns Result of the migration
|
|
57
|
+
*/
|
|
58
|
+
apply: (navPath: string, confirm: ConfirmFn) => Promise<MigrationResult>;
|
|
59
|
+
}
|
|
60
|
+
//# sourceMappingURL=types.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/migrations/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;GAKG;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;AAE9E;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,uCAAuC;IACvC,MAAM,EAAE,OAAO,CAAC;IAChB,yDAAyD;IACzD,MAAM,EAAE,MAAM,CAAC;IACf,+CAA+C;IAC/C,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,sCAAsC;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,iDAAiD;IACjD,OAAO,EAAE,MAAM,CAAC;IAChB,uCAAuC;IACvC,aAAa,EAAE,MAAM,EAAE,CAAC;IACxB,0CAA0C;IAC1C,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,4DAA4D;IAC5D,OAAO,EAAE,MAAM,CAAC;IAEhB,6DAA6D;IAC7D,WAAW,EAAE,MAAM,CAAC;IAEpB;;;;OAIG;IACH,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAC,cAAc,CAAC,CAAC;IAEpD;;;;;OAKG;IACH,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,KAAK,OAAO,CAAC,eAAe,CAAC,CAAC;CAC1E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/migrations/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Migration v1.3.1: Add submit_answer Tool Instructions
|
|
3
|
+
*
|
|
4
|
+
* This migration updates CLAUDE.md to use the submit_answer tool instead of
|
|
5
|
+
* raw JSON output. The query command expects navigators to call submit_answer
|
|
6
|
+
* to terminate the agent loop, but older templates instructed raw JSON output.
|
|
7
|
+
*
|
|
8
|
+
* Changes:
|
|
9
|
+
* - Replaces "Response Format" section with submit_answer tool instructions
|
|
10
|
+
* - Updates examples to show tool calls instead of JSON blocks
|
|
11
|
+
*/
|
|
12
|
+
import type { Migration } from "../types.js";
|
|
13
|
+
export declare const migration: Migration;
|
|
14
|
+
//# sourceMappingURL=v1.3.1-submit-answer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"v1.3.1-submit-answer.d.ts","sourceRoot":"","sources":["../../../src/migrations/versions/v1.3.1-submit-answer.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAIH,OAAO,KAAK,EAAE,SAAS,EAA8C,MAAM,aAAa,CAAC;AA+OzF,eAAO,MAAM,SAAS,EAAE,SAKvB,CAAC"}
|