Open source AI coding agent. Designed for large projects and real world tasks.
Go aiai-agentsai-developer-toolsai-toolsclicommand-linedeveloper-toolsgitgolanggpt-4llmopenaipolyglot-programmingterminalterminal-basedterminal-ui
working on verify fix
Dane Schneiderb5e0c15f48c7
diff --git a/app/_env b/app/_envindex 9a46d3aa..4026e568 100644--- a/app/_env+++ b/app/_env@@ -5,4 +5,3 @@ PLANDEX_PASSWORD=PGDATA_DIR=PLANDEX_DATA_DIR=GOENV=development-PIN2LOG=truediff --git a/app/cli/dev.sh b/app/cli/dev.shindex 51137c78..07a9155a 100755--- a/app/cli/dev.sh+++ b/app/cli/dev.sh@@ -1,9 +1,11 @@#!/bin/bash-OUT="${PLANDEX_OUT_DIR:-/usr/local/bin}"+OUT="${PLANDEX_DEV_CLI_OUT_DIR:-/usr/local/bin}"+NAME="${PLANDEX_DEV_CLI_NAME:-plandex-dev}"+ALIAS="${PLANDEX_DEV_CLI_ALIAS:-pdxd}"-go build && \-rm -f $OUT/plandex && \-cp plandex $OUT/plandex && \-ln -sf $OUT/plandex $OUT/pdx && \-echo built 'plandex' cli and added 'pdx' alias to $OUT+go build -o $NAME && \+rm -f $OUT/$NAME && \+cp $NAME $OUT/$NAME && \+ln -sf $OUT/$NAME $OUT/$ALIAS && \+echo built $NAME cli and added $ALIAS alias to $OUTdiff --git a/app/server/model/plan/build_finish.go b/app/server/model/plan/build_finish.goindex 0a3b8a40..a49797d6 100644--- a/app/server/model/plan/build_finish.go+++ b/app/server/model/plan/build_finish.go@@ -283,15 +283,17 @@ func (fileState *activeBuildStreamFileState) onFinishBuildFile(planRes *db.PlanFlog.Println("Finished building plan, calling onFinishBuild")fileState.onFinishBuild()} else {+ log.Println("queuing verification build")+ log.Println("preBuildState:\n", fileState.preBuildState)+ log.Println("updated:\n", fileState.updated)+go fileState.execPlanBuild(&types.ActiveBuild{- ReplyId: activeBuild.ReplyId,- FileDescription: activeBuild.FileDescription,- FileContent: activeBuild.FileContent,- Path: activeBuild.Path,- Idx: activeBuild.Idx,- IsVerification: true,- ToVerifyPreBuildState: fileState.preBuildState,- ToVerifyUpdatedState: fileState.updated,+ ReplyId: activeBuild.ReplyId,+ FileDescription: activeBuild.FileDescription,+ FileContent: activeBuild.FileContent,+ Path: activeBuild.Path,+ Idx: activeBuild.Idx,+ IsVerification: true,})}} else {diff --git a/app/server/model/plan/build_verify_stream.go b/app/server/model/plan/build_verify_stream.goindex ff60f075..7be473b2 100644--- a/app/server/model/plan/build_verify_stream.go+++ b/app/server/model/plan/build_verify_stream.go@@ -166,6 +166,7 @@ func (fileState *activeBuildStreamFileState) listenStreamVerifyOutput(stream *op}fileState.fixFileLineNums()}+ return} else if len(delta.ToolCalls) == 0 {log.Println("listenStreamVerifyOutput - Stream chunk missing function call. Buffer:")// log.Println(spew.Sdump(response))diff --git a/app/server/model/prompts/create.go b/app/server/model/prompts/create.goindex e7d6caae..42d38b69 100644--- a/app/server/model/prompts/create.go+++ b/app/server/model/prompts/create.go@@ -75,6 +75,8 @@ const SysCreate = Identity + ` A plan is a set of files with an attached contextAs much as possible, do not include placeholders in code blocks like "// implement functionality here". Unless you absolutely cannot implement the full code block, do not include a placeholder denoted with comments. Do your best to implement the functionality rather than inserting a placeholder. You **MUST NOT** include placeholders just to shorten the code block. If the task is too large to implement in a single code block, you should break the task down into smaller steps and **FULLY** implement each step.+ If you are outputting some code for illustraive or explanatory purpose and not because you are updating that code, you MUST NOT use a labelled file block. Instead output the label with NO PRECEDING DASH and NO COLON postfix. Use a conversational sentence like 'This code in src/main.rs.' to label the code. This is the only exception to the rule that all code blocks must be labelled with a file path. Labelled code blocks are ONLY for code that is being created or modified in the plan.+As much as possible, the code you suggest should be robust, complete, and ready for production.## Do the task yourself and don't give up