factoriomod-debug 2.1.4 → 2.1.5

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.
@@ -1,29 +0,0 @@
1
- digraph calls {
2
- pad=1
3
- # 0 getinfo, 1 stackTrace, 2 callThread, 3 stackTrace, 4 debug command, 5 debug.debug,
4
- # in normal stepping: 6 sethook callback, 7 at breakpoint
5
- # in exception (instrument only) 6 on_error callback, 7 pCallWithStackTraceMessageHandler, 8 at exception
6
- # in remote-redirected call: 2 unhook, 3 at stack
7
-
8
- "??" -> "@code" -> api_breakpoint -> debugprompt;
9
-
10
- pcall -> rawxpcall -> "???" -> "@error" -> caught -> debugprompt
11
- xpcall -> rawxpcall
12
- caught -> user_handler [dir=both; arrowtail=crow;]
13
-
14
- event -> "??"
15
- "??" -> "@unhandled" -> pCallWithStackTraceMessageHandler -> caught;
16
- "??" -> "@step" -> hook;
17
- "??" -> "@breakpoint" -> hook;
18
- hook -> debugprompt;
19
-
20
- debugprompt -> "debug command" -> dap_outer -> dispatch -> dap_inner;
21
- { rank=same; dispatch -> unhook }
22
- "@remote" -> unhook -> dap_inner
23
-
24
- dap_inner -> "0 getinfo";
25
-
26
- { rank=same; "@code" "@step" "@breakpoint" "@error" }
27
- { rank=same; hook api_breakpoint caught }
28
-
29
- }
@@ -1,76 +0,0 @@
1
- U+FFFE/U+FFFF?
2
-
3
- U+FDD0-U+FDEF to signal message types?
4
-
5
- ## stdout prefix:
6
-
7
- ### events w/ prompt
8
-
9
- | bytes | code | |
10
- |----------|------|-----------------------|
11
- | EF B7 90 | FDD0 | simple message |
12
- | EF B7 91 | FDD1 | json event w/prompt |
13
-
14
- ### events w/o prompt
15
-
16
- | bytes | code | |
17
- |----------|------|-----------------------|
18
- | EF B7 94 | FDD4 | translation result |
19
- | EF B7 95 | FDD5 | json event |
20
- | EF B7 96 | FDD6 | json response |
21
- | EF B7 97 | FDD7 | raw buffer |
22
- | EF B7 98 | FDD8 | invalidated event |
23
-
24
- ### profile events
25
- | bytes | code | |
26
- |----------|------|-----------------------|
27
- | EF B7 A0 | FDE0 | profile line |
28
- | EF B7 A1 | FDE1 | profile call |
29
- | EF B7 A2 | FDE2 | profile tailcall |
30
- | EF B7 A3 | FDE3 | profile return |
31
- | EF B7 AD | FDED | legacy profile dump |
32
-
33
- ### blocks
34
- | bytes | code | |
35
- |----------|------|-----------------------|
36
- | EF B7 AE | FDEE | block start |
37
- | EF B7 AF | FDEF | block end |
38
-
39
- ## json reviver:
40
- | bytes | code | |
41
- |----------|------|-----------------------|
42
- | EF B7 90 | FDD0 | DA Basename? |
43
- | EF B7 91 | FDD1 | DA Path |
44
- | EF B7 92 | FDD2 | DA Line |
45
- | EF B7 93 | FDD3 | (reserved for DA Column?) |
46
- | EF B7 94 | FDD4 | translation result |
47
- | EF B7 95 | FDD5 | raw buffer id |
48
-
49
- PUA U+E000-U+F8FF also available for use?
50
-
51
- ## after FDD0 as ID:
52
- | bytes | code | message | data |
53
- |----------|------|-------------------------|---------|
54
- | EE 80 80 | E000 | on_instrument_settings | |
55
- | EE 80 81 | E001 | on_instrument_data | |
56
- | EE 80 82 | E002 | on_instrument_control | modname |
57
- | EE 80 83 | E003 | on_da_control | |
58
- | EE 80 84 | E004 | object_info | |
59
- | EE 80 85 | E005 | getref | |
60
- | EE 80 86 | E006 | on_tick | |
61
- | EE 80 87 | E007 | on_data | |
62
- | EE 80 88 | E008 | on_parse | |
63
- | EE 80 89 | E009 | ~~on_init~~ | |
64
- | EE 80 8A | E00A | ~~on_load~~ | |
65
- | EE 80 8B | E00B | ~~leaving/running~~ | |
66
- | EE 80 8C | E00C | terminate | |
67
- | EE 80 8D | E00D | ~~step~~ | |
68
- | EE 80 8E | E00E | ~~breakpoint~~ | |
69
- | EE 80 8F | E00F | ~~exception~~ | |
70
- | EE 80 90 | E010 | restart | |
71
-
72
- ## after FDD7 in buffer:
73
-
74
- U+F800-F8FF as escaped bytes
75
-
76
- currently on `\n` for windows console and 0xEF to catch accidentally containing an end or an escape
@@ -1,92 +0,0 @@
1
- digraph G {
2
- pad=1
3
-
4
- json;
5
- threads;
6
- dispatch;
7
-
8
- normalizeLuaSource
9
- enumutil;
10
- luaobjectinfo;
11
- iterutil;
12
-
13
- variables;
14
- evaluate;
15
-
16
- print;
17
- log;
18
-
19
- datastring;
20
- stepping;
21
- stacks;
22
-
23
- debugadapter;
24
-
25
-
26
- edge [color=blue];
27
- debugadapter -> threads;
28
- threads -> json;
29
-
30
- edge [color=red];
31
- debugadapter -> dispatch;
32
- dispatch -> threads;
33
-
34
- edge [color=green];
35
- debugadapter -> variables;
36
- variables -> dispatch [dir=both arrowtail=odiamond];
37
- variables -> luaobjectinfo;
38
- variables -> normalizeLuaSource;
39
- variables -> json;
40
- variables -> iterutil;
41
-
42
- edge [color=orange];
43
- debugadapter -> evaluate;
44
- evaluate -> json;
45
- evaluate -> dispatch [dir=both arrowtail=dot];
46
- evaluate -> variables ;# describe, error, create, translate, pindex
47
-
48
- edge [color=darkorchid];
49
- debugadapter -> print;
50
- print -> json;
51
- print -> normalizeLuaSource;
52
- print -> variables; # create, translate, sourceRef
53
- print -> evaluate;
54
-
55
- edge [color=steelblue];
56
- debugadapter -> stepping;
57
- stepping -> iterutil;
58
- stepping -> normalizeLuaSource;
59
- stepping -> json;
60
- stepping -> datastring;
61
- stepping -> threads;
62
- stepping -> dispatch;
63
- stepping -> variables; # create, translate, buffer, sourceRef
64
- stepping -> evaluate ; # stringInterp, evaluateInternal
65
- stepping -> print ; # outputEvent, print
66
-
67
- edge [color=blue];
68
- debugadapter -> log;
69
- log -> normalizeLuaSource;
70
- log -> variables; # describe, translate
71
- log -> print;
72
-
73
- edge [color=purple];
74
- debugadapter -> stacks;
75
- stacks -> json;
76
- stacks -> threads;
77
- stacks -> dispatch;
78
- stacks -> normalizeLuaSource;
79
- stacks -> variables; # describe, sourceRef, scopeRef, tableRef
80
- stacks -> stepping ;# on_exception, getEntryLabel
81
-
82
- edge [color=deeppink];
83
- luaobjectinfo -> enumutil;
84
- luaobjectinfo -> dispatch [dir=both arrowtail=odiamond];
85
-
86
- # late bindings via dispatch
87
- edge [constraint=false color=orangered arrowhead=odot];
88
- variables -> evaluate ;# stringInterp, evaluateInternal
89
- luaobjectinfo -> evaluate ;# stringInterp
90
-
91
-
92
- }
package/eslint.config.ts DELETED
@@ -1,102 +0,0 @@
1
- import { globalIgnores, defineConfig } from "eslint/config";
2
- import globals from "globals";
3
- import tseslint from 'typescript-eslint';
4
- import stylisticTs from '@stylistic/eslint-plugin';
5
-
6
- export default defineConfig([
7
- globalIgnores(["dist", "coverage", "test/factorio"]),
8
- ...tseslint.configs.recommendedTypeChecked,
9
- {
10
- plugins: {
11
- "@stylistic/ts": stylisticTs,
12
- },
13
-
14
- languageOptions: {
15
- globals: {
16
- ...globals.browser,
17
- ...globals.node,
18
- },
19
-
20
- ecmaVersion: 2022,
21
- sourceType: "module",
22
-
23
- parserOptions: {
24
- project: "./tsconfig.json",
25
- },
26
- },
27
-
28
- rules: {
29
- "@stylistic/ts/member-delimiter-style": ["error", {
30
- multiline: {
31
- delimiter: "none",
32
- requireLast: true,
33
- },
34
-
35
- singleline: {
36
- delimiter: "semi",
37
- requireLast: false,
38
- },
39
- }],
40
-
41
-
42
- "@stylistic/ts/semi": ["error"],
43
- "brace-style": ["error", "1tbs", {
44
- allowSingleLine: true,
45
- }],
46
-
47
- "block-spacing": "error",
48
- "space-before-blocks": "error",
49
- "keyword-spacing": "error",
50
-
51
- "arrow-spacing": ["error", {
52
- before: false,
53
- after: false,
54
- }],
55
-
56
- "switch-colon-spacing": "error",
57
- "comma-spacing": "error",
58
- "comma-style": "error",
59
-
60
- "comma-dangle": ["error", {
61
- arrays: "always-multiline",
62
- objects: "always-multiline",
63
- imports: "always-multiline",
64
- exports: "always-multiline",
65
- functions: "only-multiline",
66
- }],
67
-
68
- "key-spacing": "error",
69
-
70
- indent: ["error", "tab", {
71
- SwitchCase: 1,
72
- flatTernaryExpressions: true,
73
- }],
74
-
75
- curly: "error",
76
- eqeqeq: ["error", "always"],
77
- "no-bitwise": "error",
78
- "no-redeclare": "off",
79
- "@typescript-eslint/no-redeclare": "error",
80
-
81
- "@typescript-eslint/no-unused-vars": "off",
82
- "@typescript-eslint/no-explicit-any": "off",
83
- "@typescript-eslint/no-unsafe-assignment": "off",
84
- "@typescript-eslint/no-unsafe-member-access": "off",
85
- "@typescript-eslint/no-unsafe-call": "off",
86
- "@typescript-eslint/no-unsafe-return": "off",
87
- "@typescript-eslint/no-unsafe-argument": "off",
88
- "@typescript-eslint/restrict-template-expressions": "off",
89
-
90
- "no-var": "error",
91
-
92
- "@typescript-eslint/consistent-type-imports": ["error", {
93
- disallowTypeAnnotations: true,
94
- fixStyle: 'separate-type-imports',
95
- prefer: 'type-imports',
96
- }],
97
- "@typescript-eslint/consistent-type-exports": "error",
98
-
99
- "@typescript-eslint/no-deprecated": "error",
100
- "@typescript-eslint/no-extraneous-class": "error",
101
- },
102
- }]);