@sodiumhq/mcp-pm 0.1.0-beta.2611 → 0.1.0-beta.2619
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 +9 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1340,6 +1340,14 @@ async function buildInstructions(api, writesEnabled) {
|
|
|
1340
1340
|
})
|
|
1341
1341
|
]);
|
|
1342
1342
|
const now = /* @__PURE__ */ new Date();
|
|
1343
|
+
const tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
1344
|
+
const parts = Object.fromEntries(new Intl.DateTimeFormat("en-GB", {
|
|
1345
|
+
timeZone: tz,
|
|
1346
|
+
year: "numeric",
|
|
1347
|
+
month: "2-digit",
|
|
1348
|
+
day: "2-digit",
|
|
1349
|
+
weekday: "long"
|
|
1350
|
+
}).formatToParts(now).map((p) => [p.type, p.value]));
|
|
1343
1351
|
const lines = [
|
|
1344
1352
|
"You are assisting a user of Sodium Practice Management — software used by accountancy practices to run their business.",
|
|
1345
1353
|
"",
|
|
@@ -1353,7 +1361,7 @@ async function buildInstructions(api, writesEnabled) {
|
|
|
1353
1361
|
"- For prompts like 'brief me on my call with X' or 'summarise X', produce a practice-side view: what services the practice delivers to X, what work is outstanding, what the user should raise or action with the client.",
|
|
1354
1362
|
"- Never frame output as if the named entity is the one being briefed — it is the practice (the user) being briefed ABOUT the client.",
|
|
1355
1363
|
"",
|
|
1356
|
-
`Today: ${
|
|
1364
|
+
`Today: ${`${parts.year}-${parts.month}-${parts.day}`} (${parts.weekday}, ${tz})`,
|
|
1357
1365
|
`Current UTC time: ${now.toISOString()}`
|
|
1358
1366
|
];
|
|
1359
1367
|
if (user.status === "fulfilled") {
|