Skip to main content

Module import

Module import 

Source
Expand description

yapi import pi: copies pi’s state into yapi’s directories. yapi reads pi’s formats unchanged, so files are copied as they are, except pi’s lastChangelogVersion and sign-ins. Files yapi already has are kept.

Structs§

Imported
What happened to one entry.

Constants§

AGENT_ENTRIES
The agent directory entries yapi reads, in the order they are copied.
PROJECT_ENTRIES
The project directory (.pi) entries yapi reads, in the order they are copied.

Functions§

import
Copies entries of directory from into to, keeping files to already has, and in npm and git the whole packages it already has, so two installs never mix. Entries from lacks are skipped. A settings.json that holds only the version yapi recorded on its first start is replaced, and pi’s lastChangelogVersion, a pi version, is not copied. Nor are the sign-ins of a copied auth.json or mcp-auth.json (see Imported::signed_out).
pi_agent_dir
pi’s agent directory: PI_CODING_AGENT_DIR, or ~/.pi/agent.