A desktop coding agent with free access to frontier models.
TypeScript
fix: label lines without a value
ogsamratb77725e163cf
diff --git a/apps/server/src/context/PARITY.sha256 b/apps/server/src/context/PARITY.sha256index 4ad86eb0..1fe283fe 100644--- a/apps/server/src/context/PARITY.sha256+++ b/apps/server/src/context/PARITY.sha256@@ -9,8 +9,8 @@ d772119f2785b6926cd765a44589c171542d5e79b3677bfa076851775d794480 outside.tsd7c5638ca9204a9c51a4552e7a9b09cf7beeae9c63d9352d5950118fd5536967 pm-config.ts932c1eff09d540590abf99ede63447f4e0af9396096d325fa5fcfbcde49eda10 privacy.ts0e04845a2d0ad2136c01a61d3ed1193b62ef99f5b82e1f555b7c97bb6dc18773 processes.ts-0c831e9c763e9fd5504fa76ad3863f15693b5c6b5da0b25e1669c2593702737b redact-policy.ts-87f77398205e7427136ab9e3199352e3b878532671ffd19d8fbe2e889b03e2e8 redact-vectors.json+5061a781045788dc72e04dec2ef7abab936677fbf58ad1ee0329336df62dc2ce redact-policy.ts+2fdf90c962aa42e48f4dd0a53057f1778ff7f0996a6a0deea3eec6a42c2063b2 redact-vectors.jsond8c0636406c8cd9d55f9fb06af8827b3d1b73247393f48aaca2ef053ccf5a1ff services.ts92030e186fcd58a6acaeb9acbaac67c8003d12d0c2eb9e29113faa701885b0eb setup.tsd51d434283f757f0ed45bb6996a74fb5bf9e1d56f34146e99df3c392cde5ea19 shell-aliases.tsdiff --git a/apps/server/src/context/redact-policy.ts b/apps/server/src/context/redact-policy.tsindex 017a5fec..4dfac67a 100644--- a/apps/server/src/context/redact-policy.ts+++ b/apps/server/src/context/redact-policy.ts@@ -379,6 +379,8 @@ function redactNextLineValues(text: string, hidden: string, tally: Tally, credenNEXT_LINE_VALUE.lastIndex = 0;return text.replace(NEXT_LINE_VALUE, (match: string, start: string, lead: string, key: string, sep: string, quote: string, value: string, offset: number) => {if (insideOpaque(spans, offset, offset + match.length) || !isSecretKey(key)) return match;+ // The next line is an assignment of its own (`API_KEY=` left empty above `OTHER=value`).+ if (/^[A-Za-z_][\w.-]*[:=]/.test(value)) return match;if (!isSecretValue(value, { mode: "config", quoted: true, credentialFile })) return match;note(tally, "secret_assignment");return `${start}${lead}${key}${sep}${quote}${hidden}${quote}`;diff --git a/apps/server/src/context/redact-vectors.json b/apps/server/src/context/redact-vectors.jsonindex 911f59e9..d8a1e646 100644--- a/apps/server/src/context/redact-vectors.json+++ b/apps/server/src/context/redact-vectors.json@@ -334,6 +334,17 @@"name": "yaml mapping under a label kept","input": "token:\n value: abcdefgh12345678\n","expect": "token:\n value: abcdefgh12345678\n"+ },+ {+ "name": "empty key above another assignment kept",+ "input": "OPENAI_API_KEY=\nANTHROPIC_BASE_URL=api-local-dev-42x\nPORT=8080\n",+ "expect": "OPENAI_API_KEY=\nANTHROPIC_BASE_URL=api-local-dev-42x\nPORT=8080\n",+ "context": ".env.local"+ },+ {+ "name": "escaped empty key above another assignment kept",+ "input": "SOME_SECRET_KEY=\\nSERVICE_NAME=svc-alpha-77beta",+ "expect": "SOME_SECRET_KEY=\\nSERVICE_NAME=svc-alpha-77beta"}]}\ No newline at end of file