Skip to content

Commit 64ecad3

Browse files
committed
chore: format
1 parent 281df2b commit 64ecad3

20 files changed

+136
-148
lines changed

CHANGELOG.md

Lines changed: 81 additions & 94 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ You can use the `dryRun` option to return the api arguments from a tool call wit
458458
```typescript
459459
import { StackOneToolSet } from "@stackone/ai";
460460

461-
// Initialise the toolset
461+
// Initialize the toolset
462462
const toolset = new StackOneToolSet({
463463
baseUrl: "https://api.stackone.com",
464464
});

examples/ai-sdk-integration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ if (!apiKey) {
2626
const accountId = 'your-bamboohr-account-id';
2727

2828
const aiSdkIntegration = async (): Promise<void> => {
29-
// Initialise StackOne
29+
// Initialize StackOne
3030
const toolset = new StackOneToolSet({
3131
accountId,
3232
baseUrl: process.env.STACKONE_BASE_URL ?? 'https://api.stackone.com',

examples/anthropic-integration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (!apiKey) {
1717
const accountId = 'your-hris-account-id';
1818

1919
const anthropicIntegration = async (): Promise<void> => {
20-
// Initialise StackOne
20+
// Initialize StackOne
2121
const toolset = new StackOneToolSet({
2222
accountId,
2323
baseUrl: process.env.STACKONE_BASE_URL ?? 'https://api.stackone.com',
@@ -29,7 +29,7 @@ const anthropicIntegration = async (): Promise<void> => {
2929
});
3030
const anthropicTools = tools.toAnthropic();
3131

32-
// Initialise Anthropic client
32+
// Initialize Anthropic client
3333
const anthropic = new Anthropic();
3434

3535
// Create a message with tool calls

examples/claude-agent-sdk-integration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ if (!apiKey) {
2121
const accountId = 'your-bamboohr-account-id';
2222

2323
const claudeAgentSdkIntegration = async (): Promise<void> => {
24-
// Initialise StackOne
24+
// Initialize StackOne
2525
const toolset = new StackOneToolSet({
2626
accountId,
2727
baseUrl: process.env.STACKONE_BASE_URL ?? 'https://api.stackone.com',

examples/fetch-tools-debug.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ if ((typeof globalThis.Bun as any) !== 'undefined') {
203203
}
204204

205205
const spinner = clack.spinner();
206-
spinner.start('Initialising StackOne client...');
206+
spinner.start('Initializing StackOne client...');
207207

208208
const toolset = new StackOneToolSet({
209209
apiKey,

examples/meta-tools.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const accountId = 'your-bamboohr-account-id';
2626
const metaToolsWithAISDK = async (): Promise<void> => {
2727
console.log('🔍 Example 1: Dynamic tool discovery with AI SDK\n');
2828

29-
// Initialise StackOne toolset
29+
// Initialize StackOne toolset
3030
const toolset = new StackOneToolSet({
3131
accountId,
3232
baseUrl: process.env.STACKONE_BASE_URL ?? 'https://api.stackone.com',
@@ -64,7 +64,7 @@ const metaToolsWithOpenAI = async (): Promise<void> => {
6464
apiKey: process.env.OPENAI_API_KEY,
6565
});
6666

67-
// Initialise StackOne toolset
67+
// Initialize StackOne toolset
6868
const toolset = new StackOneToolSet({
6969
accountId,
7070
baseUrl: process.env.STACKONE_BASE_URL ?? 'https://api.stackone.com',
@@ -118,7 +118,7 @@ const metaToolsWithOpenAI = async (): Promise<void> => {
118118
const directMetaToolUsage = async (): Promise<void> => {
119119
console.log('\n🛠️ Example 3: Direct meta tool usage\n');
120120

121-
// Initialise toolset
121+
// Initialize toolset
122122
const toolset = new StackOneToolSet({
123123
accountId,
124124
baseUrl: process.env.STACKONE_BASE_URL ?? 'https://api.stackone.com',

examples/openai-integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('openai-integration example e2e', () => {
3333
expect(openAITools[0]).toHaveProperty('type', 'function');
3434
expect(openAITools[0]).toHaveProperty('function');
3535

36-
// Initialise OpenAI client
36+
// Initialize OpenAI client
3737
const openai = new OpenAI();
3838

3939
// Create a chat completion with tool calls

examples/openai-integration.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ if (!apiKey) {
1717
const accountId = 'your-bamboohr-account-id';
1818

1919
const openaiIntegration = async (): Promise<void> => {
20-
// Initialise StackOne
20+
// Initialize StackOne
2121
const toolset = new StackOneToolSet({
2222
accountId,
2323
baseUrl: process.env.STACKONE_BASE_URL ?? 'https://api.stackone.com',
@@ -27,7 +27,7 @@ const openaiIntegration = async (): Promise<void> => {
2727
const tools = await toolset.fetchTools();
2828
const openAITools = tools.toOpenAI();
2929

30-
// Initialise OpenAI client
30+
// Initialize OpenAI client
3131
const openai = new OpenAI();
3232

3333
// Create a chat completion with tool calls

examples/openai-responses-integration.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('openai-responses-integration example e2e', () => {
3232
expect(Array.isArray(openAIResponsesTools)).toBe(true);
3333
expect(openAIResponsesTools.length).toBeGreaterThan(0);
3434

35-
// Initialise OpenAI client
35+
// Initialize OpenAI client
3636
const openai = new OpenAI();
3737

3838
// Create a response with tool calls using the Responses API

0 commit comments

Comments
 (0)