@agentdocumentformat/cli 0.7.2
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/LICENSE +21 -0
- package/README.md +45 -0
- package/dist/adf.mjs +162 -0
- package/dist/chunks/APEv2Parser-2CNNHMXV.mjs +22 -0
- package/dist/chunks/AiffParser-7BR4RL6G.mjs +162 -0
- package/dist/chunks/App-L5L37JI5.mjs +16747 -0
- package/dist/chunks/AsfParser-VVRSLFOM.mjs +538 -0
- package/dist/chunks/DsdiffParser-CMD4AX7A.mjs +156 -0
- package/dist/chunks/DsfParser-UOGZDS2M.mjs +94 -0
- package/dist/chunks/FlacParser-HB3T3CD4.mjs +23 -0
- package/dist/chunks/MP4Parser-66HBRUSX.mjs +973 -0
- package/dist/chunks/MatroskaParser-J3HUIMEW.mjs +579 -0
- package/dist/chunks/MpegParser-YW6LIUEW.mjs +442 -0
- package/dist/chunks/MusepackParser-PAUSXP7D.mjs +252 -0
- package/dist/chunks/OggParser-NUBV3GWC.mjs +359 -0
- package/dist/chunks/WavPackParser-WQAGT7TC.mjs +171 -0
- package/dist/chunks/WaveParser-EWLQVDX4.mjs +238 -0
- package/dist/chunks/adf-schema-JRU2BTOG.mjs +62 -0
- package/dist/chunks/build-QF5W473T.mjs +60 -0
- package/dist/chunks/chatgpt-subscription-BQGWYZXE.mjs +23 -0
- package/dist/chunks/chunk-2DIECGFL.mjs +6 -0
- package/dist/chunks/chunk-2NAP2ZF7.mjs +60 -0
- package/dist/chunks/chunk-3AT7IIP7.mjs +25696 -0
- package/dist/chunks/chunk-3GNIDM53.mjs +35 -0
- package/dist/chunks/chunk-3M4ZPOA3.mjs +1477 -0
- package/dist/chunks/chunk-4MQPTCXY.mjs +510 -0
- package/dist/chunks/chunk-5PO5PKRV.mjs +366 -0
- package/dist/chunks/chunk-5QU5VY7N.mjs +52 -0
- package/dist/chunks/chunk-5W7KES6P.mjs +436 -0
- package/dist/chunks/chunk-62NE4LG4.mjs +61 -0
- package/dist/chunks/chunk-64OKE4X3.mjs +45 -0
- package/dist/chunks/chunk-6GJ4QHRI.mjs +1278 -0
- package/dist/chunks/chunk-6VQEXLE2.mjs +144 -0
- package/dist/chunks/chunk-6XUV6EK6.mjs +41 -0
- package/dist/chunks/chunk-776TSXEP.mjs +43 -0
- package/dist/chunks/chunk-7CV2SA3H.mjs +285 -0
- package/dist/chunks/chunk-7MTRVW2U.mjs +3103 -0
- package/dist/chunks/chunk-7N2R2VCG.mjs +1434 -0
- package/dist/chunks/chunk-7T2YMTWL.mjs +374 -0
- package/dist/chunks/chunk-7XYNI52E.mjs +149 -0
- package/dist/chunks/chunk-APHX6HSV.mjs +7731 -0
- package/dist/chunks/chunk-APRU6PHC.mjs +40 -0
- package/dist/chunks/chunk-AUYKRQPJ.mjs +499 -0
- package/dist/chunks/chunk-DXWDD5XJ.mjs +136 -0
- package/dist/chunks/chunk-EWL5FG4I.mjs +39 -0
- package/dist/chunks/chunk-EYX2YLJW.mjs +117 -0
- package/dist/chunks/chunk-F5ELW46V.mjs +27 -0
- package/dist/chunks/chunk-G426FACA.mjs +49 -0
- package/dist/chunks/chunk-GEKSJHIV.mjs +2472 -0
- package/dist/chunks/chunk-HBUENVQL.mjs +570 -0
- package/dist/chunks/chunk-HPVFJYXR.mjs +112 -0
- package/dist/chunks/chunk-HWLWPXQ7.mjs +721 -0
- package/dist/chunks/chunk-I2HJYHFT.mjs +665 -0
- package/dist/chunks/chunk-I3UYSITV.mjs +68 -0
- package/dist/chunks/chunk-IC4JDZCI.mjs +3864 -0
- package/dist/chunks/chunk-IHDDCZBS.mjs +112 -0
- package/dist/chunks/chunk-IIGMZHQQ.mjs +10416 -0
- package/dist/chunks/chunk-KWFOS5WC.mjs +41 -0
- package/dist/chunks/chunk-LAZIXV2F.mjs +5290 -0
- package/dist/chunks/chunk-LFMB4PAA.mjs +10814 -0
- package/dist/chunks/chunk-M2RX3S2T.mjs +49 -0
- package/dist/chunks/chunk-M3WPIJYM.mjs +65 -0
- package/dist/chunks/chunk-NBTUWMGP.mjs +263 -0
- package/dist/chunks/chunk-NGK6PVSF.mjs +2676 -0
- package/dist/chunks/chunk-NZ7JTHEO.mjs +85 -0
- package/dist/chunks/chunk-OQN33RGQ.mjs +52 -0
- package/dist/chunks/chunk-RIX34QHC.mjs +2935 -0
- package/dist/chunks/chunk-SGUTYISF.mjs +16 -0
- package/dist/chunks/chunk-SLJ5L7PY.mjs +1473 -0
- package/dist/chunks/chunk-SLUKGXKH.mjs +68 -0
- package/dist/chunks/chunk-TMT32MXT.mjs +419 -0
- package/dist/chunks/chunk-UYY5M2PB.mjs +151 -0
- package/dist/chunks/chunk-VAUOM3IN.mjs +298 -0
- package/dist/chunks/chunk-VMHTYDH4.mjs +172 -0
- package/dist/chunks/chunk-VZS54AA5.mjs +200 -0
- package/dist/chunks/chunk-WFQUVXML.mjs +295 -0
- package/dist/chunks/chunk-X34PDRUH.mjs +809 -0
- package/dist/chunks/chunk-XNPZBLYL.mjs +33 -0
- package/dist/chunks/chunk-XX7OSWTO.mjs +157 -0
- package/dist/chunks/chunk-XYTWGHFS.mjs +600 -0
- package/dist/chunks/chunk-XYV3VCIX.mjs +336 -0
- package/dist/chunks/chunk-Y5ZLKFLE.mjs +1469 -0
- package/dist/chunks/chunk-ZJKXHM4Q.mjs +230 -0
- package/dist/chunks/cli-TCMBNZF6.mjs +1030 -0
- package/dist/chunks/commands-DTEKM4ZL.mjs +20 -0
- package/dist/chunks/daemon-ZC3FZ2P4.mjs +112449 -0
- package/dist/chunks/daemon-control-WDX7PMTC.mjs +300 -0
- package/dist/chunks/daemon-token-WRSULP7G.mjs +23 -0
- package/dist/chunks/devtools-H7CI2ZVG.mjs +85 -0
- package/dist/chunks/discord-IWDQJA7A.mjs +70588 -0
- package/dist/chunks/dist-C57KYFS2.mjs +4952 -0
- package/dist/chunks/dist-I3XBAGDL.mjs +11 -0
- package/dist/chunks/email-V4Q4VJON.mjs +58679 -0
- package/dist/chunks/environment-NX277MQG.mjs +15 -0
- package/dist/chunks/grok-subscription-4PYX7TBF.mjs +19 -0
- package/dist/chunks/layout-EPJQNFAI.mjs +22 -0
- package/dist/chunks/lib-N7FCZWKH.mjs +4038 -0
- package/dist/chunks/open-OTQDGDH5.mjs +36 -0
- package/dist/chunks/parser-JVY2PWSM.mjs +19 -0
- package/dist/chunks/pipeline-executor-BHBSJX2K.mjs +19 -0
- package/dist/chunks/react-IUIDQ5LX.mjs +11 -0
- package/dist/chunks/screen-54BUTYCW.mjs +27 -0
- package/dist/chunks/slack-3L5QTDZX.mjs +8113 -0
- package/dist/chunks/store-WR7TZJZS.mjs +32 -0
- package/dist/chunks/telegram-5ISVFBV3.mjs +14918 -0
- package/dist/chunks/terminal-O5WO7C5U.mjs +48 -0
- package/dist/chunks/theme-NORU4J74.mjs +20 -0
- package/dist/chunks/themes-F2FKU7CP.mjs +23 -0
- package/dist/chunks/token-6G3HCMNX.mjs +54 -0
- package/dist/chunks/token-util-UXYSDQIW.mjs +12 -0
- package/dist/chunks/tui-ODVYUIMT.mjs +197 -0
- package/dist/chunks/welcome-XHXFV7SH.mjs +32 -0
- package/dist/chunks/whatsapp-XSAMNGPJ.mjs +85412 -0
- package/dist/chunks/xterm-headless-YF53XWXE.mjs +3353 -0
- package/package.json +53 -0
- package/resources/wasm/coreutils.LICENSE +18 -0
- package/resources/wasm/coreutils.wasm +0 -0
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
import { createRequire as __adfCreateRequire } from 'node:module';
|
|
2
|
+
import { fileURLToPath as __adfFileURLToPath } from 'node:url';
|
|
3
|
+
import { dirname as __adfDirname } from 'node:path';
|
|
4
|
+
const require = __adfCreateRequire(import.meta.url);
|
|
5
|
+
const __filename = __adfFileURLToPath(import.meta.url);
|
|
6
|
+
const __dirname = __adfDirname(__filename);
|
|
7
|
+
|
|
8
|
+
// src/shared/types/adf-v02.types.ts
|
|
9
|
+
var AGENT_STATES = ["active", "idle", "hibernate", "suspended", "off"], RESERVED_AGENT_PATH_SEGMENTS = ["inbox", "card", "health"], MESSAGING_MODES = ["proactive", "respond_only", "listen_only"];
|
|
10
|
+
var SETTABLE_STATES = ["idle", "hibernate", "off"], UPDATABLE_STATES = ["active", "idle", "hibernate", "off"];
|
|
11
|
+
var RECOVERY_DEFAULTS = {
|
|
12
|
+
auto_retry: !0,
|
|
13
|
+
max_attempts: 5,
|
|
14
|
+
base_delay_ms: 15e3,
|
|
15
|
+
max_delay_ms: 3e5
|
|
16
|
+
};
|
|
17
|
+
var CODE_EXECUTION_DEFAULTS = {
|
|
18
|
+
model_invoke: !0,
|
|
19
|
+
sys_lambda: !0,
|
|
20
|
+
task_resolve: !0,
|
|
21
|
+
loop_inject: !0,
|
|
22
|
+
identity_status: !0,
|
|
23
|
+
get_identity: !0,
|
|
24
|
+
set_identity: !0,
|
|
25
|
+
emit_event: !0,
|
|
26
|
+
attestation_list: !0,
|
|
27
|
+
attestation_add: !0,
|
|
28
|
+
attestation_issue: !0,
|
|
29
|
+
network: !1,
|
|
30
|
+
// Signing certs about other agents is a deliberate trust act — authorized
|
|
31
|
+
// code only, unless the owner overrides restricted_methods explicitly.
|
|
32
|
+
restricted_methods: ["attestation_issue"]
|
|
33
|
+
}, COMPUTE_DEFAULTS = {
|
|
34
|
+
enabled: !1
|
|
35
|
+
};
|
|
36
|
+
var START_IN_STATES = ["active", "idle", "hibernate"], DEFAULT_NEW_LOOP_TOOLS = ["loop_send", "loop_list", "sys_set_state"], LOOP_PROHIBITED_TOOLS = ["sys_update_config", "loop_manage", "sys_create_adf"];
|
|
37
|
+
var META_PROTECTION_LEVELS = ["none", "readonly", "increment"], FILE_PROTECTION_LEVELS = ["read_only", "no_delete", "none"];
|
|
38
|
+
var DEFAULT_TOOLS = [
|
|
39
|
+
{ name: "fs_read", enabled: !0, visible: !0 },
|
|
40
|
+
{ name: "fs_write", enabled: !0, visible: !0 },
|
|
41
|
+
{ name: "fs_list", enabled: !0, visible: !0 },
|
|
42
|
+
{ name: "fs_delete", enabled: !1, visible: !1 },
|
|
43
|
+
{ name: "msg_send", enabled: !0, visible: !0 },
|
|
44
|
+
{ name: "agent_discover", enabled: !0, visible: !0 },
|
|
45
|
+
{ name: "msg_list", enabled: !0, visible: !0 },
|
|
46
|
+
{ name: "msg_read", enabled: !0, visible: !0 },
|
|
47
|
+
{ name: "msg_update", enabled: !0, visible: !0 },
|
|
48
|
+
// Code-path capability: callable as adf.chat_info from sandbox code without
|
|
49
|
+
// occupying a slot in the LLM tool schema. Flip visible to expose it.
|
|
50
|
+
{ name: "chat_info", enabled: !0, visible: !1 },
|
|
51
|
+
{ name: "sys_code", enabled: !0, visible: !0 },
|
|
52
|
+
{ name: "sys_lambda", enabled: !0, visible: !0 },
|
|
53
|
+
// Timers default on: the base prompt treats them as core behavior
|
|
54
|
+
// (Initiate, Reflection, the hot path) — shipping them disabled forced a
|
|
55
|
+
// fresh agent through the escalation ladder just to follow its own charter.
|
|
56
|
+
{ name: "sys_set_timer", enabled: !0, visible: !0 },
|
|
57
|
+
{ name: "sys_list_timers", enabled: !0, visible: !0 },
|
|
58
|
+
{ name: "sys_delete_timer", enabled: !0, visible: !0 },
|
|
59
|
+
{ name: "sys_get_config", enabled: !0, visible: !0 },
|
|
60
|
+
{ name: "sys_update_config", enabled: !0, visible: !0, restricted: !0 },
|
|
61
|
+
{ name: "sys_create_adf", enabled: !1, visible: !1, restricted: !0 },
|
|
62
|
+
{ name: "db_query", enabled: !0, visible: !0 },
|
|
63
|
+
{ name: "db_execute", enabled: !1, visible: !1 },
|
|
64
|
+
{ name: "loop_compact", enabled: !1, visible: !1 },
|
|
65
|
+
{ name: "loop_clear", enabled: !1, visible: !1 },
|
|
66
|
+
// Inter-loop signalling. Ordinary, visible, owner-toggled tools like any
|
|
67
|
+
// other (no-secrets): the config declares them, the Tools UI shows them, and
|
|
68
|
+
// an owner may turn them off. On by default and registered into main's
|
|
69
|
+
// registry whenever enabled — like ws_connections/stream_bindings, they are
|
|
70
|
+
// simply present and return sensibly when there is nothing to act on
|
|
71
|
+
// (loop_list shows just `main`; loop_send errors on any target). No
|
|
72
|
+
// gate on loop count: that special-cased two tools for a byte-identical
|
|
73
|
+
// prompt that default-on loop_manage already voids.
|
|
74
|
+
{ name: "loop_send", enabled: !0, visible: !0 },
|
|
75
|
+
{ name: "loop_list", enabled: !0, visible: !0 },
|
|
76
|
+
// Main-only: creates/updates/tears down this agent's own inner loops.
|
|
77
|
+
// On and ungated by default, because a loop is a strict ATTENUATION of
|
|
78
|
+
// authority main already holds: deriveLoopConfig intersects the loop's
|
|
79
|
+
// allow-list with the host's enabled tools, drops every `restricted` name,
|
|
80
|
+
// and clamps code_execution — so loop_manage cannot expand the agent's
|
|
81
|
+
// capability surface, only subdivide it. Creating a loop is therefore not an
|
|
82
|
+
// escalation, and an approval gate would buy no authority the agent did not
|
|
83
|
+
// already have. Still main-only (LOOP_PROHIBITED_TOOLS keeps it off every
|
|
84
|
+
// loop) and still the owner's to re-gate with `restricted: true`. It honours
|
|
85
|
+
// `locked_fields` (a locked `loops` path refuses) and delete archives the
|
|
86
|
+
// stream and preserves locked timers, so it is recoverable.
|
|
87
|
+
{ name: "loop_manage", enabled: !0, visible: !0 },
|
|
88
|
+
{ name: "msg_delete", enabled: !1, visible: !1 },
|
|
89
|
+
{ name: "say", enabled: !0, visible: !0 },
|
|
90
|
+
{ name: "ask", enabled: !0, visible: !0 },
|
|
91
|
+
{ name: "sys_set_state", enabled: !0, visible: !0 },
|
|
92
|
+
{ name: "sys_get_meta", enabled: !0, visible: !0 },
|
|
93
|
+
{ name: "sys_set_meta", enabled: !0, visible: !0 },
|
|
94
|
+
{ name: "sys_delete_meta", enabled: !0, visible: !0 },
|
|
95
|
+
{ name: "sys_fetch", enabled: !0, visible: !0 },
|
|
96
|
+
{ name: "adf_shell", enabled: !1, visible: !1 },
|
|
97
|
+
{ name: "ws_connect", enabled: !1, visible: !1 },
|
|
98
|
+
{ name: "ws_disconnect", enabled: !1, visible: !1 },
|
|
99
|
+
{ name: "ws_connections", enabled: !1, visible: !1 },
|
|
100
|
+
{ name: "ws_send", enabled: !1, visible: !1 },
|
|
101
|
+
{ name: "stream_bind", enabled: !1, visible: !1 },
|
|
102
|
+
{ name: "stream_unbind", enabled: !1, visible: !1 },
|
|
103
|
+
{ name: "stream_bindings", enabled: !1, visible: !1 },
|
|
104
|
+
{ name: "fs_transfer", enabled: !1, visible: !1 },
|
|
105
|
+
{ name: "compute_exec", enabled: !1, visible: !1, restricted: !0 },
|
|
106
|
+
{ name: "mcp_install", enabled: !1, visible: !1 },
|
|
107
|
+
{ name: "mcp_restart", enabled: !1, visible: !1 },
|
|
108
|
+
{ name: "mcp_uninstall", enabled: !1, visible: !1 }
|
|
109
|
+
], AUDIT_DEFAULTS = {
|
|
110
|
+
// Loop audit is on by default: compaction is the one routine operation that
|
|
111
|
+
// destroys history irreversibly, and an agent that reflects on its own past
|
|
112
|
+
// (see the self-observation skill) needs that record to exist before it
|
|
113
|
+
// thinks to ask for it. The snapshots are brotli-compressed, so the cost is
|
|
114
|
+
// small relative to losing the transcript outright.
|
|
115
|
+
loop: !0,
|
|
116
|
+
inbox: !1,
|
|
117
|
+
outbox: !1,
|
|
118
|
+
files: !1
|
|
119
|
+
}, DYNAMIC_INSTRUCTIONS_DEFAULTS = {
|
|
120
|
+
inbox_hints: !0,
|
|
121
|
+
context_warning: !0,
|
|
122
|
+
idle_reminder: !0,
|
|
123
|
+
mesh_updates: !0
|
|
124
|
+
}, LOGGING_DEFAULTS = {
|
|
125
|
+
default_level: "info",
|
|
126
|
+
rules: [],
|
|
127
|
+
max_rows: 1e4
|
|
128
|
+
}, MCP_DEFAULTS = {
|
|
129
|
+
servers: []
|
|
130
|
+
};
|
|
131
|
+
var AGENT_DEFAULTS = {
|
|
132
|
+
adf_version: "0.2",
|
|
133
|
+
state: "active",
|
|
134
|
+
autonomous: !1,
|
|
135
|
+
autostart: !1,
|
|
136
|
+
model: {
|
|
137
|
+
provider: "",
|
|
138
|
+
model_id: "",
|
|
139
|
+
temperature: 0.7,
|
|
140
|
+
max_tokens: 4096,
|
|
141
|
+
vision: !1
|
|
142
|
+
},
|
|
143
|
+
context: {
|
|
144
|
+
audit: { ...AUDIT_DEFAULTS },
|
|
145
|
+
dynamic_instructions: { ...DYNAMIC_INSTRUCTIONS_DEFAULTS }
|
|
146
|
+
},
|
|
147
|
+
triggers: {
|
|
148
|
+
on_inbox: {
|
|
149
|
+
enabled: !0,
|
|
150
|
+
// No interval_ms → fires immediately on each inbox event (no throttle).
|
|
151
|
+
targets: [{ scope: "agent" }]
|
|
152
|
+
},
|
|
153
|
+
on_outbox: { enabled: !1, targets: [] },
|
|
154
|
+
on_file_change: {
|
|
155
|
+
enabled: !0,
|
|
156
|
+
targets: [{ scope: "agent", filter: { watch: "README.*" }, debounce_ms: 2e3 }]
|
|
157
|
+
},
|
|
158
|
+
on_chat: {
|
|
159
|
+
enabled: !0,
|
|
160
|
+
targets: [{ scope: "agent" }]
|
|
161
|
+
},
|
|
162
|
+
on_timer: {
|
|
163
|
+
enabled: !0,
|
|
164
|
+
targets: [{ scope: "system" }, { scope: "agent" }]
|
|
165
|
+
},
|
|
166
|
+
on_tool_call: { enabled: !1, targets: [] },
|
|
167
|
+
on_task_create: { enabled: !1, targets: [] },
|
|
168
|
+
on_task_complete: { enabled: !0, targets: [{ scope: "agent" }] },
|
|
169
|
+
on_logs: { enabled: !1, targets: [] },
|
|
170
|
+
on_llm_call: { enabled: !1, targets: [] },
|
|
171
|
+
on_startup: { enabled: !1, targets: [] }
|
|
172
|
+
},
|
|
173
|
+
security: {
|
|
174
|
+
allow_unsigned: !0,
|
|
175
|
+
// Signed by default: D1 guarantees every agent has keys, so the old
|
|
176
|
+
// "signing would reject keyless agents" reason for level 0 is gone.
|
|
177
|
+
// Unsigned inbound is still accepted (allow_unsigned) for mixed fleets.
|
|
178
|
+
level: 1
|
|
179
|
+
},
|
|
180
|
+
limits: {
|
|
181
|
+
execution_timeout_ms: 6e4,
|
|
182
|
+
max_file_read_tokens: 3e4,
|
|
183
|
+
max_file_write_bytes: 5e6,
|
|
184
|
+
max_tool_result_tokens: 16e3,
|
|
185
|
+
max_tool_result_preview_chars: 5e3,
|
|
186
|
+
max_active_turns: null,
|
|
187
|
+
max_image_size_bytes: 5242880,
|
|
188
|
+
max_audio_size_bytes: 10485760,
|
|
189
|
+
max_video_size_bytes: 20971520
|
|
190
|
+
},
|
|
191
|
+
recovery: { ...RECOVERY_DEFAULTS },
|
|
192
|
+
messaging: {
|
|
193
|
+
receive: !0,
|
|
194
|
+
mode: "proactive",
|
|
195
|
+
visibility: "localhost",
|
|
196
|
+
inbox_mode: !0
|
|
197
|
+
},
|
|
198
|
+
audit: { ...AUDIT_DEFAULTS },
|
|
199
|
+
code_execution: { ...CODE_EXECUTION_DEFAULTS },
|
|
200
|
+
compute: { ...COMPUTE_DEFAULTS },
|
|
201
|
+
logging: { ...LOGGING_DEFAULTS },
|
|
202
|
+
mcp: { ...MCP_DEFAULTS },
|
|
203
|
+
adapters: {},
|
|
204
|
+
serving: {
|
|
205
|
+
shared: { enabled: !1, patterns: [] },
|
|
206
|
+
public: { enabled: !1 },
|
|
207
|
+
api: []
|
|
208
|
+
},
|
|
209
|
+
ws_connections: [],
|
|
210
|
+
// A new agent starts with only its main loop; inner loops are added deliberately.
|
|
211
|
+
loops: [],
|
|
212
|
+
stream_bind: {},
|
|
213
|
+
stream_bindings: [],
|
|
214
|
+
providers: [],
|
|
215
|
+
// Dangerous capability toggles (security.allow_local_fetch, stream_bind) are
|
|
216
|
+
// NOT locked here — they are locked in CODE via DEFAULT_LOCKED_PATHS in
|
|
217
|
+
// sys-update-config.tool.ts, uniformly for every agent (existing and new),
|
|
218
|
+
// so the protection can't be lost via per-agent data (no migration risk) or
|
|
219
|
+
// an owner editing this default's locked_fields on a new agent expecting an
|
|
220
|
+
// unlock. Keeping them here too would be redundant and misleading. This
|
|
221
|
+
// array stays available for agent- or template-specific locks unrelated to
|
|
222
|
+
// that fixed set.
|
|
223
|
+
locked_fields: [],
|
|
224
|
+
card: { endpoints: {} }
|
|
225
|
+
};
|
|
226
|
+
function getDefaultDocumentContent(name) {
|
|
227
|
+
let now = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
228
|
+
return `# ${name}
|
|
229
|
+
|
|
230
|
+
Created: ${now}
|
|
231
|
+
Status: New agent, self-configuring.
|
|
232
|
+
`;
|
|
233
|
+
}
|
|
234
|
+
var DEFAULT_MIND_CONTENT = `# Mind
|
|
235
|
+
|
|
236
|
+
My index, loaded every turn. Keep it small; details live in pages under \`mind/\`.
|
|
237
|
+
|
|
238
|
+
## Always
|
|
239
|
+
|
|
240
|
+
<!-- One line per rule: what my principal wants and why. Corrections and preferences go here, since only this section loads every turn. Also who my principal is and my current focus. -->
|
|
241
|
+
|
|
242
|
+
## Pages
|
|
243
|
+
|
|
244
|
+
<!-- One line per page: - [title](adf-file://mind/slug.md) \u2014 one-line hook -->
|
|
245
|
+
`, DEFAULT_MIND_LOG_CONTENT = `# Mind Log
|
|
246
|
+
|
|
247
|
+
<!-- Newest first: prepend new entries at the top; never rewrite or delete existing entries. Entry format: ## [YYYY-MM-DD] ingest|update|lint | title -->
|
|
248
|
+
`, DEFAULT_SOUL_CONTENT = `# Soul
|
|
249
|
+
|
|
250
|
+
This is the default voice, shared by every new agent. Keep it and I sound like all of them. The soul-creation skill in the first-party catalog has ten starting voices and a process for adopting or building one.
|
|
251
|
+
|
|
252
|
+
## Voice
|
|
253
|
+
|
|
254
|
+
- I answer first. Reasons come after, if they're needed.
|
|
255
|
+
- Short sentences. Short replies to humans.
|
|
256
|
+
- If my principal is wrong or about to waste hours, I say so and propose the fix.
|
|
257
|
+
- "I don't know" is an acceptable answer. When I break something I say what broke, what I changed, and what's still unknown.
|
|
258
|
+
|
|
259
|
+
## Taboos
|
|
260
|
+
|
|
261
|
+
- No "Great question", "I'd be happy to", or opening apologies.
|
|
262
|
+
- No summaries that restate what was just said.
|
|
263
|
+
- No offers tacked onto the end of a reply.
|
|
264
|
+
|
|
265
|
+
## Exemplars
|
|
266
|
+
|
|
267
|
+
- "Done. The cron runs at 8am Monday; first run is tomorrow."
|
|
268
|
+
- "No, that won't work. The API caps at 100 rows. I'll page through it instead, about 20 minutes."
|
|
269
|
+
- "I broke the deploy at 14:10 and rolled it back at 14:12. A missing env var. Fixed."
|
|
270
|
+
|
|
271
|
+
## Origin
|
|
272
|
+
|
|
273
|
+
<!-- Where I came from, who I work for, what I'm becoming. Fill in as it happens. -->
|
|
274
|
+
`;
|
|
275
|
+
|
|
276
|
+
export {
|
|
277
|
+
AGENT_STATES,
|
|
278
|
+
RESERVED_AGENT_PATH_SEGMENTS,
|
|
279
|
+
MESSAGING_MODES,
|
|
280
|
+
SETTABLE_STATES,
|
|
281
|
+
UPDATABLE_STATES,
|
|
282
|
+
RECOVERY_DEFAULTS,
|
|
283
|
+
CODE_EXECUTION_DEFAULTS,
|
|
284
|
+
START_IN_STATES,
|
|
285
|
+
DEFAULT_NEW_LOOP_TOOLS,
|
|
286
|
+
LOOP_PROHIBITED_TOOLS,
|
|
287
|
+
META_PROTECTION_LEVELS,
|
|
288
|
+
FILE_PROTECTION_LEVELS,
|
|
289
|
+
DEFAULT_TOOLS,
|
|
290
|
+
AGENT_DEFAULTS,
|
|
291
|
+
getDefaultDocumentContent,
|
|
292
|
+
DEFAULT_MIND_CONTENT,
|
|
293
|
+
DEFAULT_MIND_LOG_CONTENT,
|
|
294
|
+
DEFAULT_SOUL_CONTENT
|
|
295
|
+
};
|