@openchamber/web 1.21.0 → 1.22.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/bin/cli.test.js +35 -0
- package/bin/lib/DOCUMENTATION.md +12 -0
- package/bin/lib/cli-settings-accessors.js +111 -0
- package/bin/lib/cli-settings-accessors.test.js +189 -0
- package/bin/lib/cli-startup.js +29 -9
- package/bin/lib/commands-connect-url.js +12 -14
- package/dist/assets/{CodeMirrorCommentWidgets-C2BopIs3.js → CodeMirrorCommentWidgets-CPvfxh0N.js} +1 -1
- package/dist/assets/CommitSection-CC5mFzO2.js +1 -0
- package/dist/assets/DiffView-6xGdyI0n.js +4 -0
- package/dist/assets/FilesView-Bm3vT63N.js +17 -0
- package/dist/assets/GitView-B6y1Y69c.js +6 -0
- package/dist/assets/{JsonTreeView-osju7J70.js → JsonTreeView-rwHz84MX.js} +1 -1
- package/dist/assets/LinearIssuesView-B0UM_Rkx.js +1 -0
- package/dist/assets/MarkdownImageGallery-sGilV9Hs.js +1 -0
- package/dist/assets/MarkdownRendererImpl--4sRsKBn.js +12 -0
- package/dist/assets/OnboardingScreen-CECL_Cms.js +1 -0
- package/dist/assets/{PatchDiff-Dan3mADn.js → PatchDiff-BGPl1s-U.js} +1 -1
- package/dist/assets/{PierreDiffViewer-CGoI2v0q.js → PierreDiffViewer-Cvz9Z-io.js} +2 -2
- package/dist/assets/PlanView-BFMsnHk3.js +5 -0
- package/dist/assets/SettingsView-_Gtn5SdT.js +28 -0
- package/dist/assets/{SettingsWindow-DXF-MTHG.js → SettingsWindow-C1Qa09YO.js} +1 -1
- package/dist/assets/{ToolOutputDialog-DrCa1JRk.js → ToolOutputDialog-DzQlzMF4.js} +6 -6
- package/dist/assets/{ToolPartDiffPreview-B_tfvlNF.js → ToolPartDiffPreview-DfVOfwHy.js} +2 -2
- package/dist/assets/{VirtualizedFileDiff-CN_BctrR.js → VirtualizedFileDiff-DT5MDv-u.js} +1 -1
- package/dist/assets/WalkthroughView-D8sLH_M8.js +4 -0
- package/dist/assets/{computeVirtualFileMetrics-Gi1d5eU1.js → computeVirtualFileMetrics-DmpLWhll.js} +1 -1
- package/dist/assets/{contextPanelEmbeddedChat-CpzVNWAv.js → contextPanelEmbeddedChat-BK78t3M_.js} +1 -1
- package/dist/assets/de-C3luvSd_.js +9 -0
- package/dist/assets/es-CmU4HLv9.js +15 -0
- package/dist/assets/fr-Bgyni40l.js +13 -0
- package/dist/assets/index-C57jT0Sa.css +1 -0
- package/dist/assets/{index-Brm3X9rs.js → index-CWYs7sMK.js} +1 -1
- package/dist/assets/index-b0zDkWyg.js +7 -0
- package/dist/assets/{isDiffPlainText-pH9kAJQH.js → isDiffPlainText-BO_q5ezD.js} +1 -1
- package/dist/assets/{isFilePlainText-CVKy_dgB.js → isFilePlainText-D8qPqUAf.js} +1 -1
- package/dist/assets/ja-C1ImKinT.js +15 -0
- package/dist/assets/ko-CP7OdxYH.js +15 -0
- package/dist/assets/main-D4rd8Hy5.js +928 -0
- package/dist/assets/{main-vUCh0VB0.js → main-D7fwjW2z.js} +2 -2
- package/dist/assets/{markdown-shiki.worker-CKGJ1J33.js → markdown-shiki.worker-D5fBU-lw.js} +5 -5
- package/dist/assets/markdownCore-BcmkWZPO.js +3 -0
- package/dist/assets/{miniChat-BlzGEYgE.js → miniChat-D5rraz-g.js} +2 -2
- package/dist/assets/{mobile-CkX6H-IT.js → mobile-Cg_DE3KL.js} +2 -2
- package/dist/assets/{patchFileDiff-BCTsE43U.js → patchFileDiff-Bpql0QGw.js} +3 -3
- package/dist/assets/pl-DQYSiGYX.js +15 -0
- package/dist/assets/pt-BR-DytpsW4M.js +15 -0
- package/dist/assets/{renderElectronMiniChatApp-CJYe_KOL.js → renderElectronMiniChatApp-B_Bn7BbN.js} +2 -2
- package/dist/assets/renderMobileApp-DLfxMzGJ.js +25 -0
- package/dist/assets/runtimeEndpointReset-HlRmXFGW.js +16 -0
- package/dist/assets/scheduledTasksApi-BPvxrynl.js +1 -0
- package/dist/assets/{shikiHighlight-BgTPSITe.js → shikiHighlight-CFAVs_lu.js} +1 -1
- package/dist/assets/tr-aizaUvft.js +6 -0
- package/dist/assets/uk-DwnRxJZd.js +15 -0
- package/dist/assets/useAppFontEffects-DWXGRUPZ.js +7310 -0
- package/dist/assets/{useInlineCommentController-DFFv0hae.js → useInlineCommentController-Cc0OCXr0.js} +2 -2
- package/dist/assets/useRootScrollLock-BFZtfciC.js +1 -0
- package/dist/assets/{vendor-base-ui-_6j2xOWl.js → vendor-base-ui-BeMD8X_w.js} +1 -1
- package/dist/assets/{vendor-codemirror-language-data-DkQX2EBa.js → vendor-codemirror-language-data-BGFszm8n.js} +2 -2
- package/dist/assets/{vendor-floating-ui-core-CXmKXOXc.js → vendor-floating-ui-core-PuGzNPnN.js} +1 -1
- package/dist/assets/{vendor-floating-ui-dom-WyXykhNi.js → vendor-floating-ui-dom-BTvzWks8.js} +1 -1
- package/dist/assets/{vendor-floating-ui-react-dom-DKpLs02S.js → vendor-floating-ui-react-dom-DxYCWdHj.js} +1 -1
- package/dist/assets/{vendor-floating-ui-utils-BzXdqYpP.js → vendor-floating-ui-utils-D6FqdtJt.js} +1 -1
- package/dist/assets/vendor-linkify-it-DZCzzDkK.js +1 -0
- package/dist/assets/vendor-marked-linkify-it-CXI_LHIE.js +1 -0
- package/dist/assets/vendor-uc.micro-BAd0H0z4.js +1 -0
- package/dist/assets/{web-components-DLnGY4fs.js → web-components-CD-GFayc.js} +4 -4
- package/dist/assets/zh-CN-UDNMxm7r.js +15 -0
- package/dist/assets/zh-TW-BsswdYL-.js +15 -0
- package/dist/index.html +5 -5
- package/dist/mini-chat.html +3 -3
- package/dist/mobile.html +3 -3
- package/dist/site.webmanifest +1 -1
- package/dist/sw.js +1 -1
- package/package.json +2 -2
- package/public/site.webmanifest +1 -1
- package/server/index.js +6 -2
- package/server/lib/cloudflare-tunnel.js +1 -1
- package/server/lib/dictation/DOCUMENTATION.md +19 -6
- package/server/lib/dictation/local/model-catalog.js +220 -0
- package/server/lib/dictation/local/model-catalog.test.js +42 -0
- package/server/lib/dictation/local/sherpa-tts.js +41 -20
- package/server/lib/dictation/local/worker-process.js +2 -0
- package/server/lib/dictation/runtime.js +4 -0
- package/server/lib/dictation/service.js +27 -4
- package/server/lib/fs/DOCUMENTATION.md +5 -0
- package/server/lib/fs/routes.js +150 -0
- package/server/lib/fs/routes.test.js +308 -3
- package/server/lib/git/DOCUMENTATION.md +4 -3
- package/server/lib/git/service.js +128 -6
- package/server/lib/git/service.test.js +191 -1
- package/server/lib/linear/DOCUMENTATION.md +97 -0
- package/server/lib/linear/OAUTH-BROKER-HANDOFF.md +91 -0
- package/server/lib/linear/auth.js +436 -0
- package/server/lib/linear/auth.test.js +242 -0
- package/server/lib/linear/client.js +191 -0
- package/server/lib/linear/index.js +61 -0
- package/server/lib/linear/issues.js +499 -0
- package/server/lib/linear/issues.test.js +512 -0
- package/server/lib/linear/mapping.js +188 -0
- package/server/lib/linear/mapping.test.js +147 -0
- package/server/lib/linear/oauth.js +345 -0
- package/server/lib/linear/oauth.test.js +166 -0
- package/server/lib/linear/parse.js +23 -0
- package/server/lib/linear/routes.js +432 -0
- package/server/lib/linear/routes.test.js +661 -0
- package/server/lib/linear/status-runtime.js +64 -0
- package/server/lib/linear/status-runtime.test.js +167 -0
- package/server/lib/linear/status.js +280 -0
- package/server/lib/linear/status.test.js +271 -0
- package/server/lib/linear/teams.js +72 -0
- package/server/lib/linear/teams.test.js +94 -0
- package/server/lib/markdown-image-grants/DOCUMENTATION.md +4 -0
- package/server/lib/markdown-image-grants/routes.js +3 -1
- package/server/lib/markdown-image-grants/routes.test.js +14 -0
- package/server/lib/openchamber-sessions/routes.js +4 -1
- package/server/lib/openchamber-sessions/routes.test.js +23 -0
- package/server/lib/opencode/env-runtime.js +17 -1
- package/server/lib/opencode/env-runtime.test.js +56 -0
- package/server/lib/opencode/feature-routes-runtime.js +2 -0
- package/server/lib/opencode/lifecycle.js +48 -9
- package/server/lib/opencode/lifecycle.test.js +125 -1
- package/server/lib/opencode/managed-process-registry.d.ts +13 -0
- package/server/lib/opencode/managed-process-registry.js +213 -163
- package/server/lib/opencode/managed-process-registry.test.mjs +285 -0
- package/server/lib/opencode/project-directory-runtime.js +16 -11
- package/server/lib/opencode/project-directory-runtime.test.js +32 -12
- package/server/lib/opencode/pwa-manifest-routes.js +1 -1
- package/server/lib/opencode/routes-upgrade.test.js +96 -12
- package/server/lib/opencode/routes.js +53 -5
- package/server/lib/opencode/settings-helpers.js +3 -0
- package/server/lib/opencode/settings-helpers.test.js +10 -0
- package/server/lib/opencode/static-routes-runtime.js +3 -3
- package/server/lib/opencode/theme-runtime.js +1 -1
- package/server/lib/opencode/theme-runtime.test.js +129 -0
- package/server/lib/projects/project-config.js +33 -5
- package/server/lib/projects/project-config.test.js +85 -0
- package/server/lib/quota/DOCUMENTATION.md +19 -0
- package/server/lib/quota/providers/copilot.js +26 -10
- package/server/lib/quota/providers/copilot.test.js +78 -0
- package/server/lib/scheduled-tasks/DOCUMENTATION.md +7 -0
- package/server/lib/small-model/DOCUMENTATION.md +11 -5
- package/server/lib/small-model/call.js +64 -20
- package/server/lib/small-model/call.test.js +184 -2
- package/server/lib/tts/DOCUMENTATION.md +1 -0
- package/server/lib/tts/language-detect.js +210 -0
- package/server/lib/tts/language-detect.test.js +76 -0
- package/server/lib/tts/routes.js +23 -1
- package/server/lib/tts/routes.test.js +26 -0
- package/server/lib/tunnels/install-help.js +2 -2
- package/server/lib/tunnels/install-help.test.js +9 -0
- package/server/lib/walkthrough/languages.js +1 -0
- package/dist/assets/CommitSection-HJeMUAWb.js +0 -1
- package/dist/assets/DiffView-D5cvbEPb.js +0 -4
- package/dist/assets/FilesView-DPU8aNPL.js +0 -17
- package/dist/assets/GitView-Ct6xWrVH.js +0 -6
- package/dist/assets/MarkdownImageGallery-EujHSZ2M.js +0 -1
- package/dist/assets/MarkdownRendererImpl-CPzu4kIr.js +0 -12
- package/dist/assets/OnboardingScreen-w2VG4fWY.js +0 -1
- package/dist/assets/PlanView-Dgg-WTEc.js +0 -4
- package/dist/assets/SessionSwitcherDropdown-CJTrc8K7.js +0 -1
- package/dist/assets/SettingsView-D9yRuFZw.js +0 -28
- package/dist/assets/WalkthroughView-D9Q4lr5x.js +0 -4
- package/dist/assets/de-B_LdJwEM.js +0 -9
- package/dist/assets/es-CubfsAYV.js +0 -15
- package/dist/assets/fr-5qJM0nFS.js +0 -13
- package/dist/assets/index-BW82eK5v.css +0 -1
- package/dist/assets/index-rlLjZUM5.js +0 -7
- package/dist/assets/ja-DJYIBUlH.js +0 -15
- package/dist/assets/ko-DcUBkB7y.js +0 -15
- package/dist/assets/main-DLBxKIoX.js +0 -926
- package/dist/assets/markdownCore-DG6GHLF4.js +0 -3
- package/dist/assets/pl-rB6BLcio.js +0 -15
- package/dist/assets/pt-BR-DcwtlO-o.js +0 -15
- package/dist/assets/renderMobileApp-hQJTnr8B.js +0 -25
- package/dist/assets/runtimeEndpointReset-BDh7r8BL.js +0 -15
- package/dist/assets/scheduledTasksApi-CAGPh_gZ.js +0 -1
- package/dist/assets/uk-INZlFD9A.js +0 -15
- package/dist/assets/useAppFontEffects-Cll4gnsh.js +0 -7268
- package/dist/assets/zh-CN-Dzda8xa1.js +0 -15
- package/dist/assets/zh-TW-Cwn3rNYZ.js +0 -15
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import {
|
|
2
|
+
getLinearAuth,
|
|
3
|
+
getLinearAuthByWorkspaceId,
|
|
4
|
+
setLinearAuth,
|
|
5
|
+
clearLinearAuth,
|
|
6
|
+
isLinearAccessTokenStale,
|
|
7
|
+
} from './auth.js';
|
|
8
|
+
import { refreshAccessToken } from './oauth.js';
|
|
9
|
+
import { isPlainObject, readTrimmedString } from './parse.js';
|
|
10
|
+
|
|
11
|
+
const LINEAR_GRAPHQL_URL = 'https://api.linear.app/graphql';
|
|
12
|
+
const VIEWER_QUERY = '{ viewer { id name displayName email avatarUrl } organization { id name urlKey } }';
|
|
13
|
+
// Linear file URLs in GraphQL need this header or the browser cannot load
|
|
14
|
+
// uploads.linear.app images (comment screenshots, description images).
|
|
15
|
+
const LINEAR_PUBLIC_FILE_URL_TTL_SECONDS = '3600';
|
|
16
|
+
|
|
17
|
+
export class LinearApiError extends Error {
|
|
18
|
+
constructor(message, status, options = {}) {
|
|
19
|
+
super(message);
|
|
20
|
+
this.name = 'LinearApiError';
|
|
21
|
+
this.status = status;
|
|
22
|
+
this.userError = options.userError === true;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
function readGraphqlError(payload) {
|
|
27
|
+
const errors = Array.isArray(payload.errors) ? payload.errors : [];
|
|
28
|
+
const first = errors.length > 0 && isPlainObject(errors[0]) ? errors[0] : null;
|
|
29
|
+
if (!first) {
|
|
30
|
+
return { message: '', userError: false, status: 502 };
|
|
31
|
+
}
|
|
32
|
+
const extensions = isPlainObject(first.extensions) ? first.extensions : null;
|
|
33
|
+
const presentable = extensions ? readTrimmedString(extensions.userPresentableMessage) : '';
|
|
34
|
+
let constraint = '';
|
|
35
|
+
const validationErrors = extensions && Array.isArray(extensions.validationErrors)
|
|
36
|
+
? extensions.validationErrors
|
|
37
|
+
: [];
|
|
38
|
+
for (const entry of validationErrors) {
|
|
39
|
+
if (!isPlainObject(entry) || !isPlainObject(entry.constraints)) continue;
|
|
40
|
+
for (const value of Object.values(entry.constraints)) {
|
|
41
|
+
const text = readTrimmedString(value);
|
|
42
|
+
if (text) {
|
|
43
|
+
constraint = text;
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
if (constraint) break;
|
|
48
|
+
}
|
|
49
|
+
const message = presentable || constraint || readTrimmedString(first.message);
|
|
50
|
+
const code = extensions ? readTrimmedString(extensions.code) : '';
|
|
51
|
+
const userError = extensions?.userError === true
|
|
52
|
+
|| code === 'INVALID_INPUT'
|
|
53
|
+
|| code === 'INPUT_ERROR'
|
|
54
|
+
|| /^entity not found/i.test(message)
|
|
55
|
+
|| /^argument validation/i.test(message);
|
|
56
|
+
return {
|
|
57
|
+
message,
|
|
58
|
+
userError,
|
|
59
|
+
status: userError ? 400 : 502,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
function readIdentity(payload) {
|
|
64
|
+
const data = isPlainObject(payload) ? payload.data : null;
|
|
65
|
+
const viewer = isPlainObject(data) ? data.viewer : null;
|
|
66
|
+
if (!isPlainObject(viewer) || !readTrimmedString(viewer.id)) {
|
|
67
|
+
return null;
|
|
68
|
+
}
|
|
69
|
+
const organization = isPlainObject(data) ? data.organization : null;
|
|
70
|
+
const organizationId = isPlainObject(organization) ? readTrimmedString(organization.id) : '';
|
|
71
|
+
const organizationName = isPlainObject(organization) ? readTrimmedString(organization.name) : '';
|
|
72
|
+
return {
|
|
73
|
+
user: {
|
|
74
|
+
id: viewer.id.trim(),
|
|
75
|
+
name: readTrimmedString(viewer.name) || null,
|
|
76
|
+
displayName: readTrimmedString(viewer.displayName) || null,
|
|
77
|
+
email: readTrimmedString(viewer.email) || null,
|
|
78
|
+
avatarUrl: readTrimmedString(viewer.avatarUrl) || null,
|
|
79
|
+
},
|
|
80
|
+
organization: organizationId && organizationName
|
|
81
|
+
? {
|
|
82
|
+
id: organizationId,
|
|
83
|
+
name: organizationName,
|
|
84
|
+
urlKey: readTrimmedString(organization.urlKey) || null,
|
|
85
|
+
}
|
|
86
|
+
: null,
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export async function fetchLinearGraphql(accessToken, query, variables) {
|
|
91
|
+
const token = readTrimmedString(accessToken);
|
|
92
|
+
if (!token) {
|
|
93
|
+
throw new LinearApiError('Linear is not connected', 401);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
const body = { query };
|
|
97
|
+
if (isPlainObject(variables)) {
|
|
98
|
+
body.variables = variables;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
const response = await fetch(LINEAR_GRAPHQL_URL, {
|
|
102
|
+
method: 'POST',
|
|
103
|
+
headers: {
|
|
104
|
+
Accept: 'application/json',
|
|
105
|
+
'Content-Type': 'application/json',
|
|
106
|
+
Authorization: `Bearer ${token}`,
|
|
107
|
+
'public-file-urls-expire-in': LINEAR_PUBLIC_FILE_URL_TTL_SECONDS,
|
|
108
|
+
},
|
|
109
|
+
body: JSON.stringify(body),
|
|
110
|
+
});
|
|
111
|
+
const payload = await response.json().catch(() => null);
|
|
112
|
+
if (response.status === 401) {
|
|
113
|
+
throw new LinearApiError('Linear token expired or revoked', 401);
|
|
114
|
+
}
|
|
115
|
+
if (!response.ok) {
|
|
116
|
+
throw new LinearApiError(`Linear GraphQL request failed (${response.status})`, response.status);
|
|
117
|
+
}
|
|
118
|
+
if (!isPlainObject(payload)) {
|
|
119
|
+
throw new LinearApiError('Linear GraphQL response was not JSON', 502);
|
|
120
|
+
}
|
|
121
|
+
const data = isPlainObject(payload.data) ? payload.data : null;
|
|
122
|
+
if (!data) {
|
|
123
|
+
const graphqlError = readGraphqlError(payload);
|
|
124
|
+
throw new LinearApiError(
|
|
125
|
+
graphqlError.message || 'Linear GraphQL response did not include data',
|
|
126
|
+
graphqlError.status,
|
|
127
|
+
{ userError: graphqlError.userError },
|
|
128
|
+
);
|
|
129
|
+
}
|
|
130
|
+
return data;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export async function fetchLinearIdentity(accessToken) {
|
|
134
|
+
const data = await fetchLinearGraphql(accessToken, VIEWER_QUERY);
|
|
135
|
+
const identity = readIdentity({ data });
|
|
136
|
+
if (!identity) {
|
|
137
|
+
throw new LinearApiError('Linear GraphQL response did not include a viewer', 502);
|
|
138
|
+
}
|
|
139
|
+
return identity;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
const inFlightRefreshByWorkspace = new Map();
|
|
143
|
+
|
|
144
|
+
async function refreshWorkspaceAuth(auth) {
|
|
145
|
+
const tokens = await refreshAccessToken(auth.refreshToken);
|
|
146
|
+
const next = setLinearAuth({
|
|
147
|
+
accessToken: tokens.accessToken,
|
|
148
|
+
refreshToken: tokens.refreshToken || auth.refreshToken,
|
|
149
|
+
tokenType: tokens.tokenType,
|
|
150
|
+
expiresAt: tokens.expiresAt,
|
|
151
|
+
scope: tokens.scope || auth.scope,
|
|
152
|
+
user: auth.user,
|
|
153
|
+
organization: auth.organization,
|
|
154
|
+
workspaceId: auth.workspaceId,
|
|
155
|
+
}, { activate: false });
|
|
156
|
+
return next.accessToken;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
export async function getValidLinearAccessToken(workspaceId) {
|
|
160
|
+
const auth = workspaceId
|
|
161
|
+
? getLinearAuthByWorkspaceId(workspaceId)
|
|
162
|
+
: getLinearAuth();
|
|
163
|
+
if (!auth?.accessToken) {
|
|
164
|
+
return null;
|
|
165
|
+
}
|
|
166
|
+
if (!isLinearAccessTokenStale(auth.expiresAt)) {
|
|
167
|
+
return auth.accessToken;
|
|
168
|
+
}
|
|
169
|
+
if (!auth.refreshToken) {
|
|
170
|
+
clearLinearAuth(auth.workspaceId);
|
|
171
|
+
return null;
|
|
172
|
+
}
|
|
173
|
+
const key = auth.workspaceId;
|
|
174
|
+
const pending = inFlightRefreshByWorkspace.get(key);
|
|
175
|
+
if (pending) {
|
|
176
|
+
return pending;
|
|
177
|
+
}
|
|
178
|
+
const promise = refreshWorkspaceAuth(auth)
|
|
179
|
+
.catch((error) => {
|
|
180
|
+
if (error?.code === 'INVALID_GRANT' || error?.status === 400 || error?.status === 401) {
|
|
181
|
+
clearLinearAuth(auth.workspaceId);
|
|
182
|
+
return null;
|
|
183
|
+
}
|
|
184
|
+
throw error;
|
|
185
|
+
})
|
|
186
|
+
.finally(() => {
|
|
187
|
+
inFlightRefreshByWorkspace.delete(key);
|
|
188
|
+
});
|
|
189
|
+
inFlightRefreshByWorkspace.set(key, promise);
|
|
190
|
+
return promise;
|
|
191
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
export {
|
|
2
|
+
getLinearAuth,
|
|
3
|
+
getLinearAuthByWorkspaceId,
|
|
4
|
+
getLinearAuthWorkspaces,
|
|
5
|
+
setLinearAuth,
|
|
6
|
+
activateLinearAuth,
|
|
7
|
+
clearLinearAuth,
|
|
8
|
+
toLinearPublicStatus,
|
|
9
|
+
getLinearClientId,
|
|
10
|
+
getLinearClientSecret,
|
|
11
|
+
getLinearScopes,
|
|
12
|
+
getLinearBrokerUrl,
|
|
13
|
+
getLinearRedirectUri,
|
|
14
|
+
isLinearAccessTokenStale,
|
|
15
|
+
getLinearAuthFilePath,
|
|
16
|
+
getLinearSessionCommentsEnabled,
|
|
17
|
+
setLinearSessionCommentsEnabled,
|
|
18
|
+
DEFAULT_LINEAR_CLIENT_ID_VALUE,
|
|
19
|
+
} from './auth.js';
|
|
20
|
+
|
|
21
|
+
export {
|
|
22
|
+
startAuthorization,
|
|
23
|
+
consumeAuthorizationCallback,
|
|
24
|
+
pollAuthorizationBroker,
|
|
25
|
+
completeAuthorizationBroker,
|
|
26
|
+
refreshAccessToken,
|
|
27
|
+
revokeToken,
|
|
28
|
+
LinearOAuthError,
|
|
29
|
+
} from './oauth.js';
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
fetchLinearIdentity,
|
|
33
|
+
getValidLinearAccessToken,
|
|
34
|
+
LinearApiError,
|
|
35
|
+
} from './client.js';
|
|
36
|
+
|
|
37
|
+
export {
|
|
38
|
+
listLinearIssues,
|
|
39
|
+
getLinearIssue,
|
|
40
|
+
listLinearIssueStates,
|
|
41
|
+
updateLinearIssue,
|
|
42
|
+
} from './issues.js';
|
|
43
|
+
|
|
44
|
+
export {
|
|
45
|
+
listLinearTeams,
|
|
46
|
+
} from './teams.js';
|
|
47
|
+
|
|
48
|
+
export {
|
|
49
|
+
LinearMappingError,
|
|
50
|
+
getLinearMappingFilePath,
|
|
51
|
+
mergeLinearMappingView,
|
|
52
|
+
readStoredLinearMapping,
|
|
53
|
+
resolveMappedProjectPath,
|
|
54
|
+
setStoredLinearMapping,
|
|
55
|
+
} from './mapping.js';
|
|
56
|
+
|
|
57
|
+
export {
|
|
58
|
+
LinearSessionStatusError,
|
|
59
|
+
isPublicSessionOrigin,
|
|
60
|
+
postLinearSessionStatus,
|
|
61
|
+
} from './status.js';
|