浏览代码

fix(marketplace): clarify auto-delegation labels

Alvin Unreal 4 天之前
父节点
当前提交
fb77320db7
共有 4 个文件被更改,包括 6 次插入10 次删除
  1. 1 1
      docs/marketplace.md
  2. 1 1
      src/marketplace-contract/index.test.ts
  3. 2 4
      src/marketplace/routing.test.ts
  4. 2 4
      src/marketplace/routing.ts

+ 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.
 artifact paths, retirement tombstones, and canonical bundle SHA-256 digests.
 It also exports `renderDefaultMarketplaceAutoDelegationBlock(manifest)`, the
 It also exports `renderDefaultMarketplaceAutoDelegationBlock(manifest)`, the
 authoritative deterministic routing block. Built-in v3 extensions use 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
 avoidance guidance; standalone v3 packages include their role sentence and
 mechanically derived declared capabilities. This default renderer does not
 mechanically derived declared capabilities. This default renderer does not
 apply owner or runtime display-alias overrides. The public contract 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(
     const expected = `${ROLE_DEFINITIONS.explorer.routingBlock.replaceAll(
       '@explorer',
       '@explorer',
       '@contract-agent',
       '@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(
     expect(renderDefaultMarketplaceAutoDelegationBlock(manifest)).toBe(
       expected,
       expected,

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

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

+ 2 - 4
src/marketplace/routing.ts

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