@dscord/daemon 0.1.89 → 0.1.91

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dscord/daemon",
3
- "version": "0.1.89",
3
+ "version": "0.1.91",
4
4
  "dependencies": {
5
5
  "@modelcontextprotocol/sdk": "^1.29.0",
6
6
  "undici": "^6.24.1",
@@ -13,7 +13,8 @@
13
13
  "dscord-daemon": "./dist/index.js"
14
14
  },
15
15
  "files": [
16
- "dist"
16
+ "dist",
17
+ "resources"
17
18
  ],
18
19
  "publishConfig": {
19
20
  "access": "public"
@@ -0,0 +1,5 @@
1
+ {
2
+ "name": "dscord-identity",
3
+ "description": "Injects dscord runtime contract after Claude Code startup and compaction.",
4
+ "version": "0.0.1"
5
+ }
@@ -0,0 +1,16 @@
1
+ {
2
+ "hooks": {
3
+ "SessionStart": [
4
+ {
5
+ "matcher": "startup|compact",
6
+ "hooks": [
7
+ {
8
+ "type": "command",
9
+ "command": "\"${CLAUDE_PLUGIN_ROOT}/hooks/session-start\"",
10
+ "async": false
11
+ }
12
+ ]
13
+ }
14
+ ]
15
+ }
16
+ }
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+
4
+ reanchor_file="${DSCORD_REANCHOR_FILE:-}"
5
+ if [ -z "$reanchor_file" ] || [ ! -f "$reanchor_file" ]; then
6
+ exit 0
7
+ fi
8
+
9
+ node -e '
10
+ const fs = require("node:fs");
11
+ const reanchorFile = process.env.DSCORD_REANCHOR_FILE;
12
+ const context = fs.readFileSync(reanchorFile, "utf8");
13
+ process.stdout.write(JSON.stringify({
14
+ hookSpecificOutput: {
15
+ hookEventName: "SessionStart",
16
+ additionalContext: context
17
+ }
18
+ }));
19
+ process.stdout.write("\n");
20
+ '