opencode-deepseek-peak 0.1.0

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/rpc.js ADDED
@@ -0,0 +1,77 @@
1
+ // src/rpc.ts
2
+ import { Rpc } from "@opencode/plugin/rpc";
3
+ var statusSchema = {
4
+ type: "object",
5
+ properties: {
6
+ sessionID: { type: "string" },
7
+ providerID: { type: "string" },
8
+ modelID: { type: "string" },
9
+ period: { type: "string", enum: ["peak", "off-peak"] },
10
+ scheduledPeriod: { type: "string", enum: ["peak", "off-peak"] },
11
+ source: { type: "string", enum: ["official-schedule", "api-header"] },
12
+ phase: { type: "string", enum: ["request", "response"] },
13
+ mismatch: { type: "boolean" },
14
+ observedAt: { type: "number" },
15
+ evidence: { type: "string" },
16
+ holiday: { type: "string" }
17
+ },
18
+ required: [
19
+ "sessionID",
20
+ "providerID",
21
+ "modelID",
22
+ "period",
23
+ "scheduledPeriod",
24
+ "source",
25
+ "phase",
26
+ "mismatch",
27
+ "observedAt",
28
+ "evidence"
29
+ ],
30
+ additionalProperties: false
31
+ };
32
+ var DeepSeekPeakRpc = Rpc.define({
33
+ id: "deepseek-peak",
34
+ methods: {
35
+ status: {
36
+ input: {
37
+ type: "object",
38
+ properties: { sessionID: { type: "string" } },
39
+ required: ["sessionID"],
40
+ additionalProperties: false
41
+ },
42
+ output: {
43
+ type: "object",
44
+ properties: {
45
+ found: { type: "boolean" },
46
+ status: statusSchema
47
+ },
48
+ required: ["found"],
49
+ additionalProperties: false
50
+ }
51
+ },
52
+ preview: {
53
+ input: {
54
+ type: "object",
55
+ properties: { sessionID: { type: "string" } },
56
+ required: ["sessionID"],
57
+ additionalProperties: false
58
+ },
59
+ output: {
60
+ type: "object",
61
+ properties: {
62
+ found: { type: "boolean" },
63
+ status: statusSchema
64
+ },
65
+ required: ["found"],
66
+ additionalProperties: false
67
+ }
68
+ }
69
+ },
70
+ events: {
71
+ updated: { schema: statusSchema }
72
+ }
73
+ });
74
+ export {
75
+ DeepSeekPeakRpc
76
+ };
77
+ //# sourceMappingURL=rpc.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": ["../src/rpc.ts"],
4
+ "sourcesContent": ["import { Rpc } from \"@opencode/plugin/rpc\"\n\nconst statusSchema = {\n type: \"object\",\n properties: {\n sessionID: { type: \"string\" },\n providerID: { type: \"string\" },\n modelID: { type: \"string\" },\n period: { type: \"string\", enum: [\"peak\", \"off-peak\"] },\n scheduledPeriod: { type: \"string\", enum: [\"peak\", \"off-peak\"] },\n source: { type: \"string\", enum: [\"official-schedule\", \"api-header\"] },\n phase: { type: \"string\", enum: [\"request\", \"response\"] },\n mismatch: { type: \"boolean\" },\n observedAt: { type: \"number\" },\n evidence: { type: \"string\" },\n holiday: { type: \"string\" },\n },\n required: [\n \"sessionID\",\n \"providerID\",\n \"modelID\",\n \"period\",\n \"scheduledPeriod\",\n \"source\",\n \"phase\",\n \"mismatch\",\n \"observedAt\",\n \"evidence\",\n ],\n additionalProperties: false,\n} as const\n\nexport const DeepSeekPeakRpc = Rpc.define({\n id: \"deepseek-peak\",\n methods: {\n status: {\n input: {\n type: \"object\",\n properties: { sessionID: { type: \"string\" } },\n required: [\"sessionID\"],\n additionalProperties: false,\n },\n output: {\n type: \"object\",\n properties: {\n found: { type: \"boolean\" },\n status: statusSchema,\n },\n required: [\"found\"],\n additionalProperties: false,\n },\n },\n preview: {\n input: {\n type: \"object\",\n properties: { sessionID: { type: \"string\" } },\n required: [\"sessionID\"],\n additionalProperties: false,\n },\n output: {\n type: \"object\",\n properties: {\n found: { type: \"boolean\" },\n status: statusSchema,\n },\n required: [\"found\"],\n additionalProperties: false,\n },\n },\n },\n events: {\n updated: { schema: statusSchema },\n },\n})\n"],
5
+ "mappings": ";AAAA,SAAS,WAAW;AAEpB,IAAM,eAAe;AAAA,EACnB,MAAM;AAAA,EACN,YAAY;AAAA,IACV,WAAW,EAAE,MAAM,SAAS;AAAA,IAC5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