pikiclaw 0.2.39 → 0.2.41
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/bot-commands.js +2 -1
- package/dist/bot-feishu.js +2 -1
- package/dist/bot-telegram.js +2 -1
- package/dist/bot.js +1 -1
- package/dist/cli.js +2 -1
- package/dist/dashboard.js +1 -1
- package/dist/version.js +12 -0
- package/package.json +1 -1
package/dist/bot-commands.js
CHANGED
|
@@ -9,12 +9,13 @@
|
|
|
9
9
|
* const rendered = renderSessionsPage(data); // channel-specific renderer
|
|
10
10
|
*/
|
|
11
11
|
import path from 'node:path';
|
|
12
|
-
import {
|
|
12
|
+
import { fmtTokens, fmtUptime, fmtBytes } from './bot.js';
|
|
13
13
|
import { getProjectSkillPaths } from './code-agent.js';
|
|
14
14
|
import { getDriver } from './agent-driver.js';
|
|
15
15
|
import { buildWelcomeIntro, buildDefaultMenuCommands, buildSkillCommandName, indexSkillsByCommand, SKILL_CMD_PREFIX } from './bot-menu.js';
|
|
16
16
|
import { summarizePromptForStatus } from './bot-streaming.js';
|
|
17
17
|
import { getSessionStatusForChat } from './session-status.js';
|
|
18
|
+
import { VERSION } from './version.js';
|
|
18
19
|
export function getStartData(bot, chatId) {
|
|
19
20
|
const cs = bot.chat(chatId);
|
|
20
21
|
const intro = buildWelcomeIntro(VERSION);
|
package/dist/bot-feishu.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
import os from 'node:os';
|
|
10
10
|
import fs from 'node:fs';
|
|
11
11
|
import path from 'node:path';
|
|
12
|
-
import { Bot,
|
|
12
|
+
import { Bot, normalizeAgent, fmtTokens, buildPrompt, parseAllowedChatIds, } from './bot.js';
|
|
13
13
|
import { stageSessionFiles, } from './code-agent.js';
|
|
14
14
|
import { shutdownAllDrivers } from './agent-driver.js';
|
|
15
15
|
import { buildDefaultMenuCommands, SKILL_CMD_PREFIX, } from './bot-menu.js';
|
|
@@ -21,6 +21,7 @@ import { feishuPreviewRenderer, buildInitialPreviewMarkdown, buildFinalReplyRend
|
|
|
21
21
|
import { FeishuChannel } from './channel-feishu.js';
|
|
22
22
|
import { splitText, supportsChannelCapability } from './channel-base.js';
|
|
23
23
|
import { getActiveUserConfig } from './user-config.js';
|
|
24
|
+
import { VERSION } from './version.js';
|
|
24
25
|
const SHUTDOWN_EXIT_CODE = {
|
|
25
26
|
SIGINT: 130,
|
|
26
27
|
SIGTERM: 143,
|
package/dist/bot-telegram.js
CHANGED
|
@@ -9,7 +9,7 @@ import os from 'node:os';
|
|
|
9
9
|
import fs from 'node:fs';
|
|
10
10
|
import path from 'node:path';
|
|
11
11
|
import { spawn } from 'node:child_process';
|
|
12
|
-
import { Bot,
|
|
12
|
+
import { Bot, fmtTokens, fmtUptime, fmtBytes, buildPrompt, parseAllowedChatIds, } from './bot.js';
|
|
13
13
|
import { stageSessionFiles, } from './code-agent.js';
|
|
14
14
|
import { shutdownAllDrivers } from './agent-driver.js';
|
|
15
15
|
import { buildDefaultMenuCommands, buildWelcomeIntro, SKILL_CMD_PREFIX, } from './bot-menu.js';
|
|
@@ -22,6 +22,7 @@ import { buildInitialPreviewHtml, buildStreamPreviewHtml, buildFinalReplyRender,
|
|
|
22
22
|
import { TelegramChannel } from './channel-telegram.js';
|
|
23
23
|
import { splitText, supportsChannelCapability } from './channel-base.js';
|
|
24
24
|
import { getActiveUserConfig } from './user-config.js';
|
|
25
|
+
import { VERSION } from './version.js';
|
|
25
26
|
/** Telegram HTML renderer for LivePreview. */
|
|
26
27
|
const telegramPreviewRenderer = {
|
|
27
28
|
renderInitial: buildInitialPreviewHtml,
|
package/dist/bot.js
CHANGED
|
@@ -11,7 +11,7 @@ import { getActiveUserConfig, onUserConfigChange, resolveUserWorkdir, setUserWor
|
|
|
11
11
|
import { doStream, getSessions, getSessionTail, getUsage, initializeProjectSkills, listAgents, listModels, listSkills, isPendingSessionId, } from './code-agent.js';
|
|
12
12
|
import { getDriver, hasDriver, allDriverIds } from './agent-driver.js';
|
|
13
13
|
import { terminateProcessTree } from './process-control.js';
|
|
14
|
-
|
|
14
|
+
import { VERSION } from './version.js';
|
|
15
15
|
const MACOS_USER_ACTIVITY_PULSE_INTERVAL_MS = 20_000;
|
|
16
16
|
const MACOS_USER_ACTIVITY_PULSE_TIMEOUT_S = 30;
|
|
17
17
|
// ---------------------------------------------------------------------------
|
package/dist/cli.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { spawn } from 'node:child_process';
|
|
6
6
|
import path from 'node:path';
|
|
7
|
-
import {
|
|
7
|
+
import { envBool } from './bot.js';
|
|
8
8
|
import { TelegramBot } from './bot-telegram.js';
|
|
9
9
|
import { hasConfiguredChannelToken, resolveConfiguredChannels } from './cli-channels.js';
|
|
10
10
|
import { listAgents } from './code-agent.js';
|
|
@@ -13,6 +13,7 @@ import { buildSetupGuide, collectSetupState, hasReadyAgent, isSetupReady } from
|
|
|
13
13
|
import { buildRestartCommand, clearRestartStateFile, consumeRestartStateFile, createRestartStateFilePath, PROCESS_RESTART_EXIT_CODE, requestProcessRestart, } from './process-control.js';
|
|
14
14
|
import { runSetupWizard } from './setup-wizard.js';
|
|
15
15
|
import { applyUserConfig, loadUserConfig, startUserConfigSync } from './user-config.js';
|
|
16
|
+
import { VERSION } from './version.js';
|
|
16
17
|
/* ── Daemon (watchdog) mode ─────────────────────────────────────────── */
|
|
17
18
|
const DAEMON_RESTART_DELAY_MS = 3_000;
|
|
18
19
|
const DAEMON_MAX_RESTART_DELAY_MS = 60_000;
|
package/dist/dashboard.js
CHANGED
|
@@ -12,12 +12,12 @@ import { collectSetupState, isSetupReady } from './onboarding.js';
|
|
|
12
12
|
import { loadUserConfig, saveUserConfig, applyUserConfig, resolveUserWorkdir, setUserWorkdir, hasUserConfigFile } from './user-config.js';
|
|
13
13
|
import { listAgents, getSessionTail, getSessions, listModels } from './code-agent.js';
|
|
14
14
|
import { getDriver } from './agent-driver.js';
|
|
15
|
-
import { VERSION } from './bot.js';
|
|
16
15
|
import { validateFeishuConfig, validateTelegramConfig } from './config-validation.js';
|
|
17
16
|
import { getDashboardHtml } from './dashboard-ui.js';
|
|
18
17
|
import { shouldCacheChannelStates } from './channel-states.js';
|
|
19
18
|
import { formatActiveTaskRestartError, getActiveTaskCount, registerProcessRuntime, requestProcessRestart, } from './process-control.js';
|
|
20
19
|
import { getSessionStatusForBot } from './session-status.js';
|
|
20
|
+
import { VERSION } from './version.js';
|
|
21
21
|
// ---------------------------------------------------------------------------
|
|
22
22
|
// Helpers
|
|
23
23
|
// ---------------------------------------------------------------------------
|
package/dist/version.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import fs from 'node:fs';
|
|
2
|
+
import path from 'node:path';
|
|
3
|
+
import { fileURLToPath } from 'node:url';
|
|
4
|
+
const packageJsonPath = path.resolve(path.dirname(fileURLToPath(import.meta.url)), '../package.json');
|
|
5
|
+
function readPackageVersion() {
|
|
6
|
+
const pkg = JSON.parse(fs.readFileSync(packageJsonPath, 'utf8'));
|
|
7
|
+
const version = typeof pkg.version === 'string' ? pkg.version.trim() : '';
|
|
8
|
+
if (!version)
|
|
9
|
+
throw new Error(`Missing version in ${packageJsonPath}`);
|
|
10
|
+
return version;
|
|
11
|
+
}
|
|
12
|
+
export const VERSION = readPackageVersion();
|