@enactprotocol/cli 2.2.2 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -37
- package/dist/commands/cache/index.js +5 -5
- package/dist/commands/cache/index.js.map +1 -1
- package/dist/commands/index.d.ts +1 -0
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +2 -0
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/inspect/index.d.ts.map +1 -1
- package/dist/commands/inspect/index.js +3 -2
- package/dist/commands/inspect/index.js.map +1 -1
- package/dist/commands/install/index.d.ts +1 -1
- package/dist/commands/install/index.d.ts.map +1 -1
- package/dist/commands/install/index.js +64 -4
- package/dist/commands/install/index.js.map +1 -1
- package/dist/commands/learn/index.d.ts.map +1 -1
- package/dist/commands/learn/index.js +54 -0
- package/dist/commands/learn/index.js.map +1 -1
- package/dist/commands/list/index.d.ts +1 -1
- package/dist/commands/list/index.d.ts.map +1 -1
- package/dist/commands/list/index.js +7 -3
- package/dist/commands/list/index.js.map +1 -1
- package/dist/commands/run/index.d.ts.map +1 -1
- package/dist/commands/run/index.js +142 -41
- package/dist/commands/run/index.js.map +1 -1
- package/dist/commands/serve/index.d.ts +9 -0
- package/dist/commands/serve/index.d.ts.map +1 -0
- package/dist/commands/serve/index.js +24 -0
- package/dist/commands/serve/index.js.map +1 -0
- package/dist/commands/validate/index.d.ts.map +1 -1
- package/dist/commands/validate/index.js +7 -37
- package/dist/commands/validate/index.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +4 -2
- package/dist/index.js.map +1 -1
- package/dist/utils/errors.js +2 -2
- package/package.json +7 -6
- package/src/commands/cache/index.ts +5 -5
- package/src/commands/env/README.md +1 -1
- package/src/commands/index.ts +3 -0
- package/src/commands/inspect/index.ts +3 -2
- package/src/commands/install/README.md +2 -2
- package/src/commands/install/index.ts +98 -4
- package/src/commands/learn/index.ts +67 -0
- package/src/commands/list/index.ts +12 -3
- package/src/commands/run/README.md +1 -1
- package/src/commands/run/index.ts +195 -48
- package/src/commands/serve/index.ts +26 -0
- package/src/commands/validate/index.ts +7 -42
- package/src/index.ts +5 -1
- package/src/utils/errors.ts +2 -2
- package/tests/commands/cache.test.ts +2 -2
- package/tests/commands/install-integration.test.ts +11 -12
- package/tests/commands/publish.test.ts +12 -2
- package/tests/commands/run.test.ts +3 -1
- package/tests/commands/serve.test.ts +82 -0
- package/tests/commands/sign.test.ts +1 -1
- package/tests/e2e.test.ts +56 -34
- package/tests/fixtures/calculator/skill.yaml +38 -0
- package/tests/fixtures/echo-tool/SKILL.md +3 -10
- package/tests/fixtures/env-tool/{enact.yaml → skill.yaml} +0 -6
- package/tests/fixtures/greeter/skill.yaml +22 -0
- package/tests/utils/ignore.test.ts +3 -1
- package/tsconfig.json +2 -1
- package/tsconfig.tsbuildinfo +1 -1
- package/tests/fixtures/calculator/enact.yaml +0 -34
- package/tests/fixtures/greeter/enact.yaml +0 -18
- /package/tests/fixtures/invalid-tool/{enact.yaml → skill.yaml} +0 -0
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
enact: "2.0.0"
|
|
2
|
-
name: test/calculator
|
|
3
|
-
version: "2.0.0"
|
|
4
|
-
description: A calculator tool that performs basic math operations
|
|
5
|
-
from: python:3.12-alpine
|
|
6
|
-
command: "python3 -c \"import json; print(json.dumps({'result': eval('${a} + ${b}' if '${operation}'=='add' else '${a} - ${b}' if '${operation}'=='subtract' else '${a} * ${b}' if '${operation}'=='multiply' else '${a} / ${b}'), 'operation': '${operation}'}))\""
|
|
7
|
-
inputSchema:
|
|
8
|
-
type: object
|
|
9
|
-
properties:
|
|
10
|
-
operation:
|
|
11
|
-
type: string
|
|
12
|
-
enum:
|
|
13
|
-
- add
|
|
14
|
-
- subtract
|
|
15
|
-
- multiply
|
|
16
|
-
- divide
|
|
17
|
-
description: The math operation to perform
|
|
18
|
-
a:
|
|
19
|
-
type: number
|
|
20
|
-
description: First operand
|
|
21
|
-
b:
|
|
22
|
-
type: number
|
|
23
|
-
description: Second operand
|
|
24
|
-
required:
|
|
25
|
-
- operation
|
|
26
|
-
- a
|
|
27
|
-
- b
|
|
28
|
-
outputSchema:
|
|
29
|
-
type: object
|
|
30
|
-
properties:
|
|
31
|
-
result:
|
|
32
|
-
type: number
|
|
33
|
-
operation:
|
|
34
|
-
type: string
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
enact: "2.0.0"
|
|
2
|
-
name: test/greeter
|
|
3
|
-
version: "1.0.0"
|
|
4
|
-
description: A simple greeting tool for testing
|
|
5
|
-
from: alpine:latest
|
|
6
|
-
command: echo '{"message":"Hello, ${name}!"}'
|
|
7
|
-
inputSchema:
|
|
8
|
-
type: object
|
|
9
|
-
properties:
|
|
10
|
-
name:
|
|
11
|
-
type: string
|
|
12
|
-
description: Name to greet
|
|
13
|
-
default: World
|
|
14
|
-
outputSchema:
|
|
15
|
-
type: object
|
|
16
|
-
properties:
|
|
17
|
-
message:
|
|
18
|
-
type: string
|
|
File without changes
|