Skip to content

armgit / kwant

Public Imported from GitHub
0

Your own team of AI bots in one self-hosted binary: spaces, every account you have, handoffs, approvals and routines. Open-source, self-hosted alternative to Grok Bot, Claude Duet and OpenAI dots. Rust + React.

Spaces S3b: page title and example workspace path say kwant bots, wording test covers both

Lin (kwant bot)9cb9cf2b2b31
diff --git a/frontend/index.html b/frontend/index.html
index d4a63012..5e3a753c 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 26' shape-rendering='crispEdges'><path fill='%234a3f8a' d='M5 1h16v1h2v1h1v2h1v16h-1v2h-1v1h-2v1H5v-1H3v-1H2v-2H1V5h1V3h1V2h2z'/><path fill='%2315112e' d='M6 2h14v1h2v1h1v2h1v14h-1v2h-1v1h-2v1H6v-1H4v-1H3v-2H2V6h1V4h1V3h2z'/><rect x='15' y='3' width='2' height='2' fill='%235ce1ff'/><rect x='15' y='6' width='1' height='1' fill='%231b1033'/><rect x='9' y='7' width='8' height='1' fill='%23fdc934'/><rect x='8' y='8' width='10' height='1' fill='%23fdc934'/><rect x='7' y='9' width='12' height='7' fill='%23fdc934'/><rect x='8' y='16' width='10' height='1' fill='%23fdc934'/><rect x='9' y='17' width='8' height='1' fill='%23d98a1f'/><rect x='18' y='9' width='1' height='7' fill='%23d98a1f'/><rect x='10' y='10' width='2' height='3' fill='%231b1033'/><rect x='14' y='10' width='2' height='3' fill='%231b1033'/><rect x='10' y='10' width='1' height='1' fill='%23fff'/><rect x='14' y='10' width='1' height='1' fill='%23fff'/><rect x='8' y='13' width='2' height='1' fill='%23ff6b81'/><rect x='16' y='13' width='2' height='1' fill='%23ff6b81'/><rect x='12' y='15' width='2' height='1' fill='%231b1033'/></svg>" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
- <title>Kwant: your team of super-intelligent bots (kwants)</title>
+ <title>kwant bots: your team of AI bots</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap" rel="stylesheet">
diff --git a/frontend/src/components/ManageTeamModal.tsx b/frontend/src/components/ManageTeamModal.tsx
index 49c5a0b5..7764c58f 100644
--- a/frontend/src/components/ManageTeamModal.tsx
+++ b/frontend/src/components/ManageTeamModal.tsx
@@ -342,11 +342,11 @@ export const ManageTeamModal: React.FC<ManageTeamModalProps> = ({
type="button"
onClick={() => {
playSfx('click');
- setWorkspacePath('~/dev/kwnt');
+ setWorkspacePath('~/dev/my-app');
}}
className="px-2 py-0.5 rounded bg-zinc-950 border border-zinc-800 text-zinc-400 hover:text-zinc-200 hover:border-zinc-700 font-mono transition-colors"
>
- ~/dev/kwnt
+ ~/dev/my-app
</button>
<button
type="button"
diff --git a/frontend/src/components/NewTeamModal.tsx b/frontend/src/components/NewTeamModal.tsx
index 605dce12..a1494959 100644
--- a/frontend/src/components/NewTeamModal.tsx
+++ b/frontend/src/components/NewTeamModal.tsx
@@ -339,11 +339,11 @@ export const NewTeamModal: React.FC<NewTeamModalProps> = ({
type="button"
onClick={() => {
playSfx('click');
- setWorkspacePath('~/dev/kwnt');
+ setWorkspacePath('~/dev/my-app');
}}
className="px-2 py-0.5 rounded bg-zinc-950 border border-zinc-800 text-zinc-400 hover:text-zinc-200 hover:border-zinc-700 font-mono transition-colors"
>
- ~/dev/kwnt
+ ~/dev/my-app
</button>
<button
type="button"
diff --git a/frontend/tests/wording.test.mjs b/frontend/tests/wording.test.mjs
index fbb62807..00873835 100644
--- a/frontend/tests/wording.test.mjs
+++ b/frontend/tests/wording.test.mjs
@@ -49,7 +49,8 @@ export function findBareWording() {
if (s !== null) {
const stripped = s.replace(ALLOWED, '');
// URLs, paths, event names and storage keys (kwnt:..., kwant.x) are not prose.
- const prose = stripped.replace(/\S*(?:[:./_#=]\w)\S*/g, (w) => (/^[A-Za-z]+[.,;:!?)]?$/.test(w) ? w : ''));
+ // Example paths a person reads (~/dev/x) stay in.
+ const prose = stripped.replace(/(?<!\S)(?!~)\S*(?:[:./_#=]\w)\S*/g, (w) => (/^[A-Za-z]+[.,;:!?)]?$/.test(w) ? w : ''));
const at = ts.isTemplateLiteralToken(node) ? node.parent.parent ?? node : node;
if (BAD.test(prose) && looksVisible(s, at)) {
const { line } = sf.getLineAndCharacterOfPosition(node.getStart());
@@ -67,4 +68,10 @@ test('no visible text says a bare "kwant", "kwnt" or "agent"', () => {
assert.deepEqual(findBareWording(), []);
});
+test('the page title says "kwant bots"', () => {
+ const title = readFileSync(join(root, 'index.html'), 'utf8').match(/<title>([^<]*)<\/title>/)?.[1] ?? '';
+ assert.match(title, /kwant bots/);
+ assert.doesNotMatch(title.replace(/\bkwant bots?\b/gi, ''), BAD);
+});
+
if (process.argv.includes('--list')) console.log(findBareWording().join('\n'));