-
Notifications
You must be signed in to change notification settings - Fork 0
Merge pull request #18 from Huynhthuongg/claude/design-black-screen-termux-ai-agent [WIP] Design black screen with Termux and AI command execution #35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Huynhthuongg
wants to merge
17
commits into
codex/fix-high-priority-bug-in-public-fallback
Choose a base branch
from
main
base: codex/fix-high-priority-bug-in-public-fallback
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
7c84c3b
Initial plan
Claude f1a37df
Initial plan
Claude 5f97e8e
fix(sandbox-ai): graceful fallback when Clerk publishable key is missing
Huynhthuongg 071a51c
feat(sandbox-ai): add auth mode switch and health-config diagnostics
Huynhthuongg a8970a7
Merge pull request #21 from Huynhthuongg/codex/explain-codebase-struc…
Huynhthuongg 1646f3f
Merge pull request #20 from Huynhthuongg/claude/feature-tinh-nang
Huynhthuongg 8a58d37
Merge pull request #18 from Huynhthuongg/claude/design-black-screen-t…
Huynhthuongg 2b13095
Merge pull request #26 from Huynhthuongg/main
Huynhthuongg eb7024e
Initial plan
Claude 8aea644
Merge pull request #32 from Huynhthuongg/claude/grant-execute-permiss…
Huynhthuongg fd19a0e
Merge pull request #30 from Huynhthuongg/revert-13-revert-12-revert-1…
Huynhthuongg 1d97c30
fix: correct branding typo and update repository link
Huynhthuongg a992a51
Merge pull request #37 from Huynhthuongg/codex/review-and-fix-reposit…
Huynhthuongg 0cd30a6
feat: add OpenTelemetry instrumentation with Drizzle ORM tracing
1701d38
Merge pull request #48 from Huynhthuongg/feature/add-opentelemetry-dr…
Huynhthuongg 00b6589
build(deps-dev): bump the npm_and_yarn group across 2 directories wit…
dependabot[bot] d66a028
Merge pull request #49 from Huynhthuongg/dependabot/npm_and_yarn/npm_…
Huynhthuongg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| # OpenTelemetry Configuration for Kubiks | ||
|
|
||
| # The endpoint where telemetry data will be sent | ||
| OTEL_EXPORTER_OTLP_ENDPOINT=https://ingest.kubiks.app | ||
|
|
||
| # The protocol used for sending data (http/protobuf is the standard) | ||
| OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf | ||
|
|
||
| # Authentication header with your Kubiks API key | ||
| # Replace with your actual API key from Kubiks dashboard | ||
| OTEL_EXPORTER_OTLP_HEADERS=x-kubiks-key=YOUR_KUBIKS_API_KEY | ||
|
|
||
| # Service name identifies your application in Kubiks | ||
| OTEL_SERVICE_NAME=api-server | ||
|
|
||
| # Optional: Set log level for OpenTelemetry SDK | ||
| # Options: debug, info, warn, error | ||
| # OTEL_LOG_LEVEL=info |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| import "./instrumentation.js"; | ||
| import app from "./app"; | ||
| import { logger } from "./lib/logger"; | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| import { NodeSDK } from "@opentelemetry/sdk-node"; | ||
| import { getNodeAutoInstrumentations } from "@opentelemetry/auto-instrumentations-node"; | ||
| import { OTLPTraceExporter } from "@opentelemetry/exporter-trace-otlp-http"; | ||
| import { DrizzleInstrumentation } from "@kubiks/otel-drizzle"; | ||
| import { logger } from "./lib/logger"; | ||
|
|
||
| const otelSDK = new NodeSDK({ | ||
| traceExporter: new OTLPTraceExporter({ | ||
| url: process.env.OTEL_EXPORTER_OTLP_ENDPOINT || "https://ingest.kubiks.app/v1/traces", | ||
| headers: { | ||
| "x-kubiks-key": process.env.OTEL_EXPORTER_OTLP_HEADERS?.split("=")[1] || "", | ||
| }, | ||
| }), | ||
| instrumentations: [ | ||
| getNodeAutoInstrumentations({ | ||
| "@opentelemetry/instrumentation-express": { | ||
| enabled: true, | ||
| }, | ||
| "@opentelemetry/instrumentation-http": { | ||
| enabled: true, | ||
| }, | ||
| }), | ||
| new DrizzleInstrumentation(), | ||
| ], | ||
| serviceName: process.env.OTEL_SERVICE_NAME || "api-server", | ||
| }); | ||
|
|
||
| otelSDK | ||
| .start() | ||
| .then(() => { | ||
| logger.info("OpenTelemetry started successfully"); | ||
| }) | ||
| .catch((err) => { | ||
| logger.error({ err }, "Failed to start OpenTelemetry"); | ||
| }); | ||
|
|
||
| process.on("SIGTERM", () => { | ||
| otelSDK | ||
| .shutdown() | ||
| .then(() => logger.info("OpenTelemetry shutdown successfully")) | ||
| .catch((err) => logger.error({ err }, "Failed to shutdown OpenTelemetry")); | ||
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # Self-healing reminder workflow (OpenClaw/Eios style) | ||
|
|
||
| ## Goal | ||
| Automatically remind maintainers when deployment-critical configuration or code artifacts are missing. | ||
|
|
||
| ## 1) Detect | ||
| - On every deploy, open `/health-config` and validate required env keys. | ||
| - On CI, run `pnpm --filter @workspace/sandbox-ai run build` and fail on errors. | ||
|
|
||
| ## 2) Classify | ||
| - **Config missing** (e.g. `VITE_CLERK_PUBLISHABLE_KEY` when `VITE_AUTH_MODE=clerk`). | ||
| - **Artifact missing** (route/page/module referenced but not found). | ||
| - **Type/build breakage** (TypeScript/build errors). | ||
|
|
||
| ## 3) Notify owner | ||
| - Config missing -> notify DevOps/release owner. | ||
| - Artifact missing -> notify feature owner/repo maintainer. | ||
| - Build/type breakage -> notify author of latest PR and reviewer. | ||
|
|
||
| ## 4) Auto-remediation checklist | ||
| - If auth env missing in non-production: set `VITE_AUTH_MODE=public` as temporary fallback. | ||
| - If auth env missing in production: block release and require secret injection. | ||
| - If artifact missing: create placeholder file + TODO with owner and deadline. | ||
|
|
||
| ## 5) Prevent regressions | ||
| - Add a PR checklist item: “Did you verify `/health-config` and auth mode behavior?” | ||
| - Keep a short runbook for required variables per environment. |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.