visionclaw 0.1.203-beta.2 → 0.1.203-beta.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.
@@ -1 +1 @@
1
- {"version":3,"file":"fast-responder.d.ts","sourceRoot":"","sources":["../../src/agent/fast-responder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAiB3D,QAAA,MAAM,kBAAkB;;;;;;;;iBAiBtB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,UAAU,CAAC;AAExD;;;;;;;;;;;GAWG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,gBAAgB,CAAC;IACzB,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAiG/B"}
1
+ {"version":3,"file":"fast-responder.d.ts","sourceRoot":"","sources":["../../src/agent/fast-responder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAG/D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAiB3D,QAAA,MAAM,kBAAkB;;;;;;;;iBAkBtB,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,MAAM,MAAM,gBAAgB,GAAG,WAAW,GAAG,UAAU,CAAC;AAExD;;;;;;;;;;;GAWG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE;IACzC,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,cAAc,EAAE,CAAC;IAC3B,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,gBAAgB,CAAC;IACzB,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB,GAAG,OAAO,CAAC,YAAY,GAAG,IAAI,CAAC,CAiG/B"}
@@ -9,16 +9,17 @@ const RecipientReplySchema = z.object({
9
9
  .describe("The channel name, exactly as it appears in the incoming messages (e.g. 'telegram', 'discord', 'gmail')."),
10
10
  sender: z
11
11
  .string()
12
- .describe("The sender identifier, exactly as it appears in the incoming messages."),
12
+ .describe("The sender identifier, exactly as it appears in the incoming messages. For finapp, this is a thread id, not a person name."),
13
13
  reply: z
14
14
  .string()
15
- .describe("A personalized, concise reply for this specific recipient (1-3 sentences)."),
15
+ .describe("A personalized, concise reply for this specific recipient (1-3 sentences). For finapp, address the owner/user, not the thread id."),
16
16
  });
17
17
  const FastResponseSchema = z.object({
18
18
  replies: z
19
19
  .array(RecipientReplySchema)
20
20
  .describe("One reply per unique (channel, sender) pair from the incoming messages. " +
21
- "Each reply should be personalized — address the sender by name and reference their specific message(s)."),
21
+ "Each reply should be personalized and reference the specific message(s). " +
22
+ "For finapp, sender is a thread id, not a person name — never address the thread id as a user."),
22
23
  needsPrimaryAction: z
23
24
  .boolean()
24
25
  .describe("Should be true unless you are 100% sure you have fully handled all of them (e.g. pure status queries)."),
@@ -125,7 +126,8 @@ function buildFastResponderSystemPrompt(systemPrompt, preamble, recipientList) {
125
126
  ...preamble,
126
127
  "",
127
128
  `You MUST produce exactly one reply per unique recipient. The recipients are:\n${recipientList}`,
128
- "Each reply should be personalized — address the sender and reference their specific message(s).",
129
+ "Each reply should be personalized and reference their specific message(s).",
130
+ "IMPORTANT for finapp: channel=\"finapp\" sender values are thread IDs such as fin-home, fin-holdings, fin-idea-123, not human names. Do NOT address the owner as \"fin-holdings\" or any thread ID. Address them generically as the owner/user, or use the owner's actual name if it is already present in the system prompt.",
129
131
  "Use the exact channel and sender strings listed above in your output.",
130
132
  "Treat `channel=\"weixin\"` as a remote messaging transport from the owner. It does NOT mean you should inspect or operate the desktop WeChat app unless the message explicitly asks you to do that.",
131
133
  "Be VERY careful about `needsPrimaryAction`, set it to true if anything is unclear, needs take actions like search/read file/... or requires the main process to follow up.",
@@ -1 +1 @@
1
- {"version":3,"file":"fast-responder.js","sourceRoot":"","sources":["../../src/agent/fast-responder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAElD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAE3D,MAAM,UAAU,GAAG,IAAI,CAAC;AAExB,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CAAC,yGAAyG,CAAC;IACtH,MAAM,EAAE,CAAC;SACN,MAAM,EAAE;SACR,QAAQ,CAAC,wEAAwE,CAAC;IACrF,KAAK,EAAE,CAAC;SACL,MAAM,EAAE;SACR,QAAQ,CAAC,4EAA4E,CAAC;CAC1F,CAAC,CAAC;AAEH,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IAClC,OAAO,EAAE,CAAC;SACP,KAAK,CAAC,oBAAoB,CAAC;SAC3B,QAAQ,CACP,0EAA0E;QAC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,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAC7E,CAAC;QACF,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC;AAED,SAAS,8BAA8B,CACrC,YAAoB,EACpB,QAAkB,EAClB,aAAqB;IAErB,OAAO,YAAY,GAAG;QACpB,GAAG,QAAQ;QACX,EAAE;QACF,iFAAiF,aAAa,EAAE;QAChG,4EAA4E;QAC5E,+TAA+T;QAC/T,uEAAuE;QACvE,qMAAqM;QACrM,4KAA4K;QAC5K,EAAE;QACF,uJAAuJ;KACxJ,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC;AAED,SAAS,4BAA4B,CACnC,eAAuB,EACvB,oBAA4B,EAC5B,cAAsB;IAEtB,OAAO;QACL,2BAA2B;QAC3B,eAAe;QACf,EAAE;QACF,sBAAsB,oBAAoB,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE;QACrF,cAAc;KACf,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACf,CAAC"}
@@ -20750,7 +20750,7 @@ var require_prompts3 = __commonJS({
20750
20750
 
20751
20751
  // dist/utils/version-check.js
20752
20752
  function isBundled() {
20753
- const v14 = "0.1.203-beta.2";
20753
+ const v14 = "0.1.203-beta.3";
20754
20754
  return typeof v14 === "string" && v14 !== "undefined";
20755
20755
  }
20756
20756
  function getPackageRoot() {
@@ -20767,7 +20767,7 @@ function getInstallationInfo() {
20767
20767
  };
20768
20768
  }
20769
20769
  function getCurrentVersion() {
20770
- const bundledVersion = "0.1.203-beta.2";
20770
+ const bundledVersion = "0.1.203-beta.3";
20771
20771
  if (bundledVersion && bundledVersion !== "undefined") {
20772
20772
  return bundledVersion;
20773
20773
  }
@@ -990764,7 +990764,7 @@ var init_browser_launcher = __esm({
990764
990764
 
990765
990765
  // dist/utils/playwriter-relay.js
990766
990766
  function isBundled2() {
990767
- const v14 = "0.1.203-beta.2";
990767
+ const v14 = "0.1.203-beta.3";
990768
990768
  return typeof v14 === "string" && v14 !== "undefined";
990769
990769
  }
990770
990770
  function resolveRelayEntryPath() {
@@ -990799,7 +990799,7 @@ function getPm2RelayProcess() {
990799
990799
  }
990800
990800
  }
990801
990801
  function pm2Start(entryPath, host, port) {
990802
- const versionStr = "0.1.203-beta.2";
990802
+ const versionStr = "0.1.203-beta.3";
990803
990803
  (0, import_node_child_process19.execFileSync)("pm2", ["start", entryPath, "--name", PM2_PROCESS_NAME, "--update-env"], {
990804
990804
  encoding: "utf-8",
990805
990805
  stdio: "pipe",
@@ -990825,7 +990825,7 @@ function pm2Delete() {
990825
990825
  }
990826
990826
  }
990827
990827
  function pm2Restart(host, port) {
990828
- const versionStr = "0.1.203-beta.2";
990828
+ const versionStr = "0.1.203-beta.3";
990829
990829
  (0, import_node_child_process19.execFileSync)("pm2", ["restart", PM2_PROCESS_NAME, "--update-env"], {
990830
990830
  encoding: "utf-8",
990831
990831
  stdio: "pipe",
@@ -990995,7 +990995,7 @@ function reconcilePlaywriterRelay(host = "127.0.0.1", port = 19988) {
990995
990995
  pm2Restart(host, port);
990996
990996
  return;
990997
990997
  }
990998
- const currentVersion = "0.1.203-beta.2";
990998
+ const currentVersion = "0.1.203-beta.3";
990999
990999
  if (currentEnv.VISIONCLAW_VERSION && currentEnv.VISIONCLAW_VERSION !== currentVersion) {
991000
991000
  logger.system(`Playwriter relay: VisionClaw version changed (${currentEnv.VISIONCLAW_VERSION} \u2192 ${currentVersion}), recreating`);
991001
991001
  pm2Delete();
@@ -1374950,7 +1374950,8 @@ function buildFastResponderSystemPrompt(systemPrompt, preamble, recipientList) {
1374950
1374950
  "",
1374951
1374951
  `You MUST produce exactly one reply per unique recipient. The recipients are:
1374952
1374952
  ${recipientList}`,
1374953
- "Each reply should be personalized \u2014 address the sender and reference their specific message(s).",
1374953
+ "Each reply should be personalized and reference their specific message(s).",
1374954
+ `IMPORTANT for finapp: channel="finapp" sender values are thread IDs such as fin-home, fin-holdings, fin-idea-123, not human names. Do NOT address the owner as "fin-holdings" or any thread ID. Address them generically as the owner/user, or use the owner's actual name if it is already present in the system prompt.`,
1374954
1374955
  "Use the exact channel and sender strings listed above in your output.",
1374955
1374956
  'Treat `channel="weixin"` as a remote messaging transport from the owner. It does NOT mean you should inspect or operate the desktop WeChat app unless the message explicitly asks you to do that.',
1374956
1374957
  "Be VERY careful about `needsPrimaryAction`, set it to true if anything is unclear, needs take actions like search/read file/... or requires the main process to follow up.",
@@ -1374978,11 +1374979,11 @@ var init_fast_responder = __esm({
1374978
1374979
  MAX_TOKENS = 2048;
1374979
1374980
  RecipientReplySchema = external_exports.object({
1374980
1374981
  channel: external_exports.string().describe("The channel name, exactly as it appears in the incoming messages (e.g. 'telegram', 'discord', 'gmail')."),
1374981
- sender: external_exports.string().describe("The sender identifier, exactly as it appears in the incoming messages."),
1374982
- reply: external_exports.string().describe("A personalized, concise reply for this specific recipient (1-3 sentences).")
1374982
+ sender: external_exports.string().describe("The sender identifier, exactly as it appears in the incoming messages. For finapp, this is a thread id, not a person name."),
1374983
+ reply: external_exports.string().describe("A personalized, concise reply for this specific recipient (1-3 sentences). For finapp, address the owner/user, not the thread id.")
1374983
1374984
  });
1374984
1374985
  FastResponseSchema = external_exports.object({
1374985
- replies: external_exports.array(RecipientReplySchema).describe("One reply per unique (channel, sender) pair from the incoming messages. Each reply should be personalized \u2014 address the sender by name and reference their specific message(s)."),
1374986
+ replies: external_exports.array(RecipientReplySchema).describe("One reply per unique (channel, sender) pair from the incoming messages. Each reply should be personalized and reference the specific message(s). For finapp, sender is a thread id, not a person name \u2014 never address the thread id as a user."),
1374986
1374987
  needsPrimaryAction: external_exports.boolean().describe("Should be true unless you are 100% sure you have fully handled all of them (e.g. pure status queries)."),
1374987
1374988
  briefForPrimary: external_exports.string().describe("A concise summary for the primary agent describing what these messages are about and what you told each sender.")
1374988
1374989
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "visionclaw",
3
- "version": "0.1.203-beta.2",
3
+ "version": "0.1.203-beta.3",
4
4
  "description": "A personal assistant agent that runs on your desktop, receives commands from messaging channels, and executes tasks autonomously.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",