@mcp-com-ai/hapi 1.0.2-beta.260914 → 1.1.0

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/dist/bin.js CHANGED
@@ -176,7 +176,7 @@ Examples:
176
176
  `),r(`Is the HAPI CLI helpful?
177
177
  Don't forget to star the project on GitHub: https://github.com/mcp-com-ai/hapimcp
178
178
 
179
- `),0}}}import{HAPI_CLI_API_VERSION as oo}from"@mcp-com-ai/plugin-sdk";var bn="1.0.2-beta.260914";var Je=bn;var wn={name:"version",aliases:["--version","-v"],description:"Show the installed CLI version",run:async(e,t)=>(t.stdout.write(`hapi ${Je}
179
+ `),0}}}import{HAPI_CLI_API_VERSION as oo}from"@mcp-com-ai/plugin-sdk";var bn="1.1.0";var Je=bn;var wn={name:"version",aliases:["--version","-v"],description:"Show the installed CLI version",run:async(e,t)=>(t.stdout.write(`hapi ${Je}
180
180
  `),t.stdout.write(`plugin-contract v${oo}
181
181
  `),0)};import{hasFileSystemAccess as ao,loadGlobalConfig as Sn,saveGlobalConfig as vn}from"@mcp-com-ai/shared-utils";function kn(e){return{name:"plugins",description:"List loaded plugins and discover installable ones",subcommands:[{name:"list",description:"List the plugins currently loaded by the CLI",async run(t,s){let n=e();if(n.length===0)return s.stdout.write("No plugins loaded. Run `hapi plugins available` to see what you can install.\n"),0;s.stdout.write(`
182
182
  Loaded plugins:
package/dist/index.js CHANGED
@@ -175,7 +175,7 @@ Examples:
175
175
  `),r(`Is the HAPI CLI helpful?
176
176
  Don't forget to star the project on GitHub: https://github.com/mcp-com-ai/hapimcp
177
177
 
178
- `),0}}}import{HAPI_CLI_API_VERSION as io}from"@mcp-com-ai/plugin-sdk";var bn="1.0.2-beta.260914";var Je=bn;var wn={name:"version",aliases:["--version","-v"],description:"Show the installed CLI version",run:async(e,t)=>(t.stdout.write(`hapi ${Je}
178
+ `),0}}}import{HAPI_CLI_API_VERSION as io}from"@mcp-com-ai/plugin-sdk";var bn="1.1.0";var Je=bn;var wn={name:"version",aliases:["--version","-v"],description:"Show the installed CLI version",run:async(e,t)=>(t.stdout.write(`hapi ${Je}
179
179
  `),t.stdout.write(`plugin-contract v${io}
180
180
  `),0)};import{hasFileSystemAccess as ro,loadGlobalConfig as Sn,saveGlobalConfig as vn}from"@mcp-com-ai/shared-utils";function kn(e){return{name:"plugins",description:"List loaded plugins and discover installable ones",subcommands:[{name:"list",description:"List the plugins currently loaded by the CLI",async run(t,s){let n=e();if(n.length===0)return s.stdout.write("No plugins loaded. Run `hapi plugins available` to see what you can install.\n"),0;s.stdout.write(`
181
181
  Loaded plugins:
@@ -130,11 +130,11 @@ object shape, and its own `description` states how many entries the array
130
130
  actually needs — read that placeholder's text before replacing it, since the
131
131
  count is stricter than it looks:
132
132
 
133
- - **`test_cases`** — needs **at least 5** entries (the published
134
- `chatgpt-app-submission.v1.json` schema's `minItems: 5`). Prompts a real
135
- user might give that *should* result in one or more of this app's tools
136
- being called, with a plausible expected result. Prefer prompts that
137
- exercise different tools, not five variations of the same one.
133
+ - **`test_cases`** — needs **at least 3 and up to 5** entries (the published
134
+ `chatgpt-app-submission.v1.json` schema's `minItems: 3` and `maxItems: 5` ).
135
+ Prompts a real user might give that *should* result in one or more of this
136
+ app's tools being called, with a plausible expected result. Prefer prompts
137
+ that exercise different tools, not five variations of the same one.
138
138
  - **`negative_test_cases`** — needs **exactly 3** entries. The published
139
139
  schema only declares `minItems: 3` (no maximum), but OpenAI's actual
140
140
  submission form has been observed rejecting a count other than exactly 3
package/package.json CHANGED
@@ -1,8 +1,19 @@
1
1
  {
2
2
  "name": "@mcp-com-ai/hapi",
3
- "version": "1.0.2-beta.260914",
3
+ "version": "1.1.0",
4
4
  "description": "HAPI CLI — the core executable. Thin shell that discovers first-party and third-party plugins, routes commands, and provides a consistent UX across the HAPI stack.",
5
5
  "license": "LRL-CL",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "https://github.com/mcp-com-ai/hapimcp"
9
+ },
10
+ "homepage": "https://hapi.mcp.com.ai",
11
+ "bugs": {
12
+ "url": "https://github.com/mcp-com-ai/hapimcp"
13
+ },
14
+ "sponsor": {
15
+ "url": "https://go.rebelion.la/sponsors"
16
+ },
6
17
  "type": "module",
7
18
  "bin": {
8
19
  "hapi": "./dist/bin.js"
@@ -33,16 +44,16 @@
33
44
  "build": "bun ../../scripts/build-package.ts . && bun ../../scripts/copy-cli-skills.ts"
34
45
  },
35
46
  "dependencies": {
36
- "@mcp-com-ai/plugin-sdk": "^1.0.2-beta.260914",
37
- "@mcp-com-ai/shared-utils": "^1.0.2-beta.260914",
47
+ "@mcp-com-ai/plugin-sdk": "^1.1.0",
48
+ "@mcp-com-ai/shared-utils": "^1.1.0",
38
49
  "yaml": "^2.8.2"
39
50
  },
40
51
  "//optionalDependencies": "Workspace plugins are listed as optional so monorepo dev/test resolves them via Bun workspaces. End users installing @hapi/cli globally won't pay for these — they install only the plugins they need.",
41
52
  "optionalDependencies": {
42
- "@mcp-com-ai/plugin-openapi": "^1.0.2-beta.260914",
43
- "@mcp-com-ai/plugin-arazzo": "^1.0.2-beta.260914",
44
- "@mcp-com-ai/plugin-cloudflare": "^1.0.2-beta.260914",
45
- "@mcp-com-ai/plugin-otel": "^1.0.2-beta.260914"
53
+ "@mcp-com-ai/plugin-openapi": "^1.1.0",
54
+ "@mcp-com-ai/plugin-arazzo": "^1.1.0",
55
+ "@mcp-com-ai/plugin-cloudflare": "^1.1.0",
56
+ "@mcp-com-ai/plugin-otel": "^1.1.0"
46
57
  },
47
58
  "peerDependencies": {
48
59
  "typescript": "^5"