| // Copyright 2023 The Fuchsia Authors. All rights reserved. | |
| // Use of this source code is governed by a BSD-style license that can be | |
| // found in the LICENSE file. | |
| { | |
| include: [ "syslog/client.shard.cml" ], | |
| program: { | |
| runner: "elf", | |
| binary: "bin/debug_agent_launcher", | |
| }, | |
| collections: [ | |
| { | |
| name: "agents", | |
| durability: "single_run", | |
| allowed_offers: "static_and_dynamic", | |
| }, | |
| ], | |
| capabilities: [ | |
| { | |
| protocol: [ "fuchsia.debugger.Launcher" ], | |
| }, | |
| { | |
| config: "fuchsia.debugger.MonitorRootJobTrue", | |
| type: "bool", | |
| value: true, | |
| }, | |
| { | |
| config: "fuchsia.debugger.MonitorRootJobFalse", | |
| type: "bool", | |
| value: false, | |
| }, | |
| ], | |
| use: [ | |
| { | |
| protocol: "fuchsia.component.Realm", | |
| from: "framework", | |
| }, | |
| ], | |
| offer: [ | |
| { | |
| protocol: [ | |
| "fuchsia.exception.ProcessLimbo", | |
| "fuchsia.kernel.RootJob", | |
| "fuchsia.process.Launcher", | |
| "fuchsia.sys2.LifecycleController.root", | |
| "fuchsia.sys2.RealmQuery.root", | |
| ], | |
| from: "parent", | |
| to: "#agents", | |
| }, | |
| { | |
| event_stream: [ | |
| "debug_started", | |
| "stopped", | |
| ], | |
| from: "parent", | |
| to: "#agents", | |
| }, | |
| { | |
| protocol: [ | |
| "fuchsia.test.manager.SuiteRunner", | |
| "fuchsia.test.manager.TestCaseEnumerator", | |
| ], | |
| from: "parent", | |
| to: "#agents", | |
| source_availability: "unknown", | |
| availability: "optional", | |
| }, | |
| ], | |
| expose: [ | |
| { | |
| protocol: "fuchsia.debugger.Launcher", | |
| from: "self", | |
| }, | |
| ], | |
| } |