@almadar/shell-hono 0.1.3
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/.env.example +12 -0
- package/.gitignore +4 -0
- package/LICENSE +72 -0
- package/README.md +25 -0
- package/locales/en.json +120 -0
- package/package.json +36 -0
- package/packages/client/eslint.config.cjs +23 -0
- package/packages/client/index.html +13 -0
- package/packages/client/node_modules/.bin/autoprefixer +21 -0
- package/packages/client/node_modules/.bin/eslint +21 -0
- package/packages/client/node_modules/.bin/tailwind +21 -0
- package/packages/client/node_modules/.bin/tailwindcss +21 -0
- package/packages/client/node_modules/.bin/tsc +21 -0
- package/packages/client/node_modules/.bin/tsserver +21 -0
- package/packages/client/node_modules/.bin/vite +21 -0
- package/packages/client/node_modules/.bin/vitest +21 -0
- package/packages/client/package-lock.json +9750 -0
- package/packages/client/package.json +61 -0
- package/packages/client/postcss.config.js +6 -0
- package/packages/client/src/App.tsx +84 -0
- package/packages/client/src/config/firebase.ts +37 -0
- package/packages/client/src/features/auth/AuthContext.tsx +139 -0
- package/packages/client/src/features/auth/authService.ts +83 -0
- package/packages/client/src/features/auth/components/Login.tsx +218 -0
- package/packages/client/src/features/auth/components/ProtectedRoute.tsx +27 -0
- package/packages/client/src/features/auth/components/UserProfile.tsx +68 -0
- package/packages/client/src/features/auth/components/index.ts +3 -0
- package/packages/client/src/features/auth/index.ts +13 -0
- package/packages/client/src/features/auth/types.ts +24 -0
- package/packages/client/src/generated/index.ts +13 -0
- package/packages/client/src/index.css +35 -0
- package/packages/client/src/main.tsx +8 -0
- package/packages/client/src/navigation/index.ts +55 -0
- package/packages/client/src/pages/index.ts +12 -0
- package/packages/client/tailwind-preset.cjs +259 -0
- package/packages/client/tailwind.config.js +24 -0
- package/packages/client/tsconfig.json +33 -0
- package/packages/client/vite.config.ts +50 -0
- package/packages/server/eslint.config.cjs +19 -0
- package/packages/server/node_modules/.bin/esbuild +21 -0
- package/packages/server/node_modules/.bin/eslint +21 -0
- package/packages/server/node_modules/.bin/tsc +21 -0
- package/packages/server/node_modules/.bin/tsserver +21 -0
- package/packages/server/node_modules/.bin/tsx +21 -0
- package/packages/server/node_modules/.bin/vitest +21 -0
- package/packages/server/package.json +38 -0
- package/packages/server/pnpm-lock.yaml +4665 -0
- package/packages/server/src/app.ts +31 -0
- package/packages/server/src/index.ts +31 -0
- package/packages/server/src/routes.ts +12 -0
- package/packages/server/src/serve.ts +45 -0
- package/packages/server/tsconfig.json +23 -0
- package/packages/shared/node_modules/.bin/tsc +21 -0
- package/packages/shared/node_modules/.bin/tsserver +21 -0
- package/packages/shared/node_modules/.bin/tsup +21 -0
- package/packages/shared/node_modules/.bin/tsup-node +21 -0
- package/packages/shared/package.json +25 -0
- package/packages/shared/pnpm-lock.yaml +919 -0
- package/packages/shared/src/index.ts +2 -0
- package/packages/shared/tsconfig.json +17 -0
- package/packages/shared/tsup.config.ts +10 -0
- package/pnpm-workspace.yaml +2 -0
- package/turbo.json +17 -0
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
10
|
+
esac
|
|
11
|
+
|
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
|
13
|
+
export NODE_PATH="/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/node_modules"
|
|
14
|
+
else
|
|
15
|
+
export NODE_PATH="/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
+
fi
|
|
17
|
+
if [ -x "$basedir/node" ]; then
|
|
18
|
+
exec "$basedir/node" "$basedir/../typescript/bin/tsc" "$@"
|
|
19
|
+
else
|
|
20
|
+
exec node "$basedir/../typescript/bin/tsc" "$@"
|
|
21
|
+
fi
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
10
|
+
esac
|
|
11
|
+
|
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
|
13
|
+
export NODE_PATH="/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/node_modules"
|
|
14
|
+
else
|
|
15
|
+
export NODE_PATH="/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/typescript@5.9.3/node_modules/typescript/node_modules:/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/typescript@5.9.3/node_modules:/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
+
fi
|
|
17
|
+
if [ -x "$basedir/node" ]; then
|
|
18
|
+
exec "$basedir/node" "$basedir/../typescript/bin/tsserver" "$@"
|
|
19
|
+
else
|
|
20
|
+
exec node "$basedir/../typescript/bin/tsserver" "$@"
|
|
21
|
+
fi
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
10
|
+
esac
|
|
11
|
+
|
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
|
13
|
+
export NODE_PATH="/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/node_modules:/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/tsx@4.21.0/node_modules:/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/node_modules"
|
|
14
|
+
else
|
|
15
|
+
export NODE_PATH="/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/tsx@4.21.0/node_modules/tsx/node_modules:/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/tsx@4.21.0/node_modules:/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
+
fi
|
|
17
|
+
if [ -x "$basedir/node" ]; then
|
|
18
|
+
exec "$basedir/node" "$basedir/../tsx/dist/cli.mjs" "$@"
|
|
19
|
+
else
|
|
20
|
+
exec node "$basedir/../tsx/dist/cli.mjs" "$@"
|
|
21
|
+
fi
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/bin/sh
|
|
2
|
+
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
|
|
3
|
+
|
|
4
|
+
case `uname` in
|
|
5
|
+
*CYGWIN*|*MINGW*|*MSYS*)
|
|
6
|
+
if command -v cygpath > /dev/null 2>&1; then
|
|
7
|
+
basedir=`cygpath -w "$basedir"`
|
|
8
|
+
fi
|
|
9
|
+
;;
|
|
10
|
+
esac
|
|
11
|
+
|
|
12
|
+
if [ -z "$NODE_PATH" ]; then
|
|
13
|
+
export NODE_PATH="/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/vitest@2.1.9_@types+node@20.19.39_jsdom@25.0.1/node_modules/vitest/node_modules:/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/vitest@2.1.9_@types+node@20.19.39_jsdom@25.0.1/node_modules:/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/node_modules"
|
|
14
|
+
else
|
|
15
|
+
export NODE_PATH="/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/vitest@2.1.9_@types+node@20.19.39_jsdom@25.0.1/node_modules/vitest/node_modules:/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/vitest@2.1.9_@types+node@20.19.39_jsdom@25.0.1/node_modules:/home/osamah/kflow.ai.builder/orbital-rust/packages/almadar-shell-hono/node_modules/.pnpm/node_modules:$NODE_PATH"
|
|
16
|
+
fi
|
|
17
|
+
if [ -x "$basedir/node" ]; then
|
|
18
|
+
exec "$basedir/node" "$basedir/../vitest/vitest.mjs" "$@"
|
|
19
|
+
else
|
|
20
|
+
exec node "$basedir/../vitest/vitest.mjs" "$@"
|
|
21
|
+
fi
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@almadar/shell-hono-server",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"private": true,
|
|
5
|
+
"type": "module",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"dev": "tsx watch src/index.ts",
|
|
8
|
+
"build": "esbuild src/index.ts --bundle --platform=node --format=esm --packages=external --outfile=dist/index.js",
|
|
9
|
+
"start": "node dist/index.js",
|
|
10
|
+
"typecheck": "tsc --noEmit",
|
|
11
|
+
"lint": "eslint src/",
|
|
12
|
+
"test": "vitest run --passWithNoTests",
|
|
13
|
+
"test:watch": "vitest"
|
|
14
|
+
},
|
|
15
|
+
"dependencies": {
|
|
16
|
+
"@almadar/server-hono": ">=0.2.0",
|
|
17
|
+
"@almadar/evaluator": ">=2.9.2",
|
|
18
|
+
"@almadar/core": ">=5.8.0",
|
|
19
|
+
"@almadar/integrations": ">=2.6.1",
|
|
20
|
+
"hono": "^4.7.0",
|
|
21
|
+
"@hono/node-server": "^1.14.0",
|
|
22
|
+
"@hono/zod-validator": "^0.4.0",
|
|
23
|
+
"dotenv": "^16.4.7",
|
|
24
|
+
"firebase-admin": "^12.7.0",
|
|
25
|
+
"zod": "^3.22.0"
|
|
26
|
+
},
|
|
27
|
+
"devDependencies": {
|
|
28
|
+
"@almadar/eslint-plugin": ">=2.8.0",
|
|
29
|
+
"@typescript-eslint/parser": "8.56.0",
|
|
30
|
+
"@types/bun": "^1.1.0",
|
|
31
|
+
"@types/node": "^20.17.19",
|
|
32
|
+
"eslint": "10.0.0",
|
|
33
|
+
"esbuild": "^0.25.0",
|
|
34
|
+
"tsx": "^4.19.3",
|
|
35
|
+
"typescript": "^5.7.3",
|
|
36
|
+
"vitest": "^2.1.9"
|
|
37
|
+
}
|
|
38
|
+
}
|