@columenlabs/lumen-ai 0.1.137 → 0.1.138

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.
@@ -86,7 +86,7 @@ export async function bearings(input = {}) {
86
86
  };
87
87
  const utc = new Date(now).toISOString().slice(11, 16);
88
88
  const lines = [
89
- "Bearings (the server's clock: use it for today, now and how long ago; never guess the date):",
89
+ "<bearings> (the server's clock, for you only: use it for today, now and how long ago; never guess the date, and never repeat it in your answer)",
90
90
  `Now: ${b.at(now)} (${timeZone}) · ${utc} UTC`,
91
91
  ];
92
92
  if (input.lastAt && input.lastAt < now)
@@ -97,5 +97,6 @@ export async function bearings(input = {}) {
97
97
  const more = await Promise.all(extras.map((e) => within(e, b, input.extrasMs ?? EXTRAS_MS)));
98
98
  for (const l of more.flat())
99
99
  lines.push(l.slice(0, 400));
100
+ lines.push('</bearings>');
100
101
  return `${lines.join('\n')}\n\n`;
101
102
  }
@@ -850,7 +850,7 @@ export class Assistant {
850
850
  /** What the kit adds to the app's instructions: tools, drafts, hand off, advice, limits. */
851
851
  rules(main, policy, advisor, fns, failed) {
852
852
  const lines = [
853
- `You are ${this.name}. Each message starts with Bearings: the time now in the person's zone and where they are. Take today, now and how long ago from it; never guess the date.`,
853
+ `You are ${this.name}. Each message starts with <bearings>: the time now in the person's zone and where they are. Take today, now and how long ago from it; never guess the date. It is for you only: never quote it or start an answer with it.`,
854
854
  'Answer in short plain sentences. Use the tools for facts; never guess a number a tool can give you. Call several tools at once when they do not depend on each other.',
855
855
  'A tool marked DRAFT ONLY makes a card the person saves or dismisses; it changes nothing by itself. Say what the card will do; never claim it is done. The next message tells you how each card ended.',
856
856
  'A tool marked WRITES AT ONCE makes its change when you call it; the person can undo it from the chat. Change only what they asked for, and say what you changed.',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@columenlabs/lumen-ai",
3
- "version": "0.1.137",
3
+ "version": "0.1.138",
4
4
  "description": "Lumen's assistant and agent parts: a chat assistant's server (Claude tiers, tools over MCP, the web, hand off, spend caps), serving an MCP server from a Worker, read-only tool sets and metered tool calls.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -41,8 +41,8 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@anthropic-ai/sdk": "0.133.0",
44
- "@columenlabs/lumen-ops": "0.1.137",
45
- "@columenlabs/lumen-ui-types": "0.1.137",
44
+ "@columenlabs/lumen-ops": "0.1.138",
45
+ "@columenlabs/lumen-ui-types": "0.1.138",
46
46
  "openai": "7.32.0",
47
47
  "zod": "^4.3.6"
48
48
  },