Skip to content

Commit 6761a74

Browse files
Claudehotlong
andauthored
fix(service-ai): remove unsupported 'author' field from package tools
ManifestSchema does not include an 'author' field, causing TypeScript compilation error. Removed 'author' from: - create_package tool parameter definition - createCreatePackageHandler args extraction - createGetPackageHandler response - manifest object construction Agent-Logs-Url: https://github.com/objectstack-ai/framework/sessions/b89b68d5-0416-434e-b34e-a10f8d15c625 Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent 9bea8d6 commit 6761a74

2 files changed

Lines changed: 1 addition & 8 deletions

File tree

packages/services/service-ai/src/tools/create-package.tool.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,6 @@ export const createPackageTool = defineTool({
3737
type: 'string',
3838
description: 'Brief description of what this package provides',
3939
},
40-
author: {
41-
type: 'string',
42-
description: 'Package author name or organization',
43-
},
4440
namespace: {
4541
type: 'string',
4642
description: 'Namespace prefix for metadata (snake_case, e.g., crm, sales). If not provided, derived from package ID.',

packages/services/service-ai/src/tools/package-tools.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,6 @@ function createGetPackageHandler(ctx: PackageToolContext): ToolHandler {
190190
installedAt: pkg.installedAt,
191191
updatedAt: pkg.updatedAt,
192192
description: pkg.manifest.description,
193-
author: pkg.manifest.author,
194193
namespace: pkg.manifest.namespace,
195194
dependencies: pkg.manifest.dependencies,
196195
registeredNamespaces: pkg.registeredNamespaces,
@@ -200,12 +199,11 @@ function createGetPackageHandler(ctx: PackageToolContext): ToolHandler {
200199

201200
function createCreatePackageHandler(ctx: PackageToolContext): ToolHandler {
202201
return async (args) => {
203-
const { id, name, version = '1.0.0', description, author, namespace, type = 'application' } = args as {
202+
const { id, name, version = '1.0.0', description, namespace, type = 'application' } = args as {
204203
id: string;
205204
name: string;
206205
version?: string;
207206
description?: string;
208-
author?: string;
209207
namespace?: string;
210208
type?: string;
211209
};
@@ -251,7 +249,6 @@ function createCreatePackageHandler(ctx: PackageToolContext): ToolHandler {
251249
type,
252250
namespace: derivedNamespace,
253251
...(description ? { description } : {}),
254-
...(author ? { author } : {}),
255252
};
256253

257254
// Install the package

0 commit comments

Comments
 (0)