a2acalling 0.6.42 → 0.6.44

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.
@@ -32,7 +32,7 @@ function dedupeByTopic(items) {
32
32
  seen.add(topic.toLowerCase());
33
33
  out.push({
34
34
  topic,
35
- description: normalizeTopic(item && (item.description || item.detail))
35
+ description: normalizeTopic(item && item.description)
36
36
  });
37
37
  }
38
38
  return out;
@@ -152,7 +152,7 @@ function saveManifest(manifest) {
152
152
  */
153
153
  function getTopicsForTier(tier) {
154
154
  const manifest = loadManifest();
155
- const tiers = manifest.tiers || manifest.topics || {};
155
+ const tiers = manifest.tiers || {};
156
156
 
157
157
  const tierIndex = TIER_HIERARCHY.indexOf(tier);
158
158
  if (tierIndex === -1) {
@@ -195,7 +195,7 @@ function getTopicsForTier(tier) {
195
195
  function formatTopicsForPrompt(tierTopics) {
196
196
  const formatTopicList = (items) => {
197
197
  if (!items || items.length === 0) return ' (none specified)';
198
- return items.map(item => ` - ${item.topic}: ${item.description || item.detail || ''}`).join('\n');
198
+ return items.map(item => ` - ${item.topic}: ${item.description || ''}`).join('\n');
199
199
  };
200
200
 
201
201
  const formatObjectiveList = (items) => {
@@ -363,10 +363,9 @@ function validateDisclosureSubmission(data) {
363
363
  return { valid: false, manifest: null, errors: ['Submission must be a non-null object'] };
364
364
  }
365
365
 
366
- // Support both new format (tiers) and legacy format (topics)
367
- const tiersData = data.tiers || data.topics;
366
+ const tiersData = data.tiers;
368
367
  if (!tiersData || typeof tiersData !== 'object' || Array.isArray(tiersData)) {
369
- errors.push('Submission must include a "tiers" object (or legacy "topics" object)');
368
+ errors.push('Submission must include a "tiers" object');
370
369
  return { valid: false, manifest: null, errors };
371
370
  }
372
371