fix(style): wrap 4 lines over 80 columns in register.ts and transcripts.ts
This commit is contained in:
1 parent
b03aced358
commit
21ef47fd81
2 files changed
+8
-4
No files matched your search
@@ -130,7 +130,8 @@ function replyAfter(recs: Rec[], ts: number): string {
|
||||
.filter(r => r.type === 'assistant' && r.isSidechain !== true)
|
||||
.filter(r => tsOf(r) > ts && tsOf(r) < end)
|
||||
.flatMap(textsOf)
|
||||
return [...new Map(texts).values()].join('\n') // first position kept; the value is derived from the key
|
||||
// first position kept; the value is derived from the key
|
||||
return [...new Map(texts).values()].join('\n')
|
||||
}
|
||||
|
||||
export type PromptJoin = { prompt: string; injected: string; reply: string }
|
||||
|
||||
@@ -588,7 +588,8 @@ function pickSwitch(
|
||||
function pickEnabled(v: unknown, fallback: boolean, log: Log): boolean {
|
||||
if (v === undefined) return fallback
|
||||
if (typeof v === 'boolean') return v
|
||||
log('model-router: config "enabled" is not a boolean; router off (fail closed)')
|
||||
log('model-router: config "enabled" is not a boolean; ' +
|
||||
'router off (fail closed)')
|
||||
return false
|
||||
}
|
||||
|
||||
@@ -680,7 +681,8 @@ function mergeConfig(
|
||||
mainModelSwitch: pickModelSwitch(
|
||||
user.mainModelSwitch, base.mainModelSwitch, log),
|
||||
verbose: pickSwitch(
|
||||
'config "verbose" is not a boolean; ignored', user.verbose, base.verbose, log),
|
||||
'config "verbose" is not a boolean; ignored',
|
||||
user.verbose, base.verbose, log),
|
||||
classify: pickSwitch(
|
||||
'model-router: config "classify" is not a boolean; ignored',
|
||||
user.classify, base.classify, log),
|
||||
@@ -3762,7 +3764,8 @@ function onSkillLoad(st: State, skill: string, agentId: string | undefined) {
|
||||
if (row) routeMainBySkill(st, skill, row, false)
|
||||
return
|
||||
}
|
||||
if (row) writeLoop(loopOf(st, agentId), row.route, `skill ${clean(skill, NAME_CAP)}`)
|
||||
if (row) writeLoop(
|
||||
loopOf(st, agentId), row.route, `skill ${clean(skill, NAME_CAP)}`)
|
||||
}
|
||||
|
||||
type TypedPath = 'typed-marker' | 'typed-fallback'
|
||||
|
||||
Reference in new issue
Block a user