bkper 5.7.3 → 5.8.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 (75) hide show
  1. package/README.md +25 -0
  2. package/lib/agent/bundle/agent-entry.js +110 -103
  3. package/lib/agent/context-resources.d.ts +44 -0
  4. package/lib/agent/context-resources.d.ts.map +1 -0
  5. package/lib/agent/context-resources.js +110 -0
  6. package/lib/agent/context-resources.js.map +1 -0
  7. package/lib/agent/interactive/run-agent-mode.d.ts +2 -0
  8. package/lib/agent/interactive/run-agent-mode.d.ts.map +1 -1
  9. package/lib/agent/interactive/run-agent-mode.js +22 -3
  10. package/lib/agent/interactive/run-agent-mode.js.map +1 -1
  11. package/lib/agent/startup-maintenance.d.ts +13 -2
  12. package/lib/agent/startup-maintenance.d.ts.map +1 -1
  13. package/lib/agent/startup-maintenance.js +35 -8
  14. package/lib/agent/startup-maintenance.js.map +1 -1
  15. package/lib/cli.js +3 -0
  16. package/lib/cli.js.map +1 -1
  17. package/lib/commands/agent-command.d.ts +9 -1
  18. package/lib/commands/agent-command.d.ts.map +1 -1
  19. package/lib/commands/agent-command.js +45 -4
  20. package/lib/commands/agent-command.js.map +1 -1
  21. package/lib/commands/apps/dev.d.ts.map +1 -1
  22. package/lib/commands/apps/dev.js +5 -4
  23. package/lib/commands/apps/dev.js.map +1 -1
  24. package/lib/commands/apps/git/credentials.d.ts +1 -0
  25. package/lib/commands/apps/git/credentials.d.ts.map +1 -1
  26. package/lib/commands/apps/git/credentials.js +1 -1
  27. package/lib/commands/apps/git/credentials.js.map +1 -1
  28. package/lib/commands/context/book-context.d.ts +20 -0
  29. package/lib/commands/context/book-context.d.ts.map +1 -0
  30. package/lib/commands/context/book-context.js +40 -0
  31. package/lib/commands/context/book-context.js.map +1 -0
  32. package/lib/commands/context/domain-context.d.ts +21 -0
  33. package/lib/commands/context/domain-context.d.ts.map +1 -0
  34. package/lib/commands/context/domain-context.js +39 -0
  35. package/lib/commands/context/domain-context.js.map +1 -0
  36. package/lib/commands/context/git-credential.d.ts +17 -0
  37. package/lib/commands/context/git-credential.d.ts.map +1 -0
  38. package/lib/commands/context/git-credential.js +121 -0
  39. package/lib/commands/context/git-credential.js.map +1 -0
  40. package/lib/commands/context/platform-context.d.ts +42 -0
  41. package/lib/commands/context/platform-context.d.ts.map +1 -0
  42. package/lib/commands/context/platform-context.js +84 -0
  43. package/lib/commands/context/platform-context.js.map +1 -0
  44. package/lib/commands/context/register.d.ts +4 -0
  45. package/lib/commands/context/register.d.ts.map +1 -0
  46. package/lib/commands/context/register.js +79 -0
  47. package/lib/commands/context/register.js.map +1 -0
  48. package/lib/commands/context/user-context.d.ts +36 -0
  49. package/lib/commands/context/user-context.d.ts.map +1 -0
  50. package/lib/commands/context/user-context.js +125 -0
  51. package/lib/commands/context/user-context.js.map +1 -0
  52. package/lib/dev/auth-middleware.d.ts +11 -1
  53. package/lib/dev/auth-middleware.d.ts.map +1 -1
  54. package/lib/dev/auth-middleware.js +16 -1
  55. package/lib/dev/auth-middleware.js.map +1 -1
  56. package/lib/dev/local-outbound.d.ts +7 -0
  57. package/lib/dev/local-outbound.d.ts.map +1 -1
  58. package/lib/dev/local-outbound.js +26 -12
  59. package/lib/dev/local-outbound.js.map +1 -1
  60. package/lib/dev/managed-sandbox.d.ts +11 -0
  61. package/lib/dev/managed-sandbox.d.ts.map +1 -0
  62. package/lib/dev/managed-sandbox.js +13 -0
  63. package/lib/dev/managed-sandbox.js.map +1 -0
  64. package/lib/dev/tunnel.d.ts +5 -0
  65. package/lib/dev/tunnel.d.ts.map +1 -1
  66. package/lib/dev/tunnel.js +15 -0
  67. package/lib/dev/tunnel.js.map +1 -1
  68. package/lib/docs/api/ai-gateway.md +1 -0
  69. package/lib/docs/api/managed-agent.md +107 -3
  70. package/lib/docs/apps/ai.md +2 -1
  71. package/lib/docs/apps/development.md +27 -0
  72. package/lib/docs/cli/app-management.md +3 -1
  73. package/lib/docs/core/core-concepts.md +1 -1
  74. package/lib/docs/sdk/bkper-api-types.md +1 -0
  75. package/package.json +1 -1
package/README.md CHANGED
@@ -215,6 +215,31 @@ Run `/reload` in an open session after adding or removing a server, and use `/mc
215
215
 
216
216
  MCP tools run with your permissions. Add only servers you trust.
217
217
 
218
+ ### Your agent context
219
+
220
+ Your procedures and skills (an `AGENTS.md` and `.agents/skills/<name>/SKILL.md`) can be shared by all your agents: the Bkper CLI Agent, Bkper Agent on the web, and any agent that reads those standards. They live in a Git clone at `~/.bkper/user`, which the agent loads at every start and `/reload`, and updates in the background.
221
+
222
+ ```bash
223
+ bkper context pull # clone or update ~/.bkper/user now
224
+ ```
225
+
226
+ To publish a change, commit and `git push` from that folder; it reaches all your agents. Unpushed changes are never overwritten. Never put Book data in it.
227
+
228
+ ### Your company's agent context
229
+
230
+ If your Bkper account belongs to a company domain, the company can share procedures and skills with everyone in it: report layout, naming conventions, approval habits. `bkper context pull` also keeps them in `~/.bkper/domain`, and the agent loads them before yours: your `AGENTS.md` comes after the company's, and your skills win over the company's of the same name. Everyone in the domain reads it; only the domain's admin publishes, with a commit and `git push` from that folder. Accounts without a company domain have none.
231
+
232
+ ### A Book's agent context
233
+
234
+ A Book can have its own procedures and skills, shared by everyone who can view it: the meaning of its accounts, its month-end close, its import quirks. Start the agent on a Book to load them beside yours:
235
+
236
+ ```bash
237
+ bkper agent -b <bookId> # loads it; pulled in the background, newer pushes load at /reload
238
+ bkper context pull -b <bookId> # pull yours (and your company's) and the Book's now, into ~/.bkper/books/<bookId>
239
+ ```
240
+
241
+ The Book's `AGENTS.md` comes after yours, and its skills win over yours of the same name. Editors of the Book publish with a commit and `git push` from its folder, which reaches everyone who can view it. Unpushed changes are never overwritten. Never put Book data in it.
242
+
218
243
  ---
219
244
 
220
245
  ## Data Management