@andorra-labs/code 0.1.14 → 0.1.15

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 (107) hide show
  1. package/dist/src/acp-agent.d.ts +54 -0
  2. package/dist/src/acp-agent.js +991 -0
  3. package/dist/src/agent-execution.js +4 -0
  4. package/dist/src/agent-mcp-catalog.js +2 -0
  5. package/dist/src/agent-mcp.d.ts +2 -0
  6. package/dist/src/agent-mcp.js +84 -2
  7. package/dist/src/andorra/entry.js +21 -3
  8. package/dist/src/andorra/hosted.d.ts +3 -0
  9. package/dist/src/andorra/hosted.js +5 -1
  10. package/dist/src/andorra/notices.d.ts +10 -1
  11. package/dist/src/andorra/notices.js +25 -2
  12. package/dist/src/andorra/terminal.d.ts +2 -0
  13. package/dist/src/andorra/terminal.js +2 -2
  14. package/dist/src/app-server/protocol.d.ts +6 -2
  15. package/dist/src/app-server/protocol.js +1 -1
  16. package/dist/src/app-server/workspace.d.ts +1 -0
  17. package/dist/src/app-server/workspace.js +141 -10
  18. package/dist/src/app-server.d.ts +8 -0
  19. package/dist/src/app-server.js +87 -41
  20. package/dist/src/auth/AuthManager.js +4 -4
  21. package/dist/src/browser-bridge.d.ts +1 -0
  22. package/dist/src/browser-bridge.js +5 -2
  23. package/dist/src/browser-external-app.d.ts +27 -0
  24. package/dist/src/browser-external-app.js +60 -0
  25. package/dist/src/browser-panel-tool.d.ts +6 -0
  26. package/dist/src/browser-panel-tool.js +36 -0
  27. package/dist/src/browser-server.d.ts +5 -0
  28. package/dist/src/browser-server.js +27 -3
  29. package/dist/src/browser-view.d.ts +16 -0
  30. package/dist/src/browser-view.js +60 -2
  31. package/dist/src/bug-report.d.ts +81 -0
  32. package/dist/src/bug-report.js +235 -0
  33. package/dist/src/claude-provider.d.ts +2 -1
  34. package/dist/src/claude-provider.js +10 -8
  35. package/dist/src/cli-sign-in.d.ts +3 -1
  36. package/dist/src/cli-sign-in.js +4 -1
  37. package/dist/src/cli.js +164 -34
  38. package/dist/src/coding-tools.js +7 -7
  39. package/dist/src/command-screens.d.ts +9 -2
  40. package/dist/src/command-screens.js +161 -94
  41. package/dist/src/commands.d.ts +1 -1
  42. package/dist/src/commands.js +1 -0
  43. package/dist/src/completion-gates.d.ts +22 -0
  44. package/dist/src/completion-gates.js +11 -0
  45. package/dist/src/config.d.ts +5 -0
  46. package/dist/src/config.js +48 -0
  47. package/dist/src/google-provider.d.ts +31 -0
  48. package/dist/src/google-provider.js +153 -0
  49. package/dist/src/graph-health.js +1 -1
  50. package/dist/src/graph-manager-chat.js +6 -1
  51. package/dist/src/graph-sync.d.ts +1 -0
  52. package/dist/src/graph-sync.js +93 -34
  53. package/dist/src/graph-tool.d.ts +2 -0
  54. package/dist/src/graph-tool.js +2 -2
  55. package/dist/src/graph-ui/app.js +67 -8
  56. package/dist/src/graph-ui/edge-router.js +121 -53
  57. package/dist/src/graph-visibility.d.ts +31 -0
  58. package/dist/src/graph-visibility.js +102 -0
  59. package/dist/src/live-model.d.ts +24 -0
  60. package/dist/src/live-model.js +37 -0
  61. package/dist/src/managed-sign-in.d.ts +1 -0
  62. package/dist/src/managed-sign-in.js +13 -0
  63. package/dist/src/membership-errors.d.ts +2 -0
  64. package/dist/src/membership-errors.js +5 -1
  65. package/dist/src/membership.d.ts +3 -0
  66. package/dist/src/membership.js +19 -2
  67. package/dist/src/model-health-cache.js +1 -1
  68. package/dist/src/model-metadata.js +8 -1
  69. package/dist/src/paged-transcript.d.ts +2 -0
  70. package/dist/src/paged-transcript.js +16 -0
  71. package/dist/src/provider-connection.js +17 -0
  72. package/dist/src/provider-engine.d.ts +5 -0
  73. package/dist/src/provider-engine.js +3 -3
  74. package/dist/src/provider-import.js +3 -1
  75. package/dist/src/provider-settings.js +14 -2
  76. package/dist/src/providers.d.ts +16 -2
  77. package/dist/src/providers.js +36 -12
  78. package/dist/src/react-runtime.js +21 -5
  79. package/dist/src/read-document-tool.d.ts +2 -0
  80. package/dist/src/read-document-tool.js +6 -6
  81. package/dist/src/remote/engine-pool.js +26 -2
  82. package/dist/src/runtime-environment.d.ts +1 -0
  83. package/dist/src/runtime-environment.js +13 -0
  84. package/dist/src/save-lock.js +14 -7
  85. package/dist/src/session-title.d.ts +3 -0
  86. package/dist/src/session-title.js +5 -2
  87. package/dist/src/sign-in-detection.d.ts +1 -1
  88. package/dist/src/sign-in-detection.js +10 -3
  89. package/dist/src/sign-in-offer.js +1 -1
  90. package/dist/src/skill-commands.js +1 -1
  91. package/dist/src/skills/bundled/bug-report/SKILL.md +80 -0
  92. package/dist/src/skills/bundled/graph-manager/SKILL.md +9 -1
  93. package/dist/src/skills/bundled/graph-manager/errors.md +1 -0
  94. package/dist/src/skills/bundled/provenance.json +7 -2
  95. package/dist/src/skills/runtime-skills.js +1 -0
  96. package/dist/src/telemetry/uploader.d.ts +7 -1
  97. package/dist/src/telemetry/uploader.js +11 -2
  98. package/dist/src/terminal-links.d.ts +16 -0
  99. package/dist/src/terminal-links.js +113 -0
  100. package/dist/src/terminal-ui.d.ts +8 -1
  101. package/dist/src/terminal-ui.js +40 -14
  102. package/dist/src/tool-catalog.js +1 -1
  103. package/dist/src/trajectory.js +6 -1
  104. package/dist/src/transcript.d.ts +2 -0
  105. package/dist/src/transcript.js +2 -1
  106. package/dist/src/types.d.ts +2 -0
  107. package/package.json +2 -1
@@ -11,6 +11,7 @@ import { structuredText } from './code-intelligence/CodeIntelligenceManager.js';
11
11
  import { buildMemoryBlock } from './memory/MemoryRetriever.js';
12
12
  import { discoverRuntimeSkills, matchRuntimeSkill, runtimeSkillTools } from './skills/runtime-skills.js';
13
13
  import { promptSkillReferences } from './skills/prompt-skills.js';
14
+ import { BUG_REPORT_SKILL, bugReportTool } from './bug-report.js';
14
15
  import { toolFamilies, routeToolFamilies, decisionExecutionGuidance } from './decision/toolFamilies.js';
15
16
  import { allowsGraphRouting, route as codeGraphRoute } from './code-intelligence/ContextRouter.js';
16
17
  import { randomUUID } from 'node:crypto';
@@ -997,6 +998,9 @@ export async function executeAgentNode(node, options) {
997
998
  }).map(requirePublishedPlan) : [];
998
999
  if (skillTools.length)
999
1000
  tools = tools.filter(tool => tool.name !== 'read_skill_resource');
1001
+ // The report tool exists only in a run that carries the bug-report skill, so no other run pays for its schema.
1002
+ if (depth === 0 && [...inheritedSkills, ...promptSkills].includes(BUG_REPORT_SKILL))
1003
+ tools.push(bugReportTool({ emit }));
1000
1004
  const effectiveTask = typeof inputs.taskInstruction === 'string' && inputs.taskInstruction.trim() ? inputs.taskInstruction.trim() : task;
1001
1005
  const graphFirstSearch = depth === 0 && !!codeIntel?.active && codeGraphRoute(effectiveTask) === 'graph';
1002
1006
  const decisionTask = depth > 0 ? task : options.decisionPreflight?.task ?? effectiveTask;
@@ -23,6 +23,8 @@ export const AGENT_MCP_CATALOG = [
23
23
  { name: 'andorra_graph_delete', description: 'Soft-delete a graph after the user confirms in chat: publishes a revision marked deleted, hides it from listings and new runs, keeps every revision. confirm must repeat the id.', inputSchema: obj({ id: str, expectedRevision: { type: 'integer', minimum: 1 }, confirm: str }, ['id', 'expectedRevision', 'confirm']) },
24
24
  { name: 'andorra_graph_restore', description: 'Restore a soft-deleted graph by publishing the next revision without the deleted marker.', inputSchema: obj({ id: str, expectedRevision: { type: 'integer', minimum: 1 } }, ['id', 'expectedRevision']) },
25
25
  { name: 'andorra_graph_discard', description: 'Discard an unpublished local graph draft.', inputSchema: obj(graphDraftSchema, ['draftId']) },
26
+ { name: 'andorra_graph_visibility_get', description: 'Read which projects list a published graph in their graph picker (everywhere, or only the named project paths), and the registered project paths it can be limited to.', inputSchema: obj({ id: str }, ['id']) },
27
+ { name: 'andorra_graph_visibility_set', description: 'Choose which projects list a published graph. projects is "this" (the project this task runs in), "all" (every project), or a list of registered project paths (andorra_graph_visibility_get lists them).', inputSchema: obj({ id: str, projects: { oneOf: [{ type: 'string', enum: ['this', 'all'] }, { type: 'array', items: str, minItems: 1 }] } }, ['id', 'projects']) },
26
28
  { name: 'andorra_projects_list', description: 'List registered projects and discovered session workspaces.', inputSchema: obj({}) },
27
29
  { name: 'andorra_sessions_list', description: 'Search sessions by project, status and last X minutes (lookbackMinutes). Supports paginated results.', inputSchema: obj({ ...searchFilters, status: { type: 'string', enum: ['completed', 'pending', 'running', 'required_input', 'incomplete'] },
28
30
  offset: num, limit: { type: 'integer', minimum: 1, maximum: 100 } }) },
@@ -87,7 +87,9 @@ export declare class AgentMcpBackend {
87
87
  private upsertEdge;
88
88
  call(name: string, rawArgs?: unknown, options?: {
89
89
  beforeSave?: () => void;
90
+ workspace?: string;
90
91
  }): Promise<AgentMcpReply>;
92
+ private graphVisibility;
91
93
  private dispatch;
92
94
  }
93
95
  export { AGENT_MCP_TOOL_NAMES };
@@ -1,8 +1,11 @@
1
1
  import { randomUUID } from 'node:crypto';
2
+ import { realpath } from 'node:fs/promises';
3
+ import { isAbsolute, relative } from 'node:path';
2
4
  import { Server } from '@modelcontextprotocol/sdk/server/index.js';
3
5
  import { StdioServerTransport } from '@modelcontextprotocol/sdk/server/stdio.js';
4
6
  import { CallToolRequestSchema, ListToolsRequestSchema, ListResourcesRequestSchema, ReadResourceRequestSchema } from '@modelcontextprotocol/sdk/types.js';
5
7
  import { configDirectory, loadConfig } from './config.js';
8
+ import { graphVisibilityFor, setGraphVisibility } from './graph-visibility.js';
6
9
  import { graphStorageDirectory } from './graph-account.js';
7
10
  import { GraphSync } from './graph-sync.js';
8
11
  import { stampGraphProviderProfiles } from './graph-provider-portability.js';
@@ -66,6 +69,15 @@ export const GRAPH_AGENT_GUIDE = [
66
69
  'andorra_graph_restore {id, expectedRevision} publishes the next revision without the marker.',
67
70
  'A deleted graph still counts toward a free account\'s one custom graph, so a free account restores it rather than replacing it.',
68
71
  'DEFAULT_GRAPH: the bundled Default graph cannot be deleted.',
72
+ '',
73
+ '## Project visibility',
74
+ 'A published graph is listed in every project\'s graph picker until it is limited to some projects.',
75
+ 'andorra_graph_visibility_get {id} reports {visibleIn: "all"} or {visibleIn: "projects", projects: [paths]}.',
76
+ 'andorra_graph_visibility_set {id, projects} changes it: "this" limits the graph to the project the task runs in,',
77
+ '"all" lists it everywhere again, and a list of paths names registered projects; the get reply lists them in registeredProjects.',
78
+ 'When the user asks for a graph to be visible only in a project, call andorra_graph_visibility_set after publishing;',
79
+ 'never record visibility in graph metadata, which nothing reads. The bundled Default graph is always listed everywhere.',
80
+ 'PROJECT_NOT_REGISTERED: the path is not a project in the sidebar; the error lists the registered ones.',
69
81
  'CONFIRMATION_MISMATCH: confirm must equal id. GRAPH_IN_USE: an automation runs the graph; the error lists them; change them first.',
70
82
  'GRAPH_DELETED: the graph is deleted; restore it before editing or deleting it again. GRAPH_NOT_DELETED: restore needs a deleted graph.',
71
83
  'RESERVED_METADATA: metadata.deletedAt is set only by the delete and restore tools; andorra_graph_patch and publishing refuse it.',
@@ -533,7 +545,7 @@ export class AgentMcpBackend {
533
545
  }
534
546
  async call(name, rawArgs = {}, options = {}) {
535
547
  try {
536
- return { ok: true, data: await this.dispatch(name, argsRecord(rawArgs), options.beforeSave) };
548
+ return { ok: true, data: await this.dispatch(name, argsRecord(rawArgs), options.beforeSave, options.workspace) };
537
549
  }
538
550
  catch (error) {
539
551
  if (error instanceof GraphConflictError)
@@ -543,6 +555,9 @@ export class AgentMcpBackend {
543
555
  return { ok: false, error: { code: error.code, message: error.message } };
544
556
  if (error instanceof FreeTierLimitError)
545
557
  return { ok: false, error: { code: error.code, message: error.message } };
558
+ if (error instanceof PaidMembershipRequiredError && error.unavailable)
559
+ return { ok: false, error: { code: 'MEMBERSHIP_UNAVAILABLE',
560
+ message: error.message + ' An open draft is kept: repeat the same call after a short wait.' } };
546
561
  if (error instanceof PaidMembershipRequiredError) {
547
562
  const status = await getAuthStatus().catch(() => undefined);
548
563
  return { ok: false, error: status?.signedIn
@@ -556,7 +571,71 @@ export class AgentMcpBackend {
556
571
  return { ok: false, error: backendIssue(error) };
557
572
  }
558
573
  }
559
- async dispatch(name, args, beforeSave) {
574
+ async graphVisibility(setting, args, access, beforeSave, workspace) {
575
+ const id = field(args, 'id');
576
+ if (id === 'default')
577
+ throw new AgentMcpError('DEFAULT_GRAPH', 'The bundled Default graph is always listed in every project.');
578
+ if (!access.subject)
579
+ throw new AgentMcpError('AUTH_REQUIRED', 'Sign in to your Andorra Code account to choose where a graph is listed.');
580
+ const graph = await this.readGraph(id, access.directory);
581
+ if (isDeletedGraph(graph))
582
+ throw new AgentMcpError('GRAPH_DELETED', 'Graph ' + id + ' is deleted. Restore it with andorra_graph_restore before changing where it is listed.');
583
+ const describe = (visibility) => {
584
+ const projects = visibility[id];
585
+ return projects === undefined ? { id, visibleIn: 'all' } : { id, visibleIn: 'projects', projects };
586
+ };
587
+ if (!setting) {
588
+ const config = await loadConfig(this.directory);
589
+ await this.assertGraphIdentity(access);
590
+ // The registered projects are what a list of paths may name; the graphs tool has no project listing of its own.
591
+ return { ...describe(graphVisibilityFor(config, access.subject)), registeredProjects: (config.projects ?? []).map(project => project.path) };
592
+ }
593
+ const requested = args.projects;
594
+ const registered = ((await loadConfig(this.directory)).projects ?? []).map(project => project.path);
595
+ const same = (a, b) => process.platform === 'win32' ? a.toLowerCase() === b.toLowerCase() : a === b;
596
+ const notRegistered = (path) => new AgentMcpError('PROJECT_NOT_REGISTERED', path + ' is not a project in the Andorra sidebar. Registered projects: ' + (registered.length ? registered.join(', ') : 'none') + '.');
597
+ const resolveProject = async (path, containing) => {
598
+ let real;
599
+ try {
600
+ real = await realpath(path);
601
+ }
602
+ catch {
603
+ real = path;
604
+ }
605
+ const exact = registered.find(project => same(project, real) || same(project, path));
606
+ if (exact)
607
+ return exact;
608
+ if (containing) {
609
+ // A task can run in a folder inside a project; it belongs to the closest registered project that holds it.
610
+ const holders = registered.filter(project => { const rel = relative(project, real); return rel !== '' && !rel.startsWith('..') && !isAbsolute(rel); });
611
+ const closest = holders.sort((a, b) => b.length - a.length)[0];
612
+ if (closest)
613
+ return closest;
614
+ }
615
+ throw notRegistered(path);
616
+ };
617
+ let projects;
618
+ if (requested === 'all')
619
+ projects = undefined;
620
+ else if (requested === 'this') {
621
+ const here = workspace ?? this.options.subagentWorkspace ?? process.cwd();
622
+ projects = [await resolveProject(here, true)];
623
+ }
624
+ else if (Array.isArray(requested) && requested.length > 0 && requested.every(path => typeof path === 'string' && path.trim() && !path.includes('\0'))) {
625
+ projects = [];
626
+ for (const path of requested)
627
+ projects.push(await resolveProject(path.trim(), false));
628
+ }
629
+ else
630
+ throw new AgentMcpError('INVALID_ARGUMENTS', 'projects must be "this", "all", or a non-empty list of registered project paths.');
631
+ beforeSave?.();
632
+ await this.assertGraphIdentity(access);
633
+ const visibility = await setGraphVisibility(this.directory, access.subject, id, projects);
634
+ return { ...describe(visibility), note: projects === undefined
635
+ ? 'The graph is listed in every project.'
636
+ : 'The graph is listed only in ' + projects.join(', ') + '. Other projects no longer offer it in the graph picker.' };
637
+ }
638
+ async dispatch(name, args, beforeSave, workspace) {
560
639
  if (name === 'andorra_graph_guide')
561
640
  return { architecture: GRAPH_AGENT_GUIDE, resourceUri: 'andorra://graph/architecture' };
562
641
  if (name === 'andorra_projects_list')
@@ -655,6 +734,9 @@ export class AgentMcpBackend {
655
734
  return cancelled ? { cancelled: true } : { cancelled: false, note: 'No subagent run is active in this process.' };
656
735
  }
657
736
  const access = await this.graphAccess();
737
+ if (name === 'andorra_graph_visibility_get' || name === 'andorra_graph_visibility_set') {
738
+ return this.graphVisibility(name === 'andorra_graph_visibility_set', args, access, beforeSave, workspace);
739
+ }
658
740
  if (name === 'andorra_graphs_list') {
659
741
  if (args.includeDeleted !== undefined && typeof args.includeDeleted !== 'boolean')
660
742
  throw new AgentMcpError('INVALID_ARGUMENTS', 'includeDeleted must be a boolean when supplied.');
@@ -29,6 +29,20 @@ function sameNames(a, b) {
29
29
  const keys = Object.keys(b);
30
30
  return Object.keys(left).length === keys.length && keys.every(key => Object.hasOwn(left, key) && left[key] === b[key]);
31
31
  }
32
+ function sameNumbers(a, b) {
33
+ const left = a ?? {};
34
+ const keys = Object.keys(b);
35
+ return Object.keys(left).length === keys.length && keys.every(key => Object.hasOwn(left, key) && left[key] === b[key]);
36
+ }
37
+ const UNSAFE_KEYS = ['__proto__', 'constructor', 'prototype'];
38
+ /** The sizes the answer states, by model id. */
39
+ function hostedParameters(answer) {
40
+ const sizes = {};
41
+ for (const model of answer.models)
42
+ if (model.parametersBillions !== undefined && !UNSAFE_KEYS.includes(model.id))
43
+ sizes[model.id] = model.parametersBillions;
44
+ return sizes;
45
+ }
32
46
  // Line breaks and tabs become spaces; every other control, format or bidi character is dropped.
33
47
  const SPACING = /[\t\n\v\f\r\u0085\u2028\u2029]/g;
34
48
  const INVISIBLE = /[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u180e\u200b-\u200f\u202a-\u202e\u2060-\u2064\u2066-\u206f\ufeff]/g;
@@ -61,7 +75,10 @@ export function applyAndorraEntry(config, answer, mode) {
61
75
  for (const model of answer.models)
62
76
  modelContextWindows[model.id] = model.contextWindow;
63
77
  const modelNames = hostedNames(answer);
64
- const named = Object.keys(modelNames).length ? { modelNames } : {};
78
+ const modelParameters = hostedParameters(answer);
79
+ const freeModels = answer.models.filter(model => model.free === true).map(model => model.id);
80
+ const named = { ...(Object.keys(modelNames).length ? { modelNames } : {}),
81
+ ...(Object.keys(modelParameters).length ? { modelParameters } : {}), ...(freeModels.length ? { freeModels } : {}) };
65
82
  const index = config.providers.findIndex(provider => provider.type === 'andorra');
66
83
  if (index < 0) {
67
84
  if (mode !== 'create')
@@ -73,9 +90,10 @@ export function applyAndorraEntry(config, answer, mode) {
73
90
  const existing = config.providers[index];
74
91
  const model = models.includes(existing.model) ? existing.model : models[0];
75
92
  if (model === existing.model && sameList(existing.models, models) && sameWindows(existing.modelContextWindows, modelContextWindows)
76
- && sameNames(existing.modelNames, modelNames))
93
+ && sameNames(existing.modelNames, modelNames) && sameNumbers(existing.modelParameters, modelParameters)
94
+ && sameList(existing.freeModels ?? [], freeModels))
77
95
  return undefined;
78
- const { modelNames: _previous, ...rest } = existing;
96
+ const { modelNames: _previous, modelParameters: _sizes, freeModels: _free, ...rest } = existing;
79
97
  const refreshed = { ...rest, model, models, modelContextWindows, ...named };
80
98
  if (refreshed.contextWindow !== undefined)
81
99
  applyModelContextWindow(refreshed, model);
@@ -1,7 +1,10 @@
1
+ /** `parametersBillions`: the model's size, where the router states one. `free`: served past the weekly allowance. */
1
2
  export interface HostedModel {
2
3
  id: string;
3
4
  name: string;
4
5
  contextWindow: number;
6
+ parametersBillions?: number;
7
+ free?: boolean;
5
8
  }
6
9
  /** How much of the account's weekly allowance is used (0-100) and when it renews (ISO timestamp). */
7
10
  export interface HostedAllowance {
@@ -1,3 +1,4 @@
1
+ import { isModelParameters } from '../providers.js';
1
2
  import { ANDORRA_PROVIDER_BASE_URL, ANDORRA_SIGN_IN_MESSAGE, ANDORRA_UNAVAILABLE_MESSAGE, andorraAccessToken, andorraBaseUrl } from './endpoint.js';
2
3
  export const HOSTED_CHECK_TIMEOUT_MS = 5_000;
3
4
  const HOSTED_BODY_LIMIT = 64 * 1024;
@@ -20,7 +21,10 @@ export function parseHostedAnswer(value) {
20
21
  if (typeof item.contextWindow !== 'number' || !Number.isSafeInteger(item.contextWindow) || item.contextWindow <= 0)
21
22
  return undefined;
22
23
  const name = typeof item.name === 'string' && item.name ? item.name : item.id;
23
- models.push({ id: item.id, name, contextWindow: item.contextWindow });
24
+ // Both are optional and descriptive: a malformed one is dropped on its own and never fails the answer.
25
+ models.push({ id: item.id, name, contextWindow: item.contextWindow,
26
+ ...(isModelParameters(item.parametersBillions) ? { parametersBillions: item.parametersBillions } : {}),
27
+ ...(item.free === true ? { free: true } : {}) });
24
28
  }
25
29
  const answer = { enabled: true, promotionId: body.promotionId, models };
26
30
  const allowance = parseAllowance(body.allowance);
@@ -1,7 +1,16 @@
1
- export declare const ANDORRA_ANNOUNCEMENT = "A promotional model is available.";
1
+ /**
2
+ * The ways the announcement is worded; one is picked at random each time it is shown. Each is one short
3
+ * sentence or two that fits the terminal's bubble on a narrow window, and none names a model.
4
+ */
5
+ export declare const ANDORRA_ANNOUNCEMENTS: readonly ["New Andorra model is available.", "A new Andorra model just landed.", "Fresh Andorra model, still warm.", "Psst. Andorra has a new model.", "A new Andorra model has entered the chat.", "New Andorra model. No assembly required.", "New Andorra model. Your backlog looks nervous.", "A new Andorra model is eager to meet your bugs.", "New Andorra model. It already read the docs.", "New Andorra model. No opinion on tabs or spaces."];
6
+ /** One of the announcement's wordings, picked with `random` (a number in [0, 1), as Math.random gives). */
7
+ export declare function andorraAnnouncement(random?: () => number): string;
2
8
  /** The second line of the announcement while Andorra is listed but not used yet: where to choose it. */
3
9
  export declare const ANDORRA_ADD_HINT = "Choose Andorra in /model to use it.";
4
10
  /** Said when the model the user picked is not served by the entry that was just saved (the offer changed meanwhile). */
5
11
  export declare const ANDORRA_MODEL_GONE = "That model is no longer available.";
12
+ /** The last line of the bubble, in two parts so the terminal can draw the tail as part of the box. */
13
+ export declare const ANDORRA_BUBBLE_TAIL = " \u2570 ";
14
+ export declare const ANDORRA_BUBBLE_SPEAKER = "Andorra";
6
15
  /** Short lines of text in a rounded box with a tail naming Andorra as the speaker. */
7
16
  export declare function speechBubble(...lines: string[]): string;
@@ -1,8 +1,31 @@
1
- export const ANDORRA_ANNOUNCEMENT = 'A promotional model is available.';
1
+ /**
2
+ * The ways the announcement is worded; one is picked at random each time it is shown. Each is one short
3
+ * sentence or two that fits the terminal's bubble on a narrow window, and none names a model.
4
+ */
5
+ export const ANDORRA_ANNOUNCEMENTS = [
6
+ 'New Andorra model is available.',
7
+ 'A new Andorra model just landed.',
8
+ 'Fresh Andorra model, still warm.',
9
+ 'Psst. Andorra has a new model.',
10
+ 'A new Andorra model has entered the chat.',
11
+ 'New Andorra model. No assembly required.',
12
+ 'New Andorra model. Your backlog looks nervous.',
13
+ 'A new Andorra model is eager to meet your bugs.',
14
+ 'New Andorra model. It already read the docs.',
15
+ 'New Andorra model. No opinion on tabs or spaces.',
16
+ ];
17
+ /** One of the announcement's wordings, picked with `random` (a number in [0, 1), as Math.random gives). */
18
+ export function andorraAnnouncement(random = Math.random) {
19
+ const index = Math.floor(random() * ANDORRA_ANNOUNCEMENTS.length);
20
+ return ANDORRA_ANNOUNCEMENTS[Math.min(ANDORRA_ANNOUNCEMENTS.length - 1, Math.max(0, index))];
21
+ }
2
22
  /** The second line of the announcement while Andorra is listed but not used yet: where to choose it. */
3
23
  export const ANDORRA_ADD_HINT = 'Choose Andorra in /model to use it.';
4
24
  /** Said when the model the user picked is not served by the entry that was just saved (the offer changed meanwhile). */
5
25
  export const ANDORRA_MODEL_GONE = 'That model is no longer available.';
26
+ /** The last line of the bubble, in two parts so the terminal can draw the tail as part of the box. */
27
+ export const ANDORRA_BUBBLE_TAIL = ' ╰ ';
28
+ export const ANDORRA_BUBBLE_SPEAKER = 'Andorra';
6
29
  /** Short lines of text in a rounded box with a tail naming Andorra as the speaker. */
7
30
  export function speechBubble(...lines) {
8
31
  const width = Math.max(...lines.map(line => [...line].length));
@@ -10,6 +33,6 @@ export function speechBubble(...lines) {
10
33
  `╭${'─'.repeat(width + 2)}╮`,
11
34
  ...lines.map(line => `│ ${line}${' '.repeat(width - [...line].length)} │`),
12
35
  `╰─╮${'─'.repeat(width)}╯`,
13
- ' ╰ Andorra',
36
+ ANDORRA_BUBBLE_TAIL + ANDORRA_BUBBLE_SPEAKER,
14
37
  ].join('\n');
15
38
  }
@@ -60,6 +60,8 @@ export interface TerminalAndorraOptions {
60
60
  check?: HostedMonitorOptions['check'];
61
61
  now?: HostedMonitorOptions['now'];
62
62
  timers?: HostedMonitorOptions['timers'];
63
+ /** Picks the announcement's wording; Math.random when omitted. */
64
+ random?: () => number;
63
65
  }
64
66
  /** The terminal app's Andorra monitor and the hooks its screens use. */
65
67
  export declare function createTerminalAndorra(options: TerminalAndorraOptions): {
@@ -2,7 +2,7 @@ import { changeConfigFile, loadConfig, reconcileSubagentPair } from '../config.j
2
2
  import { ANDORRA_CHANGED_MESSAGE } from './endpoint.js';
3
3
  import { fallbackProviderId, hasAndorraEntry, virtualAndorraEntry } from './entry.js';
4
4
  import { HostedMonitor } from './monitor.js';
5
- import { ANDORRA_ADD_HINT, ANDORRA_ANNOUNCEMENT, speechBubble } from './notices.js';
5
+ import { ANDORRA_ADD_HINT, andorraAnnouncement, speechBubble } from './notices.js';
6
6
  import { addAndorraEntry, saveAndorraAnswer } from './opt-in.js';
7
7
  import { readHostedState, recordAndorraRemoved } from './state.js';
8
8
  /** The ids of the providers that serve Andorra's hosted models: the footer shows the usage while one of them is in play. */
@@ -87,7 +87,7 @@ export function createTerminalAndorra(options) {
87
87
  },
88
88
  hasEntry: () => hasAndorraEntry(config),
89
89
  // The hint says where to choose it, while it is listed and not yet used.
90
- onAnnounce: () => options.print(monitor.listed() ? speechBubble(ANDORRA_ANNOUNCEMENT, ANDORRA_ADD_HINT) : speechBubble(ANDORRA_ANNOUNCEMENT)),
90
+ onAnnounce: () => { const line = andorraAnnouncement(options.random); options.print(monitor.listed() ? speechBubble(line, ANDORRA_ADD_HINT) : speechBubble(line)); },
91
91
  onNotice: () => options.print(ANDORRA_CHANGED_MESSAGE),
92
92
  onChange: () => options.refreshStatus(),
93
93
  onSettled: () => { for (const listener of [...listeners]) {
@@ -1,5 +1,5 @@
1
1
  export declare const APP_SERVER_PROTOCOL_VERSION = 2;
2
- export declare const APP_SERVER_CAPABILITIES: readonly ["run.start.runPermissions", "automations", "providers.models", "providers.test", "providers.test.model", "providers.streamIdleTimeout", "providers.modelContextWindows", "providers.name", "providers.claude", "providers.claudeAuth", "providers.grok", "providers.opencode", "providers.auth.submit", "providers.opencodeGo", "providers.discover.draft", "providers.detectSignIns", "providers.codexAuth", "providers.codexAuth.logout", "providers.codexAccounts", "providers.anthropicConsole", "run.resume.direction", "run.resume.model", "run.steer", "run.overrideAllNodes", "run.setModel", "run.setModel.node", "run.setPermissions", "run.start.continueSession", "run.start.entryHistory", "remote.owner.projects", "remote.workspaces.probe", "remote.engine.relay", "remote.hosting.device.grant", "extensions.manage", "extensions.resources", "skills.invoke", "mcp.manage", "mcp.edit", "mcp.status", "runs.files", "sessions.files", "account.profile", "sessions.stats", "sessions.usage", "config.analytics", "config.analytics.planGate", "sessions.trajectory", "config.externalSubagent", "config.codeIntel", "config.decisions", "browser.view", "attachments.read", "config.general", "sessions.pullRequest", "browser.view.go", "config.browser", "config.webSearch", "background.tasks", "workspace.warm", "browser.cookies.firefox", "browser.extensions", "sessions.compact", "sessions.goal", "sessions.changes", "run.current", "sessions.jev", "providers.andorra"];
2
+ export declare const APP_SERVER_CAPABILITIES: readonly ["run.start.runPermissions", "automations", "providers.models", "providers.test", "providers.test.model", "providers.streamIdleTimeout", "providers.modelContextWindows", "providers.name", "providers.claude", "providers.claudeAuth", "providers.grok", "providers.google", "providers.opencode", "providers.auth.submit", "providers.opencodeGo", "providers.discover.draft", "providers.detectSignIns", "providers.codexAuth", "providers.codexAuth.logout", "providers.codexAccounts", "providers.anthropicConsole", "run.resume.direction", "run.resume.model", "run.steer", "run.overrideAllNodes", "run.setModel", "run.setModel.node", "run.setPermissions", "run.start.continueSession", "run.start.entryHistory", "remote.owner.projects", "remote.workspaces.probe", "remote.engine.relay", "remote.hosting.device.grant", "extensions.manage", "extensions.resources", "skills.invoke", "mcp.manage", "mcp.edit", "mcp.status", "runs.files", "sessions.files", "account.profile", "sessions.stats", "sessions.usage", "config.analytics", "config.analytics.planGate", "sessions.trajectory", "config.externalSubagent", "config.codeIntel", "config.decisions", "browser.view", "attachments.read", "config.general", "sessions.pullRequest", "browser.view.go", "config.browser", "config.webSearch", "background.tasks", "workspace.warm", "browser.cookies.firefox", "browser.extensions", "sessions.compact", "sessions.goal", "sessions.changes", "run.current", "sessions.jev", "providers.andorra", "graphs.visibility"];
3
3
  export interface AppServerRequest {
4
4
  id: number | string;
5
5
  method: string;
@@ -67,7 +67,7 @@ export interface AppServerProviderAuth {
67
67
  }
68
68
  export interface AppServerProvider {
69
69
  id: string;
70
- type: 'openai-compatible' | 'anthropic' | 'codex' | 'claude' | 'opencode-go' | 'grok' | 'opencode' | 'andorra';
70
+ type: 'openai-compatible' | 'anthropic' | 'codex' | 'claude' | 'opencode-go' | 'grok' | 'opencode' | 'google' | 'andorra';
71
71
  baseUrl: string;
72
72
  model: string;
73
73
  apiKeyEnv?: string;
@@ -75,6 +75,10 @@ export interface AppServerProvider {
75
75
  modelContextWindows?: Record<string, number>;
76
76
  /** Andorra only: model id -> the router's display name. Labels only; ids stay the identity. */
77
77
  modelNames?: Record<string, string>;
78
+ /** Andorra only: model id -> its size in billions of parameters, where the router states one. */
79
+ modelParameters?: Record<string, number>;
80
+ /** Andorra only: the model ids served free of the weekly allowance. */
81
+ freeModels?: string[];
78
82
  hasApiKey: boolean;
79
83
  apiKeyRevision?: string;
80
84
  contextWindow?: number;
@@ -1,2 +1,2 @@
1
1
  export const APP_SERVER_PROTOCOL_VERSION = 2;
2
- export const APP_SERVER_CAPABILITIES = ['run.start.runPermissions', 'automations', 'providers.models', 'providers.test', 'providers.test.model', 'providers.streamIdleTimeout', 'providers.modelContextWindows', 'providers.name', 'providers.claude', 'providers.claudeAuth', 'providers.grok', 'providers.opencode', 'providers.auth.submit', 'providers.opencodeGo', 'providers.discover.draft', 'providers.detectSignIns', 'providers.codexAuth', 'providers.codexAuth.logout', 'providers.codexAccounts', 'providers.anthropicConsole', 'run.resume.direction', 'run.resume.model', 'run.steer', 'run.overrideAllNodes', 'run.setModel', 'run.setModel.node', 'run.setPermissions', 'run.start.continueSession', 'run.start.entryHistory', 'remote.owner.projects', 'remote.workspaces.probe', 'remote.engine.relay', 'remote.hosting.device.grant', 'extensions.manage', 'extensions.resources', 'skills.invoke', 'mcp.manage', 'mcp.edit', 'mcp.status', 'runs.files', 'sessions.files', 'account.profile', 'sessions.stats', 'sessions.usage', 'config.analytics', 'config.analytics.planGate', 'sessions.trajectory', 'config.externalSubagent', 'config.codeIntel', 'config.decisions', 'browser.view', 'attachments.read', 'config.general', 'sessions.pullRequest', 'browser.view.go', 'config.browser', 'config.webSearch', 'background.tasks', 'workspace.warm', 'browser.cookies.firefox', 'browser.extensions', 'sessions.compact', 'sessions.goal', 'sessions.changes', 'run.current', 'sessions.jev', 'providers.andorra'];
2
+ export const APP_SERVER_CAPABILITIES = ['run.start.runPermissions', 'automations', 'providers.models', 'providers.test', 'providers.test.model', 'providers.streamIdleTimeout', 'providers.modelContextWindows', 'providers.name', 'providers.claude', 'providers.claudeAuth', 'providers.grok', 'providers.google', 'providers.opencode', 'providers.auth.submit', 'providers.opencodeGo', 'providers.discover.draft', 'providers.detectSignIns', 'providers.codexAuth', 'providers.codexAuth.logout', 'providers.codexAccounts', 'providers.anthropicConsole', 'run.resume.direction', 'run.resume.model', 'run.steer', 'run.overrideAllNodes', 'run.setModel', 'run.setModel.node', 'run.setPermissions', 'run.start.continueSession', 'run.start.entryHistory', 'remote.owner.projects', 'remote.workspaces.probe', 'remote.engine.relay', 'remote.hosting.device.grant', 'extensions.manage', 'extensions.resources', 'skills.invoke', 'mcp.manage', 'mcp.edit', 'mcp.status', 'runs.files', 'sessions.files', 'account.profile', 'sessions.stats', 'sessions.usage', 'config.analytics', 'config.analytics.planGate', 'sessions.trajectory', 'config.externalSubagent', 'config.codeIntel', 'config.decisions', 'browser.view', 'attachments.read', 'config.general', 'sessions.pullRequest', 'browser.view.go', 'config.browser', 'config.webSearch', 'background.tasks', 'workspace.warm', 'browser.cookies.firefox', 'browser.extensions', 'sessions.compact', 'sessions.goal', 'sessions.changes', 'run.current', 'sessions.jev', 'providers.andorra', 'graphs.visibility'];
@@ -47,6 +47,7 @@ export declare function readRun(directory: string, id: unknown): Promise<{
47
47
  result: unknown;
48
48
  events: unknown[];
49
49
  truncated: boolean;
50
+ outline?: unknown[];
50
51
  }>;
51
52
  export declare function runRecordFile(directory: string, id: unknown): Promise<{
52
53
  path: string;
@@ -457,38 +457,169 @@ async function readJournalTail(path, limit) {
457
457
  if (byte === 0x0a)
458
458
  newlines += 1;
459
459
  }
460
- const text = Buffer.concat(blocks).toString('utf8');
461
- const lines = text.split('\n');
462
- if (position > 0)
463
- lines.shift();
464
- return { lines, truncated: position > 0 || newlines > limit };
460
+ let buffer = Buffer.concat(blocks);
461
+ let start = position;
462
+ if (position > 0) {
463
+ // The first line read is only the end of a line that began earlier, so it belongs to the head.
464
+ const cut = buffer.indexOf(0x0a);
465
+ const skip = cut < 0 ? buffer.length : cut + 1;
466
+ buffer = buffer.subarray(skip);
467
+ start += skip;
468
+ }
469
+ return { lines: buffer.toString('utf8').split('\n'), start, truncated: position > 0 || newlines > limit };
465
470
  }
466
471
  catch (error) {
467
472
  if (error.code !== 'ENOENT')
468
473
  throw error;
469
- return { lines: [], truncated: false };
474
+ return { lines: [], start: 0, truncated: false };
470
475
  }
471
476
  finally {
472
477
  await handle?.close().catch(() => { });
473
478
  }
474
479
  }
480
+ // Events that say which graph nodes and subagents ran. A long run's journal is read from its tail,
481
+ // and without these the desktop's Graph list loses every node and subagent that started before the
482
+ // newest events: a long run's entry node went missing that way.
483
+ const OUTLINE_TYPES = [
484
+ 'graph.started', 'graph.node.started', 'graph.node.completed', 'graph.finalization.resumed', 'graph.completed', 'graph.stopped',
485
+ 'graph.todos.updated', 'graph.widgets.updated', 'subagent.started', 'subagent.completed', 'subagent.change',
486
+ ];
487
+ // Journal lines are written as {"type":"…",…}, so a line is matched on its opening bytes.
488
+ const OUTLINE_PREFIXES = OUTLINE_TYPES.map(type => Buffer.from(`{"type":"${type}"`));
489
+ const OUTLINE_PREFIX_BYTES = Math.max(...OUTLINE_PREFIXES.map(prefix => prefix.length));
490
+ // Only the newest of these matters to a reader, so the outline holds one of each. They are never
491
+ // evicted, so the run's graph.started survives however many events follow it.
492
+ const OUTLINE_LATEST_ONLY = new Set(['graph.started', 'graph.todos.updated', 'graph.widgets.updated']);
493
+ // Bounds on what the outline holds while it is collected. Measured on real journals, the largest
494
+ // outline line was 118 KB and the largest whole outline 229 KB.
495
+ const OUTLINE_MAX_LINE_BYTES = 256 * 1024;
496
+ const OUTLINE_MAX_BYTES = 4 * 1024 * 1024;
497
+ const OUTLINE_MAX_EVENTS = 20_000;
498
+ // The outline type a line opens with, or undefined when it is not an outline event.
499
+ function outlineType(opening) {
500
+ const index = OUTLINE_PREFIXES.findIndex(prefix => opening.length >= prefix.length && opening.subarray(0, prefix.length).equals(prefix));
501
+ return index < 0 ? undefined : OUTLINE_TYPES[index];
502
+ }
503
+ // Holds outline lines in journal order within the bounds above, evicting the oldest first, so
504
+ // peak memory stays bounded however long the journal is.
505
+ class OutlineCollector {
506
+ sequence = 0;
507
+ recent = [];
508
+ first = 0;
509
+ bytes = 0;
510
+ latest = new Map();
511
+ add(type, line, bytes) {
512
+ if (bytes > OUTLINE_MAX_LINE_BYTES)
513
+ return;
514
+ this.sequence += 1;
515
+ if (OUTLINE_LATEST_ONLY.has(type)) {
516
+ this.latest.set(type, { sequence: this.sequence, line });
517
+ return;
518
+ }
519
+ this.recent.push({ sequence: this.sequence, line, bytes });
520
+ this.bytes += bytes;
521
+ while (this.recent.length - this.first > OUTLINE_MAX_EVENTS || this.bytes > OUTLINE_MAX_BYTES) {
522
+ this.bytes -= this.recent[this.first].bytes;
523
+ this.first += 1;
524
+ }
525
+ if (this.first > OUTLINE_MAX_EVENTS) {
526
+ this.recent = this.recent.slice(this.first);
527
+ this.first = 0;
528
+ }
529
+ }
530
+ events() {
531
+ const entries = [...this.recent.slice(this.first), ...this.latest.values()].sort((a, b) => a.sequence - b.sequence);
532
+ const events = [];
533
+ for (const entry of entries) {
534
+ try {
535
+ events.push(JSON.parse(entry.line));
536
+ }
537
+ catch {
538
+ continue;
539
+ }
540
+ }
541
+ return events;
542
+ }
543
+ }
544
+ // Reads the journal bytes before the tail into the collector. Every other line is skipped once its
545
+ // opening bytes are seen, so bulky tool and model output is never decoded or held.
546
+ async function readJournalOutline(path, end, collector) {
547
+ if (end <= 0)
548
+ return;
549
+ let carry = [];
550
+ let carryBytes = 0;
551
+ let type;
552
+ const settle = (head) => {
553
+ if (type !== undefined)
554
+ return;
555
+ const opening = carryBytes > 0 ? Buffer.concat([...carry, head]).subarray(0, OUTLINE_PREFIX_BYTES) : head.subarray(0, OUTLINE_PREFIX_BYTES);
556
+ if (opening.length >= OUTLINE_PREFIX_BYTES)
557
+ type = outlineType(opening) ?? null;
558
+ };
559
+ for await (const chunk of createReadStream(path, { start: 0, end: end - 1, highWaterMark: JOURNAL_TAIL_BLOCK_BYTES })) {
560
+ const block = chunk;
561
+ let from = 0;
562
+ for (let cut = block.indexOf(0x0a, from); cut >= 0; cut = block.indexOf(0x0a, from)) {
563
+ const piece = block.subarray(from, cut);
564
+ settle(piece);
565
+ if (type !== null) {
566
+ const line = carryBytes > 0 ? Buffer.concat([...carry, piece]) : piece;
567
+ const matched = type ?? outlineType(line);
568
+ if (matched !== undefined)
569
+ collector.add(matched, line.toString('utf8'), line.length);
570
+ }
571
+ carry = [];
572
+ carryBytes = 0;
573
+ type = undefined;
574
+ from = cut + 1;
575
+ }
576
+ const rest = block.subarray(from);
577
+ if (rest.length === 0)
578
+ continue;
579
+ settle(rest);
580
+ if (type === null)
581
+ continue;
582
+ carry.push(Buffer.from(rest));
583
+ carryBytes += rest.length;
584
+ if (carryBytes > OUTLINE_MAX_LINE_BYTES) {
585
+ carry = [];
586
+ carryBytes = 0;
587
+ type = null;
588
+ }
589
+ }
590
+ }
591
+ // `events` is the newest part of the journal. When older events were left out, `outline` carries
592
+ // the graph, node and subagent events among them, in journal order, so a reader can still tell
593
+ // which nodes and subagents ran.
475
594
  export async function readRun(directory, id) {
476
595
  const path = runRecordPath(directory, id, 'json');
477
596
  const result = JSON.parse(await readFile(path, 'utf8'));
478
597
  const journal = runRecordPath(directory, id, 'jsonl');
479
- const { lines, truncated } = await readJournalTail(journal, MAX_RUN_EVENTS);
480
- const events = [];
598
+ const { lines, start, truncated } = await readJournalTail(journal, MAX_RUN_EVENTS);
599
+ const parsed = [];
481
600
  for (const line of lines) {
482
601
  if (!line.trim())
483
602
  continue;
484
603
  try {
485
- events.push(JSON.parse(line));
604
+ parsed.push({ line, event: JSON.parse(line) });
486
605
  }
487
606
  catch {
488
607
  continue;
489
608
  }
490
609
  }
491
- return { result, events: events.slice(-MAX_RUN_EVENTS), truncated };
610
+ const dropped = parsed.slice(0, Math.max(0, parsed.length - MAX_RUN_EVENTS));
611
+ const events = parsed.slice(dropped.length).map(entry => entry.event);
612
+ if (!truncated)
613
+ return { result, events, truncated };
614
+ const collector = new OutlineCollector();
615
+ await readJournalOutline(journal, start, collector);
616
+ for (const { line } of dropped) {
617
+ const type = outlineType(Buffer.from(line.slice(0, OUTLINE_PREFIX_BYTES)));
618
+ if (type !== undefined)
619
+ collector.add(type, line, Buffer.byteLength(line));
620
+ }
621
+ const outline = collector.events();
622
+ return { result, events, truncated, ...(outline.length > 0 ? { outline } : {}) };
492
623
  }
493
624
  export async function runRecordFile(directory, id) {
494
625
  const path = resolve(runRecordPath(directory, id, 'json'));
@@ -39,6 +39,7 @@ export interface AppServerOptions {
39
39
  managedSignIn?: {
40
40
  claude?: ManagedSignInService;
41
41
  grok?: ManagedSignInService;
42
+ google?: ManagedSignInService;
42
43
  opencode?: OpenCodeSignInService;
43
44
  };
44
45
  signInProbes?: Partial<SignInProbes>;
@@ -65,6 +66,7 @@ export declare class AppServer {
65
66
  private readonly anthropicAuth;
66
67
  private readonly claudeSignIn;
67
68
  private readonly grokSignIn;
69
+ private readonly googleSignIn;
68
70
  private readonly openCodeSignIn;
69
71
  private readonly signInProbes;
70
72
  private readonly detectedSignIns;
@@ -76,6 +78,7 @@ export declare class AppServer {
76
78
  private readonly reviewWaiters;
77
79
  private readonly reviewWaitsStarting;
78
80
  private readonly graphSync;
81
+ private readonly stopGraphVisibilityWatch;
79
82
  private readonly terminals;
80
83
  private readonly backgroundTasks;
81
84
  private stopBackgroundWatch;
@@ -272,6 +275,11 @@ export declare class AppServer {
272
275
  private graphDirectory;
273
276
  private currentAccountIsConfirmed;
274
277
  private listGraphs;
278
+ /** The caller names the account it read; a change made for an account that is no longer signed in is refused. */
279
+ private visibilitySubject;
280
+ private visibilityPaths;
281
+ private setGraphVisibilityMethod;
282
+ private importGraphVisibilityMethod;
275
283
  private exportAgent;
276
284
  private getGraph;
277
285
  private selectGraph;