@jskit-ai/agent-docs 0.1.32 → 0.1.33

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.32",
3
+ "version": "0.1.33",
4
4
  "description": "Distributed JSKIT agent references, prompts, guides, and generated reference maps.",
5
5
  "type": "module",
6
6
  "files": [
@@ -673,6 +673,7 @@ Local functions
673
673
  - `resolveTextInput({ codePrefix, fileOption, inlineOptions = {}, io = {}, repairCommand, cwd, stdinOption, textOption, sessionId })`
674
674
  - `resolveStepInputs({ inlineOptions = {}, io = {}, cwd, sessionId })`
675
675
  - `normalizeStepOptions(inlineOptions = {})`
676
+ - `resolveListArchiveOption(options = {})`
676
677
 
677
678
  ### `src/server/commandHandlers/shared.js`
678
679
  Exports
@@ -780,11 +781,14 @@ Exports
780
781
  - `buildSessionErrorResponse`
781
782
  - `createSession({ targetRoot = process.cwd(), sessionId = "", now = new Date() } = {})`
782
783
  - `createSessionId`
784
+ - `extractIssueTitle(value = "")`
783
785
  - `extractIssueText(value = "")`
786
+ - `extractPlanText(value = "")`
784
787
  - `inspectSession({ targetRoot = process.cwd(), sessionId } = {})`
788
+ - `inspectSessionDiff({ targetRoot = process.cwd(), sessionId } = {})`
785
789
  - `inspectSessionDetails({ targetRoot = process.cwd(), sessionId } = {})`
786
790
  - `isValidSessionId`
787
- - `listSessions({ targetRoot = process.cwd() } = {})`
791
+ - `listSessions({ targetRoot = process.cwd(), archive = "active" } = {})`
788
792
  - `renderTemplate`
789
793
  - `resolveSessionPaths`
790
794
  - `runSessionStep({ targetRoot = process.cwd(), sessionId, options = {} } = {})`
@@ -793,32 +797,33 @@ Local functions
793
797
  - `invalidSessionIdResponse({ targetRoot, sessionId })`
794
798
  - `existingSessionContext({ targetRoot = process.cwd(), sessionId } = {})`
795
799
  - `withExistingSession(input, handler)`
800
+ - `extractMarkedText(value = "", marker = "")`
801
+ - `normalizeArchiveFilter(archive = "active")`
796
802
  - `emptySessionDetails(response)`
803
+ - `removeEmptyStaleWorktreeDirectory(paths)`
797
804
  - `createWorktree(paths, _options = {}, context = {})`
798
805
  - `renderIssuePrompt(paths, options = {})`
799
806
  - `draftIssue(paths, options = {})`
800
807
  - `titleFromIssue(issueText)`
801
808
  - `createIssue(paths, _options = {}, context = {})`
802
- - `renderImplementationPrompt(paths)`
809
+ - `makePlan(paths, options = {}, context = {})`
803
810
  - `worktreeStatus(worktree)`
804
- - `detectChanges(paths)`
811
+ - `untrackedFiles(worktree)`
812
+ - `untrackedFileDiff(worktree, filePath)`
813
+ - `untrackedFilesDiff(worktree)`
814
+ - `acceptImplementationChanges(paths)`
805
815
  - `commitWorktree(paths, { message, allowNoChanges = false } = {})`
806
816
  - `commitImplementation(paths)`
807
817
  - `changedFilesFromLastCommit(paths)`
808
- - `reviewPromptStepId(passNumber)`
809
- - `renderReviewPrompt(paths, passNumber)`
810
- - `reviewChangesStepId(passNumber)`
811
- - `detectAndCommitReviewChanges(paths, passNumber)`
812
- - `userCheckStepId(passNumber)`
813
- - `userCheck(paths, passNumber, options = {})`
818
+ - `renderReviewPrompt(paths)`
819
+ - `detectAndCommitReviewChanges(paths)`
820
+ - `userCheck(paths, options = {})`
814
821
  - `readPackageJson(root)`
815
822
  - `doctorCommandForWorktree(worktree)`
816
823
  - `runDoctor(paths)`
817
- - `pushBranch(paths)`
818
824
  - `issueNumberFromUrl(issueUrl)`
819
825
  - `createPr(paths)`
820
826
  - `mergePr(paths)`
821
- - `removeWorktree(paths)`
822
827
  - `finishSession(paths)`
823
828
  - `runNamedPreconditions(paths, names = [])`
824
829
 
@@ -827,10 +832,15 @@ Exports
827
832
  - `PROMPT_DIRECTORY`
828
833
  - `SESSION_ID_PATTERN`
829
834
  - `SESSION_STATUS`
835
+ - `STEP_DEFINITION_BY_ID`
830
836
  - `STEP_DEFINITIONS`
831
837
  - `STEP_IDS`
832
838
  - `STEP_LABEL_BY_ID`
839
+ - `STEP_PRECONDITION_NAMES`
833
840
  - `SESSION_STATE_RELATIVE_PATH`
841
+ Local functions
842
+ - `codexHandoff(expectedOutput)`
843
+ - `defineStep({ buttonLabel, codex = undefined, description, id, input = INPUT_NONE, kind = "automatic", label, nextCommandTemplate = "jskit session {{session_id}} step", preconditions = [], utilityActions = [] })`
834
844
 
835
845
  ### `src/server/sessionRuntime/io.js`
836
846
  Exports
@@ -864,14 +874,14 @@ Exports
864
874
  - `assertGitCurrentBranch(targetRoot)`
865
875
  - `assertGitRepository(targetRoot)`
866
876
  - `assertGithubOrigin(targetRoot)`
867
- - `assertIssueArtifacts(paths)`
868
877
  - `assertIssueTextExists(paths)`
878
+ - `assertIssueUrlExists(paths)`
869
879
  - `assertPrUrlExists(paths)`
870
880
  - `assertSessionExists(paths)`
871
881
  - `assertTargetRootWritable(targetRoot)`
872
882
  - `assertWorktreeExists(paths)`
873
883
  - `ensureStudioGitExclude(targetRoot)`
874
- - `hasWorktree(paths)`
884
+ - `hasWorktree`
875
885
  Local functions
876
886
  - `resolveGitCommonDirectory(targetRoot)`
877
887
 
@@ -885,6 +895,7 @@ Exports
885
895
  Exports
886
896
  - `buildSessionErrorResponse({ targetRoot = process.cwd(), sessionId = "", code, message, repairCommand = "", status = SESSION_STATUS.BLOCKED, preconditions = [], errors = undefined } = {})`
887
897
  - `buildSessionResponse(paths, { ok = true, errors = [], preconditions = [], prompt = undefined, status = undefined } = {})`
898
+ - `buildStepDefinitions()`
888
899
  - `createError({ code, message, repairCommand = "" })`
889
900
  - `createPrecondition({ id, ok, message })`
890
901
  - `failSession(paths, { code, message, repairCommand = "", preconditions = [], status = SESSION_STATUS.BLOCKED, prompt = "" })`
@@ -894,10 +905,23 @@ Exports
894
905
  - `readSessionArtifacts(paths)`
895
906
  - `writeReceipt(paths, stepId, message)`
896
907
  Local functions
908
+ - `normalizeStepId(stepId)`
909
+ - `stepIndex(stepId)`
910
+ - `normalizeKnownStepIds(stepIds = [])`
911
+ - `stepCanExposeStoredPrompt(stepId)`
897
912
  - `readCompletedSteps(sessionRoot)`
898
913
  - `resolveNextStep(completedSteps = [])`
914
+ - `cloneContractValue(value)`
915
+ - `publicStepDefinition(step, index)`
916
+ - `buildCurrentStepAction(stepId)`
917
+ - `buildCodexHandoff(stepId)`
899
918
  - `buildNextCommand(sessionId, stepId)`
900
919
 
920
+ ### `src/server/sessionRuntime/worktrees.js`
921
+ Exports
922
+ - `hasWorktree(paths = {})`
923
+ - `parseGitWorktreeList(output = "")`
924
+
901
925
  ### `src/server/shared/cliError.js`
902
926
  Exports
903
927
  - `createCliError(message, { showUsage = false, exitCode = 1, renderUsage = null } = {})`
@@ -1,17 +1,13 @@
1
1
  # App Agent Instructions
2
2
 
3
- JSKIT issue work is driven by the executable session workflow.
3
+ Use JSKIT sessions for issue work.
4
4
 
5
5
  Use:
6
6
 
7
- - `jskit session` to list existing sessions.
8
- - `jskit session create` to start a new issue session.
9
- - `jskit session <session_id>` to inspect durable session state.
10
- - `jskit session <session_id> step` to run the next workflow step or get the next prompt.
11
- - `jskit session <session_id> step --json` when a tool or UI needs machine-readable state.
7
+ - `jskit session`
8
+ - `jskit session create`
9
+ - `jskit session <session_id>`
10
+ - `jskit session <session_id> step`
11
+ - `jskit session <session_id> step --json` for tools and UIs
12
12
 
13
- Do not invent a parallel manual issue workflow. Follow the current session step output.
14
-
15
- If dependencies are missing, install them first. If `npm install` is run while this app uses local JSKIT checkout links, run `npm run devlinks` immediately afterward.
16
-
17
- For JSKIT implementation details, use package docs, generated references, and `node_modules/@jskit-ai/agent-docs/patterns/INDEX.md` only as technical references. They are not the issue workflow source of truth.
13
+ Follow the current session step output and prompt. Do not invent a parallel manual issue workflow.