@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.
Files changed (50) hide show
  1. package/README.md +50 -0
  2. package/dist/add.d.ts +1 -10
  3. package/dist/add.js +1 -63
  4. package/dist/analyze.d.ts +88 -0
  5. package/dist/analyze.js +97 -0
  6. package/dist/cli.js +16 -0
  7. package/dist/create.js +1 -1
  8. package/dist/{discovery-BX-lnFRK.js → discovery-DUDrZCIC.js} +11 -2
  9. package/dist/file-changes-BAFLhEHZ.js +66 -0
  10. package/dist/file-changes-cmFN-rF8.d.ts +11 -0
  11. package/dist/guardrails-GPM9PJqO.js +121 -0
  12. package/dist/{planner-BDfYDKnI.js → planner-BEfWRd0x.js} +3 -3
  13. package/dist/runner-BRjjPhZY.js +1495 -0
  14. package/dist/runner-Ca43qqzG.js +289 -0
  15. package/dist/skills/askr-ssr-ssg/SKILL.md +2 -0
  16. package/dist/{skills-C2KzfTl9.js → skills-CSGdAZHN.js} +50 -1
  17. package/dist/skills.d.ts +12 -1
  18. package/dist/skills.js +2 -2
  19. package/dist/ssg.d.ts +1 -0
  20. package/dist/ssg.js +5 -4
  21. package/dist/templates/full-stack/AGENTS.md +6 -0
  22. package/dist/templates/full-stack/package.json +2 -1
  23. package/dist/templates/spa/AGENTS.md +7 -1
  24. package/dist/templates/spa/README.md +1 -1
  25. package/dist/templates/spa/package.json +2 -1
  26. package/dist/templates/spa/src/main.tsx +1 -1
  27. package/dist/templates/spa/src/pages/app/_layout.tsx +11 -8
  28. package/dist/templates/spa/src/pages/app/admin-home.tsx +97 -90
  29. package/dist/templates/spa/src/pages/app/agent-runs.tsx +33 -26
  30. package/dist/templates/spa/src/pages/public/home.tsx +12 -9
  31. package/dist/templates/ssg/AGENTS.md +6 -0
  32. package/dist/templates/ssg/package.json +2 -1
  33. package/dist/templates/ssg/src/components/site-shell.tsx +4 -3
  34. package/dist/templates/ssg/src/pages/about.tsx +14 -11
  35. package/dist/templates/ssg/src/pages/content.tsx +10 -7
  36. package/dist/templates/ssg/src/pages/example.tsx +0 -2
  37. package/dist/templates/ssg/src/pages/home.tsx +6 -3
  38. package/dist/templates/ssr/AGENTS.md +6 -0
  39. package/dist/templates/ssr/package.json +2 -1
  40. package/dist/templates/startkit/AGENTS.md +3 -0
  41. package/dist/templates/startkit/package.json +2 -1
  42. package/dist/templates/startkit/src/components/app-sidebar.tsx +23 -18
  43. package/dist/templates/startkit/src/components/data-table.tsx +8 -6
  44. package/dist/templates/startkit/src/pages/workspace/dashboard.tsx +16 -13
  45. package/dist/templates/startkit/src/routes/auth.ts +1 -2
  46. package/dist/templates/startkit/src/routes/public.ts +1 -2
  47. package/dist/templates/startkit/src/routes/workspace/accounts.ts +1 -2
  48. package/dist/templates/startkit/src/routes/workspace/index.ts +2 -3
  49. package/dist/update.js +1 -1
  50. package/package.json +7 -6
@@ -1,9 +1,8 @@
1
1
  import { lazy, route } from '@askrjs/askr/router';
2
- import { loginRoute } from '../lib/routes';
3
2
 
4
3
  export function registerAuthRoutes(): void {
5
4
  route(
6
- loginRoute.href,
5
+ '/login',
7
6
  lazy(() => import('../pages/auth/login'))
8
7
  );
9
8
  }
@@ -1,9 +1,8 @@
1
1
  import { lazy, route } from '@askrjs/askr/router';
2
- import { landingRoute } from '../lib/routes';
3
2
 
4
3
  export function registerPublicRoutes(): void {
5
4
  route(
6
- landingRoute.href,
5
+ '/',
7
6
  lazy(() => import('../pages/home'))
8
7
  );
9
8
  }
@@ -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
- accountsRoute.href,
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
- dashboardRoute.href,
6
+ '/dashboard',
8
7
  lazy(() => import('../../pages/workspace/dashboard'))
9
8
  );
10
9
  registerAccountRoutes();
11
10
  route(
12
- settingsRoute.href,
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-BX-lnFRK.js"), import("./planner-BDfYDKnI.js")]);
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.10",
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": "^0.0.66",
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
  },