@fungi.computer/truffle 0.0.0-stage → 0.1.1

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 (116) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +294 -2
  3. package/computerd-loopback.cjs +16 -0
  4. package/dist/auth-cli.d.ts +36 -0
  5. package/dist/auth-cli.js +351 -0
  6. package/dist/fungi-account-command.d.ts +18 -0
  7. package/dist/fungi-account-command.js +92 -0
  8. package/dist/index.d.ts +19 -0
  9. package/dist/index.js +17 -0
  10. package/dist/internal/private-workerd-sandbox-worker.mjs +27488 -0
  11. package/dist/internal/sandbox-metafile.json +6726 -0
  12. package/dist/linear-auth.d.ts +4 -0
  13. package/dist/linear-auth.js +72 -0
  14. package/dist/local-extensions.d.ts +97 -0
  15. package/dist/local-extensions.js +484 -0
  16. package/dist/local-login.d.ts +55 -0
  17. package/dist/local-login.js +167 -0
  18. package/dist/local-models.d.ts +14 -0
  19. package/dist/local-models.js +77 -0
  20. package/dist/local-skill-source.d.ts +6 -0
  21. package/dist/local-skill-source.js +357 -0
  22. package/dist/log-event.d.ts +2 -0
  23. package/dist/log-event.js +9 -0
  24. package/dist/private-bun-shiitake-host.d.ts +11 -0
  25. package/dist/private-bun-shiitake-host.js +66 -0
  26. package/dist/private-file-credential-store.d.ts +33 -0
  27. package/dist/private-file-credential-store.js +283 -0
  28. package/dist/private-files-patch.d.ts +3 -0
  29. package/dist/private-files-patch.js +86 -0
  30. package/dist/private-fungi-account.d.ts +235 -0
  31. package/dist/private-fungi-account.js +1149 -0
  32. package/dist/private-fungi-auth-error.d.ts +5 -0
  33. package/dist/private-fungi-auth-error.js +7 -0
  34. package/dist/private-fungi-mcp-connection.d.ts +22 -0
  35. package/dist/private-fungi-mcp-connection.js +143 -0
  36. package/dist/private-fungi-mcp-endpoint.d.ts +2 -0
  37. package/dist/private-fungi-mcp-endpoint.js +15 -0
  38. package/dist/private-fungi-mcp-selection.d.ts +14 -0
  39. package/dist/private-fungi-mcp-selection.js +36 -0
  40. package/dist/private-fungi-model-api.d.ts +6 -0
  41. package/dist/private-fungi-model-api.js +125 -0
  42. package/dist/private-fungi-model-catalog.d.ts +6 -0
  43. package/dist/private-fungi-model-catalog.js +78 -0
  44. package/dist/private-fungi-model-provider.d.ts +6 -0
  45. package/dist/private-fungi-model-provider.js +46 -0
  46. package/dist/private-fungi-pending-logouts.d.ts +34 -0
  47. package/dist/private-fungi-pending-logouts.js +136 -0
  48. package/dist/private-invocation-computer.d.ts +37 -0
  49. package/dist/private-invocation-computer.js +459 -0
  50. package/dist/private-invocation-files.d.ts +15 -0
  51. package/dist/private-invocation-files.js +449 -0
  52. package/dist/private-local-acp-stdio.d.ts +17 -0
  53. package/dist/private-local-acp-stdio.js +142 -0
  54. package/dist/private-local-auth-rpc.d.ts +69 -0
  55. package/dist/private-local-auth-rpc.js +273 -0
  56. package/dist/private-local-computer-attach.d.ts +49 -0
  57. package/dist/private-local-computer-attach.js +216 -0
  58. package/dist/private-local-computer-backend.d.ts +282 -0
  59. package/dist/private-local-computer-backend.js +402 -0
  60. package/dist/private-local-computer-processes.d.ts +199 -0
  61. package/dist/private-local-computer-processes.js +589 -0
  62. package/dist/private-local-default-model.d.ts +11 -0
  63. package/dist/private-local-default-model.js +45 -0
  64. package/dist/private-local-delegation.d.ts +29 -0
  65. package/dist/private-local-delegation.js +78 -0
  66. package/dist/private-local-effective-model.d.ts +19 -0
  67. package/dist/private-local-effective-model.js +14 -0
  68. package/dist/private-local-exec-launch.d.ts +41 -0
  69. package/dist/private-local-exec-launch.js +51 -0
  70. package/dist/private-local-exec-path.d.ts +6 -0
  71. package/dist/private-local-exec-path.js +40 -0
  72. package/dist/private-local-git-exclude.d.ts +2 -0
  73. package/dist/private-local-git-exclude.js +33 -0
  74. package/dist/private-local-http-dispatch.d.ts +5 -0
  75. package/dist/private-local-http-dispatch.js +14 -0
  76. package/dist/private-local-mail.d.ts +11 -0
  77. package/dist/private-local-mail.js +69 -0
  78. package/dist/private-local-model-settings.d.ts +5 -0
  79. package/dist/private-local-model-settings.js +31 -0
  80. package/dist/private-local-runtime-host.d.ts +141 -0
  81. package/dist/private-local-runtime-host.js +988 -0
  82. package/dist/private-local-service-contract.d.ts +90 -0
  83. package/dist/private-local-service-contract.js +1 -0
  84. package/dist/private-local-service-discovery.d.ts +101 -0
  85. package/dist/private-local-service-discovery.js +221 -0
  86. package/dist/private-local-service-ids.d.ts +3 -0
  87. package/dist/private-local-service-ids.js +8 -0
  88. package/dist/private-local-service-listener.d.ts +15 -0
  89. package/dist/private-local-service-listener.js +211 -0
  90. package/dist/private-local-service-owner.d.ts +1567 -0
  91. package/dist/private-local-service-owner.js +371 -0
  92. package/dist/private-local-service-process.d.ts +1 -0
  93. package/dist/private-local-service-process.js +6 -0
  94. package/dist/private-local-service.d.ts +17 -0
  95. package/dist/private-local-service.js +330 -0
  96. package/dist/private-local-session-discovery.d.ts +19 -0
  97. package/dist/private-local-session-discovery.js +157 -0
  98. package/dist/private-local-shiitake-host.d.ts +44 -0
  99. package/dist/private-local-shiitake-host.js +143 -0
  100. package/dist/private-local-subagents.d.ts +27 -0
  101. package/dist/private-local-subagents.js +77 -0
  102. package/dist/private-local-worker-server.d.ts +15 -0
  103. package/dist/private-local-worker-server.js +136 -0
  104. package/dist/private-sqlite-owner.d.ts +7 -0
  105. package/dist/private-sqlite-owner.js +103 -0
  106. package/dist/private-team-computers.d.ts +38 -0
  107. package/dist/private-team-computers.js +101 -0
  108. package/dist/private-workerd-sandbox.d.ts +3 -0
  109. package/dist/private-workerd-sandbox.js +347 -0
  110. package/dist/team-apps.d.ts +24 -0
  111. package/dist/team-apps.js +123 -0
  112. package/dist/tracker-git-credential.d.ts +15 -0
  113. package/dist/tracker-git-credential.js +87 -0
  114. package/native/bin/build.json +4037 -0
  115. package/native/bin/fungi-apply-patch +0 -0
  116. package/package.json +148 -3
Binary file
package/package.json CHANGED
@@ -1,6 +1,151 @@
1
1
  {
2
2
  "name": "@fungi.computer/truffle",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
3
+ "version": "0.1.1",
4
+ "private": false,
5
+ "description": "Truffle: Fungi's local Agent runtime, bundled into the fungi command",
6
+ "type": "module",
7
+ "main": "./dist/index.js",
8
+ "types": "./dist/index.d.ts",
9
+ "bin": {
10
+ "fungi-local-auth": "./dist/auth-cli.js"
11
+ },
12
+ "exports": {
13
+ ".": {
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.js"
16
+ },
17
+ "./acp-stdio": {
18
+ "types": "./dist/private-local-acp-stdio.d.ts",
19
+ "import": "./dist/private-local-acp-stdio.js"
20
+ },
21
+ "./auth": {
22
+ "types": "./dist/auth-cli.d.ts",
23
+ "import": "./dist/auth-cli.js"
24
+ },
25
+ "./service": {
26
+ "types": "./dist/private-local-service.d.ts",
27
+ "import": "./dist/private-local-service.js"
28
+ },
29
+ "./service-process": {
30
+ "types": "./dist/private-local-service-listener.d.ts",
31
+ "import": "./dist/private-local-service-listener.js"
32
+ },
33
+ "./computer-backend": {
34
+ "types": "./dist/private-local-computer-backend.d.ts",
35
+ "import": "./dist/private-local-computer-backend.js"
36
+ },
37
+ "./login": {
38
+ "types": "./dist/local-login.d.ts",
39
+ "import": "./dist/local-login.js"
40
+ },
41
+ "./skills": {
42
+ "types": "./dist/local-skill-source.d.ts",
43
+ "import": "./dist/local-skill-source.js"
44
+ },
45
+ "./apps": {
46
+ "types": "./dist/team-apps.d.ts",
47
+ "import": "./dist/team-apps.js"
48
+ },
49
+ "./extensions": {
50
+ "types": "./dist/local-extensions.d.ts",
51
+ "import": "./dist/local-extensions.js"
52
+ }
53
+ },
54
+ "files": [
55
+ "dist",
56
+ "computerd-loopback.cjs",
57
+ "native/bin"
58
+ ],
59
+ "dependencies": {
60
+ "@agentclientprotocol/sdk": "1.7.0",
61
+ "@earendil-works/pi-ai": "0.99.2",
62
+ "@effect/platform-node": "4.0.2",
63
+ "@fungi.computer/graft": "0.0.1",
64
+ "@fungi.computer/agar": "0.2.0",
65
+ "@fungi.computer/bird-dog": "0.0.1",
66
+ "@fungi.computer/cairn": "0.0.1",
67
+ "@fungi.computer/cordyceps": "0.2.2",
68
+ "@fungi.computer/knapsack": "0.1.0",
69
+ "@fungi.computer/mycelium": "0.1.0",
70
+ "@fungi.computer/shiitake": "0.2.0",
71
+ "@fungi.computer/shiitake-extensions": "0.0.2",
72
+ "@fungi.computer/veil": "0.1.0",
73
+ "@fungi.computer/whistle": "0.0.2",
74
+ "@modelcontextprotocol/client": "2.0.0",
75
+ "@fungi.computer/capnweb": "0.12.0",
76
+ "diff": "8.0.4",
77
+ "effect": "4.0.2",
78
+ "eventsource": "5.1.1",
79
+ "hono": "4.13.5",
80
+ "miniflare": "5.20260828.0-alpha",
81
+ "proper-lockfile": "4.1.2",
82
+ "re2js": "1.3.3",
83
+ "write-file-atomic": "8.0.0",
84
+ "yaml": "2.9.0",
85
+ "zod": "4.4.3",
86
+ "@fungi.computer/lantern": "0.2.0",
87
+ "jose": "6.2.11",
88
+ "@fungi.computer/oyster": "0.2.0",
89
+ "@fungi.computer/seam": "0.0.1",
90
+ "@fungi.computer/gills": "0.1.0"
91
+ },
92
+ "devDependencies": {
93
+ "@cloudflare/codemode": "0.5.1",
94
+ "@modelcontextprotocol/server": "2.0.0",
95
+ "@types/node": "24.13.3",
96
+ "bun-types": "1.4.1",
97
+ "@types/proper-lockfile": "4.1.4",
98
+ "@types/write-file-atomic": "4.0.3",
99
+ "esbuild": "0.28.2",
100
+ "typescript": "5.9.3",
101
+ "vitest": "4.1.11",
102
+ "bun": "1.4.2",
103
+ "@fungi.computer/mule": "0.0.2"
104
+ },
105
+ "botanical": {
106
+ "role": "runtime",
107
+ "operations": {
108
+ "lint": "required",
109
+ "typecheck": "required",
110
+ "build": "required",
111
+ "test": "required",
112
+ "docs": {
113
+ "status": "not-applicable",
114
+ "reason": "Truffle ships inside @fungi.computer/spore and owns no generated API documentation surface"
115
+ },
116
+ "pack": {
117
+ "status": "not-applicable",
118
+ "reason": "Truffle is bundled into @fungi.computer/spore and not packed on its own"
119
+ },
120
+ "smoke": {
121
+ "status": "not-applicable",
122
+ "reason": "Focused synthetic persistence and Pi integration tests are the current runtime proof"
123
+ },
124
+ "stranger": {
125
+ "status": "not-applicable",
126
+ "reason": "Truffle is bundled into @fungi.computer/spore; the packed fungi stranger install is its consumer proof"
127
+ }
128
+ }
129
+ },
130
+ "license": "MIT",
131
+ "publishConfig": {
132
+ "access": "public"
133
+ },
134
+ "scripts": {
135
+ "lint": "../../node_modules/.bin/eslint src scripts test --max-warnings=0 && ../../node_modules/.bin/oxlint --config ../../oxlint.config.ts --deny-warnings src scripts test",
136
+ "typecheck": "tsc -p tsconfig.json --noEmit",
137
+ "build": "pnpm run clean && tsc -p tsconfig.build.json && esbuild src/internal/private-workerd-sandbox-worker.mjs --outfile=dist/internal/private-workerd-sandbox-worker.mjs --bundle --format=esm --platform=neutral --conditions=workerd,browser --target=es2024 --external:cloudflare:workers --metafile=dist/internal/sandbox-metafile.json --log-level=warning",
138
+ "clean": "node --input-type=module --eval \"import { rm } from 'node:fs/promises'; await rm('dist', { recursive: true, force: true });\"",
139
+ "test": "pnpm run test:node && pnpm run test:patch",
140
+ "test:full": "pnpm run test && pnpm run test:bun",
141
+ "test:node": "../../node_modules/.bin/vitest run",
142
+ "test:bun": "bun test ./test/private-local-service-discovery.bun.test.ts ./test/private-local-service-listener.bun.test.ts ./test/private-local-service-manager.bun.test.ts ./test/private-local-auth-rpc.bun.test.ts ./test/private-workerd-deadline.bun.test.ts ./test/private-workerd-forage.bun.test.ts ./test/local-extensions.bun.test.ts",
143
+ "build:native": "fungi-apply-patch-build --out native/bin",
144
+ "test:patch": "node --test --test-timeout=30000 test/apply-patch.native.mjs",
145
+ "format:check": "node ../../tooling/repository/scripts/format-package-check.mjs",
146
+ "lint:anti-slop": "node ../../tooling/repository/scripts/lint-package-anti-slop.mjs",
147
+ "test:unit": "node ../../tooling/repository/scripts/test-file-pool.mjs pnpm run test:node",
148
+ "test:merge": "pnpm run test:patch",
149
+ "proof:goal-loop-sol": "bun scripts/goal-loop-model-proof.mjs"
150
+ }
6
151
  }