@agentuity/cli 0.0.26-0 → 0.0.27

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/dist/banner.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare function showBanner(version: string): void;
1
+ export declare function showBanner(version?: string): void;
2
2
  //# sourceMappingURL=banner.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../src/banner.ts"],"names":[],"mappings":"AAAA,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAsBhD"}
1
+ {"version":3,"file":"banner.d.ts","sourceRoot":"","sources":["../src/banner.ts"],"names":[],"mappings":"AAEA,wBAAgB,UAAU,CAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAuBjD"}
@@ -1 +1 @@
1
- {"version":3,"file":"template-flow.d.ts","sourceRoot":"","sources":["../../../src/cmd/project/template-flow.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAM3C,UAAU,iBAAiB;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CACf;AAED,wBAAsB,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA4J7E"}
1
+ {"version":3,"file":"template-flow.d.ts","sourceRoot":"","sources":["../../../src/cmd/project/template-flow.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAO3C,UAAU,iBAAiB;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,OAAO,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,WAAW,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;CACf;AAED,wBAAsB,aAAa,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CA8J7E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agentuity/cli",
3
- "version": "0.0.26-0",
3
+ "version": "0.0.27",
4
4
  "type": "module",
5
5
  "main": "./src/index.ts",
6
6
  "types": "./dist/index.d.ts",
package/src/banner.ts CHANGED
@@ -1,4 +1,7 @@
1
- export function showBanner(version: string): void {
1
+ import { getVersion } from './version';
2
+
3
+ export function showBanner(version?: string): void {
4
+ const _version = version ?? getVersion();
2
5
  const CYAN = Bun.color('cyan', 'ansi-16m');
3
6
  const RESET = '\x1b[0m';
4
7
 
@@ -10,7 +13,7 @@ export function showBanner(version: string): void {
10
13
  '╭────────────────────────────────────────────────────╮',
11
14
  '│ ⨺ Agentuity Build, manage and deploy AI agents │',
12
15
  '│ │',
13
- `│${versionLabel}${version.padEnd(versionPadding)} │`,
16
+ `│${versionLabel}${_version.padEnd(versionPadding)} │`,
14
17
  '│ Docs: https://agentuity.dev │',
15
18
  '│ Community: https://discord.gg/agentuity │',
16
19
  '│ Dashboard: https://app.agentuity.com │',
@@ -43,7 +43,7 @@ async function cleanup(sourceDir: string, dest: string) {
43
43
  throw new Error(`Template directory not found: ${sourceDir}`);
44
44
  }
45
45
 
46
- tui.spinner(`📦 Copying template from ${sourceDir}...`, async () => {
46
+ tui.spinner(`📦 Copying template files...`, async () => {
47
47
  // Copy all files from source to dest
48
48
  const files = readdirSync(sourceDir);
49
49
  for (const file of files) {
@@ -8,6 +8,7 @@ import * as tui from '../../tui';
8
8
  import { playSound } from '../../sound';
9
9
  import { fetchTemplates, type TemplateInfo } from './templates';
10
10
  import { downloadTemplate, setupProject } from './download';
11
+ import { showBanner } from '../../banner';
11
12
 
12
13
  interface CreateFlowOptions {
13
14
  projectName?: string;
@@ -32,6 +33,8 @@ export async function runCreateFlow(options: CreateFlowOptions): Promise<void> {
32
33
  logger,
33
34
  } = options;
34
35
 
36
+ showBanner();
37
+
35
38
  // Step 1: Fetch available templates
36
39
  if (templateDir) {
37
40
  tui.info(`📋 Loading templates from local directory: ${templateDir}...\n`);