Public: anyone can read this; the crew can change it.

The terminal's repository screen makes an app you can see your own with `Y`, planned first, as MCP `make_it_yours` does #7284

Parked opened this
Closed without merging

On a repository that has an app, the terminal's repository screen now answers Y and opens a Make it yours screen (makeItYoursScreen in src/tui/screens/yours.ts). That screen calls the same makeItYours action as the page and MCP makeityours. Plan first.

Notes

stopped parked by the crew deploy 661fe18

opened this

On a repository that has an app, the terminal's repository screen now answers Y and opens a Make it yours screen (makeItYoursScreen in src/tui/screens/yours.ts). That screen calls the same makeItYours action as the page and MCP make_it_yours.

  • Plan first. The screen asks for a name (the original's by default) and visibility (tab moves between them, space switches visibility). Below that it shows the plan: where the copy goes, its app slug, what is copied (the code, its history), what is not (data, variables and secrets, crew, domains), that it follows the original, and how many copies are left today. The plan is redone on every edit, and asking for one copies nothing.
  • Copy only after a confirm. enter asks, y copies, n goes back to the form, and esc leaves with nothing copied. On success the screen is replaced by the new repository.
  • Refusals in MCP's words. The wording now lives in one function, makeItYoursRefusal in src/actions/make_it_yours.ts. The MCP tool and the terminal both use it: already yours, five copies today, prove first, not a member, and a private original made public. MCP answers keep the same error codes and words as before.
  • Where Y shows. The key is listed in help only on someone else's repository that has an app. On your own it still opens, so it can tell you "this app is already yours".
  • Palette row. The : "Make it yours" row opens the new screen when the repository has an app, and the plain fork screen when it has none.
  • Docs. Y is added to the key list in docs/design/sections/6b-workspace.md.

test/tui-make-it-yours.test.ts covers the plan and a renamed copy made only after enter then y, and that esc copies nothing. It also covers a sixth copy refused in MCP's words with nothing made, and the already-yours and private-made-public refusals. One existing test was out of date, not the code: test/verify-gate-words.test.ts checked that the MCP tool file imports the verify wording. The wording now comes in through the action, so its list names src/actions/make_it_yours.ts instead.

I did not change the web page or the JSON API: each still writes its own refusal wording. I also did not add an MCP tool, so the size tests' limits are untouched. Before pushing, bun x tsc --noEmit passed, and so did the 15 test files that cover this (mcp-size, mcp-size-rank, make-it-yours, guests, mcp, quotas, roles, the tui ones and others). I did not run the full suite.

To try it: sign in to the terminal as someone who doesn't own the app, open another person's app repository, press Y, change the name, press enter, then y.

🤖 Generated with Claude Code

Closes #7270

commented

On a repository that has an app, the terminal's repository screen now answers Y and opens a Make it yours screen (makeItYoursScreen in src/tui/screens/yours.ts). That screen calls the same makeItYours action as the page and MCP make_it_yours.

  • Plan first. The screen asks for a name (the original's by default) and visibility (tab moves between them, space switches visibility). Below that it shows the plan: where the copy goes, its app slug, what is copied (the code, its history), what is not (data, variables and secrets, crew, domains), that it follows the original, and how many copies are left today. The plan is redone on every edit, and asking for one copies nothing.
  • Copy only after a confirm. enter asks, y copies, n goes back to the form, and esc leaves with nothing copied. On success the screen is replaced by the new repository.
  • Refusals in MCP's words. The wording now lives in one function, makeItYoursRefusal in src/actions/make_it_yours.ts. The MCP tool and the terminal both use it: already yours, five copies today, prove first, not a member, and a private original made public. MCP answers keep the same error codes and words as before.
  • Where Y shows. The key is listed in help only on someone else's repository that has an app. On your own it still opens, so it can tell you "this app is already yours".
  • Palette row. The : "Make it yours" row opens the new screen when the repository has an app, and the plain fork screen when it has none.
  • Docs. Y is added to the key list in docs/design/sections/6b-workspace.md.

test/tui-make-it-yours.test.ts covers the plan and a renamed copy made only after enter then y, and that esc copies nothing. It also covers a sixth copy refused in MCP's words with nothing made, and the already-yours and private-made-public refusals. One existing test was out of date, not the code: test/verify-gate-words.test.ts checked that the MCP tool file imports the verify wording. The wording now comes in through the action, so its list names src/actions/make_it_yours.ts instead.

I did not change the web page or the JSON API: each still writes its own refusal wording. I also did not add an MCP tool, so the size tests' limits are untouched. Before pushing, bun x tsc --noEmit passed, and so did the 15 test files that cover this (mcp-size, mcp-size-rank, make-it-yours, guests, mcp, quotas, roles, the tui ones and others). I did not run the full suite.

To try it: sign in to the terminal as someone who doesn't own the app, open another person's app repository, press Y, change the name, press enter, then y.

🤖 Generated with Claude Code

commented

Parked by the crew: the check failed ("the merge queue acts on why a gate went red > an install red twice is infrastructure: gated twice, never bisected, no pull handed back") and the decider saw no point in another try try 1: docs/design/sections/6b-workspace.md, src/actions/make_it_yours.ts, src/http/mcp/tools/make_it_yours.ts, src/tui/screens/workspace.ts (+3 more)

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs