veryfront 0.1.1160 → 0.1.1161

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 CHANGED
@@ -19,7 +19,7 @@ It gives you agents, tools, workflows, and a complete React rendering stack in a
19
19
  Create a new Veryfront Code app:
20
20
 
21
21
  ```bash
22
- npm create veryfront
22
+ npm create veryfront@latest my-agent
23
23
  ```
24
24
 
25
25
  <details>
@@ -34,7 +34,7 @@ deno init --npm veryfront
34
34
 
35
35
  </details>
36
36
 
37
- Start from a template directly:
37
+ The default starter is `ai-agent`. Choose another template directly:
38
38
 
39
39
  ```bash
40
40
  npx veryfront init <PROJECT_NAME> --template <TEMPLATE>
@@ -10,6 +10,7 @@ export interface TemplateOption {
10
10
  label: string;
11
11
  description: string;
12
12
  }
13
+ export declare const DEFAULT_TEMPLATE: InitTemplate;
13
14
  export declare const TEMPLATES: readonly TemplateOption[];
14
15
  /** Get templates as SelectOption[] for terminal-select */
15
16
  export declare function getTemplateSelectOptions(): SelectOption[];
@@ -1 +1 @@
1
- {"version":3,"file":"catalog.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/init/catalog.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAChE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAC/C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gCAAgC,CAAC;AAUnE,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,YAAY,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,eAAO,MAAM,SAAS,EAAE,SAAS,cAAc,EAoBrC,CAAC;AAEX,0DAA0D;AAC1D,wBAAgB,wBAAwB,IAAI,YAAY,EAAE,CAMzD;AAMD,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,eAAe,CAAC;IACpB,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WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,SAAS,iBAAiB,EAAE,CAAC;CAC5C;AAED,eAAO,MAAM,sBAAsB,EAAE,SAAS,mBAAmB,EAuNvD,CAAC;AAEX,2CAA2C;AAC3C,wBAAgB,kBAAkB,IAAI,iBAAiB,EAAE,CAIxD;AAED,6DAA6D;AAC7D,wBAAgB,2BAA2B,IAAI,YAAY,EAAE,CAM5D;AAED,4DAA4D;AAC5D,wBAAgB,sBAAsB,IAAI,iBAAiB,EAAE,CAa5D;AAED,+DAA+D;AAC/D,wBAAgB,sCAAsC,IAAI,KAAK,CAC7D,YAAY,GAAG;IAAE,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,CACtC,CA0BA"}
@@ -3,9 +3,10 @@
3
3
  * Single source of truth for all CLI template/integration data
4
4
  */
5
5
  import { filterVisibleIntegrations, isVisibleIntegration, } from "../../../src/integrations/feature-flags.js";
6
+ export const DEFAULT_TEMPLATE = "ai-agent";
6
7
  export const TEMPLATES = [
8
+ { id: DEFAULT_TEMPLATE, label: "AI Agent", description: "Agent + chat UI + streaming" },
7
9
  { id: "minimal", label: "Minimal", description: "Blank canvas, no extras" },
8
- { id: "ai-agent", label: "AI Agent", description: "Agent + chat UI + streaming" },
9
10
  {
10
11
  id: "docs-agent",
11
12
  label: "Docs Agent",
@@ -1 +1 @@
1
- {"version":3,"file":"init-command.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/init/init-command.ts"],"names":[],"mappings":"AAAA;;;iCAGiC;AAWjC,OAAO,KAAK,EAAE,WAAW,EAA6B,MAAM,YAAY,CAAC;AA6PzE;;GAEG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CA6ZrE"}
1
+ {"version":3,"file":"init-command.d.ts","sourceRoot":"","sources":["../../../../src/cli/commands/init/init-command.ts"],"names":[],"mappings":"AAAA;;;iCAGiC;AAWjC,OAAO,KAAK,EAAE,WAAW,EAA6B,MAAM,YAAY,CAAC;AA8PzE;;GAEG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CA6ZrE"}
@@ -18,6 +18,7 @@ import { generateGitignoreContent, promptForEnvVars } from "../../utils/env-prom
18
18
  import { loadFeature, mergeFiles, resolveFeatures, validateFeatures, } from "../../templates/feature-loader.js";
19
19
  import { getIntegrationBaseFiles, loadIntegrationBaseConfig, loadIntegrationBaseFilesFromDirectory, loadIntegrations, validateIntegrations, } from "../../templates/integration-loader.js";
20
20
  import { runInteractiveWizard, shouldRunWizard, validateProjectName, } from "./interactive-wizard.js";
21
+ import { DEFAULT_TEMPLATE } from "./catalog.js";
21
22
  /**
22
23
  * Icon mapping for integrations based on category/name
23
24
  */
@@ -256,7 +257,7 @@ export async function initCommand(options) {
256
257
  wizardRuntime = wizardResult.runtime;
257
258
  }
258
259
  else {
259
- template = options.template ?? "minimal";
260
+ template = options.template ?? DEFAULT_TEMPLATE;
260
261
  }
261
262
  const runtime = options.runtime ?? wizardRuntime;
262
263
  // Map runtime to package-manager preference. "node" → "npm" so an explicit
@@ -3,7 +3,7 @@ import { getAgentFace } from "../../ui/dot-matrix.js";
3
3
  import { isCiEnv, isDenoTestingEnv } from "../../../src/config/index.js";
4
4
  import { isInteractive as checkIsInteractive } from "../../../src/platform/index.js";
5
5
  import { select, textInput } from "../../utils/terminal-select.js";
6
- import { getTemplateSelectOptions, TEMPLATES } from "./catalog.js";
6
+ import { DEFAULT_TEMPLATE, getTemplateSelectOptions, TEMPLATES } from "./catalog.js";
7
7
  /** Reject path separators and traversal so the name stays a single directory. */
8
8
  export function validateProjectName(name) {
9
9
  if (/[/\\]/.test(name))
@@ -19,7 +19,7 @@ export async function runInteractiveWizard(existingName, presetRuntime) {
19
19
  if (!canRunWizard()) {
20
20
  return {
21
21
  projectName: existingName ?? null,
22
- template: "minimal",
22
+ template: DEFAULT_TEMPLATE,
23
23
  runtime: presetRuntime ?? "node",
24
24
  initGit: false,
25
25
  skipped: true,
@@ -52,7 +52,7 @@ export async function runInteractiveWizard(existingName, presetRuntime) {
52
52
  console.log(muted("\n Cancelled.\n"));
53
53
  return {
54
54
  projectName: null,
55
- template: "minimal",
55
+ template: DEFAULT_TEMPLATE,
56
56
  runtime: "node",
57
57
  initGit: false,
58
58
  skipped: false,
@@ -65,7 +65,7 @@ export async function runInteractiveWizard(existingName, presetRuntime) {
65
65
  console.log(muted("\n Cancelled.\n"));
66
66
  return {
67
67
  projectName: null,
68
- template: "minimal",
68
+ template: DEFAULT_TEMPLATE,
69
69
  runtime: "node",
70
70
  initGit: false,
71
71
  skipped: false,
@@ -78,7 +78,7 @@ export async function runInteractiveWizard(existingName, presetRuntime) {
78
78
  console.log(muted(`\n ${nameError}\n`));
79
79
  return {
80
80
  projectName: null,
81
- template: "minimal",
81
+ template: DEFAULT_TEMPLATE,
82
82
  runtime: "node",
83
83
  initGit: false,
84
84
  skipped: false,
@@ -94,7 +94,7 @@ export async function runInteractiveWizard(existingName, presetRuntime) {
94
94
  console.log(muted("\n Cancelled.\n"));
95
95
  return {
96
96
  projectName: null,
97
- template: "minimal",
97
+ template: DEFAULT_TEMPLATE,
98
98
  runtime: "node",
99
99
  initGit: false,
100
100
  skipped: false,
@@ -114,7 +114,7 @@ export async function runInteractiveWizard(existingName, presetRuntime) {
114
114
  console.log(muted("\n Cancelled.\n"));
115
115
  return {
116
116
  projectName: null,
117
- template: "minimal",
117
+ template: DEFAULT_TEMPLATE,
118
118
  runtime: "node",
119
119
  initGit: false,
120
120
  skipped: false,
@@ -132,7 +132,7 @@ export async function runInteractiveWizard(existingName, presetRuntime) {
132
132
  console.log(muted("\n Cancelled.\n"));
133
133
  return {
134
134
  projectName: null,
135
- template: "minimal",
135
+ template: DEFAULT_TEMPLATE,
136
136
  runtime: "node",
137
137
  initGit: false,
138
138
  skipped: false,
package/esm/deno.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export default {
2
2
  "name": "veryfront",
3
- "version": "0.1.1160",
3
+ "version": "0.1.1161",
4
4
  "license": "Apache-2.0",
5
5
  "nodeModulesDir": "auto",
6
6
  "minimumDependencyAge": {
@@ -1,3 +1,3 @@
1
1
  /** Shared version value. */
2
- export declare const VERSION = "0.1.1160";
2
+ export declare const VERSION = "0.1.1161";
3
3
  //# sourceMappingURL=version-constant.d.ts.map
@@ -1,4 +1,4 @@
1
1
  // Keep in sync with deno.json version.
2
2
  // scripts/release.ts updates this constant during releases.
3
3
  /** Shared version value. */
4
- export const VERSION = "0.1.1160";
4
+ export const VERSION = "0.1.1161";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "veryfront",
3
- "version": "0.1.1160",
3
+ "version": "0.1.1161",
4
4
  "description": "The simplest way to build AI-powered apps",
5
5
  "keywords": [
6
6
  "react",
@@ -332,10 +332,10 @@
332
332
  "@types/react": "19.2.14",
333
333
  "@types/react-dom": "19.2.3",
334
334
  "ws": "8.21.0",
335
- "@veryfront/ext-bundler-esbuild": "0.1.1160",
336
- "@veryfront/ext-content-mdx": "0.1.1160",
337
- "@veryfront/ext-css-tailwind": "0.1.1160",
338
- "@veryfront/ext-parser-babel": "0.1.1160"
335
+ "@veryfront/ext-bundler-esbuild": "0.1.1161",
336
+ "@veryfront/ext-content-mdx": "0.1.1161",
337
+ "@veryfront/ext-css-tailwind": "0.1.1161",
338
+ "@veryfront/ext-parser-babel": "0.1.1161"
339
339
  },
340
340
  "devDependencies": {
341
341
  "@types/node": "20.9.0"