repowise 0.1.4 → 0.1.6

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.
Files changed (66) hide show
  1. package/dist/bin/repowise.js +116 -14
  2. package/dist/src/commands/create.d.ts +1 -1
  3. package/dist/src/commands/create.d.ts.map +1 -1
  4. package/dist/src/commands/create.js +237 -2
  5. package/dist/src/commands/create.js.map +1 -1
  6. package/dist/src/commands/listen.d.ts +3 -2
  7. package/dist/src/commands/listen.d.ts.map +1 -1
  8. package/dist/src/commands/listen.js +45 -3
  9. package/dist/src/commands/listen.js.map +1 -1
  10. package/dist/src/commands/login.d.ts +4 -1
  11. package/dist/src/commands/login.d.ts.map +1 -1
  12. package/dist/src/commands/login.js +56 -2
  13. package/dist/src/commands/login.js.map +1 -1
  14. package/dist/src/commands/logout.d.ts +1 -1
  15. package/dist/src/commands/logout.d.ts.map +1 -1
  16. package/dist/src/commands/logout.js +10 -2
  17. package/dist/src/commands/logout.js.map +1 -1
  18. package/dist/src/commands/start.d.ts +2 -0
  19. package/dist/src/commands/start.d.ts.map +1 -0
  20. package/dist/src/commands/start.js +17 -0
  21. package/dist/src/commands/start.js.map +1 -0
  22. package/dist/src/commands/status.d.ts +1 -1
  23. package/dist/src/commands/status.d.ts.map +1 -1
  24. package/dist/src/commands/status.js +61 -2
  25. package/dist/src/commands/status.js.map +1 -1
  26. package/dist/src/commands/stop.d.ts +2 -0
  27. package/dist/src/commands/stop.d.ts.map +1 -0
  28. package/dist/src/commands/stop.js +17 -0
  29. package/dist/src/commands/stop.js.map +1 -0
  30. package/dist/src/lib/ai-tools.d.ts +23 -0
  31. package/dist/src/lib/ai-tools.d.ts.map +1 -0
  32. package/dist/src/lib/ai-tools.js +193 -0
  33. package/dist/src/lib/ai-tools.js.map +1 -0
  34. package/dist/src/lib/api.d.ts.map +1 -1
  35. package/dist/src/lib/api.js +25 -4
  36. package/dist/src/lib/api.js.map +1 -1
  37. package/dist/src/lib/auth.d.ts +18 -0
  38. package/dist/src/lib/auth.d.ts.map +1 -1
  39. package/dist/src/lib/auth.js +251 -7
  40. package/dist/src/lib/auth.js.map +1 -1
  41. package/dist/src/lib/config.d.ts +2 -0
  42. package/dist/src/lib/config.d.ts.map +1 -1
  43. package/dist/src/lib/config.js.map +1 -1
  44. package/dist/src/lib/env.d.ts +10 -0
  45. package/dist/src/lib/env.d.ts.map +1 -0
  46. package/dist/src/lib/env.js +26 -0
  47. package/dist/src/lib/env.js.map +1 -0
  48. package/dist/src/lib/interview-handler.d.ts +2 -0
  49. package/dist/src/lib/interview-handler.d.ts.map +1 -0
  50. package/dist/src/lib/interview-handler.js +96 -0
  51. package/dist/src/lib/interview-handler.js.map +1 -0
  52. package/dist/src/lib/progress-renderer.d.ts +69 -0
  53. package/dist/src/lib/progress-renderer.d.ts.map +1 -0
  54. package/dist/src/lib/progress-renderer.js +186 -0
  55. package/dist/src/lib/progress-renderer.js.map +1 -0
  56. package/dist/src/lib/prompts.d.ts +6 -1
  57. package/dist/src/lib/prompts.d.ts.map +1 -1
  58. package/dist/src/lib/prompts.js +21 -3
  59. package/dist/src/lib/prompts.js.map +1 -1
  60. package/dist/src/types/index.d.ts +1 -0
  61. package/dist/src/types/index.d.ts.map +1 -1
  62. package/dist/tsup.config.d.ts +3 -0
  63. package/dist/tsup.config.d.ts.map +1 -0
  64. package/dist/tsup.config.js +18 -0
  65. package/dist/tsup.config.js.map +1 -0
  66. package/package.json +1 -1
@@ -0,0 +1,186 @@
1
+ import chalk from 'chalk';
2
+ export class ProgressRenderer {
3
+ privacyShieldShown = false;
4
+ discoveryShown = false;
5
+ scanSummaryShown = false;
6
+ validationShown = false;
7
+ lastValidationRound = 0;
8
+ shownPersonas = new Set();
9
+ renderPrivacyShield(enabled, spinner) {
10
+ if (this.privacyShieldShown)
11
+ return;
12
+ this.privacyShieldShown = true;
13
+ spinner.stop();
14
+ console.log('');
15
+ console.log(chalk.cyan.bold(' ── Privacy Shield ──'));
16
+ if (enabled) {
17
+ console.log(` ${chalk.green('✓')} Privacy Shield active`);
18
+ console.log(` ${chalk.green('✓')} Private connection established`);
19
+ }
20
+ else {
21
+ console.log(` ${chalk.yellow('ℹ')} Privacy Shield not in current plan`);
22
+ console.log(chalk.dim(' Shield your data from the open internet.'));
23
+ }
24
+ console.log('');
25
+ spinner.start();
26
+ }
27
+ renderDiscovery(result, spinner) {
28
+ if (this.discoveryShown)
29
+ return;
30
+ this.discoveryShown = true;
31
+ spinner.stop();
32
+ console.log('');
33
+ console.log(chalk.cyan.bold(' ── Repository Discovery ──'));
34
+ if (result.languages.length > 0) {
35
+ const langs = result.languages
36
+ .slice(0, 5)
37
+ .map((l) => `${l.name} (${Math.round(l.percentage)}%)`)
38
+ .join(', ');
39
+ console.log(` ${chalk.dim('Languages:')} ${langs}`);
40
+ }
41
+ if (result.frameworks.length > 0) {
42
+ console.log(` ${chalk.dim('Frameworks:')} ${result.frameworks.map((f) => f.name).join(', ')}`);
43
+ }
44
+ console.log(` ${chalk.dim('Structure:')} ${result.structureType} ${chalk.dim(`(${result.fileCount} files)`)}`);
45
+ if (result.existingDocs.length > 0) {
46
+ console.log(` ${chalk.dim('Existing docs:')} ${result.existingDocs.join(', ')}`);
47
+ }
48
+ if (result.fileTree && result.fileTree.length > 0) {
49
+ this.renderTree(result.fileTree);
50
+ }
51
+ console.log('');
52
+ spinner.start();
53
+ }
54
+ renderTree(entries) {
55
+ console.log('');
56
+ console.log(chalk.cyan.bold(' ── Project Structure ──'));
57
+ const root = { name: '', type: 'tree', children: new Map() };
58
+ for (const entry of entries) {
59
+ const parts = entry.path.split('/');
60
+ let current = root;
61
+ for (let i = 0; i < parts.length; i++) {
62
+ const part = parts[i];
63
+ if (!current.children.has(part)) {
64
+ const isLast = i === parts.length - 1;
65
+ current.children.set(part, {
66
+ name: part,
67
+ type: isLast ? entry.type : 'tree',
68
+ children: new Map(),
69
+ });
70
+ }
71
+ current = current.children.get(part);
72
+ }
73
+ }
74
+ const printNode = (node, prefix, isLast) => {
75
+ const connector = isLast ? '└── ' : '├── ';
76
+ const display = node.type === 'tree' ? chalk.bold.dim(`${node.name}/`) : node.name;
77
+ console.log(` ${prefix}${connector}${display}`);
78
+ const sorted = [...node.children.values()].sort((a, b) => {
79
+ if (a.type === 'tree' && b.type !== 'tree')
80
+ return -1;
81
+ if (a.type !== 'tree' && b.type === 'tree')
82
+ return 1;
83
+ return a.name.localeCompare(b.name);
84
+ });
85
+ const childPrefix = prefix + (isLast ? ' ' : '│ ');
86
+ sorted.forEach((child, idx) => {
87
+ printNode(child, childPrefix, idx === sorted.length - 1);
88
+ });
89
+ };
90
+ const topLevel = [...root.children.values()].sort((a, b) => {
91
+ if (a.type === 'tree' && b.type !== 'tree')
92
+ return -1;
93
+ if (a.type !== 'tree' && b.type === 'tree')
94
+ return 1;
95
+ return a.name.localeCompare(b.name);
96
+ });
97
+ topLevel.forEach((child, idx) => {
98
+ printNode(child, '', idx === topLevel.length - 1);
99
+ });
100
+ }
101
+ renderScanSummary(summary, spinner) {
102
+ if (this.scanSummaryShown)
103
+ return;
104
+ this.scanSummaryShown = true;
105
+ spinner.stop();
106
+ console.log(chalk.dim(` Scan complete: ${summary.totalFiles} files, ${summary.totalFunctions} functions, ${summary.totalClasses} classes, ${summary.totalEndpoints} endpoints`));
107
+ console.log('');
108
+ spinner.start();
109
+ }
110
+ renderValidation(progress, spinner) {
111
+ if (progress.status === 'complete' && !this.validationShown) {
112
+ this.validationShown = true;
113
+ spinner.stop();
114
+ console.log(chalk.cyan.bold(' ── Validation Results ──'));
115
+ for (const result of progress.personaResults) {
116
+ const scoreColor = result.score === 'PASS'
117
+ ? chalk.green
118
+ : result.score === 'PARTIAL'
119
+ ? chalk.yellow
120
+ : chalk.red;
121
+ console.log(` ${result.persona}: ${scoreColor(result.score)}`);
122
+ }
123
+ const passCount = progress.personaResults.filter((r) => r.score === 'PASS').length;
124
+ const total = progress.personaResults.length;
125
+ const roundInfo = progress.round > 1 ? ` (${progress.round} rounds)` : '';
126
+ console.log(chalk.dim(` ${passCount}/${total} PASS${roundInfo}`));
127
+ console.log('');
128
+ spinner.start();
129
+ return;
130
+ }
131
+ // Show individual persona results as they come in
132
+ if (progress.round > this.lastValidationRound) {
133
+ this.lastValidationRound = progress.round;
134
+ }
135
+ for (const result of progress.personaResults) {
136
+ const key = `${progress.round}:${result.persona}`;
137
+ if (!this.shownPersonas.has(key)) {
138
+ this.shownPersonas.add(key);
139
+ }
140
+ }
141
+ }
142
+ getSpinnerText(syncResult) {
143
+ const stepLabel = syncResult.stepLabel ?? syncResult.currentStep ?? 'Processing';
144
+ const pct = syncResult.progressPercentage ?? 0;
145
+ let progressText = stepLabel;
146
+ if (syncResult.scanProgress && !syncResult.scanProgress.summary) {
147
+ progressText = `Scanning batch ${syncResult.scanProgress.currentBatch}/${syncResult.scanProgress.totalBatches}`;
148
+ }
149
+ else if (syncResult.generationProgress) {
150
+ const gp = syncResult.generationProgress;
151
+ progressText = `Generating ${gp.currentFileName} (${gp.currentFile}/${gp.totalFiles})`;
152
+ }
153
+ else if (syncResult.validationProgress &&
154
+ syncResult.validationProgress.status !== 'complete') {
155
+ const vp = syncResult.validationProgress;
156
+ if (vp.status === 'regenerating') {
157
+ progressText = `Regenerating files (round ${vp.round})`;
158
+ }
159
+ else {
160
+ progressText = `Validation round ${vp.round}/${vp.maxRounds}`;
161
+ }
162
+ }
163
+ return `${progressText}... ${chalk.dim(`(${pct}%)`)}`;
164
+ }
165
+ update(syncResult, spinner) {
166
+ // Show Privacy Shield status once (before first pipeline step)
167
+ if (syncResult.privacyShieldEnabled !== undefined) {
168
+ this.renderPrivacyShield(syncResult.privacyShieldEnabled, spinner);
169
+ }
170
+ // Show discovery results once
171
+ if (syncResult.discoveryResult) {
172
+ this.renderDiscovery(syncResult.discoveryResult, spinner);
173
+ }
174
+ // Show scan summary once
175
+ if (syncResult.scanProgress?.summary) {
176
+ this.renderScanSummary(syncResult.scanProgress.summary, spinner);
177
+ }
178
+ // Show validation progress
179
+ if (syncResult.validationProgress) {
180
+ this.renderValidation(syncResult.validationProgress, spinner);
181
+ }
182
+ // Update spinner text
183
+ spinner.text = this.getSpinnerText(syncResult);
184
+ }
185
+ }
186
+ //# sourceMappingURL=progress-renderer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"progress-renderer.js","sourceRoot":"","sources":["../../../src/lib/progress-renderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAgD1B,MAAM,OAAO,gBAAgB;IACnB,kBAAkB,GAAG,KAAK,CAAC;IAC3B,cAAc,GAAG,KAAK,CAAC;IACvB,gBAAgB,GAAG,KAAK,CAAC;IACzB,eAAe,GAAG,KAAK,CAAC;IACxB,mBAAmB,GAAG,CAAC,CAAC;IACxB,aAAa,GAAG,IAAI,GAAG,EAAU,CAAC;IAE1C,mBAAmB,CAAC,OAAgB,EAAE,OAAY;QAChD,IAAI,IAAI,CAAC,kBAAkB;YAAE,OAAO;QACpC,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC;QAE/B,OAAO,CAAC,IAAI,EAAE,CAAC;QACf,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAChB,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,wBAAwB,CAAC,CAAC,CAAC;QACvD,IAAI,OAAO,EAAE,CAAC;YACZ,OAAO,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,wBAAwB,CAAC,CAAC;YAC3D,OAAO,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,iCAAiC,CAAC,CAAC;QACtE,CAAC;aAAM,CAAC;YACN,OAAO,CAAC,GAAG,CAAC,KAAK,KAAK,CAAC,MAAM,CAAC,GAAG,CAAC,qCAAqC,CAAC,CAAC;YACzE,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,8CAA8C,CAAC,CAAC,CAAC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gBAAgB,CAAC,UAAU,CAAC,kBAAkB,EAAE,OAAO,CAAC,CAAC;QAChE,CAAC;QAED,sBAAsB;QACtB,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;IACjD,CAAC;CACF"}
@@ -1,2 +1,7 @@
1
- export declare const PLACEHOLDER = true;
1
+ import type { AiTool } from './ai-tools.js';
2
+ export interface AiToolSelection {
3
+ tools: AiTool[];
4
+ hasOther: boolean;
5
+ }
6
+ export declare function selectAiTools(): Promise<AiToolSelection>;
2
7
  //# sourceMappingURL=prompts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../src/lib/prompts.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,WAAW,OAAO,CAAC"}
1
+ {"version":3,"file":"prompts.d.ts","sourceRoot":"","sources":["../../../src/lib/prompts.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE5C,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,wBAAsB,aAAa,IAAI,OAAO,CAAC,eAAe,CAAC,CAqB9D"}
@@ -1,4 +1,22 @@
1
- // Interactive prompt helpers using inquirer
2
- // Will be implemented in Story 3.4 (Interactive Onboarding Interview)
3
- export const PLACEHOLDER = true;
1
+ import { checkbox } from '@inquirer/prompts';
2
+ import chalk from 'chalk';
3
+ export async function selectAiTools() {
4
+ const choices = [
5
+ { name: 'Cursor', value: 'cursor' },
6
+ { name: 'Claude Code', value: 'claude-code' },
7
+ { name: 'GitHub Copilot', value: 'copilot' },
8
+ { name: 'Windsurf', value: 'windsurf' },
9
+ { name: 'Cline', value: 'cline' },
10
+ { name: 'Codex', value: 'codex' },
11
+ { name: 'Roo Code', value: 'roo-code' },
12
+ { name: 'Other (manual setup)', value: 'other' },
13
+ ];
14
+ const selected = await checkbox({
15
+ message: chalk.bold('Which AI tools do you use?'),
16
+ choices,
17
+ });
18
+ const hasOther = selected.includes('other');
19
+ const tools = selected.filter((s) => s !== 'other');
20
+ return { tools, hasOther };
21
+ }
4
22
  //# sourceMappingURL=prompts.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../../src/lib/prompts.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,sEAAsE;AACtE,MAAM,CAAC,MAAM,WAAW,GAAG,IAAI,CAAC"}
1
+ {"version":3,"file":"prompts.js","sourceRoot":"","sources":["../../../src/lib/prompts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAC7C,OAAO,KAAK,MAAM,OAAO,CAAC;AAQ1B,MAAM,CAAC,KAAK,UAAU,aAAa;IACjC,MAAM,OAAO,GAAG;QACd,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAiB,EAAE;QAC5C,EAAE,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,aAAsB,EAAE;QACtD,EAAE,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,SAAkB,EAAE;QACrD,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAmB,EAAE;QAChD,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAgB,EAAE;QAC1C,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,OAAgB,EAAE;QAC1C,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,UAAmB,EAAE;QAChD,EAAE,IAAI,EAAE,sBAAsB,EAAE,KAAK,EAAE,OAAgB,EAAE;KAC1D,CAAC;IAEF,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC;QAC9B,OAAO,EAAE,KAAK,CAAC,IAAI,CAAC,4BAA4B,CAAC;QACjD,OAAO;KACR,CAAC,CAAC;IAEH,MAAM,QAAQ,GAAG,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IAC5C,MAAM,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAe,EAAE,CAAC,CAAC,KAAK,OAAO,CAAC,CAAC;IAEjE,OAAO,EAAE,KAAK,EAAE,QAAQ,EAAE,CAAC;AAC7B,CAAC"}
@@ -1,3 +1,4 @@
1
1
  export type { StoredCredentials } from '../lib/auth.js';
2
2
  export type { CliConfig } from '../lib/config.js';
3
+ export type { AiTool, ContextFileInfo } from '../lib/ai-tools.js';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/types/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACxD,YAAY,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAClD,YAAY,EAAE,MAAM,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,3 @@
1
+ declare const _default: import("tsup").Options | import("tsup").Options[] | ((overrideOptions: import("tsup").Options) => import("tsup").Options | import("tsup").Options[] | Promise<import("tsup").Options | import("tsup").Options[]>);
2
+ export default _default;
3
+ //# sourceMappingURL=tsup.config.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsup.config.d.ts","sourceRoot":"","sources":["../tsup.config.ts"],"names":[],"mappings":";AAEA,wBAeG"}
@@ -0,0 +1,18 @@
1
+ import { defineConfig } from 'tsup';
2
+ export default defineConfig({
3
+ entry: ['bin/repowise.ts'],
4
+ outDir: 'dist/bin',
5
+ format: 'esm',
6
+ target: 'node20',
7
+ platform: 'node',
8
+ splitting: false,
9
+ clean: true,
10
+ banner: {
11
+ js: '#!/usr/bin/env node',
12
+ },
13
+ // Only bundle @repowise/* workspace packages — everything else stays external
14
+ noExternal: [/@repowise\/.*/],
15
+ // Externalize all non-workspace dependencies (npm will install them)
16
+ external: [/^[^.@/]|^@(?!repowise\/)/],
17
+ });
18
+ //# sourceMappingURL=tsup.config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tsup.config.js","sourceRoot":"","sources":["../tsup.config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,MAAM,CAAC;AAEpC,eAAe,YAAY,CAAC;IAC1B,KAAK,EAAE,CAAC,iBAAiB,CAAC;IAC1B,MAAM,EAAE,UAAU;IAClB,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,MAAM;IAChB,SAAS,EAAE,KAAK;IAChB,KAAK,EAAE,IAAI;IACX,MAAM,EAAE;QACN,EAAE,EAAE,qBAAqB;KAC1B;IACD,8EAA8E;IAC9E,UAAU,EAAE,CAAC,eAAe,CAAC;IAC7B,qEAAqE;IACrE,QAAQ,EAAE,CAAC,0BAA0B,CAAC;CACvC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repowise",
3
- "version": "0.1.4",
3
+ "version": "0.1.6",
4
4
  "type": "module",
5
5
  "description": "AI-optimized codebase context generator",
6
6
  "bin": {