@jskit-ai/agent-docs 0.1.35 → 0.1.37

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/agent-docs",
3
- "version": "0.1.35",
3
+ "version": "0.1.37",
4
4
  "description": "Distributed JSKIT agent references, prompts, guides, and generated reference maps.",
5
5
  "type": "module",
6
6
  "files": [
@@ -822,7 +822,7 @@ Exports
822
822
  - `createSessionId`
823
823
  - `extractIssueTitle(value = "")`
824
824
  - `extractIssueText(value = "")`
825
- - `extractPlanDetails(value = "")`
825
+ - `extractIssueDetails(value = "")`
826
826
  - `extractPlanText(value = "")`
827
827
  - `inspectSession({ targetRoot = process.cwd(), sessionId } = {})`
828
828
  - `inspectSessionDiff({ targetRoot = process.cwd(), sessionId } = {})`
@@ -831,6 +831,7 @@ Exports
831
831
  - `listSessions({ targetRoot = process.cwd(), archive = "active" } = {})`
832
832
  - `renderTemplate`
833
833
  - `recordDependenciesInstalled(paths, { message = "Installed Node dependencies in the session worktree.", preconditions = [] } = {})`
834
+ - `rewindSession({ targetRoot = process.cwd(), sessionId, stepId } = {})`
834
835
  - `resolveSessionPaths`
835
836
  - `runSessionStep({ targetRoot = process.cwd(), sessionId, options = {} } = {})`
836
837
  Local functions
@@ -839,16 +840,34 @@ Local functions
839
840
  - `existingSessionContext({ targetRoot = process.cwd(), sessionId } = {})`
840
841
  - `withExistingSession(input, handler)`
841
842
  - `extractMarkedText(value = "", marker = "")`
843
+ - `extractMarkedField(value = "", fieldName = "")`
842
844
  - `extractIssueCategory(value = "")`
843
845
  - `extractUiImpact(value = "")`
844
846
  - `extractAgentDecisions(value = "")`
845
847
  - `normalizeIssueCategory(value = "")`
846
848
  - `normalizeUiImpact(value = "")`
847
849
  - `writePromptArtifact(paths, fileName, prompt)`
850
+ - `codexResultPath(paths, stepId)`
851
+ - `codexResponseContractForStep(stepId)`
852
+ - `requireCodexStepResult(paths, stepId, result, preconditions = [], contractOverride = null)`
848
853
  - `commandText(command, args = [])`
854
+ - `cycleRootPath(paths, cycle)`
855
+ - `cyclePlanPath(paths, cycle)`
856
+ - `cyclePlanPromptFileName(cycle)`
857
+ - `cyclePlanExecutionPromptFileName(cycle)`
858
+ - `readCurrentPlan(paths)`
849
859
  - `commandOutputSummary(output = "")`
850
860
  - `appendCommandLog(paths, { args = [], command, cwd = "", kind = "command", result } = {})`
851
861
  - `runLoggedCommand(paths, kind, command, args = [], options = {})`
862
+ - `readWorktreePackageJson(worktree)`
863
+ - `packageScriptRunArgs(packageManager, scriptName)`
864
+ - `packageScriptCommandForWorktree(worktree, scriptName, { preferredPackageManager = "" } = {})`
865
+ - `sessionPackageScriptEnv(paths, scriptName)`
866
+ - `packageScriptRepairCommand(paths, command, args)`
867
+ - `packageScriptReceiptName(scriptName)`
868
+ - `writeSessionHookReceipt(paths, scriptName, message)`
869
+ - `runOptionalSessionPackageScript(paths, { failureCode, failureMessage, kind, preferredPackageManager = "", preconditions = [], scriptName, timeout = 1000 * 60 * 10 } = {})`
870
+ - `runSessionFinalizationGuard(paths, preconditions = [])`
852
871
  - `readIssueMetadata(paths)`
853
872
  - `writeIssueMetadata(paths, metadata = {})`
854
873
  - `readGithubComments(paths)`
@@ -871,19 +890,31 @@ Local functions
871
890
  - `draftIssue(paths, options = {})`
872
891
  - `titleFromIssue(issueText)`
873
892
  - `createIssue(paths, _options = {}, context = {})`
874
- - `renderPlanDetailsPrompt(paths, _options = {}, context = {})`
875
- - `savePlanDetails(paths, options = {}, context = {})`
893
+ - `renderIssueDetailsPrompt(paths, _options = {}, context = {})`
894
+ - `saveIssueDetails(paths, options = {}, context = {})`
876
895
  - `makePlan(paths, options = {}, context = {})`
877
- - `renderPlanExecutionPrompt(paths, _options = {}, context = {})`
878
- - `renderPlanFineTuningPrompt(paths, _options = {}, context = {})`
896
+ - `renderPlanExecutionPrompt(paths, options = {}, context = {})`
879
897
  - `worktreeStatus(worktree)`
880
898
  - `untrackedFiles(worktree)`
881
899
  - `untrackedFileDiff(worktree, filePath)`
882
900
  - `untrackedFilesDiff(worktree)`
883
- - `acceptImplementationChanges(paths)`
901
+ - `removeSessionPath(paths, ...parts)`
902
+ - `removeSessionRootFile(paths, fileName)`
903
+ - `removePromptArtifact(paths, fileName)`
904
+ - `removeGlobalCodexResult(paths, stepId)`
905
+ - `removeGithubCommentPurpose(paths, purpose)`
906
+ - `removeIssueDetailsMetadata(paths)`
907
+ - `removeCycleDirectories(paths)`
908
+ - `removeCyclePromptArtifacts(paths)`
909
+ - `cancelAllCycleState(paths)`
910
+ - `targetRequiresCycleReset(stepId)`
911
+ - `targetIsAllowedRewindStep(stepId)`
912
+ - `deletedStepIdsForRewindTarget(stepId)`
913
+ - `removeReceiptsForDeletedSteps(paths, deletedStepIds)`
914
+ - `cancelDeletedStepArtifacts(paths, deletedStepIds, { cycleReset = false } = {})`
884
915
  - `commitWorktree(paths, { message, allowNoChanges = false } = {})`
885
- - `commitImplementation(paths)`
886
- - `changedFilesFromLastCommit(paths)`
916
+ - `uniqueChangedFileList(entries = [])`
917
+ - `changedFilesInWorktree(paths)`
887
918
  - `changedFilesSinceBase(paths)`
888
919
  - `nextReviewPassNumber(pass = "")`
889
920
  - `readCurrentReviewPass(paths)`
@@ -893,24 +924,15 @@ Local functions
893
924
  - `currentHead(paths)`
894
925
  - `renderReviewPrompt(paths)`
895
926
  - `acceptReviewChanges(paths, options = {})`
896
- - `commitReviewChanges(paths)`
897
- - `runAutomatedChecks(paths, { stepId, label })`
898
- - `readCheckResult(paths, stepId)`
899
- - `maybeCommitCheckRepair(paths, { label, stepId })`
900
- - `uiCheckAcceptStepId(stepId)`
901
- - `uiCheckCommitStepId(stepId)`
902
- - `uiCheckSourceStepId(stepId)`
903
- - `uiCheckLabelForStep(stepId)`
927
+ - `runAutomatedChecks(paths, { stepId, label }, options = {}, context = {})`
904
928
  - `writeUiCheckJson(paths, fileName, payload)`
905
929
  - `runDeepUiCheck(paths, { stepId, label, phase }, options = {}, context = {})`
906
- - `acceptUiCheckChanges(paths, { stepId }, _options = {}, context = {})`
907
- - `commitUiCheckChanges(paths, { stepId }, _options = {}, context = {})`
908
930
  - `userCheck(paths, options = {})`
931
+ - `readAcceptedChangesCommit(paths)`
932
+ - `commitAcceptedChanges(paths, _options = {}, context = {})`
909
933
  - `updateBlueprint(paths, options = {}, context = {})`
910
934
  - `readPackageJson(root)`
911
935
  - `doctorCommandForWorktree(worktree)`
912
- - `runDoctor(paths)`
913
- - `maybeCommitDoctorRepair(paths)`
914
936
  - `commitLinesSinceBase(paths)`
915
937
  - `readCheckSummaries(paths)`
916
938
  - `readUiCheckSummaries(paths)`
@@ -926,13 +948,16 @@ Local functions
926
948
  - `assertTargetRootCleanForBaseUpdate(paths)`
927
949
  - `removeSessionWorktree(paths)`
928
950
  - `writePrOutcome(paths, outcome)`
951
+ - `mainCheckoutSyncPath(paths)`
952
+ - `writeMainCheckoutSync(paths, payload = {})`
929
953
  - `assertTargetRootCanUpdateBase(paths, branch)`
930
- - `assertTargetBaseCanFastForward(paths, branch)`
931
954
  - `updateLocalBaseBranch(paths, baseBranch = "")`
955
+ - `syncMainCheckout(paths, options = {}, context = {})`
932
956
  - `updateHelperMapBeforePr(paths)`
933
957
  - `createPr(paths)`
934
958
  - `closePrWithoutMerge(paths, prUrl, options = {})`
935
- - `finalizePr(paths, options = {})`
959
+ - `preparePrMerge(paths, options = {}, context = {})`
960
+ - `finalizePr(paths, options = {}, context = {})`
936
961
  - `finishSession(paths)`
937
962
  - `runNamedPreconditions(paths, names = [])`
938
963
 
@@ -956,15 +981,21 @@ Exports
956
981
  - `STEP_IDS`
957
982
  - `STEP_LABEL_BY_ID`
958
983
  - `STEP_PRECONDITION_NAMES`
984
+ - `ISSUE_DETAILS_CODEX_HANDOFF`
959
985
  - `PLAN_EXECUTION_CODEX_HANDOFF`
960
- - `PLAN_FINE_TUNING_CODEX_HANDOFF`
961
986
  - `REVIEW_EXECUTION_CODEX_HANDOFF`
962
987
  - `DEEP_UI_CHECK_CODEX_HANDOFF`
988
+ - `AUTOMATED_CHECK_REPAIR_CODEX_HANDOFF`
963
989
  - `BLUEPRINT_CODEX_HANDOFF`
990
+ - `PR_MERGE_PREP_CODEX_HANDOFF`
991
+ - `JSKIT_CLI_SHELL_COMMAND`
992
+ - `JSKIT_CLI_SHELL_RULE`
964
993
  - `SESSION_STATE_RELATIVE_PATH`
965
994
  Local functions
966
- - `codexHandoff(expectedOutput, { autoInject = false, promptActionLabel = "" } = {})`
967
- - `defineStep({ buttonLabel, codex = undefined, description, id, input = INPUT_NONE, kind = "automatic", label, nextCommandTemplate = "jskit session {{session_id}} step", preconditions = [], utilityActions = [], displayGroupId = "", displayGroupLabel = "" })`
995
+ - `fieldResponseContract(outputDefinitions)`
996
+ - `codexHandoff(outputDefinition, { autoInject = false, promptActionLabel = "", promptIntroText = "", promptWaitingText = "", responseContract = undefined } = {})`
997
+ - `stepAutomationFor({ codex = undefined, id, kind, requiresExplicitRun = false })`
998
+ - `defineStep({ buttonLabel, codex = undefined, description, id, input = INPUT_NONE, kind = "automatic", label, nextCommandTemplate = DEFAULT_NEXT_COMMAND_TEMPLATE, preconditions = [], requiresExplicitRun = false, submitOptions = {}, automation = undefined, utilityActions = [], displayGroupId = "", displayGroupLabel = "" })`
968
999
 
969
1000
  ### `src/server/sessionRuntime/io.js`
970
1001
  Exports
@@ -994,11 +1025,11 @@ Local functions
994
1025
  ### `src/server/sessionRuntime/preconditions.js`
995
1026
  Exports
996
1027
  - `applyPreconditions(paths, checks = [])`
1028
+ - `assertAcceptedChangesCommitted(paths)`
997
1029
  - `assertActiveCycleExists(paths)`
998
1030
  - `assertActiveCycleUserCheckPassed(paths)`
999
1031
  - `assertBlueprintUpdateSatisfied(paths)`
1000
1032
  - `assertDeepUiCheckSatisfied(paths)`
1001
- - `assertDeepUiRecheckSatisfied(paths)`
1002
1033
  - `assertDependenciesInstalled(paths)`
1003
1034
  - `assertFinalReportExists(paths)`
1004
1035
  - `assertGhAuth(targetRoot)`
@@ -1008,9 +1039,9 @@ Exports
1008
1039
  - `assertIssueMetadataExists(paths)`
1009
1040
  - `assertIssueTextExists(paths)`
1010
1041
  - `assertIssueUrlExists(paths)`
1011
- - `assertPostReviewChecksPassed(paths)`
1012
- - `assertPreReviewChecksPassed(paths)`
1013
- - `assertPlanDetailsExists(paths)`
1042
+ - `assertAutomatedChecksPassed(paths)`
1043
+ - `assertIssueDetailsExists(paths)`
1044
+ - `assertMainCheckoutSyncSatisfied(paths)`
1014
1045
  - `assertPlanTextExists(paths)`
1015
1046
  - `assertPrUrlExists(paths)`
1016
1047
  - `assertReadyJskitApp(paths)`
@@ -1020,6 +1051,7 @@ Exports
1020
1051
  - `ensureStudioGitExclude(targetRoot)`
1021
1052
  - `hasWorktree`
1022
1053
  Local functions
1054
+ - `jskitCommand(args = "")`
1023
1055
  - `resolveGitCommonDirectory(targetRoot)`
1024
1056
  - `pathExists(filePath)`
1025
1057
  - `assertActiveCycleStepReceipt(paths, { code, id, message, stepId })`
@@ -1029,6 +1061,7 @@ Exports
1029
1061
  - `readPromptTemplate(targetRoot, name)`
1030
1062
  - `renderPrompt(paths, templateName, values = {})`
1031
1063
  - `renderTemplate(source, values = {})`
1064
+ - `withShellCommandRule(template)`
1032
1065
 
1033
1066
  ### `src/server/sessionRuntime/responses.js`
1034
1067
  Exports
@@ -1037,7 +1070,7 @@ Exports
1037
1070
  - `buildStepDefinitions()`
1038
1071
  - `createError({ code, message, repairCommand = "" })`
1039
1072
  - `createPrecondition({ id, ok, message })`
1040
- - `failSession(paths, { code, message, repairCommand = "", preconditions = [], status = SESSION_STATUS.BLOCKED, prompt = "" })`
1073
+ - `failSession(paths, { code, message, repairCommand = "", preconditions = [], status = SESSION_STATUS.BLOCKED, prompt = "", codex = undefined })`
1041
1074
  - `markCurrentStep(paths, stepId)`
1042
1075
  - `markStatus(paths, status)`
1043
1076
  - `normalizeReviewPassNumber(value = "")`
@@ -1061,10 +1094,18 @@ Local functions
1061
1094
  - `readWorkflowVersion(paths)`
1062
1095
  - `cycleStepsRoot(paths, cycle)`
1063
1096
  - `cycleRoot(paths, cycle)`
1097
+ - `cyclePlanPath(paths, cycle)`
1098
+ - `cyclePlanPromptFileName(cycle)`
1099
+ - `cyclePlanExecutionPromptFileName(cycle)`
1064
1100
  - `parseJsonFileIfExists(filePath)`
1065
1101
  - `readReviewPassNumbers(paths)`
1066
1102
  - `readReviewPassInfo(paths, pass)`
1067
- - `readPromptForStep(paths, stepId)`
1103
+ - `latestReviewPass(artifacts = {})`
1104
+ - `latestReviewPassIsPrompted(artifacts = {})`
1105
+ - `readPromptFromAbsolutePath(filePath = "")`
1106
+ - `readReviewPromptForStep(paths, artifacts = {})`
1107
+ - `promptArtifactForStep(paths, stepId)`
1108
+ - `readPromptForStep(paths, stepId, artifacts = {})`
1068
1109
  - `readStepFileNames(stepsRoot)`
1069
1110
  - `readCompletedSteps(paths)`
1070
1111
  - `applyReviewPassCompletionOverlay(paths, completedSteps = [])`
@@ -1075,12 +1116,17 @@ Local functions
1075
1116
  - `readWorktreeStatus(paths, worktreeReady)`
1076
1117
  - `resolveNextStep(completedSteps = [])`
1077
1118
  - `cloneContractValue(value)`
1119
+ - `publicCodexContract(codex = null)`
1120
+ - `stepRepeatabilityContract(stepId)`
1078
1121
  - `publicStepDefinition(step, index)`
1079
1122
  - `stepIsRetryableWhenBlocked(stepId)`
1080
1123
  - `stepIsConditional(stepId)`
1124
+ - `activeCycleInfoFromArtifacts(artifacts = {})`
1125
+ - `uiCheckPromptedForStep(artifacts = {}, stepId = "")`
1081
1126
  - `skipReasonForStep(stepId, artifacts = {})`
1082
1127
  - `buildCurrentStepAction(stepId, artifacts = {})`
1083
- - `buildCodexHandoff(stepId)`
1128
+ - `rawCodexHandoff(stepId, artifacts = {})`
1129
+ - `buildCodexHandoff(stepId, artifacts = {})`
1084
1130
  - `buildNextCommand(sessionId, stepId)`
1085
1131
 
1086
1132
  ### `src/server/sessionRuntime/worktrees.js`