osagent 0.2.75 → 0.2.76
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 +29 -6
- package/package.json +1 -1
package/cli.js
CHANGED
|
@@ -133087,7 +133087,7 @@ var init_geminiContentGenerator = __esm({
|
|
|
133087
133087
|
}
|
|
133088
133088
|
models;
|
|
133089
133089
|
constructor(contentGeneratorConfig, config2) {
|
|
133090
|
-
const version3 = "0.2.
|
|
133090
|
+
const version3 = "0.2.76";
|
|
133091
133091
|
const userAgent2 = `OSAgent/${version3} (${process.platform}; ${process.arch})`;
|
|
133092
133092
|
let headers = {
|
|
133093
133093
|
"User-Agent": userAgent2
|
|
@@ -153007,7 +153007,7 @@ function createContentGeneratorConfig(config2, authType, generationConfig) {
|
|
|
153007
153007
|
};
|
|
153008
153008
|
}
|
|
153009
153009
|
async function createContentGenerator(config2, gcConfig, sessionId2, isInitialAuth) {
|
|
153010
|
-
const version3 = "0.2.
|
|
153010
|
+
const version3 = "0.2.76";
|
|
153011
153011
|
const userAgent2 = `OSAgent/${version3} (${process.platform}; ${process.arch})`;
|
|
153012
153012
|
const baseHeaders = {
|
|
153013
153013
|
"User-Agent": userAgent2
|
|
@@ -251987,9 +251987,30 @@ I've found some existing telemetry code. Let me mark the first todo as in_progre
|
|
|
251987
251987
|
|
|
251988
251988
|
# Primary Workflows
|
|
251989
251989
|
|
|
251990
|
+
## CRITICAL: Project Context Discovery (Do This FIRST)
|
|
251991
|
+
|
|
251992
|
+
**BEFORE doing ANY work on a project, you MUST check for project context:**
|
|
251993
|
+
|
|
251994
|
+
1. **Check for OSAGENT.md:** Use '${ToolNames.READ_FILE}' to check if \`OSAGENT.md\` exists in the project root directory. This file contains critical project-specific instructions, conventions, and context that you MUST follow.
|
|
251995
|
+
|
|
251996
|
+
2. **If OSAGENT.md exists:** Read it completely and follow ALL instructions within it. This file takes precedence over default behaviors. It may contain:
|
|
251997
|
+
- Project architecture and structure
|
|
251998
|
+
- Coding conventions and patterns to follow
|
|
251999
|
+
- Files and directories that should not be modified
|
|
252000
|
+
- Specific workflows or approval requirements
|
|
252001
|
+
- Technology stack details
|
|
252002
|
+
- Testing and build commands
|
|
252003
|
+
|
|
252004
|
+
3. **If OSAGENT.md does not exist:** Proceed with normal project discovery (check package.json, README, etc.) but consider suggesting the user create one for future sessions.
|
|
252005
|
+
|
|
252006
|
+
4. **Also check for .osagent/ directory:** Look for \`.osagent/settings.json\` or \`.osagent/system.md\` which may contain additional configuration.
|
|
252007
|
+
|
|
252008
|
+
**This step is NON-NEGOTIABLE. Do NOT skip it even for simple requests like "hello world". The project context file may contain critical information about what is and isn't allowed.**
|
|
252009
|
+
|
|
251990
252010
|
## Software Engineering Tasks
|
|
251991
252011
|
When requested to perform tasks like fixing bugs, adding features, refactoring, or explaining code, follow this iterative approach:
|
|
251992
|
-
- **
|
|
252012
|
+
- **FIRST: Check Context:** Before doing anything else, follow the "Project Context Discovery" steps above. Check for \`OSAGENT.md\` in the project root. This is mandatory.
|
|
252013
|
+
- **Plan:** After understanding the user's request and reading any project context files, create an initial plan based on your existing knowledge and the project's conventions. Use the '${ToolNames.TODO_WRITE}' tool to capture this rough plan for complex or multi-step work. Don't wait for complete understanding - start with what you know.
|
|
251993
252014
|
- **Implement:** Begin implementing the plan while gathering additional context as needed. Use '${ToolNames.GREP}', '${ToolNames.GLOB}', '${ToolNames.READ_FILE}', and '${ToolNames.READ_MANY_FILES}' tools strategically when you encounter specific unknowns during implementation. Use the available tools (e.g., '${ToolNames.EDIT}', '${ToolNames.WRITE_FILE}' '${ToolNames.SHELL}' ...) to act on the plan, strictly adhering to the project's established conventions (detailed under 'Core Mandates').
|
|
251994
252015
|
- **Adapt:** As you discover new information or encounter obstacles, update your plan and todos accordingly. Mark todos as in_progress when starting and completed when finishing each task. Add new todos if the scope expands. Refine your approach based on what you learn.
|
|
251995
252016
|
- **Verify (Tests):** If applicable and feasible, verify the changes using the project's testing procedures. Identify the correct test commands and frameworks by examining 'README' files, build/package configuration (e.g., 'package.json'), or existing test execution patterns. NEVER assume standard test commands.
|
|
@@ -252005,6 +252026,8 @@ IMPORTANT: Always use the ${ToolNames.TODO_WRITE} tool to plan and track tasks t
|
|
|
252005
252026
|
|
|
252006
252027
|
**Goal:** Autonomously implement and deliver complete, scalable foundations - from simple prototypes to full Operating Systems. Think beyond single applications: help users build ecosystems that can grow with their needs.
|
|
252007
252028
|
|
|
252029
|
+
0. **FIRST: Check Project Context:** Before starting ANY work, follow the "Project Context Discovery" steps above. Check for \`OSAGENT.md\` in the project root. If it exists, it may contain critical project guidelines, architecture decisions, or restrictions that you MUST follow.
|
|
252030
|
+
|
|
252008
252031
|
1. **Understand Requirements:** Analyze the user's request to identify:
|
|
252009
252032
|
- **Scope:** Is this a single app, or a foundation/OS for a larger system?
|
|
252010
252033
|
- **Use Case:** Business operations, content creation, development tooling, automation, etc.
|
|
@@ -340492,7 +340515,7 @@ __name(getPackageJson, "getPackageJson");
|
|
|
340492
340515
|
// packages/cli/src/utils/version.ts
|
|
340493
340516
|
async function getCliVersion() {
|
|
340494
340517
|
const pkgJson = await getPackageJson();
|
|
340495
|
-
return "0.2.
|
|
340518
|
+
return "0.2.76";
|
|
340496
340519
|
}
|
|
340497
340520
|
__name(getCliVersion, "getCliVersion");
|
|
340498
340521
|
|
|
@@ -344693,8 +344716,8 @@ var formatDuration = /* @__PURE__ */ __name((milliseconds) => {
|
|
|
344693
344716
|
|
|
344694
344717
|
// packages/cli/src/generated/git-commit.ts
|
|
344695
344718
|
init_esbuild_shims();
|
|
344696
|
-
var GIT_COMMIT_INFO2 = "
|
|
344697
|
-
var CLI_VERSION2 = "0.2.
|
|
344719
|
+
var GIT_COMMIT_INFO2 = "c69e8c7";
|
|
344720
|
+
var CLI_VERSION2 = "0.2.76";
|
|
344698
344721
|
|
|
344699
344722
|
// packages/cli/src/utils/systemInfo.ts
|
|
344700
344723
|
async function getNpmVersion() {
|