Skip to content

Add AGENTS.md for dev environment setup - #1

Draft
TheEvalon wants to merge 1 commit into
mainfrom
cursor/setup-dev-environment-aa27
Draft

Add AGENTS.md for dev environment setup#1
TheEvalon wants to merge 1 commit into
mainfrom
cursor/setup-dev-environment-aa27

Conversation

@TheEvalon

Copy link
Copy Markdown
Owner

Adds AGENTS.md with Cursor Cloud specific instructions documenting that this is currently an empty repository with no applications, services, or dependencies to set up.

When application code is added to this repo, AGENTS.md should be updated with build, lint, test, and run instructions.

Open in Web Open in Cursor 

Co-authored-by: TheEvalon <TheEvalon@users.noreply.github.com>
cursor Bot pushed a commit that referenced this pull request May 10, 2026
#1 (HIGH) — import_bundle FK ordering. Folders were inserted before
credential_profiles, but folders.default_credential_id FKs to
credential_profiles(id) and the pool runs with foreign_keys=ON. Real
exports where a folder has a default_credential_id failed FK validation.

The same hazard applies to folder parent_id chains (a child folder
exported before its parent).

Fix: run the whole import inside one transaction with
PRAGMA defer_foreign_keys = ON and use INSERT OR IGNORE for idempotent
duplicate-skipping. All reads/writes go through the transaction, so
the import works on test pools with max_connections=1 too. Counts come
from rows_affected() rather than pre-checks.

New regression tests:
- import_with_folder_referencing_credential_in_same_bundle (the exact
  Bugbot scenario)
- import_with_unsorted_folder_parents_succeeds (child-before-parent
  ordering)

#2 (MEDIUM) — validate_relative_path false positives. p.contains("..")
rejected legal filenames like 'backup..tar.gz', 'archive..2024.zip',
'my..folder'. Replaced with a path-component split on / and \ that
flags only standalone '..' segments.

Test coverage expanded: explicit OK cases for '..'-containing names,
explicit error cases for traversal segments at every position.

#3 (MEDIUM) — Vault::delete didn't gate on unlock. Adding
require_unlocked() at the top brings it in line with put/get and
preserves the invariant that all mutations require an unlocked vault.

New regression test:
- delete_requires_unlocked: confirms VaultLocked is returned and the
  ciphertext survives.

24 unit tests passing (up from 21). Clippy/fmt clean,
npm lint/typecheck/build clean.

Co-authored-by: TheEvalon <TheEvalon@users.noreply.github.com>
@cursor
cursor Bot deleted the cursor/setup-dev-environment-aa27 branch May 10, 2026 10:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants