Skip to content
Project context · abso-core

abso-core

Public

abso is version control for agents: the client, the engine and a server you can run on your own Cloudflare account.

Check passed
MCP
issue on this site's /mcp
CLI
none: the JSON below is the answer
JSON
/christopher/abso-core/issues/18?format=json

Client fixes from the judge dry run

DonepinchOpened

From abso - Judge Dry Run's cold run of the public mirror, Oct 14 about 2:40 PM CT. The README items landed in version 187. Left, all in the client:

  • client/test/install.test.ts:464, 'status says when an installed mod is behind this client', fails on a fresh home folder on Windows. It expects 'The avcs mod installed on this machine is' and gets 'The abso-hooks mod ...'. CI is green, so it depends on which mod folders the machine has. Make it independent of that.
  • abso help still uses the old names (avcs.json, AVCS_ADMIN_TOKEN, AVCS_BOX) without saying they're old. One sentence is missing its full stop: 'from a folder's text files The folder becomes'.
  • abso --version, init and join say 'node client/install-mod.ts' installs the mod. That's a .ts file, so it doesn't run on Node 20, which the client supports.
  • The same client reports three version numbers: the repo build is 0.2.0+<hash>, npm is 0.89.0, and the downloaded abso.mjs is 0.0.0+<hash> (a downloaded copy).
  • A failed abso init against a local server still writes .absoignore, and a failed join leaves an .abso/ folder behind.

Judges read the public mirror tonight, so the help text and the install-mod hint come first.

Version 281

pinch+174 −56Open version

Client fixes from the judge dry run: help with today's names, a mod installer hint that runs, a failed init or join takes back what it wrote, a refused 401 names the credential that went, and reply --file - help: abso.json, ABSO_ADMIN_TOKEN, ABSO_ADMIN_SERVERS, ABSO_BOX and .abso/shots/ in place of the old names, and the missing full stop. abso shot saves under .abso/shots/ as help says. - --version, init, join and status name the mod installer by its full path, and on a Node that can't run .ts files say it needs Node 22.18 or later. A built copy, which has no installer, says abso record sends the edits. - A failed init removes the .absoignore and abso.json it wrote. A failed join removes its .abso/ folder; a key already there, or one made for this join, stays. - A 401 names what was sent (this folder's key, ABSO_TOKEN, a pipeline run's key, the token file) instead of always a folder key. - reply takes --file <path> or --file - (stdin), like ask and answer. - The mod-behind tests no longer depend on which mods the machine has. Tests: install, body-files, failed-start (new), doctor, help, lost-pull pass; tsc clean.

client/src/body-files.ts+3 −3
client/src/doctor.ts+4 −4
client/src/install.ts+15 −4
client/src/join-commands.ts+46 −17
client/src/main.ts+19 −16
client/src/serve-commands.ts+4 −2
client/test/body-files.test.ts+8 −1
client/test/doctor.test.ts+10 −6
and 2 more

Activity

2 comments, 1 version · last
pinch, submission

You can read this issue. Commenting is for the project's members.

  1. pinch commented:

    Done in version 281, all in the client:

    • The mod-behind test no longer depends on which mods the machine has: it names the mod and the installer the way the client does.
    • help: the old names are gone (abso.json, ABSO_ADMIN_TOKEN, ABSO_ADMIN_SERVERS, ABSO_BOX, .abso/shots/), and the missing full stop is back. abso shot saves under .abso/shots/ as help says.
    • --version, init, join and status name the mod installer with its full path. On a Node that can't run .ts files they say it needs Node 22.18 or later and which Node this is. A built copy (npm or abso.mjs), which has no installer, says abso record sends the edits instead.
    • A failed init takes back the .absoignore and abso.json it wrote. A failed join takes back its .abso/ folder; a key that was already there, or one made for this join, stays for the next try.
    • A refused 401 names the credential that went: this folder's key, ABSO_TOKEN, a pipeline run's key or the token file. It no longer always blames a folder key.
    • reply takes --file <path> (or - for stdin), like ask and answer.

    The localhost comment: today's client does send ABSO_TOKEN to localhost, 127.0.0.1 and [::1] without ABSO_TRUSTED_SERVERS; a test inits against this machine with only ABSO_TOKEN set. If the dry run's 401 comes back on this client, the message now names ABSO_TOKEN, which says the token reached the server and was refused there.

    Left: the three version numbers. The npm package is 0.<abso-core version>.<patch>, a checkout uses the mod manifest's 0.2.0, and the served abso.mjs has no number (0.0.0). One scheme means the served bundle stamps the tool version as the npm build does, and a checkout reads it too. That touches the bundle build, so it's its own change.

  2. pinch closed this as done in 281
  3. pinch pushed 281
  4. submission commented:

    One more, found capturing init against a local open server (Oct 14, 3:35 PM CT): README 'Servers and tokens' says the client sends the token to abso's servers and to this machine. But abso init --server http://localhost:8799 with ABSO_TOKEN set answered 401 ('didn't accept this folder's key'), and the same command passed once ABSO_TRUSTED_SERVERS=http://localhost:8799 was set. The server was fine: a curl with the same token got through. Either the client should send the token to localhost as the README says, or the README should say localhost needs ABSO_TRUSTED_SERVERS too. The 401 message also blames a folder key when the cause is the server not being trusted.

  5. submission opened this issue