Files
composiohq__composio/.gitattributes
T
jkomyno 124e896ed7 fix(cli): align the TS and sh managed-block reconcilers on one contract
The CLI and install.sh implemented the managed-PATH-block contract
twice with three divergences: TS matched marker lines after trimming
while the sh awk program matches byte-exact (CRLF or padded markers
reconciled on one side and duplicated on the other), TS replaced stale
blocks in place while sh removes managed lines and appends the fresh
block, and renderWithHome rendered a bin dir equal to $HOME as the
$HOME literal while render_bin_dir left it as the raw path — making
delegated verification permanently stale for that layout.

Align both sides: TS goes byte-exact and remove-then-append (mirroring
the awk program including its newline normalization), and
render_bin_dir learns the $HOME-exact case. A shared fixture suite
under test/managed-block-fixtures now runs against both reconcilers —
vitest drives the exported TS functions, the harness sources
install.sh's definitions and runs write_path_block under sh and dash —
so future edits to one side fail loudly until the other matches byte
for byte.
2026-08-03 21:10:37 +05:30

21 lines
960 B
Plaintext

# Generated and vendored paths. Do not hand-edit; see AGENTS.md ("Generated And Vendored Paths").
# linguist-generated / linguist-vendored keeps these out of language stats and
# collapses their diffs by default on GitHub.
# Vendored, read-only reference snapshots (git submodules)
ts/vendor/** linguist-vendored=true
ts/packages/cli-local-tools/vendor/** linguist-vendored=true
# Generated SDK surfaces (produced by `composio generate` / the build pipeline)
ts/packages/core/generated/** linguist-generated=true
ts/packages/core/pack/generated/** linguist-generated=true
# Package-manager lockfiles (regenerate via the package manager, never hand-edit)
pnpm-lock.yaml linguist-generated=true
uv.lock linguist-generated=true
**/bun.lock linguist-generated=true
# Managed-block conformance fixtures are byte-exact inputs/outputs shared by
# the sh harness and the TS reconciler test; never normalize their line endings.
test/managed-block-fixtures/** -text