0.0.34 • Published 10 months ago

@credal-ai/actions v0.0.34

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

actions

Adding or updating actions

  1. Add or update the action in src/actions/schema.yaml
  2. Run npm run generate:types to generate the new types
  3. Run npm run prettier-format to format the new files
  4. Create a new provider function in src/actions/providers/<provider>/<action>.ts (eg. src/actions/providers/math/add.ts) which exports a function using the generated types
  5. If adding a new action or provider, update src/actions/actionMapper.ts and src/actions/groups.ts.
  6. In package.json, bump the version number.
  7. Run npm publish --access public to publish the new version to npm. (Need to be logged in via npm login)

Usage

Invoking an action:

import { runAction } from "@credal-ai/actions";

const result = await runAction(
  "listConversations",
  "slack",
  { authToken: "xoxb-..." },
  {}
);

Running a basic test for runAction

npx ts-node -r tsconfig-paths/register --project tsconfig.json tests/testRunMathAction.ts
0.0.34

10 months ago

0.0.33

10 months ago

0.0.32

10 months ago

0.0.31

11 months ago

0.0.30

11 months ago

0.0.29

11 months ago

0.0.28

11 months ago

0.0.27

11 months ago

0.0.26

11 months ago

0.0.25

11 months ago

0.0.24

11 months ago

0.0.23

11 months ago

0.0.22

11 months ago

0.0.21

11 months ago

0.0.20

11 months ago

0.0.19

11 months ago

0.0.18

11 months ago

0.0.17

1 year ago

0.0.16

1 year ago

0.0.15

1 year ago

0.0.14

1 year ago

0.0.13

1 year ago

0.0.12

1 year ago

0.0.11

1 year ago

0.0.10

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago