dsh-agent-team-presets 0.3.2 → 0.3.4
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/NOTICE +58 -3
- package/README.md +73 -398
- package/README.zh.md +79 -404
- package/assets/card-patches/catalog.json +30 -0
- package/assets/card-patches/dsh-context-0.85.0.client.js.gz +0 -0
- package/assets/card-patches/dsh-context-0.85.1.client.js.gz +0 -0
- package/assets/card-patches/dsh-context-0.87.0.client.js.gz +0 -0
- package/assets/skills/agent-leader-communication/SKILL.md +100 -0
- package/assets/skills/agent-subagent-orchestration/SKILL.md +56 -0
- package/assets/skills/agent-subagent-orchestration/references/executor-parallel-execution.md +56 -0
- package/assets/skills/agent-subagent-orchestration/references/leader-discovery.md +53 -0
- package/assets/skills/agent-subagent-orchestration/references/subagent-communication.md +58 -0
- package/assets/skills/backend-architecture-workflow/SKILL.md +55 -0
- package/assets/skills/backend-architecture-workflow/references/README.md +9 -0
- package/assets/skills/backend-architecture-workflow/references/architecture-audit.md +70 -0
- package/assets/skills/backend-architecture-workflow/references/architecture-decay-risks.md +75 -0
- package/assets/skills/backend-architecture-workflow/references/architecture-design.md +151 -0
- package/assets/skills/backend-architecture-workflow/references/bugfix-regression.md +63 -0
- package/assets/skills/backend-architecture-workflow/references/complex-bug-diagnosis.md +104 -0
- package/assets/skills/executor-short-task-workflow/SKILL.md +48 -0
- package/assets/skills/executor-short-task-workflow/references/agent-communication.md +44 -0
- package/assets/skills/executor-short-task-workflow/references/verification-and-reporting.md +45 -0
- package/assets/skills/frontend-engineering-workflow/SKILL.md +47 -0
- package/assets/skills/frontend-engineering-workflow/references/README.md +7 -0
- package/assets/skills/frontend-engineering-workflow/references/frontend-implementation.md +46 -0
- package/assets/skills/frontend-engineering-workflow/references/visual-design.md +43 -0
- package/assets/skills/frontend-engineering-workflow/references/visual-qa.md +126 -0
- package/assets/skills/fullstack-advisor/SKILL.md +50 -0
- package/assets/skills/fullstack-advisor/references/brooks-principles.md +51 -0
- package/assets/skills/fullstack-advisor/references/consultant-communication.md +51 -0
- package/assets/skills/fullstack-advisor/references/consultation-workflow.md +71 -0
- package/assets/skills/git-release-hygiene/SKILL.md +33 -21
- package/assets/skills/git-release-hygiene/references/git-safety.md +66 -0
- package/assets/skills/git-release-hygiene/references/pr-changelog.md +98 -0
- package/assets/skills/git-release-hygiene/references/release-standard.md +139 -0
- package/assets/skills/git-release-hygiene/references/validation-checklist.md +42 -0
- package/assets/skills/github-repository-presentation/SKILL.md +49 -130
- package/assets/skills/github-repository-presentation/references/bilingual-writing.md +43 -0
- package/assets/skills/github-repository-presentation/references/documentation-architecture.md +156 -0
- package/assets/skills/github-repository-presentation/references/readme-standard.md +273 -0
- package/assets/skills/github-repository-presentation/references/release-notes.md +70 -0
- package/assets/skills/github-repository-presentation/references/validation-checklist.md +47 -0
- package/assets/skills/independent-code-review-workflow/SKILL.md +60 -0
- package/assets/skills/independent-code-review-workflow/references/README.md +9 -0
- package/assets/skills/independent-code-review-workflow/references/decay-risks.md +99 -0
- package/assets/skills/independent-code-review-workflow/references/review-checklist.md +53 -0
- package/assets/skills/independent-code-review-workflow/references/review-methodology.md +113 -0
- package/assets/skills/independent-code-review-workflow/references/review-severity.md +49 -0
- package/assets/skills/independent-code-review-workflow/references/test-quality-review.md +71 -0
- package/assets/skills/leader-long-task-orchestration/SKILL.md +49 -0
- package/assets/skills/leader-long-task-orchestration/references/delivery-plan-template.md +73 -0
- package/assets/skills/leader-long-task-orchestration/references/product-alignment.md +46 -0
- package/assets/skills/leader-long-task-orchestration/references/rolling-wave-planning.md +32 -0
- package/assets/skills/leader-long-task-orchestration/references/technical-decisions-and-escalation.md +34 -0
- package/assets/skills/leader-medium-task-workflow/SKILL.md +55 -0
- package/assets/skills/leader-medium-task-workflow/references/task-board-and-leader-todo.md +41 -0
- package/docs/builtin-team-skills.md +82 -0
- package/docs/builtin-team-skills.zh.md +82 -0
- package/docs/builtin-teams.md +62 -0
- package/docs/builtin-teams.zh.md +62 -0
- package/docs/developer/architecture.md +54 -0
- package/docs/developer/architecture.zh.md +54 -0
- package/docs/guide/install.md +86 -0
- package/docs/guide/install.zh.md +86 -0
- package/docs/guide/integrations.md +50 -0
- package/docs/guide/integrations.zh.md +50 -0
- package/docs/guide/team-skills.md +68 -0
- package/docs/guide/team-skills.zh.md +68 -0
- package/docs/guide/using-teams.md +92 -0
- package/docs/guide/using-teams.zh.md +92 -0
- package/docs/index.md +53 -0
- package/docs/index.zh.md +53 -0
- package/docs/reference/tools-and-permissions.md +62 -0
- package/docs/reference/tools-and-permissions.zh.md +62 -0
- package/docs/reference/troubleshooting.md +59 -0
- package/docs/reference/troubleshooting.zh.md +59 -0
- package/icon.webp +0 -0
- package/lib/client.js +1459 -253
- package/lib/index.js +960 -342
- package/lib/typert.host.js +402 -29
- package/lib/typert.remote-client.d.ts +9 -9
- package/lib/typert.remote-client.d.ts.map +1 -1
- package/lib/typert.remote-client.js +402 -29
- package/lib/types/client/CardPatchView.js +21 -1
- package/lib/types/client/ComposerTeamSelect.js +24 -8
- package/lib/types/client/TeamAgentView.d.ts +1 -1
- package/lib/types/client/TeamAgentView.js +11 -6
- package/lib/types/client/TeamImportDialog.d.ts +4 -15
- package/lib/types/client/TeamImportDialog.js +29 -25
- package/lib/types/client/TeamPresetsSection.js +14 -5
- package/lib/types/client/TeamSkillsView.d.ts +5 -4
- package/lib/types/client/TeamSkillsView.js +64 -15
- package/lib/types/client/locales.d.ts +41 -2
- package/lib/types/client/locales.js +185 -8
- package/lib/types/client/team-presets-controller.d.ts +15 -2
- package/lib/types/client/team-presets-controller.js +86 -30
- package/lib/types/client/team-skills-controller.d.ts +14 -5
- package/lib/types/client/team-skills-controller.js +71 -37
- package/lib/types/index.js +57 -19
- package/lib/types/preset-editor.js +3 -4
- package/lib/types/preset-transfer.d.ts +1 -1
- package/lib/types/presets.d.ts +21 -23
- package/lib/types/presets.js +72 -36
- package/lib/types/team-catalog.d.ts +50 -3
- package/lib/types/team-catalog.js +214 -43
- package/lib/types/team-mode.d.ts +48 -0
- package/lib/types/team-mode.js +64 -0
- package/lib/types/team-skills/import.d.ts +17 -7
- package/lib/types/team-skills/import.js +115 -21
- package/lib/types/team-skills/index.d.ts +2 -3
- package/lib/types/team-skills/index.js +4 -8
- package/lib/types/team-skills/manager.d.ts +24 -15
- package/lib/types/team-skills/manager.js +98 -105
- package/lib/types/team-skills/official-bindings.d.ts +29 -0
- package/lib/types/team-skills/official-bindings.js +51 -0
- package/lib/types/team-skills/service.d.ts +7 -12
- package/lib/types/team-skills/service.js +143 -63
- package/lib/types/team-skills/store.d.ts +27 -6
- package/lib/types/team-skills/store.js +151 -15
- package/lib/types/types.d.ts +18 -4
- package/package.json +21 -2
package/lib/client.js
CHANGED
|
@@ -18970,6 +18970,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18970
18970
|
})).readonly().describe("The captain slot plus every member slot, in Team order.")
|
|
18971
18971
|
})).readonly().describe("Every Team and its addressable roles."),
|
|
18972
18972
|
"official": array(string$1()).readonly().describe("Shipped skill ids this deployment provides."),
|
|
18973
|
+
"inboxChanges": array(object({
|
|
18974
|
+
"folder": string$1().readonly().describe("Folder name inside the scan root."),
|
|
18975
|
+
"status": union([
|
|
18976
|
+
literal("missing"),
|
|
18977
|
+
literal("imported"),
|
|
18978
|
+
literal("updated"),
|
|
18979
|
+
literal("existing"),
|
|
18980
|
+
literal("invalid")
|
|
18981
|
+
]).readonly().describe("How the source compares to the installed version."),
|
|
18982
|
+
"ignoredDependencyFields": array(string$1()).readonly().optional().describe("Frontmatter fields preserved without applying them as dependencies."),
|
|
18983
|
+
"skillId": string$1().readonly().optional().describe("Skill name read from its `SKILL.md`, when the folder was readable."),
|
|
18984
|
+
"assetId": string$1().readonly().optional().describe("Asset identity for an imported or already-present skill."),
|
|
18985
|
+
"reason": string$1().readonly().optional().describe("Machine-readable refusal reason, or `duplicate` for an existing name."),
|
|
18986
|
+
"detail": string$1().readonly().optional().describe("Path or other detail that explains the reason.")
|
|
18987
|
+
})).readonly().optional().describe("Source folders with changes or conflicts found during a read-only check."),
|
|
18973
18988
|
"issue": string$1().readonly().optional().describe("Why the store is unusable, when this deployment could not open it.")
|
|
18974
18989
|
})
|
|
18975
18990
|
});
|
|
@@ -19006,7 +19021,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
19006
19021
|
"text": boolean$1().readonly().describe("Whether the page may show it as text.")
|
|
19007
19022
|
})).readonly().describe("Every file, path-ordered."),
|
|
19008
19023
|
"body": string$1().readonly().describe("The `SKILL.md` body, without frontmatter."),
|
|
19009
|
-
"directory": string$1().readonly().describe("Absolute directory
|
|
19024
|
+
"directory": string$1().readonly().describe("Absolute source directory for scanned assets, or the published version's directory."),
|
|
19025
|
+
"ignoredDependencyFields": array(string$1()).readonly().optional().describe("Frontmatter fields the importer preserves without applying as dependencies."),
|
|
19026
|
+
"bindingSwitchIssue": string$1().readonly().optional().describe("The copy was created, but moving the existing role bindings failed."),
|
|
19010
19027
|
"dependencies": object({
|
|
19011
19028
|
"executables": array(object({
|
|
19012
19029
|
"name": string$1().readonly(),
|
|
@@ -19072,7 +19089,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
19072
19089
|
"text": boolean$1().readonly().describe("Whether the page may show it as text.")
|
|
19073
19090
|
})).readonly().describe("Every file, path-ordered."),
|
|
19074
19091
|
"body": string$1().readonly().describe("The `SKILL.md` body, without frontmatter."),
|
|
19075
|
-
"directory": string$1().readonly().describe("Absolute directory
|
|
19092
|
+
"directory": string$1().readonly().describe("Absolute source directory for scanned assets, or the published version's directory."),
|
|
19093
|
+
"ignoredDependencyFields": array(string$1()).readonly().optional().describe("Frontmatter fields the importer preserves without applying as dependencies."),
|
|
19094
|
+
"bindingSwitchIssue": string$1().readonly().optional().describe("The copy was created, but moving the existing role bindings failed."),
|
|
19076
19095
|
"dependencies": object({
|
|
19077
19096
|
"executables": array(object({
|
|
19078
19097
|
"name": string$1().readonly(),
|
|
@@ -19130,7 +19149,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
19130
19149
|
"text": boolean$1().readonly().describe("Whether the page may show it as text.")
|
|
19131
19150
|
})).readonly().describe("Every file, path-ordered."),
|
|
19132
19151
|
"body": string$1().readonly().describe("The `SKILL.md` body, without frontmatter."),
|
|
19133
|
-
"directory": string$1().readonly().describe("Absolute directory
|
|
19152
|
+
"directory": string$1().readonly().describe("Absolute source directory for scanned assets, or the published version's directory."),
|
|
19153
|
+
"ignoredDependencyFields": array(string$1()).readonly().optional().describe("Frontmatter fields the importer preserves without applying as dependencies."),
|
|
19154
|
+
"bindingSwitchIssue": string$1().readonly().optional().describe("The copy was created, but moving the existing role bindings failed."),
|
|
19134
19155
|
"dependencies": object({
|
|
19135
19156
|
"executables": array(object({
|
|
19136
19157
|
"name": string$1().readonly(),
|
|
@@ -19154,6 +19175,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
19154
19175
|
"reason": string$1().readonly().describe("Machine-readable reason."),
|
|
19155
19176
|
"detail": string$1().readonly().describe("Human-readable detail, already specific.")
|
|
19156
19177
|
})]);
|
|
19178
|
+
let dsh_agent_team_presets_teamSkills_library_parameter_0$schema$value;
|
|
19179
|
+
const dsh_agent_team_presets_teamSkills_library_parameter_0$schema = () => dsh_agent_team_presets_teamSkills_library_parameter_0$schema$value ??= union([
|
|
19180
|
+
_undefined(),
|
|
19181
|
+
literal(false),
|
|
19182
|
+
literal(true)
|
|
19183
|
+
]);
|
|
19157
19184
|
let dsh_agent_team_presets_teamSkills_library_result$schema$value;
|
|
19158
19185
|
const dsh_agent_team_presets_teamSkills_library_result$schema = () => dsh_agent_team_presets_teamSkills_library_result$schema$value ??= object({
|
|
19159
19186
|
"root": string$1().readonly().describe("Absolute private root, shown so the user can open it in a file manager."),
|
|
@@ -19188,10 +19215,31 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
19188
19215
|
})).readonly().describe("The captain slot plus every member slot, in Team order.")
|
|
19189
19216
|
})).readonly().describe("Every Team and its addressable roles."),
|
|
19190
19217
|
"official": array(string$1()).readonly().describe("Shipped skill ids this deployment provides."),
|
|
19218
|
+
"inboxChanges": array(object({
|
|
19219
|
+
"folder": string$1().readonly().describe("Folder name inside the scan root."),
|
|
19220
|
+
"status": union([
|
|
19221
|
+
literal("missing"),
|
|
19222
|
+
literal("imported"),
|
|
19223
|
+
literal("updated"),
|
|
19224
|
+
literal("existing"),
|
|
19225
|
+
literal("invalid")
|
|
19226
|
+
]).readonly().describe("How the source compares to the installed version."),
|
|
19227
|
+
"ignoredDependencyFields": array(string$1()).readonly().optional().describe("Frontmatter fields preserved without applying them as dependencies."),
|
|
19228
|
+
"skillId": string$1().readonly().optional().describe("Skill name read from its `SKILL.md`, when the folder was readable."),
|
|
19229
|
+
"assetId": string$1().readonly().optional().describe("Asset identity for an imported or already-present skill."),
|
|
19230
|
+
"reason": string$1().readonly().optional().describe("Machine-readable refusal reason, or `duplicate` for an existing name."),
|
|
19231
|
+
"detail": string$1().readonly().optional().describe("Path or other detail that explains the reason.")
|
|
19232
|
+
})).readonly().optional().describe("Source folders with changes or conflicts found during a read-only check."),
|
|
19191
19233
|
"issue": string$1().readonly().optional().describe("Why the store is unusable, when this deployment could not open it.")
|
|
19192
19234
|
});
|
|
19193
19235
|
let dsh_agent_team_presets_teamSkills_overrideSkill_parameter_0$schema$value;
|
|
19194
19236
|
const dsh_agent_team_presets_teamSkills_overrideSkill_parameter_0$schema = () => dsh_agent_team_presets_teamSkills_overrideSkill_parameter_0$schema$value ??= string$1();
|
|
19237
|
+
let dsh_agent_team_presets_teamSkills_overrideSkill_parameter_1$schema$value;
|
|
19238
|
+
const dsh_agent_team_presets_teamSkills_overrideSkill_parameter_1$schema = () => dsh_agent_team_presets_teamSkills_overrideSkill_parameter_1$schema$value ??= union([
|
|
19239
|
+
_undefined(),
|
|
19240
|
+
literal(false),
|
|
19241
|
+
literal(true)
|
|
19242
|
+
]);
|
|
19195
19243
|
let dsh_agent_team_presets_teamSkills_overrideSkill_result$schema$value;
|
|
19196
19244
|
const dsh_agent_team_presets_teamSkills_overrideSkill_result$schema = () => dsh_agent_team_presets_teamSkills_overrideSkill_result$schema$value ??= union([object({
|
|
19197
19245
|
"asset": object({
|
|
@@ -19221,7 +19269,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
19221
19269
|
"text": boolean$1().readonly().describe("Whether the page may show it as text.")
|
|
19222
19270
|
})).readonly().describe("Every file, path-ordered."),
|
|
19223
19271
|
"body": string$1().readonly().describe("The `SKILL.md` body, without frontmatter."),
|
|
19224
|
-
"directory": string$1().readonly().describe("Absolute directory
|
|
19272
|
+
"directory": string$1().readonly().describe("Absolute source directory for scanned assets, or the published version's directory."),
|
|
19273
|
+
"ignoredDependencyFields": array(string$1()).readonly().optional().describe("Frontmatter fields the importer preserves without applying as dependencies."),
|
|
19274
|
+
"bindingSwitchIssue": string$1().readonly().optional().describe("The copy was created, but moving the existing role bindings failed."),
|
|
19225
19275
|
"dependencies": object({
|
|
19226
19276
|
"executables": array(object({
|
|
19227
19277
|
"name": string$1().readonly(),
|
|
@@ -19300,7 +19350,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
19300
19350
|
"text": boolean$1().readonly().describe("Whether the page may show it as text.")
|
|
19301
19351
|
})).readonly().describe("Every file, path-ordered."),
|
|
19302
19352
|
"body": string$1().readonly().describe("The `SKILL.md` body, without frontmatter."),
|
|
19303
|
-
"directory": string$1().readonly().describe("Absolute directory
|
|
19353
|
+
"directory": string$1().readonly().describe("Absolute source directory for scanned assets, or the published version's directory."),
|
|
19354
|
+
"ignoredDependencyFields": array(string$1()).readonly().optional().describe("Frontmatter fields the importer preserves without applying as dependencies."),
|
|
19355
|
+
"bindingSwitchIssue": string$1().readonly().optional().describe("The copy was created, but moving the existing role bindings failed."),
|
|
19304
19356
|
"dependencies": object({
|
|
19305
19357
|
"executables": array(object({
|
|
19306
19358
|
"name": string$1().readonly(),
|
|
@@ -19360,6 +19412,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
19360
19412
|
})).readonly().describe("The captain slot plus every member slot, in Team order.")
|
|
19361
19413
|
})).readonly().describe("Every Team and its addressable roles."),
|
|
19362
19414
|
"official": array(string$1()).readonly().describe("Shipped skill ids this deployment provides."),
|
|
19415
|
+
"inboxChanges": array(object({
|
|
19416
|
+
"folder": string$1().readonly().describe("Folder name inside the scan root."),
|
|
19417
|
+
"status": union([
|
|
19418
|
+
literal("missing"),
|
|
19419
|
+
literal("imported"),
|
|
19420
|
+
literal("updated"),
|
|
19421
|
+
literal("existing"),
|
|
19422
|
+
literal("invalid")
|
|
19423
|
+
]).readonly().describe("How the source compares to the installed version."),
|
|
19424
|
+
"ignoredDependencyFields": array(string$1()).readonly().optional().describe("Frontmatter fields preserved without applying them as dependencies."),
|
|
19425
|
+
"skillId": string$1().readonly().optional().describe("Skill name read from its `SKILL.md`, when the folder was readable."),
|
|
19426
|
+
"assetId": string$1().readonly().optional().describe("Asset identity for an imported or already-present skill."),
|
|
19427
|
+
"reason": string$1().readonly().optional().describe("Machine-readable refusal reason, or `duplicate` for an existing name."),
|
|
19428
|
+
"detail": string$1().readonly().optional().describe("Path or other detail that explains the reason.")
|
|
19429
|
+
})).readonly().optional().describe("Source folders with changes or conflicts found during a read-only check."),
|
|
19363
19430
|
"issue": string$1().readonly().optional().describe("Why the store is unusable, when this deployment could not open it.")
|
|
19364
19431
|
});
|
|
19365
19432
|
let dsh_agent_team_presets_teamSkills_scanImportFolder_result$schema$value;
|
|
@@ -19372,15 +19439,20 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
19372
19439
|
"root": string$1().readonly().describe("Absolute directory that was scanned."),
|
|
19373
19440
|
"scanned": number$1().readonly().describe("Folders examined."),
|
|
19374
19441
|
"imported": number$1().readonly().describe("Folders published as new custom assets."),
|
|
19375
|
-
"
|
|
19442
|
+
"updated": number$1().readonly().describe("Installed custom skills that received a new version."),
|
|
19443
|
+
"existing": number$1().readonly().describe("Folders whose published package is identical."),
|
|
19444
|
+
"missing": number$1().readonly().describe("Known source folders no longer providing the installed skill."),
|
|
19376
19445
|
"invalid": number$1().readonly().describe("Folders refused with a reason."),
|
|
19377
19446
|
"entries": array(object({
|
|
19378
19447
|
"folder": string$1().readonly().describe("Folder name inside the scan root."),
|
|
19379
19448
|
"status": union([
|
|
19449
|
+
literal("missing"),
|
|
19380
19450
|
literal("imported"),
|
|
19451
|
+
literal("updated"),
|
|
19381
19452
|
literal("existing"),
|
|
19382
19453
|
literal("invalid")
|
|
19383
|
-
]).readonly().describe("
|
|
19454
|
+
]).readonly().describe("How the source compares to the installed version."),
|
|
19455
|
+
"ignoredDependencyFields": array(string$1()).readonly().optional().describe("Frontmatter fields preserved without applying them as dependencies."),
|
|
19384
19456
|
"skillId": string$1().readonly().optional().describe("Skill name read from its `SKILL.md`, when the folder was readable."),
|
|
19385
19457
|
"assetId": string$1().readonly().optional().describe("Asset identity for an imported or already-present skill."),
|
|
19386
19458
|
"reason": string$1().readonly().optional().describe("Machine-readable refusal reason, or `duplicate` for an existing name."),
|
|
@@ -19427,6 +19499,21 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
19427
19499
|
})).readonly().describe("The captain slot plus every member slot, in Team order.")
|
|
19428
19500
|
})).readonly().describe("Every Team and its addressable roles."),
|
|
19429
19501
|
"official": array(string$1()).readonly().describe("Shipped skill ids this deployment provides."),
|
|
19502
|
+
"inboxChanges": array(object({
|
|
19503
|
+
"folder": string$1().readonly().describe("Folder name inside the scan root."),
|
|
19504
|
+
"status": union([
|
|
19505
|
+
literal("missing"),
|
|
19506
|
+
literal("imported"),
|
|
19507
|
+
literal("updated"),
|
|
19508
|
+
literal("existing"),
|
|
19509
|
+
literal("invalid")
|
|
19510
|
+
]).readonly().describe("How the source compares to the installed version."),
|
|
19511
|
+
"ignoredDependencyFields": array(string$1()).readonly().optional().describe("Frontmatter fields preserved without applying them as dependencies."),
|
|
19512
|
+
"skillId": string$1().readonly().optional().describe("Skill name read from its `SKILL.md`, when the folder was readable."),
|
|
19513
|
+
"assetId": string$1().readonly().optional().describe("Asset identity for an imported or already-present skill."),
|
|
19514
|
+
"reason": string$1().readonly().optional().describe("Machine-readable refusal reason, or `duplicate` for an existing name."),
|
|
19515
|
+
"detail": string$1().readonly().optional().describe("Path or other detail that explains the reason.")
|
|
19516
|
+
})).readonly().optional().describe("Source folders with changes or conflicts found during a read-only check."),
|
|
19430
19517
|
"issue": string$1().readonly().optional().describe("Why the store is unusable, when this deployment could not open it.")
|
|
19431
19518
|
});
|
|
19432
19519
|
let dsh_agent_team_presets_teamSkills_updateDependencies_parameter_0$schema$value;
|
|
@@ -19471,7 +19558,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
19471
19558
|
"text": boolean$1().readonly().describe("Whether the page may show it as text.")
|
|
19472
19559
|
})).readonly().describe("Every file, path-ordered."),
|
|
19473
19560
|
"body": string$1().readonly().describe("The `SKILL.md` body, without frontmatter."),
|
|
19474
|
-
"directory": string$1().readonly().describe("Absolute directory
|
|
19561
|
+
"directory": string$1().readonly().describe("Absolute source directory for scanned assets, or the published version's directory."),
|
|
19562
|
+
"ignoredDependencyFields": array(string$1()).readonly().optional().describe("Frontmatter fields the importer preserves without applying as dependencies."),
|
|
19563
|
+
"bindingSwitchIssue": string$1().readonly().optional().describe("The copy was created, but moving the existing role bindings failed."),
|
|
19475
19564
|
"dependencies": object({
|
|
19476
19565
|
"executables": array(object({
|
|
19477
19566
|
"name": string$1().readonly(),
|
|
@@ -19501,6 +19590,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
19501
19590
|
const dsh_agent_team_presets_teamSkills_writeFile_parameter_1$schema = () => dsh_agent_team_presets_teamSkills_writeFile_parameter_1$schema$value ??= string$1();
|
|
19502
19591
|
let dsh_agent_team_presets_teamSkills_writeFile_parameter_2$schema$value;
|
|
19503
19592
|
const dsh_agent_team_presets_teamSkills_writeFile_parameter_2$schema = () => dsh_agent_team_presets_teamSkills_writeFile_parameter_2$schema$value ??= string$1();
|
|
19593
|
+
let dsh_agent_team_presets_teamSkills_writeFile_parameter_3$schema$value;
|
|
19594
|
+
const dsh_agent_team_presets_teamSkills_writeFile_parameter_3$schema = () => dsh_agent_team_presets_teamSkills_writeFile_parameter_3$schema$value ??= union([_undefined(), string$1()]);
|
|
19504
19595
|
let dsh_agent_team_presets_teamSkills_writeFile_result$schema$value;
|
|
19505
19596
|
const dsh_agent_team_presets_teamSkills_writeFile_result$schema = () => dsh_agent_team_presets_teamSkills_writeFile_result$schema$value ??= union([object({
|
|
19506
19597
|
"asset": object({
|
|
@@ -19530,7 +19621,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
19530
19621
|
"text": boolean$1().readonly().describe("Whether the page may show it as text.")
|
|
19531
19622
|
})).readonly().describe("Every file, path-ordered."),
|
|
19532
19623
|
"body": string$1().readonly().describe("The `SKILL.md` body, without frontmatter."),
|
|
19533
|
-
"directory": string$1().readonly().describe("Absolute directory
|
|
19624
|
+
"directory": string$1().readonly().describe("Absolute source directory for scanned assets, or the published version's directory."),
|
|
19625
|
+
"ignoredDependencyFields": array(string$1()).readonly().optional().describe("Frontmatter fields the importer preserves without applying as dependencies."),
|
|
19626
|
+
"bindingSwitchIssue": string$1().readonly().optional().describe("The copy was created, but moving the existing role bindings failed."),
|
|
19534
19627
|
"dependencies": object({
|
|
19535
19628
|
"executables": array(object({
|
|
19536
19629
|
"name": string$1().readonly(),
|
|
@@ -19581,8 +19674,20 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
19581
19674
|
"path": string$1().describe("POSIX-relative path inside the imported folder."),
|
|
19582
19675
|
"base64": string$1().describe("Base64 of the bytes.")
|
|
19583
19676
|
}));
|
|
19677
|
+
let dsh_agent_team_presets_teamSkills_library_parameter_0_strict$schema$value;
|
|
19678
|
+
const dsh_agent_team_presets_teamSkills_library_parameter_0_strict$schema = () => dsh_agent_team_presets_teamSkills_library_parameter_0_strict$schema$value ??= union([
|
|
19679
|
+
_undefined(),
|
|
19680
|
+
literal(false),
|
|
19681
|
+
literal(true)
|
|
19682
|
+
]);
|
|
19584
19683
|
let dsh_agent_team_presets_teamSkills_overrideSkill_parameter_0_strict$schema$value;
|
|
19585
19684
|
const dsh_agent_team_presets_teamSkills_overrideSkill_parameter_0_strict$schema = () => dsh_agent_team_presets_teamSkills_overrideSkill_parameter_0_strict$schema$value ??= string$1();
|
|
19685
|
+
let dsh_agent_team_presets_teamSkills_overrideSkill_parameter_1_strict$schema$value;
|
|
19686
|
+
const dsh_agent_team_presets_teamSkills_overrideSkill_parameter_1_strict$schema = () => dsh_agent_team_presets_teamSkills_overrideSkill_parameter_1_strict$schema$value ??= union([
|
|
19687
|
+
_undefined(),
|
|
19688
|
+
literal(false),
|
|
19689
|
+
literal(true)
|
|
19690
|
+
]);
|
|
19586
19691
|
let dsh_agent_team_presets_teamSkills_readFile_parameter_0_strict$schema$value;
|
|
19587
19692
|
const dsh_agent_team_presets_teamSkills_readFile_parameter_0_strict$schema = () => dsh_agent_team_presets_teamSkills_readFile_parameter_0_strict$schema$value ??= string$1();
|
|
19588
19693
|
let dsh_agent_team_presets_teamSkills_readFile_parameter_1_strict$schema$value;
|
|
@@ -19616,6 +19721,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
19616
19721
|
const dsh_agent_team_presets_teamSkills_writeFile_parameter_1_strict$schema = () => dsh_agent_team_presets_teamSkills_writeFile_parameter_1_strict$schema$value ??= string$1();
|
|
19617
19722
|
let dsh_agent_team_presets_teamSkills_writeFile_parameter_2_strict$schema$value;
|
|
19618
19723
|
const dsh_agent_team_presets_teamSkills_writeFile_parameter_2_strict$schema = () => dsh_agent_team_presets_teamSkills_writeFile_parameter_2_strict$schema$value ??= string$1();
|
|
19724
|
+
let dsh_agent_team_presets_teamSkills_writeFile_parameter_3_strict$schema$value;
|
|
19725
|
+
const dsh_agent_team_presets_teamSkills_writeFile_parameter_3_strict$schema = () => dsh_agent_team_presets_teamSkills_writeFile_parameter_3_strict$schema$value ??= union([_undefined(), string$1()]);
|
|
19619
19726
|
const TYPERT_REMOTE = createTypertRemoteInfo({
|
|
19620
19727
|
package: "dsh-agent-team-presets",
|
|
19621
19728
|
methods: {
|
|
@@ -20343,6 +20450,53 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20343
20450
|
"items": { "type": "string" },
|
|
20344
20451
|
"description": "Shipped skill ids this deployment provides."
|
|
20345
20452
|
},
|
|
20453
|
+
"inboxChanges": {
|
|
20454
|
+
"type": "array",
|
|
20455
|
+
"items": {
|
|
20456
|
+
"type": "object",
|
|
20457
|
+
"properties": {
|
|
20458
|
+
"folder": {
|
|
20459
|
+
"type": "string",
|
|
20460
|
+
"description": "Folder name inside the scan root."
|
|
20461
|
+
},
|
|
20462
|
+
"status": {
|
|
20463
|
+
"type": "string",
|
|
20464
|
+
"enum": [
|
|
20465
|
+
"missing",
|
|
20466
|
+
"imported",
|
|
20467
|
+
"updated",
|
|
20468
|
+
"existing",
|
|
20469
|
+
"invalid"
|
|
20470
|
+
],
|
|
20471
|
+
"description": "How the source compares to the installed version."
|
|
20472
|
+
},
|
|
20473
|
+
"ignoredDependencyFields": {
|
|
20474
|
+
"type": "array",
|
|
20475
|
+
"items": { "type": "string" },
|
|
20476
|
+
"description": "Frontmatter fields preserved without applying them as dependencies."
|
|
20477
|
+
},
|
|
20478
|
+
"skillId": {
|
|
20479
|
+
"type": "string",
|
|
20480
|
+
"description": "Skill name read from its `SKILL.md`, when the folder was readable."
|
|
20481
|
+
},
|
|
20482
|
+
"assetId": {
|
|
20483
|
+
"type": "string",
|
|
20484
|
+
"description": "Asset identity for an imported or already-present skill."
|
|
20485
|
+
},
|
|
20486
|
+
"reason": {
|
|
20487
|
+
"type": "string",
|
|
20488
|
+
"description": "Machine-readable refusal reason, or `duplicate` for an existing name."
|
|
20489
|
+
},
|
|
20490
|
+
"detail": {
|
|
20491
|
+
"type": "string",
|
|
20492
|
+
"description": "Path or other detail that explains the reason."
|
|
20493
|
+
}
|
|
20494
|
+
},
|
|
20495
|
+
"required": ["folder", "status"],
|
|
20496
|
+
"additionalProperties": true
|
|
20497
|
+
},
|
|
20498
|
+
"description": "Source folders with changes or conflicts found during a read-only check."
|
|
20499
|
+
},
|
|
20346
20500
|
"issue": {
|
|
20347
20501
|
"type": "string",
|
|
20348
20502
|
"description": "Why the store is unusable, when this deployment could not open it."
|
|
@@ -20367,7 +20521,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20367
20521
|
},
|
|
20368
20522
|
sourceLocation: {
|
|
20369
20523
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
20370
|
-
"line":
|
|
20524
|
+
"line": 506,
|
|
20371
20525
|
"column": 9
|
|
20372
20526
|
}
|
|
20373
20527
|
},
|
|
@@ -20417,7 +20571,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20417
20571
|
},
|
|
20418
20572
|
sourceLocation: {
|
|
20419
20573
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
20420
|
-
"line":
|
|
20574
|
+
"line": 247,
|
|
20421
20575
|
"column": 9
|
|
20422
20576
|
}
|
|
20423
20577
|
},
|
|
@@ -20483,7 +20637,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20483
20637
|
},
|
|
20484
20638
|
sourceLocation: {
|
|
20485
20639
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
20486
|
-
"line":
|
|
20640
|
+
"line": 477,
|
|
20487
20641
|
"column": 9
|
|
20488
20642
|
}
|
|
20489
20643
|
},
|
|
@@ -20517,7 +20671,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20517
20671
|
},
|
|
20518
20672
|
sourceLocation: {
|
|
20519
20673
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
20520
|
-
"line":
|
|
20674
|
+
"line": 171,
|
|
20521
20675
|
"column": 9
|
|
20522
20676
|
}
|
|
20523
20677
|
},
|
|
@@ -20585,7 +20739,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20585
20739
|
},
|
|
20586
20740
|
sourceLocation: {
|
|
20587
20741
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
20588
|
-
"line":
|
|
20742
|
+
"line": 268,
|
|
20589
20743
|
"column": 9
|
|
20590
20744
|
}
|
|
20591
20745
|
},
|
|
@@ -20593,7 +20747,29 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20593
20747
|
service: "teamSkills",
|
|
20594
20748
|
description: "List the library, the roster, and the shipped skill ids.",
|
|
20595
20749
|
invocation: { kind: "direct" },
|
|
20596
|
-
parameters: [
|
|
20750
|
+
parameters: [{
|
|
20751
|
+
name: "checkInbox",
|
|
20752
|
+
source: "json",
|
|
20753
|
+
acceptsUndefined: true,
|
|
20754
|
+
codec: {
|
|
20755
|
+
mode: "strict",
|
|
20756
|
+
typeSymbol: "dsh-agent-team-presets#teamSkills/library:checkInbox",
|
|
20757
|
+
create: dsh_agent_team_presets_teamSkills_library_parameter_0$schema,
|
|
20758
|
+
jsonSchema: {
|
|
20759
|
+
"type": "boolean",
|
|
20760
|
+
"enum": [false, true]
|
|
20761
|
+
}
|
|
20762
|
+
},
|
|
20763
|
+
strictCodec: {
|
|
20764
|
+
mode: "strict",
|
|
20765
|
+
typeSymbol: "dsh-agent-team-presets#teamSkills/library:checkInbox",
|
|
20766
|
+
create: dsh_agent_team_presets_teamSkills_library_parameter_0_strict$schema,
|
|
20767
|
+
jsonSchema: {
|
|
20768
|
+
"type": "boolean",
|
|
20769
|
+
"enum": [false, true]
|
|
20770
|
+
}
|
|
20771
|
+
}
|
|
20772
|
+
}],
|
|
20597
20773
|
result: {
|
|
20598
20774
|
mode: "strict",
|
|
20599
20775
|
typeSymbol: "dsh-agent-team-presets/types#TeamSkillLibraryView",
|
|
@@ -20770,6 +20946,53 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20770
20946
|
"items": { "type": "string" },
|
|
20771
20947
|
"description": "Shipped skill ids this deployment provides."
|
|
20772
20948
|
},
|
|
20949
|
+
"inboxChanges": {
|
|
20950
|
+
"type": "array",
|
|
20951
|
+
"items": {
|
|
20952
|
+
"type": "object",
|
|
20953
|
+
"properties": {
|
|
20954
|
+
"folder": {
|
|
20955
|
+
"type": "string",
|
|
20956
|
+
"description": "Folder name inside the scan root."
|
|
20957
|
+
},
|
|
20958
|
+
"status": {
|
|
20959
|
+
"type": "string",
|
|
20960
|
+
"enum": [
|
|
20961
|
+
"missing",
|
|
20962
|
+
"imported",
|
|
20963
|
+
"updated",
|
|
20964
|
+
"existing",
|
|
20965
|
+
"invalid"
|
|
20966
|
+
],
|
|
20967
|
+
"description": "How the source compares to the installed version."
|
|
20968
|
+
},
|
|
20969
|
+
"ignoredDependencyFields": {
|
|
20970
|
+
"type": "array",
|
|
20971
|
+
"items": { "type": "string" },
|
|
20972
|
+
"description": "Frontmatter fields preserved without applying them as dependencies."
|
|
20973
|
+
},
|
|
20974
|
+
"skillId": {
|
|
20975
|
+
"type": "string",
|
|
20976
|
+
"description": "Skill name read from its `SKILL.md`, when the folder was readable."
|
|
20977
|
+
},
|
|
20978
|
+
"assetId": {
|
|
20979
|
+
"type": "string",
|
|
20980
|
+
"description": "Asset identity for an imported or already-present skill."
|
|
20981
|
+
},
|
|
20982
|
+
"reason": {
|
|
20983
|
+
"type": "string",
|
|
20984
|
+
"description": "Machine-readable refusal reason, or `duplicate` for an existing name."
|
|
20985
|
+
},
|
|
20986
|
+
"detail": {
|
|
20987
|
+
"type": "string",
|
|
20988
|
+
"description": "Path or other detail that explains the reason."
|
|
20989
|
+
}
|
|
20990
|
+
},
|
|
20991
|
+
"required": ["folder", "status"],
|
|
20992
|
+
"additionalProperties": true
|
|
20993
|
+
},
|
|
20994
|
+
"description": "Source folders with changes or conflicts found during a read-only check."
|
|
20995
|
+
},
|
|
20773
20996
|
"issue": {
|
|
20774
20997
|
"type": "string",
|
|
20775
20998
|
"description": "Why the store is unusable, when this deployment could not open it."
|
|
@@ -20786,7 +21009,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20786
21009
|
},
|
|
20787
21010
|
sourceLocation: {
|
|
20788
21011
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
20789
|
-
"line":
|
|
21012
|
+
"line": 143,
|
|
20790
21013
|
"column": 9
|
|
20791
21014
|
}
|
|
20792
21015
|
},
|
|
@@ -20810,6 +21033,28 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20810
21033
|
create: dsh_agent_team_presets_teamSkills_overrideSkill_parameter_0_strict$schema,
|
|
20811
21034
|
jsonSchema: { "type": "string" }
|
|
20812
21035
|
}
|
|
21036
|
+
}, {
|
|
21037
|
+
name: "switchBindings",
|
|
21038
|
+
source: "json",
|
|
21039
|
+
acceptsUndefined: true,
|
|
21040
|
+
codec: {
|
|
21041
|
+
mode: "strict",
|
|
21042
|
+
typeSymbol: "dsh-agent-team-presets#teamSkills/overrideSkill:switchBindings",
|
|
21043
|
+
create: dsh_agent_team_presets_teamSkills_overrideSkill_parameter_1$schema,
|
|
21044
|
+
jsonSchema: {
|
|
21045
|
+
"type": "boolean",
|
|
21046
|
+
"enum": [false, true]
|
|
21047
|
+
}
|
|
21048
|
+
},
|
|
21049
|
+
strictCodec: {
|
|
21050
|
+
mode: "strict",
|
|
21051
|
+
typeSymbol: "dsh-agent-team-presets#teamSkills/overrideSkill:switchBindings",
|
|
21052
|
+
create: dsh_agent_team_presets_teamSkills_overrideSkill_parameter_1_strict$schema,
|
|
21053
|
+
jsonSchema: {
|
|
21054
|
+
"type": "boolean",
|
|
21055
|
+
"enum": [false, true]
|
|
21056
|
+
}
|
|
21057
|
+
}
|
|
20813
21058
|
}],
|
|
20814
21059
|
result: {
|
|
20815
21060
|
mode: "strict",
|
|
@@ -20820,7 +21065,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20820
21065
|
},
|
|
20821
21066
|
sourceLocation: {
|
|
20822
21067
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
20823
|
-
"line":
|
|
21068
|
+
"line": 414,
|
|
20824
21069
|
"column": 9
|
|
20825
21070
|
}
|
|
20826
21071
|
},
|
|
@@ -20884,7 +21129,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20884
21129
|
},
|
|
20885
21130
|
sourceLocation: {
|
|
20886
21131
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
20887
|
-
"line":
|
|
21132
|
+
"line": 301,
|
|
20888
21133
|
"column": 9
|
|
20889
21134
|
}
|
|
20890
21135
|
},
|
|
@@ -20973,7 +21218,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
20973
21218
|
},
|
|
20974
21219
|
sourceLocation: {
|
|
20975
21220
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
20976
|
-
"line":
|
|
21221
|
+
"line": 204,
|
|
20977
21222
|
"column": 9
|
|
20978
21223
|
}
|
|
20979
21224
|
},
|
|
@@ -21007,7 +21252,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21007
21252
|
},
|
|
21008
21253
|
sourceLocation: {
|
|
21009
21254
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
21010
|
-
"line":
|
|
21255
|
+
"line": 453,
|
|
21011
21256
|
"column": 9
|
|
21012
21257
|
}
|
|
21013
21258
|
},
|
|
@@ -21215,6 +21460,53 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21215
21460
|
"items": { "type": "string" },
|
|
21216
21461
|
"description": "Shipped skill ids this deployment provides."
|
|
21217
21462
|
},
|
|
21463
|
+
"inboxChanges": {
|
|
21464
|
+
"type": "array",
|
|
21465
|
+
"items": {
|
|
21466
|
+
"type": "object",
|
|
21467
|
+
"properties": {
|
|
21468
|
+
"folder": {
|
|
21469
|
+
"type": "string",
|
|
21470
|
+
"description": "Folder name inside the scan root."
|
|
21471
|
+
},
|
|
21472
|
+
"status": {
|
|
21473
|
+
"type": "string",
|
|
21474
|
+
"enum": [
|
|
21475
|
+
"missing",
|
|
21476
|
+
"imported",
|
|
21477
|
+
"updated",
|
|
21478
|
+
"existing",
|
|
21479
|
+
"invalid"
|
|
21480
|
+
],
|
|
21481
|
+
"description": "How the source compares to the installed version."
|
|
21482
|
+
},
|
|
21483
|
+
"ignoredDependencyFields": {
|
|
21484
|
+
"type": "array",
|
|
21485
|
+
"items": { "type": "string" },
|
|
21486
|
+
"description": "Frontmatter fields preserved without applying them as dependencies."
|
|
21487
|
+
},
|
|
21488
|
+
"skillId": {
|
|
21489
|
+
"type": "string",
|
|
21490
|
+
"description": "Skill name read from its `SKILL.md`, when the folder was readable."
|
|
21491
|
+
},
|
|
21492
|
+
"assetId": {
|
|
21493
|
+
"type": "string",
|
|
21494
|
+
"description": "Asset identity for an imported or already-present skill."
|
|
21495
|
+
},
|
|
21496
|
+
"reason": {
|
|
21497
|
+
"type": "string",
|
|
21498
|
+
"description": "Machine-readable refusal reason, or `duplicate` for an existing name."
|
|
21499
|
+
},
|
|
21500
|
+
"detail": {
|
|
21501
|
+
"type": "string",
|
|
21502
|
+
"description": "Path or other detail that explains the reason."
|
|
21503
|
+
}
|
|
21504
|
+
},
|
|
21505
|
+
"required": ["folder", "status"],
|
|
21506
|
+
"additionalProperties": true
|
|
21507
|
+
},
|
|
21508
|
+
"description": "Source folders with changes or conflicts found during a read-only check."
|
|
21509
|
+
},
|
|
21218
21510
|
"issue": {
|
|
21219
21511
|
"type": "string",
|
|
21220
21512
|
"description": "Why the store is unusable, when this deployment could not open it."
|
|
@@ -21231,20 +21523,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21231
21523
|
},
|
|
21232
21524
|
sourceLocation: {
|
|
21233
21525
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
21234
|
-
"line":
|
|
21526
|
+
"line": 542,
|
|
21235
21527
|
"column": 9
|
|
21236
21528
|
}
|
|
21237
21529
|
},
|
|
21238
21530
|
"teamSkills/scanImportFolder": {
|
|
21239
21531
|
service: "teamSkills",
|
|
21240
|
-
description: "
|
|
21532
|
+
description: "Validate sources, publishing changed packages as new versions only on this explicit request.",
|
|
21241
21533
|
invocation: { kind: "direct" },
|
|
21242
21534
|
parameters: [],
|
|
21243
21535
|
result: {
|
|
21244
21536
|
mode: "strict",
|
|
21245
21537
|
typeSymbol: "dsh-agent-team-presets#teamSkills/scanImportFolder:result",
|
|
21246
21538
|
create: dsh_agent_team_presets_teamSkills_scanImportFolder_result$schema,
|
|
21247
|
-
description: "one row per folder, or a refusal when the store is unavailable.",
|
|
21248
21539
|
jsonSchema: { "oneOf": [{
|
|
21249
21540
|
"type": "object",
|
|
21250
21541
|
"properties": {
|
|
@@ -21288,9 +21579,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21288
21579
|
"type": "number",
|
|
21289
21580
|
"description": "Folders published as new custom assets."
|
|
21290
21581
|
},
|
|
21582
|
+
"updated": {
|
|
21583
|
+
"type": "number",
|
|
21584
|
+
"description": "Installed custom skills that received a new version."
|
|
21585
|
+
},
|
|
21291
21586
|
"existing": {
|
|
21292
21587
|
"type": "number",
|
|
21293
|
-
"description": "Folders whose
|
|
21588
|
+
"description": "Folders whose published package is identical."
|
|
21589
|
+
},
|
|
21590
|
+
"missing": {
|
|
21591
|
+
"type": "number",
|
|
21592
|
+
"description": "Known source folders no longer providing the installed skill."
|
|
21294
21593
|
},
|
|
21295
21594
|
"invalid": {
|
|
21296
21595
|
"type": "number",
|
|
@@ -21308,11 +21607,18 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21308
21607
|
"status": {
|
|
21309
21608
|
"type": "string",
|
|
21310
21609
|
"enum": [
|
|
21610
|
+
"missing",
|
|
21311
21611
|
"imported",
|
|
21612
|
+
"updated",
|
|
21312
21613
|
"existing",
|
|
21313
21614
|
"invalid"
|
|
21314
21615
|
],
|
|
21315
|
-
"description": "
|
|
21616
|
+
"description": "How the source compares to the installed version."
|
|
21617
|
+
},
|
|
21618
|
+
"ignoredDependencyFields": {
|
|
21619
|
+
"type": "array",
|
|
21620
|
+
"items": { "type": "string" },
|
|
21621
|
+
"description": "Frontmatter fields preserved without applying them as dependencies."
|
|
21316
21622
|
},
|
|
21317
21623
|
"skillId": {
|
|
21318
21624
|
"type": "string",
|
|
@@ -21342,7 +21648,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21342
21648
|
"root",
|
|
21343
21649
|
"scanned",
|
|
21344
21650
|
"imported",
|
|
21651
|
+
"updated",
|
|
21345
21652
|
"existing",
|
|
21653
|
+
"missing",
|
|
21346
21654
|
"invalid",
|
|
21347
21655
|
"entries"
|
|
21348
21656
|
],
|
|
@@ -21351,7 +21659,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21351
21659
|
},
|
|
21352
21660
|
sourceLocation: {
|
|
21353
21661
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
21354
|
-
"line":
|
|
21662
|
+
"line": 374,
|
|
21355
21663
|
"column": 9
|
|
21356
21664
|
}
|
|
21357
21665
|
},
|
|
@@ -21588,6 +21896,53 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21588
21896
|
"items": { "type": "string" },
|
|
21589
21897
|
"description": "Shipped skill ids this deployment provides."
|
|
21590
21898
|
},
|
|
21899
|
+
"inboxChanges": {
|
|
21900
|
+
"type": "array",
|
|
21901
|
+
"items": {
|
|
21902
|
+
"type": "object",
|
|
21903
|
+
"properties": {
|
|
21904
|
+
"folder": {
|
|
21905
|
+
"type": "string",
|
|
21906
|
+
"description": "Folder name inside the scan root."
|
|
21907
|
+
},
|
|
21908
|
+
"status": {
|
|
21909
|
+
"type": "string",
|
|
21910
|
+
"enum": [
|
|
21911
|
+
"missing",
|
|
21912
|
+
"imported",
|
|
21913
|
+
"updated",
|
|
21914
|
+
"existing",
|
|
21915
|
+
"invalid"
|
|
21916
|
+
],
|
|
21917
|
+
"description": "How the source compares to the installed version."
|
|
21918
|
+
},
|
|
21919
|
+
"ignoredDependencyFields": {
|
|
21920
|
+
"type": "array",
|
|
21921
|
+
"items": { "type": "string" },
|
|
21922
|
+
"description": "Frontmatter fields preserved without applying them as dependencies."
|
|
21923
|
+
},
|
|
21924
|
+
"skillId": {
|
|
21925
|
+
"type": "string",
|
|
21926
|
+
"description": "Skill name read from its `SKILL.md`, when the folder was readable."
|
|
21927
|
+
},
|
|
21928
|
+
"assetId": {
|
|
21929
|
+
"type": "string",
|
|
21930
|
+
"description": "Asset identity for an imported or already-present skill."
|
|
21931
|
+
},
|
|
21932
|
+
"reason": {
|
|
21933
|
+
"type": "string",
|
|
21934
|
+
"description": "Machine-readable refusal reason, or `duplicate` for an existing name."
|
|
21935
|
+
},
|
|
21936
|
+
"detail": {
|
|
21937
|
+
"type": "string",
|
|
21938
|
+
"description": "Path or other detail that explains the reason."
|
|
21939
|
+
}
|
|
21940
|
+
},
|
|
21941
|
+
"required": ["folder", "status"],
|
|
21942
|
+
"additionalProperties": true
|
|
21943
|
+
},
|
|
21944
|
+
"description": "Source folders with changes or conflicts found during a read-only check."
|
|
21945
|
+
},
|
|
21591
21946
|
"issue": {
|
|
21592
21947
|
"type": "string",
|
|
21593
21948
|
"description": "Why the store is unusable, when this deployment could not open it."
|
|
@@ -21604,7 +21959,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21604
21959
|
},
|
|
21605
21960
|
sourceLocation: {
|
|
21606
21961
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
21607
|
-
"line":
|
|
21962
|
+
"line": 528,
|
|
21608
21963
|
"column": 9
|
|
21609
21964
|
}
|
|
21610
21965
|
},
|
|
@@ -21738,7 +22093,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21738
22093
|
},
|
|
21739
22094
|
sourceLocation: {
|
|
21740
22095
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
21741
|
-
"line":
|
|
22096
|
+
"line": 438,
|
|
21742
22097
|
"column": 9
|
|
21743
22098
|
}
|
|
21744
22099
|
},
|
|
@@ -21797,6 +22152,24 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21797
22152
|
create: dsh_agent_team_presets_teamSkills_writeFile_parameter_2_strict$schema,
|
|
21798
22153
|
jsonSchema: { "type": "string" }
|
|
21799
22154
|
}
|
|
22155
|
+
},
|
|
22156
|
+
{
|
|
22157
|
+
name: "expectedVersion",
|
|
22158
|
+
description: "the version the editor has open.",
|
|
22159
|
+
source: "json",
|
|
22160
|
+
acceptsUndefined: true,
|
|
22161
|
+
codec: {
|
|
22162
|
+
mode: "strict",
|
|
22163
|
+
typeSymbol: "dsh-agent-team-presets#teamSkills/writeFile:expectedVersion",
|
|
22164
|
+
create: dsh_agent_team_presets_teamSkills_writeFile_parameter_3$schema,
|
|
22165
|
+
jsonSchema: { "type": "string" }
|
|
22166
|
+
},
|
|
22167
|
+
strictCodec: {
|
|
22168
|
+
mode: "strict",
|
|
22169
|
+
typeSymbol: "dsh-agent-team-presets#teamSkills/writeFile:expectedVersion",
|
|
22170
|
+
create: dsh_agent_team_presets_teamSkills_writeFile_parameter_3_strict$schema,
|
|
22171
|
+
jsonSchema: { "type": "string" }
|
|
22172
|
+
}
|
|
21800
22173
|
}
|
|
21801
22174
|
],
|
|
21802
22175
|
result: {
|
|
@@ -21808,7 +22181,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21808
22181
|
},
|
|
21809
22182
|
sourceLocation: {
|
|
21810
22183
|
"file": "packages/experimental/agent-team-presets/src/team-skills/service.ts",
|
|
21811
|
-
"line":
|
|
22184
|
+
"line": 223,
|
|
21812
22185
|
"column": 9
|
|
21813
22186
|
}
|
|
21814
22187
|
}
|
|
@@ -21830,28 +22203,36 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21830
22203
|
function toolMode(agent) {
|
|
21831
22204
|
return agent.toolMode ?? (agent.tools.length === 0 ? "all" : "custom");
|
|
21832
22205
|
}
|
|
21833
|
-
/** The
|
|
22206
|
+
/** The grammar and length of a configured member's summon target. */
|
|
21834
22207
|
const MEMBER_TARGET = /^[a-z0-9]+(?:-[a-z0-9]+)*$/u;
|
|
22208
|
+
const MEMBER_TARGET_LIMIT = 64;
|
|
22209
|
+
/** Return the member's normalized name when it can be used as a target. */
|
|
22210
|
+
function preferredMemberTarget(member) {
|
|
22211
|
+
const target = member.name.trim().toLowerCase();
|
|
22212
|
+
return target !== "lead" && target.length <= MEMBER_TARGET_LIMIT && MEMBER_TARGET.test(target) ? target : void 0;
|
|
22213
|
+
}
|
|
21835
22214
|
/**
|
|
21836
|
-
*
|
|
21837
|
-
*
|
|
21838
|
-
* Teammate names are permanent, lower-kebab-case, and never reused, so a
|
|
21839
|
-
* display name that already satisfies the grammar is kept and any other name
|
|
21840
|
-
* is transliterated to `member-<index>`. The display name still reaches the
|
|
21841
|
-
* captain through the roster.
|
|
22215
|
+
* Claim a target for one member after the Team's preferred targets are reserved.
|
|
21842
22216
|
* @param member - the configured member.
|
|
21843
22217
|
* @param index - zero-based position in the Team's member list.
|
|
21844
22218
|
* @param used - targets already taken in this Team; the returned target is added.
|
|
21845
22219
|
* @returns the teammate target this member is summoned under.
|
|
21846
22220
|
*/
|
|
21847
22221
|
function memberTarget(member, index, used) {
|
|
21848
|
-
const
|
|
21849
|
-
|
|
21850
|
-
|
|
21851
|
-
|
|
21852
|
-
|
|
21853
|
-
target =
|
|
21854
|
-
|
|
22222
|
+
const preferred = preferredMemberTarget(member);
|
|
22223
|
+
let target;
|
|
22224
|
+
if (preferred === void 0) {
|
|
22225
|
+
let number = index + 1;
|
|
22226
|
+
while (used.has(`member-${number}`)) number += 1;
|
|
22227
|
+
target = `member-${number}`;
|
|
22228
|
+
} else {
|
|
22229
|
+
target = preferred;
|
|
22230
|
+
let suffix = 2;
|
|
22231
|
+
while (used.has(target)) {
|
|
22232
|
+
const tail = `-${suffix}`;
|
|
22233
|
+
target = `${preferred.slice(0, MEMBER_TARGET_LIMIT - tail.length).replace(/-+$/u, "")}${tail}`;
|
|
22234
|
+
suffix += 1;
|
|
22235
|
+
}
|
|
21855
22236
|
}
|
|
21856
22237
|
used.add(target);
|
|
21857
22238
|
return target;
|
|
@@ -21863,9 +22244,22 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21863
22244
|
*/
|
|
21864
22245
|
function memberTargets(team) {
|
|
21865
22246
|
const used = /* @__PURE__ */ new Set();
|
|
22247
|
+
const preferred = team.members.map(preferredMemberTarget);
|
|
22248
|
+
const targets = preferred.map((target) => {
|
|
22249
|
+
if (target === void 0 || used.has(target)) return void 0;
|
|
22250
|
+
used.add(target);
|
|
22251
|
+
return target;
|
|
22252
|
+
});
|
|
22253
|
+
for (const [index, target] of preferred.entries()) {
|
|
22254
|
+
if (target !== void 0) continue;
|
|
22255
|
+
const fallback = `member-${index + 1}`;
|
|
22256
|
+
if (used.has(fallback)) continue;
|
|
22257
|
+
used.add(fallback);
|
|
22258
|
+
targets[index] = fallback;
|
|
22259
|
+
}
|
|
21866
22260
|
return team.members.map((member, index) => ({
|
|
21867
22261
|
member,
|
|
21868
|
-
target: memberTarget(member, index, used)
|
|
22262
|
+
target: targets[index] ?? memberTarget(member, index, used)
|
|
21869
22263
|
}));
|
|
21870
22264
|
}
|
|
21871
22265
|
/**
|
|
@@ -21962,27 +22356,142 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
21962
22356
|
* The shipped delivery skills, assigned by default only to the
|
|
21963
22357
|
* `repository-specialist` role of the Teams that own repository delivery work.
|
|
21964
22358
|
*
|
|
21965
|
-
* A user may add or remove assignments locally; those local changes are not
|
|
21966
|
-
* part of the preset document. This declaration is.
|
|
22359
|
+
* A user may add or remove assignments locally; those local changes are not
|
|
22360
|
+
* part of the preset document. This declaration is.
|
|
22361
|
+
*/
|
|
22362
|
+
const OFFICIAL_REPOSITORY_SKILLS = [{
|
|
22363
|
+
skillId: "github-repository-presentation",
|
|
22364
|
+
roleName: "repository-specialist"
|
|
22365
|
+
}, {
|
|
22366
|
+
skillId: "git-release-hygiene",
|
|
22367
|
+
roleName: "repository-specialist"
|
|
22368
|
+
}];
|
|
22369
|
+
/**
|
|
22370
|
+
* The leader workflow skills, assigned by default to the `team-lead` captain of
|
|
22371
|
+
* every software engineering Team: dispatching and reporting, the bounded
|
|
22372
|
+
* medium-task board, the long-running delivery plan, and the subagent
|
|
22373
|
+
* orchestration rules a captain needs before it may explore in parallel.
|
|
22374
|
+
*/
|
|
22375
|
+
const OFFICIAL_LEADER_SKILLS = [
|
|
22376
|
+
{
|
|
22377
|
+
skillId: "agent-leader-communication",
|
|
22378
|
+
roleName: "team-lead"
|
|
22379
|
+
},
|
|
22380
|
+
{
|
|
22381
|
+
skillId: "leader-medium-task-workflow",
|
|
22382
|
+
roleName: "team-lead"
|
|
22383
|
+
},
|
|
22384
|
+
{
|
|
22385
|
+
skillId: "leader-long-task-orchestration",
|
|
22386
|
+
roleName: "team-lead"
|
|
22387
|
+
},
|
|
22388
|
+
{
|
|
22389
|
+
skillId: "agent-subagent-orchestration",
|
|
22390
|
+
roleName: "team-lead"
|
|
22391
|
+
}
|
|
22392
|
+
];
|
|
22393
|
+
/**
|
|
22394
|
+
* The advisory workflow skill, assigned by default to the `fullstack-advisor`
|
|
22395
|
+
* role. The advisor stays single-threaded, so it never receives the subagent
|
|
22396
|
+
* orchestration skill.
|
|
22397
|
+
*/
|
|
22398
|
+
const OFFICIAL_ADVISOR_SKILLS = [{
|
|
22399
|
+
skillId: "fullstack-advisor",
|
|
22400
|
+
roleName: "fullstack-advisor"
|
|
22401
|
+
}];
|
|
22402
|
+
/**
|
|
22403
|
+
* The delivery skills, assigned by default to the `executor` role of software
|
|
22404
|
+
* engineering Teams: the bounded implementation workflow, the parallel
|
|
22405
|
+
* work-package orchestration rules, and the two repository delivery skills.
|
|
22406
|
+
*/
|
|
22407
|
+
const OFFICIAL_DEVELOPMENT_EXECUTOR_SKILLS = [
|
|
22408
|
+
{
|
|
22409
|
+
skillId: "executor-short-task-workflow",
|
|
22410
|
+
roleName: "executor"
|
|
22411
|
+
},
|
|
22412
|
+
{
|
|
22413
|
+
skillId: "agent-subagent-orchestration",
|
|
22414
|
+
roleName: "executor"
|
|
22415
|
+
},
|
|
22416
|
+
{
|
|
22417
|
+
skillId: "git-release-hygiene",
|
|
22418
|
+
roleName: "executor"
|
|
22419
|
+
},
|
|
22420
|
+
{
|
|
22421
|
+
skillId: "github-repository-presentation",
|
|
22422
|
+
roleName: "executor"
|
|
22423
|
+
}
|
|
22424
|
+
];
|
|
22425
|
+
/**
|
|
22426
|
+
* The default assignments of a software engineering Team that carries an
|
|
22427
|
+
* advisory role: leader, advisor, then executor. `agent-subagent-orchestration`
|
|
22428
|
+
* is deliberately bound to two roles and to no third one.
|
|
22429
|
+
*/
|
|
22430
|
+
const OFFICIAL_DEVELOPMENT_SKILLS = [
|
|
22431
|
+
...OFFICIAL_LEADER_SKILLS,
|
|
22432
|
+
...OFFICIAL_ADVISOR_SKILLS,
|
|
22433
|
+
...OFFICIAL_DEVELOPMENT_EXECUTOR_SKILLS
|
|
22434
|
+
];
|
|
22435
|
+
/**
|
|
22436
|
+
* The professional-role workflows, one main skill per specialist role: the
|
|
22437
|
+
* UI frontend engineer, the backend architect, and the independent reviewer.
|
|
22438
|
+
*
|
|
22439
|
+
* Each is a progressive-loading entry point — the detailed methods live in its
|
|
22440
|
+
* own `references/` folder and are read on demand, never registered as skills
|
|
22441
|
+
* of their own. The reviewer keeps the subagent orchestration rules because a
|
|
22442
|
+
* large, high-risk review may fan out; the two advisory-side roles never
|
|
22443
|
+
* dispatch.
|
|
22444
|
+
*/
|
|
22445
|
+
const OFFICIAL_PROFESSIONAL_SKILLS = [
|
|
22446
|
+
{
|
|
22447
|
+
skillId: "frontend-engineering-workflow",
|
|
22448
|
+
roleName: "ui-designer"
|
|
22449
|
+
},
|
|
22450
|
+
{
|
|
22451
|
+
skillId: "backend-architecture-workflow",
|
|
22452
|
+
roleName: "backend-architect"
|
|
22453
|
+
},
|
|
22454
|
+
{
|
|
22455
|
+
skillId: "independent-code-review-workflow",
|
|
22456
|
+
roleName: "reviewer"
|
|
22457
|
+
},
|
|
22458
|
+
{
|
|
22459
|
+
skillId: "agent-subagent-orchestration",
|
|
22460
|
+
roleName: "reviewer"
|
|
22461
|
+
}
|
|
22462
|
+
];
|
|
22463
|
+
/**
|
|
22464
|
+
* The reviewer's bindings alone.
|
|
22465
|
+
*
|
|
22466
|
+
* The 标准研发团队 has no specialist role, so it declares the leader, advisor,
|
|
22467
|
+
* executor, and reviewer defaults and nothing that names a role it does not
|
|
22468
|
+
* carry — a declaration with no matching role would never resolve, and the
|
|
22469
|
+
* catalog is what the Host reconciles against.
|
|
21967
22470
|
*/
|
|
21968
|
-
const
|
|
21969
|
-
|
|
21970
|
-
|
|
21971
|
-
|
|
21972
|
-
|
|
21973
|
-
|
|
21974
|
-
|
|
22471
|
+
const OFFICIAL_STANDARD_SKILLS = [
|
|
22472
|
+
...OFFICIAL_LEADER_SKILLS,
|
|
22473
|
+
...OFFICIAL_ADVISOR_SKILLS,
|
|
22474
|
+
{
|
|
22475
|
+
skillId: "independent-code-review-workflow",
|
|
22476
|
+
roleName: "reviewer"
|
|
22477
|
+
},
|
|
22478
|
+
{
|
|
22479
|
+
skillId: "agent-subagent-orchestration",
|
|
22480
|
+
roleName: "reviewer"
|
|
22481
|
+
},
|
|
22482
|
+
...OFFICIAL_DEVELOPMENT_EXECUTOR_SKILLS
|
|
22483
|
+
];
|
|
21975
22484
|
/**
|
|
21976
|
-
* The
|
|
21977
|
-
*
|
|
22485
|
+
* The default assignments of the 全栈软件研发团队, whose advisor work is split
|
|
22486
|
+
* into two specialist roles: leader, the frontend and backend workflows, the
|
|
22487
|
+
* reviewer pair, and the executor's own delivery skills. There is no single
|
|
22488
|
+
* `fullstack-advisor` binding, because that Team does not carry that role.
|
|
21978
22489
|
*/
|
|
21979
|
-
const
|
|
21980
|
-
|
|
21981
|
-
|
|
21982
|
-
|
|
21983
|
-
|
|
21984
|
-
roleName: "executor"
|
|
21985
|
-
}];
|
|
22490
|
+
const OFFICIAL_SPECIALIST_SKILLS = [
|
|
22491
|
+
...OFFICIAL_LEADER_SKILLS,
|
|
22492
|
+
...OFFICIAL_PROFESSIONAL_SKILLS,
|
|
22493
|
+
...OFFICIAL_DEVELOPMENT_EXECUTOR_SKILLS
|
|
22494
|
+
];
|
|
21986
22495
|
/**
|
|
21987
22496
|
* The method skills assigned by default to the 需求探索 team: grilling to the
|
|
21988
22497
|
* captain, and research to the two scouting roles that gather evidence for it.
|
|
@@ -22024,28 +22533,28 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22024
22533
|
"version": 1,
|
|
22025
22534
|
"team": {
|
|
22026
22535
|
"name": "轻量研发团队",
|
|
22027
|
-
"description": "
|
|
22536
|
+
"description": "适合中小型功能迭代与多阶段开发。队长负责需求对齐、任务分级、并行探查与验收;顾问按需提供技术方案和验收契约;执行者负责并行实现、集成与验证。",
|
|
22028
22537
|
"captain": {
|
|
22029
22538
|
"name": "team-lead",
|
|
22030
|
-
"description": "
|
|
22031
|
-
"systemPrompt": "
|
|
22539
|
+
"description": "负责需求对齐、任务分级、团队调度、风险控制与最终验收。",
|
|
22540
|
+
"systemPrompt": "你是团队队长,负责需求对齐、任务分级、成员调度、结果整合与最终验收;仅在用户明确要求团队协作时召集成员。\n\n1. 确认目标、范围、验收、项目规则与权限。产品功能、流程、界面及重大范围由用户裁决;基线内技术方案由团队决定。\n2. 按规模路由:短程直接派发;中程用 `leader-medium-task-workflow`;长程用 `leader-long-task-orchestration`。通信使用 `agent-leader-communication`。\n3. 存在两个或以上独立工程探查方向时,必须用 `agent-subagent-orchestration` 并行探查,不得仅因即时委派成本而默认串行。\n4. 派发时明确任务范围、发现责任和验收;只传递必要事实、路径和符号,避免重复背景。多个独立编码工作包拆分后交执行者按其工作流处理。\n5. 父代理负责整合与最终验收;仅依据可复核证据报告完成,并列明未验证项、阻塞和风险。",
|
|
22032
22541
|
"color": "#4c8dff"
|
|
22033
22542
|
},
|
|
22034
22543
|
"members": [{
|
|
22035
22544
|
"name": "fullstack-advisor",
|
|
22036
|
-
"description": "
|
|
22037
|
-
"systemPrompt": "
|
|
22545
|
+
"description": "按需提供跨层技术决策、方案权衡、风险分析与可执行验收契约;不承担编码。",
|
|
22546
|
+
"systemPrompt": "你是全栈技术顾问,不负责编码、项目调度或产品裁决,保持单线程,不创建孙代理。使用 fullstack-advisor Skill 执行咨询工作流。\n1. 接收队长的决策问题、约束和事实来源;只调查影响判断的必要范围,复用已有调查。\n2. 输出首选方案、关键理由、主要权衡与风险、必要证据位置及可验证验收条件;区分事实、推断和假设。\n3. 功能、业务规则、用户流程和界面歧义交队长向用户确认;技术细节在已批准边界内自主分析。重大范围、兼容、预算或安全影响须标记升级。\n4. 默认只返回决策摘要,详细论证按需展开。不得修改生产代码、测试或脚本;不得把静态分析描述为运行验证。",
|
|
22038
22547
|
"color": "#e0a43c"
|
|
22039
22548
|
}, {
|
|
22040
22549
|
"name": "executor",
|
|
22041
|
-
"description": "
|
|
22042
|
-
"systemPrompt": "
|
|
22550
|
+
"description": "负责获派范围内的编码、调试、测试、修复与验证交接。",
|
|
22551
|
+
"systemPrompt": "你是研发执行者,负责获派范围内的实现、集成与验证。使用 executor-short-task-workflow 执行任务。\n1. 核对项目规则、任务范围、验收和接口契约;功能或界面歧义交队长。\n2. 存在两个或以上实质独立、可分别验收的编码工作包时,必须调用 agent-subagent-orchestration 并行执行,不得仅因即时委派开销而默认串行。先明确接口、文件所有权和局部验收。\n3. 按最小可验证切片实施,沿用项目技术栈,不改无关文件、不覆盖他人产物、不擅自扩大范围。孙代理不得继续派生;你负责检查 diff、集成、冲突处理和最终回归。\n4. 单一局部任务、强依赖或共享文件冲突时不强行并行;宿主能力/名额不足时说明原因并调整。运行与风险匹配的测试、lint、构建或真实链路,未运行不得报通过。\n5. 按 STATUS、TASK_ID、CHANGES、TESTS、BLOCKERS 汇报;证据提供路径和命令,长日志只给位置。Git/Release/仓库文档任务按需使用对应 Skill;push、发布和改写历史需单独授权。",
|
|
22043
22552
|
"color": "#4c8dff"
|
|
22044
22553
|
}]
|
|
22045
22554
|
}
|
|
22046
22555
|
},
|
|
22047
22556
|
metadata: {
|
|
22048
|
-
"summary": "
|
|
22557
|
+
"summary": "三角色协作的小型研发团队,支持按需并行探查与编码。",
|
|
22049
22558
|
"tags": [
|
|
22050
22559
|
"软件研发",
|
|
22051
22560
|
"小团队",
|
|
@@ -22057,44 +22566,90 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22057
22566
|
"小范围重构"
|
|
22058
22567
|
],
|
|
22059
22568
|
"quickPrompts": ["为这个模块增加参数校验并补充测试", "修复这个已定位的缺陷并验证回归"],
|
|
22060
|
-
"notes": "
|
|
22569
|
+
"notes": "官方内置 Skill 共 9 项:队长 4 项、顾问 1 项、执行者 4 项。agent-subagent-orchestration 仅绑定队长与执行者;顾问保持单线程。grilling、research 不属于本团队绑定。"
|
|
22061
22570
|
},
|
|
22062
|
-
officialSkillBindings:
|
|
22571
|
+
officialSkillBindings: OFFICIAL_DEVELOPMENT_SKILLS
|
|
22063
22572
|
},
|
|
22064
22573
|
{
|
|
22065
22574
|
id: "builtin-standard",
|
|
22066
22575
|
series: "classic-development",
|
|
22067
22576
|
document: {
|
|
22068
22577
|
"format": "dsh-agent-team-preset",
|
|
22069
|
-
"version":
|
|
22578
|
+
"version": 2,
|
|
22070
22579
|
"team": {
|
|
22071
22580
|
"name": "标准研发团队",
|
|
22072
|
-
"description": "
|
|
22581
|
+
"description": "适合中型功能、重要重构与持续项目迭代。队长统筹;全栈顾问按需提供跨层技术决策与可执行验收契约;执行者持续研发;代码审查员对代码变更独立验收。",
|
|
22073
22582
|
"captain": {
|
|
22074
22583
|
"name": "team-lead",
|
|
22075
|
-
"description": "
|
|
22076
|
-
"
|
|
22077
|
-
"
|
|
22584
|
+
"description": "负责需求对齐、任务分级、团队调度、风险控制与最终验收。",
|
|
22585
|
+
"color": "#4c8dff",
|
|
22586
|
+
"systemPrompt": "你是团队队长,负责需求对齐、任务分级、成员调度、结果整合与最终验收;仅在用户明确要求团队协作时召集成员。\n\n1. 确认目标、范围、验收、项目规则与权限。产品功能、流程、界面及重大范围由用户裁决;基线内技术方案由团队决定。\n2. 按规模路由:短程直接派发;中程用 `leader-medium-task-workflow`;长程用 `leader-long-task-orchestration`。通信使用 `agent-leader-communication`。reviewer 对有代码变更的交付开展独立审查:高风险切片提前介入,修复后只复审改动差异与相关回归。\n3. 存在两个或以上独立工程探查方向时,必须用 `agent-subagent-orchestration` 并行探查,不得仅因即时委派成本而默认串行。\n4. 派发时明确任务范围、发现责任和验收;只传递必要事实、路径和符号,避免重复背景。多个独立编码工作包拆分后交执行者按其工作流处理。\n5. 父代理负责整合与最终验收;仅依据可复核证据报告完成,并列明未验证项、阻塞和风险。"
|
|
22078
22587
|
},
|
|
22079
22588
|
"members": [
|
|
22080
22589
|
{
|
|
22081
22590
|
"name": "fullstack-advisor",
|
|
22082
|
-
"description": "
|
|
22083
|
-
"systemPrompt": "
|
|
22591
|
+
"description": "全栈顾问:按需提供跨层技术决策、方案权衡、风险分析与可执行验收契约;不承担编码。",
|
|
22592
|
+
"systemPrompt": "你是团队全栈顾问,不负责常规编码、项目调度或产品裁决,保持单线程,不创建孙代理。使用 `fullstack-advisor` Skill 执行咨询工作流。\n1. 接收队长的决策问题、约束和事实来源;只调查影响判断的必要范围,复用已有调查。\n2. 输出首选方案、关键理由、主要权衡与风险、必要证据位置及可验证验收条件;区分事实、推断和假设。\n3. 功能、业务规则、用户流程和界面歧义交队长向用户确认;技术细节在已批准边界内自主分析。重大范围、兼容、预算或安全影响须标记升级。\n4. 默认只返回决策摘要,详细论证按需展开。不得修改生产代码、测试或脚本;不得把静态分析描述为运行验证。",
|
|
22084
22593
|
"color": "#e0a43c"
|
|
22085
22594
|
},
|
|
22086
22595
|
{
|
|
22087
22596
|
"name": "reviewer",
|
|
22088
|
-
"description": "
|
|
22089
|
-
"systemPrompt": "
|
|
22597
|
+
"description": "代码审查员:独立审查所有成员的实际代码变更,验证需求符合性、工程规范、测试有效性及安全/并发/兼容性风险。",
|
|
22598
|
+
"systemPrompt": "你是团队独立代码审查员,审查队长、UI 前端工程师与后端架构师的实际代码变更;保持只读,不修改被审查实现。使用 `independent-code-review-workflow` 作为审查入口,按风险按需加载参考资料。以项目规范和需求为依据,提交可复核的问题、证据及风险;不得将未经验证的判断写成缺陷,必要证据不足时明确说明。\n1. 围绕实际变更、关键调用链与约定的验收契约审查功能、安全权限、并发、兼容迁移和重要界面状态;不无目的扫描全仓。\n2. 确认测试到达目标路径、关键断言能捕获缺陷;mock、全绿和静态检查均不自动等于真实验证。独立复跑前确认权限与隔离范围,不污染共享文件。\n3. 将发现区分为已证实缺陷、待验证风险与建议;按 P0/P1/P2/P3 报告位置、触发条件、影响、证据和最小修复建议。复审聚焦修复差异与相关回归。\n4. 视觉判断需亲自读取实际截图;设计争议交队长协调。结论为通过、需修改或证据不足;必要项未验证不得放行,风险接受交队长裁决。\n5. 沿用既有团队通信规范提交审查结论:先给结论,再列可复核的证据位置、未验证项与待决风险。",
|
|
22090
22599
|
"color": "#8d6bff"
|
|
22091
22600
|
},
|
|
22092
22601
|
{
|
|
22093
22602
|
"name": "executor",
|
|
22094
|
-
"description": "
|
|
22095
|
-
"systemPrompt": "
|
|
22603
|
+
"description": "负责获派范围内的编码、调试、测试、修复与验证交接。",
|
|
22604
|
+
"systemPrompt": "你是研发执行者,负责获派范围内的实现、集成与验证。使用 executor-short-task-workflow 执行任务。\n1. 核对项目规则、任务范围、验收和接口契约;功能或界面歧义交队长。\n2. 存在两个或以上实质独立、可分别验收的编码工作包时,必须调用 agent-subagent-orchestration 并行执行,不得仅因即时委派开销而默认串行。先明确接口、文件所有权和局部验收。\n3. 按最小可验证切片实施,沿用项目技术栈,不改无关文件、不覆盖他人产物、不擅自扩大范围。孙代理不得继续派生;你负责检查 diff、集成、冲突处理和最终回归。\n4. 单一局部任务、强依赖或共享文件冲突时不强行并行;宿主能力/名额不足时说明原因并调整。运行与风险匹配的测试、lint、构建或真实链路,未运行不得报通过。\n5. 按 STATUS、TASK_ID、CHANGES、TESTS、BLOCKERS 汇报;证据提供路径和命令,长日志只给位置。Git/Release/仓库文档任务按需使用对应 Skill;push、发布和改写历史需单独授权。",
|
|
22096
22605
|
"color": "#4c8dff"
|
|
22097
22606
|
}
|
|
22607
|
+
],
|
|
22608
|
+
"officialSkills": [
|
|
22609
|
+
{
|
|
22610
|
+
"skillId": "agent-leader-communication",
|
|
22611
|
+
"roleName": "team-lead"
|
|
22612
|
+
},
|
|
22613
|
+
{
|
|
22614
|
+
"skillId": "leader-medium-task-workflow",
|
|
22615
|
+
"roleName": "team-lead"
|
|
22616
|
+
},
|
|
22617
|
+
{
|
|
22618
|
+
"skillId": "leader-long-task-orchestration",
|
|
22619
|
+
"roleName": "team-lead"
|
|
22620
|
+
},
|
|
22621
|
+
{
|
|
22622
|
+
"skillId": "agent-subagent-orchestration",
|
|
22623
|
+
"roleName": "team-lead"
|
|
22624
|
+
},
|
|
22625
|
+
{
|
|
22626
|
+
"skillId": "fullstack-advisor",
|
|
22627
|
+
"roleName": "fullstack-advisor"
|
|
22628
|
+
},
|
|
22629
|
+
{
|
|
22630
|
+
"skillId": "independent-code-review-workflow",
|
|
22631
|
+
"roleName": "reviewer"
|
|
22632
|
+
},
|
|
22633
|
+
{
|
|
22634
|
+
"skillId": "agent-subagent-orchestration",
|
|
22635
|
+
"roleName": "reviewer"
|
|
22636
|
+
},
|
|
22637
|
+
{
|
|
22638
|
+
"skillId": "executor-short-task-workflow",
|
|
22639
|
+
"roleName": "executor"
|
|
22640
|
+
},
|
|
22641
|
+
{
|
|
22642
|
+
"skillId": "agent-subagent-orchestration",
|
|
22643
|
+
"roleName": "executor"
|
|
22644
|
+
},
|
|
22645
|
+
{
|
|
22646
|
+
"skillId": "git-release-hygiene",
|
|
22647
|
+
"roleName": "executor"
|
|
22648
|
+
},
|
|
22649
|
+
{
|
|
22650
|
+
"skillId": "github-repository-presentation",
|
|
22651
|
+
"roleName": "executor"
|
|
22652
|
+
}
|
|
22098
22653
|
]
|
|
22099
22654
|
}
|
|
22100
22655
|
},
|
|
@@ -22111,50 +22666,100 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22111
22666
|
"持续项目迭代"
|
|
22112
22667
|
],
|
|
22113
22668
|
"quickPrompts": ["实现这个中型功能并完成独立审查", "重构这个模块并保证测试全部通过"],
|
|
22114
|
-
"notes": "
|
|
22669
|
+
"notes": "四个成员(含队长):全栈顾问提供跨层技术决策与验收契约,执行者承担常规实施,代码审查员独立验收。"
|
|
22115
22670
|
},
|
|
22116
|
-
officialSkillBindings:
|
|
22671
|
+
officialSkillBindings: OFFICIAL_STANDARD_SKILLS
|
|
22117
22672
|
},
|
|
22118
22673
|
{
|
|
22119
22674
|
id: "builtin-fullstack",
|
|
22120
22675
|
series: "classic-development",
|
|
22121
22676
|
document: {
|
|
22122
22677
|
"format": "dsh-agent-team-preset",
|
|
22123
|
-
"version":
|
|
22678
|
+
"version": 2,
|
|
22124
22679
|
"team": {
|
|
22125
22680
|
"name": "全栈软件研发团队",
|
|
22126
|
-
"description": "
|
|
22681
|
+
"description": "面向复杂 Web、桌面与 Android 工程。队长调度并验收;UI 前端工程师与后端架构师分别承担前端与后端专业工作;执行者负责常规开发测试;代码审查员独立验收;按风险召集成员并按切片交接。",
|
|
22127
22682
|
"captain": {
|
|
22128
22683
|
"name": "team-lead",
|
|
22129
|
-
"description": "
|
|
22130
|
-
"
|
|
22131
|
-
"
|
|
22684
|
+
"description": "负责需求对齐、任务分级、团队调度、风险控制与最终验收。",
|
|
22685
|
+
"color": "#4c8dff",
|
|
22686
|
+
"systemPrompt": "你是团队队长,负责需求对齐、任务分级、成员调度、结果整合与最终验收;仅在用户明确要求团队协作时召集成员。\n\n1. 确认目标、范围、验收、项目规则与权限。产品功能、流程、界面及重大范围由用户裁决;基线内技术方案由团队决定。\n2. 按规模路由:短程直接派发;中程用 `leader-medium-task-workflow`;长程用 `leader-long-task-orchestration`。通信使用 `agent-leader-communication`。executor 持续实施、调试与测试;接口、安全或系统设计风险咨询 backend-architect;新交互或视觉争议咨询 ui-designer;reviewer 负责高风险阶段与交付前独立审查,顾问按需参与,不默认全员并行。\n3. 存在两个或以上独立工程探查方向时,必须用 `agent-subagent-orchestration` 并行探查,不得仅因即时委派成本而默认串行。\n4. 派发时明确任务范围、发现责任和验收;只传递必要事实、路径和符号,避免重复背景。多个独立编码工作包拆分后交执行者按其工作流处理。\n5. 父代理负责整合与最终验收;仅依据可复核证据报告完成,并列明未验证项、阻塞和风险。"
|
|
22132
22687
|
},
|
|
22133
22688
|
"members": [
|
|
22134
22689
|
{
|
|
22135
22690
|
"name": "backend-architect",
|
|
22136
|
-
"description": "
|
|
22137
|
-
"systemPrompt": "
|
|
22138
|
-
"color": "#
|
|
22691
|
+
"description": "后端架构师:负责后端与系统架构、技术契约、复杂后端 Bug 根因分析与修复,以及高风险技术攻坚。",
|
|
22692
|
+
"systemPrompt": "你是团队后端架构师,负责系统架构、技术契约及复杂后端问题攻坚;可在获派范围内直接修复复杂 Bug 和架构性缺陷。\n常规 API、CRUD、一般业务逻辑和局部易定位 Bug 由队长或其他获派成员承担。使用 `backend-architecture-workflow` 作为专业工作入口,按任务需要加载参考资料。\n\n与 UI 前端工程师对齐接口契约,并明确文件所有权。未经授权不部署、发布、修改生产数据或执行破坏性操作。沿用既有团队通信规范交付决策、证据和验证结果。",
|
|
22693
|
+
"color": "#2fa5b6"
|
|
22139
22694
|
},
|
|
22140
22695
|
{
|
|
22141
22696
|
"name": "ui-designer",
|
|
22142
|
-
"description": "
|
|
22143
|
-
"systemPrompt": "
|
|
22697
|
+
"description": "UI 前端工程师:负责视觉方向、设计系统、前端组件与交互实现、真实页面视觉 QA 和前端缺陷修复。",
|
|
22698
|
+
"systemPrompt": "你是团队 UI 前端工程师,负责视觉方向、设计系统、前端组件与交互实现、真实页面视觉 QA 和前端缺陷修复,可直接修改获派范围内的前端代码和测试。\n常规前端实施按复杂度分配,队长也可自行承担。你不修改后端、数据库或服务端契约;接口语义不清时咨询 backend-architect。\n\n使用 `frontend-engineering-workflow` 作为专业工作入口,按任务需要加载参考资料。与队长或其他写入者协作前明确文件所有权,沿用既有团队通信规范交接结果和验证证据。",
|
|
22144
22699
|
"color": "#2fbf71"
|
|
22145
22700
|
},
|
|
22146
22701
|
{
|
|
22147
22702
|
"name": "reviewer",
|
|
22148
|
-
"description": "
|
|
22149
|
-
"systemPrompt": "
|
|
22703
|
+
"description": "代码审查员:独立审查所有成员的实际代码变更,验证需求符合性、工程规范、测试有效性及安全/并发/兼容性风险。",
|
|
22704
|
+
"systemPrompt": "你是团队独立代码审查员,审查队长、UI 前端工程师与后端架构师的实际代码变更;保持只读,不修改被审查实现。使用 `independent-code-review-workflow` 作为审查入口,按风险按需加载参考资料。以项目规范和需求为依据,提交可复核的问题、证据及风险;不得将未经验证的判断写成缺陷,必要证据不足时明确说明。\n1. 围绕实际变更、关键调用链与约定的验收契约审查功能、安全权限、并发、兼容迁移和重要界面状态;不无目的扫描全仓。\n2. 确认测试到达目标路径、关键断言能捕获缺陷;mock、全绿和静态检查均不自动等于真实验证。独立复跑前确认权限与隔离范围,不污染共享文件。\n3. 将发现区分为已证实缺陷、待验证风险与建议;按 P0/P1/P2/P3 报告位置、触发条件、影响、证据和最小修复建议。复审聚焦修复差异与相关回归。\n4. 视觉判断需亲自读取实际截图;设计争议交队长协调。结论为通过、需修改或证据不足;必要项未验证不得放行,风险接受交队长裁决。\n5. 沿用既有团队通信规范提交审查结论:先给结论,再列可复核的证据位置、未验证项与待决风险。",
|
|
22150
22705
|
"color": "#8d6bff"
|
|
22151
22706
|
},
|
|
22152
22707
|
{
|
|
22153
22708
|
"name": "executor",
|
|
22154
|
-
"description": "
|
|
22155
|
-
"systemPrompt": "
|
|
22709
|
+
"description": "负责获派范围内的编码、调试、测试、修复与验证交接。",
|
|
22710
|
+
"systemPrompt": "你是研发执行者,负责获派范围内的实现、集成与验证。使用 executor-short-task-workflow 执行任务。\n1. 核对项目规则、任务范围、验收和接口契约;功能或界面歧义交队长。\n2. 存在两个或以上实质独立、可分别验收的编码工作包时,必须调用 agent-subagent-orchestration 并行执行,不得仅因即时委派开销而默认串行。先明确接口、文件所有权和局部验收。\n3. 按最小可验证切片实施,沿用项目技术栈,不改无关文件、不覆盖他人产物、不擅自扩大范围。孙代理不得继续派生;你负责检查 diff、集成、冲突处理和最终回归。\n4. 单一局部任务、强依赖或共享文件冲突时不强行并行;宿主能力/名额不足时说明原因并调整。运行与风险匹配的测试、lint、构建或真实链路,未运行不得报通过。\n5. 按 STATUS、TASK_ID、CHANGES、TESTS、BLOCKERS 汇报;证据提供路径和命令,长日志只给位置。Git/Release/仓库文档任务按需使用对应 Skill;push、发布和改写历史需单独授权。",
|
|
22156
22711
|
"color": "#4c8dff"
|
|
22157
22712
|
}
|
|
22713
|
+
],
|
|
22714
|
+
"officialSkills": [
|
|
22715
|
+
{
|
|
22716
|
+
"skillId": "agent-leader-communication",
|
|
22717
|
+
"roleName": "team-lead"
|
|
22718
|
+
},
|
|
22719
|
+
{
|
|
22720
|
+
"skillId": "leader-medium-task-workflow",
|
|
22721
|
+
"roleName": "team-lead"
|
|
22722
|
+
},
|
|
22723
|
+
{
|
|
22724
|
+
"skillId": "leader-long-task-orchestration",
|
|
22725
|
+
"roleName": "team-lead"
|
|
22726
|
+
},
|
|
22727
|
+
{
|
|
22728
|
+
"skillId": "agent-subagent-orchestration",
|
|
22729
|
+
"roleName": "team-lead"
|
|
22730
|
+
},
|
|
22731
|
+
{
|
|
22732
|
+
"skillId": "frontend-engineering-workflow",
|
|
22733
|
+
"roleName": "ui-designer"
|
|
22734
|
+
},
|
|
22735
|
+
{
|
|
22736
|
+
"skillId": "backend-architecture-workflow",
|
|
22737
|
+
"roleName": "backend-architect"
|
|
22738
|
+
},
|
|
22739
|
+
{
|
|
22740
|
+
"skillId": "independent-code-review-workflow",
|
|
22741
|
+
"roleName": "reviewer"
|
|
22742
|
+
},
|
|
22743
|
+
{
|
|
22744
|
+
"skillId": "agent-subagent-orchestration",
|
|
22745
|
+
"roleName": "reviewer"
|
|
22746
|
+
},
|
|
22747
|
+
{
|
|
22748
|
+
"skillId": "executor-short-task-workflow",
|
|
22749
|
+
"roleName": "executor"
|
|
22750
|
+
},
|
|
22751
|
+
{
|
|
22752
|
+
"skillId": "agent-subagent-orchestration",
|
|
22753
|
+
"roleName": "executor"
|
|
22754
|
+
},
|
|
22755
|
+
{
|
|
22756
|
+
"skillId": "git-release-hygiene",
|
|
22757
|
+
"roleName": "executor"
|
|
22758
|
+
},
|
|
22759
|
+
{
|
|
22760
|
+
"skillId": "github-repository-presentation",
|
|
22761
|
+
"roleName": "executor"
|
|
22762
|
+
}
|
|
22158
22763
|
]
|
|
22159
22764
|
}
|
|
22160
22765
|
},
|
|
@@ -22171,9 +22776,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22171
22776
|
"复杂重构"
|
|
22172
22777
|
],
|
|
22173
22778
|
"quickPrompts": ["为现有项目增加用户认证模块并验证", "统一 Web 与桌面端的设置页面交互"],
|
|
22174
|
-
"notes": "
|
|
22779
|
+
"notes": "五个成员(含队长):顾问职责拆成 UI 前端工程师与后端架构师两个专业角色,执行者承担常规实施,代码审查员独立验收;跨端一致性由队长裁定。"
|
|
22175
22780
|
},
|
|
22176
|
-
officialSkillBindings:
|
|
22781
|
+
officialSkillBindings: OFFICIAL_SPECIALIST_SKILLS
|
|
22177
22782
|
},
|
|
22178
22783
|
{
|
|
22179
22784
|
id: "builtin-discovery",
|
|
@@ -22892,7 +23497,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22892
23497
|
composerMissingHint: "This is not No team. An unapplicable selection denies tools; a running task keeps its old policy until idle. Choose a valid Team or No team.",
|
|
22893
23498
|
importPreset: "Import preset",
|
|
22894
23499
|
exportPreset: "Export",
|
|
22895
|
-
importNote: "A shared document carries names, descriptions, system prompts, and
|
|
23500
|
+
importNote: "A shared document carries names, descriptions, system prompts, colors, display metadata, and built-in skill declarations. Model routes and tool permissions stay local.",
|
|
23501
|
+
importDraftNote: "Import stages the preset as a draft. Save to apply it. Skill defaults respect existing local overrides and manual unbinding.",
|
|
22896
23502
|
restoreDefaults: "Restore built-in presets",
|
|
22897
23503
|
restoreDefaultsHint: "Puts every preset this plugin ships back to its shipped name, description, prompts, colors, and roster. The model routes and tool permissions you configured stay as they are, and teams you created yourself are not touched.",
|
|
22898
23504
|
defaultsRestored: "Default presets restored in this draft. Save to apply them.",
|
|
@@ -22912,6 +23518,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22912
23518
|
importMemberConflict: "These members already exist in that team",
|
|
22913
23519
|
importMemberReplace: "Replace that member",
|
|
22914
23520
|
importMemberRename: "Add it renamed",
|
|
23521
|
+
importPreviewTitle: "Review preset import",
|
|
23522
|
+
importSkillDeclarations: "Preset skill declarations",
|
|
23523
|
+
importSkillCatalog: "Built-in team defaults",
|
|
23524
|
+
importSkillUnknown: "Invalid declaration. Only built-in skills are supported.",
|
|
23525
|
+
importSkillRoleMissing: "Invalid declaration. The role does not exist.",
|
|
23526
|
+
importSkillRoleAmbiguous: "Invalid declaration. The role does not resolve to a unique slot.",
|
|
23527
|
+
importSkillCatalogIgnored: "This team ID uses the built-in catalog rules.",
|
|
23528
|
+
importSkillEligible: "Eligible for automatic binding after saving.",
|
|
23529
|
+
importSkillAssetMissing: "The built-in asset is missing. The declaration is kept for automatic binding when the asset becomes available.",
|
|
23530
|
+
importSkillLibraryUnavailable: "Asset availability could not be checked. The declaration is kept.",
|
|
23531
|
+
importSkillLocalOverride: "This role’s existing local override takes precedence.",
|
|
22915
23532
|
importInvalidJson: "That file is not valid JSON.",
|
|
22916
23533
|
importInvalidFormat: "That file is not a Team preset document.",
|
|
22917
23534
|
importUnsupportedVersion: "That document was written by a newer version of this plugin.",
|
|
@@ -22939,6 +23556,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22939
23556
|
patchUnavailable: "This session cannot read the integrations state.",
|
|
22940
23557
|
patchStateAbsent: "not installed",
|
|
22941
23558
|
patchStateUnsupported: "version not supported",
|
|
23559
|
+
patchUnsupportedReason: "installed {installed}, this build supports up to {supported}",
|
|
22942
23560
|
patchStatePristine: "not patched",
|
|
22943
23561
|
patchStatePatched: "patched",
|
|
22944
23562
|
patchStateForeign: "modified by something else",
|
|
@@ -22963,11 +23581,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22963
23581
|
patchRefused: "Nothing changed.",
|
|
22964
23582
|
skillsScan: "Scan import folder",
|
|
22965
23583
|
skillsScanHint: "Folder path:",
|
|
22966
|
-
skillsScanSummary: "Scanned {scanned}
|
|
23584
|
+
skillsScanSummary: "Scanned {scanned}. Imported {imported}, updated {updated}, unchanged {existing}, missing {missing}, refused {invalid}.",
|
|
22967
23585
|
skillsScanEmpty: "No skill folder was found in the import folder.",
|
|
22968
23586
|
skillsScanImported: "imported",
|
|
22969
|
-
skillsScanExisting: "
|
|
23587
|
+
skillsScanExisting: "unchanged",
|
|
23588
|
+
skillsScanUpdated: "updated",
|
|
22970
23589
|
skillsScanInvalid: "refused",
|
|
23590
|
+
skillsScanSourceMissing: "source missing",
|
|
22971
23591
|
skillsScanMissingSkill: "missing SKILL.md",
|
|
22972
23592
|
skillsScanInvalidFrontmatter: "invalid frontmatter",
|
|
22973
23593
|
skillsScanInvalidName: "name is not kebab-case",
|
|
@@ -22978,6 +23598,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
22978
23598
|
skillsScanUnreadable: "cannot be read",
|
|
22979
23599
|
skillsScanDuplicate: "same skill name",
|
|
22980
23600
|
skillsScanInstallRefused: "publish refused",
|
|
23601
|
+
skillsScanBuiltinNameConflict: "name matches a built-in skill",
|
|
23602
|
+
skillsScanCopyNameConflict: "name matches an existing local copy",
|
|
23603
|
+
skillsScanDuplicateSourceName: "another source folder declares this skill name",
|
|
23604
|
+
skillsScanSourceMissingReason: "the previously imported source folder is missing",
|
|
23605
|
+
skillsScanSourceChanged: "source changed during the scan. Scan again.",
|
|
23606
|
+
skillsInboxChanges: "Changes in the import folder ({count})",
|
|
23607
|
+
skillsInboxNew: "new skill",
|
|
23608
|
+
skillsInboxUpdated: "update available",
|
|
23609
|
+
skillsIgnoredDependencyFields: "Dependency fields ignored on import ({fields}). Use set_team_skill_dependencies to configure this skill’s dependencies.",
|
|
22981
23610
|
skillsOpenScanFolder: "Open scan folder",
|
|
22982
23611
|
skillsCopyScanFolder: "Copy scan folder path",
|
|
22983
23612
|
skillsScanFolderOpened: "The scan folder is open. Put one skill folder inside it, then scan.",
|
|
@@ -23007,7 +23636,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23007
23636
|
skillsEditable: "editable",
|
|
23008
23637
|
skillsReadonly: "read-only original",
|
|
23009
23638
|
skillsMakeCopy: "Create an editable copy",
|
|
23010
|
-
|
|
23639
|
+
skillsMakeCopyTitle: "Create an editable copy of {skill}?",
|
|
23640
|
+
skillsMakeCopySwitchBindings: "Switch currently bound roles to the copy ({count})",
|
|
23641
|
+
skillsMakeCopySwitchIssue: "The editable copy was created. Role bindings could not be switched. {issue}",
|
|
23642
|
+
skillsResetCopy: "Reset copy and switch roles back to the built-in skill",
|
|
23011
23643
|
skillsNoBinding: "Not assigned to any member yet",
|
|
23012
23644
|
skillsUnbind: "Remove",
|
|
23013
23645
|
skillsDeps: "MCP and runtime dependencies",
|
|
@@ -23097,7 +23729,26 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23097
23729
|
composerMissingMember: "Missing member: {member} (team {team})",
|
|
23098
23730
|
skillsAssignHint: "Checked skills belong to this member only. They are discovered through this Agent scope, never globally.",
|
|
23099
23731
|
skillsAssignEmpty: "No team skill is installed yet. Add one on the Team skills page.",
|
|
23100
|
-
skillsOverrideOn: "a local override is active"
|
|
23732
|
+
skillsOverrideOn: "a local override is active",
|
|
23733
|
+
skillAgentLeaderCommunication: "agent-leader-communication",
|
|
23734
|
+
skillLeaderMediumTaskWorkflow: "leader-medium-task-workflow",
|
|
23735
|
+
skillLeaderLongTaskOrchestration: "leader-long-task-orchestration",
|
|
23736
|
+
skillAgentSubagentOrchestration: "agent-subagent-orchestration",
|
|
23737
|
+
skillFullstackAdvisor: "fullstack-advisor",
|
|
23738
|
+
skillExecutorShortTaskWorkflow: "executor-short-task-workflow",
|
|
23739
|
+
skillGithubRepositoryPresentation: "github-repository-presentation",
|
|
23740
|
+
skillGitReleaseHygiene: "git-release-hygiene",
|
|
23741
|
+
skillFrontendEngineeringWorkflow: "frontend-engineering-workflow",
|
|
23742
|
+
skillBackendArchitectureWorkflow: "backend-architecture-workflow",
|
|
23743
|
+
skillIndependentCodeReviewWorkflow: "independent-code-review-workflow",
|
|
23744
|
+
skillGrilling: "grilling",
|
|
23745
|
+
skillResearch: "research",
|
|
23746
|
+
skillsCategoryAll: "All categories",
|
|
23747
|
+
skillsCategoryWorkflow: "Workflow",
|
|
23748
|
+
skillsCategoryDelivery: "Delivery",
|
|
23749
|
+
skillsCategoryMethod: "Method",
|
|
23750
|
+
skillsCategoryCustom: "Custom",
|
|
23751
|
+
skillsFilterEmpty: "No skill in this category."
|
|
23101
23752
|
};
|
|
23102
23753
|
/** Simplified Chinese copy. */
|
|
23103
23754
|
const zh = {
|
|
@@ -23232,7 +23883,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23232
23883
|
composerMissingHint: "这不是“不使用团队”。无法应用时权限保持拒绝;进行中的任务保留旧策略直到空闲。请改选有效团队或“不使用团队”。",
|
|
23233
23884
|
importPreset: "导入预设",
|
|
23234
23885
|
exportPreset: "导出",
|
|
23235
|
-
importNote: "
|
|
23886
|
+
importNote: "共享文档携带名称、描述、系统提示词、颜色、展示信息和内置技能声明。模型路由与工具权限保留在本地。",
|
|
23887
|
+
importDraftNote: "导入会暂存为草稿,保存后生效。技能默认规则会保留已有的本地副本绑定和手动解绑。",
|
|
23236
23888
|
restoreDefaults: "恢复内置预设",
|
|
23237
23889
|
restoreDefaultsHint: "把插件自带的预设全部恢复到出厂的名称、说明、提示词、颜色和成员名单;你为它们配置的模型路由与工具权限保持不变,你自己创建的团队完全不受影响。",
|
|
23238
23890
|
defaultsRestored: "默认预设已恢复到草稿,保存后生效。",
|
|
@@ -23252,6 +23904,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23252
23904
|
importMemberConflict: "该团队已存在这些队员",
|
|
23253
23905
|
importMemberReplace: "替换该队员",
|
|
23254
23906
|
importMemberRename: "重命名后新增",
|
|
23907
|
+
importPreviewTitle: "预览预设导入",
|
|
23908
|
+
importSkillDeclarations: "预设技能声明",
|
|
23909
|
+
importSkillCatalog: "内置团队默认技能",
|
|
23910
|
+
importSkillUnknown: "声明无效,仅支持插件内置技能。",
|
|
23911
|
+
importSkillRoleMissing: "声明无效,找不到该角色。",
|
|
23912
|
+
importSkillRoleAmbiguous: "声明无效,无法唯一确定该角色。",
|
|
23913
|
+
importSkillCatalogIgnored: "该团队 ID 使用内置团队默认规则。",
|
|
23914
|
+
importSkillEligible: "保存后符合自动绑定条件。",
|
|
23915
|
+
importSkillAssetMissing: "当前缺少该内置资产。声明会保留,资产可用后可自动补绑。",
|
|
23916
|
+
importSkillLibraryUnavailable: "暂时无法核实资产是否可用。声明会保留。",
|
|
23917
|
+
importSkillLocalOverride: "该角色已有对应的本地副本绑定,将优先保留。",
|
|
23255
23918
|
importInvalidJson: "该文件不是合法的 JSON。",
|
|
23256
23919
|
importInvalidFormat: "该文件不是团队预设文档。",
|
|
23257
23920
|
importUnsupportedVersion: "该文档由更新版本的插件生成。",
|
|
@@ -23279,6 +23942,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23279
23942
|
patchUnavailable: "当前会话无法读取插件联动状态。",
|
|
23280
23943
|
patchStateAbsent: "未安装",
|
|
23281
23944
|
patchStateUnsupported: "版本不支持",
|
|
23945
|
+
patchUnsupportedReason: "已安装 {installed},本版本最高适配 {supported}",
|
|
23282
23946
|
patchStatePristine: "未打补丁",
|
|
23283
23947
|
patchStatePatched: "已打补丁",
|
|
23284
23948
|
patchStateForeign: "已被其他改动修改",
|
|
@@ -23303,11 +23967,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23303
23967
|
patchRefused: "未做任何修改。",
|
|
23304
23968
|
skillsScan: "扫描导入目录",
|
|
23305
23969
|
skillsScanHint: "目录路径:",
|
|
23306
|
-
skillsScanSummary: "
|
|
23970
|
+
skillsScanSummary: "已扫描 {scanned} 个目录。导入 {imported},更新 {updated},无变化 {existing},来源缺失 {missing},无法导入 {invalid}。",
|
|
23307
23971
|
skillsScanEmpty: "导入目录里没有发现技能文件夹。",
|
|
23308
23972
|
skillsScanImported: "已导入",
|
|
23309
|
-
skillsScanExisting: "
|
|
23973
|
+
skillsScanExisting: "无变化",
|
|
23974
|
+
skillsScanUpdated: "已更新",
|
|
23310
23975
|
skillsScanInvalid: "无法导入",
|
|
23976
|
+
skillsScanSourceMissing: "来源缺失",
|
|
23311
23977
|
skillsScanMissingSkill: "缺少 SKILL.md",
|
|
23312
23978
|
skillsScanInvalidFrontmatter: "frontmatter 格式不正确",
|
|
23313
23979
|
skillsScanInvalidName: "name 不符合 kebab-case",
|
|
@@ -23318,6 +23984,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23318
23984
|
skillsScanUnreadable: "无法读取",
|
|
23319
23985
|
skillsScanDuplicate: "技能名重复",
|
|
23320
23986
|
skillsScanInstallRefused: "发布被拒绝",
|
|
23987
|
+
skillsScanBuiltinNameConflict: "与内置技能同名",
|
|
23988
|
+
skillsScanCopyNameConflict: "与已有本地副本同名",
|
|
23989
|
+
skillsScanDuplicateSourceName: "另一个来源目录已声明此技能名",
|
|
23990
|
+
skillsScanSourceMissingReason: "此前导入该技能的来源目录已缺失",
|
|
23991
|
+
skillsScanSourceChanged: "来源在扫描期间发生了变化,请重新扫描。",
|
|
23992
|
+
skillsInboxChanges: "导入目录有变动({count})",
|
|
23993
|
+
skillsInboxNew: "新技能",
|
|
23994
|
+
skillsInboxUpdated: "有更新",
|
|
23995
|
+
skillsIgnoredDependencyFields: "导入时已忽略依赖字段({fields})。请使用 set_team_skill_dependencies 配置此技能的依赖。",
|
|
23321
23996
|
skillsOpenScanFolder: "打开扫描技能目录",
|
|
23322
23997
|
skillsCopyScanFolder: "复制扫描技能目录",
|
|
23323
23998
|
skillsScanFolderOpened: "已打开扫描目录。把一个技能文件夹放进去后点扫描即可。",
|
|
@@ -23347,7 +24022,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23347
24022
|
skillsEditable: "可编辑",
|
|
23348
24023
|
skillsReadonly: "只读原版",
|
|
23349
24024
|
skillsMakeCopy: "创建本地可编辑副本",
|
|
23350
|
-
|
|
24025
|
+
skillsMakeCopyTitle: "创建「{skill}」的本地可编辑副本?",
|
|
24026
|
+
skillsMakeCopySwitchBindings: "将当前绑定此技能的角色切换到副本({count})",
|
|
24027
|
+
skillsMakeCopySwitchIssue: "已创建可编辑副本。未能切换角色绑定。{issue}",
|
|
24028
|
+
skillsResetCopy: "重置副本并将角色切回内置技能",
|
|
23351
24029
|
skillsNoBinding: "尚未分配给任何成员",
|
|
23352
24030
|
skillsUnbind: "解除绑定",
|
|
23353
24031
|
skillsDeps: "MCP 及运行环境依赖",
|
|
@@ -23437,9 +24115,117 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23437
24115
|
composerMissingMember: "成员已失效:{member}(团队 {team})",
|
|
23438
24116
|
skillsAssignHint: "勾选的技能只属于这名成员,通过该 Agent 的作用域发现,不会全局注册。",
|
|
23439
24117
|
skillsAssignEmpty: "还没有安装任何团队技能,请先到「团队技能」页添加。",
|
|
23440
|
-
skillsOverrideOn: "已启用本地覆盖"
|
|
24118
|
+
skillsOverrideOn: "已启用本地覆盖",
|
|
24119
|
+
skillAgentLeaderCommunication: "队长派发与通信",
|
|
24120
|
+
skillLeaderMediumTaskWorkflow: "中程任务工作流",
|
|
24121
|
+
skillLeaderLongTaskOrchestration: "长程任务编排",
|
|
24122
|
+
skillAgentSubagentOrchestration: "孙代理并行编排",
|
|
24123
|
+
skillFullstackAdvisor: "全栈技术咨询",
|
|
24124
|
+
skillExecutorShortTaskWorkflow: "执行者短程工作流",
|
|
24125
|
+
skillGithubRepositoryPresentation: "仓库展示规范",
|
|
24126
|
+
skillGitReleaseHygiene: "Git 提交与发布规范",
|
|
24127
|
+
skillFrontendEngineeringWorkflow: "前端工程工作流",
|
|
24128
|
+
skillBackendArchitectureWorkflow: "后端架构工作流",
|
|
24129
|
+
skillIndependentCodeReviewWorkflow: "独立代码审查工作流",
|
|
24130
|
+
skillGrilling: "需求拷问",
|
|
24131
|
+
skillResearch: "一手来源调研",
|
|
24132
|
+
skillsCategoryAll: "全部分类",
|
|
24133
|
+
skillsCategoryWorkflow: "工作流型",
|
|
24134
|
+
skillsCategoryDelivery: "交付型",
|
|
24135
|
+
skillsCategoryMethod: "方法型",
|
|
24136
|
+
skillsCategoryCustom: "自定义",
|
|
24137
|
+
skillsFilterEmpty: "该分类下暂无技能。"
|
|
24138
|
+
};
|
|
24139
|
+
/**
|
|
24140
|
+
* Display names of the shipped Team Skills, keyed by the English skill id.
|
|
24141
|
+
*
|
|
24142
|
+
* The id is the asset's identity on every other surface — the skill catalogue
|
|
24143
|
+
* the model reads, the stored binding, the preset document, and the asset
|
|
24144
|
+
* directory — so the label is presentation only and never reaches the runtime or
|
|
24145
|
+
* the disk. English carries the original id rather than a prose title, so an
|
|
24146
|
+
* English page shows exactly the name every other surface already uses.
|
|
24147
|
+
*/
|
|
24148
|
+
const SKILL_LABEL_KEYS = {
|
|
24149
|
+
"agent-leader-communication": "skillAgentLeaderCommunication",
|
|
24150
|
+
"leader-medium-task-workflow": "skillLeaderMediumTaskWorkflow",
|
|
24151
|
+
"leader-long-task-orchestration": "skillLeaderLongTaskOrchestration",
|
|
24152
|
+
"agent-subagent-orchestration": "skillAgentSubagentOrchestration",
|
|
24153
|
+
"fullstack-advisor": "skillFullstackAdvisor",
|
|
24154
|
+
"executor-short-task-workflow": "skillExecutorShortTaskWorkflow",
|
|
24155
|
+
"github-repository-presentation": "skillGithubRepositoryPresentation",
|
|
24156
|
+
"git-release-hygiene": "skillGitReleaseHygiene",
|
|
24157
|
+
"frontend-engineering-workflow": "skillFrontendEngineeringWorkflow",
|
|
24158
|
+
"backend-architecture-workflow": "skillBackendArchitectureWorkflow",
|
|
24159
|
+
"independent-code-review-workflow": "skillIndependentCodeReviewWorkflow",
|
|
24160
|
+
"grilling": "skillGrilling",
|
|
24161
|
+
"research": "skillResearch"
|
|
24162
|
+
};
|
|
24163
|
+
/**
|
|
24164
|
+
* The name one Team Skill is shown under.
|
|
24165
|
+
* @param skillId - the asset's English identity.
|
|
24166
|
+
* @param t - the page's locale reader.
|
|
24167
|
+
* @returns the localized label, or the English id for a skill this build does not ship.
|
|
24168
|
+
*/
|
|
24169
|
+
function skillLabel(skillId, t) {
|
|
24170
|
+
const key = SKILL_LABEL_KEYS[skillId];
|
|
24171
|
+
return key === void 0 ? skillId : t(key);
|
|
24172
|
+
}
|
|
24173
|
+
/**
|
|
24174
|
+
* The filter categories of a Team Skill list, in menu order.
|
|
24175
|
+
*
|
|
24176
|
+
* They describe the kind of work a shipped skill belongs to rather than the role
|
|
24177
|
+
* that happens to hold it, so a skill keeps its category when a Team re-binds it.
|
|
24178
|
+
* Everything this build does not ship — a user's own skill, and a shipped id a
|
|
24179
|
+
* newer release added before this table learned about it — is "custom".
|
|
24180
|
+
*/
|
|
24181
|
+
const SKILL_CATEGORIES = [
|
|
24182
|
+
"workflow",
|
|
24183
|
+
"delivery",
|
|
24184
|
+
"method",
|
|
24185
|
+
"custom"
|
|
24186
|
+
];
|
|
24187
|
+
/** Locale key of one category's label. */
|
|
24188
|
+
const SKILL_CATEGORY_LABELS = {
|
|
24189
|
+
workflow: "skillsCategoryWorkflow",
|
|
24190
|
+
delivery: "skillsCategoryDelivery",
|
|
24191
|
+
method: "skillsCategoryMethod",
|
|
24192
|
+
custom: "skillsCategoryCustom"
|
|
24193
|
+
};
|
|
24194
|
+
/**
|
|
24195
|
+
* The category of every shipped skill, keyed by the English skill id.
|
|
24196
|
+
*
|
|
24197
|
+
* A shipped skill the table does not name falls back to "custom", which is why
|
|
24198
|
+
* the package's own test proves the table covers every shipped id: the fallback
|
|
24199
|
+
* is for a skill this build did not ship, never for one it did.
|
|
24200
|
+
*/
|
|
24201
|
+
const SHIPPED_SKILL_CATEGORIES = {
|
|
24202
|
+
"agent-leader-communication": "workflow",
|
|
24203
|
+
"leader-medium-task-workflow": "workflow",
|
|
24204
|
+
"leader-long-task-orchestration": "workflow",
|
|
24205
|
+
"agent-subagent-orchestration": "workflow",
|
|
24206
|
+
"fullstack-advisor": "workflow",
|
|
24207
|
+
"executor-short-task-workflow": "workflow",
|
|
24208
|
+
"github-repository-presentation": "delivery",
|
|
24209
|
+
"git-release-hygiene": "delivery",
|
|
24210
|
+
"frontend-engineering-workflow": "workflow",
|
|
24211
|
+
"backend-architecture-workflow": "workflow",
|
|
24212
|
+
"independent-code-review-workflow": "workflow",
|
|
24213
|
+
"grilling": "method",
|
|
24214
|
+
"research": "method"
|
|
23441
24215
|
};
|
|
23442
24216
|
/**
|
|
24217
|
+
* The category one asset is filtered under.
|
|
24218
|
+
*
|
|
24219
|
+
* A local override of a shipped skill stays with that skill's category: it is the
|
|
24220
|
+
* same skill, edited. Only a skill the user brought in themselves is "custom".
|
|
24221
|
+
* @param asset - the asset row, as the page received it.
|
|
24222
|
+
* @returns its filter category.
|
|
24223
|
+
*/
|
|
24224
|
+
function skillCategoryOf(asset) {
|
|
24225
|
+
if (asset.origin === "custom") return "custom";
|
|
24226
|
+
return SHIPPED_SKILL_CATEGORIES[asset.officialSkillId ?? asset.skillId] ?? "custom";
|
|
24227
|
+
}
|
|
24228
|
+
/**
|
|
23443
24229
|
* Locale key for one Host disclosure about how the applied Team runs.
|
|
23444
24230
|
*
|
|
23445
24231
|
* A Host disclosure is a locale key, so the page renders it in the reader's own
|
|
@@ -23602,6 +24388,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23602
24388
|
/** Space kept between the panel and the viewport edge before it flips sides. */
|
|
23603
24389
|
const PANEL_VIEWPORT_MARGIN_PX = 8;
|
|
23604
24390
|
/**
|
|
24391
|
+
* Role identity a binding uses for the captain slot.
|
|
24392
|
+
*
|
|
24393
|
+
* The shipped captain carries its own workflow skills, so the panel reads that
|
|
24394
|
+
* slot too. It mirrors the Host's own sentinel rather than a member's id: the
|
|
24395
|
+
* captain slot is not a member and is addressed by this name in every binding.
|
|
24396
|
+
*/
|
|
24397
|
+
const CAPTAIN_ROLE$1 = "captain";
|
|
24398
|
+
/**
|
|
23605
24399
|
* Render one member's configured route as `provider · model`.
|
|
23606
24400
|
*
|
|
23607
24401
|
* An empty provider and model is the Session route, which the caller renders
|
|
@@ -23664,23 +24458,29 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
23664
24458
|
const [series, setSeries] = (0, react.useState)("all");
|
|
23665
24459
|
const [categoryId, setCategoryId] = (0, react.useState)("");
|
|
23666
24460
|
/**
|
|
23667
|
-
* Team Skills bound to each
|
|
24461
|
+
* Team Skills bound to each role of the Team whose panel is open, keyed by the
|
|
24462
|
+
* role a selection addresses: the captain slot under {@link CAPTAIN_ROLE}, and
|
|
24463
|
+
* every member under its own id.
|
|
23668
24464
|
*
|
|
23669
24465
|
* Only the roles' own bindings count: a captain's skills are not a member's,
|
|
23670
|
-
* and a skill the library does not list has nothing to show.
|
|
24466
|
+
* and a skill the library does not list has nothing to show. The captain is
|
|
24467
|
+
* read alongside the members because a shipped captain carries workflow skills
|
|
24468
|
+
* of its own, and the row that starts a captain conversation has to say so.
|
|
23671
24469
|
*/
|
|
23672
24470
|
const skillNamesByRole = (0, react.useMemo)(() => {
|
|
23673
24471
|
const byRole = /* @__PURE__ */ new Map();
|
|
23674
24472
|
const assets = skillsState.library?.assets ?? [];
|
|
23675
24473
|
if (hoverTeamId === void 0) return byRole;
|
|
23676
24474
|
for (const asset of assets) for (const binding of asset.bindings) {
|
|
23677
|
-
if (binding.teamId !== hoverTeamId
|
|
23678
|
-
const
|
|
24475
|
+
if (binding.teamId !== hoverTeamId) continue;
|
|
24476
|
+
const bindingRoleId = binding.captain ? CAPTAIN_ROLE$1 : binding.roleId;
|
|
24477
|
+
const names = byRole.get(bindingRoleId) ?? [];
|
|
23679
24478
|
if (!names.includes(asset.skillId)) names.push(asset.skillId);
|
|
23680
|
-
byRole.set(
|
|
24479
|
+
byRole.set(bindingRoleId, names);
|
|
23681
24480
|
}
|
|
23682
24481
|
return byRole;
|
|
23683
24482
|
}, [skillsState.library, hoverTeamId]);
|
|
24483
|
+
const captainSkillIds = hoverTeamId === void 0 ? [] : skillNamesByRole.get(CAPTAIN_ROLE$1) ?? [];
|
|
23684
24484
|
/** Cancel a pending panel close, so a hover that continues keeps the panel up. */
|
|
23685
24485
|
const cancelHoverClose = () => {
|
|
23686
24486
|
if (hoverTimer.current === void 0) return;
|
|
@@ -24050,6 +24850,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24050
24850
|
hoverTeam.captain.description.trim() === "" ? null : (0, react_jsx_runtime.jsx)("span", {
|
|
24051
24851
|
className: ComposerTeamSelect_module_css_default.panelDesc,
|
|
24052
24852
|
children: hoverTeam.captain.description
|
|
24853
|
+
}),
|
|
24854
|
+
captainSkillIds.length === 0 ? null : (0, react_jsx_runtime.jsx)("span", {
|
|
24855
|
+
className: ComposerTeamSelect_module_css_default.panelSkillTags,
|
|
24856
|
+
children: captainSkillIds.map((name) => (0, react_jsx_runtime.jsx)("span", {
|
|
24857
|
+
className: ComposerTeamSelect_module_css_default.panelSkillTag,
|
|
24858
|
+
style: skillTagStyle(name),
|
|
24859
|
+
title: name,
|
|
24860
|
+
children: skillLabel(name, t)
|
|
24861
|
+
}, name))
|
|
24053
24862
|
})
|
|
24054
24863
|
]
|
|
24055
24864
|
}),
|
|
@@ -24099,7 +24908,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
24099
24908
|
children: boundNames.map((name) => (0, react_jsx_runtime.jsx)("span", {
|
|
24100
24909
|
className: ComposerTeamSelect_module_css_default.panelSkillTag,
|
|
24101
24910
|
style: skillTagStyle(name),
|
|
24102
|
-
|
|
24911
|
+
title: name,
|
|
24912
|
+
children: skillLabel(name, t)
|
|
24103
24913
|
}, name))
|
|
24104
24914
|
}),
|
|
24105
24915
|
selectable ? null : (0, react_jsx_runtime.jsx)("span", {
|
|
@@ -25348,6 +26158,61 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25348
26158
|
changed
|
|
25349
26159
|
};
|
|
25350
26160
|
}
|
|
26161
|
+
const officialIds = new Set([
|
|
26162
|
+
"agent-leader-communication",
|
|
26163
|
+
"leader-medium-task-workflow",
|
|
26164
|
+
"leader-long-task-orchestration",
|
|
26165
|
+
"agent-subagent-orchestration",
|
|
26166
|
+
"fullstack-advisor",
|
|
26167
|
+
"executor-short-task-workflow",
|
|
26168
|
+
"github-repository-presentation",
|
|
26169
|
+
"git-release-hygiene",
|
|
26170
|
+
"frontend-engineering-workflow",
|
|
26171
|
+
"backend-architecture-workflow",
|
|
26172
|
+
"independent-code-review-workflow",
|
|
26173
|
+
"grilling",
|
|
26174
|
+
"research"
|
|
26175
|
+
]);
|
|
26176
|
+
/** The binding slot reserved for a captain. */
|
|
26177
|
+
const CAPTAIN_ROLE = "captain";
|
|
26178
|
+
/** Shipped identities always use the catalog, including records from earlier releases. */
|
|
26179
|
+
function officialSkillDefaults(team) {
|
|
26180
|
+
const entry = builtinEntry(team.id);
|
|
26181
|
+
return entry === void 0 ? {
|
|
26182
|
+
source: "preset",
|
|
26183
|
+
declarations: team.officialSkills ?? []
|
|
26184
|
+
} : {
|
|
26185
|
+
source: "catalog",
|
|
26186
|
+
declarations: entry.officialSkillBindings
|
|
26187
|
+
};
|
|
26188
|
+
}
|
|
26189
|
+
/** A declaration can address only an unambiguous name and an unambiguous binding slot. */
|
|
26190
|
+
function officialSkillTarget(team, declaration) {
|
|
26191
|
+
if (!officialIds.has(declaration.skillId)) return { status: "unknown-skill" };
|
|
26192
|
+
const roles = [{
|
|
26193
|
+
name: team.captain.name,
|
|
26194
|
+
id: CAPTAIN_ROLE
|
|
26195
|
+
}, ...team.members.map((member) => ({
|
|
26196
|
+
name: member.name,
|
|
26197
|
+
id: member.id ?? member.name
|
|
26198
|
+
}))];
|
|
26199
|
+
const [role, otherMatch] = roles.filter((candidate) => candidate.name === declaration.roleName);
|
|
26200
|
+
if (role === void 0) return { status: "missing-role" };
|
|
26201
|
+
if (otherMatch !== void 0 || roles.filter((candidate) => candidate.id === role.id).length !== 1) return { status: "ambiguous-role" };
|
|
26202
|
+
return {
|
|
26203
|
+
status: "valid",
|
|
26204
|
+
roleId: role.id,
|
|
26205
|
+
assetId: `builtin:${declaration.skillId}`
|
|
26206
|
+
};
|
|
26207
|
+
}
|
|
26208
|
+
/** A default can seed only the shipped asset with the declared identity. */
|
|
26209
|
+
function isOfficialSkillAsset(asset, assetId) {
|
|
26210
|
+
return asset.origin === "builtin" && asset.id === assetId;
|
|
26211
|
+
}
|
|
26212
|
+
/** A role that already holds a derived override keeps its explicit assignment. */
|
|
26213
|
+
function isOfficialSkillOverride(asset, skillId) {
|
|
26214
|
+
return asset.origin === "override" && asset.officialSkillId === skillId;
|
|
26215
|
+
}
|
|
25351
26216
|
|
|
25352
26217
|
|
|
25353
26218
|
/**
|
|
@@ -25426,7 +26291,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25426
26291
|
function mergeTransfer(target, plan, resolution) {
|
|
25427
26292
|
const members = [...target.members];
|
|
25428
26293
|
const importedNames = /* @__PURE__ */ new Map();
|
|
25429
|
-
for (const incoming of plan.
|
|
26294
|
+
for (const incoming of plan.incoming.members) {
|
|
25430
26295
|
const key = slotNameKey(incoming.name);
|
|
25431
26296
|
const at = key === "" ? -1 : members.findIndex((member) => slotNameKey(member.name) === key);
|
|
25432
26297
|
if (at >= 0 && (resolution.members[incoming.name] ?? "replace") === "replace") {
|
|
@@ -25438,29 +26303,104 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25438
26303
|
}
|
|
25439
26304
|
}
|
|
25440
26305
|
const name = uniqueName(incoming.name, members.map((member) => member.name));
|
|
25441
|
-
members.push(
|
|
26306
|
+
members.push({
|
|
25442
26307
|
...incoming,
|
|
25443
26308
|
name
|
|
25444
|
-
})
|
|
26309
|
+
});
|
|
25445
26310
|
importedNames.set(incoming.name, name);
|
|
25446
26311
|
}
|
|
25447
26312
|
const captain = plan.transfer.team.captain;
|
|
25448
26313
|
const captainName = resolution.captain === "rename" ? plan.suggestedCaptainName : captain.name;
|
|
25449
26314
|
importedNames.set(captain.name, captainName);
|
|
25450
26315
|
return {
|
|
25451
|
-
|
|
25452
|
-
|
|
25453
|
-
|
|
25454
|
-
|
|
25455
|
-
|
|
25456
|
-
...
|
|
25457
|
-
|
|
25458
|
-
|
|
25459
|
-
|
|
25460
|
-
|
|
25461
|
-
|
|
25462
|
-
}
|
|
25463
|
-
|
|
26316
|
+
importedNames,
|
|
26317
|
+
team: {
|
|
26318
|
+
...target,
|
|
26319
|
+
name: plan.transfer.team.name,
|
|
26320
|
+
description: plan.transfer.team.description,
|
|
26321
|
+
...plan.transfer.version < 2 ? {} : { metadata: structuredClone(plan.transfer.team.metadata ?? {}) },
|
|
26322
|
+
captain: applySharedFields(target.captain, {
|
|
26323
|
+
...captain,
|
|
26324
|
+
name: captainName
|
|
26325
|
+
}),
|
|
26326
|
+
members
|
|
26327
|
+
}
|
|
26328
|
+
};
|
|
26329
|
+
}
|
|
26330
|
+
function skillRow(team, declaration, source, assets) {
|
|
26331
|
+
const row = {
|
|
26332
|
+
...declaration,
|
|
26333
|
+
source
|
|
26334
|
+
};
|
|
26335
|
+
const target = officialSkillTarget(team, declaration);
|
|
26336
|
+
if (target.status !== "valid") return {
|
|
26337
|
+
...row,
|
|
26338
|
+
status: target.status
|
|
26339
|
+
};
|
|
26340
|
+
if (assets === void 0) return {
|
|
26341
|
+
...row,
|
|
26342
|
+
status: "library-unavailable"
|
|
26343
|
+
};
|
|
26344
|
+
if (assets.some((asset) => isOfficialSkillOverride(asset, declaration.skillId) && asset.bindings.some((binding) => binding.teamId === team.id && binding.roleId === target.roleId))) return {
|
|
26345
|
+
...row,
|
|
26346
|
+
status: "local-override"
|
|
26347
|
+
};
|
|
26348
|
+
const available = assets.some((asset) => isOfficialSkillAsset(asset, target.assetId));
|
|
26349
|
+
return {
|
|
26350
|
+
...row,
|
|
26351
|
+
status: available ? "eligible" : "asset-missing"
|
|
26352
|
+
};
|
|
26353
|
+
}
|
|
26354
|
+
/** Build the same proposed roster and declaration set for preview and staging. */
|
|
26355
|
+
function projectImport(teams, plan, resolution, assets) {
|
|
26356
|
+
const target = resolution.team === "replace" ? teams.find((team) => team.id === plan.targetId) : void 0;
|
|
26357
|
+
const replacement = target === void 0 ? void 0 : mergeTransfer(target, plan, resolution);
|
|
26358
|
+
const preferred = resolution.teamName.trim() === "" ? plan.transfer.team.name : resolution.teamName;
|
|
26359
|
+
const team = replacement?.team ?? {
|
|
26360
|
+
...plan.incoming,
|
|
26361
|
+
name: uniqueName(preferred, teams.map((candidate) => candidate.name))
|
|
26362
|
+
};
|
|
26363
|
+
const defaults = officialSkillDefaults(team);
|
|
26364
|
+
const declarations = plan.transfer.team.officialSkills;
|
|
26365
|
+
const rows = [];
|
|
26366
|
+
const retained = [];
|
|
26367
|
+
for (const declaration of declarations ?? []) {
|
|
26368
|
+
const original = officialSkillTarget(plan.incoming, declaration);
|
|
26369
|
+
if (original.status !== "valid") {
|
|
26370
|
+
rows.push({
|
|
26371
|
+
...declaration,
|
|
26372
|
+
source: "preset",
|
|
26373
|
+
status: original.status
|
|
26374
|
+
});
|
|
26375
|
+
continue;
|
|
26376
|
+
}
|
|
26377
|
+
if (defaults.source === "catalog") {
|
|
26378
|
+
rows.push({
|
|
26379
|
+
...declaration,
|
|
26380
|
+
source: "preset",
|
|
26381
|
+
status: "catalog-ignored"
|
|
26382
|
+
});
|
|
26383
|
+
continue;
|
|
26384
|
+
}
|
|
26385
|
+
const resolved = {
|
|
26386
|
+
...declaration,
|
|
26387
|
+
roleName: replacement?.importedNames.get(declaration.roleName) ?? declaration.roleName
|
|
26388
|
+
};
|
|
26389
|
+
const row = skillRow(team, resolved, "preset", assets);
|
|
26390
|
+
rows.push(row);
|
|
26391
|
+
if (row.status !== "missing-role" && row.status !== "ambiguous-role") retained.push(resolved);
|
|
26392
|
+
}
|
|
26393
|
+
if (defaults.source === "catalog" || declarations === void 0) rows.push(...defaults.declarations.map((declaration) => skillRow(team, declaration, defaults.source, assets)));
|
|
26394
|
+
return {
|
|
26395
|
+
team: defaults.source === "catalog" ? {
|
|
26396
|
+
...team,
|
|
26397
|
+
officialSkills: defaults.declarations.map((declaration) => ({ ...declaration }))
|
|
26398
|
+
} : declarations === void 0 ? team : {
|
|
26399
|
+
...team,
|
|
26400
|
+
officialSkills: retained
|
|
26401
|
+
},
|
|
26402
|
+
target,
|
|
26403
|
+
rows
|
|
25464
26404
|
};
|
|
25465
26405
|
}
|
|
25466
26406
|
/**
|
|
@@ -25986,6 +26926,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
25986
26926
|
},
|
|
25987
26927
|
exportTeam: (index) => this.exportTeam(index),
|
|
25988
26928
|
inspectImport: (text) => this.inspectImport(text),
|
|
26929
|
+
previewImport: (plan, resolution, assets) => this.previewImport(plan, resolution, assets),
|
|
25989
26930
|
applyImport: (plan, resolution) => {
|
|
25990
26931
|
return this.applyImport(plan, resolution);
|
|
25991
26932
|
},
|
|
@@ -26303,8 +27244,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26303
27244
|
exportTeam(index) {
|
|
26304
27245
|
const team = this.visibleTeams()[index];
|
|
26305
27246
|
if (team === void 0) return void 0;
|
|
26306
|
-
|
|
26307
|
-
return serializeTeamPreset(team, officialSkills === void 0 ? {} : { officialSkills });
|
|
27247
|
+
return serializeTeamPreset(team, { officialSkills: officialSkillDefaults(team).declarations });
|
|
26308
27248
|
}
|
|
26309
27249
|
/**
|
|
26310
27250
|
* Read one document and work out what importing it would collide with.
|
|
@@ -26317,14 +27257,22 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26317
27257
|
inspectImport(text) {
|
|
26318
27258
|
const parsed = parseTeamPresetText(text);
|
|
26319
27259
|
if (!parsed.ok) return parsed;
|
|
27260
|
+
const teams = this.visibleTeams();
|
|
27261
|
+
const conflicts = importConflicts(teams, parsed.transfer);
|
|
26320
27262
|
return {
|
|
26321
27263
|
ok: true,
|
|
26322
27264
|
plan: {
|
|
26323
27265
|
transfer: parsed.transfer,
|
|
26324
|
-
|
|
27266
|
+
incoming: teamFromTransfer(parsed.transfer, ""),
|
|
27267
|
+
targetId: conflicts.targetIndex === void 0 ? void 0 : teams[conflicts.targetIndex]?.id,
|
|
27268
|
+
...conflicts
|
|
26325
27269
|
}
|
|
26326
27270
|
};
|
|
26327
27271
|
}
|
|
27272
|
+
/** Inspect the draft that the selected collision choices would stage. */
|
|
27273
|
+
previewImport(plan, resolution, assets) {
|
|
27274
|
+
return projectImport(this.visibleTeams(), plan, resolution, assets).rows;
|
|
27275
|
+
}
|
|
26328
27276
|
/**
|
|
26329
27277
|
* Stage one inspected document onto the draft.
|
|
26330
27278
|
*
|
|
@@ -26337,17 +27285,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26337
27285
|
*/
|
|
26338
27286
|
applyImport(plan, resolution) {
|
|
26339
27287
|
const draft = this.beginDraft();
|
|
26340
|
-
const
|
|
26341
|
-
if (
|
|
26342
|
-
|
|
26343
|
-
this.draft = draft.map((team, position) => position === plan.targetIndex ? merged : team);
|
|
27288
|
+
const projected = projectImport(draft, plan, resolution);
|
|
27289
|
+
if (projected.target !== void 0) {
|
|
27290
|
+
this.draft = draft.map((team) => team === projected.target ? projected.team : team);
|
|
26344
27291
|
this.publish();
|
|
26345
|
-
return
|
|
27292
|
+
return projected.team.id;
|
|
26346
27293
|
}
|
|
26347
|
-
const name = uniqueName(resolution.teamName.trim() === "" ? plan.transfer.team.name : resolution.teamName, draft.map((team) => team.name));
|
|
26348
27294
|
const created = {
|
|
26349
|
-
...
|
|
26350
|
-
|
|
27295
|
+
...projected.team,
|
|
27296
|
+
id: createTeamPreset(draft).id
|
|
26351
27297
|
};
|
|
26352
27298
|
this.draft = [...draft, created];
|
|
26353
27299
|
this.publish();
|
|
@@ -26968,6 +27914,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26968
27914
|
}, [props.controller]);
|
|
26969
27915
|
const assets = state.library?.assets ?? [];
|
|
26970
27916
|
const held = new Set(assets.filter((asset) => asset.bindings.some((row) => row.teamId === props.teamId && row.roleId === props.roleId)).map((asset) => asset.id));
|
|
27917
|
+
const [category, setCategory] = (0, react.useState)("all");
|
|
27918
|
+
const visible = category === "all" ? assets : assets.filter((asset) => skillCategoryOf(asset) === category);
|
|
26971
27919
|
if (state.status === "unavailable") return null;
|
|
26972
27920
|
return (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsxs)("div", {
|
|
26973
27921
|
className: TeamPresetsSection_module_css_default.sepTitle,
|
|
@@ -26991,16 +27939,34 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
26991
27939
|
assets.length === 0 ? (0, react_jsx_runtime.jsx)("p", {
|
|
26992
27940
|
className: TeamPresetsSection_module_css_default.muted,
|
|
26993
27941
|
children: props.t("skillsAssignEmpty")
|
|
27942
|
+
}) : (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsxs)("select", {
|
|
27943
|
+
className: TeamPresetsSection_module_css_default.select,
|
|
27944
|
+
"aria-label": props.t("skillsCategoryAll"),
|
|
27945
|
+
value: category,
|
|
27946
|
+
onChange: (event) => {
|
|
27947
|
+
setCategory(event.target.value);
|
|
27948
|
+
},
|
|
27949
|
+
children: [(0, react_jsx_runtime.jsx)("option", {
|
|
27950
|
+
value: "all",
|
|
27951
|
+
children: props.t("skillsCategoryAll")
|
|
27952
|
+
}), SKILL_CATEGORIES.map((id) => (0, react_jsx_runtime.jsx)("option", {
|
|
27953
|
+
value: id,
|
|
27954
|
+
children: props.t(SKILL_CATEGORY_LABELS[id])
|
|
27955
|
+
}, id))]
|
|
27956
|
+
}), visible.length === 0 ? (0, react_jsx_runtime.jsx)("p", {
|
|
27957
|
+
className: TeamPresetsSection_module_css_default.muted,
|
|
27958
|
+
children: props.t("skillsFilterEmpty")
|
|
26994
27959
|
}) : (0, react_jsx_runtime.jsx)("div", {
|
|
26995
27960
|
className: TeamPresetsSection_module_css_default.skillGrid,
|
|
26996
|
-
children:
|
|
27961
|
+
children: visible.map((asset) => (0, react_jsx_runtime.jsxs)("label", {
|
|
26997
27962
|
className: TeamPresetsSection_module_css_default.skillCard,
|
|
26998
27963
|
children: [
|
|
26999
27964
|
(0, react_jsx_runtime.jsxs)("span", {
|
|
27000
27965
|
className: TeamPresetsSection_module_css_default.skillCardTop,
|
|
27001
27966
|
children: [(0, react_jsx_runtime.jsx)("span", {
|
|
27002
27967
|
className: TeamPresetsSection_module_css_default.skillCardName,
|
|
27003
|
-
|
|
27968
|
+
title: asset.skillId,
|
|
27969
|
+
children: skillLabel(asset.skillId, props.t)
|
|
27004
27970
|
}), (0, react_jsx_runtime.jsx)("input", {
|
|
27005
27971
|
type: "checkbox",
|
|
27006
27972
|
checked: held.has(asset.id),
|
|
@@ -27020,7 +27986,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
27020
27986
|
})
|
|
27021
27987
|
]
|
|
27022
27988
|
}, asset.id))
|
|
27023
|
-
}),
|
|
27989
|
+
})] }),
|
|
27024
27990
|
state.message === void 0 ? null : (0, react_jsx_runtime.jsx)("p", {
|
|
27025
27991
|
className: TeamPresetsSection_module_css_default.muted,
|
|
27026
27992
|
children: state.message
|
|
@@ -28086,15 +29052,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28086
29052
|
}
|
|
28087
29053
|
|
|
28088
29054
|
|
|
28089
|
-
/**
|
|
28090
|
-
* Conflict dialog for one Team import.
|
|
28091
|
-
*
|
|
28092
|
-
* The document's Team name, captain name, and member names are the keys an
|
|
28093
|
-
* import matches on, so each one that the target Team already uses is resolved
|
|
28094
|
-
* here: overwrite the configured agent, or add the imported one under a name
|
|
28095
|
-
* that is still free. Choosing a new Team name makes the whole document a new
|
|
28096
|
-
* Team, which is why the agent collisions disappear with that choice.
|
|
28097
|
-
*/
|
|
29055
|
+
/** Review one Team import and resolve any naming conflicts before staging. */
|
|
28098
29056
|
/**
|
|
28099
29057
|
* Render one pair of collision choices.
|
|
28100
29058
|
* @param name - radio group name, unique across the dialog.
|
|
@@ -28131,11 +29089,17 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28131
29089
|
})]
|
|
28132
29090
|
});
|
|
28133
29091
|
}
|
|
28134
|
-
|
|
28135
|
-
|
|
28136
|
-
|
|
28137
|
-
|
|
28138
|
-
|
|
29092
|
+
const skillStatusKeys = {
|
|
29093
|
+
"unknown-skill": "importSkillUnknown",
|
|
29094
|
+
"missing-role": "importSkillRoleMissing",
|
|
29095
|
+
"ambiguous-role": "importSkillRoleAmbiguous",
|
|
29096
|
+
"catalog-ignored": "importSkillCatalogIgnored",
|
|
29097
|
+
"eligible": "importSkillEligible",
|
|
29098
|
+
"asset-missing": "importSkillAssetMissing",
|
|
29099
|
+
"library-unavailable": "importSkillLibraryUnavailable",
|
|
29100
|
+
"local-override": "importSkillLocalOverride"
|
|
29101
|
+
};
|
|
29102
|
+
/** Render a pending import, including any declaration that could not resolve. */
|
|
28139
29103
|
function TeamImportDialog(props) {
|
|
28140
29104
|
const { plan, t } = props;
|
|
28141
29105
|
const [teamChoice, setTeamChoice] = (0, react.useState)("replace");
|
|
@@ -28143,11 +29107,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28143
29107
|
const [captainChoice, setCaptainChoice] = (0, react.useState)("replace");
|
|
28144
29108
|
const [memberChoices, setMemberChoices] = (0, react.useState)({});
|
|
28145
29109
|
const memberChoice = (name) => memberChoices[name] ?? "replace";
|
|
28146
|
-
const
|
|
29110
|
+
const teamCollision = plan.targetIndex !== void 0;
|
|
29111
|
+
const agentCollisions = teamCollision && teamChoice === "replace" && (plan.captainConflict !== "" || plan.memberConflicts.length > 0);
|
|
29112
|
+
const resolution = {
|
|
29113
|
+
team: teamCollision ? teamChoice : "rename",
|
|
29114
|
+
teamName,
|
|
29115
|
+
captain: captainChoice,
|
|
29116
|
+
members: Object.fromEntries(plan.memberConflicts.map((name) => [name, memberChoice(name)]))
|
|
29117
|
+
};
|
|
29118
|
+
const rows = props.previewSkills(resolution);
|
|
28147
29119
|
return (0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
|
|
28148
29120
|
open: true,
|
|
28149
29121
|
onClose: props.onCancel,
|
|
28150
|
-
title: t("importConflictTitle"),
|
|
29122
|
+
title: t(teamCollision ? "importConflictTitle" : "importPreviewTitle"),
|
|
28151
29123
|
closeLabel: t("close"),
|
|
28152
29124
|
footer: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
28153
29125
|
variant: "outline",
|
|
@@ -28156,17 +29128,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28156
29128
|
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
28157
29129
|
variant: "primary",
|
|
28158
29130
|
onClick: () => {
|
|
28159
|
-
props.onConfirm(
|
|
28160
|
-
team: teamChoice,
|
|
28161
|
-
teamName,
|
|
28162
|
-
captain: captainChoice,
|
|
28163
|
-
members: Object.fromEntries(plan.memberConflicts.map((name) => [name, memberChoice(name)]))
|
|
28164
|
-
});
|
|
29131
|
+
props.onConfirm(resolution);
|
|
28165
29132
|
},
|
|
28166
29133
|
children: t("importConfirm")
|
|
28167
29134
|
})] }),
|
|
28168
29135
|
children: [
|
|
28169
|
-
(0, react_jsx_runtime.jsxs)("section", {
|
|
29136
|
+
teamCollision && (0, react_jsx_runtime.jsxs)("section", {
|
|
28170
29137
|
className: TeamPresetsSection_module_css_default.conflict,
|
|
28171
29138
|
children: [
|
|
28172
29139
|
(0, react_jsx_runtime.jsx)("span", {
|
|
@@ -28236,9 +29203,34 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28236
29203
|
}, name))
|
|
28237
29204
|
})]
|
|
28238
29205
|
})] }),
|
|
29206
|
+
["preset", "catalog"].map((source) => {
|
|
29207
|
+
const group = rows.filter((row) => row.source === source);
|
|
29208
|
+
if (group.length === 0) return null;
|
|
29209
|
+
return (0, react_jsx_runtime.jsxs)("section", {
|
|
29210
|
+
className: TeamPresetsSection_module_css_default.conflict,
|
|
29211
|
+
"aria-live": "polite",
|
|
29212
|
+
children: [(0, react_jsx_runtime.jsx)("h3", {
|
|
29213
|
+
className: TeamPresetsSection_module_css_default.conflictLead,
|
|
29214
|
+
children: t(source === "preset" ? "importSkillDeclarations" : "importSkillCatalog")
|
|
29215
|
+
}), (0, react_jsx_runtime.jsx)("ul", {
|
|
29216
|
+
className: TeamPresetsSection_module_css_default.plainRows,
|
|
29217
|
+
children: group.map((row, index) => (0, react_jsx_runtime.jsxs)("li", {
|
|
29218
|
+
className: TeamPresetsSection_module_css_default.conflictMember,
|
|
29219
|
+
children: [(0, react_jsx_runtime.jsxs)("strong", {
|
|
29220
|
+
className: TeamPresetsSection_module_css_default.conflictName,
|
|
29221
|
+
children: [
|
|
29222
|
+
row.skillId,
|
|
29223
|
+
" · ",
|
|
29224
|
+
row.roleName
|
|
29225
|
+
]
|
|
29226
|
+
}), (0, react_jsx_runtime.jsx)("span", { children: t(skillStatusKeys[row.status]) })]
|
|
29227
|
+
}, `${row.skillId}:${row.roleName}:${index}`))
|
|
29228
|
+
})]
|
|
29229
|
+
}, source);
|
|
29230
|
+
}),
|
|
28239
29231
|
(0, react_jsx_runtime.jsx)("p", {
|
|
28240
29232
|
className: TeamPresetsSection_module_css_default.dialogNote,
|
|
28241
|
-
children: t("
|
|
29233
|
+
children: t("importDraftNote")
|
|
28242
29234
|
})
|
|
28243
29235
|
]
|
|
28244
29236
|
});
|
|
@@ -28622,8 +29614,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28622
29614
|
* The library page owns discovery: search, the built-in/custom segment, and the
|
|
28623
29615
|
* three actions the prototype puts in the title row. The detail page owns one
|
|
28624
29616
|
* skill: its file tree and editor, its member references, and the deletion the
|
|
28625
|
-
* Host refuses while a member still holds it.
|
|
28626
|
-
*
|
|
29617
|
+
* Host refuses while a member still holds it. A built-in skill can be copied
|
|
29618
|
+
* here with the option to move its role bindings to the editable copy.
|
|
28627
29619
|
* @module dsh-agent-team-presets/client/TeamSkillsView
|
|
28628
29620
|
*/
|
|
28629
29621
|
/**
|
|
@@ -28652,7 +29644,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28652
29644
|
"unreadable": "skillsScanUnreadable",
|
|
28653
29645
|
"duplicate": "skillsScanDuplicate",
|
|
28654
29646
|
"duplicate-path": "skillsScanDuplicate",
|
|
28655
|
-
"install-refused": "skillsScanInstallRefused"
|
|
29647
|
+
"install-refused": "skillsScanInstallRefused",
|
|
29648
|
+
"builtin-name-conflict": "skillsScanBuiltinNameConflict",
|
|
29649
|
+
"copy-name-conflict": "skillsScanCopyNameConflict",
|
|
29650
|
+
"duplicate-source-name": "skillsScanDuplicateSourceName",
|
|
29651
|
+
"source-missing": "skillsScanSourceMissingReason",
|
|
29652
|
+
"source-changed": "skillsScanSourceChanged"
|
|
29653
|
+
};
|
|
29654
|
+
const SCAN_STATUS_KEYS = {
|
|
29655
|
+
imported: "skillsScanImported",
|
|
29656
|
+
existing: "skillsScanExisting",
|
|
29657
|
+
updated: "skillsScanUpdated",
|
|
29658
|
+
invalid: "skillsScanInvalid",
|
|
29659
|
+
missing: "skillsScanSourceMissing"
|
|
28656
29660
|
};
|
|
28657
29661
|
/** One scan row's explanation, localized when the scanner's code is known. */
|
|
28658
29662
|
function scanReasonText(entry, t) {
|
|
@@ -28660,6 +29664,41 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28660
29664
|
const label = entry.reason === void 0 ? "" : key === void 0 ? entry.reason : t(key);
|
|
28661
29665
|
return entry.detail === void 0 ? label : `${label} (${entry.detail})`;
|
|
28662
29666
|
}
|
|
29667
|
+
function ignoredDependencyText(fields, t) {
|
|
29668
|
+
return t("skillsIgnoredDependencyFields").replace("{fields}", () => fields.join(", "));
|
|
29669
|
+
}
|
|
29670
|
+
function ScanRows({ entries, pending = false, t }) {
|
|
29671
|
+
return (0, react_jsx_runtime.jsx)("ul", {
|
|
29672
|
+
className: TeamSkillsView_module_css_default.scanList,
|
|
29673
|
+
children: entries.map((entry) => {
|
|
29674
|
+
const needsAttention = entry.status === "invalid" || entry.status === "missing";
|
|
29675
|
+
const status = pending && entry.status === "imported" ? "skillsInboxNew" : pending && entry.status === "updated" ? "skillsInboxUpdated" : SCAN_STATUS_KEYS[entry.status];
|
|
29676
|
+
const tone = needsAttention ? TeamSkillsView_module_css_default.tagWarn : !pending && entry.status !== "existing" ? TeamSkillsView_module_css_default.tagOk : "";
|
|
29677
|
+
const fields = entry.ignoredDependencyFields ?? [];
|
|
29678
|
+
return (0, react_jsx_runtime.jsxs)("li", {
|
|
29679
|
+
className: TeamSkillsView_module_css_default.scanRow,
|
|
29680
|
+
children: [
|
|
29681
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
29682
|
+
className: TeamSkillsView_module_css_default.scanFolder,
|
|
29683
|
+
children: entry.folder
|
|
29684
|
+
}),
|
|
29685
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
29686
|
+
className: `${TeamSkillsView_module_css_default.tag} ${tone}`,
|
|
29687
|
+
children: t(status)
|
|
29688
|
+
}),
|
|
29689
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
29690
|
+
className: TeamSkillsView_module_css_default.muted,
|
|
29691
|
+
children: needsAttention ? scanReasonText(entry, t) : entry.assetId ?? entry.skillId ?? ""
|
|
29692
|
+
}),
|
|
29693
|
+
fields.length === 0 ? null : (0, react_jsx_runtime.jsx)("span", {
|
|
29694
|
+
className: TeamSkillsView_module_css_default.muted,
|
|
29695
|
+
children: ignoredDependencyText(fields, t)
|
|
29696
|
+
})
|
|
29697
|
+
]
|
|
29698
|
+
}, `${entry.folder}:${entry.status}:${entry.assetId ?? entry.skillId ?? ""}`);
|
|
29699
|
+
})
|
|
29700
|
+
});
|
|
29701
|
+
}
|
|
28663
29702
|
function originLabel(asset, t) {
|
|
28664
29703
|
if (asset.origin === "builtin") return t("originBuiltin");
|
|
28665
29704
|
if (asset.origin === "override") return t("originOverride");
|
|
@@ -28672,17 +29711,19 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28672
29711
|
const [page, setPage] = (0, react.useState)({ kind: "list" });
|
|
28673
29712
|
const [query, setQuery] = (0, react.useState)("");
|
|
28674
29713
|
const [origin, setOrigin] = (0, react.useState)("all");
|
|
29714
|
+
const [category, setCategory] = (0, react.useState)("all");
|
|
28675
29715
|
const [draft, setDraft] = (0, react.useState)("");
|
|
28676
29716
|
const [creating, setCreating] = (0, react.useState)(false);
|
|
28677
29717
|
const [name, setName] = (0, react.useState)("");
|
|
28678
29718
|
const [description, setDescription] = (0, react.useState)("");
|
|
29719
|
+
const [copy, setCopy] = (0, react.useState)(void 0);
|
|
28679
29720
|
const [confirmDelete, setConfirmDelete] = (0, react.useState)(false);
|
|
28680
29721
|
const [deleteOutcome, setDeleteOutcome] = (0, react.useState)(void 0);
|
|
28681
29722
|
(0, react.useEffect)(() => {
|
|
28682
29723
|
const unsubscribe = controller.subscribe(() => {
|
|
28683
29724
|
setState(controller.getSnapshot());
|
|
28684
29725
|
});
|
|
28685
|
-
controller.refresh();
|
|
29726
|
+
controller.refresh(true);
|
|
28686
29727
|
return unsubscribe;
|
|
28687
29728
|
}, [controller]);
|
|
28688
29729
|
(0, react.useEffect)(() => {
|
|
@@ -28691,15 +29732,20 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28691
29732
|
const assets = state.library?.assets ?? [];
|
|
28692
29733
|
const visible = (0, react.useMemo)(() => assets.filter((asset) => {
|
|
28693
29734
|
const matchesOrigin = origin === "all" || (origin === "builtin" ? asset.origin === "builtin" : asset.origin !== "builtin");
|
|
28694
|
-
const
|
|
28695
|
-
|
|
29735
|
+
const matchesCategory = category === "all" || skillCategoryOf(asset) === category;
|
|
29736
|
+
const haystack = `${skillLabel(asset.skillId, t)} ${asset.skillId} ${asset.description}`.toLocaleLowerCase();
|
|
29737
|
+
return matchesOrigin && matchesCategory && query.trim().split(/\s+/u).every((token) => haystack.includes(token.toLocaleLowerCase()));
|
|
28696
29738
|
}), [
|
|
28697
29739
|
assets,
|
|
28698
29740
|
origin,
|
|
28699
|
-
|
|
29741
|
+
category,
|
|
29742
|
+
query,
|
|
29743
|
+
t
|
|
28700
29744
|
]);
|
|
28701
|
-
const detail = state.detail;
|
|
28702
|
-
const
|
|
29745
|
+
const detail = page.kind === "detail" && state.detail?.asset.id === page.assetId ? state.detail : void 0;
|
|
29746
|
+
const copyTitle = detail === void 0 ? "" : t("skillsMakeCopyTitle").replace("{skill}", () => skillLabel(detail.asset.skillId, t));
|
|
29747
|
+
const ignoredFields = detail?.ignoredDependencyFields ?? [];
|
|
29748
|
+
const inboxChanges = (state.inboxChanges ?? []).filter((entry) => entry.status !== "existing");
|
|
28703
29749
|
/**
|
|
28704
29750
|
* Pick a folder and hand its files to the Host.
|
|
28705
29751
|
* @param list - the picker's files.
|
|
@@ -28715,7 +29761,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28715
29761
|
content: new Uint8Array(await file.arrayBuffer())
|
|
28716
29762
|
});
|
|
28717
29763
|
}
|
|
28718
|
-
await controller.importFolder(files);
|
|
29764
|
+
const assetId = await controller.importFolder(files);
|
|
29765
|
+
if (assetId !== void 0) setPage({
|
|
29766
|
+
kind: "detail",
|
|
29767
|
+
assetId
|
|
29768
|
+
});
|
|
28719
29769
|
};
|
|
28720
29770
|
if (state.status === "unavailable") return (0, react_jsx_runtime.jsxs)("div", {
|
|
28721
29771
|
className: TeamSkillsView_module_css_default.page,
|
|
@@ -28734,17 +29784,25 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28734
29784
|
className: TeamSkillsView_module_css_default.crumb,
|
|
28735
29785
|
onClick: () => {
|
|
28736
29786
|
setPage({ kind: "list" });
|
|
29787
|
+
setCopy(void 0);
|
|
28737
29788
|
setConfirmDelete(false);
|
|
28738
29789
|
setDeleteOutcome(void 0);
|
|
28739
29790
|
},
|
|
28740
29791
|
children: ["‹ ", t("skillsTitle")]
|
|
28741
|
-
}), detail === void 0
|
|
29792
|
+
}), detail === void 0 ? (0, react_jsx_runtime.jsx)("div", {
|
|
28742
29793
|
className: TeamSkillsView_module_css_default.empty,
|
|
28743
29794
|
children: t("skillsEmpty")
|
|
28744
29795
|
}) : (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [
|
|
28745
|
-
(0, react_jsx_runtime.
|
|
29796
|
+
(0, react_jsx_runtime.jsxs)("h2", {
|
|
28746
29797
|
className: TeamSkillsView_module_css_default.title,
|
|
28747
|
-
children:
|
|
29798
|
+
children: [
|
|
29799
|
+
skillLabel(detail.asset.skillId, t),
|
|
29800
|
+
" ",
|
|
29801
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
29802
|
+
className: TeamSkillsView_module_css_default.muted,
|
|
29803
|
+
children: detail.asset.skillId
|
|
29804
|
+
})
|
|
29805
|
+
]
|
|
28748
29806
|
}),
|
|
28749
29807
|
(0, react_jsx_runtime.jsx)("p", {
|
|
28750
29808
|
className: TeamSkillsView_module_css_default.sub,
|
|
@@ -28812,6 +29870,15 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28812
29870
|
] })
|
|
28813
29871
|
});
|
|
28814
29872
|
})(),
|
|
29873
|
+
ignoredFields.length === 0 ? null : (0, react_jsx_runtime.jsx)("div", {
|
|
29874
|
+
className: TeamSkillsView_module_css_default.info,
|
|
29875
|
+
children: ignoredDependencyText(ignoredFields, t)
|
|
29876
|
+
}),
|
|
29877
|
+
detail.bindingSwitchIssue === void 0 ? null : (0, react_jsx_runtime.jsx)("div", {
|
|
29878
|
+
className: `${TeamSkillsView_module_css_default.info} ${TeamSkillsView_module_css_default.infoError}`,
|
|
29879
|
+
role: "status",
|
|
29880
|
+
children: t("skillsMakeCopySwitchIssue").replace("{issue}", () => detail.bindingSwitchIssue ?? "")
|
|
29881
|
+
}),
|
|
28815
29882
|
(0, react_jsx_runtime.jsx)("div", {
|
|
28816
29883
|
className: TeamSkillsView_module_css_default.sectionTitle,
|
|
28817
29884
|
children: t("skillsResources")
|
|
@@ -28853,8 +29920,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28853
29920
|
},
|
|
28854
29921
|
children: t("skillsSaveFile")
|
|
28855
29922
|
}) : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
29923
|
+
disabled: state.busy,
|
|
28856
29924
|
onClick: () => {
|
|
28857
|
-
|
|
29925
|
+
setCopy({
|
|
29926
|
+
switchBindings: false,
|
|
29927
|
+
attempted: false
|
|
29928
|
+
});
|
|
28858
29929
|
},
|
|
28859
29930
|
children: t("skillsMakeCopy")
|
|
28860
29931
|
}),
|
|
@@ -28947,10 +30018,70 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
28947
30018
|
]
|
|
28948
30019
|
}, row.name))] })]
|
|
28949
30020
|
}),
|
|
28950
|
-
state.message === void 0 ? null : (0, react_jsx_runtime.jsx)("div", {
|
|
30021
|
+
state.message === void 0 || copy !== void 0 ? null : (0, react_jsx_runtime.jsx)("div", {
|
|
28951
30022
|
className: `${TeamSkillsView_module_css_default.message} ${state.failed ? TeamSkillsView_module_css_default.messageFailed : ""}`,
|
|
28952
30023
|
children: state.message
|
|
28953
30024
|
}),
|
|
30025
|
+
copy === void 0 ? null : (0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
|
|
30026
|
+
open: true,
|
|
30027
|
+
headless: true,
|
|
30028
|
+
title: copyTitle,
|
|
30029
|
+
className: TeamSkillsView_module_css_default.dialog ?? "",
|
|
30030
|
+
backdropBlur: false,
|
|
30031
|
+
onClose: () => {
|
|
30032
|
+
if (!state.busy) setCopy(void 0);
|
|
30033
|
+
},
|
|
30034
|
+
children: [
|
|
30035
|
+
(0, react_jsx_runtime.jsx)("h2", { children: copyTitle }),
|
|
30036
|
+
(0, react_jsx_runtime.jsxs)("label", {
|
|
30037
|
+
className: TeamSkillsView_module_css_default.label,
|
|
30038
|
+
children: [(0, react_jsx_runtime.jsx)("input", {
|
|
30039
|
+
type: "checkbox",
|
|
30040
|
+
"data-modal-autofocus": true,
|
|
30041
|
+
checked: copy.switchBindings,
|
|
30042
|
+
disabled: state.busy,
|
|
30043
|
+
onChange: (event) => {
|
|
30044
|
+
setCopy({
|
|
30045
|
+
...copy,
|
|
30046
|
+
switchBindings: event.target.checked
|
|
30047
|
+
});
|
|
30048
|
+
}
|
|
30049
|
+
}), t("skillsMakeCopySwitchBindings").replace("{count}", String(detail.asset.bindings.length))]
|
|
30050
|
+
}),
|
|
30051
|
+
copy.attempted && state.message !== void 0 ? (0, react_jsx_runtime.jsx)("div", {
|
|
30052
|
+
className: `${TeamSkillsView_module_css_default.message} ${TeamSkillsView_module_css_default.messageFailed}`,
|
|
30053
|
+
role: "alert",
|
|
30054
|
+
children: state.message
|
|
30055
|
+
}) : null,
|
|
30056
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
30057
|
+
className: TeamSkillsView_module_css_default.dialogActions,
|
|
30058
|
+
children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
30059
|
+
disabled: state.busy,
|
|
30060
|
+
onClick: () => {
|
|
30061
|
+
setCopy(void 0);
|
|
30062
|
+
},
|
|
30063
|
+
children: t("skillsCancel")
|
|
30064
|
+
}), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
30065
|
+
disabled: state.busy,
|
|
30066
|
+
onClick: () => {
|
|
30067
|
+
setCopy({
|
|
30068
|
+
...copy,
|
|
30069
|
+
attempted: true
|
|
30070
|
+
});
|
|
30071
|
+
controller.createOverride(detail.asset.skillId, copy.switchBindings).then((assetId) => {
|
|
30072
|
+
if (assetId === void 0) return;
|
|
30073
|
+
setPage({
|
|
30074
|
+
kind: "detail",
|
|
30075
|
+
assetId
|
|
30076
|
+
});
|
|
30077
|
+
setCopy(void 0);
|
|
30078
|
+
});
|
|
30079
|
+
},
|
|
30080
|
+
children: t("skillsMakeCopy")
|
|
30081
|
+
})]
|
|
30082
|
+
})
|
|
30083
|
+
]
|
|
30084
|
+
}),
|
|
28954
30085
|
confirmDelete ? (0, react_jsx_runtime.jsx)("div", {
|
|
28955
30086
|
className: TeamSkillsView_module_css_default.dialogBackdrop,
|
|
28956
30087
|
onClick: () => {
|
|
@@ -29094,11 +30225,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29094
30225
|
style: { display: "none" },
|
|
29095
30226
|
onChange: (event) => {
|
|
29096
30227
|
importFolder(event.target.files);
|
|
30228
|
+
event.target.value = "";
|
|
29097
30229
|
},
|
|
29098
30230
|
webkitdirectory: ""
|
|
29099
30231
|
}),
|
|
29100
30232
|
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
29101
30233
|
variant: "outline",
|
|
30234
|
+
disabled: state.busy,
|
|
29102
30235
|
onClick: () => {
|
|
29103
30236
|
document.getElementById("team-skill-import")?.click();
|
|
29104
30237
|
},
|
|
@@ -29106,6 +30239,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29106
30239
|
}),
|
|
29107
30240
|
(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
|
|
29108
30241
|
variant: "outline",
|
|
30242
|
+
disabled: state.busy,
|
|
29109
30243
|
onClick: () => {
|
|
29110
30244
|
controller.scanImportFolder();
|
|
29111
30245
|
},
|
|
@@ -29113,12 +30247,24 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29113
30247
|
})
|
|
29114
30248
|
]
|
|
29115
30249
|
}),
|
|
30250
|
+
inboxChanges.length === 0 ? null : (0, react_jsx_runtime.jsxs)("div", {
|
|
30251
|
+
className: TeamSkillsView_module_css_default.scan,
|
|
30252
|
+
children: [(0, react_jsx_runtime.jsx)("div", {
|
|
30253
|
+
className: TeamSkillsView_module_css_default.scanHead,
|
|
30254
|
+
role: "status",
|
|
30255
|
+
children: t("skillsInboxChanges").replace("{count}", String(inboxChanges.length))
|
|
30256
|
+
}), (0, react_jsx_runtime.jsx)(ScanRows, {
|
|
30257
|
+
entries: inboxChanges,
|
|
30258
|
+
pending: true,
|
|
30259
|
+
t
|
|
30260
|
+
})]
|
|
30261
|
+
}),
|
|
29116
30262
|
state.scan === void 0 ? null : (0, react_jsx_runtime.jsxs)("div", {
|
|
29117
30263
|
className: TeamSkillsView_module_css_default.scan,
|
|
29118
30264
|
children: [
|
|
29119
30265
|
(0, react_jsx_runtime.jsx)("div", {
|
|
29120
30266
|
className: TeamSkillsView_module_css_default.scanHead,
|
|
29121
|
-
children: t("skillsScanSummary").replace("{scanned}", String(state.scan.scanned)).replace("{imported}", String(state.scan.imported)).replace("{existing}", String(state.scan.existing)).replace("{invalid}", String(state.scan.invalid))
|
|
30267
|
+
children: t("skillsScanSummary").replace("{scanned}", String(state.scan.scanned)).replace("{imported}", String(state.scan.imported)).replace("{updated}", String(state.scan.updated ?? 0)).replace("{existing}", String(state.scan.existing)).replace("{missing}", String(state.scan.missing ?? 0)).replace("{invalid}", String(state.scan.invalid))
|
|
29122
30268
|
}),
|
|
29123
30269
|
(0, react_jsx_runtime.jsxs)("div", {
|
|
29124
30270
|
className: TeamSkillsView_module_css_default.muted,
|
|
@@ -29131,38 +30277,36 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29131
30277
|
state.scan.entries.length === 0 ? (0, react_jsx_runtime.jsx)("div", {
|
|
29132
30278
|
className: TeamSkillsView_module_css_default.muted,
|
|
29133
30279
|
children: t("skillsScanEmpty")
|
|
29134
|
-
}) : (0, react_jsx_runtime.jsx)(
|
|
29135
|
-
|
|
29136
|
-
|
|
29137
|
-
className: TeamSkillsView_module_css_default.scanRow,
|
|
29138
|
-
children: [
|
|
29139
|
-
(0, react_jsx_runtime.jsx)("span", {
|
|
29140
|
-
className: TeamSkillsView_module_css_default.scanFolder,
|
|
29141
|
-
children: entry.folder
|
|
29142
|
-
}),
|
|
29143
|
-
(0, react_jsx_runtime.jsx)("span", {
|
|
29144
|
-
className: `${TeamSkillsView_module_css_default.tag} ${entry.status === "imported" ? TeamSkillsView_module_css_default.tagOk : entry.status === "invalid" ? TeamSkillsView_module_css_default.tagWarn : ""}`,
|
|
29145
|
-
children: t(entry.status === "imported" ? "skillsScanImported" : entry.status === "existing" ? "skillsScanExisting" : "skillsScanInvalid")
|
|
29146
|
-
}),
|
|
29147
|
-
(0, react_jsx_runtime.jsx)("span", {
|
|
29148
|
-
className: TeamSkillsView_module_css_default.muted,
|
|
29149
|
-
children: entry.status === "invalid" ? scanReasonText(entry, t) : entry.assetId ?? entry.skillId ?? ""
|
|
29150
|
-
})
|
|
29151
|
-
]
|
|
29152
|
-
}, entry.folder))
|
|
30280
|
+
}) : (0, react_jsx_runtime.jsx)(ScanRows, {
|
|
30281
|
+
entries: state.scan.entries,
|
|
30282
|
+
t
|
|
29153
30283
|
})
|
|
29154
30284
|
]
|
|
29155
30285
|
}),
|
|
29156
|
-
(0, react_jsx_runtime.
|
|
30286
|
+
(0, react_jsx_runtime.jsxs)("div", {
|
|
29157
30287
|
className: TeamSkillsView_module_css_default.toolbar,
|
|
29158
|
-
children: (0, react_jsx_runtime.jsx)("input", {
|
|
30288
|
+
children: [(0, react_jsx_runtime.jsx)("input", {
|
|
29159
30289
|
className: TeamSkillsView_module_css_default.search,
|
|
29160
30290
|
value: query,
|
|
29161
30291
|
placeholder: t("skillsSearch"),
|
|
29162
30292
|
onChange: (event) => {
|
|
29163
30293
|
setQuery(event.target.value);
|
|
29164
30294
|
}
|
|
29165
|
-
})
|
|
30295
|
+
}), (0, react_jsx_runtime.jsxs)("select", {
|
|
30296
|
+
className: TeamPresetsSection_module_css_default.select,
|
|
30297
|
+
"aria-label": t("skillsCategoryAll"),
|
|
30298
|
+
value: category,
|
|
30299
|
+
onChange: (event) => {
|
|
30300
|
+
setCategory(event.target.value);
|
|
30301
|
+
},
|
|
30302
|
+
children: [(0, react_jsx_runtime.jsx)("option", {
|
|
30303
|
+
value: "all",
|
|
30304
|
+
children: t("skillsCategoryAll")
|
|
30305
|
+
}), SKILL_CATEGORIES.map((id) => (0, react_jsx_runtime.jsx)("option", {
|
|
30306
|
+
value: id,
|
|
30307
|
+
children: t(SKILL_CATEGORY_LABELS[id])
|
|
30308
|
+
}, id))]
|
|
30309
|
+
})]
|
|
29166
30310
|
}),
|
|
29167
30311
|
(0, react_jsx_runtime.jsxs)("div", {
|
|
29168
30312
|
className: TeamSkillsView_module_css_default.segment,
|
|
@@ -29197,7 +30341,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29197
30341
|
className: TeamSkillsView_module_css_default.rowlist,
|
|
29198
30342
|
children: visible.length === 0 ? (0, react_jsx_runtime.jsx)("div", {
|
|
29199
30343
|
className: TeamSkillsView_module_css_default.empty,
|
|
29200
|
-
children: t("skillsEmpty")
|
|
30344
|
+
children: assets.length === 0 ? t("skillsEmpty") : t("skillsFilterEmpty")
|
|
29201
30345
|
}) : visible.map((asset) => (0, react_jsx_runtime.jsxs)("button", {
|
|
29202
30346
|
type: "button",
|
|
29203
30347
|
className: TeamSkillsView_module_css_default.row,
|
|
@@ -29215,7 +30359,11 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29215
30359
|
children: [(0, react_jsx_runtime.jsxs)("span", {
|
|
29216
30360
|
className: TeamSkillsView_module_css_default.rowTitle,
|
|
29217
30361
|
children: [
|
|
29218
|
-
asset.skillId,
|
|
30362
|
+
skillLabel(asset.skillId, t),
|
|
30363
|
+
(0, react_jsx_runtime.jsx)("span", {
|
|
30364
|
+
className: TeamSkillsView_module_css_default.muted,
|
|
30365
|
+
children: asset.skillId
|
|
30366
|
+
}),
|
|
29219
30367
|
(0, react_jsx_runtime.jsx)("span", {
|
|
29220
30368
|
className: `${TeamPresetsSection_module_css_default.originTag} ${originTone(TeamPresetsSection_module_css_default, asset.origin)}`,
|
|
29221
30369
|
children: originLabel(asset, t)
|
|
@@ -29455,6 +30603,23 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29455
30603
|
return (target.supportedVersions ?? [target.supportedVersion]).join(", ");
|
|
29456
30604
|
}
|
|
29457
30605
|
/**
|
|
30606
|
+
* The reason one row cannot be acted on.
|
|
30607
|
+
*
|
|
30608
|
+
* The Host states every refusal in English. The one an operator has to act on —
|
|
30609
|
+
* an installed upstream version this build predates — is restated here in the
|
|
30610
|
+
* reader's own language with both versions named, because "which one do I
|
|
30611
|
+
* update" is the only question that state raises, and reading it off two fields
|
|
30612
|
+
* is work the row can do itself. Every other refusal keeps the Host's sentence:
|
|
30613
|
+
* this view has nothing to add to those.
|
|
30614
|
+
* @param target - the row.
|
|
30615
|
+
* @param t - the page's copy reader.
|
|
30616
|
+
* @returns the sentence to show, or undefined when the row has no reason to give.
|
|
30617
|
+
*/
|
|
30618
|
+
function reasonOf(target, t) {
|
|
30619
|
+
if (target.state !== "unsupported") return target.detail;
|
|
30620
|
+
return t("patchUnsupportedReason").replace("{installed}", target.installedVersion ?? "—").replace("{supported}", target.supportedVersion);
|
|
30621
|
+
}
|
|
30622
|
+
/**
|
|
29458
30623
|
* Render one target with its state and the action that state allows.
|
|
29459
30624
|
* @param props - the row facts and the action callback.
|
|
29460
30625
|
* @returns the row.
|
|
@@ -29497,9 +30662,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29497
30662
|
})
|
|
29498
30663
|
]
|
|
29499
30664
|
}),
|
|
29500
|
-
target
|
|
30665
|
+
reasonOf(target, t) === void 0 ? null : (0, react_jsx_runtime.jsx)("p", {
|
|
29501
30666
|
className: CardPatchView_module_css_default.detail,
|
|
29502
|
-
children: target
|
|
30667
|
+
children: reasonOf(target, t)
|
|
29503
30668
|
}),
|
|
29504
30669
|
busy && phase !== void 0 ? (0, react_jsx_runtime.jsxs)("p", {
|
|
29505
30670
|
className: CardPatchView_module_css_default.progress,
|
|
@@ -29610,6 +30775,8 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29610
30775
|
* The Agent Team presets settings page: three stacked pages — the Team list,
|
|
29611
30776
|
* one Team's roster, and one captain or member — with a shared save footer.
|
|
29612
30777
|
*/
|
|
30778
|
+
const noSkillUpdates = () => () => {};
|
|
30779
|
+
const noSkillSnapshot = () => void 0;
|
|
29613
30780
|
/**
|
|
29614
30781
|
* One tab in the section's own tab bar.
|
|
29615
30782
|
* @param props - active state, click handler, and label.
|
|
@@ -29705,7 +30872,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29705
30872
|
const [importError, setImportError] = (0, react.useState)(void 0);
|
|
29706
30873
|
const [importPlan, setImportPlan] = (0, react.useState)(void 0);
|
|
29707
30874
|
const [importGeneration, setImportGeneration] = (0, react.useState)(0);
|
|
29708
|
-
const { refreshCatalogue } = props;
|
|
30875
|
+
const { refreshCatalogue, skills } = props;
|
|
30876
|
+
const skillState = (0, react.useSyncExternalStore)(skills?.subscribe ?? noSkillUpdates, skills?.getSnapshot ?? noSkillSnapshot);
|
|
30877
|
+
const importAssets = skillState?.status === "ready" ? skillState.library?.assets : void 0;
|
|
29709
30878
|
(0, react.useEffect)(() => {
|
|
29710
30879
|
refreshCatalogue();
|
|
29711
30880
|
}, [refreshCatalogue]);
|
|
@@ -29811,12 +30980,16 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29811
30980
|
return;
|
|
29812
30981
|
}
|
|
29813
30982
|
setImportError(void 0);
|
|
29814
|
-
|
|
29815
|
-
|
|
30983
|
+
const resolution = defaultImportResolution(inspection.plan);
|
|
30984
|
+
const preview = props.previewImport(inspection.plan, resolution, importAssets);
|
|
30985
|
+
if (inspection.plan.targetIndex === void 0 && preview.length === 0) {
|
|
30986
|
+
setImportPlan(void 0);
|
|
30987
|
+
openTeam(props.applyImport(inspection.plan, resolution));
|
|
29816
30988
|
return;
|
|
29817
30989
|
}
|
|
29818
30990
|
setImportGeneration((generation) => generation + 1);
|
|
29819
30991
|
setImportPlan(inspection.plan);
|
|
30992
|
+
if (preview.length > 0) skills?.refresh();
|
|
29820
30993
|
}
|
|
29821
30994
|
/**
|
|
29822
30995
|
* Write one Team out as a shareable document.
|
|
@@ -29983,6 +31156,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
29983
31156
|
importPlan === void 0 ? null : (0, react_jsx_runtime.jsx)(TeamImportDialog, {
|
|
29984
31157
|
plan: importPlan,
|
|
29985
31158
|
t,
|
|
31159
|
+
previewSkills: (resolution) => props.previewImport(importPlan, resolution, importAssets),
|
|
29986
31160
|
onCancel: () => {
|
|
29987
31161
|
setImportPlan(void 0);
|
|
29988
31162
|
},
|
|
@@ -30110,6 +31284,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30110
31284
|
issue: void 0,
|
|
30111
31285
|
file: void 0,
|
|
30112
31286
|
fileText: void 0,
|
|
31287
|
+
inboxChanges: [],
|
|
30113
31288
|
scan: void 0,
|
|
30114
31289
|
canOpenScanFolder: false,
|
|
30115
31290
|
scanFolderPath: void 0,
|
|
@@ -30118,6 +31293,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30118
31293
|
listeners = /* @__PURE__ */ new Set();
|
|
30119
31294
|
ctx;
|
|
30120
31295
|
disposed = false;
|
|
31296
|
+
pendingInboxCheck = false;
|
|
31297
|
+
libraryRequest = 0;
|
|
31298
|
+
inboxRequest = 0;
|
|
30121
31299
|
/**
|
|
30122
31300
|
* The Remote namespace, once the gateway announces it.
|
|
30123
31301
|
*
|
|
@@ -30136,7 +31314,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30136
31314
|
try {
|
|
30137
31315
|
ctx.inject(["remote.teamSkills"], (scope) => {
|
|
30138
31316
|
this.service = scope.remote.teamSkills;
|
|
30139
|
-
this.
|
|
31317
|
+
const checkInbox = this.pendingInboxCheck;
|
|
31318
|
+
this.pendingInboxCheck = false;
|
|
31319
|
+
this.refresh(checkInbox);
|
|
30140
31320
|
return () => {
|
|
30141
31321
|
this.service = void 0;
|
|
30142
31322
|
};
|
|
@@ -30253,31 +31433,40 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30253
31433
|
};
|
|
30254
31434
|
for (const listener of this.listeners) listener();
|
|
30255
31435
|
}
|
|
30256
|
-
/** Read the library
|
|
30257
|
-
async refresh() {
|
|
31436
|
+
/** Read the library, optionally checking the inbox for pending changes. */
|
|
31437
|
+
async refresh(checkInbox = false) {
|
|
31438
|
+
if (checkInbox && this.service === void 0) this.pendingInboxCheck = true;
|
|
31439
|
+
const request = ++this.libraryRequest;
|
|
31440
|
+
if (checkInbox) this.inboxRequest = request;
|
|
30258
31441
|
this.publish({ status: this.state.library === void 0 ? "loading" : "ready" });
|
|
30259
31442
|
try {
|
|
30260
|
-
const
|
|
30261
|
-
const
|
|
30262
|
-
if (issue
|
|
31443
|
+
const api = this.api();
|
|
31444
|
+
const library = unwrap$1(await (checkInbox ? api.library(true) : api.library()));
|
|
31445
|
+
if (checkInbox && request === this.inboxRequest && library.issue === void 0) this.publish({ inboxChanges: library.inboxChanges ?? [] });
|
|
31446
|
+
if (request !== this.libraryRequest) return;
|
|
31447
|
+
if (library.issue !== void 0) {
|
|
30263
31448
|
this.publish({
|
|
30264
31449
|
status: "unavailable",
|
|
30265
31450
|
library: void 0,
|
|
30266
|
-
issue
|
|
31451
|
+
issue: library.issue
|
|
30267
31452
|
});
|
|
30268
31453
|
return;
|
|
30269
31454
|
}
|
|
31455
|
+
const selectedId = this.state.selectedId;
|
|
31456
|
+
const selectionGone = selectedId !== void 0 && !library.assets.some((asset) => asset.id === selectedId);
|
|
30270
31457
|
this.publish({
|
|
30271
31458
|
status: "ready",
|
|
30272
31459
|
library,
|
|
30273
|
-
issue: void 0
|
|
30274
|
-
|
|
30275
|
-
|
|
30276
|
-
|
|
30277
|
-
|
|
31460
|
+
issue: void 0,
|
|
31461
|
+
...selectionGone ? {
|
|
31462
|
+
selectedId: void 0,
|
|
31463
|
+
detail: void 0,
|
|
31464
|
+
file: void 0,
|
|
31465
|
+
fileText: void 0
|
|
31466
|
+
} : {}
|
|
30278
31467
|
});
|
|
30279
31468
|
} catch (error) {
|
|
30280
|
-
this.publish({
|
|
31469
|
+
if (request === this.libraryRequest) this.publish({
|
|
30281
31470
|
status: "unavailable",
|
|
30282
31471
|
issue: String(error)
|
|
30283
31472
|
});
|
|
@@ -30290,7 +31479,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30290
31479
|
async select(assetId) {
|
|
30291
31480
|
this.publish({
|
|
30292
31481
|
selectedId: assetId,
|
|
30293
|
-
detail: void 0
|
|
31482
|
+
detail: void 0,
|
|
31483
|
+
file: void 0,
|
|
31484
|
+
fileText: void 0
|
|
30294
31485
|
});
|
|
30295
31486
|
const answer = unwrap$1(await this.api().detail(assetId));
|
|
30296
31487
|
if (this.disposed || this.state.selectedId !== assetId) return;
|
|
@@ -30317,14 +31508,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30317
31508
|
});
|
|
30318
31509
|
try {
|
|
30319
31510
|
const answer = unwrap$1(await this.api().readFile(assetId, path));
|
|
30320
|
-
if (this.state.file !== path) return;
|
|
31511
|
+
if (this.state.selectedId !== assetId || this.state.file !== path) return;
|
|
30321
31512
|
if ("text" in answer) this.publish({ fileText: answer.text });
|
|
30322
31513
|
else this.publish({
|
|
30323
31514
|
message: answer.detail,
|
|
30324
31515
|
failed: true
|
|
30325
31516
|
});
|
|
30326
31517
|
} catch (error) {
|
|
30327
|
-
this.publish({
|
|
31518
|
+
if (this.state.selectedId === assetId && this.state.file === path) this.publish({
|
|
30328
31519
|
message: String(error),
|
|
30329
31520
|
failed: true
|
|
30330
31521
|
});
|
|
@@ -30338,12 +31529,13 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30338
31529
|
async saveFile(path, text) {
|
|
30339
31530
|
const assetId = this.state.selectedId;
|
|
30340
31531
|
if (assetId === void 0) return;
|
|
31532
|
+
const version = this.state.detail?.asset.version;
|
|
30341
31533
|
await this.run(async () => {
|
|
30342
|
-
const answer = unwrap$1(await this.api().writeFile(assetId, path, text));
|
|
31534
|
+
const answer = unwrap$1(await this.api().writeFile(assetId, path, text, version));
|
|
30343
31535
|
if (!isDetail(answer)) return answer.detail;
|
|
30344
|
-
this.publish({ detail: answer });
|
|
30345
|
-
await this.refresh();
|
|
30346
|
-
await this.openFile(path);
|
|
31536
|
+
if (this.state.selectedId === assetId) this.publish({ detail: answer });
|
|
31537
|
+
await this.refresh(true);
|
|
31538
|
+
if (this.state.selectedId === assetId) await this.openFile(path);
|
|
30347
31539
|
return "saved";
|
|
30348
31540
|
});
|
|
30349
31541
|
}
|
|
@@ -30360,13 +31552,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30360
31552
|
detail: answer,
|
|
30361
31553
|
selectedId: answer.asset.id
|
|
30362
31554
|
});
|
|
30363
|
-
await this.refresh();
|
|
31555
|
+
await this.refresh(true);
|
|
30364
31556
|
return "created";
|
|
30365
31557
|
});
|
|
30366
31558
|
}
|
|
30367
31559
|
/**
|
|
30368
31560
|
* Import one folder the user picked.
|
|
30369
31561
|
* @param files - the picker's files, already carrying relative paths.
|
|
31562
|
+
* @returns the asset identity when the folder was imported.
|
|
30370
31563
|
*/
|
|
30371
31564
|
async importFolder(files) {
|
|
30372
31565
|
if (files.length === 0) return;
|
|
@@ -30374,16 +31567,14 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30374
31567
|
path: file.path,
|
|
30375
31568
|
base64: encodeBase64(file.content)
|
|
30376
31569
|
}));
|
|
31570
|
+
let importedId;
|
|
30377
31571
|
await this.run(async () => {
|
|
30378
31572
|
const answer = unwrap$1(await this.api().importSkill(payload));
|
|
30379
31573
|
if (!isDetail(answer)) return answer.detail;
|
|
30380
|
-
this.
|
|
30381
|
-
detail: answer,
|
|
30382
|
-
selectedId: answer.asset.id
|
|
30383
|
-
});
|
|
30384
|
-
await this.refresh();
|
|
31574
|
+
importedId = await this.showCreatedAsset(answer);
|
|
30385
31575
|
return "imported";
|
|
30386
31576
|
});
|
|
31577
|
+
return importedId;
|
|
30387
31578
|
}
|
|
30388
31579
|
/**
|
|
30389
31580
|
* Scan the Host's import folder and publish every new legal skill.
|
|
@@ -30399,25 +31590,37 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30399
31590
|
return answer.detail;
|
|
30400
31591
|
}
|
|
30401
31592
|
this.publish({ scan: answer });
|
|
30402
|
-
await this.refresh();
|
|
31593
|
+
await this.refresh(true);
|
|
30403
31594
|
return "scanned";
|
|
30404
31595
|
});
|
|
30405
31596
|
}
|
|
30406
31597
|
/**
|
|
30407
31598
|
* Copy one shipped skill into an editable override.
|
|
30408
31599
|
* @param skillId - shipped skill id.
|
|
31600
|
+
* @param switchBindings - whether to move current role bindings to the copy.
|
|
31601
|
+
* @returns the copy's asset identity when the Host created it.
|
|
30409
31602
|
*/
|
|
30410
|
-
async createOverride(skillId) {
|
|
31603
|
+
async createOverride(skillId, switchBindings) {
|
|
31604
|
+
let copyId;
|
|
30411
31605
|
await this.run(async () => {
|
|
30412
|
-
const answer = unwrap$1(await this.api().overrideSkill(skillId));
|
|
31606
|
+
const answer = unwrap$1(await this.api().overrideSkill(skillId, switchBindings));
|
|
30413
31607
|
if (!isDetail(answer)) return answer.detail;
|
|
30414
|
-
this.
|
|
30415
|
-
detail: answer,
|
|
30416
|
-
selectedId: answer.asset.id
|
|
30417
|
-
});
|
|
30418
|
-
await this.refresh();
|
|
31608
|
+
copyId = await this.showCreatedAsset(answer);
|
|
30419
31609
|
return "override-created";
|
|
30420
31610
|
});
|
|
31611
|
+
return copyId;
|
|
31612
|
+
}
|
|
31613
|
+
async showCreatedAsset(detail) {
|
|
31614
|
+
await this.refresh(true);
|
|
31615
|
+
const assetId = detail.asset.id;
|
|
31616
|
+
this.publish({
|
|
31617
|
+
selectedId: assetId,
|
|
31618
|
+
detail,
|
|
31619
|
+
file: void 0,
|
|
31620
|
+
fileText: void 0
|
|
31621
|
+
});
|
|
31622
|
+
await this.openFile("SKILL.md");
|
|
31623
|
+
return assetId;
|
|
30421
31624
|
}
|
|
30422
31625
|
/**
|
|
30423
31626
|
* Discard one override's edits by re-copying the shipped skill.
|
|
@@ -30427,7 +31630,10 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30427
31630
|
await this.run(async () => {
|
|
30428
31631
|
const answer = unwrap$1(await this.api().resetSkill(assetId));
|
|
30429
31632
|
if (!isDetail(answer)) return answer.detail;
|
|
30430
|
-
this.
|
|
31633
|
+
if (this.state.selectedId === assetId) {
|
|
31634
|
+
this.publish({ detail: answer });
|
|
31635
|
+
await this.openFile("SKILL.md");
|
|
31636
|
+
}
|
|
30431
31637
|
await this.refresh();
|
|
30432
31638
|
return "override-reset";
|
|
30433
31639
|
});
|
|
@@ -30441,7 +31647,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30441
31647
|
let outcome;
|
|
30442
31648
|
await this.run(async () => {
|
|
30443
31649
|
outcome = unwrap$1(await this.api().deleteAsset(assetId));
|
|
30444
|
-
await this.refresh();
|
|
31650
|
+
await this.refresh(outcome.ok);
|
|
30445
31651
|
if (!outcome.ok) return outcome.blockers.map((blocker) => `${blocker.kind}: ${blocker.detail}`).join("; ");
|
|
30446
31652
|
this.publish({
|
|
30447
31653
|
selectedId: void 0,
|
|
@@ -30533,7 +31739,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
30533
31739
|
});
|
|
30534
31740
|
try {
|
|
30535
31741
|
const message = await work();
|
|
30536
|
-
const succeeded = /^(saved|created|imported|deleted|assigned|unassigned|scanned|override
|
|
31742
|
+
const succeeded = /^(saved|created|imported|deleted|assigned|unassigned|scanned|override-created|override-reset|restored-bindings)$/u.test(message);
|
|
30537
31743
|
this.publish({
|
|
30538
31744
|
busy: false,
|
|
30539
31745
|
message: succeeded ? void 0 : message,
|