Standard Library

Core Commands

The essential vScript commands that form the foundation of every session and interaction.

Session Management

vS.enter(context?)
Start a session or set context
1
2
3
vS.enter();
vS.enter(mode: "creative");
vS.enter("explorer");

Initializes a new vScript session. Can optionally set the initial mode or context for the session.

vS.0ath(identity?)
Identity bind and handshake
1
2
vS.0ath;
vS.0ath("maxwell");

Establishes identity binding for the session. Essential for security and personalization.

vS.unlock(level?)
Move to next access/energy tier
1
2
vS.unlock();
vS.unlock(level: 3);

Elevates session permissions or energy level. May require confirmation based on current state.

State & Content

vS.setState(name)
Define current state or mode
1
2
3
vS.setState("creative");
vS.setState("crisis");
vS.setState("static");

Sets the active state which influences how subsequent commands are interpreted and executed.

vS.inject(content)
Insert content into the active stream
1
2
3
vS.inject("Hello, world");
vS.inject("Multi-line content");
vS.inject("Process this")!

Primary content insertion command. Behavior varies based on current state and punctuation.

vS.switch(topic)
Shift focus or topic
1
2
vS.switch("design");
vS.switch("development");

Changes the current topic or focus area while maintaining session state.

Observation & Memory

vS.rift(channel?)
Snapshot/log the current moment
1
2
3
vS.rift();
vS.rift#worklog;
vS.rift#summary("lastHour");

Creates an immutable snapshot of the current state and context. Essential for session memory.

vS.echo()
Reflect/print last known state
1
vS.echo();

Returns the current state and recent context for inspection and debugging.

vS.explain(scope?)
Generate natural-language summary
1
2
3
vS.explain();
vS.explain("session");
vS.explain("lastAction");

Provides human-readable explanations of current state, recent actions, or specified scope.

Control Flow

vS.pause()
Temporary halt
1
vS.pause();

Temporarily suspends execution while preserving current state and context.

vS.recal()
Recenter state or correct drift
1
vS.recal();

Recenters the session state and corrects any drift from intended behavior.

Targeting & Tagging

Commands can be targeted to specific identities or tagged for routing and organization.

Targeting and tagging examplesvscript
1
2
3
4
5
6
7
8
// Target specific identity
vS.ping@ops("deploy queued");
// Tag for routing
vS.create#NewLink(@atrioc);
// Combined targeting and tagging
vS.notify@design#daily("mockups ready");