@ubiquity-os/plugin-sdk 3.5.5 → 3.6.2
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/README.md +35 -93
- package/dist/configuration.d.mts +2 -2
- package/dist/configuration.d.ts +2 -2
- package/dist/configuration.js +2633 -13
- package/dist/configuration.mjs +2633 -3
- package/dist/{context-DOUnUNNN.d.ts → context-BbEmsEct.d.ts} +2 -0
- package/dist/{context-3Ck9sBZI.d.mts → context-sqbr2o6i.d.mts} +2 -0
- package/dist/index.d.mts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +2242 -94
- package/dist/index.mjs +2237 -90
- package/dist/llm.d.mts +23 -0
- package/dist/llm.d.ts +23 -0
- package/dist/llm.js +109 -0
- package/dist/llm.mjs +84 -0
- package/dist/octokit.d.mts +2 -2
- package/dist/octokit.d.ts +2 -2
- package/dist/octokit.js +164 -2
- package/dist/octokit.mjs +163 -1
- package/dist/signature.d.mts +1 -0
- package/dist/signature.d.ts +1 -0
- package/dist/signature.js +1 -0
- package/dist/signature.mjs +1 -0
- package/package.json +51 -40
|
@@ -97,6 +97,8 @@ interface Context<TConfig = unknown, TEnv = unknown, TCommand = unknown, TSuppor
|
|
|
97
97
|
[K in TSupportedEvents]: K extends EmitterWebhookEventName ? EmitterWebhookEvent<K> : never;
|
|
98
98
|
}[TSupportedEvents]["payload"];
|
|
99
99
|
command: TCommand | null;
|
|
100
|
+
authToken: string;
|
|
101
|
+
ubiquityKernelToken?: string;
|
|
100
102
|
octokit: InstanceType<typeof customOctokit>;
|
|
101
103
|
config: TConfig;
|
|
102
104
|
env: TEnv;
|
|
@@ -97,6 +97,8 @@ interface Context<TConfig = unknown, TEnv = unknown, TCommand = unknown, TSuppor
|
|
|
97
97
|
[K in TSupportedEvents]: K extends EmitterWebhookEventName ? EmitterWebhookEvent<K> : never;
|
|
98
98
|
}[TSupportedEvents]["payload"];
|
|
99
99
|
command: TCommand | null;
|
|
100
|
+
authToken: string;
|
|
101
|
+
ubiquityKernelToken?: string;
|
|
100
102
|
octokit: InstanceType<typeof customOctokit>;
|
|
101
103
|
config: TConfig;
|
|
102
104
|
env: TEnv;
|
package/dist/index.d.mts
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { EmitterWebhookEventName } from '@octokit/webhooks';
|
|
2
|
-
import { C as Context } from './context-
|
|
3
|
-
export { a as CommentHandler } from './context-
|
|
2
|
+
import { C as Context } from './context-sqbr2o6i.mjs';
|
|
3
|
+
export { a as CommentHandler } from './context-sqbr2o6i.mjs';
|
|
4
4
|
import { TSchema, TAnySchema } from '@sinclair/typebox';
|
|
5
5
|
import { LogLevel } from '@ubiquity-os/ubiquity-os-logger';
|
|
6
6
|
import * as hono_types from 'hono/types';
|
|
7
7
|
import { Hono } from 'hono';
|
|
8
8
|
import { Manifest } from './manifest.mjs';
|
|
9
|
+
export { callLlm } from './llm.mjs';
|
|
9
10
|
import '@octokit/plugin-rest-endpoint-methods';
|
|
10
11
|
import './octokit.mjs';
|
|
11
12
|
import '@octokit/core/types';
|
|
12
13
|
import '@octokit/plugin-paginate-graphql';
|
|
13
14
|
import '@octokit/plugin-paginate-rest';
|
|
14
|
-
import '@octokit/
|
|
15
|
+
import '@octokit/request-error';
|
|
15
16
|
import '@octokit/core';
|
|
17
|
+
import './signature.mjs';
|
|
18
|
+
import 'openai/resources/chat/completions';
|
|
16
19
|
|
|
17
20
|
type Return = Record<string, unknown> | undefined | void;
|
|
18
21
|
type HandlerReturn = Promise<Return> | Return;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import { EmitterWebhookEventName } from '@octokit/webhooks';
|
|
2
|
-
import { C as Context } from './context-
|
|
3
|
-
export { a as CommentHandler } from './context-
|
|
2
|
+
import { C as Context } from './context-BbEmsEct.js';
|
|
3
|
+
export { a as CommentHandler } from './context-BbEmsEct.js';
|
|
4
4
|
import { TSchema, TAnySchema } from '@sinclair/typebox';
|
|
5
5
|
import { LogLevel } from '@ubiquity-os/ubiquity-os-logger';
|
|
6
6
|
import * as hono_types from 'hono/types';
|
|
7
7
|
import { Hono } from 'hono';
|
|
8
8
|
import { Manifest } from './manifest.js';
|
|
9
|
+
export { callLlm } from './llm.js';
|
|
9
10
|
import '@octokit/plugin-rest-endpoint-methods';
|
|
10
11
|
import './octokit.js';
|
|
11
12
|
import '@octokit/core/types';
|
|
12
13
|
import '@octokit/plugin-paginate-graphql';
|
|
13
14
|
import '@octokit/plugin-paginate-rest';
|
|
14
|
-
import '@octokit/
|
|
15
|
+
import '@octokit/request-error';
|
|
15
16
|
import '@octokit/core';
|
|
17
|
+
import './signature.js';
|
|
18
|
+
import 'openai/resources/chat/completions';
|
|
16
19
|
|
|
17
20
|
type Return = Record<string, unknown> | undefined | void;
|
|
18
21
|
type HandlerReturn = Promise<Return> | Return;
|