Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 17 additions & 1 deletion src/core/project/manager.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import type {
Project,
ProjectManager,
ProjectEvent,
ProjectResource,
ProjectResourceConfig,
} from "../../handlers/project/types";
import type { Logger } from "../../logging";
import {
Expand All @@ -19,7 +21,12 @@ import { defaultSource, type AssetSource } from "./source";
import { createProjectTreeFromTemplate, TEMPLATES } from "./templates";
import { ProjectSpecSchema } from "../../projectSchemas/project";
import { enclosingProjectRoot } from "./fsUtils";
import { DeserializationError, InputValidationError, ProjectStateError } from "../../errors/errors";
import {
DeserializationError,
InputValidationError,
NotImplementedError,
ProjectStateError,
} from "../../errors/errors";

type ProjectManagerConfig = {
logger: Logger;
Expand Down Expand Up @@ -123,6 +130,15 @@ export class FsProjectManager implements ProjectManager {
return project;
}

// eslint-disable-next-line require-yield
public async *addResource<TResource extends ProjectResource>(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

_project: Project,
_resourceType: TResource,
_resourceConfig: ProjectResourceConfig<TResource>,
): AsyncGenerator<ProjectEvent, Project> {
throw new NotImplementedError("FsProjectManager.addResource is not yet implemented");
}

public async *build(project: Project): AsyncGenerator<ProjectEvent, void> {
// agentcore.json records which backend owns the project's artifacts. CDK is the
// only one today; a terraform or no-IaC backend adds an arm here rather than
Expand Down
Loading
Loading