@open-workspace/email 0.6.2 → 0.6.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": "@open-workspace/email",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "description": "Team mail for OpenWorkspace: personal and shared inboxes, mailing lists, previews, safety, and AI.",
5
5
  "keywords": [
6
6
  "alchemy",
@@ -87,8 +87,8 @@
87
87
  "@alchemy.run/test": "2.0.0-beta.87",
88
88
  "@effect/platform-bun": "4.1.7",
89
89
  "@effect/platform-node": "4.1.7",
90
- "@open-workspace/core": "0.6.2",
91
- "@open-workspace/create": "0.6.2",
90
+ "@open-workspace/core": "0.6.3",
91
+ "@open-workspace/create": "0.6.3",
92
92
  "@types/bun": "1.4.5",
93
93
  "@types/html-to-text": "9.0.4",
94
94
  "@types/jsdom": "30.0.0",
@@ -109,7 +109,7 @@
109
109
  },
110
110
  "peerDependencies": {
111
111
  "@alchemy.run/cloudflare": "2.0.0-beta.87",
112
- "@open-workspace/core": "0.6.2",
112
+ "@open-workspace/core": "0.6.3",
113
113
  "alchemy": "2.0.0-beta.87",
114
114
  "effect": "4.1.7"
115
115
  }
@@ -78,7 +78,7 @@ export async function classifyInboundEmail(input: {
78
78
  "Choose folderId only from the supplied customFolders. Use null when none is a good semantic match.",
79
79
  "Do not invent folders and do not choose a weak match merely to avoid null.",
80
80
  "In reason, name the strongest concrete evidence, including the exact suspicious domain or attachment name when relevant. Write it for the mailbox owner in plain words, without internal signal or field names.",
81
- "Return spam (boolean), spamConfidence (number from 0 to 1), folderId (string or null), folderConfidence (number from 0 to 1), and reason (one sentence under 500 characters).",
81
+ "Return spam (boolean), spamConfidence (number from 0 to 1: how likely the message is spam, so low for mail you judge legitimate, not how sure you are of the boolean), folderId (string or null), folderConfidence (number from 0 to 1), and reason (one sentence under 500 characters).",
82
82
  input.configuration.instructions
83
83
  ? `Trusted mailbox classification rules:\n${input.configuration.instructions}`
84
84
  : "",