@parhelia/alpaca 0.4.12825 → 0.4.12871

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/GraphQL.js CHANGED
@@ -184,7 +184,7 @@ export function GraphQL() {
184
184
  setQuery(newQuery);
185
185
  setAiGeneratedQuery(newQuery);
186
186
  };
187
- return (_jsxs("div", { className: "relative flex h-full min-h-0 flex-col overflow-hidden text-xs", children: [aiGeneratedQuery && aiGeneratedQuery !== query && (_jsxs("div", { className: "shrink-0 flex items-center gap-2 border-b border-feedback-orange bg-feedback-orange-light p-2 text-xs", children: [_jsx("span", { className: "text-feedback-orange", children: "AI generated a new query" }), _jsx(ActionButton, { onClick: () => applyQueryToEditor(aiGeneratedQuery), className: "p-1 text-xs", variant: "outline", children: "Apply" }), _jsx(ActionButton, { onClick: () => setAiGeneratedQuery(""), className: "p-1", variant: "ghost", children: "x" })] })), _jsx(GraphiQLPanel, { item: currentItem, itemLabel: baseItemLabel, query: query, variables: graphiqlVariables, onQueryChange: setQuery, onVariablesChange: setGraphiqlVariables, onExecutionResult: () => { }, headerActions: _jsx(TooltipProvider, { delayDuration: 300, children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs(ActionButton, { variant: "outline", className: "h-8 w-8 rounded-full p-0", onClick: () => {
187
+ return (_jsxs("div", { className: "relative flex h-full min-h-0 flex-col overflow-hidden text-xs", children: [aiGeneratedQuery && aiGeneratedQuery !== query && (_jsxs("div", { className: "shrink-0 flex items-center gap-2 border-b border-feedback-orange/30 bg-feedback-orange-light p-2 text-xs", children: [_jsx("span", { className: "text-feedback-orange", children: "AI generated a new query" }), _jsx(ActionButton, { onClick: () => applyQueryToEditor(aiGeneratedQuery), className: "p-1 text-xs", variant: "outline", children: "Apply" }), _jsx(ActionButton, { onClick: () => setAiGeneratedQuery(""), className: "p-1", variant: "ghost", children: "x" })] })), _jsx(GraphiQLPanel, { item: currentItem, itemLabel: baseItemLabel, query: query, variables: graphiqlVariables, onQueryChange: setQuery, onVariablesChange: setGraphiqlVariables, onExecutionResult: () => { }, headerActions: _jsx(TooltipProvider, { delayDuration: 300, children: _jsxs(Tooltip, { children: [_jsx(TooltipTrigger, { asChild: true, children: _jsxs(ActionButton, { variant: "outline", className: "h-8 w-8 rounded-full p-0", onClick: () => {
188
188
  editContext?.executeCommand?.({
189
189
  command: createAgentCommand,
190
190
  data: {
@@ -203,5 +203,5 @@ export function GraphiQLPanel({ item, query, variables, onQueryChange, onVariabl
203
203
  .alpaca-graphiql-shell .graphiql-logo {
204
204
  display: none;
205
205
  }
206
- ` }), _jsxs("div", { className: "flex items-center justify-between gap-3 border-b border-border-default bg-neutral-grey-5 px-3 py-2 text-xs text-neutral-grey-50", children: [_jsxs("div", { className: "flex min-w-0 flex-wrap items-center gap-2", children: [_jsxs("span", { children: ["Base item: ", _jsx("span", { className: "font-mono", children: itemLabel || item.id })] }), _jsxs("span", { children: [item.language, " v", item.version] })] }), headerActions && (_jsx("div", { className: "ml-auto flex shrink-0 items-center gap-2", children: headerActions }))] }), !!lastTransportMessage && (_jsx("div", { className: "border-b border-feedback-orange bg-feedback-orange-light px-3 py-2 text-xs text-feedback-orange", children: lastTransportMessage })), schemaResult.error && (_jsxs("div", { className: "flex items-center justify-between gap-3 border-b border-feedback-red bg-feedback-red-light px-3 py-2 text-xs text-feedback-red", children: [_jsx("span", { children: schemaResult.error }), _jsxs(ActionButton, { className: "shrink-0", disabled: isRefreshingSchema, isLoading: isRefreshingSchema, loadingText: "Retrying", onClick: handleRefreshSchema, variant: "outline", children: [_jsx(RefreshCw, { strokeWidth: 1, className: "h-3.5 w-3.5" }), _jsx("span", { children: "Retry" })] })] })), _jsx("div", { className: "alpaca-graphiql-shell min-h-0 flex-1 bg-white [&_.graphiql-container]:h-full", children: _jsx(GraphiQLIDE, { className: "h-full", fetcher: fetcher, schema: graphiqlSchema, forcedTheme: "light", initialQuery: query, initialVariables: variables, initialHeaders: "", onEditQuery: onQueryChange, onEditVariables: onVariablesChange, onEditHeaders: handleEditHeaders, isHeadersEditorEnabled: false, defaultEditorToolsVisibility: "variables", plugins: plugins, children: _jsx(GraphiQLSyncBridge, { query: query, variables: variables }) }) })] }));
206
+ ` }), _jsxs("div", { className: "flex items-center justify-between gap-3 border-b border-border-default bg-neutral-grey-5 px-3 py-2 text-xs text-neutral-grey-50", children: [_jsxs("div", { className: "flex min-w-0 flex-wrap items-center gap-2", children: [_jsxs("span", { children: ["Base item: ", _jsx("span", { className: "font-mono", children: itemLabel || item.id })] }), _jsxs("span", { children: [item.language, " v", item.version] })] }), headerActions && (_jsx("div", { className: "ml-auto flex shrink-0 items-center gap-2", children: headerActions }))] }), !!lastTransportMessage && (_jsx("div", { className: "border-b border-feedback-orange/30 bg-feedback-orange-light px-3 py-2 text-xs text-feedback-orange", children: lastTransportMessage })), schemaResult.error && (_jsxs("div", { className: "flex items-center justify-between gap-3 border-b border-feedback-red bg-feedback-red-light px-3 py-2 text-xs text-feedback-red", children: [_jsx("span", { children: schemaResult.error }), _jsxs(ActionButton, { className: "shrink-0", disabled: isRefreshingSchema, isLoading: isRefreshingSchema, loadingText: "Retrying", onClick: handleRefreshSchema, variant: "outline", children: [_jsx(RefreshCw, { strokeWidth: 1, className: "h-3.5 w-3.5" }), _jsx("span", { children: "Retry" })] })] })), _jsx("div", { className: "alpaca-graphiql-shell min-h-0 flex-1 bg-white [&_.graphiql-container]:h-full", children: _jsx(GraphiQLIDE, { className: "h-full", fetcher: fetcher, schema: graphiqlSchema, forcedTheme: "light", initialQuery: query, initialVariables: variables, initialHeaders: "", onEditQuery: onQueryChange, onEditVariables: onVariablesChange, onEditHeaders: handleEditHeaders, isHeadersEditorEnabled: false, defaultEditorToolsVisibility: "variables", plugins: plugins, children: _jsx(GraphiQLSyncBridge, { query: query, variables: variables }) }) })] }));
207
207
  }
@@ -19,7 +19,7 @@ async function getLinkToMasterCommand(components, editContext) {
19
19
  if (components.some((c) => c.layoutId && !editContext.showLayoutComponents)) {
20
20
  return null;
21
21
  }
22
- return getCheckboxCommand(components, editContext, "componentLinkedToMasterLanguage", "Linked To Master Language");
22
+ return getCheckboxCommand(components, editContext, "componentLinkedToMasterLanguage", "Linked to master language");
23
23
  }
24
24
  async function getInheritChildrenFromMasterCommand(components, editContext) {
25
25
  if (!components.length)
@@ -32,7 +32,7 @@ async function getInheritChildrenFromMasterCommand(components, editContext) {
32
32
  if (components.some((c) => c.layoutId && !editContext.showLayoutComponents)) {
33
33
  return null;
34
34
  }
35
- return getCheckboxCommand(components, editContext, "inheritChildrenFromMasterLanguage", "Inherit Children From Master");
35
+ return getCheckboxCommand(components, editContext, "inheritChildrenFromMasterLanguage", "Inherit children from master");
36
36
  }
37
37
  async function getCheckboxCommand(components, editContext, fieldName, label) {
38
38
  const datasourceItems = components
@@ -22,5 +22,5 @@ export function CaptureCompleteness({ source, story }) {
22
22
  ].filter(Boolean);
23
23
  if (!notes.length)
24
24
  return null;
25
- return _jsx("div", { className: "border-b border-border-default bg-feedback-orange-light px-4 py-2 text-xs text-neutral-grey-100", role: "status", children: notes.join(" · ") });
25
+ return _jsx("div", { className: "border-b border-feedback-orange/30 bg-feedback-orange-light px-4 py-2 text-xs text-feedback-orange", role: "status", children: notes.join(" · ") });
26
26
  }
@@ -98,7 +98,7 @@ export function LogsTab({ sessionId, story, jumpMs, onJumpConsumed, }) {
98
98
  .join("\n");
99
99
  return (_jsxs("div", { className: "flex h-full min-h-0 flex-col", "data-testid": "alpaca-trace-logs", "data-mode": sessionMode ? "session" : "story", children: [_jsxs("div", { className: "flex flex-wrap items-center gap-2 border-b border-border-default px-3 py-2", children: [_jsx("div", { className: "flex items-center gap-1", "data-testid": "alpaca-trace-level-chips", children: LOG_LEVELS.map((level) => (_jsx("button", { type: "button", onClick: () => toggleLevel(level), className: cls("rounded border px-1.5 py-0.5 text-2xs uppercase tracking-wide", levels.includes(level)
100
100
  ? "border-highlight-100 bg-highlight-10 text-neutral-grey-100"
101
- : "border-border-default text-neutral-grey-50 hover:bg-neutral-grey-5"), "data-testid": `alpaca-trace-level-${level}`, children: level }, level))) }), _jsx(Select, { size: "xs", options: scopeOptions, value: scopePrefix, onValueChange: setScopePrefix, maxWidth: 260, searchable: true, "data-testid": "alpaca-trace-scope-select" }), _jsx(SearchInput, { value: search, onChange: setSearch, placeholder: "Search messages", size: "sm", className: "min-w-[140px] flex-1", testId: "alpaca-trace-logs-search" }), _jsx(Button, { variant: "outline", size: "xs", onClick: () => setRelative((v) => !v), "data-testid": "alpaca-trace-time-mode", children: relative ? "+relative" : "absolute" }), _jsx(CopyButton, { textToCopy: copyAll, iconOnly: true })] }), page?.evicted && (_jsxs("div", { className: "border-b border-feedback-orange/20 bg-feedback-orange-light px-3 py-1 text-2xs text-feedback-orange", "data-testid": "alpaca-trace-evicted", children: [page.evictedCount, " entries were lost to the rolling buffer. Persist sessions you want to keep."] })), _jsx(InlineError, { message: error }), _jsx("div", { className: "min-h-0 flex-1 overflow-auto", children: entries.length === 0 ? (_jsx(EmptyHint, { title: loading ? "Loading…" : "No log entries", children: !loading && (levels.length < LOG_LEVELS.length || scopePrefix || debouncedSearch
101
+ : "border-border-default text-neutral-grey-50 hover:bg-neutral-grey-5"), "data-testid": `alpaca-trace-level-${level}`, children: level }, level))) }), _jsx(Select, { size: "xs", options: scopeOptions, value: scopePrefix, onValueChange: setScopePrefix, maxWidth: 260, searchable: true, "data-testid": "alpaca-trace-scope-select" }), _jsx(SearchInput, { value: search, onChange: setSearch, placeholder: "Search messages", size: "sm", className: "min-w-[140px] flex-1", testId: "alpaca-trace-logs-search" }), _jsx(Button, { variant: "outline", size: "xs", onClick: () => setRelative((v) => !v), "data-testid": "alpaca-trace-time-mode", children: relative ? "+relative" : "absolute" }), _jsx(CopyButton, { textToCopy: copyAll, iconOnly: true })] }), page?.evicted && (_jsxs("div", { className: "border-b border-feedback-orange/30 bg-feedback-orange-light px-3 py-1 text-2xs text-feedback-orange", "data-testid": "alpaca-trace-evicted", children: [page.evictedCount, " entries were lost to the rolling buffer. Persist sessions you want to keep."] })), _jsx(InlineError, { message: error }), _jsx("div", { className: "min-h-0 flex-1 overflow-auto", children: entries.length === 0 ? (_jsx(EmptyHint, { title: loading ? "Loading…" : "No log entries", children: !loading && (levels.length < LOG_LEVELS.length || scopePrefix || debouncedSearch
102
102
  ? "Nothing matches the current filters."
103
103
  : story && !story.available.logs
104
104
  ? "Logs were not persisted for this story."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parhelia/alpaca",
3
- "version": "0.4.12825",
3
+ "version": "0.4.12871",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"