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: colbymchenry/codegraph
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: main
Choose a base ref
...
head repository: hlgr360/codegraph
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: main
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 19 commits
  • 54 files changed
  • 3 contributors

Commits on Oct 10, 2026

  1. feat(powerbuilder): index PowerBuilder object sources

    Add PowerBuilder (PowerScript) as a language: .sra/.srw/.sru/.srm/.srf/.srs
    sources, both PBL exports and PB 2025 solutions, parsed with the vendored
    pb-shrugged/tree-sitter-powerscript v0.0.16 grammar (ABI 15).
    
    - Extractor walks the flat class_file in order: objects, controls and menu
      items (nested in their window), functions, scripted and declared events,
      external functions, variables, constants, structures. Edges for `from`
      inheritance (incl. inherited controls `m_master`m_file`), super:: and
      `call ancestor::event`, TriggerEvent/PostEvent("event"), create /
      create using, and Open/OpenSheet of windows. A same-length pre-parse
      rewrite covers `event ctl::name`, which the grammar does not parse.
    - Resolver follows PowerScript lookup: case-insensitive, through the
      ancestor chain, outward from a control's script to its window, through a
      local's/argument's/instance/global variable's declared type link by link,
      and to the overload whose parameter count matches the call.
    - codegraph_explore matches symbols case-insensitively for languages whose
      names ignore case (PowerBuilder, VB.NET, PHP, Pascal, COBOL, CFML), so a
      flow query written with a caller's casing still finds its path.
    - Source files with a UTF-16 byte-order mark are decoded as UTF-16
      everywhere source text is read, parsed, rendered or hashed; UTF-8 files
      decode exactly as before.
    
    Benchmarked on pb-exception-framework, gaoqiangz/pfw and PFC 2022: with
    codegraph, every arm answered faster (25s vs 75s, 28s vs 40s, 38s vs 53s).
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Holger Reinhardt and claude committed Oct 10, 2026
    Configuration menu
    Copy the full SHA
    2255966 View commit details
    Browse the repository at this point in the history
  2. chore(fork): release 1.6.2+fork.1; installers take CODEGRAPH_REPO

    - install.sh / install.ps1 install from the GitHub repo CODEGRAPH_REPO
      names (default colbymchenry/codegraph), so a fork can publish and
      install its own releases. Test runs the real install.sh against a stub
      curl.
    - Stamp the fork version 1.6.2+fork.1 (package.json, lockfile,
      ui/package.json): upstream 1.6.2 plus fork release 1. Semver build
      metadata, so the update check reads it as 1.6.2. The git tag is v1.6.2.1.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Holger Reinhardt and claude committed Oct 10, 2026
    Configuration menu
    Copy the full SHA
    7605159 View commit details
    Browse the repository at this point in the history
  3. Merge feat/powerbuilder-language: PowerBuilder support, UTF-16 source…

    …s, fork release 1.6.2+fork.1
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Holger Reinhardt and claude committed Oct 10, 2026
    Configuration menu
    Copy the full SHA
    4d6869e View commit details
    Browse the repository at this point in the history
  4. chore(fork): release 1.6.2+fork.2; upgrade follows the fork's releases

    - codegraph upgrade, the update notice and both installers default to
      hlgr360/codegraph; upgrade passes CODEGRAPH_REPO to install.sh.
    - Version comparison reads the fork number (tag v1.6.2.2, package
      1.6.2+fork.2), so fork releases order after the upstream release
      they build on and after earlier fork releases.
    - A daemon of an older version is replaced by a fork release's
      launcher (#2335 behavior); +fork.N used to read as unknown.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Holger Reinhardt and claude committed Oct 10, 2026
    Configuration menu
    Copy the full SHA
    50e32ae View commit details
    Browse the repository at this point in the history
  5. chore(fork): 1.6.2+fork.3 — all-platform release workflow, README, re…

    …solver fixes
    
    - .github/workflows/release-fork.yml: a vX.Y.Z.N tag builds the native
      kernel per platform on native runners, bundles all six platforms and
      publishes the GitHub release (modelled on claude-mnemonic's fork
      release). Upstream's release.yml stays untouched and is disabled here.
    - README: install commands point at the fork, with a note on what the
      fork is and that the npm package is upstream's.
    - PowerBuilder resolution: a control named after its ancestor inherits
      from the other type of that name (calls through its chain too, not
      just the extends edge); the unique-name fallback picks the overload by
      argument count; header comment describes overload matching as it is.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Holger Reinhardt and claude committed Oct 10, 2026
    Configuration menu
    Copy the full SHA
    b2c8afc View commit details
    Browse the repository at this point in the history
  6. feat(installer): pi coding agent target

    `codegraph install --target pi` adds codegraph to pi's MCP servers
    (<agent-dir>/mcp.json, following PI_CODING_AGENT_DIR, or .pi/mcp.json)
    with exposure "direct", so codegraph_explore is declared to the model
    instead of only being reachable from codemode scripts. The CodeGraph
    note goes into the context file pi reads in that directory (the first
    of AGENTS.override.md, AGENTS.md, CLAUDE.md), creating AGENTS.md only
    when none exists. Uninstall removes both.
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Holger Reinhardt and claude committed Oct 10, 2026
    Configuration menu
    Copy the full SHA
    e58195f View commit details
    Browse the repository at this point in the history
  7. Merge feat/pi-target: pi coding agent installer target

    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Holger Reinhardt and claude committed Oct 10, 2026
    Configuration menu
    Copy the full SHA
    070c733 View commit details
    Browse the repository at this point in the history
  8. chore(fork): release 1.6.2+fork.4 (pi installer target)

    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    Holger Reinhardt and claude committed Oct 10, 2026
    Configuration menu
    Copy the full SHA
    3379d3a View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2026

  1. fix(powerbuilder): index scripts that hold a block comment inside ano…

    …ther
    
    PowerScript block comments nest, but the grammar's comment token ends at the
    first closing delimiter. A script wrapped in a $ScriptEnvelope comment that
    held a block comment of its own (release notes, long SQL scripts) left the rest
    of the outer comment as stray text, so the file parsed with errors and
    contributed no symbols. 67 .srf files in a real project were skipped this way.
    
    preParse now blanks the delimiters of every nested comment before parsing.
    The rewrite keeps the source's length, so offsets stay valid, ignores strings
    and // comments, and leaves a source without nested comments unchanged.
    
    Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
    hlgr360 and claude committed Oct 11, 2026
    Configuration menu
    Copy the full SHA
    4513736 View commit details
    Browse the repository at this point in the history
  2. Merge fix/powerbuilder-nested-comments: index PowerBuilder scripts wi…

    …th nested block comments
    hlgr360 committed Oct 11, 2026
    Configuration menu
    Copy the full SHA
    a1e44b6 View commit details
    Browse the repository at this point in the history
  3. chore(fork): release 1.6.2+fork.5 (PowerBuilder nested comments)

    Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
    hlgr360 and claude committed Oct 11, 2026
    Configuration menu
    Copy the full SHA
    c5d6a08 View commit details
    Browse the repository at this point in the history
  4. feat(powerbuilder): index DataWindows (.srd) and link PowerScript to …

    …them
    
    A DataWindow export is a text format, not PowerScript: a long layout and one
    table(...) block with the columns and the SQL. Indexing only the six
    PowerScript extensions left a batch's DataWindows invisible, so a question
    about what a batch reads could not be answered from the actual query.
    
    DataWindowExtractor reads the table block (string- and parenthesis-aware, so
    SQL with ~" escapes and a ")" in a string cannot end it early) and the nested
    report and dddw.name lines further down. A DataWindow is a `component` node
    (a `class` is never a named seed in explore, so an exact name ranked 8th) with
    one `field` node per column, the retrieve SQL as its docstring, and the tables
    read, the table updated and the arguments in its signature. The node spans the
    table block only, so showing its source skips layouts of up to megabytes.
    
    PowerScript links to a DataWindow wherever a literal names it
    (`dw.dataobject = "d_x"`, a control's `string dataobject = "d_x"`), from the
    narrowest symbol around the mention; the resolver finds it by name, case
    insensitively. Nested reports and drop-down DataWindows link the same way.
    
    On a real project: 10,366 -> 17,783 files, 314,962 -> 528,640 nodes, index
    49s -> 62s, 663 -> 920 MB; 64% of the 7,417 DataWindows are linked from
    something (4,839 edges from PowerScript, 7,339 between DataWindows).
    
    .srd was pinned as "unknown" by a test; it is now a PowerBuilder source.
    
    Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
    hlgr360 and claude committed Oct 11, 2026
    Configuration menu
    Copy the full SHA
    4f4df23 View commit details
    Browse the repository at this point in the history
  5. feat(powerbuilder): link DataWindows named through a constant, a vari…

    …able or a typed object
    
    About 1,300 of the 6,100 dataobject assignments in a real project name the
    DataWindow through something other than a double-quoted literal, so the
    DataWindow showed no user for them.
    
    - Single-quoted literals ('d_x') count; PowerScript strings take either quote.
      They were 443 of the misses.
    - `dw.dataobject = ls_dw`, `= c_dw` or `= x.dataobject`: when the file itself
      assigns a DataWindow name to that variable, constant or x.dataobject (an
      initial value counts), those are the DataWindows.
    - Otherwise the reference goes to the resolver as `dataobject:<receiver path>`,
      typed the way call receivers are (a local becomes its declared type). A
      constant another object declares (`gnv_const.c_dw_orders`) yields the
      DataWindow its value names; `ds_in.dataobject` yields the DataWindow the
      receiver's type sets, or the nearest ancestor that sets one.
    - A type's DataWindow is the receiver's only when the type is concrete: a
      control written in the same file, or a class no project class extends. A
      reusable base declares a placeholder (u_dw_map -> d_map_dummy), which said
      nothing about the subclass or the value assigned at run time and drew 22% of
      the copy-from-another-object links before this guard.
    
    On the same project, linked DataWindows go from 64% to 70% and PowerScript
    -> DataWindow links from 4,839 to 5,700. 256 references stay unresolved: method
    arguments, system base classes and values assigned elsewhere. A dialog that
    receives its datastores in a structure typed as the system datastore class
    (the sync dialog) stays unlinked: the type is only known at the caller.
    
    Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
    hlgr360 and claude committed Oct 11, 2026
    Configuration menu
    Copy the full SHA
    20bef82 View commit details
    Browse the repository at this point in the history
  6. feat(powerbuilder): link a dialog to the DataWindow its opener hands …

    …in through a structure
    
    A dialog that does `dw.dataobject = lstr.modify_ds.dataobject` reads a field the
    structure declares as the system datastore class, so its type says nothing and
    the dialog showed no DataWindow. The real one is known only where the dialog is
    opened: `lstr_parm.modify_ds = ds_a; OpenWithParm(w_dialog, lstr_parm)`.
    
    A synthesizer pass completes the `dataobject:` reference the resolver leaves
    open, from the opener and only from there: the function that opens this window
    passing a variable declared as that structure, the assignment to that field in
    the same function, and the DataWindow the assigned object's type sets (the type
    it is `create`d as, else the declared one when no class extends it). Several
    openers each contribute their own; an assignment elsewhere, or one that feeds a
    different window, is never counted, since the structure is a shared carrier.
    
    The edge is heuristic and records the opener, its call site and the structure
    field it came through, and explore words it as "DataWindow handed in by <opener>
    through <struct>.<field>".
    
    On the sample project the sync dialog now links to d_sync_modified_fields and
    d_sync_del_add_fields. It is 2 of 278 still-unresolved references; the largest
    other struct-shaped group (s_ap_check_country.in_dw) is a `ref` argument passed
    down method calls, not an OpenWithParm, and stays unresolved.
    
    Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
    hlgr360 and claude committed Oct 11, 2026
    Configuration menu
    Copy the full SHA
    98dc009 View commit details
    Browse the repository at this point in the history
  7. feat(powerbuilder): link a helper to the DataWindows of the controls …

    …that fill a structure field
    
    A helper that reads `check_country.in_dw.DataObject` works on the DataWindow of
    whatever control was handed to it: the callers do `check_country.in_dw = THIS`
    and pass the structure down a chain of method calls. No OpenWithParm connects
    the two, so the dialog rule does not apply, and the field is declared as the
    system datawindow class, so its type says nothing.
    
    For a structure field declared `datawindow` that no opener explains, the pass
    now finds every place a control is put into it (`x.field = THIS`, or a control
    written in the same file) in one scan of the PowerScript sources, requiring the
    variable to be declared as that structure in the same function. The helper links
    to the DataWindow each such control class sets, and to the own DataWindow of
    each class deriving from it: an instance of any of them may be the one handed
    in. A commented-out assignment is not counted.
    
    Two limits keep it from over-linking. More than a dozen different classes
    filling one field means a shared carrier, and nothing is linked. More than 40
    DataWindows in one family means the answer is too diffuse to be one.
    
    On the sample project the six country-control helpers (store_obj_column and
    set_obj_column in the standard, UK and USA variants) now link to d_ap_address,
    d_ap_juristic_person_inst and d_ap_future_address (a subclass's), 18 links;
    index time is unchanged.
    
    Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
    hlgr360 and claude committed Oct 11, 2026
    Configuration menu
    Copy the full SHA
    2df8a93 View commit details
    Browse the repository at this point in the history
  8. feat(powerbuilder): link a report's SQL script to the DataWindows its…

    … header names
    
    Reports are started by name from a catalog in the database, so nothing in the
    code names most report DataWindows: only 351 of 1,689 under reports/ were
    linked. The one place the project states which DataWindow a report is, is the
    header comment of the report's SQL script, a global function (.srf) whose body
    is a comment:
    
        report      : XCINTAXBAU Income tax report for Belgian authorities (Check)
        Datawindow  : x_am_check_tax_for_belgian_authorities
                      x_am_tax_for_belgian_authorities_nd1 (Deckblatt)
    
    The function now links to each DataWindow the header names (the nested parts on
    the following lines too; a word without an underscore is prose) and keeps the
    header, with its $$HEX1$$fc00$$ENDHEX$$ escapes decoded, as its documentation,
    so a report code, a ticket number or a comment is searchable. The SQL below the
    header stays out of it. A readme with no report in it is left alone.
    
    Customers' report packages repeat DataWindow names, so a name resolves to the
    DataWindow sharing the longest directory prefix with the caller, not to
    whichever was indexed first; that also corrects literal links in those packages.
    
    On the sample project, report DataWindows linked go from 351 to 747 of 1,689
    (20.8% -> 44.2%), all DataWindows from 69.9% to 76.4%, and searching a report
    code finds its script and DataWindow.
    
    Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
    hlgr360 and claude committed Oct 11, 2026
    Configuration menu
    Copy the full SHA
    34db080 View commit details
    Browse the repository at this point in the history
  9. docs(powerbuilder): what is indexed for DataWindows, and what is left

    Records the links and their guards, the numbers on the sample project, and the
    open items: the report catalog (reports are started by name from a database
    catalog; an export would close most of the remaining ~940 report DataWindows
    and needs input from its owner), shared table nodes (a storage change), and the
    smaller gaps.
    
    Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
    hlgr360 and claude committed Oct 11, 2026
    Configuration menu
    Copy the full SHA
    9f8382f View commit details
    Browse the repository at this point in the history
  10. Merge feat/powerbuilder-datawindow: index DataWindows and link PowerS…

    …cript, dialogs and reports to them
    hlgr360 committed Oct 11, 2026
    Configuration menu
    Copy the full SHA
    0269a3d View commit details
    Browse the repository at this point in the history
  11. chore(fork): release 1.6.2+fork.6 (PowerBuilder DataWindows)

    Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
    hlgr360 and claude committed Oct 11, 2026
    Configuration menu
    Copy the full SHA
    0e08eef View commit details
    Browse the repository at this point in the history
Loading