viveworker 0.4.2 → 0.4.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "viveworker",
3
- "version": "0.4.2",
3
+ "version": "0.4.3",
4
4
  "description": "Local mobile companion for Codex Desktop and Claude Desktop — approvals, code review, Moltbook drafts, and A2A (Agent-to-Agent) task relay on your LAN.",
5
5
  "author": "Yuta Hoshino <hoshino.lireneo@gmail.com>",
6
6
  "license": "MIT",
@@ -27,11 +27,17 @@ export function buildAgentCard(config) {
27
27
  // Custom skills from A2A_SKILLS env var (comma-separated tags → skill objects)
28
28
  let skills;
29
29
  if (config.a2aSkills) {
30
- skills = config.a2aSkills.split(",").map((s) => s.trim()).filter(Boolean).map((tag) => ({
31
- id: tag,
32
- name: tag,
33
- description: tag,
34
- }));
30
+ const LABEL_MAP = {
31
+ typescript: "TypeScript", javascript: "JavaScript",
32
+ nodejs: "Node.js", pwa: "PWA", api: "API", css: "CSS", html: "HTML",
33
+ sql: "SQL", graphql: "GraphQL", nextjs: "Next.js", vuejs: "Vue.js",
34
+ aws: "AWS", gcp: "GCP", cli: "CLI", cicd: "CI/CD", a2a: "A2A",
35
+ llm: "LLM", ai: "AI", ml: "ML",
36
+ };
37
+ skills = config.a2aSkills.split(",").map((s) => s.trim()).filter(Boolean).map((tag) => {
38
+ const label = LABEL_MAP[tag] || tag.replace(/[-_]/g, " ").replace(/\b\w/g, (c) => c.toUpperCase());
39
+ return { id: tag, name: label, description: label };
40
+ });
35
41
  } else {
36
42
  skills = [
37
43
  {
@@ -63,7 +69,7 @@ export function buildAgentCard(config) {
63
69
  const card = {
64
70
  schemaVersion: "1.0",
65
71
  humanReadableId: `viveworker/${config.a2aRelayUserId || "viveworker"}`,
66
- agentVersion: config.version || "0.3.0",
72
+ agentVersion: config.version || "0.1.0",
67
73
  name: "viveworker",
68
74
  description,
69
75
  url: `${baseUrl.replace(/\/$/u, "")}/a2a`,
@@ -13790,6 +13790,7 @@ function buildConfig(cli) {
13790
13790
  a2aDescription: cleanText(process.env.A2A_DESCRIPTION || ""),
13791
13791
  a2aSkills: cleanText(process.env.A2A_SKILLS || ""),
13792
13792
  a2aAvatar: cleanText(process.env.A2A_AVATAR || ""),
13793
+ version: appPackageVersion,
13793
13794
  a2aRelayUrl: cleanText(process.env.A2A_RELAY_URL || ""),
13794
13795
  a2aRelayUserId: cleanText(process.env.A2A_RELAY_USER_ID || ""),
13795
13796
  a2aRelaySecret: cleanText(process.env.A2A_RELAY_SECRET || ""),