@evomap/evolver-cli 2.0.0-beta.1 → 2.0.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. package/dist/antiGeneBenchmark.js +12 -0
  2. package/dist/antiGeneEvidence.d.ts +15 -0
  3. package/dist/antiGeneEvidence.js +49 -0
  4. package/dist/antiGeneRollout.d.ts +3 -1
  5. package/dist/antiGeneRollout.js +16 -2
  6. package/dist/atp.js +4 -2
  7. package/dist/autoDistillLlm.js +4 -1
  8. package/dist/autoexec.d.ts +4 -1
  9. package/dist/autoexec.js +23 -5
  10. package/dist/cli.js +12 -5
  11. package/dist/cliContracts.js +8 -2
  12. package/dist/cliLifecycle.d.ts +7 -0
  13. package/dist/cliLifecycle.js +9 -0
  14. package/dist/cycleConsumer.d.ts +59 -1
  15. package/dist/cycleConsumer.js +382 -5
  16. package/dist/dashboard.d.ts +21 -0
  17. package/dist/dashboard.js +173 -0
  18. package/dist/dispatch.d.ts +1 -0
  19. package/dist/dispatch.js +27 -2
  20. package/dist/distillObserver.js +2 -2
  21. package/dist/distillPrimitives.d.ts +1 -1
  22. package/dist/distillPrimitives.js +29 -2
  23. package/dist/doctor.js +15 -3
  24. package/dist/index.d.ts +6 -1
  25. package/dist/index.js +251 -30
  26. package/dist/lifecycle.js +6 -2
  27. package/dist/login.d.ts +20 -4
  28. package/dist/login.js +58 -8
  29. package/dist/materialPackage.d.ts +52 -0
  30. package/dist/materialPackage.js +404 -0
  31. package/dist/materialSnapshot.d.ts +30 -0
  32. package/dist/materialSnapshot.js +148 -0
  33. package/dist/memoryEventMirror.d.ts +23 -0
  34. package/dist/memoryEventMirror.js +140 -0
  35. package/dist/migrate/fieldMap.js +25 -0
  36. package/dist/nonGitWorkspaceNotice.d.ts +24 -0
  37. package/dist/nonGitWorkspaceNotice.js +122 -0
  38. package/dist/proxyToken.d.ts +10 -0
  39. package/dist/proxyToken.js +80 -0
  40. package/dist/recipe.d.ts +10 -2
  41. package/dist/recipe.js +349 -7
  42. package/dist/reuseReport.js +16 -16
  43. package/dist/runtimeSessionSource.d.ts +10 -0
  44. package/dist/runtimeSessionSource.js +32 -5
  45. package/dist/setupHooks.d.ts +6 -1
  46. package/dist/setupHooks.js +5 -2
  47. package/dist/skill2gep.d.ts +38 -9
  48. package/dist/skill2gep.js +147 -14
  49. package/dist/skillDistill.d.ts +1 -0
  50. package/dist/skillDistill.js +4 -4
  51. package/dist/skillFetch.d.ts +18 -0
  52. package/dist/skillFetch.js +391 -0
  53. package/dist/solo/mode.js +5 -0
  54. package/dist/sync.d.ts +26 -0
  55. package/dist/sync.js +988 -0
  56. package/dist/trajectoryExport.js +23 -12
  57. package/dist/v1Compat.d.ts +24 -0
  58. package/dist/v1Compat.js +249 -0
  59. package/package.json +8 -6
@@ -0,0 +1,140 @@
1
+ import { events, hub as hubNs, observers } from '@evomap/evolver-core';
2
+ import { HUB_CONNECT_TIMEOUT_MS, } from '@evomap/evolver-adapter-public';
3
+ const MEMORY_EVENT_MIRROR_TYPES = {
4
+ 'cycle.started': 'attempt',
5
+ 'decision.gene_selected': 'attempt',
6
+ 'cycle.failed': 'validation',
7
+ 'gene.distilled': 'skill_emit',
8
+ 'capsule.produced': 'outcome',
9
+ 'value.reuse_hit': 'outcome',
10
+ 'value.reuse_outcome': 'outcome',
11
+ 'mutation.built': 'mutation_draft',
12
+ 'cycle.solidified': 'solidify',
13
+ 'evolution_event.projected': 'solidify',
14
+ };
15
+ const MEMORY_EVENT_MIRROR_EVENT_TYPES = Object.keys(MEMORY_EVENT_MIRROR_TYPES);
16
+ const DEFAULT_MEMORY_EVENT_MAX_CHARS = 12_000;
17
+ const MEMORY_EVENT_MIRROR_TIMEOUT_MS = HUB_CONNECT_TIMEOUT_MS + 5_000;
18
+ function memoryGraphSyncDisabled(env = process.env) {
19
+ return isOff(env['MEMORY_GRAPH_SYNC_HUB']) || isOff(env['EVOLVER_MEMORY_GRAPH_SYNC_HUB']);
20
+ }
21
+ export function rootEventMemoryGraphKind(type) {
22
+ return MEMORY_EVENT_MIRROR_TYPES[type] ?? null;
23
+ }
24
+ export function buildMemoryGraphMirrorEvent(event, opts = {}) {
25
+ const kind = rootEventMemoryGraphKind(event.type);
26
+ if (!kind)
27
+ return null;
28
+ const maxChars = opts.maxChars ?? DEFAULT_MEMORY_EVENT_MAX_CHARS;
29
+ const env = opts.env ?? {};
30
+ const payload = sanitizeValue(event.payload, maxChars, env);
31
+ const human = sanitizeValue(event.human, maxChars, env);
32
+ const actor = sanitizeValue(event.actor, maxChars, env);
33
+ return {
34
+ kind,
35
+ event: {
36
+ type: 'MemoryGraphEvent',
37
+ kind,
38
+ id: event.eventId,
39
+ ts: event.ts,
40
+ source: {
41
+ eventId: event.eventId,
42
+ seq: event.seq,
43
+ type: event.type,
44
+ },
45
+ payload: payload.value,
46
+ human: human.value,
47
+ actor: actor.value,
48
+ ...(payload.truncated || human.truncated || actor.truncated ? { truncated: true } : {}),
49
+ },
50
+ };
51
+ }
52
+ export function memoryEventMirrorObserver(hub, opts = {}) {
53
+ return {
54
+ meta: {
55
+ name: 'memory-event-mirror',
56
+ idempotent: true,
57
+ timeoutMs: MEMORY_EVENT_MIRROR_TIMEOUT_MS,
58
+ eventTypes: MEMORY_EVENT_MIRROR_EVENT_TYPES,
59
+ },
60
+ async handle(event) {
61
+ if (memoryGraphSyncDisabled(opts.env ?? process.env))
62
+ return;
63
+ const report = buildMemoryGraphMirrorEvent(event, { maxChars: opts.maxChars, env: opts.env ?? process.env });
64
+ if (!report)
65
+ return;
66
+ try {
67
+ await hub.recordMemoryEvent(report);
68
+ }
69
+ catch {
70
+ // Hub mirroring is telemetry only. Local root_event durability must never depend on it.
71
+ }
72
+ },
73
+ };
74
+ }
75
+ export function resolveMemoryEventMirrorObserver(env = process.env, hub) {
76
+ if (memoryGraphSyncDisabled(env))
77
+ return { enabled: false, reason: 'disabled', observer: null };
78
+ if (!hub || typeof hub.recordMemoryEvent !== 'function')
79
+ return { enabled: false, reason: 'no_hub', observer: null };
80
+ return { enabled: true, observer: memoryEventMirrorObserver(hub, { env }) };
81
+ }
82
+ function isOff(value) {
83
+ if (value === undefined)
84
+ return false;
85
+ const normalized = String(value ?? '').trim().toLowerCase();
86
+ return normalized === '' || normalized === '0' || normalized === 'false' || normalized === 'off';
87
+ }
88
+ function sanitizeValue(value, maxChars, env) {
89
+ const redacted = hubNs.redactDeep(redactEnvValues(value, env));
90
+ let json;
91
+ try {
92
+ json = JSON.stringify(redacted);
93
+ }
94
+ catch {
95
+ json = hubNs.redactString(String(redacted));
96
+ }
97
+ if (hubNs.detectEnvValueLeaks(json, env).length > 0) {
98
+ return {
99
+ value: {
100
+ redacted: true,
101
+ reason: 'env_value_leak',
102
+ },
103
+ truncated: false,
104
+ };
105
+ }
106
+ if (json.length <= maxChars)
107
+ return { value: redacted, truncated: false };
108
+ return {
109
+ value: {
110
+ truncated: true,
111
+ redactedJson: hubNs.redactString(json).slice(0, maxChars),
112
+ },
113
+ truncated: true,
114
+ };
115
+ }
116
+ function redactEnvValues(value, env) {
117
+ if (typeof value === 'string')
118
+ return redactEnvValueString(value, env);
119
+ if (Array.isArray(value))
120
+ return value.map((item) => redactEnvValues(item, env));
121
+ if (!value || typeof value !== 'object')
122
+ return value;
123
+ const out = {};
124
+ for (const [key, nested] of Object.entries(value)) {
125
+ const safeKey = hubNs.redactString(redactEnvValueString(key, env));
126
+ out[safeKey] = redactEnvValues(nested, env);
127
+ }
128
+ return out;
129
+ }
130
+ function redactEnvValueString(value, env) {
131
+ let out = value;
132
+ for (const [key, secret] of Object.entries(env)) {
133
+ if (!secret || secret.length < 8)
134
+ continue;
135
+ if (hubNs.detectEnvValueLeaks(out, { [key]: secret }).length === 0)
136
+ continue;
137
+ out = out.split(secret).join(hubNs.REDACTED);
138
+ }
139
+ return out;
140
+ }
@@ -45,6 +45,31 @@ export function mapV1Asset(kind, v1) {
45
45
  record['tool_policy'] = toolPolicy;
46
46
  else if (v1['tool_policy'] !== null && v1['tool_policy'] !== undefined)
47
47
  dropped['tool_policy'] = v1['tool_policy'];
48
+ // v1 #302 `_source` block (generation_source / quality_score / quality_heuristics / overcame_errors) → v2
49
+ // `generation_meta`. v1 #302 was never merged to HEAD, so real v1 genes lack `_source`; this maps it IF present
50
+ // (forward-compat for a repo that carried the #302 branch). A `_source` whose generation_source normalizes away
51
+ // (unknown enum) is NOT silently dropped — the raw `_source` stays in `dropped` for audit (it already landed there
52
+ // above as a non-schema field). `generation_meta` itself (if a v1 gene already carried the v2 field name) is a
53
+ // deltaKey so it was skipped above and is handled here by normalize, same as the hints.
54
+ if (v1['_source'] !== undefined && v1['_source'] !== null) {
55
+ const src = v1['_source'];
56
+ if (src && typeof src === 'object') {
57
+ const s = src;
58
+ const mapped = wire.normalizeGenerationMeta({
59
+ source: s['generation_source'],
60
+ quality_score: s['quality_score'],
61
+ quality_heuristics: s['quality_heuristics'],
62
+ overcame_errors: s['overcame_errors'],
63
+ });
64
+ if (mapped)
65
+ record['generation_meta'] = mapped;
66
+ }
67
+ }
68
+ const generationMeta = wire.normalizeGenerationMeta(v1['generation_meta']);
69
+ if (generationMeta)
70
+ record['generation_meta'] = generationMeta;
71
+ else if (v1['generation_meta'] !== null && v1['generation_meta'] !== undefined)
72
+ dropped['generation_meta'] = v1['generation_meta'];
48
73
  }
49
74
  if (allowed.has('schema_version') && record['schema_version'] === undefined)
50
75
  record['schema_version'] = wire.SCHEMA_VERSION;
@@ -0,0 +1,24 @@
1
+ type GitWorkspaceStatus = 'git' | 'non_git' | 'unknown';
2
+ export declare const NON_GIT_WORKSPACE_NOTICE_THROTTLE_MS: number;
3
+ export interface NonGitWorkspaceNoticeOptions {
4
+ cwd?: string;
5
+ statePath?: string;
6
+ now?: () => number;
7
+ throttleMs?: number;
8
+ detect?: (cwd: string) => GitWorkspaceStatus;
9
+ write?: (line: string) => void;
10
+ }
11
+ interface NonGitWorkspaceNoticeResult {
12
+ status: GitWorkspaceStatus;
13
+ emitted: boolean;
14
+ workspaceHash?: string;
15
+ }
16
+ type GitProbe = (file: string, args: readonly string[], options: {
17
+ encoding: 'utf8';
18
+ stdio: readonly ['ignore', 'pipe', 'pipe'];
19
+ timeout: number;
20
+ windowsHide: true;
21
+ }) => string;
22
+ export declare function detectGitWorkspace(cwd?: string, gitProbe?: GitProbe): GitWorkspaceStatus;
23
+ export declare function maybeEmitNonGitWorkspaceNotice(options?: NonGitWorkspaceNoticeOptions): NonGitWorkspaceNoticeResult;
24
+ export {};
@@ -0,0 +1,122 @@
1
+ import { execFileSync } from 'node:child_process';
2
+ import { createHash } from 'node:crypto';
3
+ import { existsSync, mkdirSync, readFileSync, renameSync, writeFileSync } from 'node:fs';
4
+ import { dirname, join, parse, resolve } from 'node:path';
5
+ import { events } from '@evomap/evolver-core';
6
+ export const NON_GIT_WORKSPACE_NOTICE_THROTTLE_MS = 24 * 60 * 60 * 1000;
7
+ const NON_GIT_WORKSPACE_NOTICE = '[evolver] This workspace is not a git repository; Evolver will still run, but recording, recall, and rollback context may be limited. Run from a project root or initialize git for full context.\n';
8
+ const GIT_DETECT_TIMEOUT_MS = 500;
9
+ function nonGitWorkspaceNoticeStatePath() {
10
+ return join(events.evomapHome(), 'evolution', 'non-git-workspace-notice.json');
11
+ }
12
+ function hasGitMarkerAncestor(cwd) {
13
+ let cur = resolve(cwd);
14
+ const root = parse(cur).root;
15
+ for (;;) {
16
+ if (existsSync(join(cur, '.git')))
17
+ return true;
18
+ if (cur === root)
19
+ return false;
20
+ cur = dirname(cur);
21
+ }
22
+ }
23
+ export function detectGitWorkspace(cwd = process.cwd(), gitProbe = execFileSync) {
24
+ try {
25
+ const out = gitProbe('git', ['-C', cwd, 'rev-parse', '--is-inside-work-tree'], {
26
+ encoding: 'utf8',
27
+ stdio: ['ignore', 'pipe', 'pipe'],
28
+ timeout: GIT_DETECT_TIMEOUT_MS,
29
+ windowsHide: true,
30
+ }).trim();
31
+ if (out === 'true')
32
+ return 'git';
33
+ if (out === 'false')
34
+ return 'unknown';
35
+ return 'unknown';
36
+ }
37
+ catch (error) {
38
+ const err = error;
39
+ const stderr = Buffer.isBuffer(err.stderr) ? err.stderr.toString('utf8') : typeof err.stderr === 'string' ? err.stderr : '';
40
+ const msg = `${stderr} ${typeof err.message === 'string' ? err.message : ''}`;
41
+ if (err.status === 128) {
42
+ if (hasGitMarkerAncestor(cwd))
43
+ return 'unknown';
44
+ if (/not a git repository|not a git repo/i.test(msg))
45
+ return 'non_git';
46
+ return 'non_git';
47
+ }
48
+ return 'unknown';
49
+ }
50
+ }
51
+ function workspaceHash(cwd) {
52
+ const normalized = resolve(cwd);
53
+ return createHash('sha256').update(normalized).digest('hex');
54
+ }
55
+ function readState(path) {
56
+ try {
57
+ const parsed = JSON.parse(readFileSync(path, 'utf8'));
58
+ if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed))
59
+ return { version: 1, workspaces: {} };
60
+ const workspaces = parsed.workspaces;
61
+ if (!workspaces || typeof workspaces !== 'object' || Array.isArray(workspaces))
62
+ return { version: 1, workspaces: {} };
63
+ const out = {};
64
+ for (const [key, value] of Object.entries(workspaces)) {
65
+ if (!/^[a-f0-9]{64}$/.test(key))
66
+ continue;
67
+ if (!value || typeof value !== 'object' || Array.isArray(value))
68
+ continue;
69
+ const lastNotifiedAt = value.lastNotifiedAt;
70
+ if (typeof lastNotifiedAt === 'string')
71
+ out[key] = { lastNotifiedAt };
72
+ }
73
+ return { version: 1, workspaces: out };
74
+ }
75
+ catch {
76
+ return { version: 1, workspaces: {} };
77
+ }
78
+ }
79
+ function writeStateBestEffort(path, state) {
80
+ try {
81
+ mkdirSync(dirname(path), { recursive: true, mode: 0o700 });
82
+ const tmp = `${path}.${process.pid}.${Date.now()}.tmp`;
83
+ writeFileSync(tmp, `${JSON.stringify(state, null, 2)}\n`, { encoding: 'utf8', mode: 0o600 });
84
+ renameSync(tmp, path);
85
+ }
86
+ catch {
87
+ // The notice is operator UX only; state persistence must never break hooks.
88
+ }
89
+ }
90
+ function isThrottled(lastNotifiedAt, now, throttleMs) {
91
+ if (!lastNotifiedAt)
92
+ return false;
93
+ const previous = Date.parse(lastNotifiedAt);
94
+ if (!Number.isFinite(previous))
95
+ return false;
96
+ return now - previous < throttleMs;
97
+ }
98
+ export function maybeEmitNonGitWorkspaceNotice(options = {}) {
99
+ const cwd = options.cwd ?? process.cwd();
100
+ const detect = options.detect ?? detectGitWorkspace;
101
+ const status = detect(cwd);
102
+ if (status !== 'non_git')
103
+ return { status, emitted: false };
104
+ const now = options.now ? options.now() : Date.now();
105
+ const throttleMs = options.throttleMs ?? NON_GIT_WORKSPACE_NOTICE_THROTTLE_MS;
106
+ const statePath = options.statePath ?? nonGitWorkspaceNoticeStatePath();
107
+ const hash = workspaceHash(cwd);
108
+ const state = readState(statePath);
109
+ if (isThrottled(state.workspaces[hash]?.lastNotifiedAt, now, throttleMs)) {
110
+ return { status, emitted: false, workspaceHash: hash };
111
+ }
112
+ const write = options.write ?? ((line) => process.stderr.write(line));
113
+ try {
114
+ write(NON_GIT_WORKSPACE_NOTICE);
115
+ }
116
+ catch {
117
+ return { status, emitted: false, workspaceHash: hash };
118
+ }
119
+ state.workspaces[hash] = { lastNotifiedAt: new Date(now).toISOString() };
120
+ writeStateBestEffort(statePath, state);
121
+ return { status, emitted: true, workspaceHash: hash };
122
+ }
@@ -0,0 +1,10 @@
1
+ import { lstatSync, readFileSync } from 'node:fs';
2
+ export interface ProxyTokenDeps {
3
+ env?: Record<string, string | undefined>;
4
+ stdout?: (text: string) => void;
5
+ stderr?: (text: string) => void;
6
+ homeDir?: string;
7
+ lstat?: typeof lstatSync;
8
+ readFile?: typeof readFileSync;
9
+ }
10
+ export declare function runProxyToken(argv: readonly string[], deps?: ProxyTokenDeps): Promise<number>;
@@ -0,0 +1,80 @@
1
+ import { lstatSync, readFileSync } from 'node:fs';
2
+ import { homedir } from 'node:os';
3
+ import { join } from 'node:path';
4
+ const USAGE = 'Usage: evolver proxy-token [--settings FILE]\n';
5
+ function proxyTokenUsage() {
6
+ return USAGE;
7
+ }
8
+ function resolveProxyTokenSettingsPath(env = process.env, homeDir = homedir(), explicitSettings) {
9
+ const explicit = explicitSettings?.trim();
10
+ if (explicit)
11
+ return explicit;
12
+ const proxySettingsFile = env['EVOLVER_PROXY_SETTINGS_FILE']?.trim();
13
+ if (proxySettingsFile)
14
+ return proxySettingsFile;
15
+ const settingsDir = env['EVOLVER_SETTINGS_DIR']?.trim() || join(homeDir, '.evolver');
16
+ return join(settingsDir, 'settings.json');
17
+ }
18
+ function readProxyTokenFromSettingsFile(settingsPath, deps = {}) {
19
+ const stat = deps.lstat ?? lstatSync;
20
+ const read = deps.readFile ?? readFileSync;
21
+ try {
22
+ if (!stat(settingsPath).isFile())
23
+ return undefined;
24
+ const parsed = JSON.parse(read(settingsPath, 'utf8'));
25
+ const proxy = recordValue(recordValue(parsed)['proxy']);
26
+ const token = typeof proxy['token'] === 'string' ? proxy['token'].trim() : '';
27
+ return token || undefined;
28
+ }
29
+ catch {
30
+ return undefined;
31
+ }
32
+ }
33
+ export async function runProxyToken(argv, deps = {}) {
34
+ const stdout = deps.stdout ?? ((text) => { process.stdout.write(text); });
35
+ const stderr = deps.stderr ?? ((text) => { process.stderr.write(text); });
36
+ const env = deps.env ?? process.env;
37
+ let settingsFile;
38
+ for (let i = 0; i < argv.length; i++) {
39
+ const arg = argv[i];
40
+ if (arg === '-h' || arg === '--help') {
41
+ stdout(proxyTokenUsage());
42
+ return 0;
43
+ }
44
+ if (arg === '--settings') {
45
+ const value = argv[i + 1];
46
+ if (value === undefined || value.length === 0) {
47
+ stderr(USAGE);
48
+ stderr('[proxy-token] missing value for --settings\n');
49
+ return 2;
50
+ }
51
+ settingsFile = value;
52
+ i++;
53
+ continue;
54
+ }
55
+ if (arg?.startsWith('--settings=')) {
56
+ const value = arg.slice('--settings='.length);
57
+ if (!value) {
58
+ stderr(USAGE);
59
+ stderr('[proxy-token] missing value for --settings\n');
60
+ return 2;
61
+ }
62
+ settingsFile = value;
63
+ continue;
64
+ }
65
+ stderr(USAGE);
66
+ stderr('[proxy-token] unknown argument\n');
67
+ return 2;
68
+ }
69
+ const path = resolveProxyTokenSettingsPath(env, deps.homeDir ?? homedir(), settingsFile);
70
+ const token = readProxyTokenFromSettingsFile(path, deps);
71
+ if (!token) {
72
+ stderr('[proxy-token] no active proxy token found; start evolver-proxy first\n');
73
+ return 1;
74
+ }
75
+ stdout(`${token}\n`);
76
+ return 0;
77
+ }
78
+ function recordValue(value) {
79
+ return value && typeof value === 'object' && !Array.isArray(value) ? value : {};
80
+ }
package/dist/recipe.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { assetstore, type hub as hubNs } from '@evomap/evolver-core';
1
+ import { assetstore, events, type hub as hubNs } from '@evomap/evolver-core';
2
2
  import type { ConnectPublicOptions, PublicHubCapability } from '@evomap/evolver-adapter-public';
3
3
  export interface RecipeCliDeps {
4
4
  hub?: RecipeHub;
@@ -6,6 +6,8 @@ export interface RecipeCliDeps {
6
6
  env?: NodeJS.ProcessEnv;
7
7
  log?: (line: string) => void;
8
8
  err?: (line: string) => void;
9
+ ingestor?: events.Ingestor;
10
+ review?: assetstore.ReviewLedger;
9
11
  connectHub?: (opts: ConnectPublicOptions) => {
10
12
  hub: PublicHubCapability;
11
13
  auth: hubNs.AuthProvider;
@@ -42,7 +44,13 @@ export interface RecipeReuseOptions {
42
44
  inputPayload: Record<string, unknown>;
43
45
  jsonOut: boolean;
44
46
  }
45
- export type RecipeOptions = RecipeBuildOptions | RecipeReuseOptions;
47
+ export interface RecipeFromSkillsOptions {
48
+ sub: 'from-skills';
49
+ manifestPath: string;
50
+ publish: boolean;
51
+ jsonOut: boolean;
52
+ }
53
+ export type RecipeOptions = RecipeBuildOptions | RecipeReuseOptions | RecipeFromSkillsOptions;
46
54
  export declare function runRecipeCommand(argv: readonly string[], deps?: RecipeCliDeps): Promise<number>;
47
55
  export declare function createRecipeHubFromEnv(env?: NodeJS.ProcessEnv, connectHub?: (opts: ConnectPublicOptions) => {
48
56
  hub: PublicHubCapability;