@askrjs/cli 0.0.10 → 0.0.12
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 +50 -0
- package/dist/add.d.ts +1 -10
- package/dist/add.js +1 -63
- package/dist/analyze.d.ts +88 -0
- package/dist/analyze.js +97 -0
- package/dist/cli.js +16 -0
- package/dist/create.js +1 -1
- package/dist/{discovery-BX-lnFRK.js → discovery-DUDrZCIC.js} +11 -2
- package/dist/file-changes-BAFLhEHZ.js +66 -0
- package/dist/file-changes-cmFN-rF8.d.ts +11 -0
- package/dist/guardrails-GPM9PJqO.js +121 -0
- package/dist/{planner-BDfYDKnI.js → planner-BEfWRd0x.js} +3 -3
- package/dist/runner-BRjjPhZY.js +1495 -0
- package/dist/runner-Ca43qqzG.js +289 -0
- package/dist/skills/askr-ssr-ssg/SKILL.md +2 -0
- package/dist/{skills-C2KzfTl9.js → skills-CSGdAZHN.js} +50 -1
- package/dist/skills.d.ts +12 -1
- package/dist/skills.js +2 -2
- package/dist/ssg.d.ts +1 -0
- package/dist/ssg.js +5 -4
- package/dist/templates/full-stack/AGENTS.md +6 -0
- package/dist/templates/full-stack/package.json +2 -1
- package/dist/templates/spa/AGENTS.md +7 -1
- package/dist/templates/spa/README.md +1 -1
- package/dist/templates/spa/package.json +2 -1
- package/dist/templates/spa/src/main.tsx +1 -1
- package/dist/templates/spa/src/pages/app/_layout.tsx +11 -8
- package/dist/templates/spa/src/pages/app/admin-home.tsx +97 -90
- package/dist/templates/spa/src/pages/app/agent-runs.tsx +33 -26
- package/dist/templates/spa/src/pages/public/home.tsx +12 -9
- package/dist/templates/ssg/AGENTS.md +6 -0
- package/dist/templates/ssg/package.json +2 -1
- package/dist/templates/ssg/src/components/site-shell.tsx +4 -3
- package/dist/templates/ssg/src/pages/about.tsx +14 -11
- package/dist/templates/ssg/src/pages/content.tsx +10 -7
- package/dist/templates/ssg/src/pages/example.tsx +0 -2
- package/dist/templates/ssg/src/pages/home.tsx +6 -3
- package/dist/templates/ssr/AGENTS.md +6 -0
- package/dist/templates/ssr/package.json +2 -1
- package/dist/templates/startkit/AGENTS.md +3 -0
- package/dist/templates/startkit/package.json +2 -1
- package/dist/templates/startkit/src/components/app-sidebar.tsx +23 -18
- package/dist/templates/startkit/src/components/data-table.tsx +8 -6
- package/dist/templates/startkit/src/pages/workspace/dashboard.tsx +16 -13
- package/dist/templates/startkit/src/routes/auth.ts +1 -2
- package/dist/templates/startkit/src/routes/public.ts +1 -2
- package/dist/templates/startkit/src/routes/workspace/accounts.ts +1 -2
- package/dist/templates/startkit/src/routes/workspace/index.ts +2 -3
- package/dist/update.js +1 -1
- package/package.json +7 -6
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { lazy, route } from '@askrjs/askr/router';
|
|
2
|
-
import { accountsRoute } from '../../lib/routes';
|
|
3
2
|
|
|
4
3
|
export function registerAccountRoutes(): void {
|
|
5
4
|
route(
|
|
6
|
-
|
|
5
|
+
'/accounts',
|
|
7
6
|
lazy(() => import('../../pages/workspace/accounts'))
|
|
8
7
|
);
|
|
9
8
|
}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { lazy, route } from '@askrjs/askr/router';
|
|
2
|
-
import { dashboardRoute, settingsRoute } from '../../lib/routes';
|
|
3
2
|
import { registerAccountRoutes } from './accounts';
|
|
4
3
|
|
|
5
4
|
export function registerWorkspaceRoutes(): void {
|
|
6
5
|
route(
|
|
7
|
-
|
|
6
|
+
'/dashboard',
|
|
8
7
|
lazy(() => import('../../pages/workspace/dashboard'))
|
|
9
8
|
);
|
|
10
9
|
registerAccountRoutes();
|
|
11
10
|
route(
|
|
12
|
-
|
|
11
|
+
'/settings',
|
|
13
12
|
lazy(() => import('../../pages/workspace/settings'))
|
|
14
13
|
);
|
|
15
14
|
}
|
package/dist/update.js
CHANGED
|
@@ -217,7 +217,7 @@ async function runDependencyCli(command, args, io = console, runtime = {}) {
|
|
|
217
217
|
let root = null;
|
|
218
218
|
let selectedWorkspaces = [];
|
|
219
219
|
try {
|
|
220
|
-
const [{ discoverProject }, { planUpdates }] = await Promise.all([import("./discovery-
|
|
220
|
+
const [{ discoverProject }, { planUpdates }] = await Promise.all([import("./discovery-DUDrZCIC.js"), import("./planner-BEfWRd0x.js")]);
|
|
221
221
|
const project = await discoverProject({
|
|
222
222
|
cwd: parsed.cwd,
|
|
223
223
|
packagePatterns: parsed.packagePatterns,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@askrjs/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.12",
|
|
4
4
|
"description": "Unified CLI for the Askr platform",
|
|
5
5
|
"homepage": "https://github.com/askrjs/askr-cli#readme",
|
|
6
6
|
"bugs": {
|
|
@@ -39,12 +39,13 @@
|
|
|
39
39
|
"test": "vp test run -c vitest.config.ts",
|
|
40
40
|
"test:coverage": "vp test run -c vitest.config.ts --coverage",
|
|
41
41
|
"fmt": "vp fmt .",
|
|
42
|
-
"lint": "vp lint src tests vite.config.ts vitest.config.ts",
|
|
42
|
+
"lint": "vp lint src tests benchmarks vite.config.ts vitest.config.ts vitest.bench.config.ts",
|
|
43
43
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
44
44
|
"test:publint": "publint",
|
|
45
45
|
"pack:check": "npm pack --ignore-scripts --dry-run --json",
|
|
46
46
|
"test:templates": "node scripts/verify-packed-templates.mjs",
|
|
47
|
-
"bench": "npm run build --silent && node --import tsx benchmarks/cli.mjs --gate",
|
|
47
|
+
"bench": "npm run build --silent && npm run bench:analyze && node --import tsx benchmarks/cli.mjs --gate",
|
|
48
|
+
"bench:analyze": "vp test bench --run -c vitest.bench.config.ts",
|
|
48
49
|
"bench:json": "npm run build --silent && node --import tsx benchmarks/cli.mjs --gate --json",
|
|
49
50
|
"check": "npm run lint && npm run typecheck && npm run test:coverage && npm run build && npm run test:publint && npm run pack:check",
|
|
50
51
|
"prepack": "npm run build",
|
|
@@ -56,10 +57,11 @@
|
|
|
56
57
|
"minimatch": "^10.2.5",
|
|
57
58
|
"npm-registry-fetch": "^19.1.1",
|
|
58
59
|
"semver": "^7.8.5",
|
|
59
|
-
"tsx": "^4.23.1"
|
|
60
|
+
"tsx": "^4.23.1",
|
|
61
|
+
"typescript": "^6.0.3"
|
|
60
62
|
},
|
|
61
63
|
"devDependencies": {
|
|
62
|
-
"@askrjs/askr": "
|
|
64
|
+
"@askrjs/askr": ">=0.0.53 <0.1.0",
|
|
63
65
|
"@askrjs/charts": ">=0.1.0 <0.2.0",
|
|
64
66
|
"@askrjs/logos": ">=0.0.3 <0.1.0",
|
|
65
67
|
"@askrjs/lucide": ">=0.0.3 <0.1.0",
|
|
@@ -71,7 +73,6 @@
|
|
|
71
73
|
"@types/semver": "^7.7.1",
|
|
72
74
|
"@vitest/coverage-v8": "^4.1.10",
|
|
73
75
|
"publint": "^0.3.21",
|
|
74
|
-
"typescript": "^6.0.3",
|
|
75
76
|
"vite-plus": "^0.2.4",
|
|
76
77
|
"vitest": "^4.1.10"
|
|
77
78
|
},
|