javi-forge 1.3.0 → 1.5.0
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/ci-local/ci-local.sh +9 -1
- package/ci-local/hooks/commit-msg +0 -0
- package/ci-local/hooks/pre-commit +1 -1
- package/ci-local/hooks/pre-push +0 -0
- package/ci-local/install.sh +0 -0
- package/ci-local/lib/common.sh +183 -0
- package/dist/__integration__/helpers.d.ts +20 -0
- package/dist/__integration__/helpers.d.ts.map +1 -0
- package/dist/__integration__/helpers.js +31 -0
- package/dist/__integration__/helpers.js.map +1 -0
- package/dist/commands/analyze.d.ts.map +1 -0
- package/dist/commands/analyze.js.map +1 -0
- package/dist/commands/ci.d.ts +4 -0
- package/dist/commands/ci.d.ts.map +1 -0
- package/dist/commands/ci.js +110 -8
- package/dist/commands/ci.js.map +1 -0
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/commands/doctor.js +1 -3
- package/dist/commands/doctor.js.map +1 -0
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/commands/init.js +14 -6
- package/dist/commands/init.js.map +1 -0
- package/dist/commands/llmstxt.d.ts.map +1 -0
- package/dist/commands/llmstxt.js.map +1 -0
- package/dist/commands/plugin.d.ts.map +1 -0
- package/dist/commands/plugin.js.map +1 -0
- package/dist/constants.d.ts +0 -4
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js +0 -4
- package/dist/constants.js.map +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +37 -11
- package/dist/index.js.map +1 -0
- package/dist/lib/common.d.ts.map +1 -0
- package/dist/lib/common.js.map +1 -0
- package/dist/lib/docker.d.ts +2 -0
- package/dist/lib/docker.d.ts.map +1 -0
- package/dist/lib/docker.js +2 -1
- package/dist/lib/docker.js.map +1 -0
- package/dist/lib/frontmatter.d.ts.map +1 -0
- package/dist/lib/frontmatter.js.map +1 -0
- package/dist/lib/plugin.d.ts.map +1 -0
- package/dist/lib/plugin.js.map +1 -0
- package/dist/lib/template.d.ts.map +1 -0
- package/dist/lib/template.js.map +1 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js.map +1 -0
- package/dist/ui/AnalyzeUI.d.ts.map +1 -0
- package/dist/ui/AnalyzeUI.js.map +1 -0
- package/dist/ui/App.d.ts.map +1 -0
- package/dist/ui/App.js.map +1 -0
- package/dist/ui/CI.d.ts.map +1 -0
- package/dist/ui/CI.js.map +1 -0
- package/dist/ui/CIContext.d.ts.map +1 -0
- package/dist/ui/CIContext.js.map +1 -0
- package/dist/ui/CISelector.d.ts.map +1 -0
- package/dist/ui/CISelector.js.map +1 -0
- package/dist/ui/Doctor.d.ts.map +1 -0
- package/dist/ui/Doctor.js +1 -1
- package/dist/ui/Doctor.js.map +1 -0
- package/dist/ui/Header.d.ts.map +1 -0
- package/dist/ui/Header.js.map +1 -0
- package/dist/ui/LlmsTxt.d.ts.map +1 -0
- package/dist/ui/LlmsTxt.js.map +1 -0
- package/dist/ui/MemorySelector.d.ts.map +1 -0
- package/dist/ui/MemorySelector.js.map +1 -0
- package/dist/ui/NameInput.d.ts.map +1 -0
- package/dist/ui/NameInput.js.map +1 -0
- package/dist/ui/OptionSelector.d.ts.map +1 -0
- package/dist/ui/OptionSelector.js +1 -1
- package/dist/ui/OptionSelector.js.map +1 -0
- package/dist/ui/Plugin.d.ts.map +1 -0
- package/dist/ui/Plugin.js.map +1 -0
- package/dist/ui/Progress.d.ts.map +1 -0
- package/dist/ui/Progress.js.map +1 -0
- package/dist/ui/StackSelector.d.ts.map +1 -0
- package/dist/ui/StackSelector.js.map +1 -0
- package/dist/ui/Summary.d.ts.map +1 -0
- package/dist/ui/Summary.js.map +1 -0
- package/dist/ui/Welcome.d.ts.map +1 -0
- package/dist/ui/Welcome.js.map +1 -0
- package/dist/ui/theme.d.ts.map +1 -0
- package/dist/ui/theme.js.map +1 -0
- package/lib/common.sh +2 -2
- package/modules/ghagga/README.md +2 -2
- package/modules/ghagga/setup-ghagga.sh +1 -1
- package/package.json +25 -12
- package/templates/github/ci-go.yml +1 -1
- package/templates/github/ci-java.yml +2 -2
- package/templates/github/ci-node.yml +1 -1
- package/templates/github/ci-python.yml +1 -1
- package/templates/github/ci-rust.yml +1 -1
- package/templates/github/ghagga-review.yml +28 -0
- package/workflows/reusable-build-go.yml +1 -1
- package/workflows/reusable-build-java.yml +1 -1
- package/workflows/reusable-build-node.yml +1 -1
- package/workflows/reusable-build-python.yml +1 -1
- package/workflows/reusable-build-rust.yml +1 -1
- package/workflows/reusable-docker.yml +1 -1
- package/workflows/reusable-ghagga-review.yml +1 -1
- package/workflows/reusable-release.yml +1 -1
- package/.releaserc +0 -45
- package/dist/commands/analyze.test.d.ts +0 -2
- package/dist/commands/doctor.test.d.ts +0 -2
- package/dist/commands/init.test.d.ts +0 -2
- package/dist/commands/llmstxt.test.d.ts +0 -2
- package/dist/commands/plugin.test.d.ts +0 -2
- package/dist/commands/sync.d.ts +0 -8
- package/dist/commands/sync.js +0 -201
- package/dist/e2e/aggressive.e2e.test.d.ts +0 -2
- package/dist/e2e/commands.e2e.test.d.ts +0 -2
- package/dist/lib/common.test.d.ts +0 -2
- package/dist/lib/frontmatter.test.d.ts +0 -2
- package/dist/lib/plugin.test.d.ts +0 -2
- package/dist/lib/template.test.d.ts +0 -2
- package/dist/ui/SyncUI.d.ts +0 -10
- package/dist/ui/SyncUI.js +0 -64
- package/tasks/_TEMPLATE/files-edited.md +0 -3
- package/tasks/_TEMPLATE/plan.md +0 -3
- package/tasks/_TEMPLATE/research.md +0 -3
- package/tasks/_TEMPLATE/verification.md +0 -5
package/dist/ui/SyncUI.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import { Box, Text, useApp, useInput } from 'ink';
|
|
3
|
-
import Spinner from 'ink-spinner';
|
|
4
|
-
import { syncAIConfig } from '../commands/sync.js';
|
|
5
|
-
import Header from './Header.js';
|
|
6
|
-
import { theme } from './theme.js';
|
|
7
|
-
export default function SyncUI({ target, mode, dryRun }) {
|
|
8
|
-
const { exit } = useApp();
|
|
9
|
-
const [steps, setSteps] = useState([]);
|
|
10
|
-
const [finished, setFinished] = useState(false);
|
|
11
|
-
useEffect(() => {
|
|
12
|
-
syncAIConfig({ target, mode, projectDir: process.cwd(), dryRun }, (step) => setSteps(prev => {
|
|
13
|
-
const idx = prev.findIndex(s => s.id === step.id);
|
|
14
|
-
if (idx >= 0) {
|
|
15
|
-
const next = [...prev];
|
|
16
|
-
next[idx] = step;
|
|
17
|
-
return next;
|
|
18
|
-
}
|
|
19
|
-
return [...prev, step];
|
|
20
|
-
})).then(() => setFinished(true));
|
|
21
|
-
}, [target, mode, dryRun]);
|
|
22
|
-
useInput((_, key) => {
|
|
23
|
-
if (finished && (key.return || key.escape))
|
|
24
|
-
exit();
|
|
25
|
-
});
|
|
26
|
-
const done = steps.filter(s => s.status === 'done').length;
|
|
27
|
-
const errors = steps.filter(s => s.status === 'error').length;
|
|
28
|
-
return (React.createElement(Box, { flexDirection: "column", padding: 1 },
|
|
29
|
-
React.createElement(Header, { subtitle: "sync", dryRun: dryRun }),
|
|
30
|
-
React.createElement(Box, { flexDirection: "column" }, steps.map(step => (React.createElement(Box, { key: step.id, marginLeft: 2 }, step.status === 'running' ? (React.createElement(Text, { color: theme.warning },
|
|
31
|
-
React.createElement(Spinner, { type: "dots" }),
|
|
32
|
-
' ',
|
|
33
|
-
step.label)) : step.status === 'done' ? (React.createElement(Text, { color: theme.success },
|
|
34
|
-
'\u2713',
|
|
35
|
-
" ",
|
|
36
|
-
step.label,
|
|
37
|
-
step.detail && React.createElement(Text, { color: theme.muted, dimColor: true },
|
|
38
|
-
" ",
|
|
39
|
-
step.detail))) : step.status === 'error' ? (React.createElement(Text, { color: theme.error },
|
|
40
|
-
'\u2717',
|
|
41
|
-
" ",
|
|
42
|
-
step.label,
|
|
43
|
-
step.detail && React.createElement(Text, { color: theme.muted, dimColor: true },
|
|
44
|
-
" ",
|
|
45
|
-
step.detail))) : (React.createElement(Text, { color: theme.muted },
|
|
46
|
-
'\u2013',
|
|
47
|
-
" ",
|
|
48
|
-
step.label,
|
|
49
|
-
step.detail && React.createElement(Text, { dimColor: true },
|
|
50
|
-
" ",
|
|
51
|
-
step.detail))))))),
|
|
52
|
-
finished && (React.createElement(Box, { marginTop: 1, flexDirection: "column" },
|
|
53
|
-
React.createElement(Text, { bold: true, color: errors > 0 ? theme.warning : theme.success },
|
|
54
|
-
dryRun ? '\u25cb Dry run complete' : '\u2713 Sync complete',
|
|
55
|
-
' ',
|
|
56
|
-
"(",
|
|
57
|
-
done,
|
|
58
|
-
" done",
|
|
59
|
-
errors > 0 ? `, ${errors} errors` : '',
|
|
60
|
-
")"),
|
|
61
|
-
React.createElement(Box, { marginTop: 1 },
|
|
62
|
-
React.createElement(Text, { color: theme.muted, dimColor: true }, "Press Enter to exit"))))));
|
|
63
|
-
}
|
|
64
|
-
//# sourceMappingURL=SyncUI.js.map
|
package/tasks/_TEMPLATE/plan.md
DELETED