@almadar/cli-linux-x64 1.6.9 → 1.8.0

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/almadar CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@almadar/cli-linux-x64",
3
- "version": "1.6.9",
3
+ "version": "1.8.0",
4
4
  "description": "Almadar CLI binary for linux-x64",
5
5
  "license": "MIT",
6
6
  "repository": { "type": "git", "url": "https://github.com/almadar-io/almadar.git" },
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Almadar Team
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,25 @@
1
+ # @almadar/shell
2
+
3
+ > Minimal full-stack shell template for Almadar applications
4
+
5
+ Part of the [Almadar](https://github.com/almadar-io/almadar) platform.
6
+
7
+ ## Installation
8
+
9
+ ```bash
10
+ npm install @almadar/shell
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```typescript
16
+ import { /* ... */ } from '@almadar/shell';
17
+ ```
18
+
19
+ ## API
20
+
21
+ <!-- Document public exports here -->
22
+
23
+ ## License
24
+
25
+ MIT
@@ -1,19 +1,28 @@
1
1
  {
2
2
  "name": "@almadar/shell",
3
- "version": "1.0.14",
3
+ "version": "2.0.1",
4
4
  "private": true,
5
5
  "description": "Minimal full-stack shell template for Almadar applications",
6
- "workspaces": [
7
- "packages/*"
8
- ],
6
+ "packageManager": "pnpm@9.15.9",
9
7
  "scripts": {
10
- "dev": "npx concurrently -n client,server -c blue,green \"npm run dev -w packages/client\" \"npm run dev -w packages/server\"",
11
- "build": "npm run build --workspaces --if-present",
8
+ "dev": "npx concurrently -n client,server -c blue,green \"pnpm --filter @almadar/shell-client dev\" \"pnpm --filter @almadar/shell-server dev\"",
9
+ "build": "pnpm run -r build",
12
10
  "typecheck": "turbo run typecheck",
13
- "lint": "turbo run lint"
11
+ "lint": "turbo run lint",
12
+ "prepare": "git config core.hooksPath .githooks"
14
13
  },
15
14
  "devDependencies": {
16
15
  "concurrently": "^8.2.0",
17
16
  "turbo": "^2.0.0"
17
+ },
18
+ "files": [
19
+ "dist"
20
+ ],
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "https://github.com/almadar-io/almadar-shell.git"
24
+ },
25
+ "publishConfig": {
26
+ "access": "public"
18
27
  }
19
28
  }
@@ -0,0 +1,23 @@
1
+ "use strict";
2
+ const tsParser = require("@typescript-eslint/parser");
3
+ const almadarPlugin = require("@almadar/eslint-plugin");
4
+
5
+ module.exports = [
6
+ { ignores: ["dist/**", "node_modules/**", "**/*.test.ts", "**/*.test.tsx"] },
7
+ {
8
+ files: ["src/**/*.ts", "src/**/*.tsx"],
9
+ languageOptions: {
10
+ parser: tsParser,
11
+ parserOptions: {
12
+ ecmaFeatures: { jsx: true },
13
+ ecmaVersion: "latest",
14
+ sourceType: "module",
15
+ },
16
+ },
17
+ plugins: { almadar: almadarPlugin },
18
+ rules: {
19
+ "almadar/no-as-any": "error",
20
+ "almadar/no-import-generated": "error",
21
+ },
22
+ },
23
+ ];
@@ -13,37 +13,41 @@
13
13
  "test:watch": "vitest"
14
14
  },
15
15
  "dependencies": {
16
- "@almadar/ui": "^1.0.0",
17
- "@almadar/evaluator": "^1.0.0",
18
- "@almadar/patterns": "^1.0.0",
19
- "@almadar/core": "^1.0.0",
20
- "firebase": "^11.0.0",
21
- "@tanstack/react-query": "^5.62.0",
16
+ "@almadar/ui": "^2.1.9",
17
+ "@almadar/evaluator": "^2.0.0",
18
+ "@almadar/patterns": "^2.0.0",
19
+ "@almadar/core": "^2.1.0",
20
+ "firebase": "^11.4.0",
21
+ "@tanstack/react-query": "^5.67.3",
22
22
  "react": "^18.3.1",
23
23
  "react-dom": "^18.3.1",
24
- "react-router-dom": "^7.1.0",
25
- "zustand": "^5.0.2",
26
- "react-markdown": "^9.0.0",
27
- "remark-gfm": "^4.0.0",
24
+ "react-router-dom": "^7.3.0",
25
+ "zustand": "^5.0.3",
26
+ "react-markdown": "^9.0.1",
27
+ "remark-gfm": "^4.0.1",
28
28
  "remark-math": "^6.0.0",
29
- "rehype-katex": "^7.0.0",
29
+ "rehype-katex": "^7.0.1",
30
30
  "rehype-raw": "^7.0.0",
31
- "react-force-graph-2d": "^1.25.0",
32
- "@monaco-editor/react": "^4.6.0",
33
- "monaco-editor": "^0.52.0"
31
+ "react-force-graph-2d": "^1.25.5",
32
+ "@monaco-editor/react": "^4.7.0",
33
+ "monaco-editor": "^0.52.2",
34
+ "lucide-react": "^0.344.0"
34
35
  },
35
36
  "devDependencies": {
37
+ "@almadar/eslint-plugin": ">=2.3.0",
38
+ "@typescript-eslint/parser": "8.56.0",
39
+ "eslint": "10.0.0",
36
40
  "@testing-library/react": "^16.1.0",
37
- "@testing-library/jest-dom": "^6.6.0",
38
- "@types/react": "^18.3.0",
39
- "@types/react-dom": "^18.3.0",
41
+ "@testing-library/jest-dom": "^6.6.3",
42
+ "@types/react": "^18.3.18",
43
+ "@types/react-dom": "^18.3.5",
40
44
  "@vitejs/plugin-react": "^4.3.4",
41
45
  "autoprefixer": "^10.4.20",
42
- "jsdom": "^25.0.0",
43
- "postcss": "^8.4.49",
46
+ "jsdom": "^25.0.1",
47
+ "postcss": "^8.5.3",
44
48
  "tailwindcss": "^3.4.17",
45
- "typescript": "^5.7.0",
46
- "vite": "^6.0.0",
47
- "vitest": "^2.1.0"
49
+ "typescript": "^5.7.3",
50
+ "vite": "^6.2.1",
51
+ "vitest": "^2.1.9"
48
52
  }
49
53
  }
@@ -13,19 +13,23 @@
13
13
 
14
14
  import { BrowserRouter, Routes, Route } from 'react-router-dom';
15
15
  import { QueryClient, QueryClientProvider } from '@tanstack/react-query';
16
+ import { ThemeProvider, UISlotProvider } from '@almadar/ui/context';
16
17
  import {
17
- ThemeProvider,
18
18
  EventBusProvider,
19
- UISlotProvider,
20
19
  VerificationProvider,
21
20
  } from '@almadar/ui/providers';
22
21
  import { NavigationProvider } from '@almadar/ui/renderer';
22
+ import { I18nProvider, createTranslate } from '@almadar/ui/hooks';
23
23
 
24
+ // {{GENERATED_I18N_IMPORT}}
24
25
  // {{GENERATED_IMPORTS}}
25
26
 
26
27
  // Generated schema import (compiler fills this in)
27
28
  // {{GENERATED_SCHEMA_IMPORT}}
28
- const schema = { orbitals: [] }; // Placeholder - replaced by compiler
29
+ const schema = { name: 'app', orbitals: [] }; // Placeholder - replaced by compiler
30
+
31
+ // {{GENERATED_I18N_VALUE}}
32
+ const i18nValue = { locale: 'en', direction: 'ltr' as const, t: createTranslate({}) };
29
33
 
30
34
  const queryClient = new QueryClient({
31
35
  defaultOptions: {
@@ -38,6 +42,7 @@ const queryClient = new QueryClient({
38
42
 
39
43
  function App() {
40
44
  return (
45
+ <I18nProvider value={i18nValue}>
41
46
  <QueryClientProvider client={queryClient}>
42
47
  <ThemeProvider>
43
48
  <EventBusProvider>
@@ -62,6 +67,7 @@ function App() {
62
67
  </EventBusProvider>
63
68
  </ThemeProvider>
64
69
  </QueryClientProvider>
70
+ </I18nProvider>
65
71
  );
66
72
  }
67
73
 
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ const tsParser = require("@typescript-eslint/parser");
3
+ const almadarPlugin = require("@almadar/eslint-plugin");
4
+
5
+ module.exports = [
6
+ { ignores: ["dist/**", "node_modules/**", "**/*.test.ts"] },
7
+ {
8
+ files: ["src/**/*.ts"],
9
+ languageOptions: {
10
+ parser: tsParser,
11
+ parserOptions: { ecmaVersion: "latest", sourceType: "module" },
12
+ },
13
+ plugins: { almadar: almadarPlugin },
14
+ rules: {
15
+ "almadar/no-as-any": "error",
16
+ "almadar/no-import-generated": "error",
17
+ },
18
+ },
19
+ ];
@@ -5,7 +5,7 @@
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "tsx watch src/index.ts",
8
- "build": "tsc",
8
+ "build": "esbuild src/index.ts --bundle --platform=node --format=esm --packages=external --outfile=dist/index.js",
9
9
  "start": "node dist/index.js",
10
10
  "typecheck": "tsc --noEmit",
11
11
  "lint": "eslint src/",
@@ -17,16 +17,21 @@
17
17
  "@almadar/evaluator": "^2.0.0",
18
18
  "@almadar/core": "^2.1.0",
19
19
  "cors": "^2.8.5",
20
- "dotenv": "^16.4.0",
21
- "express": "^4.21.0",
22
- "firebase-admin": "^12.0.0"
20
+ "dotenv": "^16.4.7",
21
+ "express": "^4.21.2",
22
+ "firebase-admin": "^12.7.0",
23
+ "zod": "^3.22.0"
23
24
  },
24
25
  "devDependencies": {
26
+ "@almadar/eslint-plugin": ">=2.3.0",
27
+ "@typescript-eslint/parser": "8.56.0",
25
28
  "@types/cors": "^2.8.17",
26
29
  "@types/express": "^5.0.0",
27
- "@types/node": "^20.0.0",
28
- "tsx": "^4.19.0",
29
- "typescript": "^5.7.0",
30
- "vitest": "^2.1.0"
30
+ "@types/node": "^20.17.19",
31
+ "eslint": "10.0.0",
32
+ "esbuild": "^0.25.0",
33
+ "tsx": "^4.19.3",
34
+ "typescript": "^5.7.3",
35
+ "vitest": "^2.1.9"
31
36
  }
32
37
  }
@@ -2,7 +2,7 @@
2
2
  * Express Application Setup
3
3
  */
4
4
 
5
- import express from 'express';
5
+ import express, { type Express } from 'express';
6
6
  import cors from 'cors';
7
7
  import {
8
8
  env,
@@ -13,7 +13,7 @@ import {
13
13
  } from '@almadar/server';
14
14
  import { registerRoutes } from './routes.js';
15
15
 
16
- export const app = express();
16
+ export const app: Express = express();
17
17
 
18
18
  // Middleware
19
19
  app.use(cors({ origin: true, credentials: true }));
@@ -11,6 +11,20 @@ import { app } from './app.js';
11
11
 
12
12
  const PORT = env.PORT || 3030;
13
13
 
14
- app.listen(PORT, () => {
15
- logger.info(`Server running on port ${PORT}`);
16
- });
14
+ async function start(): Promise<void> {
15
+ // Seed mock data when USE_MOCK_DATA is enabled
16
+ if (env.USE_MOCK_DATA) {
17
+ try {
18
+ const { initializeMockData } = await import(/* @vite-ignore */ './seedMockData.js' as string);
19
+ await initializeMockData();
20
+ } catch {
21
+ logger.warn('seedMockData.ts not found — skipping mock data seeding');
22
+ }
23
+ }
24
+
25
+ app.listen(PORT, () => {
26
+ logger.info(`Server running on port ${PORT}`);
27
+ });
28
+ }
29
+
30
+ start();
@@ -19,5 +19,5 @@
19
19
  }
20
20
  },
21
21
  "include": ["src"],
22
- "exclude": ["node_modules", "dist"]
22
+ "exclude": ["node_modules", "dist", "src/**/__tests__/**", "src/**/*.test.ts", "src/**/*.spec.ts"]
23
23
  }