Commit Graph
52 Commits
Author SHA1 Message Date
github-actions[bot] 105f03fb94 chore: update package versions 2026-07-06 23:34:27 +00:00
github-actions[bot] 16912e7d33 chore: update package versions 2026-07-06 05:53:33 +00:00
github-actions[bot] 0344efb844 chore: update package versions 2026-07-06 05:51:13 +00:00
github-actions[bot] 675e8608af chore: update package versions 2026-07-06 04:45:14 +00:00
github-actions[bot] 1fe5150740 chore: update package versions 2026-07-06 04:29:19 +00:00
github-actions[bot] 56dd0f357b chore: update package versions 2026-07-06 03:17:30 +00:00
github-actions[bot] 976aaffd56 chore: update package versions 2026-07-02 17:12:34 +00:00
github-actions[bot] 484850e8d2 chore: update package versions
all-good: Did all the other checks pass? / all-good (push) Has been cancelled
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Publish RDE dashboard release / publish-dashboard (push) Has been cancelled
Docker Server Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Server Build and Run / docker (push) Has been cancelled
Runs E2E API Tests / E2E Tests (Node ${{ matrix.node-version }}, Freestyle ${{ matrix.freestyle-mode }}) (mock, 22.x) (push) Has been cancelled
Runs E2E API Tests / E2E Tests (Node ${{ matrix.node-version }}, Freestyle ${{ matrix.freestyle-mode }}) (prod, 22.x) (push) Has been cancelled
Runs E2E API Tests with custom port prefix / build (22.x) (push) Has been cancelled
Runs E2E Fallback Tests / E2E Fallback Tests (Node ${{ matrix.node-version }}) (22.x) (push) Has been cancelled
Lint & build / lint_and_build (24) (push) Has been cancelled
Publish npm packages / publish (push) Has been cancelled
Publish Swift SDK to prerelease repo / publish (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2026-07-02 16:45:16 +00:00
github-actions[bot] e883f112fb chore: update package versions 2026-07-01 18:33:02 +00:00
github-actions[bot] c9612539c7 chore: update package versions 2026-06-30 23:15:23 +00:00
Konsti WohlwendandGitHub 6a979e8b3e chore: remove unused dependencies from package.json files (#1698) 2026-06-30 15:45:25 -07:00
Konsti WohlwendandGitHub d472283283 Use tsdown -W --watch (workspace mode) for dev builds (#1689) 2026-06-30 15:40:08 -07:00
github-actions[bot] 31b32735bf chore: update package versions 2026-06-30 20:44:13 +00:00
github-actions[bot] 9b52f76520 chore: update package versions 2026-06-30 18:27:55 +00:00
github-actions[bot] ea2915faa8 chore: update package versions 2026-06-30 18:04:45 +00:00
github-actions[bot] d962e9843a chore: update package versions 2026-06-30 17:18:40 +00:00
github-actions[bot] 2c5b2d02cd chore: update package versions 2026-06-30 01:19:04 +00:00
MantraGitHubDevin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>mantra
6bbc792fb3 refactor: migrate config parsing from Babel AST to jiti (#1661)
all-good: Did all the other checks pass? / all-good (push) Has been cancelled
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Server Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Server Build and Run / docker (push) Has been cancelled
Runs E2E API Tests (Local Emulator) / E2E Tests (Local Emulator, Node ${{ matrix.node-version }}) (22.x) (push) Has been cancelled
Runs E2E API Tests / E2E Tests (Node ${{ matrix.node-version }}, Freestyle ${{ matrix.freestyle-mode }}) (mock, 22.x) (push) Has been cancelled
Runs E2E API Tests / E2E Tests (Node ${{ matrix.node-version }}, Freestyle ${{ matrix.freestyle-mode }}) (prod, 22.x) (push) Has been cancelled
Runs E2E API Tests with custom port prefix / build (22.x) (push) Has been cancelled
Runs E2E Fallback Tests / E2E Fallback Tests (Node ${{ matrix.node-version }}) (22.x) (push) Has been cancelled
Lint & build / lint_and_build (24) (push) Has been cancelled
Publish npm packages / publish (push) Has been cancelled
Publish Swift SDK to prerelease repo / publish (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
## Summary

Replace `parseHexclaveConfigFileContent` /
`evaluateStaticConfigExpression` (Babel AST walker) with
`evalConfigFileContent` using `jiti.evalModule()`. Move
`renderConfigFileContent` from `hexclave-config-file.ts` →
`config-rendering.ts`.

Added `jiti` dep to `@hexclave/shared` (already used in shared-backend,
dashboard, backend, cli).

Link to Devin session:
https://app.devin.ai/sessions/cb098b1fb62b4dfeaf3324bc2e1377f1
Requested by: @mantrakp04

<!-- This is an auto-generated description by cubic. -->
---
## Summary by cubic
Migrates trusted config evaluation to `jiti` and moves GitHub config
edits to a server‑side repo agent running in a Vercel Sandbox with an
apply → review → commit flow. Adds run tracking, safer defaults, and a
dashboard diff review with clear, user‑facing errors.

- **New Features**
- Two‑phase flow and endpoints: POST `/internal/config/github/apply`,
`.../commit`, `.../cancel`, plus GET `.../run`; each run tracked by
`run_id` in `ConfigAgentRun` (status, stage, progress, diff, base
commit, sandbox id). Run ids validated as UUIDs.
- Repo agent runs in a fresh sandboxed clone; warm‑boot via base
snapshot (`apps/backend/scripts/config-agent/build-image.ts`,
`HEXCLAVE_CONFIG_AGENT_BASE_SNAPSHOT_ID`). Captures a unified diff and
base commit, stops the sandbox at review, then rebuilds files from the
stored diff on commit. Returns `commitSha`, uses a safe conflict error,
and strips OAuth tokens from git remotes.
- Dashboard: non‑dismissible progress and diff preview using
`@pierre/diffs` with a cross‑tab run watcher; blocks conflicting edits
and supports cancel/commit review flow. Adds an RDE “apply” path with
progress UI.
- AI proxy defaults to `/api/latest/integrations/ai-proxy` (production
passthrough via `PRODUCTION_AI_PROXY_BASE_URL`); adds
`anthropic/claude-haiku-4.5`.

- **Refactors and Fixes**
- Trusted eval via `@hexclave/shared` `config-eval` using `jiti`;
browser‑safe parsing for untrusted GitHub content; rendering remains in
`config-rendering`. Clear separation of Node‑only code into
`config-eval`.
- Shared agent/updater logic moved to `@hexclave/shared-backend`;
removed deterministic fast path so all writes go through the agent to
preserve authoring. CLI and emulator updated to use `config-eval`.
- Defaults/renames: config file `hexclave.config.ts` (CLI `config pull`
defaults to this path), workflow `hexclave-config-sync.yml`; env
prefixes standardized to `HEXCLAVE_*`.
- Integrity and UX: commit advancement gated to the current linked
repo/branch; cancel clears any captured diff; elapsed timer handles late
starts and the not‑started sentinel; loader vs invalid config export
errors separated for accurate messaging.
- Onboarding and seeds: wizard now uses environment‑based OAuth provider
setup with updated tests; corrected GitHub owner in dummy project
seeding.

<sup>Written for commit 6cf0e899a0.
Summary will update on new commits.</sup>

<a
href="https://cubic.dev/pr/hexclave/hexclave/pull/1661?utm_source=github"
target="_blank" rel="noopener noreferrer"
data-no-image-dialog="true"><picture><source
media="(prefers-color-scheme: dark)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"><source
media="(prefers-color-scheme: light)"
srcset="https://www.cubic.dev/buttons/review-in-cubic-light.svg"><img
alt="Review in cubic"
src="https://www.cubic.dev/buttons/review-in-cubic-dark.svg"></picture></a>

<!-- End of auto-generated description by cubic. -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit

* **Refactor**
* Improved configuration file parsing/validation by evaluating config
modules, supporting both string and object-based `config` exports and
ensuring the expected `config` export is present.
* Updated config rendering and import-package detection to consistently
generate the `config` export and handle legacy package entrypoints.
* Tightened handling of non-statically-resolvable forms during update
flows.
* **Tests**
* Updated and extended config parsing/validation tests to reflect the
new evaluation behavior and edge cases.
* **Chores**
  * Added a Jiti-based dependency to support runtime evaluation.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: mantra <[email protected]>
2026-06-29 10:25:11 -07:00
github-actions[bot] 092c27dd0e chore: update package versions 2026-06-27 22:00:12 +00:00
github-actions[bot] e70e95a3af chore: update package versions 2026-06-27 00:28:49 +00:00
github-actions[bot] c868ec31bc chore: update package versions 2026-06-26 21:28:46 +00:00
github-actions[bot] 788e7cc87c chore: update package versions 2026-06-26 21:18:23 +00:00
github-actions[bot] ee48755ef3 chore: update package versions 2026-06-26 20:38:10 +00:00
github-actions[bot] 53b0cae480 chore: update package versions 2026-06-26 19:10:16 +00:00
github-actions[bot] fc6d111e6b chore: update package versions 2026-06-26 18:50:39 +00:00
github-actions[bot] c749cf2b62 chore: update package versions 2026-06-25 19:11:40 +00:00
github-actions[bot] 09c9df410a chore: update package versions
all-good: Did all the other checks pass? / all-good (push) Has been cancelled
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
DB migration compat / Check if migrations changed (push) Has been cancelled
Docker Server Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Server Build and Run / docker (push) Has been cancelled
Runs E2E API Tests (Local Emulator) / E2E Tests (Local Emulator, Node ${{ matrix.node-version }}) (22.x) (push) Has been cancelled
Runs E2E API Tests / E2E Tests (Node ${{ matrix.node-version }}, Freestyle ${{ matrix.freestyle-mode }}) (mock, 22.x) (push) Has been cancelled
Runs E2E API Tests / E2E Tests (Node ${{ matrix.node-version }}, Freestyle ${{ matrix.freestyle-mode }}) (prod, 22.x) (push) Has been cancelled
Runs E2E API Tests with custom port prefix / build (22.x) (push) Has been cancelled
Runs E2E Fallback Tests / E2E Fallback Tests (Node ${{ matrix.node-version }}) (22.x) (push) Has been cancelled
Lint & build / lint_and_build (24) (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
DB migration compat / Back-compat — Current branch migrations with ${{ needs.check-migrations-changed.outputs.base_branch }} branch code (push) Has been cancelled
DB migration compat / Forward-compat — Current branch code with ${{ needs.check-migrations-changed.outputs.base_branch }} branch migrations (push) Has been cancelled
DB migration compat / No migration changes (skipped) (push) Has been cancelled
2026-06-24 01:55:58 +00:00
Konsti WohlwendandGitHub 59f6e53f7e chore: upgrade deprecated dependencies (#1654) 2026-06-23 15:44:37 -07:00
github-actions[bot] 781dde9a78 chore: update package versions 2026-06-23 20:06:39 +00:00
github-actions[bot] cb7ea302c7 chore: update package versions 2026-06-23 18:48:44 +00:00
github-actions[bot] 163e7be002 chore: update package versions 2026-06-23 17:26:08 +00:00
github-actions[bot] 88eae6fbf1 chore: update package versions 2026-06-22 23:00:06 +00:00
github-actions[bot] d064b20290 chore: update package versions 2026-06-20 00:10:09 +00:00
github-actions[bot] c32b668076 chore: update package versions 2026-06-19 21:42:14 +00:00
github-actions[bot] 70d90494bc chore: update package versions 2026-06-17 20:31:22 +00:00
github-actions[bot] 2cf2552803 chore: update package versions 2026-06-17 17:57:16 +00:00
github-actions[bot] 7955ef2450 chore: update package versions 2026-06-16 19:32:53 +00:00
github-actions[bot] 13e901f1bd chore: update package versions 2026-06-16 18:55:24 +00:00
github-actions[bot] eabbc05a49 chore: update package versions
all-good: Did all the other checks pass? / all-good (push) Has been cancelled
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Server Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Server Build and Run / docker (push) Has been cancelled
Runs E2E API Tests (Local Emulator) / E2E Tests (Local Emulator, Node ${{ matrix.node-version }}) (22.x) (push) Has been cancelled
Runs E2E API Tests / E2E Tests (Node ${{ matrix.node-version }}, Freestyle ${{ matrix.freestyle-mode }}) (mock, 22.x) (push) Has been cancelled
Runs E2E API Tests / E2E Tests (Node ${{ matrix.node-version }}, Freestyle ${{ matrix.freestyle-mode }}) (prod, 22.x) (push) Has been cancelled
Runs E2E API Tests with custom port prefix / build (22.x) (push) Has been cancelled
Runs E2E Fallback Tests / E2E Fallback Tests (Node ${{ matrix.node-version }}) (22.x) (push) Has been cancelled
Lint & build / lint_and_build (24) (push) Has been cancelled
Publish npm packages / publish (push) Has been cancelled
Publish Swift SDK to prerelease repo / publish (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2026-06-15 23:49:50 +00:00
github-actions[bot] 47b9a3a431 chore: update package versions 2026-06-15 22:30:42 +00:00
github-actions[bot] e07c509f81 chore: update package versions 2026-06-15 19:57:58 +00:00
github-actions[bot] 7063aa2df7 chore: update package versions 2026-06-13 01:26:27 +00:00
github-actions[bot] 6de253633f chore: update package versions 2026-06-13 00:25:03 +00:00
github-actions[bot] 5eedb484e1 chore: update package versions 2026-06-12 21:09:46 +00:00
github-actions[bot] 1999ad8be3 chore: update package versions 2026-06-11 17:19:24 +00:00
github-actions[bot] 3132de1cae chore: update package versions 2026-06-10 18:10:23 +00:00
github-actions[bot] 96273a9d65 chore: update package versions 2026-06-08 18:18:54 +00:00
github-actions[bot] 4fdd2b3831 chore: update package versions 2026-06-08 17:36:50 +00:00
github-actions[bot] 468a221379 chore: update package versions 2026-06-06 00:07:24 +00:00
github-actions[bot] 461b9acd68 chore: update package versions 2026-06-05 23:54:49 +00:00