Просмотр исходного кода

fix(marketplace): clarify auto-delegation labels

Alvin Unreal 4 дней назад
Родитель
Сommit
fb77320db7

+ 1 - 1
docs/marketplace.md

@@ -108,7 +108,7 @@ v2 parsing never accepts v3 artifacts. Both contracts use deterministic
 artifact paths, retirement tombstones, and canonical bundle SHA-256 digests.
 It also exports `renderDefaultMarketplaceAutoDelegationBlock(manifest)`, the
 authoritative deterministic routing block. Built-in v3 extensions use the
-current built-in role routing followed by package lane, stats, delegation, and
+current built-in role routing followed by lane, stats, delegation, and
 avoidance guidance; standalone v3 packages include their role sentence and
 mechanically derived declared capabilities. This default renderer does not
 apply owner or runtime display-alias overrides. The public contract does not

+ 1 - 1
src/marketplace-contract/index.test.ts

@@ -38,7 +38,7 @@ describe('marketplace contract routing export', () => {
     const expected = `${ROLE_DEFINITIONS.explorer.routingBlock.replaceAll(
       '@explorer',
       '@contract-agent',
-    )}\n\n- Package: Contract agent\n- Contract routing description.\n- **Delegate when:** The contract task matches.`;
+    )}\n\n- Lane: Contract routing description.\n- **Delegate when:** The contract task matches.`;
 
     expect(renderDefaultMarketplaceAutoDelegationBlock(manifest)).toBe(
       expected,

+ 2 - 4
src/marketplace/routing.test.ts

@@ -66,8 +66,7 @@ const v3Manifest: MarketplacePackageManifestV3 = {
 
 function expectedSuffix(manifest: MarketplacePackageManifest): string {
   return [
-    `- Package: ${manifest.displayName}`,
-    `- ${manifest.routing.description}`,
+    `- Lane: ${manifest.routing.description}`,
     `- **Delegate when:** ${manifest.routing.when}`,
   ].join('\n');
 }
@@ -141,8 +140,7 @@ describe('marketplace routing renderer', () => {
           '@build-agent',
         ),
         '',
-        '- Package: Routing v3 agent',
-        '- Package lane: Deterministic package lane.',
+        '- Lane: Deterministic package lane.',
         '- Stats: Fast implementation • Low context overhead',
         '- **Delegate when:** The task has a bounded implementation scope.',
         '- **Avoid:** Architecture decisions • Visual design work',

+ 2 - 4
src/marketplace/routing.ts

@@ -10,8 +10,7 @@ import type {
 
 function renderV2PackageSuffix(manifest: MarketplacePackageManifestV2): string {
   return [
-    `- Package: ${manifest.displayName}`,
-    `- ${manifest.routing.description}`,
+    `- Lane: ${manifest.routing.description}`,
     `- **Delegate when:** ${manifest.routing.when}`,
   ].join('\n');
 }
@@ -54,8 +53,7 @@ function renderV3ExtensionSuffix(
   manifest: MarketplacePackageManifestV3,
 ): string {
   return [
-    `- Package: ${manifest.displayName}`,
-    `- Package lane: ${manifest.routing.lane}`,
+    `- Lane: ${manifest.routing.lane}`,
     renderV3RoutingDetails(manifest),
   ].join('\n');
 }