mirror of
https://github.com/kennethnym/aris.git
synced 2026-03-29 14:21:18 +01:00
Compare commits
1 Commits
master
...
fix/admin-
| Author | SHA1 | Date | |
|---|---|---|---|
|
81b32ed576
|
@@ -11,7 +11,7 @@
|
|||||||
"dockerfile": "Dockerfile"
|
"dockerfile": "Dockerfile"
|
||||||
},
|
},
|
||||||
"postCreateCommand": "bun install",
|
"postCreateCommand": "bun install",
|
||||||
"postStartCommand": "./scripts/setup-git.sh && ./scripts/setup-nvim.sh && ./scripts/setup-tailscale.sh",
|
"postStartCommand": "./scripts/setup-git.sh && ./scripts/setup-nvim.sh",
|
||||||
// Features add additional features to your environment. See https://containers.dev/features
|
// Features add additional features to your environment. See https://containers.dev/features
|
||||||
// Beware: features are not supported on all platforms and may have unintended side-effects.
|
// Beware: features are not supported on all platforms and may have unintended side-effects.
|
||||||
"features": {
|
"features": {
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ services:
|
|||||||
- manual
|
- manual
|
||||||
commands:
|
commands:
|
||||||
start: |
|
start: |
|
||||||
gitpod --context environment environment port open 3000 --name "Aelis Backend" --protocol http
|
gitpod --context environment environment port open 3000 --name "Aelis Backend" --protocol https
|
||||||
cd apps/aelis-backend && bun run dev
|
cd apps/aelis-backend && bun run dev
|
||||||
|
|
||||||
admin-dashboard:
|
admin-dashboard:
|
||||||
@@ -35,5 +35,5 @@ services:
|
|||||||
- manual
|
- manual
|
||||||
commands:
|
commands:
|
||||||
start: |
|
start: |
|
||||||
gitpod --context environment environment port open 5174 --name "Admin Dashboard" --protocol http
|
gitpod --context environment environment port open 5174 --name "Admin Dashboard" --protocol https
|
||||||
cd apps/admin-dashboard && bun run dev --host
|
cd apps/admin-dashboard && bun run dev --host
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ export function createLlmClient(config: LlmClientConfig): LlmClient {
|
|||||||
type: "json_schema" as const,
|
type: "json_schema" as const,
|
||||||
jsonSchema: {
|
jsonSchema: {
|
||||||
name: "enhancement_result",
|
name: "enhancement_result",
|
||||||
strict: false,
|
strict: true,
|
||||||
schema: enhancementResultJsonSchema,
|
schema: enhancementResultJsonSchema,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -166,12 +166,11 @@ describe("schema sync", () => {
|
|||||||
expect(parseEnhancementResult(JSON.stringify(bad))).toBeNull()
|
expect(parseEnhancementResult(JSON.stringify(bad))).toBeNull()
|
||||||
|
|
||||||
// JSON Schema only allows string or null for slot values
|
// JSON Schema only allows string or null for slot values
|
||||||
const slotValueSchema =
|
const slotValueTypes =
|
||||||
enhancementResultJsonSchema.properties.slotFills.additionalProperties
|
enhancementResultJsonSchema.properties.slotFills.additionalProperties
|
||||||
.additionalProperties
|
.additionalProperties.type
|
||||||
expect(slotValueSchema.anyOf).toEqual([
|
expect(slotValueTypes).toContain("string")
|
||||||
{ type: "string" },
|
expect(slotValueTypes).toContain("null")
|
||||||
{ type: "null" },
|
expect(slotValueTypes).not.toContain("number")
|
||||||
])
|
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ export const enhancementResultJsonSchema = {
|
|||||||
additionalProperties: {
|
additionalProperties: {
|
||||||
type: "object",
|
type: "object",
|
||||||
additionalProperties: {
|
additionalProperties: {
|
||||||
anyOf: [{ type: "string" }, { type: "null" }],
|
type: ["string", "null"],
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,21 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# Tailscale setup script
|
|
||||||
# Authenticates with Tailscale if TS_AUTH_KEY is set and Tailscale is not already logged in
|
|
||||||
|
|
||||||
set -e
|
|
||||||
|
|
||||||
if [ -z "$TS_AUTH_KEY" ]; then
|
|
||||||
echo "TS_AUTH_KEY is not set, skipping Tailscale login."
|
|
||||||
exit 0
|
|
||||||
fi
|
|
||||||
|
|
||||||
STATUS=$(tailscale status 2>&1 || true)
|
|
||||||
|
|
||||||
if echo "$STATUS" | grep -qi "logged out\|stopped"; then
|
|
||||||
echo "Tailscale is not authenticated. Logging in..."
|
|
||||||
sudo tailscale up --accept-routes --auth-key="$TS_AUTH_KEY"
|
|
||||||
echo "Tailscale login complete."
|
|
||||||
else
|
|
||||||
echo "Tailscale is already authenticated, skipping."
|
|
||||||
fi
|
|
||||||
Reference in New Issue
Block a user