Skip to content

Commit 64d601f

Browse files
authored
feat(project): scaffold add harness handler (#1998)
* feat(project): implement add harness scaffolding * refactor(test): clean up tests * refactor(project): rename add to addResource
1 parent a9d34be commit 64d601f

7 files changed

Lines changed: 765 additions & 24 deletions

File tree

src/core/project/manager.tsx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import type {
66
Project,
77
ProjectManager,
88
ProjectEvent,
9+
ProjectResource,
10+
ProjectResourceConfig,
911
} from "../../handlers/project/types";
1012
import type { Logger } from "../../logging";
1113
import {
@@ -19,7 +21,12 @@ import { defaultSource, type AssetSource } from "./source";
1921
import { createProjectTreeFromTemplate, TEMPLATES } from "./templates";
2022
import { ProjectSpecSchema } from "../../projectSchemas/project";
2123
import { enclosingProjectRoot } from "./fsUtils";
22-
import { DeserializationError, InputValidationError, ProjectStateError } from "../../errors/errors";
24+
import {
25+
DeserializationError,
26+
InputValidationError,
27+
NotImplementedError,
28+
ProjectStateError,
29+
} from "../../errors/errors";
2330

2431
type ProjectManagerConfig = {
2532
logger: Logger;
@@ -123,6 +130,15 @@ export class FsProjectManager implements ProjectManager {
123130
return project;
124131
}
125132

133+
// eslint-disable-next-line require-yield
134+
public async *addResource<TResource extends ProjectResource>(
135+
_project: Project,
136+
_resourceType: TResource,
137+
_resourceConfig: ProjectResourceConfig<TResource>,
138+
): AsyncGenerator<ProjectEvent, Project> {
139+
throw new NotImplementedError("FsProjectManager.addResource is not yet implemented");
140+
}
141+
126142
public async *build(project: Project): AsyncGenerator<ProjectEvent, void> {
127143
// agentcore.json records which backend owns the project's artifacts. CDK is the
128144
// only one today; a terraform or no-IaC backend adds an arm here rather than

0 commit comments

Comments
 (0)