@boboddy/sdk 0.1.43-alpha → 0.1.44-alpha

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.js CHANGED
@@ -895,6 +895,9 @@ class Projects extends HeyApiClient {
895
895
  getProject(options) {
896
896
  return (options.client ?? this.client).get({ url: "/api/projects/{projectId}", ...options });
897
897
  }
898
+ getProjectWorkItemSignalScores(options) {
899
+ return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/work-item-signal-scores", ...options });
900
+ }
898
901
  updateProjectDefaultPipelineAssignment(options) {
899
902
  return (options.client ?? this.client).put({
900
903
  url: "/api/projects/{projectId}/default-pipeline-assignment",
@@ -1287,6 +1290,31 @@ class ProjectIntegrations extends HeyApiClient {
1287
1290
  }
1288
1291
  }
1289
1292
 
1293
+ class ProjectInvites extends HeyApiClient {
1294
+ getProjectInviteByToken(options) {
1295
+ return (options.client ?? this.client).get({ url: "/api/project-invites/{token}", ...options });
1296
+ }
1297
+ listProjectInvites(options) {
1298
+ return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/invites", ...options });
1299
+ }
1300
+ createProjectInvite(options) {
1301
+ return (options.client ?? this.client).post({
1302
+ url: "/api/projects/{projectId}/invites",
1303
+ ...options,
1304
+ headers: {
1305
+ "Content-Type": "application/json",
1306
+ ...options.headers
1307
+ }
1308
+ });
1309
+ }
1310
+ revokeProjectInvite(options) {
1311
+ return (options.client ?? this.client).post({ url: "/api/projects/{projectId}/invites/{inviteId}/revoke", ...options });
1312
+ }
1313
+ acceptProjectInvite(options) {
1314
+ return (options.client ?? this.client).post({ url: "/api/project-invites/{token}/accept", ...options });
1315
+ }
1316
+ }
1317
+
1290
1318
  class BoboddyClient extends HeyApiClient {
1291
1319
  static __registry = new HeyApiRegistry;
1292
1320
  constructor(args) {
@@ -1337,6 +1365,10 @@ class BoboddyClient extends HeyApiClient {
1337
1365
  get projectIntegrations() {
1338
1366
  return this._projectIntegrations ??= new ProjectIntegrations({ client: this.client });
1339
1367
  }
1368
+ _projectInvites;
1369
+ get projectInvites() {
1370
+ return this._projectInvites ??= new ProjectInvites({ client: this.client });
1371
+ }
1340
1372
  }
1341
1373
  // src/step-execution-plane-client.ts
1342
1374
  function createStepExecutionPlaneClient(baseUrl) {
@@ -13342,6 +13374,42 @@ class JSONSchemaGenerator {
13342
13374
  }
13343
13375
  // ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/json-schema.js
13344
13376
  var exports_json_schema = {};
13377
+ // src/definitions/steps/prompt-template.ts
13378
+ function createPromptInputProxy(path = []) {
13379
+ const token = () => path.length ? `{{${path.join(".")}}}` : "";
13380
+ return new Proxy(Object.freeze({}), {
13381
+ get(_, key) {
13382
+ if (key === Symbol.toPrimitive || key === "valueOf") {
13383
+ return (_hint) => token();
13384
+ }
13385
+ if (key === "toString") {
13386
+ return () => token();
13387
+ }
13388
+ if (typeof key !== "string")
13389
+ return;
13390
+ return createPromptInputProxy([...path, key]);
13391
+ }
13392
+ });
13393
+ }
13394
+ function createPromptTemplateContext() {
13395
+ return {
13396
+ input: createPromptInputProxy(["input"]),
13397
+ env: createPromptInputProxy(["env"]),
13398
+ boboddy: {
13399
+ artifactsDir: createPromptInputProxy([
13400
+ "boboddy",
13401
+ "artifactsDir"
13402
+ ])
13403
+ }
13404
+ };
13405
+ }
13406
+ function renderPromptTemplate(template, contextJson) {
13407
+ return template.replace(/\{\{([^}]+)\}\}/g, (_, path) => {
13408
+ const value = path.split(".").reduce((curr, key) => curr != null ? curr[key] : undefined, contextJson);
13409
+ return value != null ? String(value) : "";
13410
+ });
13411
+ }
13412
+
13345
13413
  // src/definitions/steps/define-step.ts
13346
13414
  var UNWRAP_TYPES = new Set(["optional", "nullable", "default"]);
13347
13415
  function unwrapZodType(schema) {
@@ -13387,7 +13455,8 @@ function defineStep(config2) {
13387
13455
  for (const feature of features) {
13388
13456
  effectiveResult = effectiveResult ? effectiveResult.extend(feature._resultExtension.shape) : feature._resultExtension;
13389
13457
  }
13390
- let effectivePrompt = config2.agentPrompt;
13458
+ const basePrompt = typeof config2.agentPrompt === "function" ? config2.agentPrompt(createPromptTemplateContext()) : config2.agentPrompt;
13459
+ let effectivePrompt = basePrompt;
13391
13460
  for (const feature of features) {
13392
13461
  if (feature._promptAddition) {
13393
13462
  effectivePrompt = effectivePrompt ? `${effectivePrompt}
@@ -13427,29 +13496,6 @@ ${feature._promptAddition}` : feature._promptAddition;
13427
13496
  };
13428
13497
  return spec;
13429
13498
  }
13430
- // src/definitions/steps/prompt-template.ts
13431
- function createPromptInputProxy(path = []) {
13432
- const token = () => path.length ? `{{${path.join(".")}}}` : "";
13433
- return new Proxy(Object.freeze({}), {
13434
- get(_, key) {
13435
- if (key === Symbol.toPrimitive || key === "valueOf") {
13436
- return (_hint) => token();
13437
- }
13438
- if (key === "toString") {
13439
- return () => token();
13440
- }
13441
- if (typeof key !== "string")
13442
- return;
13443
- return createPromptInputProxy([...path, key]);
13444
- }
13445
- });
13446
- }
13447
- function renderPromptTemplate(template, inputJson) {
13448
- return template.replace(/\{\{([^}]+)\}\}/g, (_, path) => {
13449
- const value = path.split(".").reduce((curr, key) => curr != null ? curr[key] : undefined, inputJson);
13450
- return value != null ? String(value) : "";
13451
- });
13452
- }
13453
13499
  // src/definitions/steps/step-definitions-client.ts
13454
13500
  function createStepDefinitionsClient(baseUrl) {
13455
13501
  const client2 = createClient({ baseUrl });
@@ -16970,6 +17016,7 @@ export {
16970
17016
  defaultPipelineAssignment,
16971
17017
  createStepExecutionPlaneClient,
16972
17018
  createStepDefinitionsClient,
17019
+ createPromptTemplateContext,
16973
17020
  createPromptInputProxy,
16974
17021
  createPipelineDefinitionsClient,
16975
17022
  createInputAccessor,
@@ -16981,6 +17028,7 @@ export {
16981
17028
  StepDefinitionTemplates,
16982
17029
  Rule,
16983
17030
  Projects,
17031
+ ProjectInvites,
16984
17032
  ProjectIntegrations,
16985
17033
  ProjectContext,
16986
17034
  PipelineStepBuilder,
@@ -11947,6 +11947,42 @@ class JSONSchemaGenerator {
11947
11947
  }
11948
11948
  // ../../../node_modules/.bun/zod@4.4.3/node_modules/zod/v4/core/json-schema.js
11949
11949
  var exports_json_schema = {};
11950
+ // src/definitions/steps/prompt-template.ts
11951
+ function createPromptInputProxy(path = []) {
11952
+ const token = () => path.length ? `{{${path.join(".")}}}` : "";
11953
+ return new Proxy(Object.freeze({}), {
11954
+ get(_, key) {
11955
+ if (key === Symbol.toPrimitive || key === "valueOf") {
11956
+ return (_hint) => token();
11957
+ }
11958
+ if (key === "toString") {
11959
+ return () => token();
11960
+ }
11961
+ if (typeof key !== "string")
11962
+ return;
11963
+ return createPromptInputProxy([...path, key]);
11964
+ }
11965
+ });
11966
+ }
11967
+ function createPromptTemplateContext() {
11968
+ return {
11969
+ input: createPromptInputProxy(["input"]),
11970
+ env: createPromptInputProxy(["env"]),
11971
+ boboddy: {
11972
+ artifactsDir: createPromptInputProxy([
11973
+ "boboddy",
11974
+ "artifactsDir"
11975
+ ])
11976
+ }
11977
+ };
11978
+ }
11979
+ function renderPromptTemplate(template, contextJson) {
11980
+ return template.replace(/\{\{([^}]+)\}\}/g, (_, path) => {
11981
+ const value = path.split(".").reduce((curr, key) => curr != null ? curr[key] : undefined, contextJson);
11982
+ return value != null ? String(value) : "";
11983
+ });
11984
+ }
11985
+
11950
11986
  // src/definitions/steps/define-step.ts
11951
11987
  var UNWRAP_TYPES = new Set(["optional", "nullable", "default"]);
11952
11988
  function unwrapZodType(schema) {
@@ -11992,7 +12028,8 @@ function defineStep(config2) {
11992
12028
  for (const feature of features) {
11993
12029
  effectiveResult = effectiveResult ? effectiveResult.extend(feature._resultExtension.shape) : feature._resultExtension;
11994
12030
  }
11995
- let effectivePrompt = config2.agentPrompt;
12031
+ const basePrompt = typeof config2.agentPrompt === "function" ? config2.agentPrompt(createPromptTemplateContext()) : config2.agentPrompt;
12032
+ let effectivePrompt = basePrompt;
11996
12033
  for (const feature of features) {
11997
12034
  if (feature._promptAddition) {
11998
12035
  effectivePrompt = effectivePrompt ? `${effectivePrompt}
@@ -12032,29 +12069,6 @@ ${feature._promptAddition}` : feature._promptAddition;
12032
12069
  };
12033
12070
  return spec;
12034
12071
  }
12035
- // src/definitions/steps/prompt-template.ts
12036
- function createPromptInputProxy(path = []) {
12037
- const token = () => path.length ? `{{${path.join(".")}}}` : "";
12038
- return new Proxy(Object.freeze({}), {
12039
- get(_, key) {
12040
- if (key === Symbol.toPrimitive || key === "valueOf") {
12041
- return (_hint) => token();
12042
- }
12043
- if (key === "toString") {
12044
- return () => token();
12045
- }
12046
- if (typeof key !== "string")
12047
- return;
12048
- return createPromptInputProxy([...path, key]);
12049
- }
12050
- });
12051
- }
12052
- function renderPromptTemplate(template, inputJson) {
12053
- return template.replace(/\{\{([^}]+)\}\}/g, (_, path) => {
12054
- const value = path.split(".").reduce((curr, key) => curr != null ? curr[key] : undefined, inputJson);
12055
- return value != null ? String(value) : "";
12056
- });
12057
- }
12058
12072
  // src/generated/core/bodySerializer.gen.ts
12059
12073
  var jsonBodySerializer = {
12060
12074
  bodySerializer: (body) => JSON.stringify(body, (_key, value) => typeof value === "bigint" ? value.toString() : value)
@@ -12936,6 +12950,9 @@ class Projects extends HeyApiClient {
12936
12950
  getProject(options) {
12937
12951
  return (options.client ?? this.client).get({ url: "/api/projects/{projectId}", ...options });
12938
12952
  }
12953
+ getProjectWorkItemSignalScores(options) {
12954
+ return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/work-item-signal-scores", ...options });
12955
+ }
12939
12956
  updateProjectDefaultPipelineAssignment(options) {
12940
12957
  return (options.client ?? this.client).put({
12941
12958
  url: "/api/projects/{projectId}/default-pipeline-assignment",
@@ -13328,6 +13345,31 @@ class ProjectIntegrations extends HeyApiClient {
13328
13345
  }
13329
13346
  }
13330
13347
 
13348
+ class ProjectInvites extends HeyApiClient {
13349
+ getProjectInviteByToken(options) {
13350
+ return (options.client ?? this.client).get({ url: "/api/project-invites/{token}", ...options });
13351
+ }
13352
+ listProjectInvites(options) {
13353
+ return (options.client ?? this.client).get({ url: "/api/projects/{projectId}/invites", ...options });
13354
+ }
13355
+ createProjectInvite(options) {
13356
+ return (options.client ?? this.client).post({
13357
+ url: "/api/projects/{projectId}/invites",
13358
+ ...options,
13359
+ headers: {
13360
+ "Content-Type": "application/json",
13361
+ ...options.headers
13362
+ }
13363
+ });
13364
+ }
13365
+ revokeProjectInvite(options) {
13366
+ return (options.client ?? this.client).post({ url: "/api/projects/{projectId}/invites/{inviteId}/revoke", ...options });
13367
+ }
13368
+ acceptProjectInvite(options) {
13369
+ return (options.client ?? this.client).post({ url: "/api/project-invites/{token}/accept", ...options });
13370
+ }
13371
+ }
13372
+
13331
13373
  class BoboddyClient extends HeyApiClient {
13332
13374
  static __registry = new HeyApiRegistry;
13333
13375
  constructor(args) {
@@ -13378,6 +13420,10 @@ class BoboddyClient extends HeyApiClient {
13378
13420
  get projectIntegrations() {
13379
13421
  return this._projectIntegrations ??= new ProjectIntegrations({ client: this.client });
13380
13422
  }
13423
+ _projectInvites;
13424
+ get projectInvites() {
13425
+ return this._projectInvites ??= new ProjectInvites({ client: this.client });
13426
+ }
13381
13427
  }
13382
13428
 
13383
13429
  // src/definitions/steps/step-definitions-client.ts
@@ -172,6 +172,7 @@ declare const buildStepExecutionPlaneClient: (stepExecutions: StepExecutions) =>
172
172
  agentPrompt: {
173
173
  sessionTitle: string;
174
174
  promptText: string;
175
+ stepInstructionsPlaceholder: string;
175
176
  };
176
177
  }>;
177
178
  completeStepExecution: (stepExecutionId: string, body: {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@boboddy/sdk",
4
- "version": "0.1.43-alpha",
4
+ "version": "0.1.44-alpha",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {