@amigo-ai/platform-sdk 0.2.1 → 0.3.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.
Files changed (2) hide show
  1. package/README.md +12 -6
  2. package/package.json +9 -4
package/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @amigo-ai/platform-sdk
2
2
 
3
+ [![npm version](https://img.shields.io/npm/v/@amigo-ai/platform-sdk.svg)](https://www.npmjs.com/package/@amigo-ai/platform-sdk)
4
+ [![CI](https://github.com/amigo-ai/amigo-platform-typescript-sdk/actions/workflows/test.yml/badge.svg)](https://github.com/amigo-ai/amigo-platform-typescript-sdk/actions/workflows/test.yml)
5
+ [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
6
+
3
7
  Official TypeScript SDK for the [Amigo Platform API](https://api.platform.amigo.ai/v1/docs).
4
8
 
5
9
  ## Installation
@@ -93,13 +97,15 @@ const latest = await client.agents.getVersion(agent.id, 'latest')
93
97
  const { items: agents } = await client.agents.list({ search: 'intake' })
94
98
  ```
95
99
 
96
- ### Skills
100
+ ### Actions
101
+
102
+ Actions are reusable agent capabilities (formerly "skills").
97
103
 
98
104
  ```typescript
99
- const skill = await client.skills.create({
105
+ const action = await client.actions.create({
100
106
  slug: 'schedule-appointment',
101
107
  name: 'Schedule Appointment',
102
- description: 'Books appointments in the EHR system',
108
+ description: 'Books appointments in the scheduling system',
103
109
  input_schema: {
104
110
  type: 'object',
105
111
  properties: {
@@ -112,10 +118,10 @@ const skill = await client.skills.create({
112
118
  })
113
119
 
114
120
  // Test with a sample input
115
- const result = await client.skills.test(skill.id, {
116
- input: { patient_id: 'MRN-001', appointment_type: 'follow-up' },
121
+ const result = await client.actions.test(action.id, {
122
+ input: { patient_id: 'ID-001', appointment_type: 'follow-up' },
117
123
  })
118
- console.log(result.success, result.output)
124
+ console.log(result.result, result.duration_ms)
119
125
  ```
120
126
 
121
127
  ### Services
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amigo-ai/platform-sdk",
3
- "version": "0.2.1",
3
+ "version": "0.3.0",
4
4
  "description": "Official TypeScript SDK for the Amigo Platform API",
5
5
  "keywords": [
6
6
  "amigo",
@@ -44,11 +44,12 @@
44
44
  "lint": "eslint 'src/**/*.{ts,tsx}' --max-warnings 0",
45
45
  "lint:fix": "eslint 'src/**/*.{ts,tsx}' --fix",
46
46
  "format": "prettier --write 'src/**/*.ts' 'tests/**/*.ts'",
47
- "test": "vitest run tests/resources",
47
+ "test": "vitest run tests/resources tests/core",
48
48
  "test:dist": "vitest run tests/dist",
49
49
  "test:integration": "vitest run tests/integration",
50
50
  "test:all": "vitest run",
51
- "test:watch": "vitest tests/resources",
51
+ "test:watch": "vitest tests/resources tests/core",
52
+ "test:coverage": "vitest run --coverage",
52
53
  "typecheck": "tsc --noEmit",
53
54
  "prepublishOnly": "npm run build && npm test"
54
55
  },
@@ -61,6 +62,7 @@
61
62
  "@types/node": "^22.0.0",
62
63
  "@typescript-eslint/eslint-plugin": "^8.0.0",
63
64
  "@typescript-eslint/parser": "^8.0.0",
65
+ "@vitest/coverage-v8": "^3.2.4",
64
66
  "esbuild": "^0.24.0",
65
67
  "eslint": "^9.0.0",
66
68
  "eslint-config-prettier": "^9.0.0",
@@ -71,7 +73,7 @@
71
73
  "prettier": "^3.0.0",
72
74
  "typescript": "^5.6.0",
73
75
  "typescript-eslint": "^8.0.0",
74
- "vitest": "^4.1.4"
76
+ "vitest": "^3.2.4"
75
77
  },
76
78
  "lint-staged": {
77
79
  "*.ts": [
@@ -81,5 +83,8 @@
81
83
  },
82
84
  "engines": {
83
85
  "node": ">=18.0.0"
86
+ },
87
+ "optionalDependencies": {
88
+ "@rollup/rollup-darwin-arm64": "^4.60.2"
84
89
  }
85
90
  }