The ultimate harness for coding agents and beyond. All your agents. All your machines. One command center. Start with code, then follow your curiosity and build across disciplines: CAD, circuits, robots, games and music.
TypeScript 3d-modelingagent-frameworkagent-harnessai-agentscadclaude-codecodexcoding-agentsdeveloper-toolsesp32game-developmentmcp-servermulti-agentopen-hardwareopencodeopenharnesspcbroboticsterminaltmux
fix(web): seal agent_resume and agent_fork like the CLI requires
0xken15812fbf41c74a
diff --git a/desktop/lib/e2ee/envelope.dart b/desktop/lib/e2ee/envelope.dartindex 45df008b7..a24d155d6 100644--- a/desktop/lib/e2ee/envelope.dart+++ b/desktop/lib/e2ee/envelope.dart@@ -51,6 +51,10 @@ const Set<String> encryptedDownTypes = {'agent_create_status','agent_delete','agent_restart',+ // Reopens stopped work and forks a harness: the CLI has required both sealed since they were+ // added, so unsealed the machine answers E2EE_REQUIRED (the web build sends them itself).+ 'agent_resume',+ 'agent_fork','agent_recent','agent_update','agent_files',diff --git a/desktop/test/e2ee/encrypted_down_types_test.dart b/desktop/test/e2ee/encrypted_down_types_test.dartnew file mode 100644index 000000000..cbe25faea--- /dev/null+++ b/desktop/test/e2ee/encrypted_down_types_test.dart@@ -0,0 +1,36 @@+import 'dart:io';++import 'package:flutter_test/flutter_test.dart';+import 'package:harness/e2ee/envelope.dart';++/// This client seals every frame the machine insists on.+///+/// ⚠️ **Read from the CLI's source, not copied into this test.** A type the CLI requires sealed and+/// this client does not fails nowhere here — the frame leaves in the clear and the machine answers+/// E2EE_REQUIRED. That is how `agent_resume` and `agent_fork` went unsealed from the web build.+/// Only a test that reads the CLI's list notices the day it grows (mobile has the same test).+void main() {+ test('every frame the shared core requires sealed is sealed', () {+ final file = File('../cli/src/lib/e2ee/core.ts');+ if (!file.existsSync()) {+ throw StateError(+ '${file.path} missing — run from desktop/ in the monorepo',+ );+ }+ final source = file.readAsStringSync();+ const start = 'ENCRYPTED_DOWN_TYPES = new Set<string>([';+ final from = source.indexOf(start);+ expect(from, greaterThanOrEqualTo(0));+ // The CLI's comments quote type names too: strip `//` comments before reading the names.+ final code = source+ .substring(from, source.indexOf('])', from))+ .split('\n')+ .map((line) => line.split('//').first)+ .join('\n');+ final core = {+ for (final m in RegExp(r"'([a-z0-9_]+)'").allMatches(code)) m[1]!,+ };+ expect(core, isNotEmpty);+ expect(core.difference(encryptedDownTypes), isEmpty);+ });+}