Create python-package-conda.yml#305
Create python-package-conda.yml#305porterlock112 wants to merge 106 commits intoSignificant-Gravitas:entrypoint-for-dockerfrom
Conversation
porterlock112
commented
Aug 12, 2025
…/dev Main <- Dev
…ificant-Gravitas#160) Add json validation error on pyright --------- Co-authored-by: majdyz <zamil@majdy.local>
Co-authored-by: majdyz <zamil@majdy.local>
… code reformatting
…dencies (Significant-Gravitas#167) The hardcoded dependencies `fastapi`, `pydantic`, `uvicorn` and `prisma` need special treatment, because if they are included in the `packages` of a generated function, those requirements are not scrutinized during code validation, allowing invalid versions.
…return description from the generated function (Significant-Gravitas#151) Fixing the promised Todo on parsing the description on generated function --------- Co-authored-by: majdyz <zamil@majdy.local>
…Significant-Gravitas#171) Apparently the generated DB schema is duplicated across every `CompiledRoute`. Combining the schemas of N routes with M tables will result in N-fold duplication and `prisma generate` failure. In turn, this breaks code fixing for server.py, resulting in broken deployments. Tempfix, applied in this commit: use the schema from only one of the `CompiledRoutes`. Long-term fix: clean up Codex' DB structure.
.. by moving module-level imports into the entrypoints where they are used
…/dev Main <- Dev
…cant-Gravitas#168) - Rewrite `git_init` subroutine in `deploy.packager` to use `gitpython` rather than `subcommand.run(["git", ...])` - Add `gitpython` dependency
…s#176) Co-authored-by: majdyz <zamil@majdy.local>
…t-Gravitas#164) - Add `create_pyproject` and `poetry_lock` subroutines in packager.py - Replace step to create requirements.txt with step to create pyproject.toml and poetry.lock - Add default value `None` to `python_path` parameter on `execute_command` utility function - Update generated Dockerfile and README.md for switch to Poetry
…ignificant-Gravitas#153) * Add debug commands to codex main module * Refactor debug command and add WhatToDebug model * Refactor debug command and add explore_database function * Add Interview field to Specification model * Removed need for resume points table * Formatting od debug messages * poetry lock update * Add migrations
* Introduce event logging, captured event: All non-Get HTTP operations. * Refactor routes.py on each API: removed redundant try-catch for unknown exception, use JsonResponse * Fix broken api_test.py due to DB seeding being removed. --------- Co-authored-by: majdyz <zamil@majdy.local>
…ificant-Gravitas#175) * Create .github/workflows and related deployment file * Update packager.py
…ignificant-Gravitas#179) Co-authored-by: majdyz <zamil@majdy.local>
…ant-Gravitas#180) * fix: minor annoyance * feat: v1 of error enhancement * feat: refactor the initial implementation * fix: linting 🙄 * feat: more loggin * nit: typehinting
…yRight failure) (Significant-Gravitas#181) To prevent frustrated tester, we should let buggy code to be generated instead of failing the project generation (if it failed on the linter) by appending a # TODO line on the code. --------- Co-authored-by: majdyz <zamil@majdy.local>
* Fixing docker setup * Added comment back in * formatting
…yRight failure) -- Improve TODO comments (Significant-Gravitas#187) --------- Co-authored-by: majdyz <zamil@majdy.local>
* feat(deploy): Use `gitpython` for Git operations in packager (Significant-Gravitas#168) - Rewrite `git_init` subroutine in `deploy.packager` to use `gitpython` rather than `subcommand.run(["git", ...])` - Add `gitpython` dependency * Avoid persisting request/response with no fields (Significant-Gravitas#176) Co-authored-by: majdyz <zamil@majdy.local> * Update health check to use db user and db name. (Significant-Gravitas#173) * feat(deploy): Switch generated requirements.txt to Poetry (Significant-Gravitas#164) - Add `create_pyproject` and `poetry_lock` subroutines in packager.py - Replace step to create requirements.txt with step to create pyproject.toml and poetry.lock - Add default value `None` to `python_path` parameter on `execute_command` utility function - Update generated Dockerfile and README.md for switch to Poetry * [AGPT-510] Debugging Part 1: Auto Resume points, debug command start (Significant-Gravitas#153) * Add debug commands to codex main module * Refactor debug command and add WhatToDebug model * Refactor debug command and add explore_database function * Add Interview field to Specification model * Removed need for resume points table * Formatting od debug messages * poetry lock update * Add migrations * [AGPT-594] Introduce Event Logging (Significant-Gravitas#169) * Introduce event logging, captured event: All non-Get HTTP operations. * Refactor routes.py on each API: removed redundant try-catch for unknown exception, use JsonResponse * Fix broken api_test.py due to DB seeding being removed. --------- Co-authored-by: majdyz <zamil@majdy.local> * [AGPT-596] Create .github/workflows and related deployment file (Significant-Gravitas#175) * Create .github/workflows and related deployment file * Update packager.py * [AGPT-593] Avoid persisting request/response with no fields - Part 2 (Significant-Gravitas#179) Co-authored-by: majdyz <zamil@majdy.local> * fix prisma query * Add support for enhancing errors with context aware details (Significant-Gravitas#180) * fix: minor annoyance * feat: v1 of error enhancement * feat: refactor the initial implementation * fix: linting 🙄 * feat: more loggin * nit: typehinting * fix: add migrations to docker image * fix: run validate and formate and also fix the param used (Significant-Gravitas#184) * [AGPT-621] Moving on with code generation with a buggy code (Ruff - PyRight failure) (Significant-Gravitas#181) To prevent frustrated tester, we should let buggy code to be generated instead of failing the project generation (if it failed on the linter) by appending a # TODO line on the code. --------- Co-authored-by: majdyz <zamil@majdy.local> * feat: updates to our dockercompose for discussion (Significant-Gravitas#177) * [AGPT-631] Fix docker setup (Significant-Gravitas#186) * Fixing docker setup * Added comment back in * formatting * create and push to github repo * Fixing formatting and logging * adding types --------- Co-authored-by: Reinier van der Leer <pwuts@agpt.co> Co-authored-by: Zamil Majdy <zamil.majdy@agpt.co> Co-authored-by: majdyz <zamil@majdy.local> Co-authored-by: Swifty <craigswift13@gmail.com> Co-authored-by: Nicholas Tindle <nicktindle@outlook.com> Co-authored-by: Nicholas Tindle <nicholas.tindle@agpt.co>
* fix(requirements): Fix Prisma schema parsing - Fix `model_pattern` and `field_pattern` to properly handle comments - expand attribute pattern to allow one more level of nested parentheses * expand `prisma_parse_test` unit tests
* refactor(common, develop/validate): Use `pathlib` to clean up file writing & path processing * refactor(deploy): Use `pathlib` to clean up file operations
* feat: create single function * update prompts to disable database stuff when no database schema is passed * added abilty to test function endpoint * feat: add write_function_sepec endpoint * del tmp json file * Updated endpoints * changed function routes to a functions group * Update codex/develop/agent.py Co-authored-by: codiumai-pr-agent-pro[bot] <151058649+codiumai-pr-agent-pro[bot]@users.noreply.github.com> * feat: add FunctionResponse return type to write_function endpoint * unified endpoints * fixed pr agents error --------- Co-authored-by: codiumai-pr-agent-pro[bot] <151058649+codiumai-pr-agent-pro[bot]@users.noreply.github.com>
* update to gpt4o * adding prompots dir
* feat: initial implementation of post endpoints, non working due to circular dependency * fix: linting * fix: recursive import * feat: refactor to support module additions * feat: fix up add route endpoint, move models to api layer * feat: add deletes
* Fix python path * formatting
…ravitas#285) * adding frontend to codebase for ease of local dev use. * fix linting
* fixing bugs in the frontend * linting
Embbed getting started video in README
Update PyProject Authors
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
Δ135 v135.7-RKR — auto-repin + Rekor-seal: patch + sealed run (minimal console)from pathlib import Path ROOT = Path.cwd() --- (1) Runner patch: auto-repin missing/invalid CIDs, write-back scroll, Rekor JSON proof ---trigger = textwrap.dedent(r''' -- coding: utf-8 --"""
ROOT = Path.cwd() CID_PATTERN = re.compile(r'^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|baf[1-9A-HJ-NP-Za-km-z]{20,})$') def now_iso() -> str: def sha256_path(p: Path) -> str: def which(bin_name: str) -> Optional[str]: def load_json(p: Path) -> Optional[Dict[str, Any]]: def write_json(path: Path, obj: Dict[str, Any]) -> None: def find_ledger_objects() -> List[Path]: ---------- Guardrails ----------def split_globs(s: str) -> List[str]: def allowed_by_globs(rel_path: str, allow_globs: List[str], deny_globs: List[str]) -> Tuple[bool, str]: ---------- Pin helpers ----------def ipfs_add_cli(path: Path) -> Optional[str]: def pinata_pin_json(obj: Dict[str, Any], name: str) -> Optional[str]: def maybe_pin_file_or_json(path: Path, obj: Optional[Dict[str, Any]], label: str) -> Tuple[str, str]: ---------- Rekor ----------def rekor_upload_json(path: Path) -> Tuple[bool, Dict[str, Any]]: ---------- Validation ----------def validate_builtin(obj: Dict[str, Any]) -> List[str]: def validate_with_schema(obj: Dict[str, Any]) -> List[str]: def write_validation_report(results: List[Dict[str, Any]]) -> Path: ---------- QR ----------def emit_cid_qr(cid: Optional[str]) -> Dict[str, Optional[str]]: ---------- Glyph ----------def update_glyph(plan: Dict[str, Any], mode: str, pins: Dict[str, Dict[str, str]], extra: Dict[str, Any]) -> Dict[str, Any]: ---------- Main ----------def main(argv: Optional[List[str]] = None) -> int: if name == "main": (SCRIPTS / "Δ135_TRIGGER.py").write_text(trigger, encoding="utf-8") --- (2) Dashboard patch: Rekor panel + pinning matrix ---tile = textwrap.dedent(r''' ROOT = Path.cwd() def load_json(p: Path): st.title("Δ135 — Auto-Repin + Rekor") glyph = load_json(GLYPH) c1, c2, c3, c4 = st.columns(4) issues = validation.get("results", []) with st.expander("Guardrails (env)"): st.write("---") st.write("---") st.write("---") st.write("---") st.write("---") (GUI / "Δ135_tile.py").write_text(tile, encoding="utf-8") --- (3) Execute sealed run (uses env if present) ---def run(cmd): rc, out, err = run([ Write a tiny summary for quick inspectionsummary = { |