Skip to content

Commit 38eaded

Browse files
committed
d
1 parent dc7f68d commit 38eaded

2 files changed

Lines changed: 30 additions & 10 deletions

File tree

pages/ai/gemini.html

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,13 @@
88
/>
99

1010
<title>Gemini CLI</title>
11+
<style>
12+
#body .inside {
13+
max-width: 1122px;
14+
}
15+
</style>
1116
</head>
12-
<body class="layout bg" toc>
17+
<body class="layout bg" toc id="body">
1318
<div class="body">
1419
<div class="inside">
1520
<div class="cards">
@@ -32,10 +37,10 @@ <h2>Cli</h2>
3237
/footer
3338
Shift+Tab to accept edits 1 skill
3439
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
35-
> Type your message or @path/to/file
40+
> Type your message or @path/to/file
3641
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
3742
sandbox /model quota context memory /auth tokens session
38-
no sandbox gemini-3-flash-preview 0% used 0% used 243.4 MB gggg @gmail.com 760 tokens 133xxxx5
43+
no sandbox gemini-3-flash-preview 0% used 0% used 243.4 MB gggg @gmail.com 760 tokens 133xxxx5
3944

4045
# skills https://geminicli.com/docs/cli/tutorials/skills-getting-started/
4146

@@ -53,7 +58,7 @@ <h2>Cli</h2>
5358
# fork session: https://geminicli.com/docs/cli/tutorials/session-management/#how-to-fork-conversations
5459
/resume save decision-point
5560
/resume resume decision-point
56-
61+
5762
/clear - start new session
5863
GEMINI.md locations: https://geminicli.com/docs/cli/tutorials/memory-management/#scenario-using-the-hierarchy
5964
/memory show - to see what is loaded
@@ -76,7 +81,7 @@ <h2>Cli</h2>
7681
Wenyan-Ultra /caveman wenyan-ultra Ancient scholar on budget.
7782
└──────────────┴───────────────────────┴───────────────────────────────────────────────┘
7883
Skills
79-
84+
8085
┌──────────────────┬──────────────────────────┬────────────────────────┐
8186
Skill Trigger Action
8287
├──────────────────┼──────────────────────────┼────────────────────────┤
@@ -85,12 +90,8 @@ <h2>Cli</h2>
8590
caveman-compress /caveman-compress <file> Compress .md files.
8691
caveman-help /caveman-help This card.
8792
└──────────────────┴──────────────────────────┴────────────────────────┘
88-
89-
Deactivate: Say "stop caveman" or "normal mode".
9093

91-
92-
93-
94+
Deactivate: Say "stop caveman" or "normal mode".
9495
</script>
9596
</div>
9697
</div>

tests/url/toolsURLSearchParams.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,29 @@ function sortSearchParamsByKeyThenValue(params) {
4848
})
4949
);
5050
}
51+
function syncURLSearchParams(base, governedKeys, ...sources) {
52+
const result = new URLSearchParams(base);
53+
const keys = Array.isArray(governedKeys) ? governedKeys : Array.from(governedKeys);
54+
for (const source of sources) {
55+
for (const key of keys) {
56+
if (source.has(key)) {
57+
result.delete(key);
58+
source.getAll(key).forEach((value) => {
59+
result.append(key, value);
60+
});
61+
} else {
62+
result.delete(key);
63+
}
64+
}
65+
}
66+
result.sort();
67+
return result;
68+
}
5169
export {
5270
cloneSearchParams,
5371
compareNormalizedSearchParams,
5472
mergeURLSearchParams,
5573
normalizeSearchParams,
5674
sortSearchParamsByKeyThenValue,
75+
syncURLSearchParams,
5776
};

0 commit comments

Comments
 (0)