@blade-hq/agent-client 1.1.10 → 1.1.12-beta.1

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/index.js CHANGED
@@ -2326,6 +2326,7 @@ var Emitter = class {
2326
2326
 
2327
2327
  // src/schemas/message-utils.ts
2328
2328
  var SYSTEM_REMINDER_PATTERN = /^<system-reminder>\s*[\s\S]*?\s*<\/system-reminder>$/i;
2329
+ var SYSTEM_NOTIFICATION_PATTERN = /^<system-notification>\s*[\s\S]*?\s*<\/system-notification>$/i;
2329
2330
  var LEGACY_FORK_CONTEXT_MARKERS = [
2330
2331
  "\u7236\u667A\u80FD\u4F53\u5728\u6D3E\u751F\u4F60\u4E4B\u524D\u5DF2\u7ECF\u5B8C\u6210\u4E86\u4E00\u4E9B\u64CD\u4F5C\u3002",
2331
2332
  "\u53EF\u901A\u8FC7 `read_file` \u8BFB\u53D6\u3002",
@@ -2343,6 +2344,9 @@ function getTextContent(content) {
2343
2344
  function isSystemReminderText(text) {
2344
2345
  return SYSTEM_REMINDER_PATTERN.test(text.trim());
2345
2346
  }
2347
+ function isSystemNotificationText(text) {
2348
+ return SYSTEM_NOTIFICATION_PATTERN.test(text.trim());
2349
+ }
2346
2350
  function isLegacyForkContextText(text) {
2347
2351
  const normalized = text.trim();
2348
2352
  return LEGACY_FORK_CONTEXT_MARKERS.every((marker) => normalized.includes(marker));
@@ -2350,7 +2354,7 @@ function isLegacyForkContextText(text) {
2350
2354
  function isHiddenInternalMessage(message) {
2351
2355
  if (message.role !== "user") return false;
2352
2356
  const text = getTextContent(normalizeMessageContent(message.content));
2353
- return isSystemReminderText(text) || isLegacyForkContextText(text);
2357
+ return isSystemReminderText(text) || isSystemNotificationText(text) || isLegacyForkContextText(text);
2354
2358
  }
2355
2359
  function buildMessageContent(text, attachments) {
2356
2360
  if (attachments.length === 0) return text;
@@ -3821,7 +3825,7 @@ function resolveAuthToken(options) {
3821
3825
 
3822
3826
  // src/version.ts
3823
3827
  var SDK_NAME = "agent-client";
3824
- var SDK_VERSION = true ? "1.1.10" : "1.1.1";
3828
+ var SDK_VERSION = true ? "1.1.12-beta.1" : "1.1.1";
3825
3829
 
3826
3830
  // src/socket.ts
3827
3831
  function withSdkIdentity(auth) {