@akanjs/cli 0.9.12 → 0.9.14

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.
@@ -5,18 +5,17 @@ function getContent(scanResult, dict) {
5
5
  content: `
6
6
  "use client";
7
7
  import { cnst, st, usePage } from "@${dict.sysName}/client";
8
- import { Field } from "@shared/ui";
9
- import { Layout } from "@akanjs/ui";
8
+ import { Layout, Field } from "@akanjs/ui";
10
9
 
11
10
  interface ${dict.Model}EditProps {
12
- ${dict.model}Id?: string | null;
11
+ className?: string;
13
12
  }
14
13
 
15
- export const General = ({ ${dict.model}Id = undefined }: ${dict.Model}EditProps) => {
14
+ export const General = ({ className }: ${dict.Model}EditProps) => {
16
15
  const ${dict.model}Form = st.use.${dict.model}Form();
17
16
  const { l } = usePage();
18
17
  return (
19
- <Layout.Template>
18
+ <Layout.Template className={className}>
20
19
  <Field.Text
21
20
  label={l.field("${dict.model}", "id")}
22
21
  desc={l.desc("${dict.model}", "id")}
@@ -20,10 +20,7 @@ export class ${dict.Model}Object extends via(${dict.Model}Input) {
20
20
  }
21
21
 
22
22
  @Model.Light("Light${dict.Model}")
23
- export class Light${dict.Model} extends via(${dict.Model}Object, [
24
- "field",
25
- "status",
26
- ] as const) {}
23
+ export class Light${dict.Model} extends via(${dict.Model}Object, ["status"] as const) {}
27
24
 
28
25
  @Model.Full("${dict.Model}")
29
26
  export class ${dict.Model} extends via(${dict.Model}Object, Light${dict.Model}) {}
@@ -46,9 +43,7 @@ export class ${dict.Model}Filter extends sortOf(${dict.Model}, {}) {
46
43
  inStatus(
47
44
  @Filter.Arg("status", () => String) status: ${dict.Model}Status,
48
45
  ) {
49
- return {
50
- status,
51
- };
46
+ return { status };
52
47
  }
53
48
  }
54
49
  `;
@@ -67,6 +67,7 @@ local.properties
67
67
  **/public/worker-*.js.map
68
68
  **/public/fallback-*.js
69
69
  **/public/libs
70
+ **/assets/libs
70
71
 
71
72
  **/vendor/bundle/
72
73
  **/ios/App/App/public
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "type": "module",
3
3
  "sourceType": "module",
4
4
  "name": "@akanjs/cli",
5
- "version": "0.9.12",
5
+ "version": "0.9.14",
6
6
  "bin": {
7
7
  "akan": "esm/index.js"
8
8
  },
@@ -40,13 +40,16 @@
40
40
  "js-yaml": "^4.1.0",
41
41
  "latest-version": "^9.0.0",
42
42
  "lodash": "^4.17.21",
43
+ "next": "15.3.2",
43
44
  "next-pwa": "5.6.0",
44
45
  "open": "^10.1.1",
45
46
  "ora": "^3.4.0",
46
47
  "pluralize": "^8.0.0",
47
48
  "qrcode": "^1.5.4",
48
49
  "react": "18.3.1",
50
+ "react-icons": "^5.4.0",
49
51
  "reflect-metadata": "^0.2.2",
52
+ "tsconfig-paths": "^4.2.0",
50
53
  "tunnel-ssh": "^5.2.0",
51
54
  "typescript": "5.8.3",
52
55
  "uuid": "^11.0.3",
@@ -1,5 +1,6 @@
1
1
  import { type Workspace } from "@akanjs/devkit";
2
2
  export declare class CloudRunner {
3
+ #private;
3
4
  login(): Promise<boolean>;
4
5
  logout(): void;
5
6
  setLlm(): Promise<void>;
@@ -2,7 +2,7 @@ import { Module, Sys } from "@akanjs/devkit";
2
2
  import { ModuleScript } from "./module.script";
3
3
  export declare class ModuleCommand {
4
4
  moduleScript: ModuleScript;
5
- createModule(sys: Sys, moduleName: string, description: string, schemaDescription: string, ai: boolean): Promise<void>;
5
+ createModule(moduleName: string, sys: Sys): Promise<void>;
6
6
  removeModule(module: Module): void;
7
7
  createView(module: Module): Promise<void>;
8
8
  createUnit(module: Module): Promise<void>;