ucode-agent 1.0.0 → 1.2.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/README.md +44 -21
- package/package.json +3 -4
- package/skills/ai-features/SKILL.md +140 -0
- package/skills/build-app/SKILL.md +137 -57
- package/skills/code-review/SKILL.md +69 -24
- package/skills/debug/SKILL.md +73 -31
- package/skills/performance/SKILL.md +84 -0
- package/skills/refactor/SKILL.md +72 -0
- package/skills/security/SKILL.md +110 -0
- package/skills/ui-ux/SKILL.md +256 -193
- package/skills/write-tests/SKILL.md +72 -34
- package/src/core/loop.js +3 -2
- package/src/core/provider.js +21 -19
- package/src/core/version.js +16 -0
- package/src/ui/screen.js +1187 -1067
- package/ucode.js +3 -4
package/ucode.js
CHANGED
|
@@ -14,6 +14,7 @@ import { pathToFileURL, fileURLToPath } from 'node:url';
|
|
|
14
14
|
|
|
15
15
|
import { Agent } from './src/core/loop.js';
|
|
16
16
|
import { setModel, modelName, MODELS, DEFAULT_MODEL, ENV_FILE } from './src/core/provider.js';
|
|
17
|
+
import { VERSION } from './src/core/version.js';
|
|
17
18
|
import { Plain } from './src/ui/plain.js';
|
|
18
19
|
import { blue, dim, sky } from './src/ui/theme.js';
|
|
19
20
|
|
|
@@ -50,7 +51,7 @@ function usage() {
|
|
|
50
51
|
' -v, --version print the version\n' +
|
|
51
52
|
' -h, --help this message\n\n' +
|
|
52
53
|
` ${sky('Models')}\n${models}\n\n` +
|
|
53
|
-
` Needs
|
|
54
|
+
` Needs UCODE_API_KEY in the environment or in ${ENV_FILE}\n` +
|
|
54
55
|
' Free keys: https://openrouter.ai/keys\n\n'
|
|
55
56
|
);
|
|
56
57
|
}
|
|
@@ -61,9 +62,7 @@ async function main() {
|
|
|
61
62
|
if (args.help) return usage();
|
|
62
63
|
|
|
63
64
|
if (args.version) {
|
|
64
|
-
|
|
65
|
-
const pkg = JSON.parse(await readFile(path.join(here, 'package.json'), 'utf8'));
|
|
66
|
-
process.stdout.write(`${pkg.version}\n`);
|
|
65
|
+
process.stdout.write(`${VERSION}\n`);
|
|
67
66
|
return;
|
|
68
67
|
}
|
|
69
68
|
|