{
  "name": "@themoltnet/agent-daemon",
  "version": "0.73.0",
  "license": "AGPL-3.0-only",
  "type": "module",
  "description": "Universal MoltNet agent daemon host with a built-in Pi/Gondolin runtime and support for trusted operator-owned runtime modules. CLI: moltnet-agent.",
  "keywords": [
    "moltnet",
    "agent-daemon",
    "task-execution"
  ],
  "repository": {
    "type": "git",
    "url": "git+https://github.com/getlarge/themoltnet.git",
    "directory": "apps/agent-daemon"
  },
  "homepage": "https://themolt.net",
  "main": "./dist/cli.js",
  "types": "./dist/cli.d.ts",
  "exports": {
    ".": {
      "types": "./dist/cli.d.ts",
      "import": "./dist/cli.js"
    },
    "./runtime": {
      "types": "./dist/runtime.d.ts",
      "import": "./dist/runtime.js"
    },
    "./pi": {
      "types": "./dist/pi.d.ts",
      "import": "./dist/pi.js"
    }
  },
  "bin": {
    "moltnet-agent": "./dist/main.js"
  },
  "files": [
    "dist/*.js",
    "dist/assets/*.js",
    "dist/cli.d.ts",
    "dist/cli.d.ts.map",
    "dist/pi.d.ts",
    "dist/pi.d.ts.map",
    "dist/runtime.d.ts",
    "dist/runtime.d.ts.map"
  ],
  "engines": {
    "node": ">=24"
  },
  "dependencies": {
    "@earendil-works/gondolin": "^0.12.0",
    "@earendil-works/pi-ai": "1.2.0",
    "@earendil-works/pi-coding-agent": "1.2.0",
    "@fastify/cors": "^11.3.1",
    "@fastify/helmet": "^13.1.2",
    "@fastify/otel": "^0.21.2",
    "@fastify/rate-limit": "^10.3.0",
    "@ipld/dag-cbor": "^9.2.5",
    "@noble/ciphers": "^1.2.0",
    "@noble/curves": "^2.0.0",
    "@noble/ed25519": "^2.0.0",
    "@noble/hashes": "^1.7.0",
    "@opentelemetry/api": "^1.9.1",
    "@opentelemetry/exporter-metrics-otlp-proto": "^0.223.0",
    "@opentelemetry/exporter-trace-otlp-proto": "^0.223.0",
    "@opentelemetry/instrumentation": "^0.223.0",
    "@opentelemetry/instrumentation-dns": "^0.66.0",
    "@opentelemetry/instrumentation-http": "^0.223.0",
    "@opentelemetry/instrumentation-net": "^0.67.0",
    "@opentelemetry/instrumentation-pg": "^0.75.0",
    "@opentelemetry/instrumentation-pino": "^0.69.0",
    "@opentelemetry/instrumentation-runtime-node": "^0.36.0",
    "@opentelemetry/instrumentation-undici": "^0.33.0",
    "@opentelemetry/resources": "^2.12.0",
    "@opentelemetry/sdk-metrics": "^2.12.0",
    "@opentelemetry/sdk-trace-base": "^2.12.0",
    "@opentelemetry/sdk-trace-node": "^2.12.0",
    "@opentelemetry/semantic-conventions": "^1.43.0",
    "fastify": "^5.12.5",
    "fastify-plugin": "^5.1.0",
    "jose": "^6.1.3",
    "multiformats": "^13.3.0",
    "pino": "^10.3.1",
    "pino-opentelemetry-transport": "^3.0.0",
    "pino-pretty": "^13.1.3",
    "proper-lockfile": "4.1.2",
    "typebox": "^1.2.8",
    "@themoltnet/pi-runtime": "0.26.0",
    "@themoltnet/agent-runtime": "1.17.0",
    "@themoltnet/sdk": "0.154.0",
    "@themoltnet/os-keyring": "0.5.0"
  },
  "devDependencies": {
    "@fastify/swagger": "^9.9.2",
    "@types/proper-lockfile": "^4.1.4",
    "tsx": "^4.23.15",
    "typescript": "~5.9.2",
    "vite": "^8.0.0",
    "vite-plugin-dts": "^4.5.4",
    "vitest": "^3.2.6",
    "@moltnet/bootstrap": "0.1.0",
    "@moltnet/api-client": "0.1.0",
    "@moltnet/crypto-service": "0.1.0",
    "@moltnet/execution-plan": "0.1.0",
    "@moltnet/agent-eval": "0.1.0",
    "@moltnet/observability": "0.1.0",
    "@moltnet/execution-integrations": "0.1.0",
    "@moltnet/loopback-companion": "0.1.0",
    "@moltnet/models": "0.1.0",
    "@moltnet/runtime-profiles": "0.1.0",
    "@moltnet/tasks": "0.1.0"
  },
  "nx": {
    "projectType": "application",
    "tags": [
      "type:app",
      "scope:agent",
      "platform:cli"
    ],
    "targets": {
      "generate:openapi": {
        "outputs": [
          "{projectRoot}/openapi.json"
        ]
      },
      "bundle": {
        "executor": "nx:run-commands",
        "cache": false,
        "dependsOn": [
          "build"
        ],
        "options": {
          "cwd": "{workspaceRoot}",
          "command": "node tools/release/agent-bundle/build.mjs --skip-daemon-build --out dist/agent-bundle"
        }
      },
      "test": {
        "inputs": [
          "default",
          "^production",
          "{workspaceRoot}/test-fixtures/agent-server-endpoint.json",
          "{workspaceRoot}/docs/operate/*.md",
          "{workspaceRoot}/test-fixtures/connection-state-root.json",
          "{workspaceRoot}/docs/.vitepress/config.ts"
        ]
      },
      "check:externals": {}
    }
  },
  "scripts": {
    "cli": "tsx src/main.ts",
    "dev": "tsx ../../tools/src/desktop-development.ts tsx watch src/main.ts",
    "start": "node dist/main.js",
    "build": "vite build",
    "generate:openapi": "tsx scripts/generate-openapi.ts",
    "check:pack": "tsx ../../tools/src/check-pack.ts --package . && pnpm run smoke:pack",
    "smoke:pack": "tsx ../../tools/src/smoke-pack.ts --package . --local-dependency ../../libs/sdk --local-dependency ../../libs/os-keyring --local-dependency ../../libs/agent-runtime --local-dependency ../../libs/sandbox-gondolin --local-dependency ../../libs/shell-command-analyzer --local-dependency ../../libs/pi-runtime --copy-file test-fixtures/runtime-adapter.mjs runtime-adapter.mjs --probe-file test-fixtures/keyring-pack-probe.mjs keyring-pack-probe.mjs --bin moltnet-agent --args --runtime ./runtime-adapter.mjs --help --expect \"long-running task worker for MoltNet\""
  }
}