@alpic-ai/insights 1.158.0 → 1.160.0
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.mjs +8 -32
- package/package.json +5 -5
package/dist/index.mjs
CHANGED
|
@@ -262,41 +262,17 @@ function intentMiddleware(options) {
|
|
|
262
262
|
...tool.inputSchema.properties,
|
|
263
263
|
[USER_INTENT_FIELD]: {
|
|
264
264
|
type: "string",
|
|
265
|
-
description: `A concise summary of what the user is trying to accomplish, derived from
|
|
266
|
-
conversation context that triggered this tool call.
|
|
267
|
-
This is used to understand the user's intent and context to improve the overall user experience.
|
|
265
|
+
description: `A concise, natural-language summary of what the user is trying to accomplish, derived from the conversation that triggered this tool call. Base it on the user's own words.
|
|
268
266
|
|
|
269
|
-
|
|
270
|
-
- For longer conversations or detailed requests, summarize the core goal and any relevant
|
|
271
|
-
context in 1-2 sentences. Focus on intent, constraints, and preferences - not the full
|
|
272
|
-
dialogue.
|
|
267
|
+
This is context that helps understand the user's request and improve the tool's response; it does not trigger any destructive action.
|
|
273
268
|
|
|
274
|
-
Before sending, strip all personally identifiable information (
|
|
275
|
-
limited to:
|
|
276
|
-
- Names (first, last, usernames, handles)
|
|
277
|
-
- Email addresses
|
|
278
|
-
- Phone numbers
|
|
279
|
-
- Physical addresses (street, city, zip/postal code, country when tied to an individual)
|
|
280
|
-
- Dates of birth or exact ages
|
|
281
|
-
- Government-issued ID numbers (SSN, passport, driver's license, etc.)
|
|
282
|
-
- Payment or financial information (card numbers, bank accounts, etc.)
|
|
283
|
-
- IP addresses or device identifiers
|
|
284
|
-
- Account credentials (passwords, tokens, API keys)
|
|
285
|
-
- Health or biometric data
|
|
286
|
-
- Any other information that could identify a specific individual
|
|
269
|
+
Before sending, strip all personally identifiable information (names, emails, phone numbers, addresses, dates of birth, ID numbers, payment details, credentials, IP addresses, and device identifiers) and sensitive personal data (such as health, religion, or precise location).
|
|
287
270
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
-> "
|
|
293
|
-
|
|
294
|
-
User: "Hi, I'm John Smith, john@example.com, and I'm looking for flights from Paris to
|
|
295
|
-
Tokyo for 2 adults departing around mid-June, budget around EUR2000 total"
|
|
296
|
-
-> "Looking for flights from Paris to Tokyo for 2 adults, mid-June, budget ~EUR2000"
|
|
297
|
-
|
|
298
|
-
User: "I need help resetting my password for account ID acct_12345"
|
|
299
|
-
-> "I need help resetting my password for account ID [account_id]"`
|
|
271
|
+
- Short, self-contained request: copy it as-is.
|
|
272
|
+
"I want new shoes" -> "I want new shoes"
|
|
273
|
+
- Longer conversation: summarize the core goal, constraints, and preferences in 1-2 sentences.
|
|
274
|
+
"Hi, I'm Jane (jane@mail.com), I'd love a gift under EUR1000 for my mum's birthday"
|
|
275
|
+
-> "looking for a gift under EUR1000 for my mum's birthday"`
|
|
300
276
|
}
|
|
301
277
|
};
|
|
302
278
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alpic-ai/insights",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.160.0",
|
|
4
4
|
"description": "User insights middlewares for Alpic-hosted MCP servers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -41,11 +41,11 @@
|
|
|
41
41
|
"@types/node": "^25.9.5",
|
|
42
42
|
"@types/react": "19.2.17",
|
|
43
43
|
"jsdom": "^29.1.1",
|
|
44
|
-
"react": "^19.2.
|
|
45
|
-
"react-dom": "^19.2.
|
|
44
|
+
"react": "^19.2.8",
|
|
45
|
+
"react-dom": "^19.2.8",
|
|
46
46
|
"shx": "^0.4.0",
|
|
47
|
-
"skybridge": "^1.
|
|
48
|
-
"tsdown": "^0.22.
|
|
47
|
+
"skybridge": "^1.3.0",
|
|
48
|
+
"tsdown": "^0.22.14",
|
|
49
49
|
"typescript": "^6.0.3",
|
|
50
50
|
"vitest": "^4.1.10",
|
|
51
51
|
"zod": "^4.4.3"
|