@parallelworks/ui 0.18.0 → 0.19.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/README.md +86 -6
- package/dist/ai/adapter/memoryStore.d.ts +8 -0
- package/dist/ai/adapter/mock/index.d.ts +2 -0
- package/dist/ai/adapter/mock/index.js +81 -0
- package/dist/ai/adapter/mock/mockAdapter.d.ts +4 -0
- package/dist/ai/adapter/openai/createOpenAIStream.d.ts +9 -0
- package/dist/ai/adapter/openai/errors.d.ts +3 -0
- package/dist/ai/adapter/openai/index.d.ts +6 -0
- package/dist/ai/adapter/openai/index.js +334 -0
- package/dist/ai/adapter/openai/openaiAdapter.d.ts +9 -0
- package/dist/ai/adapter/openai/responses.d.ts +4 -0
- package/dist/ai/adapter/openai/sse.d.ts +24 -0
- package/dist/ai/adapter/openai/wire.d.ts +40 -0
- package/dist/ai/adapter/types.d.ts +131 -0
- package/dist/ai/agent/classifier.d.ts +2 -0
- package/dist/ai/agent/diff.d.ts +35 -0
- package/dist/ai/agent/diffHighlight.d.ts +6 -0
- package/dist/ai/agent/index.d.ts +6 -0
- package/dist/ai/agent/permissions.d.ts +11 -0
- package/dist/ai/agent/toolfmt.d.ts +18 -0
- package/dist/ai/agent/transcript.d.ts +38 -0
- package/dist/ai/ai.css +325 -0
- package/dist/ai/components/AllocationSelector.d.ts +4 -0
- package/dist/ai/components/AttachmentManager.d.ts +1 -0
- package/dist/ai/components/AttachmentUpload.d.ts +24 -0
- package/dist/ai/components/BlockedGroupBanner.d.ts +1 -0
- package/dist/ai/components/BranchNavigator.d.ts +8 -0
- package/dist/ai/components/ChatEmptyState.d.ts +3 -0
- package/dist/ai/components/ChatInput.d.ts +45 -0
- package/dist/ai/components/ChatLayout.d.ts +5 -0
- package/dist/ai/components/ChatMessage.d.ts +24 -0
- package/dist/ai/components/ChatMessageList.d.ts +35 -0
- package/dist/ai/components/ChatSidebar.d.ts +5 -0
- package/dist/ai/components/ChatThread.d.ts +3 -0
- package/dist/ai/components/ComposerChrome.d.ts +18 -0
- package/dist/ai/components/ComposerFrame.d.ts +16 -0
- package/dist/ai/components/DragOverlay.d.ts +5 -0
- package/dist/ai/components/ModelSelector.d.ts +6 -0
- package/dist/ai/components/ShareDialog.d.ts +11 -0
- package/dist/ai/components/SlashMenu.d.ts +28 -0
- package/dist/ai/components/agent/ActivityLine.d.ts +21 -0
- package/dist/ai/components/agent/AgentMessageParts.d.ts +54 -0
- package/dist/ai/components/agent/PermissionPicker.d.ts +11 -0
- package/dist/ai/components/attachmentKeys.d.ts +4 -0
- package/dist/ai/core/ChatProvider.d.ts +66 -0
- package/dist/ai/core/KeyboardShortcutsProvider.d.ts +5 -0
- package/dist/ai/core/chatReducer.d.ts +114 -0
- package/dist/ai/core/config.d.ts +47 -0
- package/dist/ai/core/events.d.ts +1 -0
- package/dist/ai/core/exportConversation.d.ts +4 -0
- package/dist/ai/core/greeting.d.ts +3 -0
- package/dist/ai/core/parts.d.ts +11 -0
- package/dist/ai/core/useDragDrop.d.ts +14 -0
- package/dist/ai/core/useKeyboardShortcuts.d.ts +12 -0
- package/dist/ai/core/useSSEStream.d.ts +34 -0
- package/dist/ai/index.d.ts +40 -0
- package/dist/ai/index.js +6645 -0
- package/dist/ai/strings.d.ts +167 -0
- package/dist/ai/types.d.ts +236 -0
- package/dist/ai/ui/Avatar.d.ts +8 -0
- package/dist/ai/ui/Dropdown.d.ts +31 -0
- package/dist/ai/ui/Markdown.d.ts +8 -0
- package/dist/ai/ui/Notice.d.ts +21 -0
- package/dist/ai/ui/buttons.d.ts +1 -0
- package/dist/ai/ui/codeBreaks.d.ts +16 -0
- package/dist/ai/ui/prose.d.ts +1 -0
- package/dist/ai/ui/sidebar.d.ts +81 -0
- package/dist/ai/utils.d.ts +4 -0
- package/dist/assets/{editor.worker-CuBRIwi-.js → editor.worker-BmHUIVG4.js} +194 -163
- package/dist/assets/{json.worker-8ytS02vz.js → json.worker-D8bJ92nw.js} +384 -338
- package/dist/assets/{yaml.worker-DJC-VUcv.js → yaml.worker-C4gyGAko.js} +15657 -13823
- package/dist/chunks/{CodePreviewEditor-4lx3kE-w.js → CodePreviewEditor-YqQBz1YL.js} +1 -1
- package/dist/chunks/ConfirmModal-aOR4O1QE.js +79 -0
- package/dist/chunks/{FieldWrapper-Bef01EWO.js → FieldWrapper-Cszwg-4B.js} +3 -7
- package/dist/chunks/{CreateModal-BY6DLmur.js → Markdown-CM-FenNE.js} +19 -91
- package/dist/chunks/Monaco-DJ8MW-Dq.js +110 -0
- package/dist/chunks/{PageHeader-l49p1nM9.js → PageHeader-0kG_iypP.js} +67 -65
- package/dist/chunks/{Provider-Ghua9PkN.js → Provider-CDYurraE.js} +54 -20
- package/dist/chunks/{SwitchToggle-CHPP8uZQ.js → SwitchToggle-DShNdcao.js} +135 -132
- package/dist/chunks/{Table-4OHjdKdO.js → Table-DU2MW8xz.js} +5 -3
- package/dist/chunks/{Tooltip-Crxo_eU_.js → Tooltip-K5HJr4_p.js} +31 -4
- package/dist/chunks/duration-BOv8Phl8.js +17 -0
- package/dist/chunks/{editor-9_uVtUyy.js → editor-Dk1rbV75.js} +32 -18
- package/dist/chunks/focus-D_iZJTW1.js +7 -0
- package/dist/chunks/{list-qrojZZNv.js → list-CJm875m7.js} +377 -370
- package/dist/chunks/logviewer-BTKuQWzw.js +828 -0
- package/dist/chunks/memoryStore-CC91S5LP.js +152 -0
- package/dist/chunks/types-Yy0NrerF.js +11 -0
- package/dist/components/Avatar.d.ts +1 -1
- package/dist/components/Breadcrumbs.d.ts +1 -1
- package/dist/components/Dropdown.d.ts +1 -1
- package/dist/components/EmptyState.d.ts +1 -1
- package/dist/components/Indicator.d.ts +2 -2
- package/dist/components/Input.d.ts +1 -1
- package/dist/components/LetterBadge.d.ts +1 -1
- package/dist/components/MarkdownImpl.d.ts +1 -1
- package/dist/components/Provider.d.ts +16 -65
- package/dist/components/SettingRow.d.ts +1 -1
- package/dist/components/SettingsGroup.d.ts +1 -1
- package/dist/components/focus.d.ts +2 -0
- package/dist/components/keys.d.ts +12 -0
- package/dist/duration.d.ts +3 -0
- package/dist/editor/Monaco.d.ts +1 -20
- package/dist/editor/index.d.ts +2 -1
- package/dist/editor/index.js +2 -2
- package/dist/editor/yaml.d.ts +5 -0
- package/dist/engine.d.ts +98 -0
- package/dist/file-explorer/FileExplorer.d.ts +11 -2
- package/dist/file-explorer/FileExplorerContext.d.ts +1 -1
- package/dist/file-explorer/FilePreview/CodePreviewEditor.d.ts +1 -1
- package/dist/file-explorer/FilePreview/previewType.d.ts +1 -1
- package/dist/file-explorer/FileRow.d.ts +1 -1
- package/dist/file-explorer/helpers.d.ts +4 -4
- package/dist/file-explorer/index.d.ts +3 -3
- package/dist/file-explorer/index.js +613 -647
- package/dist/file-explorer/lib/types.d.ts +6 -1
- package/dist/file-explorer/lib/utils.d.ts +1 -3
- package/dist/file-explorer/useNearEnd.d.ts +1 -1
- package/dist/form/FieldWrapper.d.ts +2 -2
- package/dist/form/Fields/ResourceOptionIcon.d.ts +1 -1
- package/dist/form/Form.d.ts +4 -21
- package/dist/form/index.d.ts +11 -12
- package/dist/form/index.js +1488 -1611
- package/dist/form/lib.d.ts +6 -1
- package/dist/form/types/fieldComponentTypes.d.ts +3 -2
- package/dist/form/types/fieldTypes.d.ts +6 -20
- package/dist/form/useParsedOpts.d.ts +1 -1
- package/dist/form/utils/{slurmDuration.d.ts → duration.d.ts} +2 -2
- package/dist/{workflow → graph}/MatrixGroup.d.ts +2 -2
- package/dist/{workflow → graph}/index.d.ts +1 -1
- package/dist/{workflow → graph}/index.js +215 -180
- package/dist/{workflow → graph}/types.d.ts +3 -3
- package/dist/icons.d.ts +20 -21
- package/dist/index.d.ts +38 -40
- package/dist/index.js +347 -346
- package/dist/list/ListTable.d.ts +1 -1
- package/dist/list/ListViewControls.d.ts +2 -2
- package/dist/list/index.d.ts +9 -9
- package/dist/list/index.js +2 -2
- package/dist/logviewer/LogViewer.d.ts +1 -1
- package/dist/logviewer/index.d.ts +1 -0
- package/dist/logviewer/index.js +2 -742
- package/dist/logviewer/segments.d.ts +9 -0
- package/dist/styles/fonts.css +4 -4
- package/dist/styles/theme.css +6 -4
- package/dist/styles.css +1 -1
- package/dist/theme/index.js +2 -2
- package/package.json +38 -14
- package/LICENSE +0 -202
- package/dist/chunks/Monaco-C1POOdVv.js +0 -1046
- package/dist/editor/usesGitlab.d.ts +0 -97
- package/dist/form/Fields/BucketReadOnlyField.d.ts +0 -7
- package/dist/form/types/workflow-schema.d.ts +0 -1145
- package/dist/form/utils/pwResolver.d.ts +0 -18
- package/dist/chunks/{MarkdownImpl-Bq4QhrtA.js → MarkdownImpl-CyeTVvSt.js} +1 -1
- /package/dist/{workflow → graph}/AnnotationBanner.d.ts +0 -0
- /package/dist/{workflow → graph}/Collapse.d.ts +0 -0
- /package/dist/{workflow → graph}/DependencyGraph.d.ts +0 -0
- /package/dist/{workflow → graph}/JobSummary.d.ts +0 -0
- /package/dist/{workflow → graph}/Reveal.d.ts +0 -0
- /package/dist/{workflow → graph}/TreeView.d.ts +0 -0
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
/** Pure helpers behind the gitlab/ uses: completion, kept out of Monaco.tsx so they can
|
|
2
|
-
* be tested without loading the editor. */
|
|
3
|
-
export interface MonacoRange {
|
|
4
|
-
startLineNumber: number;
|
|
5
|
-
startColumn: number;
|
|
6
|
-
endLineNumber: number;
|
|
7
|
-
endColumn: number;
|
|
8
|
-
}
|
|
9
|
-
interface LineReader {
|
|
10
|
-
getLineContent: (line: number) => string;
|
|
11
|
-
}
|
|
12
|
-
/** Splits GROUP/PROJECT@REF; the ref is null when no @ has been typed yet. */
|
|
13
|
-
export declare function splitAtRef(typed: string): [string, string | null];
|
|
14
|
-
/** What to insert for a chosen project, given what is already typed. A typed prefix is
|
|
15
|
-
* completed like the github one; a mid-path match has to replace what is there. */
|
|
16
|
-
export declare function projectInsert(typed: string, path: string): {
|
|
17
|
-
text: string;
|
|
18
|
-
replace: boolean;
|
|
19
|
-
};
|
|
20
|
-
/** The $host the step pins, or undefined. Quotes and a trailing comment are stripped,
|
|
21
|
-
* so a pinned host is recognised however it was written. */
|
|
22
|
-
export declare function stepHostAbove(model: LineReader, usesLine: number, maxLines?: number): string | undefined;
|
|
23
|
-
/** A YAML scalar as written: quotes removed, a trailing comment dropped. */
|
|
24
|
-
export declare function unquoteScalar(raw: string): string;
|
|
25
|
-
/** A missing $host already means gitlab.com, so naming it adds nothing. */
|
|
26
|
-
export declare const DEFAULT_GITLAB_HOST = "gitlab.com";
|
|
27
|
-
/** How to add `$host` to a step. Always an edit of its own: monaco re-indents a
|
|
28
|
-
* multi-line insertText, and the cursor has to stay after the project. */
|
|
29
|
-
export declare function hostCompletion(model: LineReader & {
|
|
30
|
-
getLineCount: () => number;
|
|
31
|
-
}, usesLine: number, host: string): {
|
|
32
|
-
appendText: string;
|
|
33
|
-
edits: {
|
|
34
|
-
range: MonacoRange;
|
|
35
|
-
text: string;
|
|
36
|
-
}[];
|
|
37
|
-
};
|
|
38
|
-
/** A trailing slash or @ after a known project is the ref separator, the way a trailing
|
|
39
|
-
* slash is for github/OWNER/REPO. The slash is swapped for @ when a ref is accepted. */
|
|
40
|
-
export declare function refTrigger(typed: string, knownPaths: string[]): {
|
|
41
|
-
projectPath: string;
|
|
42
|
-
replaceSlash: boolean;
|
|
43
|
-
} | undefined;
|
|
44
|
-
/** What to ask the platform for when completing a project path: everything before the
|
|
45
|
-
* first slash. Typing deeper then filters that answer instead of asking again. */
|
|
46
|
-
export declare function projectSearchKey(typed: string): string;
|
|
47
|
-
/** Where a `$yaml:`/`$thumbnail:` value's files come from: the nearest `uses:` above,
|
|
48
|
-
* addressed the way the platform's file endpoint expects. A gitlab/ path carries no
|
|
49
|
-
* host, so the step's $host supplies it. */
|
|
50
|
-
export declare function usesFileSource(model: LineReader, fromLine: number, maxLines?: number): {
|
|
51
|
-
repo: string;
|
|
52
|
-
ref: string;
|
|
53
|
-
} | undefined;
|
|
54
|
-
/** One entry of a repository tree. */
|
|
55
|
-
export interface RepoTreeEntry {
|
|
56
|
-
path: string;
|
|
57
|
-
type: 'tree' | 'blob';
|
|
58
|
-
}
|
|
59
|
-
declare const FILE_VALUE_KINDS: {
|
|
60
|
-
$yaml: {
|
|
61
|
-
detail: string;
|
|
62
|
-
keep: (path: string) => boolean;
|
|
63
|
-
};
|
|
64
|
-
$thumbnail: {
|
|
65
|
-
detail: string;
|
|
66
|
-
keep: (path: string) => boolean;
|
|
67
|
-
};
|
|
68
|
-
};
|
|
69
|
-
/** Which of the two file-valued keys the cursor sits on, if either. */
|
|
70
|
-
export declare function fileValueKey(textUntilCursor: string): keyof typeof FILE_VALUE_KINDS | undefined;
|
|
71
|
-
/** The files worth offering for a `$yaml:`/`$thumbnail:` value, from whichever
|
|
72
|
-
* repository the step's `uses:` names. Empty when the line is not one of those keys,
|
|
73
|
-
* no `uses:` is above it, or the tree cannot be read. */
|
|
74
|
-
export declare function fileValueSuggestions(model: LineReader, line: number, textUntilCursor: string, loadTree: (repo: string, ref: string) => Promise<RepoTreeEntry[]>): Promise<{
|
|
75
|
-
path: string;
|
|
76
|
-
detail: string;
|
|
77
|
-
}[]>;
|
|
78
|
-
/** Every $-prefixed key a step already sets, mapped to its value. Nothing already
|
|
79
|
-
* written is offered a second time, and an existing one must not suppress the rest. */
|
|
80
|
-
export declare function specialKeysNearUses(model: LineReader & {
|
|
81
|
-
getLineCount: () => number;
|
|
82
|
-
}, usesLineNumber: number): Map<string, string>;
|
|
83
|
-
/** The same, for a with: block located by its own indentation. */
|
|
84
|
-
export declare function specialKeysInWithBlock(model: LineReader & {
|
|
85
|
-
getLineCount: () => number;
|
|
86
|
-
}, withLineNumber: number): Map<string, string>;
|
|
87
|
-
/** Text to be inserted as a snippet, with the characters monaco's snippet parser would
|
|
88
|
-
* otherwise read as placeholders escaped. */
|
|
89
|
-
export declare function snippetLiteral(text: string): string;
|
|
90
|
-
/** How a completion inserts its text when a `$host` block has to travel with it. The
|
|
91
|
-
* cursor stop is what keeps the caret on the uses: line rather than after the block;
|
|
92
|
-
* without a block there is nothing to escape and it stays a plain insert. */
|
|
93
|
-
export declare function completionInsert(text: string, appendText: string): {
|
|
94
|
-
insertText: string;
|
|
95
|
-
isSnippet: boolean;
|
|
96
|
-
};
|
|
97
|
-
export {};
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { FieldComponentProps } from '../types/fieldComponentTypes.js';
|
|
2
|
-
import type { BaseField } from '../types/fieldTypes.js';
|
|
3
|
-
interface BucketReadOnlyField extends BaseField {
|
|
4
|
-
type: 'bucket-read-only';
|
|
5
|
-
}
|
|
6
|
-
export default function BucketReadOnlyField({ field, disabled, missing, labelPosition, setFormDirty, }: FieldComponentProps<BucketReadOnlyField>): import("react").JSX.Element;
|
|
7
|
-
export {};
|