@xiashe/sdk 0.1.6 → 0.1.7

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/index.mjs +40 -1
  2. package/package.json +1 -1
package/index.mjs CHANGED
@@ -6,7 +6,7 @@ import path from 'node:path';
6
6
  import { ConvexHttpClient } from 'convex/browser';
7
7
  import { anyApi as api } from 'convex/server';
8
8
 
9
- export const VERSION = '0.1.6';
9
+ export const VERSION = '0.1.7';
10
10
 
11
11
  export const DEFAULTS = {
12
12
  cn: {
@@ -515,6 +515,45 @@ export class XiasheClient {
515
515
  return this.query(api.skillInstallJobs.listForConnection, this.authArgs({ connectionId, limit }));
516
516
  }
517
517
 
518
+ async createSkillSubmissionDraft(draft = {}) {
519
+ return this.mutation(api.skillsCatalog.createSkillSubmissionDraft, this.authArgs({ draft }));
520
+ }
521
+
522
+ async updateSkillSubmissionDraft(submissionId, patch = {}) {
523
+ return this.mutation(api.skillsCatalog.updateSkillSubmissionDraft, this.authArgs({ submissionId, patch }));
524
+ }
525
+
526
+ async listSkillSubmissions(limit = 20) {
527
+ return this.query(api.skillsCatalog.listMySkillSubmissions, this.authArgs({ limit }));
528
+ }
529
+
530
+ async runSkillSubmissionSafetyCheck(submissionId) {
531
+ return this.mutation(api.skillsCatalog.runSkillSubmissionSafetyCheck, this.authArgs({ submissionId }));
532
+ }
533
+
534
+ async submitSkillSubmissionForReview(submissionId) {
535
+ return this.mutation(api.skillsCatalog.submitSkillSubmissionForReview, this.authArgs({ submissionId }));
536
+ }
537
+
538
+ async adminListSkillSubmissions(options = {}) {
539
+ return this.query(
540
+ api.skillsCatalog.adminListSkillSubmissions,
541
+ this.authArgs({ status: options.status || undefined, limit: options.limit || 50 })
542
+ );
543
+ }
544
+
545
+ async adminReviewSkillSubmission(submissionId, status, reviewNotes = '') {
546
+ return this.mutation(api.skillsCatalog.adminReviewSkillSubmission, this.authArgs({
547
+ submissionId,
548
+ status,
549
+ reviewNotes: reviewNotes || undefined
550
+ }));
551
+ }
552
+
553
+ async publishSkillSubmission(submissionId, status = 'released') {
554
+ return this.mutation(api.skillsCatalog.publishSkillSubmission, this.authArgs({ submissionId, status }));
555
+ }
556
+
518
557
  async issueAgentConnectToken(options = {}) {
519
558
  return this.mutation(
520
559
  api.agentGateway.issueConnectToken,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xiashe/sdk",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "type": "module",
5
5
  "main": "index.mjs",
6
6
  "exports": {