@oya-ai/cli 1.0.297 → 1.0.298

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/dist/index.js +11 -0
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -4064,6 +4064,8 @@ var gateways = (http) => ({
4064
4064
  var skills = (http) => ({
4065
4065
  /** List available reusable instructions. */
4066
4066
  listSkills: async () => (await http().request("GET", "/api/assistants")).skills,
4067
+ /** Permanently remove a project skill and detach it from every assistant. */
4068
+ deleteSkill: (id) => http().request("DELETE", "/api/assistants/skills/" + segment(id, "skill ID")),
4067
4069
  /** Save instructions once for several assistants. */
4068
4070
  createSkill: (body) => http().request("POST", "/api/assistants/skills", body)
4069
4071
  });
@@ -4079,6 +4081,14 @@ var definitions = (http) => ({
4079
4081
  /** Remove this assistant and its messages. */
4080
4082
  remove: (id) => http().request("DELETE", path(id))
4081
4083
  });
4084
+ var programs = (http) => ({
4085
+ /** Load a saved program and its revision. */
4086
+ getProgram: (id) => http().request("GET", path(id) + "/program"),
4087
+ /** Replace a program if its revision is still current. */
4088
+ saveProgram: (id, body) => http().request("PUT", path(id) + "/program", body),
4089
+ /** Preview a draft without delivering a message. */
4090
+ testProgram: (id, body) => http().request("POST", path(id) + "/program/test", body)
4091
+ });
4082
4092
  var conversations = (http) => ({
4083
4093
  /** Submit a contact message for asynchronous processing. */
4084
4094
  send: (id, body) => http().request("POST", path(id) + "/messages", body),
@@ -4090,6 +4100,7 @@ var conversations = (http) => ({
4090
4100
  var assistantApi = (http) => ({
4091
4101
  ...definitions(http),
4092
4102
  ...skills(http),
4103
+ ...programs(http),
4093
4104
  ...conversations(http),
4094
4105
  ...gateways(http)
4095
4106
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oya-ai/cli",
3
- "version": "1.0.297",
3
+ "version": "1.0.298",
4
4
  "description": "Command line for Oya, the HIPAA-compliant agentic browser: start browsers and run playbooks from your terminal.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://oyabrowser.com",
@@ -50,7 +50,7 @@
50
50
  "access": "public"
51
51
  },
52
52
  "devDependencies": {
53
- "@oya-ai/browser": "1.0.297",
53
+ "@oya-ai/browser": "1.0.298",
54
54
  "@types/node": "^20.19.43",
55
55
  "tsup": "^9.0.0",
56
56
  "typescript": "^6.0.3"