Function: createFsInPartitionPredicate()
ts
function createFsInPartitionPredicate<TPartition>(partitionMap, partitionId): object;Defined in: fs/src/builders/create-fs-in-partition-predicate.ts:17
Builds a ScopePredicate matching a specific partition in partitionMap (fs.inPartition).
Populates both partitions: [partitionId] for Turn-0 partition injection and effects with an 'any'-mode FsGlobMatcherNode covering the partition's member globs.
Type Parameters
| Type Parameter | Default type | Description |
|---|---|---|
TPartition extends string | string | Literal union of partition identifiers in partitionMap. |
Parameters
| Parameter | Type | Description |
|---|---|---|
partitionMap | FsPartitionMapNode<TPartition> | Filesystem partition map AST node. |
partitionId | TPartition | Target partition identifier to scope against. |
Returns
object
Frozen ScopePredicate record for scoped rules and skills.
| Name | Type | Defined in |
|---|---|---|
effects? | FsGlobMatcherNode | core/dist/schemas/core-rules.schema.d.ts:7 |
partitions | string[] | core/dist/schemas/core-rules.schema.d.ts:6 |