Skip to content

OutputPlanFile

PromptScript API


Defined in: core/src/output-plan.ts:50

One normalized file in an output plan.

Extends

Properties

content

content: string

Defined in: core/src/output-plan.ts:14

File contents.

Inherited from

OutputArtifact.content


managedOutputDirectories?

optional managedOutputDirectories?: string[]

Defined in: core/src/output-plan.ts:22

Relative directories managed by this artifact.

Inherited from

OutputArtifact.managedOutputDirectories


managedOutputFiles?

optional managedOutputFiles?: string[]

Defined in: core/src/output-plan.ts:24

Relative files managed by this artifact.

Inherited from

OutputArtifact.managedOutputFiles


merge?

optional merge?: StructuredMergePlan

Defined in: core/src/output-plan.ts:18

Optional structured merge instructions.

Inherited from

OutputArtifact.merge


mode?

optional mode?: number

Defined in: core/src/output-plan.ts:16

Optional Unix file mode.

Inherited from

OutputArtifact.mode


omit?

optional omit?: boolean

Defined in: core/src/output-plan.ts:29

Plan nothing for this artifact. A formatter sets it when it has no file to write, for example a prompt target in a program without prompts.

Inherited from

OutputArtifact.omit


originalPath

originalPath: string

Defined in: core/src/output-plan.ts:54

Original formatter path before normalization.


owner

owner: string

Defined in: core/src/output-plan.ts:56

Formatter or adapter that owns the file.


path

path: string

Defined in: core/src/output-plan.ts:52

Normalized project-relative path.

Overrides

OutputArtifact.path


resourceOf?

optional resourceOf?: string

Defined in: core/src/output-plan.ts:60

Normalized parent path for nested resources.


role

role: OutputPlanArtifactRole

Defined in: core/src/output-plan.ts:58

Artifact role used for collision resolution.