Skip to content

Commit 481f1b9

Browse files
authored
Merge pull request #66 from moltbot/fix/ci-lint
fix: restore lint compliance
2 parents d577add + d4f5832 commit 481f1b9

22 files changed

+110
-82
lines changed

convex/devSeed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { internal } from './_generated/api'
33
import type { ActionCtx } from './_generated/server'
44
import { internalAction, internalMutation } from './_generated/server'
55
import { EMBEDDING_DIMENSIONS } from './lib/embeddings'
6-
import { parseMoltbotMetadata, parseFrontmatter } from './lib/skills'
6+
import { parseFrontmatter, parseMoltbotMetadata } from './lib/skills'
77

88
type SeedSkillSpec = {
99
slug: string

convex/devSeedExtra.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { internal } from './_generated/api'
1111
import type { Id } from './_generated/dataModel'
1212
import type { ActionCtx } from './_generated/server'
1313
import { internalAction, internalMutation } from './_generated/server'
14-
import { parseMoltbotMetadata, parseFrontmatter } from './lib/skills'
14+
import { parseFrontmatter, parseMoltbotMetadata } from './lib/skills'
1515

1616
type SeedSkillSpec = {
1717
slug: string

convex/http.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { ApiRoutes, LegacyApiRoutes } from 'molthub-schema'
21
import { httpRouter } from 'convex/server'
2+
import { ApiRoutes, LegacyApiRoutes } from 'molthub-schema'
33
import { auth } from './auth'
44
import { downloadZip } from './downloads'
55
import {

convex/lib/badges.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,7 @@ import type { QueryCtx } from '../_generated/server'
33

44
type BadgeKind = Doc<'skillBadges'>['kind']
55

6-
export type SkillBadgeMap = Partial<
7-
Record<BadgeKind, { byUserId: Id<'users'>; at: number }>
8-
>
6+
export type SkillBadgeMap = Partial<Record<BadgeKind, { byUserId: Id<'users'>; at: number }>>
97

108
export type SkillBadgeSource = { badges?: SkillBadgeMap | null }
119

convex/lib/githubImport.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { TEXT_FILE_EXTENSION_SET } from 'molthub-schema'
21
import { zipSync } from 'fflate'
2+
import { TEXT_FILE_EXTENSION_SET } from 'molthub-schema'
33
import semver from 'semver'
44
import { parseFrontmatter } from './skills'
55

convex/lib/skillBackfill.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ import {
22
getFrontmatterMetadata,
33
getFrontmatterValue,
44
type ParsedSkillFrontmatter,
5-
parseMoltbotMetadata,
65
parseFrontmatter,
6+
parseMoltbotMetadata,
77
} from './skills'
88

99
export type ParsedSkillData = {

convex/lib/skillPublish.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,17 @@ import semver from 'semver'
33
import { api, internal } from '../_generated/api'
44
import type { Doc, Id } from '../_generated/dataModel'
55
import type { ActionCtx, MutationCtx } from '../_generated/server'
6+
import { getSkillBadgeMap, isSkillHighlighted } from './badges'
67
import { generateChangelogForPublish } from './changelog'
78
import { generateEmbedding } from './embeddings'
8-
import { getSkillBadgeMap, isSkillHighlighted } from './badges'
99
import type { PublicUser } from './public'
1010
import {
1111
buildEmbeddingText,
1212
getFrontmatterMetadata,
1313
hashSkillFiles,
1414
isTextFile,
15-
parseMoltbotMetadata,
1615
parseFrontmatter,
16+
parseMoltbotMetadata,
1717
sanitizePath,
1818
} from './skills'
1919
import type { WebhookSkillPayload } from './webhooks'
@@ -166,9 +166,9 @@ export async function publishVersionForUser(
166166
embedding,
167167
})) as PublishResult
168168

169-
const owner = (await ctx.runQuery(internal.users.getByIdInternal, { userId })) as
170-
| Doc<'users'>
171-
| null
169+
const owner = (await ctx.runQuery(internal.users.getByIdInternal, {
170+
userId,
171+
})) as Doc<'users'> | null
172172
const ownerHandle = owner?.handle ?? owner?.displayName ?? owner?.name ?? 'unknown'
173173

174174
void ctx.scheduler

convex/lib/skills.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ import {
55
getFrontmatterValue,
66
hashSkillFiles,
77
isTextFile,
8-
parseMoltbotMetadata,
98
parseFrontmatter,
9+
parseMoltbotMetadata,
1010
sanitizePath,
1111
} from './skills'
1212

convex/lib/skills.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {
2+
isTextContentType,
23
type MoltbotConfigSpec,
34
type MoltbotSkillMetadata,
45
MoltbotSkillMetadataSchema,
5-
isTextContentType,
66
type NixPluginSpec,
77
parseArk,
88
type SkillInstallSpec,

convex/lib/soulPublish.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,9 @@ export async function publishSoulVersionForUser(
171171
embedding,
172172
})) as PublishResult
173173

174-
const owner = (await ctx.runQuery(internal.users.getByIdInternal, { userId })) as
175-
| Doc<'users'>
176-
| null
174+
const owner = (await ctx.runQuery(internal.users.getByIdInternal, {
175+
userId,
176+
})) as Doc<'users'> | null
177177
const ownerHandle = owner?.handle ?? owner?.name ?? userId
178178

179179
void ctx.scheduler

0 commit comments

Comments
 (0)