@ikyyofc/gemini-cli 3.0.9 → 4.0.1
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/package.json +1 -1
- package/src/agent.js +13 -0
- package/src/tools.js +486 -423
package/package.json
CHANGED
package/src/agent.js
CHANGED
|
@@ -20,8 +20,21 @@ function buildSystemPrompt(extra = "") {
|
|
|
20
20
|
const skills = loadSkills();
|
|
21
21
|
const skillsBlock = buildSkillsPrompt(skills);
|
|
22
22
|
|
|
23
|
+
// Current datetime injected directly — no tool needed
|
|
24
|
+
const now = new Date();
|
|
25
|
+
const tz = Intl.DateTimeFormat().resolvedOptions().timeZone;
|
|
26
|
+
const datetime = now.toLocaleString("id-ID", {
|
|
27
|
+
timeZone: tz,
|
|
28
|
+
dateStyle: "full",
|
|
29
|
+
timeStyle: "long",
|
|
30
|
+
});
|
|
31
|
+
|
|
23
32
|
return `You are an autonomous AI coding agent running in the user's terminal. You have full access to their filesystem and shell through tools.
|
|
24
33
|
|
|
34
|
+
## CURRENT TIME
|
|
35
|
+
${datetime} (${tz})
|
|
36
|
+
Unix timestamp: ${Math.floor(now.getTime() / 1000)}
|
|
37
|
+
|
|
25
38
|
## CORE RULE — NEVER ASK, ALWAYS ACT
|
|
26
39
|
|
|
27
40
|
You MUST use tools to complete tasks. You are NEVER allowed to:
|