@onereach/idw-init-account-resources 0.4.0 → 0.4.2

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 CHANGED
@@ -1,5 +1,18 @@
1
1
  # @onereach/idw-init-account-resources
2
2
 
3
+ ## 0.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 7d845fe: Improve lookup passages data of skills
8
+ Tune skills lookup query max distance
9
+
10
+ ## 0.4.1
11
+
12
+ ### Patch Changes
13
+
14
+ - c8d0e63: Update IDW SDK and temporarily treat all errors in IDW upserts as a reason to insert
15
+
3
16
  ## 0.4.0
4
17
 
5
18
  ### Minor Changes
@@ -16,16 +16,7 @@ exports.customizeIdwSkill = {
16
16
  },
17
17
  passages: [
18
18
  {
19
- content: "- Change IDW name\n - Different name for my IDW\n - Let's pick another name for IDW",
20
- },
21
- {
22
- content: "- Change IDW description\n - Different description for my IDW\n - Let's pick another description for IDW\n - Another description for worker",
23
- },
24
- {
25
- content: "- Change avatar\n - Pick another avatar\n - Change image\n - Another image for IDW",
26
- },
27
- {
28
- content: "- Change IDW name\n - Different name for my IDW\n - Let's pick another name for IDW ",
19
+ content: "This AI assistant skill is designed to manage and update information display widgets (IDWs).\n It allows the user to change the name of a widget, replace the image associated with it,\n and edit the widget's descriptive text.\n This skill is useful for keeping display elements fresh and relevant without manually coding changes.",
29
20
  },
30
21
  ],
31
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"customize_idw.js","sourceRoot":"","sources":["../../../src/assets/skills/customize_idw.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAoB;IAChD,GAAG,EAAE,kBAAkB;IACvB,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,kCAAkC;IAC/C,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,gBAAgB;IAExB,IAAI,EAAE;QACJ,MAAM,EAAE,kBAAkB;QAE1B,MAAM,EAAE,SAAS;QACjB,YAAY,EAAE,SAAS;KACxB;IAED,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,+FAEyB;SACnC;QACD;YACE,OAAO,EAAE,4JAGwB;SAClC;QACD;YACE,OAAO,EAAE,mGAGe;SACzB;QACD;YACE,OAAO,EAAE,iGAE2B;SACrC;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"customize_idw.js","sourceRoot":"","sources":["../../../src/assets/skills/customize_idw.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAoB;IAChD,GAAG,EAAE,kBAAkB;IACvB,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,kCAAkC;IAC/C,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,gBAAgB;IAExB,IAAI,EAAE;QACJ,MAAM,EAAE,kBAAkB;QAE1B,MAAM,EAAE,SAAS;QACjB,YAAY,EAAE,SAAS;KACxB;IAED,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,0VAG6F;SACvG;KACF;CACF,CAAC"}
@@ -16,10 +16,7 @@ exports.manageChannelsSkill = {
16
16
  },
17
17
  passages: [
18
18
  {
19
- content: "- Add new channel\n - Add SMS channel\n - Create channel for my IDW\n - Let's add a channel\n - Add implementation for the channel\n - Create implementation for a new channel",
20
- },
21
- {
22
- content: "- Delete channel\n - Remove SMS channel\n - Remove a channel\n - Remove channel from the IDW\n - Let's delete a channel",
19
+ content: "The Channel Management Assistant skill enables efficient handling and modification of various\n communication channels within an Integrated Digital Workplace (IDW).\n This skill allows users to seamlessly manage channel operations with the following features:\n Quickly remove an existing channel from your platform to ensure that your environment remains organized\n and free from clutter.\n Specifically target and eliminate SMS channels, helping streamline communications and maintain relevance\n in your messaging strategy.\n Detach and delete any channel from your Integrated Digital Workplace, which helps in managing the flow\n and access of communication within the network.\n Create and integrate a new channel into your system, facilitating expanded communication and\n collaboration capabilities.\n Incorporate an SMS channel to enhance outreach and engagement through text messaging, ensuring immediate\n and broad communication.\n Tailor and set up a specific channel designed for your Integrated Digital Workplace to meet unique\n organizational needs.",
23
20
  },
24
21
  ],
25
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"manage_channels.js","sourceRoot":"","sources":["../../../src/assets/skills/manage_channels.ts"],"names":[],"mappings":";;;AAEa,QAAA,mBAAmB,GAAoB;IAClD,GAAG,EAAE,oBAAoB;IACzB,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,iCAAiC;IAC9C,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,gBAAgB;IAExB,IAAI,EAAE;QACJ,MAAM,EAAE,oBAAoB;QAE5B,MAAM,EAAE,SAAS;QACjB,YAAY,EAAE,SAAS;KACxB;IAED,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,yMAKiC;SAC3C;QACD;YACE,OAAO,EAAE,6IAIgB;SAC1B;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"manage_channels.js","sourceRoot":"","sources":["../../../src/assets/skills/manage_channels.ts"],"names":[],"mappings":";;;AAEa,QAAA,mBAAmB,GAAoB;IAClD,GAAG,EAAE,oBAAoB;IACzB,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,IAAI,EAAE,iBAAiB;IACvB,WAAW,EAAE,iCAAiC;IAC9C,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,gBAAgB;IAExB,IAAI,EAAE;QACJ,MAAM,EAAE,oBAAoB;QAE5B,MAAM,EAAE,SAAS;QACjB,YAAY,EAAE,SAAS;KACxB;IAED,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,knCAca;SACvB;KACF;CACF,CAAC"}
@@ -16,13 +16,7 @@ exports.manageDomainsSkill = {
16
16
  },
17
17
  passages: [
18
18
  {
19
- content: "- Add new domain\n - Create domain\n - Append domain",
20
- },
21
- {
22
- content: "- Remove Domain\n - Delete Domain\n - Exclude Domain\n - Get rid of domain",
23
- },
24
- {
25
- content: "- Edit domain\n - Remove domain\n - Update the domain\n - Remove skills from domain",
19
+ content: "This AI assistant skill is designed to help users efficiently manage their digital domains. The skill\n focuses on four key actions to simplify domain administration:\n Allows users to modify existing domain settings, such as updating DNS records, changing contact information, or\n adjusting domain forwarding rules.\n Provides the functionality to safely delete a domain from the user's account, ensuring that all associated data\n is handled according to user preferences and regulatory requirements.\n Facilitates periodic updates to keep domain registration details current and ensures that any critical changes\n required for compliance or optimization are implemented smoothly.\n Supports users in registering and setting up new domains, including assistance with choosing the best domain\n names, configuration, and initial setup processes.",
26
20
  },
27
21
  ],
28
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"manage_domains.js","sourceRoot":"","sources":["../../../src/assets/skills/manage_domains.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAoB;IACjD,GAAG,EAAE,mBAAmB;IACxB,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,gCAAgC;IAC7C,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,gBAAgB;IAExB,IAAI,EAAE;QACJ,MAAM,EAAE,mBAAmB;QAE3B,MAAM,EAAE,SAAS;QACjB,YAAY,EAAE,SAAS;KACxB;IAED,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,gEAEO;SACjB;QACD;YACE,OAAO,EAAE,2FAGW;SACrB;QACD;YACE,OAAO,EAAE,oGAGmB;SAC7B;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"manage_domains.js","sourceRoot":"","sources":["../../../src/assets/skills/manage_domains.ts"],"names":[],"mappings":";;;AAEa,QAAA,kBAAkB,GAAoB;IACjD,GAAG,EAAE,mBAAmB;IACxB,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,IAAI,EAAE,gBAAgB;IACtB,WAAW,EAAE,gCAAgC;IAC7C,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,gBAAgB;IAExB,IAAI,EAAE;QACJ,MAAM,EAAE,mBAAmB;QAE3B,MAAM,EAAE,SAAS;QACjB,YAAY,EAAE,SAAS;KACxB;IAED,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,+3BAS0C;SACpD;KACF;CACF,CAAC"}
@@ -16,13 +16,7 @@ exports.manageSkillsSkill = {
16
16
  },
17
17
  passages: [
18
18
  {
19
- content: "- Create a new skill\n - Add a skill\n - Register a skill\n - Add a new skill\n - Include a new skill",
20
- },
21
- {
22
- content: "- Change skill name\n - Edit name of the skill\n - Update skill name\n - Rename skill\n - Modify skill name",
23
- },
24
- {
25
- content: "- Delete skill\n - Remove skill",
19
+ content: "This AI assistant skill specializes in managing and organizing other skills within the system.\n It allows users to efficiently add, remove, create new, or rename existing skills. This\n functionality ensures that the user can tailor the AI capabilities to best fit their needs and preferences\n by keeping the skill set up-to-date and organized. Whether you need to streamline your toolkit or update it\n with new functionalities, this skill adjustment feature makes it simple and effective.",
26
20
  },
27
21
  ],
28
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"manage_skills.js","sourceRoot":"","sources":["../../../src/assets/skills/manage_skills.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAoB;IAChD,GAAG,EAAE,kBAAkB;IACvB,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,+BAA+B;IAC5C,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,gBAAgB;IAExB,IAAI,EAAE;QACJ,MAAM,EAAE,kBAAkB;QAE1B,MAAM,EAAE,SAAS;QACjB,YAAY,EAAE,SAAS;KACxB;IAED,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,2HAIa;SACvB;QACD;YACE,OAAO,EAAE,iIAIW;SACrB;QACD;YACE,OAAO,EAAE,sCACM;SAChB;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"manage_skills.js","sourceRoot":"","sources":["../../../src/assets/skills/manage_skills.ts"],"names":[],"mappings":";;;AAEa,QAAA,iBAAiB,GAAoB;IAChD,GAAG,EAAE,kBAAkB;IACvB,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,IAAI,EAAE,eAAe;IACrB,WAAW,EAAE,+BAA+B;IAC5C,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,gBAAgB;IAExB,IAAI,EAAE;QACJ,MAAM,EAAE,kBAAkB;QAE1B,MAAM,EAAE,SAAS;QACjB,YAAY,EAAE,SAAS;KACxB;IAED,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,kgBAI8E;SACxF;KACF;CACF,CAAC"}
@@ -16,13 +16,7 @@ exports.manageUsersSkill = {
16
16
  },
17
17
  passages: [
18
18
  {
19
- content: "- I want to see the list of users\n- Display the list of users in the account\n- Show all users in the system\n- List all account users\n- View all users in the account",
20
- },
21
- {
22
- content: "- Change the role of a user\n- Update user roles\n- Modify the permissions of a user\n- Assign a new role to a user\n- Change user access level",
23
- },
24
- {
25
- content: "- Delete a user from the account\n- Remove a user from the system\n- Erase a user from the list\n- Permanently delete a user\n- Unregister a user from the account",
19
+ content: '',
26
20
  },
27
21
  ],
28
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"manage_users.js","sourceRoot":"","sources":["../../../src/assets/skills/manage_users.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAoB;IAC/C,GAAG,EAAE,uBAAuB;IAC5B,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,8BAA8B;IAC3C,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,gBAAgB;IAExB,IAAI,EAAE;QACJ,MAAM,EAAE,uBAAuB;QAE/B,MAAM,EAAE,SAAS;QACjB,YAAY,EAAE,SAAS;KACxB;IAED,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,0KAIiB;SAC3B;QACD;YACE,OAAO,EAAE,iJAIY;SACtB;QACD;YACE,OAAO,EAAE,oKAIsB;SAChC;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"manage_users.js","sourceRoot":"","sources":["../../../src/assets/skills/manage_users.ts"],"names":[],"mappings":";;;AAEa,QAAA,gBAAgB,GAAoB;IAC/C,GAAG,EAAE,uBAAuB;IAC5B,QAAQ,EAAE,CAAC,OAAO,CAAC;IACnB,IAAI,EAAE,cAAc;IACpB,WAAW,EAAE,8BAA8B;IAC3C,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,gBAAgB;IAExB,IAAI,EAAE;QACJ,MAAM,EAAE,uBAAuB;QAE/B,MAAM,EAAE,SAAS;QACjB,YAAY,EAAE,SAAS;KACxB;IAED,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,EAAE;SACZ;KACF;CACF,CAAC"}
@@ -16,10 +16,7 @@ exports.postToFeedSkill = {
16
16
  },
17
17
  passages: [
18
18
  {
19
- content: "- I want to create a news post and add it\n- Announce something in the feed\n- Update the IDW feed with a new post\n- Create, write, make, add a post\n- Add an item to the news feed",
20
- },
21
- {
22
- content: "- Create a new post in the feed\n- Add content to the IDW feed\n- Publish a post in the IDW feed\n- Share something on the feed\n- Send a new message to the IDW feed",
19
+ content: "The Dynamic Feed Management skill empowers you to seamlessly manage and update your feed with minimal\n effort. Whether you want to share news, announce updates, or simply create engaging content, this skill has you\n covered with a range of dynamic actions. Here's what you can do:\n Effortlessly generate new posts to keep your audience informed and engaged with fresh content.\n Enrich your IDW feed by incorporating diverse and relevant content, ensuring your feed is always up-to-date.\n Once you're ready, easily publish your meticulously crafted posts to the IDW feed for immediate visibility.\n Amplify your message by sharing important announcements, updates, or any content directly to the feed.\n Communicate effectively by sending new messages directly to the IDW feed, guaranteeing that your updates reach\n the intended audience.\n Design and add news posts to keep your followers informed about the latest happenings and developments.\n Make significant announcements seamlessly, ensuring your audience is always in the loop.\n Regularly update the IDW feed with new content.",
23
20
  },
24
21
  ],
25
22
  };
@@ -1 +1 @@
1
- {"version":3,"file":"post_to_feed.js","sourceRoot":"","sources":["../../../src/assets/skills/post_to_feed.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAoB;IAC9C,GAAG,EAAE,wBAAwB;IAC7B,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,gCAAgC;IAC7C,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,SAAS;IAEjB,IAAI,EAAE;QACJ,MAAM,EAAE,wBAAwB;QAEhC,MAAM,EAAE,SAAS;QACjB,YAAY,EAAE,SAAS;KACxB;IAED,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,uLAIgB;SAC1B;QACD;YACE,OAAO,EAAE,uKAIsB;SAChC;KACF;CACF,CAAC"}
1
+ {"version":3,"file":"post_to_feed.js","sourceRoot":"","sources":["../../../src/assets/skills/post_to_feed.ts"],"names":[],"mappings":";;;AAEa,QAAA,eAAe,GAAoB;IAC9C,GAAG,EAAE,wBAAwB;IAC7B,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;IAC3B,IAAI,EAAE,kBAAkB;IACxB,WAAW,EAAE,gCAAgC;IAC7C,YAAY,EAAE,IAAI;IAClB,MAAM,EAAE,CAAC;IACT,MAAM,EAAE,SAAS;IAEjB,IAAI,EAAE;QACJ,MAAM,EAAE,wBAAwB;QAEhC,MAAM,EAAE,SAAS;QACjB,YAAY,EAAE,SAAS;KACxB;IAED,QAAQ,EAAE;QACR;YACE,OAAO,EAAE,2nCAWuC;SACjD;KACF;CACF,CAAC"}
@@ -107,7 +107,7 @@ var InitIdwResources = (function () {
107
107
  return __generator(this, function (_a) {
108
108
  switch (_a.label) {
109
109
  case 0:
110
- _a.trys.push([0, 5, , 8]);
110
+ _a.trys.push([0, 5, , 7]);
111
111
  return [4, this.idw.slugApi.getSlug(domain.name)];
112
112
  case 1:
113
113
  domainSlug = _a.sent();
@@ -123,14 +123,12 @@ var InitIdwResources = (function () {
123
123
  case 4: return [2, existingDomain];
124
124
  case 5:
125
125
  error_1 = _a.sent();
126
- if (!(error_1 instanceof idw_1.DomainNotFoundError)) return [3, 7];
127
126
  return [4, this.idw.domainApi.createDomain({
128
127
  name: domain.name,
129
128
  abbreviation: domain.abbreviation,
130
129
  })];
131
130
  case 6: return [2, _a.sent()];
132
- case 7: throw error_1;
133
- case 8: return [2];
131
+ case 7: return [2];
134
132
  }
135
133
  });
136
134
  });
@@ -141,18 +139,16 @@ var InitIdwResources = (function () {
141
139
  return __generator(this, function (_a) {
142
140
  switch (_a.label) {
143
141
  case 0:
144
- _a.trys.push([0, 2, , 5]);
142
+ _a.trys.push([0, 2, , 4]);
145
143
  return [4, this.idw.skillApi.getSkill(skillDefinition.uid)];
146
144
  case 1:
147
145
  skill = (_a.sent()).skill;
148
146
  return [2, skill];
149
147
  case 2:
150
148
  error_2 = _a.sent();
151
- if (!(error_2 instanceof idw_1.SkillNotFoundError)) return [3, 4];
152
149
  return [4, this.createSkill(skillDefinition)];
153
150
  case 3: return [2, _a.sent()];
154
- case 4: throw error_2;
155
- case 5: return [2];
151
+ case 4: return [2];
156
152
  }
157
153
  });
158
154
  });
@@ -1 +1 @@
1
- {"version":3,"file":"idw.js","sourceRoot":"","sources":["../../src/initializers/idw.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,mCAA6F;AAC7F,2CAA0C;AAC1C,6CAA4C;AAC5C,sCAAsC;AAGtC;IAKE,0BAAY,EAA+C;YAA7C,KAAK,WAAA,EAAE,YAAY,kBAAA;QAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,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iCAEhC;gCACD,KAAK,EAAE;oCACL,QAAQ,EAAE,eAAe,CAAC,QAAQ;oCAClC,MAAM,EAAE,eAAe,CAAC,IAAI,CAAC,MAAM;oCACnC,YAAY,EAAE,eAAe,CAAC,IAAI,CAAC,YAAY;iCAChD;6BACF;yBACF,CAAC,EAAA;4BAjBF,WAAO,SAiBL,EAAC;;;;KACJ;IAEY,qCAAU,GAAvB;;;;;4BACqB,WAAM,IAAI,CAAC,GAAG,CAAC,QAAQ,CAAC,YAAY,EAAE,EAAA;;wBAAjD,MAAM,GAAK,CAAA,SAAsC,CAAA,OAA3C;wBAEd,WAAO,MAAM,CAAC,MAAM,CAAC,UAAC,GAAe,EAAE,EAAS;oCAAP,KAAK,WAAA;gCAC5C,IAAM,MAAM,GAAG,kBAAQ,CAAC,SAAS,YAC/B,EAAE,EAAE,KAAK,CAAC,GAAG,IACV,KAAK,EACR,CAAC;gCACH,IAAI,MAAM,CAAC,OAAO;oCAAE,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;gCAC1C,OAAO,GAAG,CAAC;4BACb,CAAC,EAAE,EAAE,CAAC,EAAC;;;;KACR;IACH,uBAAC;AAAD,CAAC,AArHD,IAqHC;AArHY,4CAAgB"}
package/package.json CHANGED
@@ -1,14 +1,18 @@
1
1
  {
2
2
  "name": "@onereach/idw-init-account-resources",
3
- "version": "0.4.0",
3
+ "version": "0.4.2",
4
4
  "description": "Creation of required resources in OneReach account to enable IDW",
5
5
  "license": "UNLICENSED",
6
- "author": "Antony Peklo <antony.peklo@onereach.com>",
6
+ "contributors": [
7
+ "Aleksey Snezhinskij <aleksey.snezhinskij@onereach.com>",
8
+ "Antony Peklo <antony.peklo@onereach.com>",
9
+ "Ivan Karpan <ivan.karpan@onereach.com>"
10
+ ],
7
11
  "main": "dist/index.js",
8
12
  "dependencies": {
9
13
  "@or-sdk/contacts": "4.5.6",
10
14
  "@or-sdk/hitl": "0.34.35",
11
- "@or-sdk/idw": "7.3.2",
15
+ "@or-sdk/idw": "7.3.3",
12
16
  "@or-sdk/lookup": "1.14.5",
13
17
  "@or-sdk/pgsql": "1.1.8",
14
18
  "pg": "8.11.5",
@@ -18,26 +18,10 @@ export const customizeIdwSkill: SkillDefinition = {
18
18
 
19
19
  passages: [
20
20
  {
21
- content: `- Change IDW name
22
- - Different name for my IDW
23
- - Let's pick another name for IDW`,
24
- },
25
- {
26
- content: `- Change IDW description
27
- - Different description for my IDW
28
- - Let's pick another description for IDW
29
- - Another description for worker`,
30
- },
31
- {
32
- content: `- Change avatar
33
- - Pick another avatar
34
- - Change image
35
- - Another image for IDW`,
36
- },
37
- {
38
- content: `- Change IDW name
39
- - Different name for my IDW
40
- - Let's pick another name for IDW `,
21
+ content: `This AI assistant skill is designed to manage and update information display widgets (IDWs).
22
+ It allows the user to change the name of a widget, replace the image associated with it,
23
+ and edit the widget's descriptive text.
24
+ This skill is useful for keeping display elements fresh and relevant without manually coding changes.`,
41
25
  },
42
26
  ],
43
27
  };
@@ -18,19 +18,21 @@ export const manageChannelsSkill: SkillDefinition = {
18
18
 
19
19
  passages: [
20
20
  {
21
- content: `- Add new channel
22
- - Add SMS channel
23
- - Create channel for my IDW
24
- - Let's add a channel
25
- - Add implementation for the channel
26
- - Create implementation for a new channel`,
27
- },
28
- {
29
- content: `- Delete channel
30
- - Remove SMS channel
31
- - Remove a channel
32
- - Remove channel from the IDW
33
- - Let's delete a channel`,
21
+ content: `The Channel Management Assistant skill enables efficient handling and modification of various
22
+ communication channels within an Integrated Digital Workplace (IDW).
23
+ This skill allows users to seamlessly manage channel operations with the following features:
24
+ Quickly remove an existing channel from your platform to ensure that your environment remains organized
25
+ and free from clutter.
26
+ Specifically target and eliminate SMS channels, helping streamline communications and maintain relevance
27
+ in your messaging strategy.
28
+ Detach and delete any channel from your Integrated Digital Workplace, which helps in managing the flow
29
+ and access of communication within the network.
30
+ Create and integrate a new channel into your system, facilitating expanded communication and
31
+ collaboration capabilities.
32
+ Incorporate an SMS channel to enhance outreach and engagement through text messaging, ensuring immediate
33
+ and broad communication.
34
+ Tailor and set up a specific channel designed for your Integrated Digital Workplace to meet unique
35
+ organizational needs.`,
34
36
  },
35
37
  ],
36
38
  };
@@ -18,21 +18,16 @@ export const manageDomainsSkill: SkillDefinition = {
18
18
 
19
19
  passages: [
20
20
  {
21
- content: `- Add new domain
22
- - Create domain
23
- - Append domain`,
24
- },
25
- {
26
- content: `- Remove Domain
27
- - Delete Domain
28
- - Exclude Domain
29
- - Get rid of domain`,
30
- },
31
- {
32
- content: `- Edit domain
33
- - Remove domain
34
- - Update the domain
35
- - Remove skills from domain`,
21
+ content: `This AI assistant skill is designed to help users efficiently manage their digital domains. The skill
22
+ focuses on four key actions to simplify domain administration:
23
+ Allows users to modify existing domain settings, such as updating DNS records, changing contact information, or
24
+ adjusting domain forwarding rules.
25
+ Provides the functionality to safely delete a domain from the user's account, ensuring that all associated data
26
+ is handled according to user preferences and regulatory requirements.
27
+ Facilitates periodic updates to keep domain registration details current and ensures that any critical changes
28
+ required for compliance or optimization are implemented smoothly.
29
+ Supports users in registering and setting up new domains, including assistance with choosing the best domain
30
+ names, configuration, and initial setup processes.`,
36
31
  },
37
32
  ],
38
33
  };
@@ -18,22 +18,11 @@ export const manageSkillsSkill: SkillDefinition = {
18
18
 
19
19
  passages: [
20
20
  {
21
- content: `- Create a new skill
22
- - Add a skill
23
- - Register a skill
24
- - Add a new skill
25
- - Include a new skill`,
26
- },
27
- {
28
- content: `- Change skill name
29
- - Edit name of the skill
30
- - Update skill name
31
- - Rename skill
32
- - Modify skill name`,
33
- },
34
- {
35
- content: `- Delete skill
36
- - Remove skill`,
21
+ content: `This AI assistant skill specializes in managing and organizing other skills within the system.
22
+ It allows users to efficiently add, remove, create new, or rename existing skills. This
23
+ functionality ensures that the user can tailor the AI capabilities to best fit their needs and preferences
24
+ by keeping the skill set up-to-date and organized. Whether you need to streamline your toolkit or update it
25
+ with new functionalities, this skill adjustment feature makes it simple and effective.`,
37
26
  },
38
27
  ],
39
28
  };
@@ -18,25 +18,7 @@ export const manageUsersSkill: SkillDefinition = {
18
18
 
19
19
  passages: [
20
20
  {
21
- content: `- I want to see the list of users
22
- - Display the list of users in the account
23
- - Show all users in the system
24
- - List all account users
25
- - View all users in the account`,
26
- },
27
- {
28
- content: `- Change the role of a user
29
- - Update user roles
30
- - Modify the permissions of a user
31
- - Assign a new role to a user
32
- - Change user access level`,
33
- },
34
- {
35
- content: `- Delete a user from the account
36
- - Remove a user from the system
37
- - Erase a user from the list
38
- - Permanently delete a user
39
- - Unregister a user from the account`,
21
+ content: '',
40
22
  },
41
23
  ],
42
24
  };
@@ -18,18 +18,18 @@ export const postToFeedSkill: SkillDefinition = {
18
18
 
19
19
  passages: [
20
20
  {
21
- content: `- I want to create a news post and add it
22
- - Announce something in the feed
23
- - Update the IDW feed with a new post
24
- - Create, write, make, add a post
25
- - Add an item to the news feed`,
26
- },
27
- {
28
- content: `- Create a new post in the feed
29
- - Add content to the IDW feed
30
- - Publish a post in the IDW feed
31
- - Share something on the feed
32
- - Send a new message to the IDW feed`,
21
+ content: `The Dynamic Feed Management skill empowers you to seamlessly manage and update your feed with minimal
22
+ effort. Whether you want to share news, announce updates, or simply create engaging content, this skill has you
23
+ covered with a range of dynamic actions. Here's what you can do:
24
+ Effortlessly generate new posts to keep your audience informed and engaged with fresh content.
25
+ Enrich your IDW feed by incorporating diverse and relevant content, ensuring your feed is always up-to-date.
26
+ Once you're ready, easily publish your meticulously crafted posts to the IDW feed for immediate visibility.
27
+ Amplify your message by sharing important announcements, updates, or any content directly to the feed.
28
+ Communicate effectively by sending new messages directly to the IDW feed, guaranteeing that your updates reach
29
+ the intended audience.
30
+ Design and add news posts to keep your followers informed about the latest happenings and developments.
31
+ Make significant announcements seamlessly, ensuring your audience is always in the loop.
32
+ Regularly update the IDW feed with new content.`,
33
33
  },
34
34
  ],
35
35
  };
@@ -1,4 +1,4 @@
1
- import { Domain, IdwApi, Skill, DomainNotFoundError, SkillNotFoundError } from '@or-sdk/idw';
1
+ import { Domain, IdwApi, Skill } from '@or-sdk/idw';
2
2
  import { skills } from '../assets/skills';
3
3
  import { domains } from '../assets/domains';
4
4
  import { IdwSkill } from '../schemas';
@@ -39,13 +39,14 @@ export class InitIdwResources {
39
39
 
40
40
  return existingDomain;
41
41
  } catch (error) {
42
- if (error instanceof DomainNotFoundError) {
43
- return await this.idw.domainApi.createDomain({
44
- name: domain.name,
45
- abbreviation: domain.abbreviation,
46
- });
47
- }
48
- throw error;
42
+ // TODO: narrow down switch to create to 404 errors only
43
+ // if (error instanceof DomainNotFoundError) {
44
+ return await this.idw.domainApi.createDomain({
45
+ name: domain.name,
46
+ abbreviation: domain.abbreviation,
47
+ });
48
+ // }
49
+ // throw error;
49
50
  }
50
51
  }
51
52
 
@@ -54,10 +55,11 @@ export class InitIdwResources {
54
55
  const { skill } = await this.idw.skillApi.getSkill(skillDefinition.uid);
55
56
  return skill;
56
57
  } catch (error) {
57
- if (error instanceof SkillNotFoundError) {
58
- return await this.createSkill(skillDefinition);
59
- }
60
- throw error;
58
+ // TODO: narrow down switch to create to 404 errors only
59
+ // if (error instanceof SkillNotFoundError) {
60
+ return await this.createSkill(skillDefinition);
61
+ // }
62
+ // throw error;
61
63
  }
62
64
  }
63
65