MCPcopy Index your code
hub / github.com/actions/toolkit

github.com/actions/toolkit @0.0.2 sqlite

repository ↗ · DeepWiki ↗ · release 0.0.2 ↗
115 symbols 255 edges 22 files 8 documented · 7% 55 cross-repo links
README

Actions Toolkit 🛠

Packages

Package Description
@actions/core Core functions for setting results, logging, secrets and environment variables
@actions/exec Functions necessary for running tools on the command line
@actions/exit Provides utilities for exiting from an action
@actions/io Core functions for CLI filesystem scenarios
@actions/tool-cache Functions necessary for downloading and caching tools
@actions/toolkit A general-purpose toolkit for writing actions

Development

This repository uses Lerna to manage multiple packages. Read the documentation there to begin contributing.

Note that before a PR will be accepted, you must ensure: - all tests are passing - npm run format reports no issues - npm run lint reports no issues

Useful Scripts

  • npm run bootstrap This runs lerna bootstrap which will install dependencies in this repository's packages and cross-link packages where necessary.
  • npm run build This compiles TypeScript code in each package (this is especially important if one package relies on changes in another when you're running tests). This is just an alias for lerna run tsc.
  • npm run format This checks that formatting has been applied with Prettier.
  • npm test This runs all Jest tests in all packages in this repository.
  • If you need to run tests for only one package, you can pass normal Jest CLI options: console $ npm test -- packages/toolkit
  • npm run create-package [name] This runs a script that automates a couple of parts of creating a new package.

Creating a Package

  1. In a new branch, create a new Lerna package:
$ npm run create-package new-package

This will ask you some questions about the new package. Start with 0.0.0 as the first version (look generally at some of the other packages for how the package.json is structured).

  1. Add tsc script to the new package's package.json file:
"scripts": {
  "tsc": "tsc"
}
  1. Start developing 😄 and open a pull request.

Extension points exported contracts — how you extend this code

ToolkitOptions (Interface)
(no doc)
packages/toolkit/src/toolkit.ts
CommandProperties (Interface)
(no doc)
packages/core/src/command.ts
ExecOptions (Interface)
(no doc)
packages/exec/src/interfaces.ts
CopyOptions (Interface)
(no doc)
packages/io/src/io.ts
InputOptions (Interface)
(no doc)
packages/core/src/core.ts

Core symbols most depended-on inside this repo

exec
called by 27
packages/exec/src/toolrunner.ts
toString
called by 11
packages/core/src/command.ts
exec
called by 8
packages/exec/src/exec.ts
_debug
called by 7
packages/exec/src/toolrunner.ts
issueCommand
called by 6
packages/core/src/command.ts
_isCmdFile
called by 5
packages/exec/src/toolrunner.ts
_windowsQuoteCmdArg
called by 4
packages/exec/src/toolrunner.ts
failure
called by 3
packages/toolkit/src/exit.ts

Shape

Function 63
Method 32
Class 14
Interface 5
Enum 1

Languages

TypeScript100%

Modules by API surface

packages/exec/src/toolrunner.ts24 symbols
packages/tool-cache/src/tool-cache.ts18 symbols
packages/core/src/core.ts11 symbols
packages/io/src/io.ts9 symbols
packages/exec/__tests__/exec.test.ts9 symbols
packages/core/src/command.ts9 symbols
packages/io/__tests__/io.test.ts8 symbols
packages/toolkit/src/toolkit.ts7 symbols
packages/io/src/io-util.ts7 symbols
packages/toolkit/src/exit.ts6 symbols
packages/exit/src/exit.ts4 symbols
packages/exec/src/interfaces.ts1 symbols

Dependencies from manifests, versioned

@actions/core0.0.0 · 1×
@actions/exec0.0.0 · 1×
@actions/exit0.0.0 · 1×
@actions/io0.0.0 · 1×
@octokit/rest16.25.0 · 1×
@types/jest24.0.11 · 1×
@types/nock10.0.3 · 1×
@types/node11.13.5 · 1×
@types/semver6.0.0 · 1×
@types/signale1.2.1 · 1×
@types/uuid3.4.4 · 1×

For agents

$ claude mcp add toolkit \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact