codemie-sdk 0.1.652 → 0.1.653
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/index.cjs +23 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +70 -1
- package/dist/index.d.ts +70 -1
- package/dist/index.js +23 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1781,6 +1781,9 @@ var SkillService = class {
|
|
|
1781
1781
|
}
|
|
1782
1782
|
/**
|
|
1783
1783
|
* Update an existing skill.
|
|
1784
|
+
*
|
|
1785
|
+
* `companion_files`: by contract `null` removes all files and omitting the field leaves them
|
|
1786
|
+
* unchanged. The current backend treats `null` as unchanged; send `[]` to clear all companion files.
|
|
1784
1787
|
*/
|
|
1785
1788
|
async update(skillId, params) {
|
|
1786
1789
|
return this.api.put(`/v1/skills/${skillId}`, params);
|
|
@@ -1835,6 +1838,20 @@ var SkillService = class {
|
|
|
1835
1838
|
async getSkillAssistants(skillId) {
|
|
1836
1839
|
return this.api.get(`/v1/skills/${skillId}/assistants`);
|
|
1837
1840
|
}
|
|
1841
|
+
/**
|
|
1842
|
+
* List the companion files of a skill (metadata only, without content).
|
|
1843
|
+
*/
|
|
1844
|
+
async listCompanionFiles(skillId) {
|
|
1845
|
+
return this.api.get(`/v1/skills/${skillId}/companion-files`);
|
|
1846
|
+
}
|
|
1847
|
+
/**
|
|
1848
|
+
* Get one companion file of a skill, including its content, by its relative path.
|
|
1849
|
+
*/
|
|
1850
|
+
async getCompanionFile(skillId, path) {
|
|
1851
|
+
return this.api.get(`/v1/skills/${skillId}/companion-files/content`, {
|
|
1852
|
+
path
|
|
1853
|
+
});
|
|
1854
|
+
}
|
|
1838
1855
|
/**
|
|
1839
1856
|
* Publish a skill to the marketplace.
|
|
1840
1857
|
*/
|
|
@@ -1854,6 +1871,12 @@ var SkillService = class {
|
|
|
1854
1871
|
async listCategories() {
|
|
1855
1872
|
return this.api.get("/v1/skills/categories");
|
|
1856
1873
|
}
|
|
1874
|
+
/**
|
|
1875
|
+
* Get the platform skill limits (content length bounds).
|
|
1876
|
+
*/
|
|
1877
|
+
async getConfig() {
|
|
1878
|
+
return this.api.get("/v1/skills/config");
|
|
1879
|
+
}
|
|
1857
1880
|
/**
|
|
1858
1881
|
* Get users with access to skills.
|
|
1859
1882
|
*/
|