@jacklika/dsh-tool-memory-filesystem 0.1.3-alpha.2 → 0.1.3-alpha.4

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/lib/index.js +2 -1
  2. package/package.json +3 -2
package/lib/index.js CHANGED
@@ -12,6 +12,7 @@ import { readdir, readFile, realpath, rename, rm, stat, writeFile, mkdir } from
12
12
  import { dirname, isAbsolute, join, relative, resolve, sep } from 'node:path';
13
13
  import z from '@deepseek-ai/schemastery';
14
14
  import { defineTool } from '@deepseek-ai/dsh-tools';
15
+ import { formatBeijingTime } from '@jacklika/dsh-memory-time';
15
16
  import yaml from 'js-yaml';
16
17
  /**
17
18
  * Compute a vault-relative note id from an absolute path. The result always
@@ -481,7 +482,7 @@ export function apply(ctx, config) {
481
482
  const frontmatterText = Object.keys(frontmatter).length > 0
482
483
  ? `---\n${yaml.dump(frontmatter).trim()}\n---\n\n`
483
484
  : '';
484
- const timestamp = new Date().toISOString();
485
+ const timestamp = formatBeijingTime(new Date());
485
486
  finalBody = `${frontmatterText}${body}\n\n## ${timestamp}\n\n${args.content}\n`;
486
487
  }
487
488
  exec.signal.throwIfAborted();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@jacklika/dsh-tool-memory-filesystem",
3
3
  "description": "Model-facing wiki/memory tools over a local Markdown vault: read, search, and write notes with Obsidian-style links and YAML frontmatter.",
4
- "version": "0.1.3-alpha.2",
4
+ "version": "0.1.3-alpha.4",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -32,7 +32,8 @@
32
32
  "license": "MIT",
33
33
  "dependencies": {
34
34
  "@deepseek-ai/schemastery": "3.18.4",
35
- "js-yaml": "^4.2.0"
35
+ "js-yaml": "^4.2.0",
36
+ "@jacklika/dsh-memory-time": "^0.1.0-alpha.0"
36
37
  },
37
38
  "peerDependencies": {
38
39
  "@deepseek-ai/cordis": "4.0.4",