@owlmeans/viable-sdk 0.1.19-rc.0 → 0.1.19
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 +1 -1
- package/agent-meta/manifest.json +2 -2
- package/agent-meta/skills/viable-sdk/SKILL.md +123 -13
- package/build/api/collect/types.d.ts +12 -1
- package/build/api/collect/types.d.ts.map +1 -1
- package/build/api/collect.d.ts.map +1 -1
- package/build/api/collect.js +18 -1
- package/build/api/collect.js.map +1 -1
- package/build/api/consts.local.d.ts +2 -0
- package/build/api/consts.local.d.ts.map +1 -1
- package/build/api/consts.local.js +2 -0
- package/build/api/consts.local.js.map +1 -1
- package/build/api/remote.d.ts.map +1 -1
- package/build/api/remote.js +13 -0
- package/build/api/remote.js.map +1 -1
- package/build/context/index.d.ts.map +1 -1
- package/build/context/index.js +7 -3
- package/build/context/index.js.map +1 -1
- package/build/context/types.d.ts +7 -1
- package/build/context/types.d.ts.map +1 -1
- package/build/session/consts.local.d.ts +2 -0
- package/build/session/consts.local.d.ts.map +1 -1
- package/build/session/consts.local.js +2 -0
- package/build/session/consts.local.js.map +1 -1
- package/build/session/index.d.ts.map +1 -1
- package/build/session/index.js +18 -1
- package/build/session/index.js.map +1 -1
- package/build/session/types.d.ts +7 -0
- package/build/session/types.d.ts.map +1 -1
- package/build/tools/catalogue.d.ts.map +1 -1
- package/build/tools/catalogue.js +13 -2
- package/build/tools/catalogue.js.map +1 -1
- package/build/tools/consts.d.ts +9 -1
- package/build/tools/consts.d.ts.map +1 -1
- package/build/tools/consts.js +16 -0
- package/build/tools/consts.js.map +1 -1
- package/build/tools/consts.local.d.ts +1 -9
- package/build/tools/consts.local.d.ts.map +1 -1
- package/build/tools/consts.local.js +2 -16
- package/build/tools/consts.local.js.map +1 -1
- package/build/tools/index.d.ts +6 -0
- package/build/tools/index.d.ts.map +1 -1
- package/build/tools/index.js +4 -0
- package/build/tools/index.js.map +1 -1
- package/build/tools/instructions/types.d.ts +21 -0
- package/build/tools/instructions/types.d.ts.map +1 -0
- package/build/tools/instructions/types.js +2 -0
- package/build/tools/instructions/types.js.map +1 -0
- package/build/tools/instructions.d.ts +4 -0
- package/build/tools/instructions.d.ts.map +1 -0
- package/build/tools/instructions.js +143 -0
- package/build/tools/instructions.js.map +1 -0
- package/build/tools/mcp.d.ts +2 -6
- package/build/tools/mcp.d.ts.map +1 -1
- package/build/tools/mcp.js +36 -122
- package/build/tools/mcp.js.map +1 -1
- package/build/tools/platform.d.ts.map +1 -1
- package/build/tools/platform.js +13 -4
- package/build/tools/platform.js.map +1 -1
- package/build/tools/profile/consts.d.ts +8 -0
- package/build/tools/profile/consts.d.ts.map +1 -0
- package/build/tools/profile/consts.js +10 -0
- package/build/tools/profile/consts.js.map +1 -0
- package/build/tools/profile/listing/consts.local.d.ts +44 -0
- package/build/tools/profile/listing/consts.local.d.ts.map +1 -0
- package/build/tools/profile/listing/consts.local.js +612 -0
- package/build/tools/profile/listing/consts.local.js.map +1 -0
- package/build/tools/profile/listing/presentation.d.ts +12 -0
- package/build/tools/profile/listing/presentation.d.ts.map +1 -0
- package/build/tools/profile/listing/presentation.js +38 -0
- package/build/tools/profile/listing/presentation.js.map +1 -0
- package/build/tools/profile/listing/text.d.ts +13 -0
- package/build/tools/profile/listing/text.d.ts.map +1 -0
- package/build/tools/profile/listing/text.js +51 -0
- package/build/tools/profile/listing/text.js.map +1 -0
- package/build/tools/profile/listing/types.d.ts +18 -0
- package/build/tools/profile/listing/types.d.ts.map +1 -0
- package/build/tools/profile/listing/types.js +2 -0
- package/build/tools/profile/listing/types.js.map +1 -0
- package/build/tools/profile/listing.d.ts +18 -0
- package/build/tools/profile/listing.d.ts.map +1 -0
- package/build/tools/profile/listing.js +66 -0
- package/build/tools/profile/listing.js.map +1 -0
- package/build/tools/profile/presentation/platform/account.d.ts +4 -0
- package/build/tools/profile/presentation/platform/account.d.ts.map +1 -0
- package/build/tools/profile/presentation/platform/account.js +46 -0
- package/build/tools/profile/presentation/platform/account.js.map +1 -0
- package/build/tools/profile/presentation/platform/consts.d.ts +541 -0
- package/build/tools/profile/presentation/platform/consts.d.ts.map +1 -0
- package/build/tools/profile/presentation/platform/consts.js +335 -0
- package/build/tools/profile/presentation/platform/consts.js.map +1 -0
- package/build/tools/profile/presentation/platform/git.d.ts +4 -0
- package/build/tools/profile/presentation/platform/git.d.ts.map +1 -0
- package/build/tools/profile/presentation/platform/git.js +123 -0
- package/build/tools/profile/presentation/platform/git.js.map +1 -0
- package/build/tools/profile/presentation/platform/iam.d.ts +4 -0
- package/build/tools/profile/presentation/platform/iam.d.ts.map +1 -0
- package/build/tools/profile/presentation/platform/iam.js +202 -0
- package/build/tools/profile/presentation/platform/iam.js.map +1 -0
- package/build/tools/profile/presentation/platform/production.d.ts +4 -0
- package/build/tools/profile/presentation/platform/production.d.ts.map +1 -0
- package/build/tools/profile/presentation/platform/production.js +73 -0
- package/build/tools/profile/presentation/platform/production.js.map +1 -0
- package/build/tools/profile/presentation/platform/read.d.ts +4 -0
- package/build/tools/profile/presentation/platform/read.d.ts.map +1 -0
- package/build/tools/profile/presentation/platform/read.js +68 -0
- package/build/tools/profile/presentation/platform/read.js.map +1 -0
- package/build/tools/profile/presentation/platform/settings.d.ts +4 -0
- package/build/tools/profile/presentation/platform/settings.d.ts.map +1 -0
- package/build/tools/profile/presentation/platform/settings.js +48 -0
- package/build/tools/profile/presentation/platform/settings.js.map +1 -0
- package/build/tools/profile/presentation/platform/types.d.ts +174 -0
- package/build/tools/profile/presentation/platform/types.d.ts.map +1 -0
- package/build/tools/profile/presentation/platform/types.js +2 -0
- package/build/tools/profile/presentation/platform/types.js.map +1 -0
- package/build/tools/profile/presentation/platform/workspace.d.ts +4 -0
- package/build/tools/profile/presentation/platform/workspace.d.ts.map +1 -0
- package/build/tools/profile/presentation/platform/workspace.js +37 -0
- package/build/tools/profile/presentation/platform/workspace.js.map +1 -0
- package/build/tools/profile/presentation/platform.d.ts +11 -0
- package/build/tools/profile/presentation/platform.d.ts.map +1 -0
- package/build/tools/profile/presentation/platform.js +64 -0
- package/build/tools/profile/presentation/platform.js.map +1 -0
- package/build/tools/profile/presentation/work/consts.d.ts +22 -0
- package/build/tools/profile/presentation/work/consts.d.ts.map +1 -0
- package/build/tools/profile/presentation/work/consts.js +22 -0
- package/build/tools/profile/presentation/work/consts.js.map +1 -0
- package/build/tools/profile/presentation/work/presenters.d.ts +4 -0
- package/build/tools/profile/presentation/work/presenters.d.ts.map +1 -0
- package/build/tools/profile/presentation/work/presenters.js +502 -0
- package/build/tools/profile/presentation/work/presenters.js.map +1 -0
- package/build/tools/profile/presentation/work/schemas.d.ts +496 -0
- package/build/tools/profile/presentation/work/schemas.d.ts.map +1 -0
- package/build/tools/profile/presentation/work/schemas.js +358 -0
- package/build/tools/profile/presentation/work/schemas.js.map +1 -0
- package/build/tools/profile/presentation/work/shape.d.ts +4 -0
- package/build/tools/profile/presentation/work/shape.d.ts.map +1 -0
- package/build/tools/profile/presentation/work/shape.js +35 -0
- package/build/tools/profile/presentation/work/shape.js.map +1 -0
- package/build/tools/profile/presentation/work/types.d.ts +109 -0
- package/build/tools/profile/presentation/work/types.d.ts.map +1 -0
- package/build/tools/profile/presentation/work/types.js +2 -0
- package/build/tools/profile/presentation/work/types.js.map +1 -0
- package/build/tools/profile/presentation/work.d.ts +13 -0
- package/build/tools/profile/presentation/work.d.ts.map +1 -0
- package/build/tools/profile/presentation/work.js +66 -0
- package/build/tools/profile/presentation/work.js.map +1 -0
- package/build/tools/profile/types.d.ts +125 -0
- package/build/tools/profile/types.d.ts.map +1 -0
- package/build/tools/profile/types.js +2 -0
- package/build/tools/profile/types.js.map +1 -0
- package/build/tools/profile.d.ts +9 -0
- package/build/tools/profile.d.ts.map +1 -0
- package/build/tools/profile.js +114 -0
- package/build/tools/profile.js.map +1 -0
- package/build/tools/status/types.d.ts +7 -1
- package/build/tools/status/types.d.ts.map +1 -1
- package/build/tools/status.d.ts.map +1 -1
- package/build/tools/status.js +5 -1
- package/build/tools/status.js.map +1 -1
- package/build/tools/types.d.ts +12 -1
- package/build/tools/types.d.ts.map +1 -1
- package/build/types.d.ts +7 -1
- package/build/types.d.ts.map +1 -1
- package/package.json +25 -25
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** One indented frame of a stack trace — never part of what a person reads. */
|
|
3
|
+
export const STACK_LINE = /^\s+at\s/;
|
|
4
|
+
/** The slot's project root inside its pod: a path under it is given relative to the project. */
|
|
5
|
+
export const SANDBOX_ROOT = /\/var\/sandbox\//g;
|
|
6
|
+
/** The calendar day an ISO timestamp starts with. */
|
|
7
|
+
export const ISO_DAY = /^\d{4}-\d{2}-\d{2}/;
|
|
8
|
+
/** A value that already names its scheme. */
|
|
9
|
+
export const HAS_SCHEME = /^[a-z][a-z0-9+.-]*:\/\//i;
|
|
10
|
+
/*
|
|
11
|
+
* The declared structured output of every platform-domain tool under a listing profile.
|
|
12
|
+
*
|
|
13
|
+
* Statuses, kinds and modes stay plain strings: these views cross a version skew, and a newer
|
|
14
|
+
* platform may answer with a value this schema has never heard of — a schema that refused it would
|
|
15
|
+
* turn a working tool into a failing one. A field some branch of a tool leaves out is optional.
|
|
16
|
+
*/
|
|
17
|
+
const PROJECT_ID = z.string().describe('The project — what every follow-up call names as projectId.');
|
|
18
|
+
const SCOPE = z.string().optional().describe('production: the published site\'s own set; absent: the preview\'s.');
|
|
19
|
+
const DAY = z.string().optional().describe('A calendar day, YYYY-MM-DD.');
|
|
20
|
+
// --- settings, configuration, branding ---------------------------------------------------------
|
|
21
|
+
const SETTINGS = z.object({
|
|
22
|
+
copyright: z.string(),
|
|
23
|
+
organizationName: z.string(),
|
|
24
|
+
termsUrl: z.string(),
|
|
25
|
+
privacyUrl: z.string(),
|
|
26
|
+
googleTag: z.string(),
|
|
27
|
+
credit: z.object({
|
|
28
|
+
hidden: z.boolean().describe('The credit is hidden in the application.'),
|
|
29
|
+
requested: z.boolean().describe('The owner asked to hide it.'),
|
|
30
|
+
entitled: z.boolean().describe('The plan includes hiding it (white label).'),
|
|
31
|
+
}).optional(),
|
|
32
|
+
});
|
|
33
|
+
export const SETTINGS_OUTPUT = { projectId: PROJECT_ID, scope: SCOPE, settings: SETTINGS };
|
|
34
|
+
export const CONFIGURATION_OUTPUT = {
|
|
35
|
+
projectId: PROJECT_ID,
|
|
36
|
+
configuration: z.object({
|
|
37
|
+
scope: z.string(),
|
|
38
|
+
backend: z.array(z.object({
|
|
39
|
+
name: z.string(),
|
|
40
|
+
set: z.boolean().describe('A value is stored; the value itself is a secret and never shown.'),
|
|
41
|
+
})),
|
|
42
|
+
frontend: z.array(z.object({ name: z.string(), set: z.boolean(), value: z.string() })),
|
|
43
|
+
}),
|
|
44
|
+
};
|
|
45
|
+
export const ORGANIZATION_BRANDING_OUTPUT = {
|
|
46
|
+
organization: z.object({ organizationName: z.string(), copyright: z.string() }),
|
|
47
|
+
};
|
|
48
|
+
export const BACKFILL_OUTPUT = { projects: z.number().describe('Projects whose blank settings were filled.') };
|
|
49
|
+
// --- account -------------------------------------------------------------------------------------
|
|
50
|
+
export const TOKENS_OUTPUT = {
|
|
51
|
+
total: z.number(),
|
|
52
|
+
tokens: z.array(z.object({
|
|
53
|
+
id: z.string().describe('What revoke_access_token names.'),
|
|
54
|
+
name: z.string(),
|
|
55
|
+
display: z.string().describe('The visible prefix — useless as a credential.'),
|
|
56
|
+
scopes: z.array(z.string()),
|
|
57
|
+
oauth: z.boolean().describe('Issued through a browser sign-in rather than created by hand.'),
|
|
58
|
+
revoked: z.boolean(),
|
|
59
|
+
created: DAY,
|
|
60
|
+
lastUsed: DAY,
|
|
61
|
+
expires: DAY,
|
|
62
|
+
})),
|
|
63
|
+
};
|
|
64
|
+
export const TOKEN_REVOKED_OUTPUT = { tokenId: z.string() };
|
|
65
|
+
const PRIVACY = z.object({
|
|
66
|
+
pending: z.boolean().describe('A consent still waits for the person\'s first or revised answer.'),
|
|
67
|
+
items: z.array(z.object({
|
|
68
|
+
key: z.string().describe('What withdraw_marketing_consent names.'),
|
|
69
|
+
group: z.string(),
|
|
70
|
+
mode: z.string(),
|
|
71
|
+
granted: z.boolean(),
|
|
72
|
+
status: z.string(),
|
|
73
|
+
decided: DAY,
|
|
74
|
+
})),
|
|
75
|
+
});
|
|
76
|
+
export const PRIVACY_OUTPUT = { privacy: PRIVACY };
|
|
77
|
+
export const WITHDRAW_OUTPUT = { withdrawn: z.array(z.string()), privacy: PRIVACY.optional() };
|
|
78
|
+
export const INTENT_OUTPUT = { prompt: z.string() };
|
|
79
|
+
// --- files and the preview -----------------------------------------------------------------------
|
|
80
|
+
export const FILES_OUTPUT = {
|
|
81
|
+
projectId: PROJECT_ID,
|
|
82
|
+
kind: z.string().describe('sources, stories, meta or all.'),
|
|
83
|
+
category: z.string().optional(),
|
|
84
|
+
total: z.number(),
|
|
85
|
+
files: z.array(z.string()).describe('Paths relative to the project root, as read_file takes them.'),
|
|
86
|
+
};
|
|
87
|
+
export const FILE_READ_OUTPUT = {
|
|
88
|
+
projectId: PROJECT_ID,
|
|
89
|
+
path: z.string(),
|
|
90
|
+
length: z.number().describe('The whole file\'s length in characters.'),
|
|
91
|
+
truncated: z.boolean().describe('The text carries only the first part of the file.'),
|
|
92
|
+
};
|
|
93
|
+
export const FILE_WRITTEN_OUTPUT = {
|
|
94
|
+
projectId: PROJECT_ID,
|
|
95
|
+
path: z.string(),
|
|
96
|
+
previewRebuilt: z.boolean().describe('False: the rebuild failed and the last good preview still serves.'),
|
|
97
|
+
buildWarning: z.string().optional(),
|
|
98
|
+
};
|
|
99
|
+
const WORKLOAD = z.object({
|
|
100
|
+
status: z.string(),
|
|
101
|
+
url: z.string().optional().describe('The address a person opens.'),
|
|
102
|
+
initialized: z.boolean().optional(),
|
|
103
|
+
warnings: z.array(z.string()),
|
|
104
|
+
});
|
|
105
|
+
export const PREVIEW_OUTPUT = { projectId: PROJECT_ID, preview: WORKLOAD.nullable() };
|
|
106
|
+
// --- git and GitHub ------------------------------------------------------------------------------
|
|
107
|
+
const COMMIT = z.object({
|
|
108
|
+
hash: z.string().describe('What git_revert names.'),
|
|
109
|
+
shortHash: z.string(),
|
|
110
|
+
subject: z.string(),
|
|
111
|
+
author: z.string(),
|
|
112
|
+
date: DAY,
|
|
113
|
+
});
|
|
114
|
+
const CONNECTION = z.object({
|
|
115
|
+
githubLogin: z.string(),
|
|
116
|
+
status: z.string().describe('connected, published or invalid.'),
|
|
117
|
+
repoFullName: z.string().optional(),
|
|
118
|
+
repoUrl: z.string().optional(),
|
|
119
|
+
});
|
|
120
|
+
const TREE = z.object({
|
|
121
|
+
initialized: z.boolean(),
|
|
122
|
+
branch: z.string(),
|
|
123
|
+
head: COMMIT.nullable(),
|
|
124
|
+
dirty: z.boolean(),
|
|
125
|
+
changedFiles: z.number(),
|
|
126
|
+
files: z.array(z.object({ path: z.string(), status: z.string() })),
|
|
127
|
+
remoteUrl: z.string().nullable(),
|
|
128
|
+
ahead: z.number().nullable(),
|
|
129
|
+
behind: z.number().nullable(),
|
|
130
|
+
});
|
|
131
|
+
export const GIT_STATUS_OUTPUT = {
|
|
132
|
+
projectId: PROJECT_ID,
|
|
133
|
+
connection: CONNECTION.nullable(),
|
|
134
|
+
git: TREE.nullable().describe('null while the preview is not ready — git lives in the preview.'),
|
|
135
|
+
};
|
|
136
|
+
export const GIT_HISTORY_OUTPUT = { projectId: PROJECT_ID, total: z.number(), commits: z.array(COMMIT) };
|
|
137
|
+
export const GIT_COMMIT_OUTPUT = { projectId: PROJECT_ID, commit: COMMIT.nullable() };
|
|
138
|
+
export const GIT_DISCARD_OUTPUT = { projectId: PROJECT_ID, git: TREE.nullable() };
|
|
139
|
+
export const GIT_REVERT_OUTPUT = {
|
|
140
|
+
projectId: PROJECT_ID,
|
|
141
|
+
hash: z.string().optional().describe('The commit gone back to.'),
|
|
142
|
+
commit: COMMIT.nullable().describe('The new commit; null when the tree already matched.'),
|
|
143
|
+
dbWarning: z.string().optional(),
|
|
144
|
+
};
|
|
145
|
+
export const GITHUB_AUTHORIZE_OUTPUT = {
|
|
146
|
+
projectId: PROJECT_ID,
|
|
147
|
+
authorizeUrl: z.string().describe('The address the user opens in their browser.'),
|
|
148
|
+
};
|
|
149
|
+
export const GITHUB_CONNECTION_OUTPUT = { projectId: PROJECT_ID, connection: CONNECTION.nullable() };
|
|
150
|
+
export const GITHUB_SYNC_OUTPUT = {
|
|
151
|
+
projectId: PROJECT_ID,
|
|
152
|
+
direction: z.string(),
|
|
153
|
+
status: z.string(),
|
|
154
|
+
ahead: z.number().nullable(),
|
|
155
|
+
behind: z.number().nullable(),
|
|
156
|
+
message: z.string().optional(),
|
|
157
|
+
};
|
|
158
|
+
export const GITHUB_DISCONNECTED_OUTPUT = { projectId: PROJECT_ID, connection: z.null() };
|
|
159
|
+
export const GITHUB_REPOSITORIES_OUTPUT = {
|
|
160
|
+
projectId: PROJECT_ID,
|
|
161
|
+
owner: z.string().optional(),
|
|
162
|
+
repo: z.string().optional(),
|
|
163
|
+
page: z.number(),
|
|
164
|
+
hasMore: z.boolean(),
|
|
165
|
+
repos: z.array(z.object({
|
|
166
|
+
fullName: z.string(),
|
|
167
|
+
name: z.string(),
|
|
168
|
+
owner: z.string(),
|
|
169
|
+
url: z.string(),
|
|
170
|
+
private: z.boolean(),
|
|
171
|
+
defaultBranch: z.string(),
|
|
172
|
+
archived: z.boolean(),
|
|
173
|
+
fork: z.boolean(),
|
|
174
|
+
description: z.string().optional(),
|
|
175
|
+
language: z.string().optional(),
|
|
176
|
+
updated: DAY,
|
|
177
|
+
})).optional(),
|
|
178
|
+
branches: z.array(z.object({ name: z.string(), protected: z.boolean() })).optional(),
|
|
179
|
+
};
|
|
180
|
+
export const GITHUB_LINKED_OUTPUT = {
|
|
181
|
+
projectId: PROJECT_ID,
|
|
182
|
+
owner: z.string(),
|
|
183
|
+
repo: z.string(),
|
|
184
|
+
branch: z.string().optional(),
|
|
185
|
+
connection: CONNECTION.nullable(),
|
|
186
|
+
};
|
|
187
|
+
// --- production ----------------------------------------------------------------------------------
|
|
188
|
+
const DOMAIN = z.object({
|
|
189
|
+
generatedHost: z.string().describe('The site\'s own address; it serves whether or not a domain is attached.'),
|
|
190
|
+
customDomain: z.string().optional(),
|
|
191
|
+
status: z.string(),
|
|
192
|
+
verified: DAY,
|
|
193
|
+
records: z.array(z.object({
|
|
194
|
+
type: z.string(),
|
|
195
|
+
name: z.string(),
|
|
196
|
+
value: z.string(),
|
|
197
|
+
purpose: z.string().describe('traffic or certificate.'),
|
|
198
|
+
providerStatus: z.string().optional(),
|
|
199
|
+
})).describe('The DNS records the user creates at the domain\'s DNS provider; none once it is linked.'),
|
|
200
|
+
message: z.string().optional(),
|
|
201
|
+
});
|
|
202
|
+
export const PRODUCTION_OUTPUT = {
|
|
203
|
+
projectId: PROJECT_ID,
|
|
204
|
+
site: WORKLOAD.nullable().describe('null: not published yet.'),
|
|
205
|
+
domain: DOMAIN.nullable(),
|
|
206
|
+
};
|
|
207
|
+
export const CUSTOM_DOMAIN_OUTPUT = { projectId: PROJECT_ID, domain: DOMAIN.nullable() };
|
|
208
|
+
export const PRODUCTION_AUTH_OUTPUT = {
|
|
209
|
+
projectId: PROJECT_ID,
|
|
210
|
+
issuerUrl: z.string(),
|
|
211
|
+
clientId: z.string().describe('The OIDC client a self-hosted copy is configured with.'),
|
|
212
|
+
secretSet: z.boolean().describe('The client secret exists; it is never shown here.'),
|
|
213
|
+
redirectUris: z.array(z.string()),
|
|
214
|
+
siteUrl: z.string().optional(),
|
|
215
|
+
};
|
|
216
|
+
export const REDIRECTS_OUTPUT = { projectId: PROJECT_ID, redirectUris: z.array(z.string()) };
|
|
217
|
+
// --- the generated application's sign-in ---------------------------------------------------------
|
|
218
|
+
const PROFILE_ID = z.string().describe('The user, as manage_app_user, manage_app_grant and the member calls name them.');
|
|
219
|
+
const ENTITY_SLUG = z.string().describe('The organization, as every organization and group call names it.');
|
|
220
|
+
const EXTERNAL = z.boolean().optional().describe('Kept in a console of its own: the list is empty on purpose.');
|
|
221
|
+
const USER = z.object({
|
|
222
|
+
profileId: PROFILE_ID,
|
|
223
|
+
email: z.string().optional(),
|
|
224
|
+
name: z.string().optional(),
|
|
225
|
+
role: z.string(),
|
|
226
|
+
disabled: z.boolean(),
|
|
227
|
+
grantCount: z.number().optional(),
|
|
228
|
+
home: z.string().optional(),
|
|
229
|
+
memberships: z.array(z.object({
|
|
230
|
+
entitySlug: ENTITY_SLUG,
|
|
231
|
+
title: z.string().optional(),
|
|
232
|
+
owner: z.boolean(),
|
|
233
|
+
groups: z.array(z.string()),
|
|
234
|
+
home: z.boolean().optional(),
|
|
235
|
+
})).optional(),
|
|
236
|
+
});
|
|
237
|
+
export const APP_USERS_OUTPUT = {
|
|
238
|
+
projectId: PROJECT_ID.optional(),
|
|
239
|
+
scope: SCOPE,
|
|
240
|
+
external: EXTERNAL,
|
|
241
|
+
users: z.array(USER),
|
|
242
|
+
};
|
|
243
|
+
export const APP_USER_OUTPUT = {
|
|
244
|
+
projectId: PROJECT_ID,
|
|
245
|
+
profileId: PROFILE_ID,
|
|
246
|
+
user: USER.optional(),
|
|
247
|
+
removed: z.boolean().optional(),
|
|
248
|
+
};
|
|
249
|
+
const PERMISSION = z.object({
|
|
250
|
+
name: z.string(),
|
|
251
|
+
title: z.string().optional(),
|
|
252
|
+
area: z.string().optional(),
|
|
253
|
+
defaultClass: z.string().optional(),
|
|
254
|
+
resourceScoped: z.boolean(),
|
|
255
|
+
entityScoped: z.boolean(),
|
|
256
|
+
managed: z.boolean(),
|
|
257
|
+
});
|
|
258
|
+
export const APP_PERMISSIONS_OUTPUT = {
|
|
259
|
+
projectId: PROJECT_ID,
|
|
260
|
+
tenancy: z.object({ operators: z.boolean(), users: z.boolean() }),
|
|
261
|
+
external: EXTERNAL,
|
|
262
|
+
permissions: z.array(PERMISSION),
|
|
263
|
+
};
|
|
264
|
+
export const APP_PERMISSION_OUTPUT = { projectId: PROJECT_ID, permission: PERMISSION };
|
|
265
|
+
const GROUP_REF = z.object({ entitySlug: ENTITY_SLUG, key: z.string() });
|
|
266
|
+
const GRANT = z.object({
|
|
267
|
+
permission: z.string(),
|
|
268
|
+
profileId: PROFILE_ID.optional(),
|
|
269
|
+
group: GROUP_REF.optional(),
|
|
270
|
+
entitySlug: ENTITY_SLUG.optional(),
|
|
271
|
+
resources: z.array(z.string()).optional(),
|
|
272
|
+
mode: z.string().optional(),
|
|
273
|
+
origin: z.string().optional(),
|
|
274
|
+
through: GROUP_REF.optional(),
|
|
275
|
+
restricted: z.boolean().optional().describe('Withheld by the subject\'s own restriction — NOT held.'),
|
|
276
|
+
});
|
|
277
|
+
export const APP_GRANTS_OUTPUT = { projectId: PROJECT_ID, external: EXTERNAL, grants: z.array(GRANT) };
|
|
278
|
+
export const APP_GRANT_OUTPUT = { projectId: PROJECT_ID, grant: GRANT.optional(), revoked: GRANT.optional() };
|
|
279
|
+
const ORGANIZATION = z.object({ entitySlug: ENTITY_SLUG, title: z.string().optional(), members: z.number().optional() });
|
|
280
|
+
const MEMBER = z.object({
|
|
281
|
+
profileId: PROFILE_ID,
|
|
282
|
+
email: z.string().optional(),
|
|
283
|
+
name: z.string().optional(),
|
|
284
|
+
owner: z.boolean(),
|
|
285
|
+
groups: z.array(z.string()),
|
|
286
|
+
managed: z.boolean().optional(),
|
|
287
|
+
});
|
|
288
|
+
export const APP_ORGANIZATIONS_OUTPUT = {
|
|
289
|
+
projectId: PROJECT_ID,
|
|
290
|
+
entitySlug: ENTITY_SLUG.optional(),
|
|
291
|
+
external: EXTERNAL,
|
|
292
|
+
organizations: z.array(ORGANIZATION).optional(),
|
|
293
|
+
members: z.array(MEMBER).optional(),
|
|
294
|
+
};
|
|
295
|
+
export const APP_ORGANIZATION_OUTPUT = {
|
|
296
|
+
projectId: PROJECT_ID,
|
|
297
|
+
entitySlug: ENTITY_SLUG,
|
|
298
|
+
organization: ORGANIZATION.optional(),
|
|
299
|
+
member: MEMBER.optional(),
|
|
300
|
+
profileId: PROFILE_ID.optional(),
|
|
301
|
+
removed: z.boolean().optional(),
|
|
302
|
+
};
|
|
303
|
+
const GROUP = z.object({
|
|
304
|
+
key: z.string(),
|
|
305
|
+
title: z.string().optional(),
|
|
306
|
+
managed: z.boolean().optional().describe('The platform\'s own staff group: members, bundles and existence are its.'),
|
|
307
|
+
members: z.number().optional(),
|
|
308
|
+
bundles: z.array(z.object({
|
|
309
|
+
permissions: z.array(z.string()).optional(),
|
|
310
|
+
filter: z.object({
|
|
311
|
+
areas: z.array(z.string().nullable()).optional(),
|
|
312
|
+
managed: z.boolean().optional(),
|
|
313
|
+
resourceScoped: z.boolean().optional(),
|
|
314
|
+
entityScoped: z.boolean().optional(),
|
|
315
|
+
}).optional(),
|
|
316
|
+
})),
|
|
317
|
+
});
|
|
318
|
+
export const APP_GROUPS_OUTPUT = {
|
|
319
|
+
projectId: PROJECT_ID,
|
|
320
|
+
entitySlug: ENTITY_SLUG,
|
|
321
|
+
group: z.string().optional().describe('The group whose members these are.'),
|
|
322
|
+
external: EXTERNAL,
|
|
323
|
+
groups: z.array(GROUP).optional(),
|
|
324
|
+
members: z.array(MEMBER).optional(),
|
|
325
|
+
};
|
|
326
|
+
export const APP_GROUP_OUTPUT = {
|
|
327
|
+
projectId: PROJECT_ID,
|
|
328
|
+
entitySlug: ENTITY_SLUG,
|
|
329
|
+
key: z.string().describe('The group key.'),
|
|
330
|
+
group: GROUP.optional(),
|
|
331
|
+
deleted: z.boolean().optional(),
|
|
332
|
+
action: z.string().optional(),
|
|
333
|
+
profileIds: z.array(z.string()).optional(),
|
|
334
|
+
};
|
|
335
|
+
//# sourceMappingURL=consts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.js","sourceRoot":"","sources":["../../../../../src/tools/profile/presentation/platform/consts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,+EAA+E;AAC/E,MAAM,CAAC,MAAM,UAAU,GAAG,UAAU,CAAA;AAEp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,MAAM,YAAY,CAAA;AAElD,eAAO,MAAM,sBAAsB,QAAO,gBAyIzC,CAAA;AAED,eAAO,MAAM,gBAAgB,kBAA2B,CAAA"}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { presentReadHelper as read } from './read.js';
|
|
2
|
+
export const createGitPresentHelper = () => {
|
|
3
|
+
/** A commit as a person and git_revert read it: the hash kept, the author's e-mail dropped. */
|
|
4
|
+
const commitOf = (value) => {
|
|
5
|
+
const commit = read.recordOrNull(value);
|
|
6
|
+
if (commit == null)
|
|
7
|
+
return null;
|
|
8
|
+
const hash = read.text(commit.hash);
|
|
9
|
+
return read.compact({
|
|
10
|
+
hash,
|
|
11
|
+
shortHash: read.text(commit.shortHash, hash.slice(0, 7)),
|
|
12
|
+
subject: read.text(commit.subject),
|
|
13
|
+
author: read.text(commit.authorName),
|
|
14
|
+
date: read.day(commit.committedAt),
|
|
15
|
+
});
|
|
16
|
+
};
|
|
17
|
+
/** The GitHub connection: who connected it and where it publishes — never its record or a token. */
|
|
18
|
+
const connectionOf = (value) => {
|
|
19
|
+
const connection = read.recordOrNull(value);
|
|
20
|
+
return connection == null
|
|
21
|
+
? null
|
|
22
|
+
: read.compact({
|
|
23
|
+
githubLogin: read.text(connection.githubLogin),
|
|
24
|
+
status: read.text(connection.status, 'unknown'),
|
|
25
|
+
repoFullName: read.maybeText(connection.repoFullName),
|
|
26
|
+
repoUrl: read.maybeText(connection.repoUrl),
|
|
27
|
+
});
|
|
28
|
+
};
|
|
29
|
+
/** The working tree, or `null` while it cannot be read. */
|
|
30
|
+
const treeOf = (value) => {
|
|
31
|
+
const tree = read.recordOrNull(value);
|
|
32
|
+
if (tree == null)
|
|
33
|
+
return null;
|
|
34
|
+
const changed = read.records(tree.files).map(change => ({ path: read.text(change.path), status: read.text(change.status) }));
|
|
35
|
+
return {
|
|
36
|
+
initialized: read.flag(tree.initialized),
|
|
37
|
+
branch: read.text(tree.branch),
|
|
38
|
+
head: commitOf(tree.head),
|
|
39
|
+
dirty: read.flag(tree.dirty),
|
|
40
|
+
changedFiles: read.count(tree.changedFiles, changed.length),
|
|
41
|
+
files: changed,
|
|
42
|
+
remoteUrl: read.textOrNull(tree.remoteUrl),
|
|
43
|
+
ahead: read.countOrNull(tree.ahead),
|
|
44
|
+
behind: read.countOrNull(tree.behind),
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
const commitsOf = (value) => read.records(value).map(commitOf).filter((commit) => commit != null);
|
|
48
|
+
const status = read.total((structured, args) => ({
|
|
49
|
+
projectId: read.project(structured, args),
|
|
50
|
+
connection: connectionOf(structured.connection),
|
|
51
|
+
git: treeOf(structured.git),
|
|
52
|
+
}));
|
|
53
|
+
const history = read.total((structured, args) => {
|
|
54
|
+
const commits = commitsOf(structured.commits);
|
|
55
|
+
return { projectId: read.project(structured, args), total: read.count(structured.total, commits.length), commits };
|
|
56
|
+
});
|
|
57
|
+
const commit = read.total((structured, args) => ({
|
|
58
|
+
projectId: read.project(structured, args),
|
|
59
|
+
commit: commitOf(structured.commit),
|
|
60
|
+
}));
|
|
61
|
+
const discard = read.total((structured, args) => ({
|
|
62
|
+
projectId: read.project(structured, args),
|
|
63
|
+
git: treeOf(structured.git),
|
|
64
|
+
}));
|
|
65
|
+
const revert = read.total((structured, args) => read.compact({
|
|
66
|
+
projectId: read.project(structured, args),
|
|
67
|
+
hash: read.maybeText(args.hash)?.trim().toLowerCase(),
|
|
68
|
+
commit: commitOf(structured.commit),
|
|
69
|
+
dbWarning: read.clean(structured.dbWarning),
|
|
70
|
+
}));
|
|
71
|
+
const authorize = read.total((structured, args) => ({
|
|
72
|
+
projectId: read.project(structured, args),
|
|
73
|
+
authorizeUrl: read.text(structured.authorizeUrl),
|
|
74
|
+
}));
|
|
75
|
+
const published = read.total((structured, args) => ({
|
|
76
|
+
projectId: read.project(structured, args),
|
|
77
|
+
connection: connectionOf(structured.connection),
|
|
78
|
+
}));
|
|
79
|
+
const sync = read.total((structured, args) => read.compact({
|
|
80
|
+
projectId: read.project(structured, args),
|
|
81
|
+
direction: read.text(structured.direction, read.text(args.direction)),
|
|
82
|
+
status: read.text(structured.status, 'unknown'),
|
|
83
|
+
ahead: read.countOrNull(structured.ahead),
|
|
84
|
+
behind: read.countOrNull(structured.behind),
|
|
85
|
+
message: read.clean(structured.message),
|
|
86
|
+
}));
|
|
87
|
+
const disconnected = read.total((structured, args) => ({ projectId: read.project(structured, args), connection: null }));
|
|
88
|
+
const repositories = read.total((structured, args) => read.compact({
|
|
89
|
+
projectId: read.project(structured, args),
|
|
90
|
+
owner: read.maybeText(structured.owner),
|
|
91
|
+
repo: read.maybeText(structured.repo),
|
|
92
|
+
page: read.count(structured.page, 1),
|
|
93
|
+
hasMore: read.flag(structured.hasMore),
|
|
94
|
+
repos: Array.isArray(structured.repos)
|
|
95
|
+
? read.records(structured.repos).map(repo => read.compact({
|
|
96
|
+
fullName: read.text(repo.fullName),
|
|
97
|
+
name: read.text(repo.name),
|
|
98
|
+
owner: read.text(repo.owner),
|
|
99
|
+
url: read.text(repo.url),
|
|
100
|
+
private: read.flag(repo.private),
|
|
101
|
+
defaultBranch: read.text(repo.defaultBranch),
|
|
102
|
+
archived: read.flag(repo.archived),
|
|
103
|
+
fork: read.flag(repo.fork),
|
|
104
|
+
description: read.maybeText(repo.description),
|
|
105
|
+
language: read.maybeText(repo.language),
|
|
106
|
+
updated: read.day(repo.updatedAt),
|
|
107
|
+
}))
|
|
108
|
+
: undefined,
|
|
109
|
+
branches: Array.isArray(structured.branches)
|
|
110
|
+
? read.records(structured.branches).map(branch => ({ name: read.text(branch.name), protected: read.flag(branch.protected) }))
|
|
111
|
+
: undefined,
|
|
112
|
+
}));
|
|
113
|
+
const linked = read.total((structured, args) => read.compact({
|
|
114
|
+
projectId: read.project(structured, args),
|
|
115
|
+
owner: read.text(structured.owner, read.text(args.owner)),
|
|
116
|
+
repo: read.text(structured.repo, read.text(args.repo)),
|
|
117
|
+
branch: read.maybeText(structured.branch),
|
|
118
|
+
connection: connectionOf(structured.connection),
|
|
119
|
+
}));
|
|
120
|
+
return { status, history, commit, discard, revert, authorize, published, sync, disconnected, repositories, linked };
|
|
121
|
+
};
|
|
122
|
+
export const gitPresentHelper = createGitPresentHelper();
|
|
123
|
+
//# sourceMappingURL=git.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git.js","sourceRoot":"","sources":["../../../../../src/tools/profile/presentation/platform/git.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,IAAI,IAAI,EAAE,MAAM,WAAW,CAAA;AAGrD,MAAM,CAAC,MAAM,sBAAsB,GAAG,GAAqB,EAAE;IAC3D,+FAA+F;IAC/F,MAAM,QAAQ,GAAG,CAAC,KAAc,EAAkC,EAAE;QAClE,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAA;QACvC,IAAI,MAAM,IAAI,IAAI;YAAE,OAAO,IAAI,CAAA;QAC/B,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;QAEnC,OAAO,IAAI,CAAC,OAAO,CAAC;YAClB,IAAI;YACJ,SAAS,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;YACxD,OAAO,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;YAClC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,UAAU,CAAC;YACpC,IAAI,EAAE,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,WAAW,CAAC;SACnC,CAAC,CAAA;IACJ,CAAC,CAAA;IAED,oGAAoG;IACpG,MAAM,YAAY,GAAG,CAAC,KAAc,EAAkC,EAAE;QACtE,MAAM,UAAU,GAAG,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAA;QAE3C,OAAO,UAAU,IAAI,IAA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