@builder.io/ai-utils 0.74.4 → 0.75.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/codegen.d.ts +12 -7
- package/src/codegen.js +1 -1
- package/src/projects.d.ts +47 -1
package/package.json
CHANGED
package/src/codegen.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { Options as PrettierOptions } from "prettier";
|
|
3
|
-
import type
|
|
3
|
+
import { type Attachment, type ContentMessageItemToolResult } from "./messages";
|
|
4
4
|
import type { BuilderContent } from "./completion";
|
|
5
5
|
import { type EnvironmentVariable, type SetupDependency } from "./common-schemas";
|
|
6
|
-
import type { ForcedBackup, GitDiagnostics } from "./projects";
|
|
6
|
+
import type { ForcedBackup, GitDiagnostics, ProjectSkill } from "./projects";
|
|
7
7
|
import type { Feature } from "./features";
|
|
8
8
|
import type { CpuKind, BranchType } from "./projects";
|
|
9
9
|
export declare const GitSnapshotSchema: z.ZodString;
|
|
@@ -3789,7 +3789,7 @@ export type MCPRegistrationSource = "local-configured" | "remote-registered" | "
|
|
|
3789
3789
|
export interface MCPClientStatus {
|
|
3790
3790
|
status: "ok" | "error" | "disabled" | "auth_required" | "auth_error" | "shadowed";
|
|
3791
3791
|
message?: string;
|
|
3792
|
-
protocol
|
|
3792
|
+
protocol: "streamable-http" | "sse" | "stdio" | undefined;
|
|
3793
3793
|
connectionDurationMs: number;
|
|
3794
3794
|
resolutionDurationMs: number;
|
|
3795
3795
|
authorizationUrl?: string;
|
|
@@ -3823,7 +3823,7 @@ export interface MCPClientStatus {
|
|
|
3823
3823
|
* group servers and gate per-source actions (e.g. server-managed MCPs
|
|
3824
3824
|
* can't be reconnected from the CLI).
|
|
3825
3825
|
*/
|
|
3826
|
-
source
|
|
3826
|
+
source: "local" | "plugin" | "builtin" | "server" | undefined;
|
|
3827
3827
|
/** Precedence scope from MCPServerDefinition (local/plugin only). */
|
|
3828
3828
|
scope?: "project" | "user" | "plugin";
|
|
3829
3829
|
/** Plugin that contributed this server, if any. */
|
|
@@ -3839,12 +3839,12 @@ export interface MCPClientStatus {
|
|
|
3839
3839
|
url?: string;
|
|
3840
3840
|
command?: string;
|
|
3841
3841
|
/** Number of real (non-synthetic) tools currently exposed. */
|
|
3842
|
-
toolCount
|
|
3842
|
+
toolCount: number | undefined;
|
|
3843
3843
|
/** Lightweight tool catalog for the "View tools" sub-view. */
|
|
3844
|
-
tools
|
|
3844
|
+
tools: {
|
|
3845
3845
|
name: string;
|
|
3846
3846
|
description?: string;
|
|
3847
|
-
}[];
|
|
3847
|
+
}[] | undefined;
|
|
3848
3848
|
/** Capability flags reported by the server during initialize. */
|
|
3849
3849
|
capabilities?: {
|
|
3850
3850
|
tools?: boolean;
|
|
@@ -4109,6 +4109,11 @@ export interface FusionConfig {
|
|
|
4109
4109
|
proxyOrigin?: string;
|
|
4110
4110
|
proxyDefaultOrigin?: string;
|
|
4111
4111
|
setupDependencies?: SetupDependency[];
|
|
4112
|
+
/**
|
|
4113
|
+
* Project-level skills to install during initialization.
|
|
4114
|
+
* Each skill is resolved to a `skills add` source and installed before setup runs.
|
|
4115
|
+
*/
|
|
4116
|
+
skills?: ProjectSkill[];
|
|
4112
4117
|
projectId?: string;
|
|
4113
4118
|
/** Human-readable project name (e.g. "My App") */
|
|
4114
4119
|
projectName?: string;
|
package/src/codegen.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { AttachmentSchema, ContentMessageItemToolResultSchema, } from "./messages";
|
|
3
|
-
import { UserContextSchema } from "./mapping";
|
|
4
3
|
import { EnvironmentVariableSchema, SetupDependencySchema, } from "./common-schemas";
|
|
4
|
+
import { UserContextSchema } from "./mapping";
|
|
5
5
|
export const GitSnapshotSchema = z.string().meta({
|
|
6
6
|
title: "GitSnapshot",
|
|
7
7
|
description: "Multi-repo git snapshot. Format: 'folder:hash,folder:hash' " +
|
package/src/projects.d.ts
CHANGED
|
@@ -330,6 +330,51 @@ export type ShutdownResponse = {
|
|
|
330
330
|
export type ShutdownResponseSerialized = Omit<ShutdownResponse, "error"> & {
|
|
331
331
|
error?: string;
|
|
332
332
|
};
|
|
333
|
+
interface ProjectSkillBase {
|
|
334
|
+
/** Stable identifier for the entry (used for logs/dedup, not by the CLI). */
|
|
335
|
+
key: string;
|
|
336
|
+
/** Specific skill names to install (--skill). Omit to install all. */
|
|
337
|
+
skills?: string[];
|
|
338
|
+
/** Target agents (--agent). Defaults to ["claude-code"]. */
|
|
339
|
+
agents?: string[];
|
|
340
|
+
}
|
|
341
|
+
/**
|
|
342
|
+
* A skill source passed directly to `skills add`.
|
|
343
|
+
* Supports GitHub shorthand, Git/GitHub URLs, local paths, npm: sources, etc.
|
|
344
|
+
*/
|
|
345
|
+
export interface ProjectSkillSource extends ProjectSkillBase {
|
|
346
|
+
source: string;
|
|
347
|
+
}
|
|
348
|
+
/**
|
|
349
|
+
* A skill sourced from an npm package.
|
|
350
|
+
* The package must contain a SKILL.md at its root (or a skills/<name>/SKILL.md).
|
|
351
|
+
*/
|
|
352
|
+
export interface ProjectSkillNpm extends ProjectSkillBase {
|
|
353
|
+
type: "npm";
|
|
354
|
+
package: string;
|
|
355
|
+
version?: string;
|
|
356
|
+
}
|
|
357
|
+
/**
|
|
358
|
+
* A skill sourced from a GitHub repository that follows the Claude Code plugin layout
|
|
359
|
+
* (skills/<name>/SKILL.md) or contains a SKILL.md at root.
|
|
360
|
+
* ref can be a branch, tag, or commit SHA.
|
|
361
|
+
*/
|
|
362
|
+
export interface ProjectSkillGithub extends ProjectSkillBase {
|
|
363
|
+
type: "github";
|
|
364
|
+
repo: string;
|
|
365
|
+
ref?: string;
|
|
366
|
+
/** Sub-path inside the repo to treat as the plugin root (default: repo root) */
|
|
367
|
+
path?: string;
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* A skill sourced from a URL supported by `skills add`, such as a GitHub/GitLab
|
|
371
|
+
* tree URL, a direct git URL, or a well-known skills index URL.
|
|
372
|
+
*/
|
|
373
|
+
export interface ProjectSkillUrl extends ProjectSkillBase {
|
|
374
|
+
type: "url";
|
|
375
|
+
url: string;
|
|
376
|
+
}
|
|
377
|
+
export type ProjectSkill = ProjectSkillSource | ProjectSkillNpm | ProjectSkillGithub | ProjectSkillUrl;
|
|
333
378
|
export type FusionExecutionEnvironment = "containerized" | "container-less" | "cloud" | "cloud-v2";
|
|
334
379
|
export type AgentType = "setup-project" | "project-configuration" | "org-agent" | "code-review-orchestrator" | "design-system-indexer" | "builder-publish-integration";
|
|
335
380
|
export interface PartialBranchData {
|
|
@@ -671,7 +716,8 @@ export interface Project {
|
|
|
671
716
|
gitBranchNamingStrategy?: "ai-session" | "branch-name" | "custom";
|
|
672
717
|
/** @internal Mise tools and custom scripts run before the setup command. Managed via builder.config.json. */
|
|
673
718
|
setupDependencies?: SetupDependency[];
|
|
674
|
-
/**
|
|
719
|
+
/** Project-level skills to install during Fusion initialization. */
|
|
720
|
+
skills?: ProjectSkill[];
|
|
675
721
|
gitBranchNamingCustom?: string;
|
|
676
722
|
/** When true, the user is prompted to provide a branch name before a new branch is created. */
|
|
677
723
|
askUserForBranchName?: boolean;
|