augure 0.1.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/dist/bin.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ #!/usr/bin/env node
2
+ export {};
3
+ //# sourceMappingURL=bin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin.d.ts","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":""}
package/dist/bin.js ADDED
@@ -0,0 +1,20 @@
1
+ #!/usr/bin/env node
2
+ import { createRequire } from "node:module";
3
+ import { defineCommand, runMain } from "citty";
4
+ import { startCommand } from "./commands/start.js";
5
+ import { initCommand } from "./commands/init.js";
6
+ const require = createRequire(import.meta.url);
7
+ const { version } = require("../package.json");
8
+ const main = defineCommand({
9
+ meta: {
10
+ name: "augure",
11
+ description: "Augure — your proactive AI agent",
12
+ version,
13
+ },
14
+ subCommands: {
15
+ start: startCommand,
16
+ init: initCommand,
17
+ },
18
+ });
19
+ runMain(main);
20
+ //# sourceMappingURL=bin.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bin.js","sourceRoot":"","sources":["../src/bin.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,OAAO,GAAG,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AAC/C,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,iBAAiB,CAAwB,CAAC;AAEtE,MAAM,IAAI,GAAG,aAAa,CAAC;IACzB,IAAI,EAAE;QACJ,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,kCAAkC;QAC/C,OAAO;KACR;IACD,WAAW,EAAE;QACX,KAAK,EAAE,YAAY;QACnB,IAAI,EAAE,WAAW;KAClB;CACF,CAAC,CAAC;AAEH,OAAO,CAAC,IAAI,CAAC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const initCommand: import("citty").CommandDef<import("citty").ArgsDef>;
2
+ //# sourceMappingURL=init.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAiFA,eAAO,MAAM,WAAW,qDA4BtB,CAAC"}
@@ -0,0 +1,107 @@
1
+ import { defineCommand } from "citty";
2
+ import { writeFile, access } from "node:fs/promises";
3
+ import { resolve } from "node:path";
4
+ const CONFIG_TEMPLATE = `{
5
+ // Identity
6
+ identity: {
7
+ name: "Augure",
8
+ personality: "Helpful, proactive, concise.",
9
+ },
10
+
11
+ // LLM
12
+ llm: {
13
+ default: {
14
+ provider: "openrouter",
15
+ apiKey: "\${OPENROUTER_API_KEY}",
16
+ model: "anthropic/claude-sonnet-4-5",
17
+ maxTokens: 8192,
18
+ },
19
+ },
20
+
21
+ // Channels
22
+ channels: {
23
+ telegram: {
24
+ enabled: true,
25
+ botToken: "\${TELEGRAM_BOT_TOKEN}",
26
+ allowedUsers: [], // Add your Telegram user ID
27
+ },
28
+ },
29
+
30
+ // Memory
31
+ memory: {
32
+ path: "./memory",
33
+ autoIngest: true,
34
+ maxRetrievalTokens: 2000,
35
+ },
36
+
37
+ // Scheduler
38
+ scheduler: {
39
+ heartbeatInterval: "30m",
40
+ jobs: [],
41
+ },
42
+
43
+ // Sandbox
44
+ sandbox: {
45
+ runtime: "docker",
46
+ defaults: {
47
+ timeout: 300,
48
+ memoryLimit: "512m",
49
+ cpuLimit: "1.0",
50
+ },
51
+ },
52
+
53
+ // Tools
54
+ tools: {},
55
+
56
+ // Security
57
+ security: {
58
+ sandboxOnly: true,
59
+ allowedHosts: [],
60
+ maxConcurrentSandboxes: 3,
61
+ },
62
+ }
63
+ `;
64
+ const ENV_TEMPLATE = `# LLM Provider
65
+ OPENROUTER_API_KEY=sk-or-...
66
+
67
+ # Telegram
68
+ TELEGRAM_BOT_TOKEN=123456:ABC-DEF...
69
+ `;
70
+ async function fileExists(path) {
71
+ try {
72
+ await access(path);
73
+ return true;
74
+ }
75
+ catch {
76
+ return false;
77
+ }
78
+ }
79
+ export const initCommand = defineCommand({
80
+ meta: {
81
+ name: "init",
82
+ description: "Initialize Augure configuration in the current directory",
83
+ },
84
+ async run() {
85
+ const configPath = resolve("augure.json5");
86
+ const envPath = resolve(".env");
87
+ if (await fileExists(configPath)) {
88
+ console.log(`[augure] augure.json5 already exists, skipping.`);
89
+ }
90
+ else {
91
+ await writeFile(configPath, CONFIG_TEMPLATE, "utf-8");
92
+ console.log(`[augure] Created augure.json5`);
93
+ }
94
+ if (await fileExists(envPath)) {
95
+ console.log(`[augure] .env already exists, skipping.`);
96
+ }
97
+ else {
98
+ await writeFile(envPath, ENV_TEMPLATE, "utf-8");
99
+ console.log(`[augure] Created .env`);
100
+ }
101
+ console.log(`\nNext steps:`);
102
+ console.log(` 1. Edit augure.json5 with your settings`);
103
+ console.log(` 2. Fill in .env with your API keys`);
104
+ console.log(` 3. Run: augure start`);
105
+ },
106
+ });
107
+ //# sourceMappingURL=init.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,eAAe,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DvB,CAAC;AAEF,MAAM,YAAY,GAAG;;;;;CAKpB,CAAC;AAEF,KAAK,UAAU,UAAU,CAAC,IAAY;IACp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
+ readonly description: "Path to config file";
5
+ readonly alias: "c";
6
+ readonly default: "./augure.json5";
7
+ };
8
+ }>;
9
+ //# sourceMappingURL=start.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start.d.ts","sourceRoot":"","sources":["../../src/commands/start.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,YAAY;;;;;;;EA4BvB,CAAC"}
@@ -0,0 +1,29 @@
1
+ import { defineCommand } from "citty";
2
+ import { resolve } from "node:path";
3
+ export const startCommand = defineCommand({
4
+ meta: {
5
+ name: "start",
6
+ description: "Start the Augure agent",
7
+ },
8
+ args: {
9
+ config: {
10
+ type: "string",
11
+ description: "Path to config file",
12
+ alias: "c",
13
+ default: "./augure.json5",
14
+ },
15
+ },
16
+ async run({ args }) {
17
+ const configPath = resolve(args.config);
18
+ console.log(`[augure] Starting with config: ${configPath}`);
19
+ try {
20
+ const { startAgent } = await import("@augure/core");
21
+ await startAgent(configPath);
22
+ }
23
+ catch (err) {
24
+ console.error("[augure] Fatal error:", err instanceof Error ? err.message : err);
25
+ process.exit(1);
26
+ }
27
+ },
28
+ });
29
+ //# sourceMappingURL=start.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"start.js","sourceRoot":"","sources":["../../src/commands/start.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEpC,MAAM,CAAC,MAAM,YAAY,GAAG,aAAa,CAAC;IACxC,IAAI,EAAE;QACJ,IAAI,EAAE,OAAO;QACb,WAAW,EAAE,wBAAwB;KACtC;IACD,IAAI,EAAE;QACJ,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,qBAAqB;YAClC,KAAK,EAAE,GAAG;YACV,OAAO,EAAE,gBAAgB;SAC1B;KACF;IACD,KAAK,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE;QAChB,MAAM,UAAU,GAAG,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;QACxC,OAAO,CAAC,GAAG,CAAC,kCAAkC,UAAU,EAAE,CAAC,CAAC;QAE5D,IAAI,CAAC;YACH,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,MAAM,CAAC,cAAc,CAAC,CAAC;YACpD,MAAM,UAAU,CAAC,UAAU,CAAC,CAAC;QAC/B,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,CAAC,KAAK,CACX,uBAAuB,EACvB,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CACzC,CAAC;YACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC;CACF,CAAC,CAAC"}
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "augure",
3
+ "version": "0.1.0",
4
+ "description": "Augure — your proactive AI agent",
5
+ "type": "module",
6
+ "bin": {
7
+ "augure": "./dist/bin.js"
8
+ },
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "engines": {
13
+ "node": ">=22.0.0"
14
+ },
15
+ "scripts": {
16
+ "build": "tsc",
17
+ "dev": "tsc --watch",
18
+ "test": "vitest run",
19
+ "test:unit": "vitest run",
20
+ "typecheck": "tsc --noEmit",
21
+ "lint": "eslint src/",
22
+ "clean": "rm -rf dist .turbo"
23
+ },
24
+ "dependencies": {
25
+ "@augure/core": "workspace:*",
26
+ "@augure/channels": "workspace:*",
27
+ "@augure/memory": "workspace:*",
28
+ "@augure/scheduler": "workspace:*",
29
+ "@augure/tools": "workspace:*",
30
+ "@augure/types": "workspace:*",
31
+ "citty": "^0.2.1"
32
+ },
33
+ "keywords": ["ai", "agent", "assistant", "telegram", "llm"],
34
+ "author": "Alexis",
35
+ "license": "MIT",
36
+ "repository": {
37
+ "type": "git",
38
+ "url": "https://github.com/FaureAlexis/augure.git",
39
+ "directory": "packages/cli"
40
+ },
41
+ "publishConfig": {
42
+ "access": "public"
43
+ }
44
+ }