Skip to content

Add changesets - #2

Merged
phpnode merged 2 commits into
mainfrom
docs
Apr 8, 2026
Merged

Add changesets#2
phpnode merged 2 commits into
mainfrom
docs

Conversation

@phpnode

@phpnode phpnode commented Apr 8, 2026

Copy link
Copy Markdown
Member

No description provided.

phpnode added 2 commits April 8, 2026 18:58
…json files to include 'files' and 'publishConfig' fields for public access, and enhance README with logo
@phpnode
phpnode merged commit 19a3235 into main Apr 8, 2026
1 check passed
lguzzon added a commit to lguzzon-scratchbook/graph that referenced this pull request Aug 14, 2026
, slice 1)

Sequel to ADR-0001's Steps.ts split. Each mutation step now owns its
AST-to-step conversion via a new static fromAST method instead of the logic
living trapped in the astToSteps.ts central dispatcher.

- SetStep/CreateStep/DeleteStep/RemoveStep/MergeStep in src/steps/mutation/
  each implement static fromAST(clause); Delete/Remove are trivial, Set/
  Create/Merge carry their conversion logic alongside the step.
- New src/steps/shared/astToStepsHelpers.ts houses the shared normalizers
  (convertPropertyMap, convertNestedPropertyValue, convertSetValue,
  convertSetMapValue); SET/CREATE/MERGE import them; FOREACH's set-operation
  path reuses the single convertSetValue.
- astToSteps.ts dispatches mutation clauses to the step's fromAST via a small
  name-to-constructor map; the 5 clause converters and 4 helpers are deleted
  from the dispatcher (3,346 to 3,059 lines). ASTConversionContext.queryContext
  made optional since mutation conversion is context-independent.
- StepConstructor.fromAST broadened to accept any clause AST node.

Suite stays green (5,563 pass, 0 fail).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
lguzzon added a commit to lguzzon-scratchbook/graph that referenced this pull request Aug 14, 2026
…fromAST (Candidate codemix#2, slice 2)

The four control clauses (WITH/UNWIND/CALL/FOREACH) all depend on the
shared pattern+condition conversion engine (convertPattern / convertCondition /
convertConditionValue, ~1,300 lines) that also serves fetch/traversal/filter
steps and RETURN projections. Until it had a home, no non-mutation step could
own its AST-to-step conversion.

- New src/steps/shared/patternToSteps.ts: the pattern/condition engine moved
  verbatim out of astToSteps.ts and exported, so any step fromAST can reuse it.
- astToSteps.ts: 3,059 -> 1,647 lines; dispatcher now imports the engine and
  keeps only clause-ordering/aliasing/RETURN concerns.
- UnwindStep.fromAST implemented as the first control step to use the shared
  engine (convertConditionValue), proving the seam.
- Pruned dead AST/Steps type and value imports left orphaned by both moves.

Suite stays green (5,563 pass, 0 fail).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
lguzzon added a commit to lguzzon-scratchbook/graph that referenced this pull request Aug 14, 2026
…lice 3)

With the shared pattern/condition engine extracted in slice 2, the two
remaining self-contained control clauses can now own their conversion:

- ForeachStep.fromAST: converts the nested operations (SET -> SetStep,
  DELETE -> DeleteStep, MATCH -> convertPattern/convertShortestPathPattern)
  and the list expression, using the shared engine + mutation wrappers.
- CallStep.fromAST: converts procedure arguments via convertConditionValue
  (shared) and yield items.
- astToSteps.ts: 1,647 -> 1,502 lines; deletes convertForeachClause,
  convertListExpression, convertSetOperationToStep, convertCallClause and
  dispatches both clauses to the wrapper fromAST. Dead AST/Steps imports
  pruned.

Suite stays green (5,563 pass, 0 fail).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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.

1 participant