From 6d4a6b16b83e4a35b7893c37041c29f900ef2d97 Mon Sep 17 00:00:00 2001 From: Blake Gentry Date: Thu, 7 May 2026 22:31:17 -0500 Subject: [PATCH 1/3] add type safety guidance Document the preferred approach for avoiding broad casts in local agent work. The rules steer changes toward precise source types and require a short explanation when a workaround cast is truly necessary. --- AGENTS.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/AGENTS.md b/AGENTS.md index 52651bb0..f5347853 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -9,6 +9,12 @@ ## Rules - No `any`; use `unknown` or specific types. +- Avoid `as unknown as X` casts; prefer fixing the underlying type + (narrow props, export a type, add missing fields). If a cast is + truly necessary (e.g. testing malformed data, third-party type + workarounds), add a comment explaining why. +- Prefer precise types over broad ones (`unknown[]`, `Record`) + followed by casts at each access site. Type the data correctly at the source. - Tests live beside components (`.test.tsx`). - Prefix unused variables with `_`. From 74ad53657ebb87a1875ea74ef46cbaa6bfb90a49 Mon Sep 17 00:00:00 2001 From: Blake Gentry Date: Thu, 7 May 2026 22:31:26 -0500 Subject: [PATCH 2/3] reuse packager info filename --- packager/packager.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packager/packager.go b/packager/packager.go index 4e1f8303..292c67d6 100644 --- a/packager/packager.go +++ b/packager/packager.go @@ -78,6 +78,7 @@ func createBundle() error { modFilename := version.Version + ".mod" zipFilename := version.Version + ".zip" + infoFilename := version.Version + ".info" modFileContents, err := os.ReadFile(filepath.Join(dir, "go.mod")) if err != nil { @@ -103,7 +104,7 @@ func createBundle() error { Time: timestamp, } - infoFile, err := outputRoot.Create(version.Version + ".info") + infoFile, err := outputRoot.Create(infoFilename) if err != nil { return err } From 9235871fb3b98257c25935bc5a2be1cb280c8f69 Mon Sep 17 00:00:00 2001 From: Blake Gentry Date: Thu, 7 May 2026 22:31:39 -0500 Subject: [PATCH 3/3] adjust workflow handle positioning Move workflow diagram handles inward so the connection dots sit centered on node edges instead of slightly outside them. This keeps the visual positioning cleanup separate from the broader workflow v2 UI work. --- src/components/workflow-diagram/WorkflowNode.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/workflow-diagram/WorkflowNode.tsx b/src/components/workflow-diagram/WorkflowNode.tsx index 4fbf1625..17928974 100644 --- a/src/components/workflow-diagram/WorkflowNode.tsx +++ b/src/components/workflow-diagram/WorkflowNode.tsx @@ -38,7 +38,7 @@ const WorkflowNode = memo( >