a2acalling 0.6.43 → 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.
- package/README.md +1 -5
- package/bin/cli.js +1 -2
- package/package.json +1 -1
- package/src/lib/claude-subagent.js +485 -0
- package/src/lib/conversation-driver.js +80 -29
- package/src/lib/disclosure.js +5 -6
- package/src/lib/runtime-adapter.js +221 -437
- package/src/routes/dashboard.js +5 -5
- package/src/server.js +5 -10
package/src/lib/disclosure.js
CHANGED
|
@@ -32,7 +32,7 @@ function dedupeByTopic(items) {
|
|
|
32
32
|
seen.add(topic.toLowerCase());
|
|
33
33
|
out.push({
|
|
34
34
|
topic,
|
|
35
|
-
description: normalizeTopic(item &&
|
|
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 ||
|
|
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 ||
|
|
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
|
-
|
|
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
|
|
368
|
+
errors.push('Submission must include a "tiers" object');
|
|
370
369
|
return { valid: false, manifest: null, errors };
|
|
371
370
|
}
|
|
372
371
|
|