@synsci/sdk 2.0.94 → 2.0.95

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.
@@ -962,7 +962,6 @@ export class Preferences extends HeyApiClient {
962
962
  { in: "body", key: "delegation_level" },
963
963
  { in: "body", key: "delegation_worker_model" },
964
964
  { in: "body", key: "delegation_autonomy" },
965
- { in: "body", key: "delegation_strategy" },
966
965
  { in: "body", key: "delegation_diversity" },
967
966
  ],
968
967
  },
@@ -1098,6 +1097,79 @@ export class Wallet extends HeyApiClient {
1098
1097
  }
1099
1098
  }
1100
1099
  export class Skills extends HeyApiClient {
1100
+ /**
1101
+ * Unregister a skill directory
1102
+ *
1103
+ * Remove a root registered at runtime, and with persist also drop it from skills.paths in that config. Only that root's skills leave the catalog.
1104
+ */
1105
+ removeRoot(parameters, options) {
1106
+ const params = buildClientParams([parameters], [
1107
+ {
1108
+ args: [
1109
+ { in: "query", key: "directory" },
1110
+ { in: "query", key: "path" },
1111
+ { in: "query", key: "persist" },
1112
+ ],
1113
+ },
1114
+ ]);
1115
+ return (options?.client ?? this.client).delete({
1116
+ url: "/settings/skills/paths",
1117
+ ...options,
1118
+ ...params,
1119
+ });
1120
+ }
1121
+ /**
1122
+ * List skill roots
1123
+ *
1124
+ * Every directory contributing skills, with its kind (bundled, project, user, installed, config, runtime), the skills it won, and the same-named skills it lost to another root. The revision changes whenever the catalog is rebuilt.
1125
+ */
1126
+ roots(parameters, options) {
1127
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1128
+ return (options?.client ?? this.client).get({
1129
+ url: "/settings/skills/paths",
1130
+ ...options,
1131
+ ...params,
1132
+ });
1133
+ }
1134
+ /**
1135
+ * Register a skill directory
1136
+ *
1137
+ * Add a local directory as a skill root for this project. It is scanned recursively at once; no restart is needed. A missing or empty directory is rejected (400), and a root that is already active is rejected (409) instead of loading every skill twice.
1138
+ */
1139
+ addRoot(parameters, options) {
1140
+ const params = buildClientParams([parameters], [
1141
+ {
1142
+ args: [
1143
+ { in: "query", key: "directory" },
1144
+ { in: "body", key: "path" },
1145
+ { in: "body", key: "persist" },
1146
+ ],
1147
+ },
1148
+ ]);
1149
+ return (options?.client ?? this.client).post({
1150
+ url: "/settings/skills/paths",
1151
+ ...options,
1152
+ ...params,
1153
+ headers: {
1154
+ "Content-Type": "application/json",
1155
+ ...options?.headers,
1156
+ ...params.headers,
1157
+ },
1158
+ });
1159
+ }
1160
+ /**
1161
+ * Rescan skill directories
1162
+ *
1163
+ * Rebuild the catalog so files changed outside the app are picked up without a restart.
1164
+ */
1165
+ reload(parameters, options) {
1166
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
1167
+ return (options?.client ?? this.client).post({
1168
+ url: "/settings/skills/reload",
1169
+ ...options,
1170
+ ...params,
1171
+ });
1172
+ }
1101
1173
  /**
1102
1174
  * Install skill from git
1103
1175
  *
@@ -2882,6 +2954,312 @@ export class Question extends HeyApiClient {
2882
2954
  });
2883
2955
  }
2884
2956
  }
2957
+ export class Experiments extends HeyApiClient {
2958
+ /**
2959
+ * List tracked runs
2960
+ */
2961
+ runs(parameters, options) {
2962
+ const params = buildClientParams([parameters], [
2963
+ {
2964
+ args: [
2965
+ { in: "query", key: "directory" },
2966
+ { in: "query", key: "study_id" },
2967
+ { in: "query", key: "status" },
2968
+ { in: "query", key: "limit" },
2969
+ ],
2970
+ },
2971
+ ]);
2972
+ return (options?.client ?? this.client).get({
2973
+ url: "/experiments/runs",
2974
+ ...options,
2975
+ ...params,
2976
+ });
2977
+ }
2978
+ /**
2979
+ * Get one tracked run
2980
+ */
2981
+ run(parameters, options) {
2982
+ const params = buildClientParams([parameters], [
2983
+ {
2984
+ args: [
2985
+ { in: "path", key: "runID" },
2986
+ { in: "query", key: "directory" },
2987
+ ],
2988
+ },
2989
+ ]);
2990
+ return (options?.client ?? this.client).get({
2991
+ url: "/experiments/runs/{runID}",
2992
+ ...options,
2993
+ ...params,
2994
+ });
2995
+ }
2996
+ /**
2997
+ * Downsampled metric series for runs
2998
+ */
2999
+ series(parameters, options) {
3000
+ const params = buildClientParams([parameters], [
3001
+ {
3002
+ args: [
3003
+ { in: "query", key: "directory" },
3004
+ { in: "query", key: "run_ids" },
3005
+ { in: "query", key: "keys" },
3006
+ { in: "query", key: "max" },
3007
+ ],
3008
+ },
3009
+ ]);
3010
+ return (options?.client ?? this.client).get({
3011
+ url: "/experiments/series",
3012
+ ...options,
3013
+ ...params,
3014
+ });
3015
+ }
3016
+ /**
3017
+ * Metric names logged by runs
3018
+ */
3019
+ keys(parameters, options) {
3020
+ const params = buildClientParams([parameters], [
3021
+ {
3022
+ args: [
3023
+ { in: "query", key: "directory" },
3024
+ { in: "query", key: "run_ids" },
3025
+ { in: "query", key: "study_id" },
3026
+ ],
3027
+ },
3028
+ ]);
3029
+ return (options?.client ?? this.client).get({
3030
+ url: "/experiments/keys",
3031
+ ...options,
3032
+ ...params,
3033
+ });
3034
+ }
3035
+ /**
3036
+ * Local GPU inventory
3037
+ */
3038
+ gpus(parameters, options) {
3039
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
3040
+ return (options?.client ?? this.client).get({
3041
+ url: "/experiments/gpus",
3042
+ ...options,
3043
+ ...params,
3044
+ });
3045
+ }
3046
+ /**
3047
+ * List studies
3048
+ */
3049
+ studies(parameters, options) {
3050
+ const params = buildClientParams([parameters], [{ args: [{ in: "query", key: "directory" }] }]);
3051
+ return (options?.client ?? this.client).get({
3052
+ url: "/experiments/studies",
3053
+ ...options,
3054
+ ...params,
3055
+ });
3056
+ }
3057
+ /**
3058
+ * Study overview: ideas, runs, events, baseline and best
3059
+ */
3060
+ study(parameters, options) {
3061
+ const params = buildClientParams([parameters], [
3062
+ {
3063
+ args: [
3064
+ { in: "path", key: "studyID" },
3065
+ { in: "query", key: "directory" },
3066
+ ],
3067
+ },
3068
+ ]);
3069
+ return (options?.client ?? this.client).get({
3070
+ url: "/experiments/studies/{studyID}",
3071
+ ...options,
3072
+ ...params,
3073
+ });
3074
+ }
3075
+ /**
3076
+ * Pause, resume, halt or re-render a study
3077
+ */
3078
+ studyControl(parameters, options) {
3079
+ const params = buildClientParams([parameters], [
3080
+ {
3081
+ args: [
3082
+ { in: "path", key: "studyID" },
3083
+ { in: "path", key: "action" },
3084
+ { in: "query", key: "directory" },
3085
+ ],
3086
+ },
3087
+ ]);
3088
+ return (options?.client ?? this.client).post({
3089
+ url: "/experiments/studies/{studyID}/{action}",
3090
+ ...options,
3091
+ ...params,
3092
+ });
3093
+ }
3094
+ /**
3095
+ * Add a standing directive; the session is woken with it
3096
+ */
3097
+ directive(parameters, options) {
3098
+ const params = buildClientParams([parameters], [
3099
+ {
3100
+ args: [
3101
+ { in: "path", key: "studyID" },
3102
+ { in: "query", key: "directory" },
3103
+ { in: "body", key: "text" },
3104
+ ],
3105
+ },
3106
+ ]);
3107
+ return (options?.client ?? this.client).post({
3108
+ url: "/experiments/studies/{studyID}/directives",
3109
+ ...options,
3110
+ ...params,
3111
+ headers: {
3112
+ "Content-Type": "application/json",
3113
+ ...options?.headers,
3114
+ ...params.headers,
3115
+ },
3116
+ });
3117
+ }
3118
+ /**
3119
+ * Retire a standing directive
3120
+ */
3121
+ retireDirective(parameters, options) {
3122
+ const params = buildClientParams([parameters], [
3123
+ {
3124
+ args: [
3125
+ { in: "path", key: "studyID" },
3126
+ { in: "path", key: "directiveID" },
3127
+ { in: "query", key: "directory" },
3128
+ ],
3129
+ },
3130
+ ]);
3131
+ return (options?.client ?? this.client).post({
3132
+ url: "/experiments/studies/{studyID}/directives/{directiveID}/retire",
3133
+ ...options,
3134
+ ...params,
3135
+ });
3136
+ }
3137
+ /**
3138
+ * Reprioritize or drop an idea
3139
+ */
3140
+ idea(parameters, options) {
3141
+ const params = buildClientParams([parameters], [
3142
+ {
3143
+ args: [
3144
+ { in: "path", key: "studyID" },
3145
+ { in: "path", key: "ideaID" },
3146
+ { in: "query", key: "directory" },
3147
+ { in: "body", key: "priority" },
3148
+ { in: "body", key: "status" },
3149
+ ],
3150
+ },
3151
+ ]);
3152
+ return (options?.client ?? this.client).patch({
3153
+ url: "/experiments/studies/{studyID}/ideas/{ideaID}",
3154
+ ...options,
3155
+ ...params,
3156
+ headers: {
3157
+ "Content-Type": "application/json",
3158
+ ...options?.headers,
3159
+ ...params.headers,
3160
+ },
3161
+ });
3162
+ }
3163
+ /**
3164
+ * Register a run reported over HTTP
3165
+ */
3166
+ ingestRun(parameters, options) {
3167
+ const params = buildClientParams([parameters], [
3168
+ {
3169
+ args: [
3170
+ { in: "query", key: "directory" },
3171
+ { in: "body", key: "name" },
3172
+ { in: "body", key: "project" },
3173
+ { in: "body", key: "config" },
3174
+ { in: "body", key: "study_id" },
3175
+ { in: "body", key: "session_id" },
3176
+ ],
3177
+ },
3178
+ ]);
3179
+ return (options?.client ?? this.client).post({
3180
+ url: "/experiments/ingest/runs",
3181
+ ...options,
3182
+ ...params,
3183
+ headers: {
3184
+ "Content-Type": "application/json",
3185
+ ...options?.headers,
3186
+ ...params.headers,
3187
+ },
3188
+ });
3189
+ }
3190
+ /**
3191
+ * Append metric points to a run
3192
+ */
3193
+ ingestPoints(parameters, options) {
3194
+ const params = buildClientParams([parameters], [
3195
+ {
3196
+ args: [
3197
+ { in: "path", key: "runID" },
3198
+ { in: "query", key: "directory" },
3199
+ { in: "body", key: "points" },
3200
+ ],
3201
+ },
3202
+ ]);
3203
+ return (options?.client ?? this.client).post({
3204
+ url: "/experiments/ingest/runs/{runID}/points",
3205
+ ...options,
3206
+ ...params,
3207
+ headers: {
3208
+ "Content-Type": "application/json",
3209
+ ...options?.headers,
3210
+ ...params.headers,
3211
+ },
3212
+ });
3213
+ }
3214
+ /**
3215
+ * Merge summary values into a run
3216
+ */
3217
+ ingestSummary(parameters, options) {
3218
+ const params = buildClientParams([parameters], [
3219
+ {
3220
+ args: [
3221
+ { in: "path", key: "runID" },
3222
+ { in: "query", key: "directory" },
3223
+ { in: "body", key: "summary" },
3224
+ ],
3225
+ },
3226
+ ]);
3227
+ return (options?.client ?? this.client).post({
3228
+ url: "/experiments/ingest/runs/{runID}/summary",
3229
+ ...options,
3230
+ ...params,
3231
+ headers: {
3232
+ "Content-Type": "application/json",
3233
+ ...options?.headers,
3234
+ ...params.headers,
3235
+ },
3236
+ });
3237
+ }
3238
+ /**
3239
+ * Finish a run reported over HTTP
3240
+ */
3241
+ ingestFinish(parameters, options) {
3242
+ const params = buildClientParams([parameters], [
3243
+ {
3244
+ args: [
3245
+ { in: "path", key: "runID" },
3246
+ { in: "query", key: "directory" },
3247
+ { in: "body", key: "status" },
3248
+ ],
3249
+ },
3250
+ ]);
3251
+ return (options?.client ?? this.client).post({
3252
+ url: "/experiments/ingest/runs/{runID}/finish",
3253
+ ...options,
3254
+ ...params,
3255
+ headers: {
3256
+ "Content-Type": "application/json",
3257
+ ...options?.headers,
3258
+ ...params.headers,
3259
+ },
3260
+ });
3261
+ }
3262
+ }
2885
3263
  export class Oauth extends HeyApiClient {
2886
3264
  /**
2887
3265
  * OAuth authorize
@@ -4957,6 +5335,26 @@ export class Command3 extends HeyApiClient {
4957
5335
  }
4958
5336
  }
4959
5337
  export class Skill extends HeyApiClient {
5338
+ /**
5339
+ * Read a skill's instructions
5340
+ *
5341
+ * The SKILL.md text and location of one skill, for clients without filesystem access.
5342
+ */
5343
+ content(parameters, options) {
5344
+ const params = buildClientParams([parameters], [
5345
+ {
5346
+ args: [
5347
+ { in: "path", key: "name" },
5348
+ { in: "query", key: "directory" },
5349
+ ],
5350
+ },
5351
+ ]);
5352
+ return (options?.client ?? this.client).get({
5353
+ url: "/skill/{name}/content",
5354
+ ...options,
5355
+ ...params,
5356
+ });
5357
+ }
4960
5358
  /**
4961
5359
  * Delete user skill
4962
5360
  *
@@ -5308,6 +5706,10 @@ export class OpenScienceClient extends HeyApiClient {
5308
5706
  get question() {
5309
5707
  return (this._question ??= new Question({ client: this.client }));
5310
5708
  }
5709
+ _experiments;
5710
+ get experiments() {
5711
+ return (this._experiments ??= new Experiments({ client: this.client }));
5712
+ }
5311
5713
  _provider;
5312
5714
  get provider() {
5313
5715
  return (this._provider ??= new Provider2({ client: this.client }));