INNER CODE UNIT · TypeScript

present

ZaxbyHub/opencode-swarm · src/agents/index.ts:1236

		const present = councilTools.filter((tool) =>
			architectOverride.includes(tool),
		);
		if (present.length > 0) {
			advisoryWarn(
				`[opencode-swarm] tool_filter.overrides.architect includes ${present.join(', ')} but council.enabled is not true. ` +
					`The runtime gate will reject these calls. Either set council.enabled=true, or remove ${present.join(', ')} from the architect override.`,
			);
		}
	}

	// Narrows `agent.config.permission` to the SDK's declared permission
	// shape, defensively rejecting absent values and non-object primitives
	// (a malformed agent definition must not throw here). Mirrors the
	// `isObjectRecord` convention used for config-hook guards in
	// src/index.ts.
	const isPermissionRecord = (
		value: SDKAgentConfig['permission'],

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…