@agimon-ai/po-domain 0.0.0-alpha.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/LICENSE +21 -0
- package/README.md +71 -0
- package/dist/apiContracts.cjs +17 -0
- package/dist/apiContracts.cjs.map +1 -0
- package/dist/apiContracts.d.mts +53 -0
- package/dist/apiContracts.d.mts.map +1 -0
- package/dist/apiContracts.mjs +13 -0
- package/dist/apiContracts.mjs.map +1 -0
- package/dist/apply.cjs +76 -0
- package/dist/apply.cjs.map +1 -0
- package/dist/apply.d.mts +23 -0
- package/dist/apply.d.mts.map +1 -0
- package/dist/apply.mjs +72 -0
- package/dist/apply.mjs.map +1 -0
- package/dist/domainText-Dm8k7p4z.mjs +97 -0
- package/dist/domainText-Dm8k7p4z.mjs.map +1 -0
- package/dist/domainText-UIRIz6-_.cjs +204 -0
- package/dist/domainText-UIRIz6-_.cjs.map +1 -0
- package/dist/extensions/mcp.cjs +26 -0
- package/dist/extensions/mcp.cjs.map +1 -0
- package/dist/extensions/mcp.d.mts +5 -0
- package/dist/extensions/mcp.d.mts.map +1 -0
- package/dist/extensions/mcp.mjs +21 -0
- package/dist/extensions/mcp.mjs.map +1 -0
- package/dist/extensions/server.cjs +229 -0
- package/dist/extensions/server.cjs.map +1 -0
- package/dist/extensions/server.d.mts +5 -0
- package/dist/extensions/server.d.mts.map +1 -0
- package/dist/extensions/server.mjs +221 -0
- package/dist/extensions/server.mjs.map +1 -0
- package/dist/extensions/web.mjs +26 -0
- package/dist/extensions/web.mjs.map +1 -0
- package/dist/index.cjs +19 -0
- package/dist/index.d.mts +84 -0
- package/dist/index.d.mts.map +1 -0
- package/dist/index.mjs +3 -0
- package/dist/mcp.cjs +32 -0
- package/dist/mcp.cjs.map +1 -0
- package/dist/mcp.d.mts +52 -0
- package/dist/mcp.d.mts.map +1 -0
- package/dist/mcp.mjs +19 -0
- package/dist/mcp.mjs.map +1 -0
- package/dist/mcpFilter-CZNmU_VF.cjs +189 -0
- package/dist/mcpFilter-CZNmU_VF.cjs.map +1 -0
- package/dist/mcpFilter-Cf-czy8O.mjs +151 -0
- package/dist/mcpFilter-Cf-czy8O.mjs.map +1 -0
- package/dist/pluginMaterializer-C8IZ1PSY.cjs +267 -0
- package/dist/pluginMaterializer-C8IZ1PSY.cjs.map +1 -0
- package/dist/pluginMaterializer-D9-oDF-b.mjs +259 -0
- package/dist/pluginMaterializer-D9-oDF-b.mjs.map +1 -0
- package/dist/plugins.cjs +3 -0
- package/dist/plugins.d.mts +14 -0
- package/dist/plugins.d.mts.map +1 -0
- package/dist/plugins.mjs +2 -0
- package/dist/resourceCollector-CRY5cmeY.mjs +773 -0
- package/dist/resourceCollector-CRY5cmeY.mjs.map +1 -0
- package/dist/resourceCollector-Cu-lp5hJ.cjs +837 -0
- package/dist/resourceCollector-Cu-lp5hJ.cjs.map +1 -0
- package/dist/resources-BEjxE3Zn.d.mts +66 -0
- package/dist/resources-BEjxE3Zn.d.mts.map +1 -0
- package/dist/resources.cjs +12 -0
- package/dist/resources.d.mts +43 -0
- package/dist/resources.d.mts.map +1 -0
- package/dist/resources.mjs +2 -0
- package/dist/rolldown-runtime-VH7oDXx4.cjs +28 -0
- package/dist/toolNames-Ckp5VLMD.mjs +43 -0
- package/dist/toolNames-Ckp5VLMD.mjs.map +1 -0
- package/dist/toolNames-Cuu-u8r1.cjs +48 -0
- package/dist/toolNames-Cuu-u8r1.cjs.map +1 -0
- package/llms.txt +12 -0
- package/package.json +158 -0
- package/src/prompts/po-author-domain/SKILL.md +18 -0
- package/src/prompts/po-author-domain/references/domains-contract.md +165 -0
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
let _agimon_ai_po_core_voiceTools = require("@agimon-ai/po-core/voiceTools");
|
|
2
|
+
//#region src/types/domains.ts
|
|
3
|
+
/** The npm name this package registers its voice tools and contributions under. */
|
|
4
|
+
const DOMAIN_SOURCE = "@agimon-ai/po-domain";
|
|
5
|
+
/**
|
|
6
|
+
* The only names a domain, an operation or a handoff token may carry.
|
|
7
|
+
*
|
|
8
|
+
* Selections arrive from the model and from the command line, and every one of
|
|
9
|
+
* them ends up in a filesystem path or a process environment variable, so the
|
|
10
|
+
* shape is constrained once here and reused by the schema and the validator.
|
|
11
|
+
*/
|
|
12
|
+
const SAFE_DOMAIN_NAME = /^[A-Za-z0-9@][A-Za-z0-9@/._:-]*$/u;
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/services/domainText/index.ts
|
|
15
|
+
const DOMAIN_SEPARATOR = ",";
|
|
16
|
+
const DOMAIN_COMMAND = "domains";
|
|
17
|
+
/** Footer status key the cockpit's domains axis reads. */
|
|
18
|
+
const DOMAIN_STATUS_KEY = "doom-domain";
|
|
19
|
+
/** What an empty selection reads as, which is a real state rather than an error. */
|
|
20
|
+
const NONE = "(none)";
|
|
21
|
+
/** Splits the comma-separated argument the command and the autocomplete share. */
|
|
22
|
+
function splitDomains(value) {
|
|
23
|
+
return value.split(DOMAIN_SEPARATOR).map((item) => item.trim()).filter(Boolean);
|
|
24
|
+
}
|
|
25
|
+
/** The published axis content: the active domains in the same comma-separated shape splitDomains reads. */
|
|
26
|
+
function domainStatus(domains) {
|
|
27
|
+
return domains.join(DOMAIN_SEPARATOR);
|
|
28
|
+
}
|
|
29
|
+
/** Picker rows for the domain multi-select. */
|
|
30
|
+
function domainItems(names, descriptions = {}) {
|
|
31
|
+
return names.map((name) => ({
|
|
32
|
+
value: name,
|
|
33
|
+
label: name,
|
|
34
|
+
...descriptions[name] ? { description: descriptions[name] } : {}
|
|
35
|
+
}));
|
|
36
|
+
}
|
|
37
|
+
function domainSummary(listing) {
|
|
38
|
+
return `Active domains: ${listing.effective.join(", ") || "(none)"}\nAvailable domains: ${listing.available.join(", ")}\nUse /${DOMAIN_COMMAND} <name[,name...]> to switch.`;
|
|
39
|
+
}
|
|
40
|
+
function switchedSummary(domains) {
|
|
41
|
+
return `Switched domains to: ${domains.join(", ") || "(none)"}`;
|
|
42
|
+
}
|
|
43
|
+
function unchangedSummary(domains) {
|
|
44
|
+
return `Domains already active: ${domains.join(", ") || "(none)"}`;
|
|
45
|
+
}
|
|
46
|
+
function pickerTitle(listing) {
|
|
47
|
+
return `Domains (active: ${listing.effective.join(", ") || "(none)"})`;
|
|
48
|
+
}
|
|
49
|
+
const MARK_ON = "[x]";
|
|
50
|
+
const MARK_OFF = "[ ]";
|
|
51
|
+
const OPTION_PREFIX = /^\[[ x]\] /;
|
|
52
|
+
/**
|
|
53
|
+
* Rows for a single-pick select where domains compose: each row shows the
|
|
54
|
+
* membership it would flip, so a client without a multi-select still reaches
|
|
55
|
+
* every set one toggle at a time.
|
|
56
|
+
*/
|
|
57
|
+
function domainToggleOptions(listing) {
|
|
58
|
+
const active = new Set(listing.effective);
|
|
59
|
+
return listing.available.map((name) => `${active.has(name) ? MARK_ON : MARK_OFF} ${name}`);
|
|
60
|
+
}
|
|
61
|
+
/** The domain a toggle row names. */
|
|
62
|
+
function toggleOptionDomain(option) {
|
|
63
|
+
return option.replace(OPTION_PREFIX, "").trim();
|
|
64
|
+
}
|
|
65
|
+
/** The effective set with one domain flipped, order preserved for the rest. */
|
|
66
|
+
function toggledDomains(effective, name) {
|
|
67
|
+
return effective.includes(name) ? effective.filter((domain) => domain !== name) : [...effective, name];
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Deduplicates a requested selection and rejects anything unsafe.
|
|
71
|
+
*
|
|
72
|
+
* Bounded before the manifest is read, because a selection large enough to
|
|
73
|
+
* matter comes from the model rather than from a person typing the command.
|
|
74
|
+
*/
|
|
75
|
+
function normalizeDomainNames(values) {
|
|
76
|
+
if (values.length > _agimon_ai_po_core_voiceTools.VOICE_TOOL_MAX_DOMAIN_COUNT) throw new Error(`A maximum of ${_agimon_ai_po_core_voiceTools.VOICE_TOOL_MAX_DOMAIN_COUNT} domains may be selected.`);
|
|
77
|
+
const result = [];
|
|
78
|
+
const seen = /* @__PURE__ */ new Set();
|
|
79
|
+
for (const value of values) {
|
|
80
|
+
const name = value.trim();
|
|
81
|
+
if (!name || name.length > _agimon_ai_po_core_voiceTools.VOICE_TOOL_MAX_IDENTIFIER_LENGTH || !SAFE_DOMAIN_NAME.test(name)) throw new Error(`Invalid domain name: ${value}`);
|
|
82
|
+
if (seen.has(name)) continue;
|
|
83
|
+
seen.add(name);
|
|
84
|
+
result.push(name);
|
|
85
|
+
}
|
|
86
|
+
return result;
|
|
87
|
+
}
|
|
88
|
+
function errorMessage(error) {
|
|
89
|
+
return error instanceof Error ? error.message : String(error);
|
|
90
|
+
}
|
|
91
|
+
function transitionError(result) {
|
|
92
|
+
return /* @__PURE__ */ new Error(`Domain transition was ${result.outcome}: ${result.diagnostics.join(", ")}`);
|
|
93
|
+
}
|
|
94
|
+
//#endregion
|
|
95
|
+
Object.defineProperty(exports, "DOMAIN_COMMAND", {
|
|
96
|
+
enumerable: true,
|
|
97
|
+
get: function() {
|
|
98
|
+
return DOMAIN_COMMAND;
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
Object.defineProperty(exports, "DOMAIN_SOURCE", {
|
|
102
|
+
enumerable: true,
|
|
103
|
+
get: function() {
|
|
104
|
+
return DOMAIN_SOURCE;
|
|
105
|
+
}
|
|
106
|
+
});
|
|
107
|
+
Object.defineProperty(exports, "DOMAIN_STATUS_KEY", {
|
|
108
|
+
enumerable: true,
|
|
109
|
+
get: function() {
|
|
110
|
+
return DOMAIN_STATUS_KEY;
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
Object.defineProperty(exports, "NONE", {
|
|
114
|
+
enumerable: true,
|
|
115
|
+
get: function() {
|
|
116
|
+
return NONE;
|
|
117
|
+
}
|
|
118
|
+
});
|
|
119
|
+
Object.defineProperty(exports, "SAFE_DOMAIN_NAME", {
|
|
120
|
+
enumerable: true,
|
|
121
|
+
get: function() {
|
|
122
|
+
return SAFE_DOMAIN_NAME;
|
|
123
|
+
}
|
|
124
|
+
});
|
|
125
|
+
Object.defineProperty(exports, "domainItems", {
|
|
126
|
+
enumerable: true,
|
|
127
|
+
get: function() {
|
|
128
|
+
return domainItems;
|
|
129
|
+
}
|
|
130
|
+
});
|
|
131
|
+
Object.defineProperty(exports, "domainStatus", {
|
|
132
|
+
enumerable: true,
|
|
133
|
+
get: function() {
|
|
134
|
+
return domainStatus;
|
|
135
|
+
}
|
|
136
|
+
});
|
|
137
|
+
Object.defineProperty(exports, "domainSummary", {
|
|
138
|
+
enumerable: true,
|
|
139
|
+
get: function() {
|
|
140
|
+
return domainSummary;
|
|
141
|
+
}
|
|
142
|
+
});
|
|
143
|
+
Object.defineProperty(exports, "domainToggleOptions", {
|
|
144
|
+
enumerable: true,
|
|
145
|
+
get: function() {
|
|
146
|
+
return domainToggleOptions;
|
|
147
|
+
}
|
|
148
|
+
});
|
|
149
|
+
Object.defineProperty(exports, "errorMessage", {
|
|
150
|
+
enumerable: true,
|
|
151
|
+
get: function() {
|
|
152
|
+
return errorMessage;
|
|
153
|
+
}
|
|
154
|
+
});
|
|
155
|
+
Object.defineProperty(exports, "normalizeDomainNames", {
|
|
156
|
+
enumerable: true,
|
|
157
|
+
get: function() {
|
|
158
|
+
return normalizeDomainNames;
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
Object.defineProperty(exports, "pickerTitle", {
|
|
162
|
+
enumerable: true,
|
|
163
|
+
get: function() {
|
|
164
|
+
return pickerTitle;
|
|
165
|
+
}
|
|
166
|
+
});
|
|
167
|
+
Object.defineProperty(exports, "splitDomains", {
|
|
168
|
+
enumerable: true,
|
|
169
|
+
get: function() {
|
|
170
|
+
return splitDomains;
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
Object.defineProperty(exports, "switchedSummary", {
|
|
174
|
+
enumerable: true,
|
|
175
|
+
get: function() {
|
|
176
|
+
return switchedSummary;
|
|
177
|
+
}
|
|
178
|
+
});
|
|
179
|
+
Object.defineProperty(exports, "toggleOptionDomain", {
|
|
180
|
+
enumerable: true,
|
|
181
|
+
get: function() {
|
|
182
|
+
return toggleOptionDomain;
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
Object.defineProperty(exports, "toggledDomains", {
|
|
186
|
+
enumerable: true,
|
|
187
|
+
get: function() {
|
|
188
|
+
return toggledDomains;
|
|
189
|
+
}
|
|
190
|
+
});
|
|
191
|
+
Object.defineProperty(exports, "transitionError", {
|
|
192
|
+
enumerable: true,
|
|
193
|
+
get: function() {
|
|
194
|
+
return transitionError;
|
|
195
|
+
}
|
|
196
|
+
});
|
|
197
|
+
Object.defineProperty(exports, "unchangedSummary", {
|
|
198
|
+
enumerable: true,
|
|
199
|
+
get: function() {
|
|
200
|
+
return unchangedSummary;
|
|
201
|
+
}
|
|
202
|
+
});
|
|
203
|
+
|
|
204
|
+
//# sourceMappingURL=domainText-UIRIz6-_.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"domainText-UIRIz6-_.cjs","names":["VOICE_TOOL_MAX_DOMAIN_COUNT","VOICE_TOOL_MAX_IDENTIFIER_LENGTH"],"sources":["../src/types/domains.ts","../src/services/domainText/index.ts"],"sourcesContent":["/** The npm name this package registers its voice tools and contributions under. */\nexport const DOMAIN_SOURCE = '@agimon-ai/po-domain';\n\n/**\n * The only names a domain, an operation or a handoff token may carry.\n *\n * Selections arrive from the model and from the command line, and every one of\n * them ends up in a filesystem path or a process environment variable, so the\n * shape is constrained once here and reused by the schema and the validator.\n */\nexport const SAFE_DOMAIN_NAME = /^[A-Za-z0-9@][A-Za-z0-9@/._:-]*$/u;\n\n/**\n * The selection as the command, the picker and the voice tool all need to see it.\n *\n * `active` is what the session persisted and `effective` is what it is running\n * with, which differ while a major mode contributes its default domains.\n */\nexport interface DomainListing {\n readonly active: string[];\n readonly effective: string[];\n readonly available: string[];\n}\n\n/** One comma-triggered autocomplete response for the `/domains` argument. */\nexport interface DomainCompletion {\n readonly prefix: string;\n readonly items: Array<{ value: string; label: string }>;\n}\n","import type { DoomTransitionResult } from '@agimon-ai/po-core/transition';\nimport { VOICE_TOOL_MAX_DOMAIN_COUNT, VOICE_TOOL_MAX_IDENTIFIER_LENGTH } from '@agimon-ai/po-core/voiceTools';\n\nimport { type DomainListing, SAFE_DOMAIN_NAME } from '../../types/domains';\n\ninterface SelectItem {\n value: string;\n label: string;\n description?: string;\n}\n\nconst DOMAIN_SEPARATOR = ',';\nexport const DOMAIN_COMMAND = 'domains';\n/** Footer status key the cockpit's domains axis reads. */\nexport const DOMAIN_STATUS_KEY = 'doom-domain';\n/** What an empty selection reads as, which is a real state rather than an error. */\nexport const NONE = '(none)';\n\n/** Splits the comma-separated argument the command and the autocomplete share. */\nexport function splitDomains(value: string): string[] {\n return value\n .split(DOMAIN_SEPARATOR)\n .map((item) => item.trim())\n .filter(Boolean);\n}\n\n/** The published axis content: the active domains in the same comma-separated shape splitDomains reads. */\nexport function domainStatus(domains: readonly string[]): string {\n return domains.join(DOMAIN_SEPARATOR);\n}\n\n/** Picker rows for the domain multi-select. */\nexport function domainItems(\n names: string[],\n descriptions: Readonly<Record<string, string | undefined>> = {},\n): SelectItem[] {\n return names.map((name) => ({\n value: name,\n label: name,\n ...(descriptions[name] ? { description: descriptions[name] } : {}),\n }));\n}\n\nexport function domainSummary(listing: DomainListing): string {\n const active = listing.effective.join(', ') || NONE;\n return `Active domains: ${active}\\nAvailable domains: ${listing.available.join(', ')}\\nUse /${DOMAIN_COMMAND} <name[,name...]> to switch.`;\n}\n\nexport function switchedSummary(domains: readonly string[]): string {\n return `Switched domains to: ${domains.join(', ') || NONE}`;\n}\n\nexport function unchangedSummary(domains: readonly string[]): string {\n return `Domains already active: ${domains.join(', ') || NONE}`;\n}\n\nexport function pickerTitle(listing: DomainListing): string {\n return `Domains (active: ${listing.effective.join(', ') || NONE})`;\n}\n\nconst MARK_ON = '[x]';\nconst MARK_OFF = '[ ]';\nconst OPTION_PREFIX = /^\\[[ x]\\] /;\n\n/**\n * Rows for a single-pick select where domains compose: each row shows the\n * membership it would flip, so a client without a multi-select still reaches\n * every set one toggle at a time.\n */\nexport function domainToggleOptions(listing: DomainListing): string[] {\n const active = new Set(listing.effective);\n return listing.available.map((name) => `${active.has(name) ? MARK_ON : MARK_OFF} ${name}`);\n}\n\n/** The domain a toggle row names. */\nexport function toggleOptionDomain(option: string): string {\n return option.replace(OPTION_PREFIX, '').trim();\n}\n\n/** The effective set with one domain flipped, order preserved for the rest. */\nexport function toggledDomains(effective: readonly string[], name: string): string[] {\n return effective.includes(name) ? effective.filter((domain) => domain !== name) : [...effective, name];\n}\n\n/**\n * Deduplicates a requested selection and rejects anything unsafe.\n *\n * Bounded before the manifest is read, because a selection large enough to\n * matter comes from the model rather than from a person typing the command.\n */\nexport function normalizeDomainNames(values: readonly string[]): string[] {\n if (values.length > VOICE_TOOL_MAX_DOMAIN_COUNT) {\n throw new Error(`A maximum of ${VOICE_TOOL_MAX_DOMAIN_COUNT} domains may be selected.`);\n }\n const result: string[] = [];\n const seen = new Set<string>();\n for (const value of values) {\n const name = value.trim();\n if (!name || name.length > VOICE_TOOL_MAX_IDENTIFIER_LENGTH || !SAFE_DOMAIN_NAME.test(name)) {\n throw new Error(`Invalid domain name: ${value}`);\n }\n if (seen.has(name)) continue;\n seen.add(name);\n result.push(name);\n }\n return result;\n}\n\nexport function errorMessage(error: unknown): string {\n return error instanceof Error ? error.message : String(error);\n}\n\nexport function transitionError(result: DoomTransitionResult): Error {\n return new Error(`Domain transition was ${result.outcome}: ${result.diagnostics.join(', ')}`);\n}\n"],"mappings":";;;AACA,MAAa,gBAAgB;;;;;;;;AAS7B,MAAa,mBAAmB;;;ACChC,MAAM,mBAAmB;AACzB,MAAa,iBAAiB;;AAE9B,MAAa,oBAAoB;;AAEjC,MAAa,OAAO;;AAGpB,SAAgB,aAAa,OAAyB;CACpD,OAAO,MACJ,MAAM,gBAAgB,CAAC,CACvB,KAAK,SAAS,KAAK,KAAK,CAAC,CAAC,CAC1B,OAAO,OAAO;AACnB;;AAGA,SAAgB,aAAa,SAAoC;CAC/D,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M,uBAAO,IAAI,IAAY;CAC7B,KAAK,MAAM,SAAS,QAAQ;EAC1B,MAAM,OAAO,MAAM,KAAK;EACxB,IAAI,CAAC,QAAQ,KAAK,SAASC,8BAAAA,oCAAoC,CAAC,iBAAiB,KAAK,IAAI,GACxF,MAAM,IAAI,MAAM,wBAAwB,OAAO;EAEjD,IAAI,KAAK,IAAI,IAAI,GAAG;EACpB,KAAK,IAAI,IAAI;EACb,OAAO,KAAK,IAAI;CAClB;CACA,OAAO;AACT;AAEA,SAAgB,aAAa,OAAwB;CACnD,OAAO,iBAAiB,QAAQ,MAAM,UAAU,OAAO,KAAK;AAC9D;AAEA,SAAgB,gBAAgB,QAAqC;CACnE,uBAAO,IAAI,MAAM,yBAAyB,OAAO,QAAQ,IAAI,OAAO,YAAY,KAAK,IAAI,GAAG;AAC9F"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
let _agimon_ai_po_core_mcpFacet = require("@agimon-ai/po-core/mcpFacet");
|
|
6
|
+
let _agimon_ai_po_core_serverFacet = require("@agimon-ai/po-core/serverFacet");
|
|
7
|
+
//#region src/extensions/workspaces/sessions/(backend)/skill/po-author-domain.mcp.ts
|
|
8
|
+
var po_author_domain_mcp_default = (0, _agimon_ai_po_core_mcpFacet.defineMcpSkill)({
|
|
9
|
+
name: "po-author-domain",
|
|
10
|
+
description: "Configure Po plugin catalogs and domain resource selections in domains.yaml. Use when creating or editing .po/domains.yaml or ~/.po/domains.yaml, choosing local, Git, or npm plugins, filtering plugin resources, setting aliases or defaults, or verifying resolved domain composition.",
|
|
11
|
+
read: () => (0, _agimon_ai_po_core_serverFacet.readPackageResource)(require("url").pathToFileURL(__filename).href, "src/prompts/po-author-domain/SKILL.md")
|
|
12
|
+
});
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region generated/mcp.ts
|
|
15
|
+
const at = (value, context) => typeof value === "function" ? value(context) : value;
|
|
16
|
+
const mcp = (0, _agimon_ai_po_core_mcpFacet.defineMcpPlugin)({
|
|
17
|
+
name: "@agimon-ai/po-domain",
|
|
18
|
+
session: (context) => ({ get skills() {
|
|
19
|
+
return [at(po_author_domain_mcp_default, context)];
|
|
20
|
+
} })
|
|
21
|
+
});
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.default = mcp;
|
|
24
|
+
exports.mcp = mcp;
|
|
25
|
+
|
|
26
|
+
//# sourceMappingURL=mcp.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.cjs","names":["defineMcpSkill","readPackageResource","defineMcpPlugin","skillPoAuthorDomain"],"sources":["../../src/extensions/workspaces/sessions/(backend)/skill/po-author-domain.mcp.ts","../../generated/mcp.ts"],"sourcesContent":["import { defineMcpSkill } from '@agimon-ai/po-core/mcpFacet';\nimport { readPackageResource } from '@agimon-ai/po-core/serverFacet';\n\nexport default defineMcpSkill({\n name: 'po-author-domain',\n description:\n 'Configure Po plugin catalogs and domain resource selections in domains.yaml. Use when creating or editing .po/domains.yaml or ~/.po/domains.yaml, choosing local, Git, or npm plugins, filtering plugin resources, setting aliases or defaults, or verifying resolved domain composition.',\n read: () => readPackageResource(import.meta.url, 'src/prompts/po-author-domain/SKILL.md'),\n});\n","// Generated by @agimon-ai/po-build. Do not edit by hand.\nimport { defineMcpPlugin, type DoomMcpSessionPlugin } from '@agimon-ai/po-core/mcpFacet';\n\nimport skillPoAuthorDomain from '../src/extensions/workspaces/sessions/(backend)/skill/po-author-domain.mcp';\n\ntype Factory<T, C> = (context: C) => T;\nconst at = <T, C>(value: T | Factory<T, C>, context: C): T =>\n typeof value === 'function' ? (value as Factory<T, C>)(context) : value;\n\nexport const mcp = defineMcpPlugin({\n name: '@agimon-ai/po-domain',\n session: (context) => ({\n get skills(): DoomMcpSessionPlugin['skills'] { return [at(skillPoAuthorDomain, context)]; },\n }) satisfies DoomMcpSessionPlugin,\n});\n\nexport default mcp;\n"],"mappings":";;;;;;;AAGA,IAAA,gCAAA,GAAeA,4BAAAA,eAAAA,CAAe;CAC5B,MAAM;CACN,aACE;CACF,aAAA,GAAYC,+BAAAA,oBAAAA,CAAAA,QAAAA,KAAAA,CAAAA,CAAAA,cAAAA,UAAAA,CAAAA,CAAAA,MAAqC,uCAAuC;AAC1F,CAAC;;;ACFD,MAAM,MAAY,OAA0B,YAC1C,OAAO,UAAU,aAAc,MAAwB,OAAO,IAAI;AAEpE,MAAa,OAAA,GAAMC,4BAAAA,gBAAAA,CAAgB;CACjC,MAAM;CACN,UAAU,aAAa,EACrB,IAAI,SAAyC;EAAE,OAAO,CAAC,GAAGC,8BAAqB,OAAO,CAAC;CAAG,EAC5F;AACF,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.d.mts","names":[],"sources":["../../generated/mcp.ts"],"mappings":";qBASa,2CAAG"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { defineMcpPlugin, defineMcpSkill } from "@agimon-ai/po-core/mcpFacet";
|
|
2
|
+
import { readPackageResource } from "@agimon-ai/po-core/serverFacet";
|
|
3
|
+
//#region src/extensions/workspaces/sessions/(backend)/skill/po-author-domain.mcp.ts
|
|
4
|
+
var po_author_domain_mcp_default = defineMcpSkill({
|
|
5
|
+
name: "po-author-domain",
|
|
6
|
+
description: "Configure Po plugin catalogs and domain resource selections in domains.yaml. Use when creating or editing .po/domains.yaml or ~/.po/domains.yaml, choosing local, Git, or npm plugins, filtering plugin resources, setting aliases or defaults, or verifying resolved domain composition.",
|
|
7
|
+
read: () => readPackageResource(import.meta.url, "src/prompts/po-author-domain/SKILL.md")
|
|
8
|
+
});
|
|
9
|
+
//#endregion
|
|
10
|
+
//#region generated/mcp.ts
|
|
11
|
+
const at = (value, context) => typeof value === "function" ? value(context) : value;
|
|
12
|
+
const mcp = defineMcpPlugin({
|
|
13
|
+
name: "@agimon-ai/po-domain",
|
|
14
|
+
session: (context) => ({ get skills() {
|
|
15
|
+
return [at(po_author_domain_mcp_default, context)];
|
|
16
|
+
} })
|
|
17
|
+
});
|
|
18
|
+
//#endregion
|
|
19
|
+
export { mcp as default, mcp };
|
|
20
|
+
|
|
21
|
+
//# sourceMappingURL=mcp.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp.mjs","names":["skillPoAuthorDomain"],"sources":["../../src/extensions/workspaces/sessions/(backend)/skill/po-author-domain.mcp.ts","../../generated/mcp.ts"],"sourcesContent":["import { defineMcpSkill } from '@agimon-ai/po-core/mcpFacet';\nimport { readPackageResource } from '@agimon-ai/po-core/serverFacet';\n\nexport default defineMcpSkill({\n name: 'po-author-domain',\n description:\n 'Configure Po plugin catalogs and domain resource selections in domains.yaml. Use when creating or editing .po/domains.yaml or ~/.po/domains.yaml, choosing local, Git, or npm plugins, filtering plugin resources, setting aliases or defaults, or verifying resolved domain composition.',\n read: () => readPackageResource(import.meta.url, 'src/prompts/po-author-domain/SKILL.md'),\n});\n","// Generated by @agimon-ai/po-build. Do not edit by hand.\nimport { defineMcpPlugin, type DoomMcpSessionPlugin } from '@agimon-ai/po-core/mcpFacet';\n\nimport skillPoAuthorDomain from '../src/extensions/workspaces/sessions/(backend)/skill/po-author-domain.mcp';\n\ntype Factory<T, C> = (context: C) => T;\nconst at = <T, C>(value: T | Factory<T, C>, context: C): T =>\n typeof value === 'function' ? (value as Factory<T, C>)(context) : value;\n\nexport const mcp = defineMcpPlugin({\n name: '@agimon-ai/po-domain',\n session: (context) => ({\n get skills(): DoomMcpSessionPlugin['skills'] { return [at(skillPoAuthorDomain, context)]; },\n }) satisfies DoomMcpSessionPlugin,\n});\n\nexport default mcp;\n"],"mappings":";;;AAGA,IAAA,+BAAe,eAAe;CAC5B,MAAM;CACN,aACE;CACF,YAAY,oBAAoB,YAAY,KAAK,uCAAuC;AAC1F,CAAC;;;ACFD,MAAM,MAAY,OAA0B,YAC1C,OAAO,UAAU,aAAc,MAAwB,OAAO,IAAI;AAEpE,MAAa,MAAM,gBAAgB;CACjC,MAAM;CACN,UAAU,aAAa,EACrB,IAAI,SAAyC;EAAE,OAAO,CAAC,GAAGA,8BAAqB,OAAO,CAAC;CAAG,EAC5F;AACF,CAAC"}
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
Object.defineProperties(exports, {
|
|
2
|
+
__esModule: { value: true },
|
|
3
|
+
[Symbol.toStringTag]: { value: "Module" }
|
|
4
|
+
});
|
|
5
|
+
const require_rolldown_runtime = require("../rolldown-runtime-VH7oDXx4.cjs");
|
|
6
|
+
const require_mcpFilter = require("../mcpFilter-CZNmU_VF.cjs");
|
|
7
|
+
const require_pluginMaterializer = require("../pluginMaterializer-C8IZ1PSY.cjs");
|
|
8
|
+
const require_resourceCollector = require("../resourceCollector-Cu-lp5hJ.cjs");
|
|
9
|
+
const require_domainText = require("../domainText-UIRIz6-_.cjs");
|
|
10
|
+
let node_path = require("node:path");
|
|
11
|
+
node_path = require_rolldown_runtime.__toESM(node_path, 1);
|
|
12
|
+
let _agimon_ai_po_config_domains = require("@agimon-ai/po-config/domains");
|
|
13
|
+
let _agimon_ai_po_config_harnessStore = require("@agimon-ai/po-config/harnessStore");
|
|
14
|
+
let node_os = require("node:os");
|
|
15
|
+
node_os = require_rolldown_runtime.__toESM(node_os, 1);
|
|
16
|
+
let _agimon_ai_po_core_mcpProjection = require("@agimon-ai/po-core/mcpProjection");
|
|
17
|
+
let _agimon_ai_po_core_serverFacet = require("@agimon-ai/po-core/serverFacet");
|
|
18
|
+
let _agimon_ai_po_core_extensionFile = require("@agimon-ai/po-core/extensionFile");
|
|
19
|
+
let node_fs_promises = require("node:fs/promises");
|
|
20
|
+
let _agimon_ai_po_core_skills = require("@agimon-ai/po-core/skills");
|
|
21
|
+
//#region src/extensions/workspaces/sessions/(backend)/_lib/domainServerResources.ts
|
|
22
|
+
/** Retain valid domains behind selection conditions; a broken neighbor must not prevent startup. */
|
|
23
|
+
async function domainServerResources(context) {
|
|
24
|
+
const resources = [];
|
|
25
|
+
const home = context.environment.HOME ?? node_os.default.homedir();
|
|
26
|
+
for (const domain of (0, _agimon_ai_po_config_domains.listDomainNames)(context.repoRoot, home)) {
|
|
27
|
+
const temporaryDirectory = await (0, node_fs_promises.mkdtemp)(node_path.default.join(node_os.default.tmpdir(), "doom-domain-"));
|
|
28
|
+
try {
|
|
29
|
+
const plugins = await require_pluginMaterializer.materializePluginEntries((0, _agimon_ai_po_config_domains.resolvePluginEntries)(context.repoRoot, [domain], [], home));
|
|
30
|
+
const collected = await require_resourceCollector.collectResources(context.repoRoot, plugins, {
|
|
31
|
+
agents: false,
|
|
32
|
+
mcp: false,
|
|
33
|
+
sharedSkills: false,
|
|
34
|
+
temporaryDirectory
|
|
35
|
+
});
|
|
36
|
+
for (const skill of collected.skillSources) resources.push({
|
|
37
|
+
name: skill.name,
|
|
38
|
+
description: skill.description,
|
|
39
|
+
path: skill.path,
|
|
40
|
+
kind: "skill",
|
|
41
|
+
when: {
|
|
42
|
+
domain,
|
|
43
|
+
attribution: {
|
|
44
|
+
kind: "domain",
|
|
45
|
+
mode: domain
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
read: () => (0, node_fs_promises.readFile)(skill.path, "utf8")
|
|
49
|
+
});
|
|
50
|
+
} catch (error) {
|
|
51
|
+
await context.client.notify({
|
|
52
|
+
title: `Po domain ${domain} unavailable`,
|
|
53
|
+
body: error instanceof Error ? error.message : String(error),
|
|
54
|
+
level: "warning"
|
|
55
|
+
});
|
|
56
|
+
} finally {
|
|
57
|
+
await (0, node_fs_promises.rm)(temporaryDirectory, {
|
|
58
|
+
recursive: true,
|
|
59
|
+
force: true
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
return resources;
|
|
64
|
+
}
|
|
65
|
+
//#endregion
|
|
66
|
+
//#region src/extensions/workspaces/sessions/(backend)/root.server.ts
|
|
67
|
+
var root_server_default = (0, _agimon_ai_po_core_extensionFile.defineRoot)(async ({ agent }) => {
|
|
68
|
+
const services = [];
|
|
69
|
+
if (agent) {
|
|
70
|
+
const execution = agent.context;
|
|
71
|
+
const home = execution.environment.HOME ?? node_os.default.homedir();
|
|
72
|
+
const resolver = { async resolve(domains) {
|
|
73
|
+
const { state } = (0, _agimon_ai_po_config_harnessStore.loadHarnessState)({ ...execution.environment });
|
|
74
|
+
const directory = await (0, node_fs_promises.mkdtemp)(node_path.default.join(node_os.default.tmpdir(), "doom-domain-mcp-"));
|
|
75
|
+
try {
|
|
76
|
+
const plugins = await require_pluginMaterializer.materializePluginEntries((0, _agimon_ai_po_config_domains.resolvePluginEntries)(execution.repoRoot, [...domains], [...state.pluginDirectories], home));
|
|
77
|
+
return {
|
|
78
|
+
projection: (await require_resourceCollector.stageMcpResources(execution.repoRoot, plugins, {
|
|
79
|
+
enabled: true,
|
|
80
|
+
temporaryDirectory: directory,
|
|
81
|
+
mcpAllowlist: require_mcpFilter.resolveMcpAllowlist(execution.repoRoot, [...domains])
|
|
82
|
+
})).mcpProjection,
|
|
83
|
+
cleanup: () => (0, node_fs_promises.rm)(directory, {
|
|
84
|
+
recursive: true,
|
|
85
|
+
force: true
|
|
86
|
+
})
|
|
87
|
+
};
|
|
88
|
+
} catch (error) {
|
|
89
|
+
await (0, node_fs_promises.rm)(directory, {
|
|
90
|
+
recursive: true,
|
|
91
|
+
force: true
|
|
92
|
+
});
|
|
93
|
+
throw error;
|
|
94
|
+
}
|
|
95
|
+
} };
|
|
96
|
+
services.push((cordis) => {
|
|
97
|
+
cordis.plugin((provider) => {
|
|
98
|
+
provider.provide(_agimon_ai_po_core_mcpProjection.DOOM_MCP_PROJECTION_RESOLVER_SERVICE, resolver);
|
|
99
|
+
});
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
return {
|
|
103
|
+
value: { resources: agent ? await domainServerResources(agent.context) : [] },
|
|
104
|
+
services
|
|
105
|
+
};
|
|
106
|
+
});
|
|
107
|
+
//#endregion
|
|
108
|
+
//#region src/extensions/workspaces/sessions/(backend)/_lib/domainServerCommand.ts
|
|
109
|
+
const DOMAIN_SELECTION_KIND = "po-domains-selection";
|
|
110
|
+
const DOMAIN_SELECTION_VERSION = 1;
|
|
111
|
+
/** Full-set web replies share the string transport with legacy single-toggle labels. */
|
|
112
|
+
function domainSelectionReply(answer) {
|
|
113
|
+
if (!answer.trimStart().startsWith("{")) return null;
|
|
114
|
+
const reply = JSON.parse(answer);
|
|
115
|
+
if (typeof reply !== "object" || reply === null || !("kind" in reply) || reply.kind !== DOMAIN_SELECTION_KIND || !("version" in reply) || reply.version !== DOMAIN_SELECTION_VERSION || !("domains" in reply) || !Array.isArray(reply.domains) || !reply.domains.every((name) => typeof name === "string")) throw new Error("Invalid domains selection reply");
|
|
116
|
+
return reply.domains;
|
|
117
|
+
}
|
|
118
|
+
function createDomainServerCommand(host) {
|
|
119
|
+
return {
|
|
120
|
+
name: require_domainText.DOMAIN_COMMAND,
|
|
121
|
+
description: "Show or change the active Po domains.",
|
|
122
|
+
async execute(args, execution) {
|
|
123
|
+
const available = (0, _agimon_ai_po_config_domains.listDomainNames)(execution.repoRoot);
|
|
124
|
+
let requested = require_domainText.splitDomains(args);
|
|
125
|
+
let fullSet = false;
|
|
126
|
+
if (requested.length === 0) {
|
|
127
|
+
const listing = {
|
|
128
|
+
active: [...execution.selection.domains],
|
|
129
|
+
effective: [...execution.selection.domains],
|
|
130
|
+
available
|
|
131
|
+
};
|
|
132
|
+
const selected = await execution.client.request({
|
|
133
|
+
kind: "select",
|
|
134
|
+
title: require_domainText.pickerTitle(listing),
|
|
135
|
+
options: require_domainText.domainToggleOptions(listing).map((label) => ({
|
|
136
|
+
label,
|
|
137
|
+
value: label
|
|
138
|
+
}))
|
|
139
|
+
});
|
|
140
|
+
if (typeof selected !== "string" || !selected) return;
|
|
141
|
+
const domains = domainSelectionReply(selected);
|
|
142
|
+
fullSet = domains !== null;
|
|
143
|
+
requested = domains ?? require_domainText.toggledDomains(listing.effective, require_domainText.toggleOptionDomain(selected));
|
|
144
|
+
}
|
|
145
|
+
requested = require_domainText.normalizeDomainNames(requested);
|
|
146
|
+
const unknown = requested.filter((name) => !available.includes(name));
|
|
147
|
+
if (unknown.length > 0) throw new Error(`Unknown domain: ${unknown.join(", ")}`);
|
|
148
|
+
if (fullSet) {
|
|
149
|
+
const wanted = new Set(requested);
|
|
150
|
+
const current = new Set(execution.selection.domains);
|
|
151
|
+
requested = [...execution.selection.domains.filter((name) => wanted.has(name)), ...available.filter((name) => wanted.has(name) && !current.has(name))];
|
|
152
|
+
}
|
|
153
|
+
if (requested.length === execution.selection.domains.length && requested.every((name, index) => name === execution.selection.domains[index])) return;
|
|
154
|
+
await host.changeSelection({
|
|
155
|
+
axis: "domains",
|
|
156
|
+
domains: requested
|
|
157
|
+
});
|
|
158
|
+
const projection = {
|
|
159
|
+
version: 1,
|
|
160
|
+
revision: Date.now()
|
|
161
|
+
};
|
|
162
|
+
await execution.session.appendCustomEntry(_agimon_ai_po_core_skills.DOOM_RESOURCE_CATALOG_ENTRY_TYPE, projection);
|
|
163
|
+
}
|
|
164
|
+
};
|
|
165
|
+
}
|
|
166
|
+
//#endregion
|
|
167
|
+
//#region src/extensions/workspaces/sessions/(backend)/command/domains.server.ts
|
|
168
|
+
var domains_server_default$1 = (0, _agimon_ai_po_core_extensionFile.defineRoutedContribution)(({ agent }) => agent ? createDomainServerCommand(agent) : void 0, { cardinality: "optional" });
|
|
169
|
+
//#endregion
|
|
170
|
+
//#region src/extensions/workspaces/sessions/(backend)/resource/domains.server.ts
|
|
171
|
+
var domains_server_default = (0, _agimon_ai_po_core_extensionFile.defineRoutedContribution)((context) => context.root.resources, { cardinality: "many" });
|
|
172
|
+
//#endregion
|
|
173
|
+
//#region src/extensions/workspaces/sessions/(backend)/resource/poAuthorDomain.server.ts
|
|
174
|
+
var poAuthorDomain_server_default = (0, _agimon_ai_po_core_extensionFile.defineResource)({
|
|
175
|
+
name: "po-author-domain",
|
|
176
|
+
description: "Configure Po plugin catalogs and domain resource selections in domains.yaml. Use when creating or editing .po/domains.yaml or ~/.po/domains.yaml, choosing local, Git, or npm plugins, filtering plugin resources, setting aliases or defaults, or verifying resolved domain composition.",
|
|
177
|
+
when: {
|
|
178
|
+
state: { "minor-mode": "help" },
|
|
179
|
+
attribution: {
|
|
180
|
+
kind: "minor",
|
|
181
|
+
mode: "help"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
kind: "skill",
|
|
185
|
+
path: (0, _agimon_ai_po_core_serverFacet.packageResourcePath)(require("url").pathToFileURL(__filename).href, "src/prompts/po-author-domain/SKILL.md"),
|
|
186
|
+
read: () => (0, _agimon_ai_po_core_serverFacet.readPackageResource)(require("url").pathToFileURL(__filename).href, "src/prompts/po-author-domain/SKILL.md")
|
|
187
|
+
});
|
|
188
|
+
//#endregion
|
|
189
|
+
//#region generated/server.ts
|
|
190
|
+
const at = (value, context) => typeof value === "function" ? value(context) : value;
|
|
191
|
+
const many = (value, context) => {
|
|
192
|
+
const resolved = typeof value === "function" ? value(context) : value;
|
|
193
|
+
return Array.isArray(resolved) ? resolved : [resolved];
|
|
194
|
+
};
|
|
195
|
+
/* v8 ignore next -- generated normalization branch */
|
|
196
|
+
const defined = (values) => values.filter((value) => value !== void 0);
|
|
197
|
+
const via = (identity, value) => value === void 0 ? void 0 : {
|
|
198
|
+
...identity,
|
|
199
|
+
...value
|
|
200
|
+
};
|
|
201
|
+
const facet = (0, _agimon_ai_po_core_serverFacet.defineServerPlugin)({
|
|
202
|
+
name: "@agimon-ai/po-domain",
|
|
203
|
+
providerOverrides: (0, _agimon_ai_po_core_serverFacet.composeServerProviderOverrides)(root_server_default),
|
|
204
|
+
session: async (context) => {
|
|
205
|
+
const scopeSession = await root_server_default(context);
|
|
206
|
+
const contextSession = {
|
|
207
|
+
...context,
|
|
208
|
+
root: scopeSession.value
|
|
209
|
+
};
|
|
210
|
+
return {
|
|
211
|
+
...(0, _agimon_ai_po_core_extensionFile.composeRootHooks)(scopeSession),
|
|
212
|
+
get commands() {
|
|
213
|
+
return defined([via({ name: "domains" }, at(domains_server_default$1, contextSession))]);
|
|
214
|
+
},
|
|
215
|
+
get resources() {
|
|
216
|
+
return [...many(domains_server_default, contextSession), at(poAuthorDomain_server_default, contextSession)];
|
|
217
|
+
},
|
|
218
|
+
services: [...scopeSession.services ?? []],
|
|
219
|
+
get activities() {
|
|
220
|
+
return [...scopeSession.activities ?? []];
|
|
221
|
+
}
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
//#endregion
|
|
226
|
+
exports.default = facet;
|
|
227
|
+
exports.facet = facet;
|
|
228
|
+
|
|
229
|
+
//# sourceMappingURL=server.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"server.cjs","names":["os","listDomainNames","mkdtemp","path","materializePluginEntries","resolvePluginEntries","collectResources","readFile","rm","defineRoot","os","loadHarnessState","mkdtemp","path","materializePluginEntries","resolvePluginEntries","stageMcpResources","resolveMcpAllowlist","rm","DOOM_MCP_PROJECTION_RESOLVER_SERVICE","DOMAIN_COMMAND","listDomainNames","splitDomains","pickerTitle","domainToggleOptions","toggledDomains","toggleOptionDomain","normalizeDomainNames","DOOM_RESOURCE_CATALOG_ENTRY_TYPE","defineRoutedContribution","defineRoutedContribution","defineResource","packageResourcePath","readPackageResource","defineServerPlugin","composeServerProviderOverrides","rootSession","composeRootHooks","commandDomains","resourceDomains","resourcePoAuthorDomain"],"sources":["../../src/extensions/workspaces/sessions/(backend)/_lib/domainServerResources.ts","../../src/extensions/workspaces/sessions/(backend)/root.server.ts","../../src/extensions/workspaces/sessions/(backend)/_lib/domainServerCommand.ts","../../src/extensions/workspaces/sessions/(backend)/command/domains.server.ts","../../src/extensions/workspaces/sessions/(backend)/resource/domains.server.ts","../../src/extensions/workspaces/sessions/(backend)/resource/poAuthorDomain.server.ts","../../generated/server.ts"],"sourcesContent":["import { mkdtemp, readFile, rm } from 'node:fs/promises';\nimport os from 'node:os';\nimport path from 'node:path';\n\nimport { listDomainNames, resolvePluginEntries } from '@agimon-ai/po-config/domains';\nimport type { DoomHeadlessExecutionContext, DoomHeadlessResource } from '@agimon-ai/po-core/headless';\n\nimport { materializePluginEntries } from '../../../../../services/pluginMaterializer';\nimport { collectResources } from '../../../../../services/resourceCollector';\n\n/** Retain valid domains behind selection conditions; a broken neighbor must not prevent startup. */\nexport async function domainServerResources(context: DoomHeadlessExecutionContext): Promise<DoomHeadlessResource[]> {\n const resources: DoomHeadlessResource[] = [];\n const home = context.environment.HOME ?? os.homedir();\n for (const domain of listDomainNames(context.repoRoot, home)) {\n // Own staging here so collection failures also release their temporary files.\n const temporaryDirectory = await mkdtemp(path.join(os.tmpdir(), 'doom-domain-'));\n try {\n const plugins = await materializePluginEntries(resolvePluginEntries(context.repoRoot, [domain], [], home));\n const collected = await collectResources(context.repoRoot, plugins, {\n agents: false,\n mcp: false,\n sharedSkills: false,\n temporaryDirectory,\n });\n for (const skill of collected.skillSources) {\n resources.push({\n name: skill.name,\n description: skill.description,\n path: skill.path,\n kind: 'skill',\n when: { domain, attribution: { kind: 'domain', mode: domain } },\n read: () => readFile(skill.path, 'utf8'),\n });\n }\n } catch (error) {\n await context.client.notify({\n title: `Po domain ${domain} unavailable`,\n body: error instanceof Error ? error.message : String(error),\n level: 'warning',\n });\n } finally {\n await rm(temporaryDirectory, { recursive: true, force: true });\n }\n }\n return resources;\n}\n","import { mkdtemp, rm } from 'node:fs/promises';\nimport os from 'node:os';\nimport path from 'node:path';\n\nimport { resolvePluginEntries } from '@agimon-ai/po-config/domains';\nimport { loadHarnessState } from '@agimon-ai/po-config/harnessStore';\nimport { defineRoot } from '@agimon-ai/po-core/extensionFile';\nimport {\n DOOM_MCP_PROJECTION_RESOLVER_SERVICE,\n type DoomMcpProjectionResolverService,\n} from '@agimon-ai/po-core/mcpProjection';\nimport type { DoomServerPluginContext } from '@agimon-ai/po-core/serverFacet';\nimport type { Context } from '@deepseek-ai/cordis';\n\nimport { resolveMcpAllowlist } from '../../../../services/mcpFilter';\nimport { materializePluginEntries } from '../../../../services/pluginMaterializer';\nimport { stageMcpResources } from '../../../../services/resourceCollector';\nimport { domainServerResources } from './_lib/domainServerResources';\nimport type { DomainServerScope } from './_lib/serverScope';\n\nexport default defineRoot(async ({ agent }: DoomServerPluginContext) => {\n const services: Array<(cordis: Context) => void> = [];\n if (agent) {\n const execution = agent.context;\n const home = execution.environment.HOME ?? os.homedir();\n const resolver: DoomMcpProjectionResolverService = {\n async resolve(domains) {\n const { state } = loadHarnessState({ ...execution.environment });\n const directory = await mkdtemp(path.join(os.tmpdir(), 'doom-domain-mcp-'));\n try {\n const plugins = await materializePluginEntries(\n resolvePluginEntries(execution.repoRoot, [...domains], [...state.pluginDirectories], home),\n );\n const staged = await stageMcpResources(execution.repoRoot, plugins, {\n enabled: true,\n temporaryDirectory: directory,\n mcpAllowlist: resolveMcpAllowlist(execution.repoRoot, [...domains]),\n });\n return {\n projection: staged.mcpProjection,\n cleanup: () => rm(directory, { recursive: true, force: true }),\n };\n } catch (error) {\n await rm(directory, { recursive: true, force: true });\n throw error;\n }\n },\n };\n services.push((cordis) => {\n cordis.plugin((provider) => {\n provider.provide(DOOM_MCP_PROJECTION_RESOLVER_SERVICE, resolver);\n });\n });\n }\n return {\n value: { resources: agent ? await domainServerResources(agent.context) : [] } satisfies DomainServerScope,\n services,\n };\n});\n","import { listDomainNames } from '@agimon-ai/po-config/domains';\nimport { type DoomHeadlessCommand, type DoomHeadlessHostService } from '@agimon-ai/po-core/headless';\nimport { DOOM_RESOURCE_CATALOG_ENTRY_TYPE, type ResourceCatalogProjection } from '@agimon-ai/po-core/skills';\n\nimport {\n DOMAIN_COMMAND,\n domainToggleOptions,\n normalizeDomainNames,\n pickerTitle,\n splitDomains,\n toggledDomains,\n toggleOptionDomain,\n} from '../../../../../services/domainText';\n\nconst DOMAIN_SELECTION_KIND = 'po-domains-selection';\nconst DOMAIN_SELECTION_VERSION = 1;\n\n/** Full-set web replies share the string transport with legacy single-toggle labels. */\nfunction domainSelectionReply(answer: string): string[] | null {\n if (!answer.trimStart().startsWith('{')) return null;\n const reply: unknown = JSON.parse(answer);\n if (\n typeof reply !== 'object' ||\n reply === null ||\n !('kind' in reply) ||\n reply.kind !== DOMAIN_SELECTION_KIND ||\n !('version' in reply) ||\n reply.version !== DOMAIN_SELECTION_VERSION ||\n !('domains' in reply) ||\n !Array.isArray(reply.domains) ||\n !reply.domains.every((name: unknown): name is string => typeof name === 'string')\n ) {\n throw new Error('Invalid domains selection reply');\n }\n return reply.domains;\n}\n\nexport function createDomainServerCommand(host: DoomHeadlessHostService): DoomHeadlessCommand {\n return {\n name: DOMAIN_COMMAND,\n description: 'Show or change the active Po domains.',\n async execute(args, execution) {\n const available = listDomainNames(execution.repoRoot);\n let requested = splitDomains(args);\n let fullSet = false;\n if (requested.length === 0) {\n const listing = {\n active: [...execution.selection.domains],\n effective: [...execution.selection.domains],\n available,\n };\n const selected = await execution.client.request({\n kind: 'select',\n title: pickerTitle(listing),\n options: domainToggleOptions(listing).map((label) => ({ label, value: label })),\n });\n if (typeof selected !== 'string' || !selected) return;\n const domains = domainSelectionReply(selected);\n fullSet = domains !== null;\n requested = domains ?? toggledDomains(listing.effective, toggleOptionDomain(selected));\n }\n requested = normalizeDomainNames(requested);\n const unknown = requested.filter((name) => !available.includes(name));\n if (unknown.length > 0) throw new Error(`Unknown domain: ${unknown.join(', ')}`);\n if (fullSet) {\n const wanted = new Set(requested);\n const current = new Set(execution.selection.domains);\n requested = [\n ...execution.selection.domains.filter((name) => wanted.has(name)),\n ...available.filter((name) => wanted.has(name) && !current.has(name)),\n ];\n }\n if (\n requested.length === execution.selection.domains.length &&\n requested.every((name, index) => name === execution.selection.domains[index])\n ) {\n return;\n }\n await host.changeSelection({ axis: 'domains', domains: requested });\n // The web composer caches get_commands for `$` completion. Signal only after\n // the headless host has reconciled commands so the re-read sees this selection.\n const projection: ResourceCatalogProjection = { version: 1, revision: Date.now() };\n await execution.session.appendCustomEntry(DOOM_RESOURCE_CATALOG_ENTRY_TYPE, projection);\n },\n };\n}\n","import { defineRoutedContribution } from '@agimon-ai/po-core/extensionFile';\nimport type { DoomServerPluginContext } from '@agimon-ai/po-core/serverFacet';\n\nimport { createDomainServerCommand } from '../_lib/domainServerCommand';\nexport default defineRoutedContribution(\n ({ agent }: DoomServerPluginContext) => (agent ? createDomainServerCommand(agent) : undefined),\n { cardinality: 'optional' },\n);\n","import { defineRoutedContribution } from '@agimon-ai/po-core/extensionFile';\nimport type { WithRoot } from '@agimon-ai/po-core/extensionFile';\nimport type { DoomServerPluginContext } from '@agimon-ai/po-core/serverFacet';\n\nimport type { DomainServerScope } from '../_lib/serverScope';\n\nexport default defineRoutedContribution(\n (context: WithRoot<DoomServerPluginContext, DomainServerScope>) => context.root.resources,\n { cardinality: 'many' },\n);\n","import { defineResource } from '@agimon-ai/po-core/extensionFile';\nimport { packageResourcePath, readPackageResource } from '@agimon-ai/po-core/serverFacet';\n\nexport default defineResource({\n name: 'po-author-domain',\n description:\n 'Configure Po plugin catalogs and domain resource selections in domains.yaml. Use when creating or editing .po/domains.yaml or ~/.po/domains.yaml, choosing local, Git, or npm plugins, filtering plugin resources, setting aliases or defaults, or verifying resolved domain composition.',\n when: { state: { 'minor-mode': 'help' }, attribution: { kind: 'minor' as const, mode: 'help' } },\n kind: 'skill' as const,\n path: packageResourcePath(import.meta.url, 'src/prompts/po-author-domain/SKILL.md'),\n read: () => readPackageResource(import.meta.url, 'src/prompts/po-author-domain/SKILL.md'),\n});\n","// Generated by @agimon-ai/po-build. Do not edit by hand.\nimport { defineServerPlugin, type DoomServerSessionPlugin } from '@agimon-ai/po-core/serverFacet';\nimport { composeServerProviderOverrides } from '@agimon-ai/po-core/serverFacet';\nimport { composeRootHooks } from '@agimon-ai/po-core/extensionFile';\n\nimport rootSession from '../src/extensions/workspaces/sessions/(backend)/root.server';\nimport commandDomains from '../src/extensions/workspaces/sessions/(backend)/command/domains.server';\nimport resourceDomains from '../src/extensions/workspaces/sessions/(backend)/resource/domains.server';\nimport resourcePoAuthorDomain from '../src/extensions/workspaces/sessions/(backend)/resource/poAuthorDomain.server';\n\ntype Factory<T, C> = (context: C) => T;\nconst at = <T, C>(value: T | Factory<T, C>, context: C): T =>\n typeof value === 'function' ? (value as Factory<T, C>)(context) : value;\ntype ManyFactory<T, C> = (context: C) => T | readonly T[];\nconst many = <T, C>(value: T | readonly T[] | ManyFactory<T, C>, context: C): readonly T[] => {\n const resolved = typeof value === 'function' ? (value as ManyFactory<T, C>)(context) : value;\n return Array.isArray(resolved) ? resolved : [resolved as T];\n};\n/* v8 ignore next -- generated normalization branch */\nconst defined = <T>(values: readonly (T | undefined)[]): T[] =>\n values.filter((value): value is T => value !== undefined);\nconst via = <T>(identity: Record<string, unknown>, value: unknown): T =>\n (value === undefined ? undefined : { ...identity, ...(value as object) }) as T;\n\nexport const facet = defineServerPlugin({\n name: '@agimon-ai/po-domain',\n providerOverrides: composeServerProviderOverrides(rootSession),\n session: async (context) => {\n const scopeSession = await rootSession(context);\n const contextSession = { ...context, root: scopeSession.value };\n return {\n ...composeRootHooks(scopeSession),\n get commands(): DoomServerSessionPlugin['commands'] { return defined([via({ name: 'domains' }, at(commandDomains, contextSession))]); },\n get resources(): DoomServerSessionPlugin['resources'] { return [...many(resourceDomains, contextSession), at(resourcePoAuthorDomain, contextSession)]; },\n services: [...(scopeSession.services ?? [])],\n get activities(): DoomServerSessionPlugin['activities'] { return [...(scopeSession.activities ?? [])]; },\n };\n },\n});\n\nexport default facet;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAWA,eAAsB,sBAAsB,SAAwE;CAClH,MAAM,YAAoC,CAAC;CAC3C,MAAM,OAAO,QAAQ,YAAY,QAAQA,QAAAA,QAAG,QAAQ;CACpD,KAAK,MAAM,WAAA,GAAUC,6BAAAA,gBAAAA,CAAgB,QAAQ,UAAU,IAAI,GAAG;EAE5D,MAAM,q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