buildPackageProductSkillFUNCTION
Added in v1.0.1Source
Signature
export declare function buildPackageProductSkill(
target: string,
packageId: string,
outputDirectory: string
): Effect<ProductSkillResult, unknown>;API REFERENCE
Public exports for website generation and deployment.
export declare function buildPackageProductSkill(
target: string,
packageId: string,
outputDirectory: string
): Effect<ProductSkillResult, unknown>;export declare function buildProductSkill(
options: ProductSkillOptions
): Effect<ProductSkillResult, unknown, AtomicWriter | DocsFileSystem | DocsPath | ArchiveService>;export declare function buildWebsite(
target: string
): Effect<void, unknown>;export declare function cleanupWebsiteDeployments(
manifest: WebsiteReleaseManifest
): Effect<void, unknown, VercelService>;export declare function createGeneratedWebsite(
options: WebsiteGenerationOptions
): GeneratedWebsite;export declare function createGeneratedWebsiteFromConfig(
target: string,
config: DocsConfig,
options?: Omit<WebsiteGenerationOptions, "config" | "target">
): GeneratedWebsite;export declare function createLandingRewrites(
routing: {
documentationPrefix: string;
storybookPrefix: string
},
deployments: WebsiteDeployments,
redirects?: readonly {
from: string;
status: 301 | 302;
to: string
}[]
): LandingVercelConfig;export declare function createNativeAuthoringFile(
__namedParameters: NativeAuthoringOptions
): NativeGeneratedFile;export declare function createNativeStorybookApp(
options: NativeAppGenerationOptions
): NativeGeneratedApp;export declare function createPlaceholderDeployments(
config: DocsConfig,
snapshot?: boolean
): WebsiteDeployments;export declare function createSnapshotProjects(
config: DocsConfig
): { documentation: { directory: string; id?: string; origin?: string; productionBranch?: string; project?: string; routePrefix: string; team?: string }; landing: { directory: string; id?: string; origin?: string; productionBranch?: string; project?: string; routePrefix: string; team?: string }; mcp?: { directory: string; id?: string; origin?: string; productionBranch?: string; project?: string; routePrefix: string; team?: string }; storybook?: { directory: string; id?: string; origin?: string; productionBranch?: string; project?: string; routePrefix: string; team?: string } };export declare function deployWebsite(
website: GeneratedWebsite,
options?: WebsiteDeploymentOptions
): Effect<WebsiteReleaseManifest, unknown, VercelService | AtomicWriter | DocsFileSystem | DocsPath>;export declare function devNativeApp(
target: string
): Effect<never, unknown>;export declare function devWebsite(
target: string
): Effect<never, unknown>;export declare function generateNativeApp(
target: string,
platform?: NativePlatform
): Effect<void, unknown>;export declare function promoteWebsite(
manifest: WebsiteReleaseManifest
): Effect<void, unknown, VercelService>;export declare function publicUrl(
siteUrl: string,
prefix: string,
path?: string
): string;export declare function readGeneratedWebsite(
target: string
): Effect<GeneratedWebsite, unknown>;export declare function rollbackWebsite(
target: string,
releaseId?: string
): Effect<WebsiteReleaseManifest, unknown, VercelService | AtomicWriter | DocsFileSystem | DocsPath>;export declare function runDocsCli(
args: readonly string[]
): Effect<void, unknown, never>;export declare function runMcpSource(
source: string
): Effect<void, unknown>;export declare function verifyNativeApp(
target: string
): Effect<void, unknown>;export declare function verifyWebsite(
target: string
): Effect<void, unknown>;export declare function verifyWebsiteDeployment(
manifest: WebsiteReleaseManifest,
options?: DeploymentVerificationOptions
): Effect<void, DeploymentVerificationError, NetworkRetry>;export declare function writeGeneratedWebsite(
website: GeneratedWebsite
): Effect<void, unknown>;export declare function writeNativeAuthoringFile(
options: NativeAuthoringOptions
): Effect<void, unknown>;export declare function writeNativeStorybookApp(
app: NativeGeneratedApp
): Effect<void, unknown>;export declare function writeReleaseManifest(
target: string,
manifest: WebsiteReleaseManifest
): Effect<void, unknown>;export declare class DeploymentVerificationError extends YieldableError<this> & { _tag: "DeploymentVerificationError" } & Readonly<{ cause?: unknown; status?: number; url: string }> {
constructor(
args: {
cause?: unknown;
status?: number;
url: string
}
): DeploymentVerificationError;
readonly _tag: "DeploymentVerificationError";
readonly ~effect/Effect: Variance<never, DeploymentVerificationError, never>;
readonly ~effect/ErrorReporter/attributes?: ReadonlyRecord<string, unknown>;
readonly ~effect/ErrorReporter/ignore?: boolean;
readonly ~effect/ErrorReporter/severity?: Severity;
readonly ~effect/Runtime/errorExitCode?: number;
readonly ~effect/Runtime/errorReported?: boolean;
cause?: unknown;
message: string;
name: string;
stack?: string;
readonly status?: number;
readonly url: string;
[iterator](): EffectIterator<Effect<never, DeploymentVerificationError, never>>;
[NodeInspectSymbol](): unknown;
pipe<A>(
this: A
): A;
toJSON(): unknown;
toString(): string;
}export declare class ProductSkillError extends Error {
constructor(
path: string,
message: string
): ProductSkillError;
readonly _tag: "ProductSkillError";
readonly ~effect/ErrorReporter/attributes?: ReadonlyRecord<string, unknown>;
readonly ~effect/ErrorReporter/ignore?: boolean;
readonly ~effect/ErrorReporter/severity?: Severity;
readonly ~effect/Runtime/errorExitCode?: number;
readonly ~effect/Runtime/errorReported?: boolean;
cause?: unknown;
message: string;
name: string;
readonly path: string;
stack?: string;
static stackTraceLimit: number;
captureStackTrace(
targetObject: object,
constructorOpt?: Function
): void;
prepareStackTrace(
err: Error,
stackTraces: CallSite[]
): any;
}export declare class ReleaseManifestError extends YieldableError<this> & { _tag: "ReleaseManifestError" } & Readonly<{ cause: unknown; path: string }> {
constructor(
args: {
cause: unknown;
path: string
}
): ReleaseManifestError;
readonly _tag: "ReleaseManifestError";
readonly ~effect/Effect: Variance<never, ReleaseManifestError, never>;
readonly ~effect/ErrorReporter/attributes?: ReadonlyRecord<string, unknown>;
readonly ~effect/ErrorReporter/ignore?: boolean;
readonly ~effect/ErrorReporter/severity?: Severity;
readonly ~effect/Runtime/errorExitCode?: number;
readonly ~effect/Runtime/errorReported?: boolean;
cause: unknown;
message: string;
name: string;
readonly path: string;
stack?: string;
[iterator](): EffectIterator<Effect<never, ReleaseManifestError, never>>;
[NodeInspectSymbol](): unknown;
pipe<A>(
this: A
): A;
toJSON(): unknown;
toString(): string;
}export declare interface DeploymentTarget {
readonly deploymentId: string;
readonly project?: string;
readonly revision?: string;
readonly url: string;
}export declare interface DeploymentVerificationOptions {
readonly paths?: readonly string[];
}export declare interface GeneratedWebsite {
readonly config: DocsConfig;
readonly files: readonly GeneratedWebsiteFile[];
readonly generatedAt: string;
readonly packages: readonly GeneratedWebsitePackage[];
readonly revision: string;
readonly target: string;
}export declare interface GeneratedWebsiteFile {
readonly content: string;
readonly path: string;
}export declare interface GeneratedWebsitePackage {
readonly directory: string;
readonly kind: WebsitePackageKind;
readonly name: string;
readonly routePrefix: string;
}export declare interface LandingVercelConfig {
readonly buildCommand?: "npm run build";
readonly headers: readonly VercelHeader[];
readonly installCommand?: "npm install";
readonly outputDirectory?: "Distribution";
readonly redirects: readonly VercelRedirect[];
readonly rewrites: readonly VercelRewrite[];
readonly version: 2;
}export declare interface NativeAppGenerationOptions {
readonly kind?: NativeAppKind;
readonly name?: string;
readonly packageName?: string;
readonly target: string;
}export declare interface NativeAuthoringOptions {
readonly kind: NativeAuthoringKind;
readonly name: string;
readonly target: string;
}export declare interface NativeGeneratedApp {
readonly files: readonly NativeGeneratedFile[];
readonly kind: NativeAppKind;
readonly name: string;
readonly packageName: string;
readonly target: string;
}export declare interface NativeGeneratedFile {
readonly content: string;
readonly path: string;
}export declare interface ProductSkillOptions {
readonly config: DocsConfig;
readonly corpus: { checksum: string; documents: readonly { content: string; context?: string; description?: string; id: string; kind: "article" | "api-module" | "json-schema" | "component"; metadata?: { [key: string]: unknown }; source?: { endLine?: number; file: string; line?: number; repositoryUrl: string; revision: string }; title: string; url: string; version?: string }[]; generatedAt: string; sourceRevision?: string; version: 1 };
readonly manifest: { checksum: string; documents: readonly { checksum: string; id: string; kind: "article" | "api-module" | "json-schema" | "component"; markdownUrl: string; title: string; url: string; version?: string }[]; generatedAt: string; mcpEndpoint?: string; skills?: readonly { archive: string; checksum: string; directory: string; name: string }[]; version: 1; versions: readonly string[] };
readonly outputDirectory: string;
readonly packageId?: string;
readonly siteUrl?: string;
}export declare interface ProductSkillResult {
readonly artifact: { archive: string; checksum: string; directory: string; name: string };
readonly documents: readonly { content: string; context?: string; description?: string; id: string; kind: "article" | "api-module" | "json-schema" | "component"; metadata?: { [key: string]: unknown }; source?: { endLine?: number; file: string; line?: number; repositoryUrl: string; revision: string }; title: string; url: string; version?: string }[];
}export declare interface VercelHeader {
readonly headers: readonly { key: string; value: string }[];
readonly source: string;
}export declare interface VercelRedirect {
readonly destination: string;
readonly source: string;
readonly statusCode: 301 | 302;
}export declare interface VercelRewrite {
readonly destination: string;
readonly source: string;
}export declare interface WebsiteDeploymentOptions {
readonly apiSnapshot?: string;
readonly generatedAt?: string;
readonly production?: boolean;
readonly releaseId?: string;
readonly revision?: string;
readonly snapshot?: boolean;
}export declare interface WebsiteDeployments {
readonly documentation: DeploymentTarget;
readonly landing: DeploymentTarget;
readonly mcp?: DeploymentTarget;
readonly storybook?: DeploymentTarget;
}export declare interface WebsiteGenerationOptions {
readonly config?: { agent?: { description?: string; enabled?: boolean; essentials?: readonly string[]; mcp?: { enabled?: boolean }; skill?: { enabled?: boolean; name?: string } }; api?: { doxygen?: { projects?: readonly { id: string; name: string; version: string; xmlDirectory: string }[] }; enabled?: boolean; entryPoints?: readonly string[]; jsonSchemas?: readonly { path: string; route: string }[]; outputDirectory?: string; packages?: readonly string[]; sourceRepository?: { branch?: string; directory?: string; url: string }; typedoc?: { [key: string]: unknown }; unreal?: { plugins?: readonly { descriptor: string; id: string; name: string; version: string; xmlDirectory: string }[]; projects?: readonly { descriptor: string; id: string; name: string; version: string; xmlDirectory: string }[] } }; banner?: { backgroundColor?: string; logoHeight?: number; logoWidth?: number }; footer?: { columns?: readonly { links: readonly { href: string; icon?: string; label: string }[]; title: string }[]; links?: readonly { href: string; icon?: string; label: string }[]; message?: string }; landing?: { description?: string; primaryAction?: { href: string; label: string }; sections?: readonly { body?: string; href?: string; id: string; title: string }[]; title?: string }; manifests?: readonly { checksum?: string; generatedAt?: string; kind: "storybook" | "project" | "site" | "api-reference"; path: string; revision?: string }[]; metadata?: { description?: string; logo?: string; name?: string; repository?: { branch?: string; directory?: string; url: string }; title?: string; url?: string }; navigation?: { groups?: readonly { id: string; items: readonly NavigationItemInput[]; label: string }[] }; packages?: readonly { description?: string; directory?: string; id: string; name: string; source?: { branch?: string; directory?: string; url: string }; version?: string }[]; redirects?: readonly { from: string; status?: 301 | 302; to: string }[]; routing?: { documentationPrefix?: string; storybookPrefix?: string }; storybook?: { command?: string; directory?: string; enabled?: boolean; stories?: readonly string[]; url?: string }; tokens?: { dark?: { accent?: string; background?: string; border?: string; cardBackground?: string; codeBackground?: string; foreground?: string; muted?: string; proseForeground?: string; subtleForeground?: string }; light?: { accent?: string; background?: string; border?: string; cardBackground?: string; codeBackground?: string; foreground?: string; muted?: string; proseForeground?: string; subtleForeground?: string } }; vercel?: { domains?: readonly string[]; enabled?: boolean; outputDirectory?: string; productionBranch?: string; project?: string; projects?: { documentation?: { directory?: string; id?: string; origin?: string; productionBranch?: string; project?: string; routePrefix?: string; team?: string }; landing?: { directory?: string; id?: string; origin?: string; productionBranch?: string; project?: string; routePrefix?: string; team?: string }; mcp?: { directory?: string; id?: string; origin?: string; productionBranch?: string; project?: string; routePrefix?: string; team?: string }; storybook?: { directory?: string; id?: string; origin?: string; productionBranch?: string; project?: string; routePrefix?: string; team?: string } }; team?: string }; versions?: readonly { current?: boolean; directory?: string; href?: string; id: string; label?: string; order?: number; version?: string }[] };
readonly generatedAt?: string;
readonly revision?: string;
readonly target: string;
}export declare interface WebsiteReleaseManifest {
readonly apiSnapshot?: string;
readonly deployments: WebsiteDeployments;
readonly generatedAt: string;
readonly landingConfig: LandingVercelConfig;
readonly mcpEndpoint?: string;
readonly mode: "preview" | "production";
readonly previousReleaseId?: string;
readonly publicUrl: string;
readonly releaseId: string;
readonly revision: string;
readonly routes: { documentationPrefix: string; storybookPrefix: string };
readonly version: 2;
}export declare type NativeAppKind = "development" | "demonstration";export declare type NativeAuthoringKind = "story" | "example" | "article";export declare type NativePlatform = "android" | "ios" | "web" | "all";export declare type WebsitePackageKind = "landing" | "documentation" | "storybook" | "mcp";export declare const docsCommand: Command<"sorrell-docs", {}, {}, unknown, SkillInstaller>;