@nurix/nustack 0.23.13 → 0.23.15
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/dist/commands/agent.js +1 -53
- package/dist/commands/obligationList.js +75 -0
- package/dist/commands/read.js +19 -0
- package/dist/commands/recordAliases.js +8 -0
- package/dist/commands/records.js +59 -36
- package/dist/commands/session.js +222 -0
- package/dist/lib/agent/desktopDoor.js +55 -0
- package/dist/lib/gate/bulkReadRelay.js +354 -0
- package/dist/lib/gate/hook.js +30 -3
- package/dist/lib/gate/outline.js +12 -0
- package/dist/lib/gate/settings.js +24 -1
- package/dist/lib/gate/tierOne.js +22 -0
- package/dist/lib/local_store/paths.js +12 -0
- package/dist/lib/local_store/routing.js +26 -0
- package/dist/lib/session-engine/claudeAdapter.js +1 -1
- package/dist/lib/session-engine/supervisor.js +27 -2
- package/dist/lib/sessions/brief.js +102 -0
- package/dist/lib/sessions/client.js +25 -0
- package/dist/lib/sessions/hookInput.js +38 -0
- package/dist/lib/sessions/memoryShip.js +89 -0
- package/dist/lib/sessions/mountFacts.js +42 -0
- package/dist/lib/sessions/outsideSessions.js +1 -0
- package/dist/lib/sessions/sessionEvents.js +203 -0
- package/dist/lib/sessions/sessionKey.js +16 -0
- package/dist/program.js +15 -1
- package/dist/records.schema.json +430 -0
- package/package.json +3 -3
package/dist/records.schema.json
CHANGED
|
@@ -2682,6 +2682,436 @@
|
|
|
2682
2682
|
],
|
|
2683
2683
|
"additionalProperties": false
|
|
2684
2684
|
},
|
|
2685
|
+
"SessionBrief": {
|
|
2686
|
+
"type": "object",
|
|
2687
|
+
"properties": {
|
|
2688
|
+
"previousHandover": {
|
|
2689
|
+
"anyOf": [
|
|
2690
|
+
{
|
|
2691
|
+
"type": "object",
|
|
2692
|
+
"properties": {
|
|
2693
|
+
"sessionId": {
|
|
2694
|
+
"type": "string",
|
|
2695
|
+
"minLength": 1,
|
|
2696
|
+
"maxLength": 128
|
|
2697
|
+
},
|
|
2698
|
+
"runtime": {
|
|
2699
|
+
"anyOf": [
|
|
2700
|
+
{
|
|
2701
|
+
"type": "string",
|
|
2702
|
+
"maxLength": 64
|
|
2703
|
+
},
|
|
2704
|
+
{
|
|
2705
|
+
"type": "null"
|
|
2706
|
+
}
|
|
2707
|
+
]
|
|
2708
|
+
},
|
|
2709
|
+
"handover": {
|
|
2710
|
+
"type": "string",
|
|
2711
|
+
"maxLength": 20000
|
|
2712
|
+
},
|
|
2713
|
+
"createdAt": {
|
|
2714
|
+
"type": "string",
|
|
2715
|
+
"maxLength": 64
|
|
2716
|
+
}
|
|
2717
|
+
},
|
|
2718
|
+
"required": [
|
|
2719
|
+
"sessionId",
|
|
2720
|
+
"runtime",
|
|
2721
|
+
"handover",
|
|
2722
|
+
"createdAt"
|
|
2723
|
+
],
|
|
2724
|
+
"additionalProperties": {}
|
|
2725
|
+
},
|
|
2726
|
+
{
|
|
2727
|
+
"type": "null"
|
|
2728
|
+
}
|
|
2729
|
+
]
|
|
2730
|
+
},
|
|
2731
|
+
"openObligations": {
|
|
2732
|
+
"type": "object",
|
|
2733
|
+
"properties": {
|
|
2734
|
+
"total": {
|
|
2735
|
+
"type": "integer",
|
|
2736
|
+
"minimum": 0,
|
|
2737
|
+
"maximum": 9007199254740991
|
|
2738
|
+
},
|
|
2739
|
+
"items": {
|
|
2740
|
+
"maxItems": 50,
|
|
2741
|
+
"type": "array",
|
|
2742
|
+
"items": {
|
|
2743
|
+
"type": "object",
|
|
2744
|
+
"properties": {
|
|
2745
|
+
"naturalKey": {
|
|
2746
|
+
"type": "string",
|
|
2747
|
+
"minLength": 1,
|
|
2748
|
+
"maxLength": 1024
|
|
2749
|
+
},
|
|
2750
|
+
"planAnchor": {
|
|
2751
|
+
"anyOf": [
|
|
2752
|
+
{
|
|
2753
|
+
"type": "string",
|
|
2754
|
+
"maxLength": 256
|
|
2755
|
+
},
|
|
2756
|
+
{
|
|
2757
|
+
"type": "null"
|
|
2758
|
+
}
|
|
2759
|
+
]
|
|
2760
|
+
},
|
|
2761
|
+
"sessionId": {
|
|
2762
|
+
"anyOf": [
|
|
2763
|
+
{
|
|
2764
|
+
"type": "string",
|
|
2765
|
+
"maxLength": 128
|
|
2766
|
+
},
|
|
2767
|
+
{
|
|
2768
|
+
"type": "null"
|
|
2769
|
+
}
|
|
2770
|
+
]
|
|
2771
|
+
},
|
|
2772
|
+
"payload": {
|
|
2773
|
+
"type": "object",
|
|
2774
|
+
"properties": {},
|
|
2775
|
+
"additionalProperties": {}
|
|
2776
|
+
},
|
|
2777
|
+
"createdAt": {
|
|
2778
|
+
"type": "string",
|
|
2779
|
+
"maxLength": 64
|
|
2780
|
+
}
|
|
2781
|
+
},
|
|
2782
|
+
"required": [
|
|
2783
|
+
"naturalKey",
|
|
2784
|
+
"planAnchor",
|
|
2785
|
+
"sessionId",
|
|
2786
|
+
"payload",
|
|
2787
|
+
"createdAt"
|
|
2788
|
+
],
|
|
2789
|
+
"additionalProperties": {}
|
|
2790
|
+
}
|
|
2791
|
+
}
|
|
2792
|
+
},
|
|
2793
|
+
"required": [
|
|
2794
|
+
"total",
|
|
2795
|
+
"items"
|
|
2796
|
+
],
|
|
2797
|
+
"additionalProperties": {}
|
|
2798
|
+
},
|
|
2799
|
+
"generatedAt": {
|
|
2800
|
+
"type": "string",
|
|
2801
|
+
"maxLength": 64
|
|
2802
|
+
}
|
|
2803
|
+
},
|
|
2804
|
+
"required": [
|
|
2805
|
+
"previousHandover",
|
|
2806
|
+
"openObligations",
|
|
2807
|
+
"generatedAt"
|
|
2808
|
+
],
|
|
2809
|
+
"additionalProperties": {}
|
|
2810
|
+
},
|
|
2811
|
+
"SessionEvent": {
|
|
2812
|
+
"type": "object",
|
|
2813
|
+
"properties": {
|
|
2814
|
+
"sessionId": {
|
|
2815
|
+
"type": "string",
|
|
2816
|
+
"minLength": 1,
|
|
2817
|
+
"maxLength": 128
|
|
2818
|
+
},
|
|
2819
|
+
"runtimeSessionId": {
|
|
2820
|
+
"type": "string",
|
|
2821
|
+
"minLength": 1,
|
|
2822
|
+
"maxLength": 128
|
|
2823
|
+
},
|
|
2824
|
+
"phase": {
|
|
2825
|
+
"type": "string",
|
|
2826
|
+
"enum": [
|
|
2827
|
+
"start",
|
|
2828
|
+
"end"
|
|
2829
|
+
]
|
|
2830
|
+
},
|
|
2831
|
+
"occurredAt": {
|
|
2832
|
+
"type": "string",
|
|
2833
|
+
"allOf": [
|
|
2834
|
+
{
|
|
2835
|
+
"type": "string",
|
|
2836
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
2837
|
+
},
|
|
2838
|
+
{
|
|
2839
|
+
"type": "string",
|
|
2840
|
+
"pattern": "T\\d{2}:\\d{2}:\\d{2}"
|
|
2841
|
+
}
|
|
2842
|
+
]
|
|
2843
|
+
},
|
|
2844
|
+
"extension": {
|
|
2845
|
+
"type": "object",
|
|
2846
|
+
"properties": {
|
|
2847
|
+
"runtime": {
|
|
2848
|
+
"type": "string",
|
|
2849
|
+
"enum": [
|
|
2850
|
+
"claude_code",
|
|
2851
|
+
"codex",
|
|
2852
|
+
"opencode",
|
|
2853
|
+
"copilot_cli",
|
|
2854
|
+
"nustack"
|
|
2855
|
+
]
|
|
2856
|
+
},
|
|
2857
|
+
"model": {
|
|
2858
|
+
"type": "string",
|
|
2859
|
+
"minLength": 1,
|
|
2860
|
+
"maxLength": 128
|
|
2861
|
+
},
|
|
2862
|
+
"harnessSemver": {
|
|
2863
|
+
"type": "string",
|
|
2864
|
+
"maxLength": 64,
|
|
2865
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$"
|
|
2866
|
+
},
|
|
2867
|
+
"harnessDigest": {
|
|
2868
|
+
"type": "string",
|
|
2869
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
2870
|
+
},
|
|
2871
|
+
"configDigest": {
|
|
2872
|
+
"type": "string",
|
|
2873
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
2874
|
+
},
|
|
2875
|
+
"handover": {
|
|
2876
|
+
"type": "string",
|
|
2877
|
+
"minLength": 1,
|
|
2878
|
+
"maxLength": 20000
|
|
2879
|
+
}
|
|
2880
|
+
},
|
|
2881
|
+
"required": [
|
|
2882
|
+
"runtime"
|
|
2883
|
+
],
|
|
2884
|
+
"additionalProperties": false
|
|
2885
|
+
},
|
|
2886
|
+
"isEngineSession": {
|
|
2887
|
+
"type": "boolean"
|
|
2888
|
+
},
|
|
2889
|
+
"startCommit": {
|
|
2890
|
+
"type": "string",
|
|
2891
|
+
"pattern": "^[0-9a-f]{7,64}$"
|
|
2892
|
+
}
|
|
2893
|
+
},
|
|
2894
|
+
"required": [
|
|
2895
|
+
"sessionId",
|
|
2896
|
+
"phase",
|
|
2897
|
+
"occurredAt",
|
|
2898
|
+
"extension"
|
|
2899
|
+
],
|
|
2900
|
+
"additionalProperties": false
|
|
2901
|
+
},
|
|
2902
|
+
"SessionEventsRequest": {
|
|
2903
|
+
"type": "object",
|
|
2904
|
+
"properties": {
|
|
2905
|
+
"events": {
|
|
2906
|
+
"maxItems": 200,
|
|
2907
|
+
"type": "array",
|
|
2908
|
+
"items": {
|
|
2909
|
+
"type": "object",
|
|
2910
|
+
"properties": {
|
|
2911
|
+
"sessionId": {
|
|
2912
|
+
"type": "string",
|
|
2913
|
+
"minLength": 1,
|
|
2914
|
+
"maxLength": 128
|
|
2915
|
+
},
|
|
2916
|
+
"runtimeSessionId": {
|
|
2917
|
+
"type": "string",
|
|
2918
|
+
"minLength": 1,
|
|
2919
|
+
"maxLength": 128
|
|
2920
|
+
},
|
|
2921
|
+
"phase": {
|
|
2922
|
+
"type": "string",
|
|
2923
|
+
"enum": [
|
|
2924
|
+
"start",
|
|
2925
|
+
"end"
|
|
2926
|
+
]
|
|
2927
|
+
},
|
|
2928
|
+
"occurredAt": {
|
|
2929
|
+
"type": "string",
|
|
2930
|
+
"allOf": [
|
|
2931
|
+
{
|
|
2932
|
+
"type": "string",
|
|
2933
|
+
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d(?::[0-5]\\d(?:\\.\\d+)?)?(?:Z))$"
|
|
2934
|
+
},
|
|
2935
|
+
{
|
|
2936
|
+
"type": "string",
|
|
2937
|
+
"pattern": "T\\d{2}:\\d{2}:\\d{2}"
|
|
2938
|
+
}
|
|
2939
|
+
]
|
|
2940
|
+
},
|
|
2941
|
+
"extension": {
|
|
2942
|
+
"type": "object",
|
|
2943
|
+
"properties": {
|
|
2944
|
+
"runtime": {
|
|
2945
|
+
"type": "string",
|
|
2946
|
+
"enum": [
|
|
2947
|
+
"claude_code",
|
|
2948
|
+
"codex",
|
|
2949
|
+
"opencode",
|
|
2950
|
+
"copilot_cli",
|
|
2951
|
+
"nustack"
|
|
2952
|
+
]
|
|
2953
|
+
},
|
|
2954
|
+
"model": {
|
|
2955
|
+
"type": "string",
|
|
2956
|
+
"minLength": 1,
|
|
2957
|
+
"maxLength": 128
|
|
2958
|
+
},
|
|
2959
|
+
"harnessSemver": {
|
|
2960
|
+
"type": "string",
|
|
2961
|
+
"maxLength": 64,
|
|
2962
|
+
"pattern": "^\\d+\\.\\d+\\.\\d+(?:-[0-9A-Za-z.-]+)?(?:\\+[0-9A-Za-z.-]+)?$"
|
|
2963
|
+
},
|
|
2964
|
+
"harnessDigest": {
|
|
2965
|
+
"type": "string",
|
|
2966
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
2967
|
+
},
|
|
2968
|
+
"configDigest": {
|
|
2969
|
+
"type": "string",
|
|
2970
|
+
"pattern": "^[0-9a-f]{64}$"
|
|
2971
|
+
},
|
|
2972
|
+
"handover": {
|
|
2973
|
+
"type": "string",
|
|
2974
|
+
"minLength": 1,
|
|
2975
|
+
"maxLength": 20000
|
|
2976
|
+
}
|
|
2977
|
+
},
|
|
2978
|
+
"required": [
|
|
2979
|
+
"runtime"
|
|
2980
|
+
],
|
|
2981
|
+
"additionalProperties": false
|
|
2982
|
+
},
|
|
2983
|
+
"isEngineSession": {
|
|
2984
|
+
"type": "boolean"
|
|
2985
|
+
},
|
|
2986
|
+
"startCommit": {
|
|
2987
|
+
"type": "string",
|
|
2988
|
+
"pattern": "^[0-9a-f]{7,64}$"
|
|
2989
|
+
}
|
|
2990
|
+
},
|
|
2991
|
+
"required": [
|
|
2992
|
+
"sessionId",
|
|
2993
|
+
"phase",
|
|
2994
|
+
"occurredAt",
|
|
2995
|
+
"extension"
|
|
2996
|
+
],
|
|
2997
|
+
"additionalProperties": false
|
|
2998
|
+
}
|
|
2999
|
+
},
|
|
3000
|
+
"labelRows": {
|
|
3001
|
+
"maxItems": 200,
|
|
3002
|
+
"type": "array",
|
|
3003
|
+
"items": {
|
|
3004
|
+
"type": "object",
|
|
3005
|
+
"properties": {
|
|
3006
|
+
"id": {
|
|
3007
|
+
"type": "string",
|
|
3008
|
+
"minLength": 1,
|
|
3009
|
+
"maxLength": 128
|
|
3010
|
+
},
|
|
3011
|
+
"sessionId": {
|
|
3012
|
+
"type": "string",
|
|
3013
|
+
"minLength": 1,
|
|
3014
|
+
"maxLength": 128
|
|
3015
|
+
},
|
|
3016
|
+
"agentType": {
|
|
3017
|
+
"type": "string",
|
|
3018
|
+
"minLength": 1,
|
|
3019
|
+
"maxLength": 128
|
|
3020
|
+
},
|
|
3021
|
+
"path": {
|
|
3022
|
+
"anyOf": [
|
|
3023
|
+
{
|
|
3024
|
+
"type": "string",
|
|
3025
|
+
"maxLength": 512
|
|
3026
|
+
},
|
|
3027
|
+
{
|
|
3028
|
+
"type": "null"
|
|
3029
|
+
}
|
|
3030
|
+
]
|
|
3031
|
+
},
|
|
3032
|
+
"estimatedTokens": {
|
|
3033
|
+
"type": "integer",
|
|
3034
|
+
"minimum": 0,
|
|
3035
|
+
"maximum": 9007199254740991
|
|
3036
|
+
},
|
|
3037
|
+
"returnedTokens": {
|
|
3038
|
+
"type": "integer",
|
|
3039
|
+
"minimum": 0,
|
|
3040
|
+
"maximum": 9007199254740991
|
|
3041
|
+
},
|
|
3042
|
+
"handler": {
|
|
3043
|
+
"type": "string",
|
|
3044
|
+
"enum": [
|
|
3045
|
+
"outline",
|
|
3046
|
+
"bypass",
|
|
3047
|
+
"digest",
|
|
3048
|
+
"full_read",
|
|
3049
|
+
"local_model",
|
|
3050
|
+
"redirect",
|
|
3051
|
+
"pack_hit",
|
|
3052
|
+
"pack_miss"
|
|
3053
|
+
]
|
|
3054
|
+
},
|
|
3055
|
+
"checkResult": {
|
|
3056
|
+
"anyOf": [
|
|
3057
|
+
{
|
|
3058
|
+
"type": "string",
|
|
3059
|
+
"enum": [
|
|
3060
|
+
"pass",
|
|
3061
|
+
"fail",
|
|
3062
|
+
"budget",
|
|
3063
|
+
"unavailable",
|
|
3064
|
+
"latched"
|
|
3065
|
+
]
|
|
3066
|
+
},
|
|
3067
|
+
{
|
|
3068
|
+
"type": "null"
|
|
3069
|
+
}
|
|
3070
|
+
]
|
|
3071
|
+
},
|
|
3072
|
+
"isBypassUsed": {
|
|
3073
|
+
"type": "boolean"
|
|
3074
|
+
},
|
|
3075
|
+
"latencyMs": {
|
|
3076
|
+
"type": "integer",
|
|
3077
|
+
"minimum": 0,
|
|
3078
|
+
"maximum": 9007199254740991
|
|
3079
|
+
},
|
|
3080
|
+
"tokensKeptOut": {
|
|
3081
|
+
"type": "integer",
|
|
3082
|
+
"minimum": -9007199254740991,
|
|
3083
|
+
"maximum": 9007199254740991
|
|
3084
|
+
},
|
|
3085
|
+
"createdAt": {
|
|
3086
|
+
"type": "integer",
|
|
3087
|
+
"minimum": 0,
|
|
3088
|
+
"maximum": 9007199254740991
|
|
3089
|
+
}
|
|
3090
|
+
},
|
|
3091
|
+
"required": [
|
|
3092
|
+
"id",
|
|
3093
|
+
"sessionId",
|
|
3094
|
+
"agentType",
|
|
3095
|
+
"path",
|
|
3096
|
+
"estimatedTokens",
|
|
3097
|
+
"returnedTokens",
|
|
3098
|
+
"handler",
|
|
3099
|
+
"checkResult",
|
|
3100
|
+
"isBypassUsed",
|
|
3101
|
+
"latencyMs",
|
|
3102
|
+
"tokensKeptOut",
|
|
3103
|
+
"createdAt"
|
|
3104
|
+
],
|
|
3105
|
+
"additionalProperties": false
|
|
3106
|
+
}
|
|
3107
|
+
}
|
|
3108
|
+
},
|
|
3109
|
+
"required": [
|
|
3110
|
+
"events",
|
|
3111
|
+
"labelRows"
|
|
3112
|
+
],
|
|
3113
|
+
"additionalProperties": false
|
|
3114
|
+
},
|
|
2685
3115
|
"SessionRowExtension": {
|
|
2686
3116
|
"type": "object",
|
|
2687
3117
|
"properties": {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nurix/nustack",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.15",
|
|
4
4
|
"description": "The nustack CLI — bootstrap NuStack services into a repo via the NuStack discovery plane.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"@types/node": "^22.19.20",
|
|
35
35
|
"typescript": "^5.7.2",
|
|
36
36
|
"vitest": "^4.1.11",
|
|
37
|
+
"@nurix/contracts": "2.0.1",
|
|
37
38
|
"@nurix/harness": "0.0.0",
|
|
38
39
|
"@nurix/nustack.studio": "0.0.0",
|
|
39
|
-
"@nurix/nustack.ui": "0.0.0"
|
|
40
|
-
"@nurix/contracts": "2.0.1"
|
|
40
|
+
"@nurix/nustack.ui": "0.0.0"
|
|
41
41
|
},
|
|
42
42
|
"publishConfig": {
|
|
43
43
|
"access": "public"
|