shennian 0.2.74 → 0.2.75

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.
@@ -22,7 +22,7 @@ const MIME_BY_EXT = {
22
22
  '.pptx': 'application/vnd.openxmlformats-officedocument.presentationml.presentation',
23
23
  '.zip': 'application/zip',
24
24
  };
25
- const MAX_EXTERNAL_ATTACHMENT_BYTES = Number(process.env.SHENNIAN_EXTERNAL_ATTACHMENT_MAX_BYTES || 50 * 1024 * 1024);
25
+ const MAX_EXTERNAL_ATTACHMENT_BYTES = Number(process.env.SHENNIAN_EXTERNAL_ATTACHMENT_MAX_BYTES || 20 * 1024 * 1024);
26
26
  function inferMimeType(filePath, kind) {
27
27
  const ext = path.extname(filePath).toLowerCase();
28
28
  if (MIME_BY_EXT[ext])
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shennian",
3
- "version": "0.2.74",
3
+ "version": "0.2.75",
4
4
  "description": "Shennian — AI Agent Control Plane CLI",
5
5
  "type": "module",
6
6
  "bin": {
@@ -33,20 +33,14 @@
33
33
  "engines": {
34
34
  "node": ">=18"
35
35
  },
36
- "scripts": {
37
- "build": "tsc && node -e \"require('node:fs').chmodSync('dist/bin/shennian.js', 0o755)\"",
38
- "build:publish": "node -e \"const fs=require('node:fs'); fs.rmSync('dist', { recursive: true, force: true }); fs.rmSync('.tsbuildinfo.publish', { force: true })\" && tsc -p tsconfig.publish.json && node -e \"require('node:fs').chmodSync('dist/bin/shennian.js', 0o755)\"",
39
- "dev": "tsc --watch",
40
- "prepublishOnly": "pnpm build:publish"
41
- },
42
36
  "dependencies": {
43
37
  "@mariozechner/pi-agent-core": "^0.64.0",
44
38
  "@sinclair/typebox": "^0.34.49",
45
- "@shennian/wire": "workspace:*",
46
39
  "chalk": "^5.4.1",
47
40
  "commander": "^13.1.0",
48
41
  "qrcode-terminal": "^0.12.0",
49
- "ws": "^8.18.1"
42
+ "ws": "^8.18.1",
43
+ "@shennian/wire": "0.1.5"
50
44
  },
51
45
  "devDependencies": {
52
46
  "@types/node": "^20",
@@ -54,5 +48,10 @@
54
48
  "@types/ws": "^8.18.1",
55
49
  "tsx": "^4.19.4",
56
50
  "typescript": "^5.9.3"
51
+ },
52
+ "scripts": {
53
+ "build": "tsc && node -e \"require('node:fs').chmodSync('dist/bin/shennian.js', 0o755)\"",
54
+ "build:publish": "node -e \"const fs=require('node:fs'); fs.rmSync('dist', { recursive: true, force: true }); fs.rmSync('.tsbuildinfo.publish', { force: true })\" && tsc -p tsconfig.publish.json && node -e \"require('node:fs').chmodSync('dist/bin/shennian.js', 0o755)\"",
55
+ "dev": "tsc --watch"
57
56
  }
58
- }
57
+ }