feat(core): bootstrap packages/server and document extraction plan (#22492)

This commit is contained in:
Shoubhit Dash
2026-04-15 04:01:45 +05:30
committed by GitHub
parent b6d5203fbd
commit 4ff310a4ec
10 changed files with 753 additions and 0 deletions
+1
View File
@@ -0,0 +1 @@
export {}
+6
View File
@@ -0,0 +1,6 @@
import type { ServerApi } from "../types.js"
export const api: ServerApi = {
name: "opencode",
groups: [],
}
+1
View File
@@ -0,0 +1 @@
export { api } from "./api.js"
+3
View File
@@ -0,0 +1,3 @@
export { openapi } from "./openapi.js"
export { api } from "./definition/api.js"
export type { OpenApiSpec, ServerApi } from "./types.js"
+14
View File
@@ -0,0 +1,14 @@
import { api } from "./definition/api.js"
import type { OpenApiSpec } from "./types.js"
export function openapi(): OpenApiSpec {
return {
openapi: "3.1.1",
info: {
title: api.name,
version: "0.0.0",
description: "Contract-first server package scaffold.",
},
paths: {},
}
}
+14
View File
@@ -0,0 +1,14 @@
export interface ServerApi {
readonly name: string
readonly groups: readonly string[]
}
export interface OpenApiSpec {
readonly openapi: string
readonly info: {
readonly title: string
readonly version: string
readonly description: string
}
readonly paths: Record<string, never>
}