Skip to content

Commit fccc9d9

Browse files
authored
Merge pull request #782 from objectstack-ai/copilot/fix-ci-errors-again
2 parents 5704a22 + 0299199 commit fccc9d9

4 files changed

Lines changed: 13 additions & 13 deletions

File tree

packages/spec/src/api/package-api.zod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { z } from 'zod';
44
import { BaseResponseSchema } from './contract.zod';
55
import { InstalledPackageSchema } from '../kernel/package-registry.zod';
66
import { DependencyResolutionResultSchema } from '../kernel/dependency-resolution.zod';
7-
import { UpgradePlanSchema, UpgradePackageResponseSchema, RollbackPackageResponseSchema } from '../kernel/package-upgrade.zod';
7+
import { UpgradePlanSchema } from '../kernel/package-upgrade.zod';
88
import { PackageArtifactSchema } from '../kernel/package-artifact.zod';
99
import { ManifestSchema } from '../kernel/manifest.zod';
1010
import { ArtifactReferenceSchema } from '../cloud/marketplace.zod';

packages/spec/src/contracts/package-service.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import type {
2828
RollbackPackageResponse,
2929
} from '../kernel/package-upgrade.zod';
3030
import type { PackageArtifact } from '../kernel/package-artifact.zod';
31-
import type { Manifest } from '../kernel/manifest.zod';
31+
import type { ObjectStackManifest } from '../kernel/manifest.zod';
3232

3333
// ==========================================
3434
// Install Types
@@ -39,7 +39,7 @@ import type { Manifest } from '../kernel/manifest.zod';
3939
*/
4040
export interface InstallPackageInput {
4141
/** The package manifest to install */
42-
manifest: Manifest;
42+
manifest: ObjectStackManifest;
4343
/** User-provided settings at install time */
4444
settings?: Record<string, unknown>;
4545
/** Whether to enable immediately after install (default: true) */
@@ -71,7 +71,7 @@ export interface InstallPackageResult {
7171
*/
7272
export interface ResolveDependenciesInput {
7373
/** The package manifest whose dependencies to resolve */
74-
manifest: Manifest;
74+
manifest: ObjectStackManifest;
7575
/** Current platform version for compatibility filtering */
7676
platformVersion?: string;
7777
}
@@ -113,7 +113,7 @@ export interface PlanUpgradeInput {
113113
/** Target version to upgrade to */
114114
targetVersion?: string;
115115
/** New manifest for the target version */
116-
manifest?: Manifest;
116+
manifest?: ObjectStackManifest;
117117
}
118118

119119
/**
@@ -125,7 +125,7 @@ export interface ExecuteUpgradeInput {
125125
/** Target version */
126126
targetVersion?: string;
127127
/** New manifest */
128-
manifest?: Manifest;
128+
manifest?: ObjectStackManifest;
129129
/** Whether to create a pre-upgrade snapshot */
130130
createSnapshot?: boolean;
131131
/** Merge strategy for customizations */

packages/spec/src/kernel/plugin-versioning.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
CompatibilityMatrixEntrySchema,
99
PluginCompatibilityMatrixSchema,
1010
DependencyConflictSchema,
11-
DependencyResolutionResultSchema,
11+
PluginDependencyResolutionResultSchema,
1212
MultiVersionSupportSchema,
1313
PluginVersionMetadataSchema,
1414
} from './plugin-versioning.zod';
@@ -271,7 +271,7 @@ describe('Plugin Versioning Schemas', () => {
271271
});
272272
});
273273

274-
describe('DependencyResolutionResultSchema', () => {
274+
describe('PluginDependencyResolutionResultSchema', () => {
275275
it('should validate successful resolution', () => {
276276
const result = {
277277
success: true,
@@ -293,7 +293,7 @@ describe('Plugin Versioning Schemas', () => {
293293
'com.acme.plugin-b': [],
294294
},
295295
};
296-
const parsed = DependencyResolutionResultSchema.parse(result);
296+
const parsed = PluginDependencyResolutionResultSchema.parse(result);
297297
expect(parsed.success).toBe(true);
298298
expect(parsed.resolved).toHaveLength(2);
299299
expect(parsed.installationOrder).toEqual(['com.acme.plugin-b', 'com.acme.plugin-a']);
@@ -315,7 +315,7 @@ describe('Plugin Versioning Schemas', () => {
315315
],
316316
warnings: ['Plugin C is deprecated'],
317317
};
318-
const parsed = DependencyResolutionResultSchema.parse(result);
318+
const parsed = PluginDependencyResolutionResultSchema.parse(result);
319319
expect(parsed.success).toBe(false);
320320
expect(parsed.conflicts).toHaveLength(1);
321321
});
@@ -428,7 +428,7 @@ describe('Plugin Versioning Schemas', () => {
428428
});
429429

430430
it('should handle dependency conflict resolution', () => {
431-
const resolution = DependencyResolutionResultSchema.parse({
431+
const resolution = PluginDependencyResolutionResultSchema.parse({
432432
success: false,
433433
conflicts: [
434434
{

packages/spec/src/kernel/plugin-versioning.zod.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ export const DependencyConflictSchema = z.object({
296296
* Dependency Resolution Result
297297
* Result of dependency resolution process
298298
*/
299-
export const DependencyResolutionResultSchema = z.object({
299+
export const PluginDependencyResolutionResultSchema = z.object({
300300
/**
301301
* Resolution successful
302302
*/
@@ -467,6 +467,6 @@ export type DeprecationNotice = z.infer<typeof DeprecationNoticeSchema>;
467467
export type CompatibilityMatrixEntry = z.infer<typeof CompatibilityMatrixEntrySchema>;
468468
export type PluginCompatibilityMatrix = z.infer<typeof PluginCompatibilityMatrixSchema>;
469469
export type DependencyConflict = z.infer<typeof DependencyConflictSchema>;
470-
export type DependencyResolutionResult = z.infer<typeof DependencyResolutionResultSchema>;
470+
export type PluginDependencyResolutionResult = z.infer<typeof PluginDependencyResolutionResultSchema>;
471471
export type MultiVersionSupport = z.infer<typeof MultiVersionSupportSchema>;
472472
export type PluginVersionMetadata = z.infer<typeof PluginVersionMetadataSchema>;

0 commit comments

Comments
 (0)