agent-sin 0.1.11 → 0.1.15
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/CHANGELOG.md +79 -0
- package/README.md +2 -1
- package/builtin-skills/_shared/_todo_lib.py +290 -0
- package/builtin-skills/even-g2-setup/main.ts +896 -0
- package/builtin-skills/even-g2-setup/skill.yaml +133 -0
- package/builtin-skills/memo-delete/main.py +28 -107
- package/builtin-skills/memo-delete/skill.yaml +10 -21
- package/builtin-skills/memo-index/main.py +96 -64
- package/builtin-skills/memo-index/skill.yaml +4 -10
- package/builtin-skills/memo-list/main.py +179 -0
- package/builtin-skills/memo-list/skill.yaml +51 -0
- package/builtin-skills/memo-save/main.py +191 -25
- package/builtin-skills/memo-save/skill.yaml +29 -5
- package/builtin-skills/memo-search/main.py +38 -18
- package/builtin-skills/memo-vector-search/main.py +11 -6
- package/builtin-skills/nightly-topic-knowledge/_feedback_lib.py +391 -0
- package/builtin-skills/nightly-topic-knowledge/_topics_lib.py +415 -0
- package/builtin-skills/nightly-topic-knowledge/main.py +403 -0
- package/builtin-skills/nightly-topic-knowledge/skill.yaml +88 -0
- package/builtin-skills/schedule-add/main.py +26 -0
- package/builtin-skills/service-restart/main.ts +249 -0
- package/builtin-skills/service-restart/skill.yaml +49 -0
- package/builtin-skills/todo-add/main.py +3 -1
- package/builtin-skills/todo-delete/main.py +3 -1
- package/builtin-skills/todo-done/main.py +3 -1
- package/builtin-skills/todo-list/main.py +4 -1
- package/builtin-skills/todo-tick/main.py +3 -1
- package/builtin-skills/topic-knowledge-read/main.py +118 -0
- package/builtin-skills/topic-knowledge-read/skill.yaml +49 -0
- package/dist/builder/build-action-classifier.d.ts +18 -0
- package/dist/builder/build-action-classifier.js +82 -1
- package/dist/builder/build-flow.d.ts +33 -4
- package/dist/builder/build-flow.js +251 -89
- package/dist/builder/builder-session.d.ts +1 -1
- package/dist/builder/builder-session.js +112 -7
- package/dist/builder/conversation-router.d.ts +4 -2
- package/dist/builder/conversation-router.js +19 -2
- package/dist/cli/index.js +323 -20
- package/dist/core/ai-provider.d.ts +1 -0
- package/dist/core/ai-provider.js +8 -3
- package/dist/core/chat-engine.d.ts +10 -3
- package/dist/core/chat-engine.js +1563 -197
- package/dist/core/config.d.ts +4 -0
- package/dist/core/config.js +82 -0
- package/dist/core/daily-memory-promotion.d.ts +7 -0
- package/dist/core/daily-memory-promotion.js +568 -14
- package/dist/core/image-attachments.d.ts +31 -0
- package/dist/core/image-attachments.js +237 -0
- package/dist/core/logger.d.ts +2 -1
- package/dist/core/logger.js +77 -1
- package/dist/core/memo-migration.d.ts +3 -0
- package/dist/core/memo-migration.js +422 -0
- package/dist/core/native-modules.d.ts +24 -0
- package/dist/core/native-modules.js +99 -0
- package/dist/core/notifier.d.ts +8 -3
- package/dist/core/notifier.js +191 -17
- package/dist/core/obsidian-vault.d.ts +19 -0
- package/dist/core/obsidian-vault.js +477 -0
- package/dist/core/operating-model.d.ts +2 -0
- package/dist/core/operating-model.js +15 -0
- package/dist/core/output-writer.d.ts +3 -2
- package/dist/core/output-writer.js +108 -7
- package/dist/core/profile-memory.js +22 -1
- package/dist/core/runtime.d.ts +2 -0
- package/dist/core/runtime.js +9 -1
- package/dist/core/secrets.d.ts +4 -0
- package/dist/core/secrets.js +34 -0
- package/dist/core/skill-history.d.ts +44 -0
- package/dist/core/skill-history.js +329 -0
- package/dist/core/skill-registry.d.ts +5 -0
- package/dist/core/skill-registry.js +11 -0
- package/dist/discord/bot.d.ts +13 -0
- package/dist/discord/bot.js +542 -10
- package/dist/even-g2/gateway.d.ts +15 -0
- package/dist/even-g2/gateway.js +868 -0
- package/dist/runtimes/codex-app-server.d.ts +5 -1
- package/dist/runtimes/codex-app-server.js +147 -8
- package/dist/runtimes/python-runner.js +82 -0
- package/dist/runtimes/typescript-runner.js +13 -1
- package/dist/skills-sdk/types.d.ts +19 -4
- package/dist/telegram/bot.d.ts +1 -0
- package/dist/telegram/bot.js +122 -31
- package/package.json +3 -1
- package/templates/even-g2-agent/README.md +83 -0
- package/templates/even-g2-agent/app.json +20 -0
- package/templates/even-g2-agent/index.html +31 -0
- package/templates/even-g2-agent/package-lock.json +1836 -0
- package/templates/even-g2-agent/package.json +22 -0
- package/templates/even-g2-agent/scripts/qr-auto.mjs +182 -0
- package/templates/even-g2-agent/src/embedded-config.ts +4 -0
- package/templates/even-g2-agent/src/main.ts +539 -0
- package/templates/even-g2-agent/src/style.css +70 -0
- package/templates/even-g2-agent/tsconfig.json +11 -0
- package/templates/skill-python/main.py +20 -2
- package/templates/skill-python/skill.yaml +9 -0
- package/templates/skill-typescript/main.ts +40 -5
- package/templates/skill-typescript/skill.yaml +9 -0
|
@@ -6,6 +6,7 @@ export interface SkillOutputDefinition {
|
|
|
6
6
|
path: string;
|
|
7
7
|
filename: string;
|
|
8
8
|
append?: boolean;
|
|
9
|
+
merge_mode?: "overwrite" | "append" | "update_or_append";
|
|
9
10
|
show_saved?: boolean;
|
|
10
11
|
}
|
|
11
12
|
export type DiscordSlashOptionType = "string" | "integer" | "number" | "boolean";
|
|
@@ -53,6 +54,10 @@ export interface SkillManifest {
|
|
|
53
54
|
read?: boolean;
|
|
54
55
|
write?: boolean;
|
|
55
56
|
};
|
|
57
|
+
history?: {
|
|
58
|
+
read?: boolean;
|
|
59
|
+
write?: boolean;
|
|
60
|
+
};
|
|
56
61
|
retry?: {
|
|
57
62
|
max_attempts?: number;
|
|
58
63
|
delay_ms?: number;
|
|
@@ -67,11 +67,22 @@ export async function loadSkillManifest(skillDir) {
|
|
|
67
67
|
enabled: parsed.enabled ?? true,
|
|
68
68
|
output_mode: parsed.output_mode,
|
|
69
69
|
side_effect: parsed.side_effect === true,
|
|
70
|
+
history: normalizeHistoryConfig(parsed.history),
|
|
70
71
|
dir: skillDir,
|
|
71
72
|
source,
|
|
72
73
|
override,
|
|
73
74
|
};
|
|
74
75
|
}
|
|
76
|
+
function normalizeHistoryConfig(value) {
|
|
77
|
+
if (!value || typeof value !== "object" || Array.isArray(value))
|
|
78
|
+
return undefined;
|
|
79
|
+
const raw = value;
|
|
80
|
+
const read = raw.read === true;
|
|
81
|
+
const write = raw.write === true;
|
|
82
|
+
if (!read && !write)
|
|
83
|
+
return undefined;
|
|
84
|
+
return { read, write };
|
|
85
|
+
}
|
|
75
86
|
export async function resolveSkillEntryPath(manifest) {
|
|
76
87
|
assertSafeRelativeSkillPath(manifest.entry, "entry");
|
|
77
88
|
const logicalDir = path.resolve(manifest.dir);
|
package/dist/discord/bot.d.ts
CHANGED
|
@@ -23,6 +23,7 @@ export interface DiscordMessage {
|
|
|
23
23
|
author: DiscordUser;
|
|
24
24
|
content: string;
|
|
25
25
|
mentions: DiscordUser[];
|
|
26
|
+
mention_roles?: string[];
|
|
26
27
|
attachments?: DiscordAttachment[];
|
|
27
28
|
}
|
|
28
29
|
export interface DiscordAttachment {
|
|
@@ -75,6 +76,18 @@ export type TodoSlashParse = {
|
|
|
75
76
|
args: Record<string, unknown>;
|
|
76
77
|
};
|
|
77
78
|
export declare function parseTodoSlashCommand(text: string): TodoSlashParse | null;
|
|
79
|
+
export type MemoSlashParse = {
|
|
80
|
+
kind: "help";
|
|
81
|
+
lines: string[];
|
|
82
|
+
} | {
|
|
83
|
+
kind: "error";
|
|
84
|
+
lines: string[];
|
|
85
|
+
} | {
|
|
86
|
+
kind: "run";
|
|
87
|
+
skillId: "memo-save" | "memo-list" | "memo-delete";
|
|
88
|
+
args: Record<string, unknown>;
|
|
89
|
+
};
|
|
90
|
+
export declare function parseMemoSlashCommand(text: string): MemoSlashParse | null;
|
|
78
91
|
export type ModelSlashParse = {
|
|
79
92
|
kind: "help";
|
|
80
93
|
lines: string[];
|