@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
106 lines • 4.58 kB
JavaScript
// ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// ========= Copyright 2026 @ Strukto.AI All Rights Reserved. =========
import { ShellBuiltin as SB } from "../../../shell/types.js";
import { aliasBuiltin, unaliasBuiltin } from "./alias/alias.js";
import { commandBuiltin } from "./command/command.js";
import { testBuiltin } from "./condition/condition.js";
import { breakBuiltin, colonBuiltin, continueBuiltin, exitBuiltin, falseBuiltin, returnBuiltin, trueBuiltin, } from "./control/control.js";
import { exportBuiltin } from "./declare/export.js";
import { localBuiltin } from "./declare/local.js";
import { cdBuiltin } from "./dirs/cd.js";
import { pwdBuiltin } from "./dirs/pwd.js";
import { echoBuiltin } from "./echo/echo.js";
import { envBuiltin } from "./env/env.js";
import { evalBuiltin } from "./eval/eval.js";
import { execBuiltin } from "./exec/exec.js";
import { getoptsBuiltin } from "./getopts/getopts.js";
import { historyBuiltin } from "./history/history.js";
import { letBuiltin } from "./let/let.js";
import { typeBuiltin, whichBuiltin } from "./lookup/lookup.js";
import { helpBuiltin } from "./help/help.js";
import { manBuiltin } from "./man/man.js";
import { mapfileBuiltin } from "./mapfile/mapfile.js";
import { printenvBuiltin } from "./printenv/printenv.js";
import { printfBuiltin } from "./printf/printf.js";
import { readBuiltin } from "./read/read.js";
import { bashBuiltin } from "./script/bash.js";
import { sourceBuiltin } from "./script/source.js";
import { setBuiltin } from "./set/set.js";
import { shiftBuiltin } from "./shift/shift.js";
import { shoptBuiltin } from "./shopt/shopt.js";
import { sleepBuiltin } from "./sleep/sleep.js";
import { timeoutBuiltin } from "./timeout/timeout.js";
import { trapBuiltin } from "./trap/trap.js";
import { umaskBuiltin } from "./umask/umask.js";
import { unsetBuiltin } from "./unset/unset.js";
import { whoamiBuiltin } from "./whoami/whoami.js";
import { xargsBuiltin } from "./xargs/xargs.js";
// The one map from an executor-run builtin word to its handler; the
// dispatcher does a single lookup here instead of one arm per word. Two
// ShellBuiltin groups are deliberately absent: the job builtins (wait, fg,
// kill, jobs, disown, ps) route through JOB_HANDLERS in
// executor/command/command.ts because they need the job table, and
// python/python3/node/js are general mount commands
// (commands/builtin/general), reserved in ShellBuiltin only so no CLI can
// take the name. table.test.ts pins that everything else is here.
export const BUILTINS = new Map([
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
[],
]);
//# sourceMappingURL=table.js.map