@c4a/context-cli 0.7.63 → 0.7.64
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/cli.js +17 -8
- package/indexers/contracts/profile-contract.json +245 -245
- package/indexers/release-manifest.json +1 -1
- package/package.json +12 -12
- package/plugins/VERSION +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/codex/.codex-plugin/plugin.json +2 -2
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/providers/context/manifest.json +5 -5
- package/providers/context/provider.yaml +1 -1
- package/providers/context/resources/manuals/guides/package-outputs.md +3 -1
package/cli.js
CHANGED
|
@@ -87750,8 +87750,11 @@ export default {
|
|
|
87750
87750
|
tags.map(tag => h('span', { 'data-context-locales': tag, lang: next(tag) }, shortLabel(next(tag))))),
|
|
87751
87751
|
]);
|
|
87752
87752
|
};
|
|
87753
|
+
// Origin links become absolute URLs, which VitePress never marks active.
|
|
87753
87754
|
const navLink = item => ({ text: item.text,
|
|
87754
|
-
...(item.origin ? { link: mounted.value ? window.location.origin + item.link : item.link, target: '_self', noIcon: true
|
|
87755
|
+
...(item.origin ? { link: mounted.value ? window.location.origin + item.link : item.link, target: '_self', noIcon: true,
|
|
87756
|
+
activeMatch: [item.link, item.link + 'index.html'].includes(route.path) ||
|
|
87757
|
+
(inHome.value && item.link === data.site.value.base) ? '^' : '(?!)' } : { link: item.link }) });
|
|
87755
87758
|
const href = value => value.startsWith('/') ? data.site.value.base + value.slice(1) : value;
|
|
87756
87759
|
const external = value => /^https?:\/\//.test(value) || value.startsWith('mailto:');
|
|
87757
87760
|
const copyCommand = async value => {
|
|
@@ -87871,7 +87874,7 @@ export default {
|
|
|
87871
87874
|
...data.theme.value.contextUiLabels?.[chinese.value ? 'zh' : 'en'],
|
|
87872
87875
|
sidebar: outsideSections.value ? [] : active.value?.items || [],
|
|
87873
87876
|
nav: [...userNav('start'), ...sections.value.map(section => ({ text: section.label, link: section.href,
|
|
87874
|
-
activeMatch: !outsideSections.value && section.key === selected.value ? '^' : '(?!)' })),
|
|
87877
|
+
activeMatch: !inHome.value && !outsideSections.value && section.key === selected.value ? '^' : '(?!)' })),
|
|
87875
87878
|
...userNav('end'),
|
|
87876
87879
|
{ text: bothHtml('更多', 'More'), items: [
|
|
87877
87880
|
...(data.theme.value.contextMore || []).map(navLink),
|
|
@@ -87969,14 +87972,20 @@ export default {
|
|
|
87969
87972
|
`;
|
|
87970
87973
|
siteThemeCss = `
|
|
87971
87974
|
.context-business-floating { position: fixed; right: max(20px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom)); z-index: 30; max-width: calc(100vw - 40px); }
|
|
87972
|
-
.context-history-cards { display: grid; gap: 16px; margin: 24px 0; }
|
|
87973
|
-
.context-history-card { border: 1px solid var(--vp-c-divider); border-radius: 12px; background: var(--vp-c-bg-soft); }
|
|
87974
|
-
.context-history-card summary { display: flex; align-items: baseline;
|
|
87975
|
+
.context-history-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 24px 0; }
|
|
87976
|
+
.context-history-card { min-width: 0; border: 1px solid var(--vp-c-divider); border-radius: 12px; background: var(--vp-c-bg-soft); }
|
|
87977
|
+
.context-history-card summary { display: flex; align-items: baseline; gap: 12px; padding: 20px; cursor: pointer; }
|
|
87975
87978
|
.context-history-card summary::before { content: '▸'; }
|
|
87976
87979
|
.context-history-card[open] summary::before { content: '▾'; }
|
|
87977
87980
|
.context-history-card summary strong { color: var(--vp-c-brand-1); font-size: 13px; }
|
|
87978
|
-
.context-history-
|
|
87979
|
-
.context-history-
|
|
87981
|
+
.context-history-card summary strong, .context-history-card summary::before { flex-shrink: 0; }
|
|
87982
|
+
.context-history-title { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
87983
|
+
.context-history-card[open] .context-history-title { white-space: normal; overflow-wrap: anywhere; }
|
|
87984
|
+
.context-history-attribution { flex-shrink: 0; margin-left: auto; font-size: 13px; color: var(--vp-c-text-2); white-space: nowrap; }
|
|
87985
|
+
@media (max-width: 639px) {
|
|
87986
|
+
.context-history-card summary { flex-wrap: wrap; }
|
|
87987
|
+
.context-history-attribution { flex-basis: 100%; text-align: right; }
|
|
87988
|
+
}
|
|
87980
87989
|
.context-history-body { padding: 0 24px 20px; font-size: 13px; line-height: 1.8; overflow-wrap: anywhere; }
|
|
87981
87990
|
.context-history-body ul { list-style: disc; padding-left: 20px; }
|
|
87982
87991
|
.context-history-meta { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--vp-c-divider); color: var(--vp-c-text-2); }
|
|
@@ -89697,7 +89706,7 @@ function restoreOriginNavLinks(html, base, links) {
|
|
|
89697
89706
|
const link = href === undefined ? undefined : prefixedHref.get(href);
|
|
89698
89707
|
if (link === undefined)
|
|
89699
89708
|
return tag;
|
|
89700
|
-
return tag.replace(` href="${href}"`, ` href="${link}"`)
|
|
89709
|
+
return tag.replace(` href="${href}"`, ` href="${link}"`);
|
|
89701
89710
|
});
|
|
89702
89711
|
}
|
|
89703
89712
|
function translatedMarkdown(content3, from, pages, resources) {
|