@operad-io/bot 0.1.1 → 0.3.0

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @operad-io/bot
2
2
 
3
- **The bot plugin.** A bot is a working directory, a default agent, skills, a speaker and an access profile. It is the parent of its chats. Optional: turn it on with `operad plugin enable bot`.
3
+ **The bot plugin.** A bot is a working directory, a default agent, skills, a speaker and an access profile. It is the parent of its chats. A new home turns it on; a home made before needs `operad plugin enable bot`.
4
4
 
5
5
  This package is part of [operad](https://github.com/operad-io/operad). Most people install only [`@operad-io/cli`](https://www.npmjs.com/package/@operad-io/cli).
6
6
 
package/bot.schema.json CHANGED
@@ -7,6 +7,7 @@
7
7
  "properties": {
8
8
  "bots": {
9
9
  "type": "object",
10
+ "title": "Bots",
10
11
  "description": "The bots, by name. `default` exists even when it is not written here.",
11
12
  "additionalProperties": {
12
13
  "type": "object",
@@ -15,20 +16,26 @@
15
16
  "cwd": {
16
17
  "type": "string",
17
18
  "minLength": 1,
18
- "description": "The working directory. Without it: ~/.operad/bot for `default`, ~/.operad/bot/<name> for any other. It must be inside ~/.operad/bot or outside the operad home."
19
+ "description": "The working directory. Without it: ~/.operad/bot/<name>, so the default bot is in ~/.operad/bot/default. It must be inside ~/.operad/bot or outside the operad home."
19
20
  },
20
21
  "harness": {
21
22
  "type": "string",
22
23
  "minLength": 1,
23
24
  "description": "The agent a new chat uses when it names none."
24
25
  },
26
+ "useOwnSettings": {
27
+ "type": "boolean",
28
+ "title": "Use my own agent settings",
29
+ "default": false,
30
+ "description": "The bot's agent then reads your own configuration of that agent. claude: your settings, instruction files, memory, skills, commands, subagents, plugins and MCP servers; pi: your settings, context files, skills, prompt templates and extensions, whose own code at load is not stopped by the profile; codex and radian always read their own configuration, so this switch does not change them. The bot's access profile still refuses what it refuses. Off by default."
31
+ },
25
32
  "skills": {
26
33
  "type": "array",
27
34
  "items": {
28
35
  "type": "string",
29
36
  "minLength": 1
30
37
  },
31
- "description": "Directories with a SKILL.md, given to the agent at every reply. A relative path is under the working directory."
38
+ "description": "Skills given to the agent at every reply; the agent may read them but not change them. A path may be a directory with a SKILL.md, a directory whose direct subdirectories each have one (such as ~/.agents/skills), or a .agents directory (such as ~/.agents), whose skills directory is read the same way. Every skill directly inside such a directory is loaded, including one added later. A relative path is under the working directory."
32
39
  },
33
40
  "model": {
34
41
  "type": "string",
@@ -45,6 +52,37 @@
45
52
  "minLength": 1,
46
53
  "description": "How a chat of this bot labels the model's messages in its transcript. Without it the chat plugin's speaker is used."
47
54
  },
55
+ "accessLevel": {
56
+ "type": "string",
57
+ "title": "Access level",
58
+ "enum": ["plan", "ask", "edits", "full"],
59
+ "default": "ask",
60
+ "description": "The level a chat on this bot starts at, when opened from the desktop, the CLI, the MCP server or Telegram; a chat a scheduled prompt opens starts at full. Unlike `access`, which can only tighten the profile, this can loosen it: `full` asks nothing but the deny rules. A chat that chose a level with /access keeps it; a chat that did not follows this setting. See docs/user/access.md."
61
+ },
62
+ "writeWiki": {
63
+ "type": "boolean",
64
+ "title": "Write the wiki",
65
+ "description": "Whether this bot may write the shared wiki. Without it the default bot writes it and every other bot only reads it. Read access is always there; a bot that may not write it has the wiki refused for writing."
66
+ },
67
+ "tidyTime": {
68
+ "type": "string",
69
+ "title": "Tidy time",
70
+ "default": "03:30",
71
+ "pattern": "^(?:[01]\\d|2[0-3]):[0-5]\\d$",
72
+ "description": "When the nightly memory check runs, as HH:MM in this machine's local time zone, between 03:00 and 03:59 by default. A missed night is caught up once after the machine wakes."
73
+ },
74
+ "runWithoutAsking": {
75
+ "type": "boolean",
76
+ "title": "Run without asking",
77
+ "description": "不询问直接运行. When on, the nightly memory tidy runs without a pending card; off, it waits for Run or Skip. Off by default.",
78
+ "default": false
79
+ },
80
+ "backgroundModel": {
81
+ "type": "string",
82
+ "title": "Background model",
83
+ "minLength": 1,
84
+ "description": "The model a memory tidy uses. Without it the bot's agent declares a cheap model for background work (claude: haiku); a bot with neither uses its own model, else the agent's default."
85
+ },
48
86
  "mcpServers": {
49
87
  "type": "object",
50
88
  "description": "The local MCP servers this bot's chats mount, by name. A server is added only through `bot mcp`, which a person approves; the digest is of its tool names and descriptions, and a chat that finds other tools does not mount the server.",
package/package.json CHANGED
@@ -1,14 +1,16 @@
1
1
  {
2
2
  "name": "@operad-io/bot",
3
- "version": "0.1.1",
3
+ "version": "0.3.0",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./src/index.ts"
7
7
  },
8
8
  "dependencies": {
9
- "@operad-io/chat": "0.1.1",
10
- "@operad-io/engine": "0.1.1",
11
- "@operad-io/access-match": "0.1.1"
9
+ "@operad-io/chat": "0.3.0",
10
+ "@operad-io/dev": "0.3.0",
11
+ "@operad-io/engine": "0.3.0",
12
+ "@operad-io/access-match": "0.3.0",
13
+ "@operad-io/memory": "0.3.0"
12
14
  },
13
15
  "description": "operad: the bot plugin",
14
16
  "repository": {