@aion0/forge 0.9.15 → 0.9.18

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.
@@ -8,7 +8,7 @@
8
8
  import { existsSync, readFileSync, readdirSync, writeFileSync, unlinkSync, mkdirSync } from 'node:fs';
9
9
  import { join } from 'node:path';
10
10
  import YAML from 'yaml';
11
- import { getDataDir } from '@/lib/dirs';
11
+ import { getDataDir } from '../dirs';
12
12
  import type { Prompt, CreatePromptInput, UpdatePromptInput } from './types';
13
13
 
14
14
  function dir(): string {
@@ -15,11 +15,11 @@
15
15
  * null and set to 'done'/'failed'/'skipped' atomically).
16
16
  */
17
17
 
18
- import { getDb } from '@/src/core/db/database';
19
- import { getDbPath } from '@/src/config';
18
+ import { getDb } from '../../src/core/db/database';
19
+ import { getDbPath } from '../../src/config';
20
20
  import { getScheduleRun, getSchedule, setScheduleRunAction } from './store';
21
- import { appendMessage, getSession } from '@/lib/chat/session-store';
22
- import { loadSettings } from '@/lib/settings';
21
+ import { appendMessage, getSession } from '../chat/session-store';
22
+ import { loadSettings } from '../settings';
23
23
  import type { Schedule, ScheduleRun, ScheduleActionStatus } from './types';
24
24
 
25
25
  function db() { return getDb(getDbPath()); }
@@ -13,18 +13,18 @@
13
13
  */
14
14
 
15
15
  import { CronExpressionParser } from 'cron-parser';
16
- import { startPipeline, getWorkflow } from '@/lib/pipeline';
16
+ import { startPipeline, getWorkflow } from '../pipeline';
17
17
  import {
18
18
  createTask,
19
19
  getTask,
20
20
  onTaskEvent,
21
21
  taskAppendSystemPromptOverrides,
22
- } from '@/lib/task-manager';
23
- import { getProjectInfo, SCRATCH_PROJECT_NAME } from '@/lib/projects';
24
- import { ensureInstalledInProject } from '@/lib/skills';
25
- import { getPrompt } from '@/lib/prompts/store';
26
- import { getDb } from '@/src/core/db/database';
27
- import { getDbPath } from '@/src/config';
22
+ } from '../task-manager';
23
+ import { getProjectInfo, SCRATCH_PROJECT_NAME } from '../projects';
24
+ import { ensureInstalledInProject } from '../skills';
25
+ import { getPrompt } from '../prompts/store';
26
+ import { getDb } from '../../src/core/db/database';
27
+ import { getDbPath } from '../../src/config';
28
28
  import {
29
29
  ensureSchema,
30
30
  listDueSchedules,
@@ -16,10 +16,10 @@
16
16
  import { existsSync, readFileSync } from 'node:fs';
17
17
  import { join as joinPath } from 'node:path';
18
18
  import { randomUUID } from 'node:crypto';
19
- import { getDb } from '@/src/core/db/database';
20
- import { getDbPath } from '@/src/config';
21
- import { getDataDir } from '@/lib/dirs';
22
- import { toIsoUTC } from '@/lib/iso-time';
19
+ import { getDb } from '../../src/core/db/database';
20
+ import { getDbPath } from '../../src/config';
21
+ import { getDataDir } from '../dirs';
22
+ import { toIsoUTC } from '../iso-time';
23
23
  import type {
24
24
  Schedule,
25
25
  ScheduleRun,
@@ -1,9 +1,9 @@
1
1
  import { randomUUID } from 'node:crypto';
2
- import { getDb } from '@/src/core/db/database';
3
- import { getDbPath, loadTemplate } from '@/src/config';
4
- import { chatStream, type ChatResult } from '@/src/core/providers/chat';
5
- import { getMemoryMessages } from '@/src/core/memory/strategy';
6
- import type { Session, SessionStatus, Message, ProviderName, MemoryConfig } from '@/src/types';
2
+ import { getDb } from '../src/core/db/database';
3
+ import { getDbPath, loadTemplate } from '../src/config';
4
+ import { chatStream, type ChatResult } from '../src/core/providers/chat';
5
+ import { getMemoryMessages } from '../src/core/memory/strategy';
6
+ import type { Session, SessionStatus, Message, ProviderName, MemoryConfig } from '../src/types';
7
7
 
8
8
  // Re-export the SessionManager but as a singleton for server-side use
9
9
  class SessionManager {
@@ -6,7 +6,7 @@
6
6
  */
7
7
 
8
8
  import { randomUUID } from 'node:crypto';
9
- import { getDb } from '@/src/core/db/database';
9
+ import { getDb } from '../src/core/db/database';
10
10
  import { join } from 'node:path';
11
11
  import { getDataDir } from './dirs';
12
12
  import {
package/lib/skills.ts CHANGED
@@ -5,8 +5,8 @@
5
5
  import { existsSync, readdirSync, statSync, readFileSync, writeFileSync, mkdirSync, rmSync, cpSync } from 'node:fs';
6
6
  import { join, dirname, basename, relative, sep } from 'node:path';
7
7
  import { homedir } from 'node:os';
8
- import { getDb } from '@/src/core/db/database';
9
- import { getDbPath } from '@/src/config';
8
+ import { getDb } from '../src/core/db/database';
9
+ import { getDbPath } from '../src/config';
10
10
  import { loadSettings } from './settings';
11
11
 
12
12
  type ItemType = 'skill' | 'command';
@@ -7,14 +7,14 @@ import { randomUUID } from 'node:crypto';
7
7
  import { spawn, execSync } from 'node:child_process';
8
8
  import { realpathSync } from 'node:fs';
9
9
  import * as pty from 'node-pty';
10
- import { getDb } from '@/src/core/db/database';
11
- import { getDbPath } from '@/src/config';
10
+ import { getDb } from '../src/core/db/database';
11
+ import { getDbPath } from '../src/config';
12
12
  import { loadSettings } from './settings';
13
13
  import { notifyTaskComplete, notifyTaskFailed } from './notify';
14
14
  import { getInstalledConnector } from './connectors/registry';
15
15
  import { getAgent } from './agents';
16
16
  import { recordUsage } from './usage-scanner';
17
- import type { Task, TaskLogEntry, TaskStatus, TaskMode, WatchConfig } from '@/src/types';
17
+ import type { Task, TaskLogEntry, TaskStatus, TaskMode, WatchConfig } from '../src/types';
18
18
 
19
19
  import { toIsoUTC } from './iso-time';
20
20
 
@@ -14,7 +14,7 @@ import { listClaudeSessions, getSessionFilePath, readSessionEntries } from './cl
14
14
  import { listWatchers, createWatcher, deleteWatcher, toggleWatcher } from './session-watcher';
15
15
  import { startTunnel, stopTunnel, getTunnelStatus } from './cloudflared';
16
16
  // Password verification is done via require() in handler functions
17
- import type { Task, TaskLogEntry } from '@/src/types';
17
+ import type { Task, TaskLogEntry } from '../src/types';
18
18
 
19
19
  // Persist state across hot-reloads
20
20
  const globalKey = Symbol.for('mw-telegram-state');
@@ -5,8 +5,8 @@
5
5
 
6
6
  import { readdirSync, readFileSync, statSync } from 'node:fs';
7
7
  import { join, basename } from 'node:path';
8
- import { getDb } from '@/src/core/db/database';
9
- import { getDbPath } from '@/src/config';
8
+ import { getDb } from '../src/core/db/database';
9
+ import { getDbPath } from '../src/config';
10
10
  import { getClaudeDir } from './dirs';
11
11
 
12
12
  function db() { return getDb(getDbPath()); }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aion0/forge",
3
- "version": "0.9.15",
3
+ "version": "0.9.18",
4
4
  "description": "Unified AI workflow platform — multi-model task orchestration, persistent sessions, web terminal, remote access",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -1,8 +1,8 @@
1
1
  import { existsSync, mkdirSync, readFileSync, writeFileSync, readdirSync } from 'node:fs';
2
2
  import { join } from 'node:path';
3
3
  import YAML from 'yaml';
4
- import type { AppConfig, ProviderName, SessionTemplate } from '@/src/types';
5
- import { getConfigDir as _getConfigDir, getDataDir as _getDataDir } from '@/lib/dirs';
4
+ import type { AppConfig, ProviderName, SessionTemplate } from '../types';
5
+ import { getConfigDir as _getConfigDir, getDataDir as _getDataDir } from '../../lib/dirs';
6
6
 
7
7
  const CONFIG_DIR = _getConfigDir();
8
8
  const CONFIG_FILE = join(CONFIG_DIR, 'config.yaml');
@@ -1,4 +1,4 @@
1
- import type { Message, MemoryConfig } from '@/src/types';
1
+ import type { Message, MemoryConfig } from '../../types';
2
2
 
3
3
  /**
4
4
  * Apply memory strategy to filter/transform messages before sending to AI.
@@ -1,6 +1,6 @@
1
1
  import { streamText, generateText, type ModelMessage } from 'ai';
2
- import { getModel } from '@/src/core/providers/registry';
3
- import type { ProviderName } from '@/src/types';
2
+ import { getModel } from './registry';
3
+ import type { ProviderName } from '../../types';
4
4
 
5
5
  export interface ChatOptions {
6
6
  provider: ProviderName;
@@ -2,8 +2,8 @@ import { createAnthropic } from '@ai-sdk/anthropic';
2
2
  import { createGoogleGenerativeAI } from '@ai-sdk/google';
3
3
  import { createOpenAI } from '@ai-sdk/openai';
4
4
  import type { LanguageModel } from 'ai';
5
- import { loadConfig, getProviderApiKey } from '@/src/config';
6
- import type { ProviderName } from '@/src/types';
5
+ import { loadConfig, getProviderApiKey } from '../../config';
6
+ import type { ProviderName } from '../../types';
7
7
 
8
8
  const providerInstances = new Map<string, LanguageModel>();
9
9
 
@@ -1,10 +1,10 @@
1
1
  import { randomUUID } from 'node:crypto';
2
2
  import type { ModelMessage } from 'ai';
3
- import { getDb } from '@/src/core/db/database';
4
- import { getDbPath, loadTemplate } from '@/src/config';
5
- import { chatStream, type ChatResult } from '@/src/core/providers/chat';
6
- import { getMemoryMessages } from '@/src/core/memory/strategy';
7
- import type { Session, SessionStatus, Message, ProviderName, MemoryConfig } from '@/src/types';
3
+ import { getDb } from '../db/database';
4
+ import { getDbPath, loadTemplate } from '../../config';
5
+ import { chatStream, type ChatResult } from '../providers/chat';
6
+ import { getMemoryMessages } from '../memory/strategy';
7
+ import type { Session, SessionStatus, Message, ProviderName, MemoryConfig } from '../../types';
8
8
 
9
9
  export class SessionManager {
10
10
  private db;