@agenticmail/core 0.9.0 → 0.9.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/dist/index.cjs +14 -1
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +14 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2034,7 +2034,11 @@ function rowToAgent(row) {
|
|
|
2034
2034
|
createdAt: row.created_at,
|
|
2035
2035
|
updatedAt: row.updated_at,
|
|
2036
2036
|
metadata,
|
|
2037
|
-
role: row.role || "secretary"
|
|
2037
|
+
role: row.role || "secretary",
|
|
2038
|
+
// Old rows (pre-migration-016) have undefined `wake_on_cc`;
|
|
2039
|
+
// treat that as the default-true (respect sender's wake list
|
|
2040
|
+
// as-is). Only explicit 0 disables CC wakes for this agent.
|
|
2041
|
+
wakeOnCc: row.wake_on_cc !== void 0 ? row.wake_on_cc !== 0 : true
|
|
2038
2042
|
};
|
|
2039
2043
|
}
|
|
2040
2044
|
var AccountManager = class {
|
|
@@ -3621,6 +3625,15 @@ ALTER TABLE agent_tasks ADD COLUMN output_schema TEXT;
|
|
|
3621
3625
|
-- stays snappy. NULL means "no attachments", fully back-compat
|
|
3622
3626
|
-- with rows from before this migration.
|
|
3623
3627
|
ALTER TABLE drafts ADD COLUMN attachments TEXT;
|
|
3628
|
+
`,
|
|
3629
|
+
"016_agent_wake_on_cc.sql": `
|
|
3630
|
+
-- Per-agent wake preference. When 0, the dispatcher SKIPS this
|
|
3631
|
+
-- agent on every CC-only delivery (the agent is on Cc/Bcc but
|
|
3632
|
+
-- not To), regardless of what the sender passed as the wake
|
|
3633
|
+
-- argument. This is the "coder agent, only wake me when
|
|
3634
|
+
-- explicitly named" preference from the wake-thrash feedback.
|
|
3635
|
+
-- Defaults to 1 (respect the senders wake list as-is).
|
|
3636
|
+
ALTER TABLE agents ADD COLUMN wake_on_cc INTEGER NOT NULL DEFAULT 1;
|
|
3624
3637
|
`
|
|
3625
3638
|
};
|
|
3626
3639
|
function runMigrations(database) {
|
package/dist/index.d.cts
CHANGED
|
@@ -320,6 +320,13 @@ interface Agent {
|
|
|
320
320
|
updatedAt: string;
|
|
321
321
|
metadata: Record<string, unknown>;
|
|
322
322
|
role: AgentRole;
|
|
323
|
+
/** Per-agent wake preference. When false, the dispatcher SKIPS
|
|
324
|
+
* this agent on every CC-only delivery regardless of the
|
|
325
|
+
* sender's `wake` list. Coder/silent-observer agents register
|
|
326
|
+
* with `wake_on_cc: false` so a designer's `cc:` accidentally
|
|
327
|
+
* including them never wastes a Claude turn. Defaults to true
|
|
328
|
+
* (preserves the 0.9.0 wake-list-respecting behaviour). */
|
|
329
|
+
wakeOnCc?: boolean;
|
|
323
330
|
}
|
|
324
331
|
interface CreateAgentOptions {
|
|
325
332
|
name: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -320,6 +320,13 @@ interface Agent {
|
|
|
320
320
|
updatedAt: string;
|
|
321
321
|
metadata: Record<string, unknown>;
|
|
322
322
|
role: AgentRole;
|
|
323
|
+
/** Per-agent wake preference. When false, the dispatcher SKIPS
|
|
324
|
+
* this agent on every CC-only delivery regardless of the
|
|
325
|
+
* sender's `wake` list. Coder/silent-observer agents register
|
|
326
|
+
* with `wake_on_cc: false` so a designer's `cc:` accidentally
|
|
327
|
+
* including them never wastes a Claude turn. Defaults to true
|
|
328
|
+
* (preserves the 0.9.0 wake-list-respecting behaviour). */
|
|
329
|
+
wakeOnCc?: boolean;
|
|
323
330
|
}
|
|
324
331
|
interface CreateAgentOptions {
|
|
325
332
|
name: string;
|
package/dist/index.js
CHANGED
|
@@ -1275,7 +1275,11 @@ function rowToAgent(row) {
|
|
|
1275
1275
|
createdAt: row.created_at,
|
|
1276
1276
|
updatedAt: row.updated_at,
|
|
1277
1277
|
metadata,
|
|
1278
|
-
role: row.role || "secretary"
|
|
1278
|
+
role: row.role || "secretary",
|
|
1279
|
+
// Old rows (pre-migration-016) have undefined `wake_on_cc`;
|
|
1280
|
+
// treat that as the default-true (respect sender's wake list
|
|
1281
|
+
// as-is). Only explicit 0 disables CC wakes for this agent.
|
|
1282
|
+
wakeOnCc: row.wake_on_cc !== void 0 ? row.wake_on_cc !== 0 : true
|
|
1279
1283
|
};
|
|
1280
1284
|
}
|
|
1281
1285
|
var AccountManager = class {
|
|
@@ -2858,6 +2862,15 @@ ALTER TABLE agent_tasks ADD COLUMN output_schema TEXT;
|
|
|
2858
2862
|
-- stays snappy. NULL means "no attachments", fully back-compat
|
|
2859
2863
|
-- with rows from before this migration.
|
|
2860
2864
|
ALTER TABLE drafts ADD COLUMN attachments TEXT;
|
|
2865
|
+
`,
|
|
2866
|
+
"016_agent_wake_on_cc.sql": `
|
|
2867
|
+
-- Per-agent wake preference. When 0, the dispatcher SKIPS this
|
|
2868
|
+
-- agent on every CC-only delivery (the agent is on Cc/Bcc but
|
|
2869
|
+
-- not To), regardless of what the sender passed as the wake
|
|
2870
|
+
-- argument. This is the "coder agent, only wake me when
|
|
2871
|
+
-- explicitly named" preference from the wake-thrash feedback.
|
|
2872
|
+
-- Defaults to 1 (respect the senders wake list as-is).
|
|
2873
|
+
ALTER TABLE agents ADD COLUMN wake_on_cc INTEGER NOT NULL DEFAULT 1;
|
|
2861
2874
|
`
|
|
2862
2875
|
};
|
|
2863
2876
|
function runMigrations(database) {
|