Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: TMHSDigital/CFX-Developer-Tools
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v0.14.0
Choose a base ref
...
head repository: TMHSDigital/CFX-Developer-Tools
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v0.14.1
Choose a head ref
  • 17 commits
  • 52 files changed
  • 3 contributors

Commits on Nov 21, 2026

  1. fix: stop treating ox_lib as ox_core and report framework ties (#33)

    detect_framework scored ox_lib (a library used by every framework) as
    ox_core, matched manifest names as bare substrings (qb-target counted as
    qbcore, esx_menu as esx, commented lines too), and resolved ties by dict
    order, so bridge resources were reported as esx.
    
    - Match manifest signals as quoted dependency/script tokens and ignore
      Lua comments.
    - Report ox_lib and oxmysql as libraries without scoring them.
    - Report "multiple frameworks / bridge (a, b)" when the top scores tie.
    
    Verified: every framework template detects its own framework with high
    confidence; an ox_lib-only manifest is standalone with ox_lib listed;
    @qbx_core + @ox_lib is qbox; es_extended + qb-core and the secure-shop
    example report a bridge; empty and missing directories behave as before.
    
    Fixes #33
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    TMHSDigital and claude committed Nov 21, 2026
    Configuration menu
    Copy the full SHA
    a43be53 View commit details
    Browse the repository at this point in the history
  2. fix: never report rejected txAdmin requests as sent (#34)

    The client returned JSON bodies of HTTP 4xx/5xx responses as if they
    were successes, and _render_toast fell back to "request sent" for any
    body without a recognised toast, so a rejected restart or stop was
    reported as sent.
    
    - Raise TxAdminError for every HTTP status >= 400, using the body's
      error/msg (or "session rejected") as detail.
    - Treat logout bodies, missing or unknown toast types as an unexpected
      response and show the raw body.
    - Reject boolean and non-positive netids before sending, clamp the
      player search limit to at least 1, and count "more" from the players
      actually shown.
    
    Verified against a local fake panel (ThreadingHTTPServer): 403 logout,
    500 HTML, 200 {"logout": true} and 200 {} all report errors; a success
    toast still reports OK; bad netids send no request; limit 0 and 25 give
    correct "more" counts.
    
    Fixes #34
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    TMHSDigital and claude committed Nov 21, 2026
    Configuration menu
    Copy the full SHA
    40f5a20 View commit details
    Browse the repository at this point in the history
  3. fix: find natives by their canonical SCREAMING_SNAKE names (#35)

    lookup_native compared lowercased substrings, so the canonical name
    GET_PLAYER_PED never matched the stored GetPlayerPed. The game value was
    also used unchecked in the data filename, and malformed entries
    (null description, params without type) raised.
    
    - Compare names with underscores removed and case folded; accept hashes
      with or without 0x.
    - Validate game against gta5/rdr3.
    - Read optional fields defensively when filtering and formatting.
    - Assert hash/description types and param shape in validate.yml.
    
    Verified: GET_PLAYER_PED, GetPlayerPed and getplayerped all find
    GetPlayerPed; 0x6E31E993 and 6e31e993 find it by hash; game="rdr2"
    returns an invalid-game error; a native with a null description and a
    param without type formats without raising.
    
    Fixes #35
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    TMHSDigital and claude committed Nov 21, 2026
    Configuration menu
    Copy the full SHA
    ef4d72f View commit details
    Browse the repository at this point in the history
  4. fix: correct native side, deprecated flags and per-game CFX natives (#36

    )
    
    classify_side applied CFX server-native name patterns to game natives,
    so client-only RAGE natives such as GetPlayerPed, DeleteEntity and
    GetPlayerMaxArmour were labelled shared or server. The deprecated flag
    was set from raw descriptions including code samples. All CFX natives
    were merged into both databases, although upstream natives_cfx.json
    marks game-specific ones with a "game" field.
    
    - Use the name heuristics only for CFX natives; game natives are client
      (SERVER/ADMIN namespaces excepted).
    - Match deprecation wording in the cleaned description, and only when
      it says the native itself is deprecated.
    - Merge CFX natives into a game's DB only when their "game" field is
      absent or matches (gta5/rdr3).
    - Re-apply these rules to the committed natives_gta5.json and
      natives_rdr3.json with the script's own functions (no upstream
      refresh): 12 side fixes per game, 4 GTA5 deprecated flags cleared,
      31 non-GTA5 CFX natives removed from GTA5 and 447 non-RDR3 ones from
      RDR3.
    
    Verified: every non-CFX entry is client in both DBs; GetPlayerMaxArmour
    is returned for side=client; SetPedCombatAttributes and TaskPlaneMission
    are no longer flagged; SetVehicleHandlingFloat is gone from RDR3.
    
    Fixes #36
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    TMHSDigital and claude committed Nov 21, 2026
    Configuration menu
    Copy the full SHA
    fdacbd7 View commit details
    Browse the repository at this point in the history
  5. ci: release only after Validate passes and for release-worthy commits (…

    …#37)
    
    release.yml ran on every push to main in parallel with Validate, so a
    failing commit still got a version bump, tag and GitHub Release, and
    any commit (docs, chore) produced at least a patch release. Breaking
    changes were only detected for feat!.
    
    - Trigger Release via workflow_run on Validate (completed, main) and
      run only when it succeeded for a push.
    - Bump major for any `<type>!:` subject or a BREAKING CHANGE footer,
      minor for feat, patch for fix/perf, and skip the release otherwise.
    - Describe the new behaviour in CLAUDE.md and AGENTS.md.
    
    The bump rules were checked locally against sample subjects/bodies:
    docs+chore -> none, fix! -> major, BREAKING CHANGE footer -> major,
    feat+fix -> minor, fix -> patch, ci -> none.
    
    Fixes #37
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    TMHSDigital and claude committed Nov 21, 2026
    Configuration menu
    Copy the full SHA
    7769055 View commit details
    Browse the repository at this point in the history
  6. ci: check credentials in examples/ by filtering on the matched value (#…

    …38)
    
    The hardcoded-credential step piped whole output lines through
    `grep -v example`, and every hit under examples/ contains "example" in
    its path, so the reference resources were never checked.
    
    Extract only the matched text with `grep -o`, drop placeholder values
    (your-/your_, example, placeholder, mock, changeme, <...>, ${...}), and
    print path:line for the remaining hits without echoing the value.
    
    Verified by running the step against the repo (passes) and a fixture
    where a fake password under examples/ fails while placeholder values in
    other files pass.
    
    Fixes #38
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    TMHSDigital and claude committed Nov 21, 2026
    Configuration menu
    Copy the full SHA
    be7d96e View commit details
    Browse the repository at this point in the history
  7. ci: pin third-party actions to SHAs and scope release write access (#41)

    Workflows that push to main or publish releases ran with a
    workflow-level contents: write token and used mutable action tags, and
    the release commit staged everything with `git add -A`.
    
    - Pin actions/checkout, setup-python, upload-pages-artifact,
      deploy-pages, stale and softprops/action-gh-release to commit SHAs
      with version comments (Dependabot's github-actions config keeps them
      current).
    - Keep the two Developer-Tools-Directory actions on their floating
      tags, as the meta-repo's ci-cd and release-doc-sync standards
      require, and move drift-check from the stale @v1.9 to the current
      @v1.20 minor.
    - Declare contents: write only on the release, update-natives and
      update-docs-index jobs; workflow defaults are read-only.
    - Stage an explicit file list in the release commit (plugin.json,
      README.md, CHANGELOG.md, CLAUDE.md, ROADMAP.md).
    
    Fixes #41
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    TMHSDigital and claude committed Nov 21, 2026
    Configuration menu
    Copy the full SHA
    440a31d View commit details
    Browse the repository at this point in the history
  8. test: add a pytest suite for the MCP server tools (#40)

    The MCP server had no tests; CI only ran py_compile, so file-writing,
    manifest-generation and destructive txAdmin tools were unverified.
    
    - mcp-server/tests/ with one test file per tool module (scaffold,
      manifest_gen, manifest_common, detect_framework, natives, txadmin,
      events/docs search) plus a server test asserting the 10 documented
      tools are registered and data is found from any working directory.
    - txAdmin is tested against a local ThreadingHTTPServer fake panel; file
      tools use tmp_path; data tools use small fixture JSON plus real-data
      smoke tests. No network access is needed.
    - Search and lookup tools now return an error instead of raising when a
      data file is unreadable or malformed.
    - requirements-dev.txt, a pytest step in the validate-python job, a
      CONTRIBUTING section on running the tests, and .pytest_cache/ ignored.
    
    104 tests pass locally.
    
    Fixes #40
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    TMHSDigital and claude committed Nov 21, 2026
    Configuration menu
    Copy the full SHA
    19d907a View commit details
    Browse the repository at this point in the history
  9. fix: make shipped snippets load and handle common input (#65)

    - state-bag-entity.js declared `const vehicle` twice in one scope and
      did not parse; split it into clearly labelled server and client parts
      with distinct names and a vehicle check.
    - register-command.cs read args[0] unconditionally; take a
      List<object> and handle the zero-argument case.
    - export-function.lua called an undefined doSomeCalculation; define a
      placeholder implementation.
    - verified-payment-callback.lua accepted non-integer timestamps, which
      later raised in the %d format; convert with math.tointeger so they
      get the existing 400 reply.
    
    Verified: `node --check` passes for every JS snippet, and the C# snippet
    compiles against CitizenFX.Core.Server (0 errors). No Lua interpreter is
    available locally; the Lua edits were reviewed by hand and are syntax
    checked by CI once luac runs there.
    
    Fixes #65
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    TMHSDigital and claude committed Nov 21, 2026
    Configuration menu
    Copy the full SHA
    99c490c View commit details
    Browse the repository at this point in the history
  10. ci: import the MCP server and syntax-check snippets and examples (#39)

    CI only ran py_compile on a hand-maintained module list, never imported
    the server, and never parsed the Lua/JS shipped in snippets, templates
    and examples (examples' manifests were not checked at all).
    
    - Compile every module with compileall (no file list to maintain).
    - Import the server, assert the 10 tools register, and smoke-call the
      natives, events and docs tools; run on ubuntu and windows.
    - node --check every JS file in snippets/, templates/ and examples/
      (bundler-only web/ sources excluded).
    - Install lua5.4 and run luac -p on every tracked .lua file, replacing
      CfxLua backtick hashes first.
    - Check examples/ manifests too, with line-anchored fx_version and games
      regexes, and json-load every template package.json.
    
    The manifest, package.json, JS and smoke steps were dry-run locally and
    pass; the Lua step needs luac, which is not available locally, so it is
    first exercised by this push.
    
    Fixes #39
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    TMHSDigital and claude committed Nov 21, 2026
    Configuration menu
    Copy the full SHA
    4c615a6 View commit details
    Browse the repository at this point in the history
  11. fix: remove invalid lua54 directives and align lua54 guidance (#44)

    CLAUDE.md prescribed `lua54 true` and all five example manifests used
    it, while the rule, skills and CI said not to include the directive.
    `lua54 true` is also not valid Lua (a bare call needs a string or table
    argument): the new luac CI step fails on every example manifest, so
    FXServer could not parse them either.
    
    - Remove the directive from the five example manifests.
    - State one position everywhere (CLAUDE.md, AGENTS.md, ROADMAP.md, the
      fxmanifest rule and skill, examples READMEs): no lua54 directive, Lua
      5.4 is the only runtime.
    - CI now rejects any lua54 line in templates and examples manifests.
    
    Found by the luac step added in the previous commit (Validate run
    44862288189 failed with "syntax error near 'true'" at line 9 of each
    example manifest).
    
    Fixes #44
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    TMHSDigital and claude committed Nov 21, 2026
    Configuration menu
    Copy the full SHA
    d3b48ef View commit details
    Browse the repository at this point in the history
  12. docs: keep txAdmin credentials out of tracked config files (#42)

    The txAdmin skill told users to put TXADMIN_USERNAME/TXADMIN_PASSWORD as
    literals in the env block of .cursor/mcp.json, a file this repo (and
    most resource repos) commits.
    
    - Tell users to set the variables in the OS or shell environment, warn
      explicitly against putting them in project files, and show the
      `${env:NAME}` form for MCP configs instead of literal values.
    - Document the txAdmin, data-path and scaffold-root environment
      variables in README.md and mcp-server/README.md.
    
    Fixes #42
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    TMHSDigital and claude committed Nov 21, 2026
    Configuration menu
    Copy the full SHA
    5149e6e View commit details
    Browse the repository at this point in the history
  13. docs: correct state-bags guidance on client writes (#43)

    The skill said server-set state is authoritative and clients cannot
    override it, and its sample implied that returning from a change
    handler rejects a change. Clients can write bags they own, and a change
    handler cannot undo a write.
    
    - Say that clients can write their own player bag and owned entities.
    - Tell readers to keep authority data in server-held state and read it
      from there, and to use bags only to publish server decisions.
    - Replace the sample with one that keeps the job in a server table and
      re-applies it when the bag differs.
    
    Fixes #43
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    TMHSDigital and claude committed Nov 21, 2026
    Configuration menu
    Copy the full SHA
    843373a View commit details
    Browse the repository at this point in the history
  14. docs: fix README and docs home quick start, counts and structure (#45)

    - Quick start: cd into the clone before installing requirements (the
      old `cd mcp-server` failed in a fresh shell) in README and
      docs/index.md.
    - Snippet count is 25, not 24, in both files.
    - Project Structure lists examples/, the tests and drift-check.yml.
    - Release Plan covers v0.7.x-v0.13.x and links the CHANGELOG and
      releases page.
    
    The txAdmin environment variables were documented in the README by the
    fix for #42.
    
    Fixes #45
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    TMHSDigital and claude committed Nov 21, 2026
    Configuration menu
    Copy the full SHA
    f3b39d6 View commit details
    Browse the repository at this point in the history
  15. docs: document all 10 MCP tools and configuration in mcp-server README (

    #46)
    
    The MCP Server page listed 4 of the 10 tools, no parameters, and no
    configuration, and its data list omitted docs_index.json.
    
    - Tools table generated from server.py signatures with parameters and
      allowed values for all 10 tools.
    - Configuration table for the txAdmin, data-path and scaffold-root
      variables with defaults.
    - Data files list matches mcp-server/data/, plus where scaffolded files
      land and how to run the tests.
    
    Fixes #46
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    TMHSDigital and claude committed Nov 21, 2026
    Configuration menu
    Copy the full SHA
    e91fef9 View commit details
    Browse the repository at this point in the history
  16. ci: fix control character in the lua54 check regex (#44)

    The lua54 check written in d3b48ef contained a literal backspace byte
    instead of `\b`, so GitHub rejected validate.yml as an invalid workflow
    file and Validate stopped running. Replace it with `\b`.
    
    Verified the regex matches a `lua54 true` line and ignores identifiers
    such as `lua54_note`, and that no changed file contains control
    characters.
    
    Refs #44
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    TMHSDigital and claude committed Nov 21, 2026
    Configuration menu
    Copy the full SHA
    1ab028c View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    375700e View commit details
    Browse the repository at this point in the history
Loading