opencode-swarm-plugin 0.26.1 → 0.27.0
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.
- package/.turbo/turbo-build.log +4 -4
- package/CHANGELOG.md +23 -0
- package/README.md +43 -46
- package/bin/swarm.ts +8 -8
- package/dist/compaction-hook.d.ts +57 -0
- package/dist/compaction-hook.d.ts.map +1 -0
- package/dist/hive.d.ts +741 -0
- package/dist/hive.d.ts.map +1 -0
- package/dist/index.d.ts +139 -23
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1353 -350
- package/dist/learning.d.ts +9 -9
- package/dist/plugin.js +1176 -350
- package/dist/schemas/cell-events.d.ts +1352 -0
- package/dist/schemas/{bead-events.d.ts.map → cell-events.d.ts.map} +1 -1
- package/dist/schemas/{bead.d.ts → cell.d.ts} +173 -29
- package/dist/schemas/cell.d.ts.map +1 -0
- package/dist/schemas/index.d.ts +11 -7
- package/dist/schemas/index.d.ts.map +1 -1
- package/dist/structured.d.ts +17 -7
- package/dist/structured.d.ts.map +1 -1
- package/dist/swarm-decompose.d.ts +5 -5
- package/dist/swarm-orchestrate.d.ts +16 -2
- package/dist/swarm-orchestrate.d.ts.map +1 -1
- package/dist/swarm-prompts.d.ts +9 -9
- package/dist/swarm-prompts.d.ts.map +1 -1
- package/dist/swarm-review.d.ts +210 -0
- package/dist/swarm-review.d.ts.map +1 -0
- package/dist/swarm-worktree.d.ts +185 -0
- package/dist/swarm-worktree.d.ts.map +1 -0
- package/dist/swarm.d.ts +7 -0
- package/dist/swarm.d.ts.map +1 -1
- package/dist/tool-availability.d.ts +3 -2
- package/dist/tool-availability.d.ts.map +1 -1
- package/docs/analysis-socratic-planner-pattern.md +1 -1
- package/docs/planning/ADR-007-swarm-enhancements-worktree-review.md +168 -0
- package/docs/testing/context-recovery-test.md +2 -2
- package/evals/README.md +2 -2
- package/evals/scorers/index.ts +7 -7
- package/examples/commands/swarm.md +21 -23
- package/examples/plugin-wrapper-template.ts +310 -44
- package/examples/skills/{beads-workflow → hive-workflow}/SKILL.md +40 -40
- package/examples/skills/swarm-coordination/SKILL.md +1 -1
- package/global-skills/swarm-coordination/SKILL.md +14 -14
- package/global-skills/swarm-coordination/references/coordinator-patterns.md +3 -3
- package/package.json +2 -2
- package/src/compaction-hook.ts +161 -0
- package/src/{beads.integration.test.ts → hive.integration.test.ts} +92 -80
- package/src/{beads.ts → hive.ts} +378 -219
- package/src/index.ts +57 -20
- package/src/learning.ts +9 -9
- package/src/output-guardrails.test.ts +4 -4
- package/src/output-guardrails.ts +9 -9
- package/src/planning-guardrails.test.ts +1 -1
- package/src/planning-guardrails.ts +1 -1
- package/src/schemas/{bead-events.test.ts → cell-events.test.ts} +83 -77
- package/src/schemas/cell-events.ts +807 -0
- package/src/schemas/{bead.ts → cell.ts} +95 -41
- package/src/schemas/evaluation.ts +1 -1
- package/src/schemas/index.ts +90 -18
- package/src/schemas/swarm-context.ts +2 -2
- package/src/structured.test.ts +15 -15
- package/src/structured.ts +18 -11
- package/src/swarm-decompose.ts +23 -23
- package/src/swarm-orchestrate.ts +135 -21
- package/src/swarm-prompts.ts +43 -43
- package/src/swarm-review.test.ts +702 -0
- package/src/swarm-review.ts +696 -0
- package/src/swarm-worktree.test.ts +501 -0
- package/src/swarm-worktree.ts +575 -0
- package/src/swarm.integration.test.ts +12 -12
- package/src/tool-availability.ts +36 -3
- package/dist/beads.d.ts +0 -386
- package/dist/beads.d.ts.map +0 -1
- package/dist/schemas/bead-events.d.ts +0 -698
- package/dist/schemas/bead.d.ts.map +0 -1
- package/src/schemas/bead-events.ts +0 -583
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"hive.d.ts","sourceRoot":"","sources":["../src/hive.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAIL,KAAK,WAAW,EAGjB,MAAM,YAAY,CAAC;AAepB;;;;;GAKG;AACH,wBAAgB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAUtB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* OpenCode Swarm Plugin
|
|
3
3
|
*
|
|
4
|
-
* A type-safe plugin for multi-agent coordination with
|
|
4
|
+
* A type-safe plugin for multi-agent coordination with hive issue tracking
|
|
5
5
|
* and Agent Mail integration. Provides structured tools for swarm operations.
|
|
6
6
|
*
|
|
7
7
|
* @module opencode-swarm-plugin
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
*
|
|
17
17
|
* @example
|
|
18
18
|
* ```typescript
|
|
19
|
-
* // Programmatic usage
|
|
20
|
-
* import { beadsTools, agentMailTools, swarmMailTools } from "opencode-swarm-plugin"
|
|
19
|
+
* // Programmatic usage (hive is the new name, beads is deprecated)
|
|
20
|
+
* import { hiveTools, beadsTools, agentMailTools, swarmMailTools } from "opencode-swarm-plugin"
|
|
21
21
|
* ```
|
|
22
22
|
*/
|
|
23
23
|
import type { Plugin } from "@opencode-ai/plugin";
|
|
@@ -25,7 +25,8 @@ import type { Plugin } from "@opencode-ai/plugin";
|
|
|
25
25
|
* OpenCode Swarm Plugin
|
|
26
26
|
*
|
|
27
27
|
* Registers all swarm coordination tools:
|
|
28
|
-
* -
|
|
28
|
+
* - hive:* - Type-safe hive issue tracker wrappers (primary)
|
|
29
|
+
* - beads:* - Legacy aliases for hive tools (deprecated, use hive:* instead)
|
|
29
30
|
* - agent-mail:* - Multi-agent coordination via Agent Mail MCP (legacy)
|
|
30
31
|
* - swarm-mail:* - Multi-agent coordination with embedded event sourcing (recommended)
|
|
31
32
|
* - structured:* - Structured output parsing and validation
|
|
@@ -52,14 +53,18 @@ export default SwarmPlugin;
|
|
|
52
53
|
*/
|
|
53
54
|
export * from "./schemas";
|
|
54
55
|
/**
|
|
55
|
-
* Re-export beads module
|
|
56
|
+
* Re-export hive module (primary) and beads module (deprecated aliases)
|
|
56
57
|
*
|
|
57
58
|
* Includes:
|
|
58
|
-
* -
|
|
59
|
-
* -
|
|
60
|
-
* -
|
|
59
|
+
* - hiveTools - All hive tool definitions (primary)
|
|
60
|
+
* - beadsTools - Legacy aliases for backward compatibility (deprecated)
|
|
61
|
+
* - Individual tool exports (hive_create, hive_query, etc.)
|
|
62
|
+
* - Legacy aliases (hive_create, hive_query, etc.)
|
|
63
|
+
* - HiveError, HiveValidationError (and BeadError, BeadValidationError aliases)
|
|
64
|
+
*
|
|
65
|
+
* DEPRECATED: Use hive_* tools instead of beads_* tools
|
|
61
66
|
*/
|
|
62
|
-
export * from "./
|
|
67
|
+
export * from "./hive";
|
|
63
68
|
/**
|
|
64
69
|
* Re-export agent-mail module (legacy MCP-based)
|
|
65
70
|
*
|
|
@@ -129,6 +134,8 @@ export { swarmTools, SwarmError, DecompositionError, formatSubtaskPrompt, format
|
|
|
129
134
|
*
|
|
130
135
|
* This is used by `swarm tool <name>` command to dynamically execute tools.
|
|
131
136
|
* Each tool has an `execute` function that takes (args, ctx) and returns a string.
|
|
137
|
+
*
|
|
138
|
+
* Note: hiveTools includes both hive_* and beads_* (legacy aliases)
|
|
132
139
|
*/
|
|
133
140
|
export declare const allTools: {
|
|
134
141
|
readonly mandate_file: {
|
|
@@ -428,12 +435,102 @@ export declare const allTools: {
|
|
|
428
435
|
maxResults?: number | undefined;
|
|
429
436
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
430
437
|
};
|
|
438
|
+
readonly swarm_review: {
|
|
439
|
+
description: string;
|
|
440
|
+
args: {
|
|
441
|
+
project_key: import("zod").ZodString;
|
|
442
|
+
epic_id: import("zod").ZodString;
|
|
443
|
+
task_id: import("zod").ZodString;
|
|
444
|
+
files_touched: import("zod").ZodOptional<import("zod").ZodArray<import("zod").ZodString>>;
|
|
445
|
+
};
|
|
446
|
+
execute(args: {
|
|
447
|
+
project_key: string;
|
|
448
|
+
epic_id: string;
|
|
449
|
+
task_id: string;
|
|
450
|
+
files_touched?: string[] | undefined;
|
|
451
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
452
|
+
};
|
|
453
|
+
readonly swarm_review_feedback: {
|
|
454
|
+
description: string;
|
|
455
|
+
args: {
|
|
456
|
+
project_key: import("zod").ZodString;
|
|
457
|
+
task_id: import("zod").ZodString;
|
|
458
|
+
worker_id: import("zod").ZodString;
|
|
459
|
+
status: import("zod").ZodEnum<{
|
|
460
|
+
approved: "approved";
|
|
461
|
+
needs_changes: "needs_changes";
|
|
462
|
+
}>;
|
|
463
|
+
summary: import("zod").ZodOptional<import("zod").ZodString>;
|
|
464
|
+
issues: import("zod").ZodOptional<import("zod").ZodString>;
|
|
465
|
+
};
|
|
466
|
+
execute(args: {
|
|
467
|
+
project_key: string;
|
|
468
|
+
task_id: string;
|
|
469
|
+
worker_id: string;
|
|
470
|
+
status: "approved" | "needs_changes";
|
|
471
|
+
summary?: string | undefined;
|
|
472
|
+
issues?: string | undefined;
|
|
473
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
474
|
+
};
|
|
475
|
+
readonly swarm_worktree_create: {
|
|
476
|
+
description: string;
|
|
477
|
+
args: {
|
|
478
|
+
project_path: import("zod").ZodString;
|
|
479
|
+
task_id: import("zod").ZodString;
|
|
480
|
+
start_commit: import("zod").ZodString;
|
|
481
|
+
};
|
|
482
|
+
execute(args: {
|
|
483
|
+
project_path: string;
|
|
484
|
+
task_id: string;
|
|
485
|
+
start_commit: string;
|
|
486
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
487
|
+
};
|
|
488
|
+
readonly swarm_worktree_merge: {
|
|
489
|
+
description: string;
|
|
490
|
+
args: {
|
|
491
|
+
project_path: import("zod").ZodString;
|
|
492
|
+
task_id: import("zod").ZodString;
|
|
493
|
+
start_commit: import("zod").ZodOptional<import("zod").ZodString>;
|
|
494
|
+
};
|
|
495
|
+
execute(args: {
|
|
496
|
+
project_path: string;
|
|
497
|
+
task_id: string;
|
|
498
|
+
start_commit?: string | undefined;
|
|
499
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
500
|
+
};
|
|
501
|
+
readonly swarm_worktree_cleanup: {
|
|
502
|
+
description: string;
|
|
503
|
+
args: {
|
|
504
|
+
project_path: import("zod").ZodString;
|
|
505
|
+
task_id: import("zod").ZodOptional<import("zod").ZodString>;
|
|
506
|
+
cleanup_all: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
507
|
+
};
|
|
508
|
+
execute(args: {
|
|
509
|
+
project_path: string;
|
|
510
|
+
task_id?: string | undefined;
|
|
511
|
+
cleanup_all?: boolean | undefined;
|
|
512
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
513
|
+
};
|
|
514
|
+
readonly swarm_worktree_list: {
|
|
515
|
+
description: string;
|
|
516
|
+
args: {
|
|
517
|
+
project_path: import("zod").ZodString;
|
|
518
|
+
};
|
|
519
|
+
execute(args: {
|
|
520
|
+
project_path: string;
|
|
521
|
+
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
522
|
+
};
|
|
431
523
|
readonly swarm_init: {
|
|
432
524
|
description: string;
|
|
433
525
|
args: {
|
|
434
526
|
project_path: import("zod").ZodOptional<import("zod").ZodString>;
|
|
527
|
+
isolation: import("zod").ZodDefault<import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
528
|
+
reservation: "reservation";
|
|
529
|
+
worktree: "worktree";
|
|
530
|
+
}>>>;
|
|
435
531
|
};
|
|
436
532
|
execute(args: {
|
|
533
|
+
isolation: "reservation" | "worktree";
|
|
437
534
|
project_path?: string | undefined;
|
|
438
535
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
439
536
|
};
|
|
@@ -512,6 +609,7 @@ export declare const allTools: {
|
|
|
512
609
|
start_time: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
513
610
|
error_count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
514
611
|
retry_count: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
612
|
+
skip_review: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
515
613
|
};
|
|
516
614
|
execute(args: {
|
|
517
615
|
project_key: string;
|
|
@@ -526,6 +624,7 @@ export declare const allTools: {
|
|
|
526
624
|
start_time?: number | undefined;
|
|
527
625
|
error_count?: number | undefined;
|
|
528
626
|
retry_count?: number | undefined;
|
|
627
|
+
skip_review?: boolean | undefined;
|
|
529
628
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
530
629
|
};
|
|
531
630
|
readonly swarm_record_outcome: {
|
|
@@ -903,13 +1002,13 @@ export declare const allTools: {
|
|
|
903
1002
|
schema_name: import("zod").ZodEnum<{
|
|
904
1003
|
evaluation: "evaluation";
|
|
905
1004
|
task_decomposition: "task_decomposition";
|
|
906
|
-
|
|
1005
|
+
cell_tree: "cell_tree";
|
|
907
1006
|
}>;
|
|
908
1007
|
max_retries: import("zod").ZodOptional<import("zod").ZodNumber>;
|
|
909
1008
|
};
|
|
910
1009
|
execute(args: {
|
|
911
1010
|
response: string;
|
|
912
|
-
schema_name: "evaluation" | "task_decomposition" | "
|
|
1011
|
+
schema_name: "evaluation" | "task_decomposition" | "cell_tree";
|
|
913
1012
|
max_retries?: number | undefined;
|
|
914
1013
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
915
1014
|
};
|
|
@@ -931,7 +1030,7 @@ export declare const allTools: {
|
|
|
931
1030
|
response: string;
|
|
932
1031
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
933
1032
|
};
|
|
934
|
-
readonly
|
|
1033
|
+
readonly structured_parse_cell_tree: {
|
|
935
1034
|
description: string;
|
|
936
1035
|
args: {
|
|
937
1036
|
response: import("zod").ZodString;
|
|
@@ -1037,7 +1136,7 @@ export declare const allTools: {
|
|
|
1037
1136
|
args: {};
|
|
1038
1137
|
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1039
1138
|
};
|
|
1040
|
-
readonly
|
|
1139
|
+
readonly hive_create: {
|
|
1041
1140
|
description: string;
|
|
1042
1141
|
args: {
|
|
1043
1142
|
title: import("zod").ZodString;
|
|
@@ -1060,7 +1159,7 @@ export declare const allTools: {
|
|
|
1060
1159
|
parent_id?: string | undefined;
|
|
1061
1160
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1062
1161
|
};
|
|
1063
|
-
readonly
|
|
1162
|
+
readonly hive_create_epic: {
|
|
1064
1163
|
description: string;
|
|
1065
1164
|
args: {
|
|
1066
1165
|
epic_title: import("zod").ZodString;
|
|
@@ -1105,7 +1204,7 @@ export declare const allTools: {
|
|
|
1105
1204
|
} | undefined;
|
|
1106
1205
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1107
1206
|
};
|
|
1108
|
-
readonly
|
|
1207
|
+
readonly hive_query: {
|
|
1109
1208
|
description: string;
|
|
1110
1209
|
args: {
|
|
1111
1210
|
status: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
@@ -1131,7 +1230,7 @@ export declare const allTools: {
|
|
|
1131
1230
|
limit?: number | undefined;
|
|
1132
1231
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1133
1232
|
};
|
|
1134
|
-
readonly
|
|
1233
|
+
readonly hive_update: {
|
|
1135
1234
|
description: string;
|
|
1136
1235
|
args: {
|
|
1137
1236
|
id: import("zod").ZodString;
|
|
@@ -1151,7 +1250,7 @@ export declare const allTools: {
|
|
|
1151
1250
|
priority?: number | undefined;
|
|
1152
1251
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1153
1252
|
};
|
|
1154
|
-
readonly
|
|
1253
|
+
readonly hive_close: {
|
|
1155
1254
|
description: string;
|
|
1156
1255
|
args: {
|
|
1157
1256
|
id: import("zod").ZodString;
|
|
@@ -1162,7 +1261,7 @@ export declare const allTools: {
|
|
|
1162
1261
|
reason: string;
|
|
1163
1262
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1164
1263
|
};
|
|
1165
|
-
readonly
|
|
1264
|
+
readonly hive_start: {
|
|
1166
1265
|
description: string;
|
|
1167
1266
|
args: {
|
|
1168
1267
|
id: import("zod").ZodString;
|
|
@@ -1171,12 +1270,12 @@ export declare const allTools: {
|
|
|
1171
1270
|
id: string;
|
|
1172
1271
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1173
1272
|
};
|
|
1174
|
-
readonly
|
|
1273
|
+
readonly hive_ready: {
|
|
1175
1274
|
description: string;
|
|
1176
1275
|
args: {};
|
|
1177
1276
|
execute(args: Record<string, never>, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1178
1277
|
};
|
|
1179
|
-
readonly
|
|
1278
|
+
readonly hive_sync: {
|
|
1180
1279
|
description: string;
|
|
1181
1280
|
args: {
|
|
1182
1281
|
auto_pull: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
@@ -1185,14 +1284,14 @@ export declare const allTools: {
|
|
|
1185
1284
|
auto_pull?: boolean | undefined;
|
|
1186
1285
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1187
1286
|
};
|
|
1188
|
-
readonly
|
|
1287
|
+
readonly hive_link_thread: {
|
|
1189
1288
|
description: string;
|
|
1190
1289
|
args: {
|
|
1191
|
-
|
|
1290
|
+
cell_id: import("zod").ZodString;
|
|
1192
1291
|
thread_id: import("zod").ZodString;
|
|
1193
1292
|
};
|
|
1194
1293
|
execute(args: {
|
|
1195
|
-
|
|
1294
|
+
cell_id: string;
|
|
1196
1295
|
thread_id: string;
|
|
1197
1296
|
}, context: import("@opencode-ai/plugin").ToolContext): Promise<string>;
|
|
1198
1297
|
};
|
|
@@ -1325,4 +1424,21 @@ export { evaluatePromotion, shouldPromote, formatPromotionResult, evaluateBatchP
|
|
|
1325
1424
|
* - GuardrailMetrics - Analytics data
|
|
1326
1425
|
*/
|
|
1327
1426
|
export { guardrailOutput, truncateWithBoundaries, createMetrics, DEFAULT_GUARDRAIL_CONFIG, type GuardrailConfig, type GuardrailResult, type GuardrailMetrics, } from "./output-guardrails";
|
|
1427
|
+
/**
|
|
1428
|
+
* Re-export compaction-hook module
|
|
1429
|
+
*
|
|
1430
|
+
* Includes:
|
|
1431
|
+
* - SWARM_COMPACTION_CONTEXT - Prompt text for swarm state preservation
|
|
1432
|
+
* - createCompactionHook - Factory function for the compaction hook
|
|
1433
|
+
*
|
|
1434
|
+
* Usage:
|
|
1435
|
+
* ```typescript
|
|
1436
|
+
* import { createCompactionHook } from "opencode-swarm-plugin";
|
|
1437
|
+
*
|
|
1438
|
+
* const hooks = {
|
|
1439
|
+
* "experimental.session.compacting": createCompactionHook(),
|
|
1440
|
+
* };
|
|
1441
|
+
* ```
|
|
1442
|
+
*/
|
|
1443
|
+
export { SWARM_COMPACTION_CONTEXT, createCompactionHook } from "./compaction-hook";
|
|
1328
1444
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,EAAE,MAAM,EAAsB,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,EAAE,MAAM,EAAsB,MAAM,qBAAqB,CAAC;AAoCtE;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,WAAW,EAAE,MAuLzB,CAAC;AAEF;;;;;;;GAOG;AACH,eAAe,WAAW,CAAC;AAM3B;;GAEG;AACH,cAAc,WAAW,CAAC;AAE1B;;;;;;;;;;;GAWG;AACH,cAAc,QAA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