dsh-plugin-soulbridge 0.0.115 → 0.0.116

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.
Files changed (2) hide show
  1. package/index.js +7 -4
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -763,11 +763,14 @@ export function renderRulesBlock(rules) {
763
763
  /** How many facts one window may put in the prompt before it is cut. */
764
764
  const TIME_WINDOW_LIMIT = 10;
765
765
 
766
- /** A calendar day as the user reads it — local, not UTC: a date is a day, not an instant. */
766
+ /**
767
+ * A calendar day in the unit the store writes: the UTC date of a day instant.
768
+ *
769
+ * Not the local date: facts store days as UTC midnights, so the local reading would
770
+ * disagree in any timezone west of UTC — and agree only by luck in ours.
771
+ */
767
772
  function isoDay(ms) {
768
- const date = new Date(ms);
769
- const pad = (n) => String(n).padStart(2, '0');
770
- return `${date.getFullYear()}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`;
773
+ return new Date(ms).toISOString().slice(0, 10);
771
774
  }
772
775
 
773
776
  /** When a fact happened, as the injection may say it: a located date, or the words said. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-plugin-soulbridge",
3
- "version": "0.0.115",
3
+ "version": "0.0.116",
4
4
  "description": "Inject soulbridge context into DSH sessions and feed user turns back as observations.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -42,6 +42,6 @@
42
42
  "setup": "node scripts/install-hooks.mjs"
43
43
  },
44
44
  "dependencies": {
45
- "soulbridge": ">=0.0.114 <0.1.0"
45
+ "soulbridge": ">=0.0.115 <0.1.0"
46
46
  }
47
47
  }