fix: address remaining Cubic issues — reset lastPartText on new message, TTY guard for installer, filter disabled skills, local-dev version resolution
This commit is contained in:
parent
e5abf8702e
commit
5ca3d9c489
@ -24,7 +24,7 @@ export function buildAvailableSkills(
|
|||||||
}))
|
}))
|
||||||
|
|
||||||
const discoveredAvailable: AvailableSkill[] = discoveredSkills
|
const discoveredAvailable: AvailableSkill[] = discoveredSkills
|
||||||
.filter(s => !builtinSkillNames.has(s.name))
|
.filter(s => !builtinSkillNames.has(s.name) && !disabledSkills?.has(s.name))
|
||||||
.map((skill) => ({
|
.map((skill) => ({
|
||||||
name: skill.name,
|
name: skill.name,
|
||||||
description: skill.definition.description ?? "",
|
description: skill.definition.description ?? "",
|
||||||
|
|||||||
@ -2,6 +2,7 @@ import {
|
|||||||
findPluginEntry,
|
findPluginEntry,
|
||||||
getCachedVersion,
|
getCachedVersion,
|
||||||
getLatestVersion,
|
getLatestVersion,
|
||||||
|
getLocalDevVersion,
|
||||||
isLocalDevMode,
|
isLocalDevMode,
|
||||||
} from "../../hooks/auto-update-checker/checker"
|
} from "../../hooks/auto-update-checker/checker"
|
||||||
|
|
||||||
@ -15,7 +16,7 @@ export async function getLocalVersion(
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
if (isLocalDevMode(directory)) {
|
if (isLocalDevMode(directory)) {
|
||||||
const currentVersion = getCachedVersion()
|
const currentVersion = getLocalDevVersion(directory) ?? getCachedVersion()
|
||||||
const info: VersionInfo = {
|
const info: VersionInfo = {
|
||||||
currentVersion,
|
currentVersion,
|
||||||
latestVersion: null,
|
latestVersion: null,
|
||||||
|
|||||||
@ -71,6 +71,7 @@ export function handleMessageUpdated(ctx: RunContext, payload: EventPayload, sta
|
|||||||
|
|
||||||
state.hasReceivedMeaningfulWork = true
|
state.hasReceivedMeaningfulWork = true
|
||||||
state.messageCount++
|
state.messageCount++
|
||||||
|
state.lastPartText = ""
|
||||||
}
|
}
|
||||||
|
|
||||||
export function handleToolExecute(ctx: RunContext, payload: EventPayload, state: EventState): void {
|
export function handleToolExecute(ctx: RunContext, payload: EventPayload, state: EventState): void {
|
||||||
|
|||||||
@ -14,6 +14,11 @@ import { detectedToInitialValues, formatConfigSummary, SYMBOLS } from "./install
|
|||||||
import { promptInstallConfig } from "./tui-install-prompts"
|
import { promptInstallConfig } from "./tui-install-prompts"
|
||||||
|
|
||||||
export async function runTuiInstaller(args: InstallArgs, version: string): Promise<number> {
|
export async function runTuiInstaller(args: InstallArgs, version: string): Promise<number> {
|
||||||
|
if (!process.stdin.isTTY || !process.stdout.isTTY) {
|
||||||
|
console.error("Error: Interactive installer requires a TTY. Use --non-interactive or set environment variables directly.")
|
||||||
|
return 1
|
||||||
|
}
|
||||||
|
|
||||||
const detected = detectCurrentConfig()
|
const detected = detectCurrentConfig()
|
||||||
const isUpdate = detected.isInstalled
|
const isUpdate = detected.isInstalled
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user