@boboddy/sdk 0.0.13-alpha → 0.1.0-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.
Files changed (43) hide show
  1. package/dist/boboddy-config-parser.d.ts +34 -0
  2. package/dist/boboddy-config-parser.js +510 -0
  3. package/dist/client.d.ts +3 -1
  4. package/dist/client.js +1327 -45
  5. package/dist/definitions/advancement-policies/define-advancement-policy.d.ts +218 -0
  6. package/dist/definitions/advancement-policies/index.d.ts +1 -0
  7. package/dist/definitions/advancement-policies/index.js +95 -0
  8. package/dist/definitions/pipelines/define-pipeline.d.ts +112 -0
  9. package/dist/definitions/pipelines/index.d.ts +1 -0
  10. package/dist/definitions/pipelines/index.js +141 -0
  11. package/dist/{define-step.d.ts → definitions/steps/define-step.d.ts} +37 -4
  12. package/dist/definitions/steps/index.d.ts +2 -0
  13. package/dist/definitions/steps/index.js +13302 -0
  14. package/dist/definitions/steps/step-definitions-client.d.ts +197 -0
  15. package/dist/generated/client/client.gen.d.ts +2 -0
  16. package/dist/generated/client/index.d.ts +8 -0
  17. package/dist/generated/client/types.gen.d.ts +117 -0
  18. package/dist/generated/client/utils.gen.d.ts +33 -0
  19. package/dist/generated/client.gen.d.ts +12 -0
  20. package/dist/generated/core/auth.gen.d.ts +18 -0
  21. package/dist/generated/core/bodySerializer.gen.d.ts +25 -0
  22. package/dist/generated/core/params.gen.d.ts +43 -0
  23. package/dist/generated/core/pathSerializer.gen.d.ts +33 -0
  24. package/dist/generated/core/queryKeySerializer.gen.d.ts +18 -0
  25. package/dist/generated/core/serverSentEvents.gen.d.ts +71 -0
  26. package/dist/generated/core/types.gen.d.ts +78 -0
  27. package/dist/generated/core/utils.gen.d.ts +19 -0
  28. package/dist/generated/index.d.ts +2 -0
  29. package/dist/generated/sdk.gen.d.ts +140 -0
  30. package/dist/generated/types.gen.d.ts +7842 -0
  31. package/dist/index.d.ts +5 -1
  32. package/dist/index.js +16380 -956
  33. package/dist/jsonc.d.ts +3 -0
  34. package/dist/jsonc.js +133 -0
  35. package/dist/opencode-mcp.d.ts +73 -0
  36. package/dist/opencode-mcp.js +14332 -0
  37. package/dist/step-execution-plane-client.d.ts +107 -287
  38. package/package.json +45 -19
  39. package/dist/define-step.js +0 -1018
  40. package/dist/step-definitions-client.d.ts +0 -202
  41. package/dist/step-definitions-client.js +0 -47
  42. package/dist/treaty.d.ts +0 -13
  43. package/dist/treaty.js +0 -34
@@ -0,0 +1,3 @@
1
+ export declare const stripJsoncComments: (content: string) => string;
2
+ export declare const stripTrailingCommas: (content: string) => string;
3
+ export declare const parseJsonc: (content: string) => unknown;
package/dist/jsonc.js ADDED
@@ -0,0 +1,133 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __returnValue = (v) => v;
3
+ function __exportSetter(name, newValue) {
4
+ this[name] = __returnValue.bind(null, newValue);
5
+ }
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, {
9
+ get: all[name],
10
+ enumerable: true,
11
+ configurable: true,
12
+ set: __exportSetter.bind(all, name)
13
+ });
14
+ };
15
+
16
+ // src/jsonc.ts
17
+ var stripJsoncComments = (content) => {
18
+ let result = "";
19
+ let inString = false;
20
+ let escapeNextCharacter = false;
21
+ let lineComment = false;
22
+ let blockComment = false;
23
+ for (let index = 0;index < content.length; index += 1) {
24
+ const character = content.charAt(index);
25
+ const nextCharacter = content.charAt(index + 1);
26
+ if (lineComment) {
27
+ if (character === `
28
+ `) {
29
+ lineComment = false;
30
+ result += character;
31
+ }
32
+ continue;
33
+ }
34
+ if (blockComment) {
35
+ if (character === "*" && nextCharacter === "/") {
36
+ blockComment = false;
37
+ index += 1;
38
+ }
39
+ continue;
40
+ }
41
+ if (inString) {
42
+ result += character;
43
+ if (escapeNextCharacter) {
44
+ escapeNextCharacter = false;
45
+ continue;
46
+ }
47
+ if (character === "\\") {
48
+ escapeNextCharacter = true;
49
+ continue;
50
+ }
51
+ if (character === '"') {
52
+ inString = false;
53
+ }
54
+ continue;
55
+ }
56
+ if (character === '"') {
57
+ inString = true;
58
+ result += character;
59
+ continue;
60
+ }
61
+ if (character === "/" && nextCharacter === "/") {
62
+ lineComment = true;
63
+ index += 1;
64
+ continue;
65
+ }
66
+ if (character === "/" && nextCharacter === "*") {
67
+ blockComment = true;
68
+ index += 1;
69
+ continue;
70
+ }
71
+ result += character;
72
+ }
73
+ return result;
74
+ };
75
+ var stripTrailingCommas = (content) => {
76
+ let result = "";
77
+ let inString = false;
78
+ let escapeNextCharacter = false;
79
+ for (let index = 0;index < content.length; index += 1) {
80
+ const character = content.charAt(index);
81
+ if (inString) {
82
+ result += character;
83
+ if (escapeNextCharacter) {
84
+ escapeNextCharacter = false;
85
+ continue;
86
+ }
87
+ if (character === "\\") {
88
+ escapeNextCharacter = true;
89
+ continue;
90
+ }
91
+ if (character === '"') {
92
+ inString = false;
93
+ }
94
+ continue;
95
+ }
96
+ if (character === '"') {
97
+ inString = true;
98
+ result += character;
99
+ continue;
100
+ }
101
+ if (character === ",") {
102
+ let lookaheadIndex = index + 1;
103
+ while (lookaheadIndex < content.length) {
104
+ const lookaheadCharacter2 = content.charAt(lookaheadIndex);
105
+ if (/\s/u.test(lookaheadCharacter2)) {
106
+ lookaheadIndex += 1;
107
+ continue;
108
+ }
109
+ if (lookaheadCharacter2 === "}" || lookaheadCharacter2 === "]") {
110
+ break;
111
+ }
112
+ result += character;
113
+ break;
114
+ }
115
+ if (lookaheadIndex >= content.length) {
116
+ continue;
117
+ }
118
+ const lookaheadCharacter = content.charAt(lookaheadIndex);
119
+ if (lookaheadCharacter === "}" || lookaheadCharacter === "]") {
120
+ continue;
121
+ }
122
+ continue;
123
+ }
124
+ result += character;
125
+ }
126
+ return result;
127
+ };
128
+ var parseJsonc = (content) => JSON.parse(stripTrailingCommas(stripJsoncComments(content)));
129
+ export {
130
+ stripTrailingCommas,
131
+ stripJsoncComments,
132
+ parseJsonc
133
+ };
@@ -0,0 +1,73 @@
1
+ import { z } from "zod";
2
+ export declare const openCodeMcpLocalConfigSchema: z.ZodObject<{
3
+ type: z.ZodLiteral<"local">;
4
+ command: z.ZodArray<z.ZodString>;
5
+ environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
6
+ enabled: z.ZodOptional<z.ZodBoolean>;
7
+ timeout: z.ZodOptional<z.ZodInt>;
8
+ }, z.core.$strict>;
9
+ export declare const openCodeMcpOAuthConfigSchema: z.ZodObject<{
10
+ clientId: z.ZodOptional<z.ZodString>;
11
+ clientSecret: z.ZodOptional<z.ZodString>;
12
+ scope: z.ZodOptional<z.ZodString>;
13
+ redirectUri: z.ZodOptional<z.ZodString>;
14
+ }, z.core.$strict>;
15
+ export declare const openCodeMcpRemoteConfigSchema: z.ZodObject<{
16
+ type: z.ZodLiteral<"remote">;
17
+ url: z.ZodString;
18
+ enabled: z.ZodOptional<z.ZodBoolean>;
19
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
20
+ oauth: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
21
+ clientId: z.ZodOptional<z.ZodString>;
22
+ clientSecret: z.ZodOptional<z.ZodString>;
23
+ scope: z.ZodOptional<z.ZodString>;
24
+ redirectUri: z.ZodOptional<z.ZodString>;
25
+ }, z.core.$strict>, z.ZodLiteral<false>]>>;
26
+ timeout: z.ZodOptional<z.ZodInt>;
27
+ }, z.core.$strict>;
28
+ export declare const openCodeMcpEnabledOverrideSchema: z.ZodObject<{
29
+ enabled: z.ZodBoolean;
30
+ }, z.core.$strict>;
31
+ export declare const openCodeMcpServerConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
32
+ type: z.ZodLiteral<"local">;
33
+ command: z.ZodArray<z.ZodString>;
34
+ environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
35
+ enabled: z.ZodOptional<z.ZodBoolean>;
36
+ timeout: z.ZodOptional<z.ZodInt>;
37
+ }, z.core.$strict>, z.ZodObject<{
38
+ type: z.ZodLiteral<"remote">;
39
+ url: z.ZodString;
40
+ enabled: z.ZodOptional<z.ZodBoolean>;
41
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
42
+ oauth: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
43
+ clientId: z.ZodOptional<z.ZodString>;
44
+ clientSecret: z.ZodOptional<z.ZodString>;
45
+ scope: z.ZodOptional<z.ZodString>;
46
+ redirectUri: z.ZodOptional<z.ZodString>;
47
+ }, z.core.$strict>, z.ZodLiteral<false>]>>;
48
+ timeout: z.ZodOptional<z.ZodInt>;
49
+ }, z.core.$strict>, z.ZodObject<{
50
+ enabled: z.ZodBoolean;
51
+ }, z.core.$strict>]>;
52
+ export declare const openCodeMcpServersSchema: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodObject<{
53
+ type: z.ZodLiteral<"local">;
54
+ command: z.ZodArray<z.ZodString>;
55
+ environment: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
56
+ enabled: z.ZodOptional<z.ZodBoolean>;
57
+ timeout: z.ZodOptional<z.ZodInt>;
58
+ }, z.core.$strict>, z.ZodObject<{
59
+ type: z.ZodLiteral<"remote">;
60
+ url: z.ZodString;
61
+ enabled: z.ZodOptional<z.ZodBoolean>;
62
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
63
+ oauth: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
64
+ clientId: z.ZodOptional<z.ZodString>;
65
+ clientSecret: z.ZodOptional<z.ZodString>;
66
+ scope: z.ZodOptional<z.ZodString>;
67
+ redirectUri: z.ZodOptional<z.ZodString>;
68
+ }, z.core.$strict>, z.ZodLiteral<false>]>>;
69
+ timeout: z.ZodOptional<z.ZodInt>;
70
+ }, z.core.$strict>, z.ZodObject<{
71
+ enabled: z.ZodBoolean;
72
+ }, z.core.$strict>]>>;
73
+ export type OpenCodeMcpServers = z.infer<typeof openCodeMcpServersSchema>;