Skip to content

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 ParameterDefault typeDescription
TPartition extends stringstringLiteral union of partition identifiers in partitionMap.

Parameters ​

ParameterTypeDescription
partitionMapFsPartitionMapNode<TPartition>Filesystem partition map AST node.
partitionIdTPartitionTarget partition identifier to scope against.

Returns ​

object

Frozen ScopePredicate record for scoped rules and skills.

NameTypeDefined in
effects?FsGlobMatcherNodecore/dist/schemas/core-rules.schema.d.ts:7
partitionsstring[]core/dist/schemas/core-rules.schema.d.ts:6

Released under the MIT License.