@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
18 lines • 1.21 kB
TypeScript
import type { RedirectResult } from '../../context/session_context.ts';
import type { CallStack } from '../../shell/call_stack.ts';
import { type TSNodeLike } from '../../shell/types.ts';
import type { EvaluationContext } from '../evaluation.ts';
import type { ExecuteFn } from '../expand/types.ts';
import type { Namespace } from '../mount/namespace/namespace.ts';
import type { MountRegistry } from '../mount/registry.ts';
export declare function expandArrayItems(arrayNode: TSNodeLike, context: EvaluationContext, executeFn: ExecuteFn, registry: MountRegistry, namespace: Namespace, callStack: CallStack | null): Promise<string[]>;
/**
* Execute one top-level variable assignment (`a=1`, `a[i]+=v`).
*
* Every spelling — scalar, array literal, subscript, append — is
* computed with bash's own mechanics on a copy of the held value and
* then stored through the session view, which owns the admission gate
* and the scalar/array invariant.
*/
export declare function executeAssignment(node: TSNodeLike, context: EvaluationContext, executeFn: ExecuteFn, registry: MountRegistry, namespace: Namespace, callStack: CallStack | null): Promise<RedirectResult>;
//# sourceMappingURL=assignment.d.ts.map