@agentvault/agentvault 0.19.68 → 0.19.69

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/dist/cli.js CHANGED
@@ -88250,7 +88250,7 @@ var init_index = __esm({
88250
88250
  init_skill_invoker();
88251
88251
  await init_skill_telemetry();
88252
88252
  await init_policy_enforcer();
88253
- VERSION = true ? "0.19.68" : "0.0.0-dev";
88253
+ VERSION = true ? "0.19.69" : "0.0.0-dev";
88254
88254
  }
88255
88255
  });
88256
88256
 
@@ -88829,17 +88829,18 @@ async function runCreateCommand(options) {
88829
88829
  const displayName = hub.display_name || name2;
88830
88830
  const description = hub.description || "";
88831
88831
  const capabilities = hub.capabilities || [];
88832
- const skills = capabilities.filter((c2) => c2.skill_content);
88832
+ const skillCount = capabilities.filter((c2) => c2.skill_content).length;
88833
+ const toolCount = capabilities.length - skillCount;
88833
88834
  const identityContent = `# IDENTITY.md - Who Am I?
88834
88835
 
88835
88836
  - **Name:** ${displayName}
88836
88837
  - **Creature:** AI assistant \u2014 a capable peer agent in the AgentVault network
88837
88838
  - **Hub Address:** ${hub.hub_address || `${name2}.agentvault.hub`}
88838
- - **Description:** ${description}
88839
+ - **Description:** ${description || "(not set yet)"}
88839
88840
  - **Emoji:** (update to something fitting)
88840
88841
  `;
88841
88842
  writeFileSync2(join6(workspaceDir, "IDENTITY.md"), identityContent, "utf-8");
88842
- let soulContent = `# SOUL.md - Who You Are
88843
+ const soulContent = `# SOUL.md - Who You Are
88843
88844
 
88844
88845
  ## Identity
88845
88846
  You are **${displayName}**${description ? ` \u2014 ${description}` : ""}.
@@ -88853,38 +88854,39 @@ You are **${displayName}**${description ? ` \u2014 ${description}` : ""}.
88853
88854
  - Never include reasoning or internal logic in visible replies.
88854
88855
  - No narrating your approach before or after tool calls.
88855
88856
  - Just deliver the answer \u2014 clean and direct.
88856
- `;
88857
- if (skills.length > 0) {
88858
- soulContent += `
88859
- ## Skills
88860
-
88861
- `;
88862
- for (const skill of skills) {
88863
- soulContent += `### ${skill.capability_name}
88864
- `;
88865
- if (skill.description) soulContent += `${skill.description}
88866
-
88867
- `;
88868
- if (skill.skill_content) soulContent += `**Instructions:**
88869
- ${skill.skill_content}
88870
88857
 
88858
+ ## Skills & Knowledge
88859
+ Your skills and knowledge are managed online through AgentVault.
88860
+ ${skillCount > 0 ? `You have ${skillCount} skill(s) registered.` : "No skills registered yet \u2014 configure via the Agent Builder."}
88861
+ ${toolCount > 0 ? `You have ${toolCount} tool(s) available.` : ""}
88862
+ Skills are injected at runtime \u2014 no need to list them here.
88871
88863
  `;
88872
- }
88873
- }
88874
- if (capabilities.length > 0) {
88875
- const tools = capabilities.filter((c2) => !c2.skill_content);
88876
- if (tools.length > 0) {
88877
- soulContent += `
88878
- ## Available Tools
88879
- `;
88880
- for (const tool of tools) {
88881
- soulContent += `- **${tool.capability_name}**${tool.description ? `: ${tool.description}` : ""}
88882
- `;
88864
+ writeFileSync2(join6(workspaceDir, "SOUL.md"), soulContent, "utf-8");
88865
+ try {
88866
+ const memRes = await fetch(`${apiUrl2}/api/v1/memory/stats`, {
88867
+ headers: { Authorization: `Bearer ${jwt2}` }
88868
+ });
88869
+ if (memRes.ok) {
88870
+ for (const cap of capabilities) {
88871
+ if (cap.skill_content && cap.description) {
88872
+ try {
88873
+ await fetch(`${apiUrl2}/api/v1/memory/semantic`, {
88874
+ method: "POST",
88875
+ headers: { Authorization: `Bearer ${jwt2}`, "Content-Type": "application/json" },
88876
+ body: JSON.stringify({
88877
+ text: `Skill: ${cap.capability_name}. ${cap.description}`,
88878
+ category: "skill_knowledge"
88879
+ })
88880
+ });
88881
+ } catch {
88882
+ }
88883
+ }
88883
88884
  }
88885
+ console.log(` Seeded ${skillCount} skill descriptions into semantic memory.`);
88884
88886
  }
88887
+ } catch {
88885
88888
  }
88886
- writeFileSync2(join6(workspaceDir, "SOUL.md"), soulContent, "utf-8");
88887
- console.log(` Workspace updated with ${skills.length} skills, ${capabilities.length - skills.length} tools.
88889
+ console.log(` Identity written. ${skillCount} skills + ${toolCount} tools registered in hub (runtime-injected).
88888
88890
  `);
88889
88891
  } else {
88890
88892
  console.log(` Could not fetch hub config (${hubRes.status}) \u2014 using defaults.