@cubis/foundry 0.3.56 → 0.3.59
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/CHANGELOG.md +25 -0
- package/dist/cli/core.js +32 -3
- package/dist/cli/core.js.map +1 -1
- package/dist/cli/init/banner.js +12 -12
- package/dist/cli/init/banner.js.map +1 -1
- package/package.json +1 -1
- package/src/cli/core.ts +32 -3
- package/src/cli/init/banner.ts +12 -12
- package/workflows/skills/postman/SKILL.md +14 -9
- package/workflows/skills/postman/references/full-mode-setup.md +6 -2
- package/workflows/skills/postman/references/troubleshooting.md +9 -4
- package/workflows/workflows/agent-environment-setup/manifest.json +10 -5
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/commands/postman.toml +11 -0
- package/workflows/workflows/agent-environment-setup/platforms/antigravity/workflows/postman.md +40 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/rules/AGENTS.md +1 -0
- package/workflows/workflows/agent-environment-setup/platforms/codex/workflows/postman.md +40 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/prompts/workflow-postman.prompt.md +11 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/code-documenter/references/images/create-key.png +0 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/code-documenter/references/images/dashboard-annotated.png +0 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/documentation-templates/docs/api.md +16 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/documentation-templates/docs/architecture.md +23 -0
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/postman/SKILL.md +14 -9
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/postman/references/full-mode-setup.md +6 -2
- package/workflows/workflows/agent-environment-setup/platforms/copilot/skills/postman/references/troubleshooting.md +9 -4
- package/workflows/workflows/agent-environment-setup/platforms/copilot/workflows/postman.md +40 -0
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/code-documenter/references/images/create-key.png +0 -0
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/code-documenter/references/images/dashboard-annotated.png +0 -0
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/documentation-templates/docs/api.md +16 -0
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/documentation-templates/docs/architecture.md +23 -0
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/postman/SKILL.md +14 -9
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/postman/references/full-mode-setup.md +6 -2
- package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/postman/references/troubleshooting.md +9 -4
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/code-documenter/references/images/create-key.png +0 -0
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/code-documenter/references/images/dashboard-annotated.png +0 -0
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/documentation-templates/docs/api.md +16 -0
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/documentation-templates/docs/architecture.md +23 -0
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/postman/SKILL.md +14 -9
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/postman/references/full-mode-setup.md +6 -2
- package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/postman/references/troubleshooting.md +9 -4
- package/workflows/workflows/agent-environment-setup/shared/workflows/postman.md +40 -0
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Architecture Overview Template
|
|
2
|
+
|
|
3
|
+
Use this file to describe system boundaries and data flow.
|
|
4
|
+
|
|
5
|
+
## Components
|
|
6
|
+
|
|
7
|
+
- API layer
|
|
8
|
+
- Domain/service layer
|
|
9
|
+
- Persistence layer
|
|
10
|
+
- External integrations
|
|
11
|
+
|
|
12
|
+
## Runtime Flow
|
|
13
|
+
|
|
14
|
+
1. Request enters API layer
|
|
15
|
+
2. Domain logic validates and processes
|
|
16
|
+
3. Persistence reads/writes state
|
|
17
|
+
4. Response returns with observability metadata
|
|
18
|
+
|
|
19
|
+
## Non-Functional Notes
|
|
20
|
+
|
|
21
|
+
- Reliability/SLOs
|
|
22
|
+
- Security model
|
|
23
|
+
- Scaling strategy
|
package/workflows/workflows/agent-environment-setup/platforms/cursor/skills/postman/SKILL.md
CHANGED
|
@@ -18,19 +18,20 @@ References:
|
|
|
18
18
|
- Accept both dynamic naming styles from clients:
|
|
19
19
|
- dotted: `postman.<tool>`
|
|
20
20
|
- alias: `postman_<tool>`
|
|
21
|
+
- Never default to raw Postman REST JSON payloads, Newman, or Postman CLI when MCP tools are available.
|
|
21
22
|
- Do not use Newman/Postman CLI fallback unless the user explicitly asks for fallback.
|
|
22
23
|
- If required Postman MCP tools are unavailable, report discovery/remediation steps first.
|
|
23
24
|
|
|
24
25
|
## Setup Baseline
|
|
25
26
|
|
|
26
|
-
1. Install with Postman enabled and explicit full mode:
|
|
27
|
-
- `cbx workflows install --platform <codex|antigravity|copilot> --scope global --bundle agent-environment-setup --postman --postman-mode full --mcp-runtime docker --mcp-fallback local --mcp-tool-sync --yes`
|
|
27
|
+
1. Install with Postman enabled and explicit full mode (use the same scope as your current install):
|
|
28
|
+
- `cbx workflows install --platform <codex|antigravity|copilot> --scope <project|global> --bundle agent-environment-setup --postman --postman-mode full --mcp-runtime docker --mcp-fallback local --mcp-tool-sync --yes`
|
|
28
29
|
2. Persist env aliases once (no per-session re-export):
|
|
29
30
|
- `cbx workflows config keys persist-env --service postman --scope global`
|
|
30
31
|
3. Verify mode/config:
|
|
31
|
-
- `cbx workflows config --scope global --show`
|
|
32
|
-
- `cbx mcp tools sync --service postman --scope global
|
|
33
|
-
- `cbx mcp tools list --service postman --scope global
|
|
32
|
+
- `cbx workflows config --scope <project|global> --show`
|
|
33
|
+
- `cbx mcp tools sync --service postman --scope <project|global>`
|
|
34
|
+
- `cbx mcp tools list --service postman --scope <project|global>`
|
|
34
35
|
|
|
35
36
|
## Preflight
|
|
36
37
|
|
|
@@ -41,6 +42,10 @@ References:
|
|
|
41
42
|
3. Discover upstream tools:
|
|
42
43
|
- Confirm required tools exist before execution (for example workspaces/collections/runs).
|
|
43
44
|
|
|
45
|
+
Execution rule:
|
|
46
|
+
- For Postman requests, call MCP tools directly (`postman.*` or `postman_*`) instead of drafting manual JSON or curl payloads.
|
|
47
|
+
- If the user asks for API payload examples, provide them only as supplemental documentation after MCP execution guidance.
|
|
48
|
+
|
|
44
49
|
## Default Workspace Policy
|
|
45
50
|
|
|
46
51
|
Resolve workspace in this order:
|
|
@@ -52,7 +57,7 @@ Resolve workspace in this order:
|
|
|
52
57
|
4. If multiple workspaces and no default:
|
|
53
58
|
- Ask user to choose one.
|
|
54
59
|
- Recommend persisting it with:
|
|
55
|
-
- `cbx workflows config --scope global --workspace-id <workspace-id>`
|
|
60
|
+
- `cbx workflows config --scope <project|global> --workspace-id <workspace-id>`
|
|
56
61
|
|
|
57
62
|
When a Postman tool requires a workspace argument, always pass the resolved workspace ID explicitly.
|
|
58
63
|
|
|
@@ -75,10 +80,10 @@ If dynamic Postman tools are missing:
|
|
|
75
80
|
|
|
76
81
|
1. Verify env alias expected by config is set.
|
|
77
82
|
2. Resync catalog:
|
|
78
|
-
- `cbx mcp tools sync --service postman --scope global
|
|
79
|
-
- `cbx mcp tools list --service postman --scope global
|
|
83
|
+
- `cbx mcp tools sync --service postman --scope <project|global>`
|
|
84
|
+
- `cbx mcp tools list --service postman --scope <project|global>`
|
|
80
85
|
3. Recreate runtime if needed:
|
|
81
|
-
- `cbx mcp runtime up --scope global --name cbx-mcp --replace --port 3310 --skills-root ~/.agents/skills`
|
|
86
|
+
- `cbx mcp runtime up --scope <project|global> --name cbx-mcp --replace --port 3310 --skills-root ~/.agents/skills`
|
|
82
87
|
|
|
83
88
|
## Security Notes
|
|
84
89
|
|
|
@@ -7,7 +7,7 @@ Use CLI mode flags instead of manual `jq` edits.
|
|
|
7
7
|
```bash
|
|
8
8
|
cbx workflows install \
|
|
9
9
|
--platform codex \
|
|
10
|
-
--scope global \
|
|
10
|
+
--scope <project|global> \
|
|
11
11
|
--bundle agent-environment-setup \
|
|
12
12
|
--postman \
|
|
13
13
|
--postman-mode full \
|
|
@@ -21,7 +21,7 @@ cbx workflows install \
|
|
|
21
21
|
## Change Mode Later
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
cbx workflows config --scope global --platform codex --postman-mode full
|
|
24
|
+
cbx workflows config --scope <project|global> --platform codex --postman-mode full
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
This updates:
|
|
@@ -34,3 +34,7 @@ This updates:
|
|
|
34
34
|
```bash
|
|
35
35
|
cbx workflows config keys persist-env --service postman --scope global
|
|
36
36
|
```
|
|
37
|
+
|
|
38
|
+
Note:
|
|
39
|
+
- `persist-env` writes CBX-managed aliases to `~/.cbx/credentials.env`.
|
|
40
|
+
- Keep MCP target scope (`project` or `global`) aligned with the scope where you installed Postman integration.
|
|
@@ -3,19 +3,24 @@
|
|
|
3
3
|
## Only `postman_get_*` / `postman_set_mode` tools appear
|
|
4
4
|
|
|
5
5
|
1. Confirm active env alias exists in shell (or persisted env file).
|
|
6
|
-
2. Sync catalog:
|
|
6
|
+
2. Sync catalog in the same install scope:
|
|
7
7
|
|
|
8
8
|
```bash
|
|
9
|
-
cbx mcp tools sync --service postman --scope global
|
|
10
|
-
cbx mcp tools list --service postman --scope global
|
|
9
|
+
cbx mcp tools sync --service postman --scope <project|global>
|
|
10
|
+
cbx mcp tools list --service postman --scope <project|global>
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
3. Restart runtime if using Docker:
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
cbx mcp runtime up --scope global --name cbx-mcp --replace --port 3310
|
|
16
|
+
cbx mcp runtime up --scope <project|global> --name cbx-mcp --replace --port 3310
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
4. If dynamic Postman tools are still missing, do not fall back to manual JSON/CLI by default:
|
|
20
|
+
- report MCP tool discovery failure
|
|
21
|
+
- ask for remediation approval
|
|
22
|
+
- only use fallback if the user explicitly requests it
|
|
23
|
+
|
|
19
24
|
## Client does not show dotted names
|
|
20
25
|
|
|
21
26
|
Use alias tools (`postman_<tool>`) when dotted names are filtered by client UI.
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
# API Reference Template
|
|
2
|
+
|
|
3
|
+
Use this file as the canonical entry point for API endpoint documentation.
|
|
4
|
+
|
|
5
|
+
## Endpoint Index
|
|
6
|
+
|
|
7
|
+
- `GET /resource`
|
|
8
|
+
- `POST /resource`
|
|
9
|
+
- `PATCH /resource/{id}`
|
|
10
|
+
- `DELETE /resource/{id}`
|
|
11
|
+
|
|
12
|
+
## Conventions
|
|
13
|
+
|
|
14
|
+
- Include auth requirements per endpoint.
|
|
15
|
+
- Include request/response examples.
|
|
16
|
+
- Include error codes and retry guidance.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
# Architecture Overview Template
|
|
2
|
+
|
|
3
|
+
Use this file to describe system boundaries and data flow.
|
|
4
|
+
|
|
5
|
+
## Components
|
|
6
|
+
|
|
7
|
+
- API layer
|
|
8
|
+
- Domain/service layer
|
|
9
|
+
- Persistence layer
|
|
10
|
+
- External integrations
|
|
11
|
+
|
|
12
|
+
## Runtime Flow
|
|
13
|
+
|
|
14
|
+
1. Request enters API layer
|
|
15
|
+
2. Domain logic validates and processes
|
|
16
|
+
3. Persistence reads/writes state
|
|
17
|
+
4. Response returns with observability metadata
|
|
18
|
+
|
|
19
|
+
## Non-Functional Notes
|
|
20
|
+
|
|
21
|
+
- Reliability/SLOs
|
|
22
|
+
- Security model
|
|
23
|
+
- Scaling strategy
|
package/workflows/workflows/agent-environment-setup/platforms/windsurf/skills/postman/SKILL.md
CHANGED
|
@@ -18,19 +18,20 @@ References:
|
|
|
18
18
|
- Accept both dynamic naming styles from clients:
|
|
19
19
|
- dotted: `postman.<tool>`
|
|
20
20
|
- alias: `postman_<tool>`
|
|
21
|
+
- Never default to raw Postman REST JSON payloads, Newman, or Postman CLI when MCP tools are available.
|
|
21
22
|
- Do not use Newman/Postman CLI fallback unless the user explicitly asks for fallback.
|
|
22
23
|
- If required Postman MCP tools are unavailable, report discovery/remediation steps first.
|
|
23
24
|
|
|
24
25
|
## Setup Baseline
|
|
25
26
|
|
|
26
|
-
1. Install with Postman enabled and explicit full mode:
|
|
27
|
-
- `cbx workflows install --platform <codex|antigravity|copilot> --scope global --bundle agent-environment-setup --postman --postman-mode full --mcp-runtime docker --mcp-fallback local --mcp-tool-sync --yes`
|
|
27
|
+
1. Install with Postman enabled and explicit full mode (use the same scope as your current install):
|
|
28
|
+
- `cbx workflows install --platform <codex|antigravity|copilot> --scope <project|global> --bundle agent-environment-setup --postman --postman-mode full --mcp-runtime docker --mcp-fallback local --mcp-tool-sync --yes`
|
|
28
29
|
2. Persist env aliases once (no per-session re-export):
|
|
29
30
|
- `cbx workflows config keys persist-env --service postman --scope global`
|
|
30
31
|
3. Verify mode/config:
|
|
31
|
-
- `cbx workflows config --scope global --show`
|
|
32
|
-
- `cbx mcp tools sync --service postman --scope global
|
|
33
|
-
- `cbx mcp tools list --service postman --scope global
|
|
32
|
+
- `cbx workflows config --scope <project|global> --show`
|
|
33
|
+
- `cbx mcp tools sync --service postman --scope <project|global>`
|
|
34
|
+
- `cbx mcp tools list --service postman --scope <project|global>`
|
|
34
35
|
|
|
35
36
|
## Preflight
|
|
36
37
|
|
|
@@ -41,6 +42,10 @@ References:
|
|
|
41
42
|
3. Discover upstream tools:
|
|
42
43
|
- Confirm required tools exist before execution (for example workspaces/collections/runs).
|
|
43
44
|
|
|
45
|
+
Execution rule:
|
|
46
|
+
- For Postman requests, call MCP tools directly (`postman.*` or `postman_*`) instead of drafting manual JSON or curl payloads.
|
|
47
|
+
- If the user asks for API payload examples, provide them only as supplemental documentation after MCP execution guidance.
|
|
48
|
+
|
|
44
49
|
## Default Workspace Policy
|
|
45
50
|
|
|
46
51
|
Resolve workspace in this order:
|
|
@@ -52,7 +57,7 @@ Resolve workspace in this order:
|
|
|
52
57
|
4. If multiple workspaces and no default:
|
|
53
58
|
- Ask user to choose one.
|
|
54
59
|
- Recommend persisting it with:
|
|
55
|
-
- `cbx workflows config --scope global --workspace-id <workspace-id>`
|
|
60
|
+
- `cbx workflows config --scope <project|global> --workspace-id <workspace-id>`
|
|
56
61
|
|
|
57
62
|
When a Postman tool requires a workspace argument, always pass the resolved workspace ID explicitly.
|
|
58
63
|
|
|
@@ -75,10 +80,10 @@ If dynamic Postman tools are missing:
|
|
|
75
80
|
|
|
76
81
|
1. Verify env alias expected by config is set.
|
|
77
82
|
2. Resync catalog:
|
|
78
|
-
- `cbx mcp tools sync --service postman --scope global
|
|
79
|
-
- `cbx mcp tools list --service postman --scope global
|
|
83
|
+
- `cbx mcp tools sync --service postman --scope <project|global>`
|
|
84
|
+
- `cbx mcp tools list --service postman --scope <project|global>`
|
|
80
85
|
3. Recreate runtime if needed:
|
|
81
|
-
- `cbx mcp runtime up --scope global --name cbx-mcp --replace --port 3310 --skills-root ~/.agents/skills`
|
|
86
|
+
- `cbx mcp runtime up --scope <project|global> --name cbx-mcp --replace --port 3310 --skills-root ~/.agents/skills`
|
|
82
87
|
|
|
83
88
|
## Security Notes
|
|
84
89
|
|
|
@@ -7,7 +7,7 @@ Use CLI mode flags instead of manual `jq` edits.
|
|
|
7
7
|
```bash
|
|
8
8
|
cbx workflows install \
|
|
9
9
|
--platform codex \
|
|
10
|
-
--scope global \
|
|
10
|
+
--scope <project|global> \
|
|
11
11
|
--bundle agent-environment-setup \
|
|
12
12
|
--postman \
|
|
13
13
|
--postman-mode full \
|
|
@@ -21,7 +21,7 @@ cbx workflows install \
|
|
|
21
21
|
## Change Mode Later
|
|
22
22
|
|
|
23
23
|
```bash
|
|
24
|
-
cbx workflows config --scope global --platform codex --postman-mode full
|
|
24
|
+
cbx workflows config --scope <project|global> --platform codex --postman-mode full
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
This updates:
|
|
@@ -34,3 +34,7 @@ This updates:
|
|
|
34
34
|
```bash
|
|
35
35
|
cbx workflows config keys persist-env --service postman --scope global
|
|
36
36
|
```
|
|
37
|
+
|
|
38
|
+
Note:
|
|
39
|
+
- `persist-env` writes CBX-managed aliases to `~/.cbx/credentials.env`.
|
|
40
|
+
- Keep MCP target scope (`project` or `global`) aligned with the scope where you installed Postman integration.
|
|
@@ -3,19 +3,24 @@
|
|
|
3
3
|
## Only `postman_get_*` / `postman_set_mode` tools appear
|
|
4
4
|
|
|
5
5
|
1. Confirm active env alias exists in shell (or persisted env file).
|
|
6
|
-
2. Sync catalog:
|
|
6
|
+
2. Sync catalog in the same install scope:
|
|
7
7
|
|
|
8
8
|
```bash
|
|
9
|
-
cbx mcp tools sync --service postman --scope global
|
|
10
|
-
cbx mcp tools list --service postman --scope global
|
|
9
|
+
cbx mcp tools sync --service postman --scope <project|global>
|
|
10
|
+
cbx mcp tools list --service postman --scope <project|global>
|
|
11
11
|
```
|
|
12
12
|
|
|
13
13
|
3. Restart runtime if using Docker:
|
|
14
14
|
|
|
15
15
|
```bash
|
|
16
|
-
cbx mcp runtime up --scope global --name cbx-mcp --replace --port 3310
|
|
16
|
+
cbx mcp runtime up --scope <project|global> --name cbx-mcp --replace --port 3310
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
+
4. If dynamic Postman tools are still missing, do not fall back to manual JSON/CLI by default:
|
|
20
|
+
- report MCP tool discovery failure
|
|
21
|
+
- ask for remediation approval
|
|
22
|
+
- only use fallback if the user explicitly requests it
|
|
23
|
+
|
|
19
24
|
## Client does not show dotted names
|
|
20
25
|
|
|
21
26
|
Use alias tools (`postman_<tool>`) when dotted names are filtered by client UI.
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
---
|
|
2
|
+
command: "/postman"
|
|
3
|
+
description: "Execute Postman MCP operations for workspaces, collections, environments, and runs."
|
|
4
|
+
triggers: ["postman", "collection", "workspace", "environment", "runcollection", "monitor", "mock", "api test"]
|
|
5
|
+
---
|
|
6
|
+
# Postman Workflow
|
|
7
|
+
|
|
8
|
+
## When to use
|
|
9
|
+
Use this when tasks are primarily about Postman workspaces, collections, environments, monitors, mocks, or collection runs.
|
|
10
|
+
|
|
11
|
+
## Routing
|
|
12
|
+
- Postman operations and execution: `@backend-specialist`
|
|
13
|
+
- Security/compliance checks on test data: `@security-auditor`
|
|
14
|
+
- Validation quality and assertions: `@test-engineer`
|
|
15
|
+
|
|
16
|
+
## Context notes
|
|
17
|
+
- This workflow file, active platform rules, and selected agents/skills guide execution.
|
|
18
|
+
- Resolve and pass workspace IDs explicitly when tools require them.
|
|
19
|
+
- Prefer MCP tools (`postman.*` or `postman_*`) over manual JSON/CLI fallback unless fallback is explicitly requested by the user.
|
|
20
|
+
|
|
21
|
+
## Skill Routing
|
|
22
|
+
- Primary skills: `postman`
|
|
23
|
+
- Supporting skills (optional): `api-designer`, `test-master`
|
|
24
|
+
|
|
25
|
+
## Workflow steps
|
|
26
|
+
1. Load Postman skill and check integration status (`postman_get_status`).
|
|
27
|
+
2. Resolve workspace ID (user-provided, configured default, or explicit selection).
|
|
28
|
+
3. Execute required MCP operations (list/create/update/run) with explicit IDs.
|
|
29
|
+
4. Summarize outcomes, failures, and next actions with exact object identifiers.
|
|
30
|
+
|
|
31
|
+
## Verification
|
|
32
|
+
- Confirm requested Postman action completed successfully.
|
|
33
|
+
- Validate response status and key result fields (IDs, counts, failures).
|
|
34
|
+
- Note any skipped steps and required follow-up.
|
|
35
|
+
|
|
36
|
+
## Output Contract
|
|
37
|
+
- Workspace/context used
|
|
38
|
+
- Actions executed and resulting IDs
|
|
39
|
+
- Pass/fail summary for runs
|
|
40
|
+
- Follow-up or remediation steps
|